@openc3/vue-common 6.3.0 → 6.4.1

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 (475) hide show
  1. package/dist/{ArrayWidget-DkjHrXsu.cjs → ArrayWidget-C7qsXQC9.cjs} +2 -2
  2. package/dist/{ArrayWidget-DkjHrXsu.cjs.map → ArrayWidget-C7qsXQC9.cjs.map} +1 -1
  3. package/dist/{ArrayWidget-BbsN1dzF.js → ArrayWidget-CeyoPOhk.js} +4 -4
  4. package/dist/{ArrayWidget-BbsN1dzF.js.map → ArrayWidget-CeyoPOhk.js.map} +1 -1
  5. package/dist/{ArrayplotWidget-CCKEyYIx.js → ArrayplotWidget-BEw4fJPY.js} +3 -3
  6. package/dist/{ArrayplotWidget-CCKEyYIx.js.map → ArrayplotWidget-BEw4fJPY.js.map} +1 -1
  7. package/dist/ArrayplotWidget-S4tyM6zU.cjs +2 -0
  8. package/dist/{ArrayplotWidget-COeaK_Lz.cjs.map → ArrayplotWidget-S4tyM6zU.cjs.map} +1 -1
  9. package/dist/BarColumn-B2FQVNoP.cjs +2 -0
  10. package/dist/{BarColumn-CJLW1nXy.cjs.map → BarColumn-B2FQVNoP.cjs.map} +1 -1
  11. package/dist/{BarColumn-C6p07yWK.js → BarColumn-CIWppEH6.js} +3 -3
  12. package/dist/{BarColumn-C6p07yWK.js.map → BarColumn-CIWppEH6.js.map} +1 -1
  13. package/dist/{BlockWidget-DlCHbqZX.js → BlockWidget-DRtBkPat.js} +4 -4
  14. package/dist/{BlockWidget-DlCHbqZX.js.map → BlockWidget-DRtBkPat.js.map} +1 -1
  15. package/dist/{BlockWidget-BFVYgbd_.cjs → BlockWidget-EZBTae9s.cjs} +2 -2
  16. package/dist/{BlockWidget-BFVYgbd_.cjs.map → BlockWidget-EZBTae9s.cjs.map} +1 -1
  17. package/dist/{ButtonWidget-CtfJzCBR.js → ButtonWidget-4GORf9BG.js} +14 -14
  18. package/dist/{ButtonWidget-CtfJzCBR.js.map → ButtonWidget-4GORf9BG.js.map} +1 -1
  19. package/dist/ButtonWidget-C0UM4M51.cjs +3 -0
  20. package/dist/{ButtonWidget-HN8UHsme.cjs.map → ButtonWidget-C0UM4M51.cjs.map} +1 -1
  21. package/dist/{CanvasWidget-CHmkxxMO.cjs → CanvasWidget-77u4rg8R.cjs} +2 -2
  22. package/dist/{CanvasWidget-CHmkxxMO.cjs.map → CanvasWidget-77u4rg8R.cjs.map} +1 -1
  23. package/dist/{CanvasWidget-CqRlXc4r.js → CanvasWidget-VW1uHIU0.js} +2 -2
  24. package/dist/{CanvasWidget-CqRlXc4r.js.map → CanvasWidget-VW1uHIU0.js.map} +1 -1
  25. package/dist/{CanvasdotWidget-B4bUcKRc.cjs → CanvasdotWidget-B4olJsKr.cjs} +2 -2
  26. package/dist/{CanvasdotWidget-B4bUcKRc.cjs.map → CanvasdotWidget-B4olJsKr.cjs.map} +1 -1
  27. package/dist/{CanvasdotWidget--Xr_KsZs.js → CanvasdotWidget-unc83V9l.js} +2 -2
  28. package/dist/{CanvasdotWidget--Xr_KsZs.js.map → CanvasdotWidget-unc83V9l.js.map} +1 -1
  29. package/dist/{CanvasimageWidget-B5YozXoI.cjs → CanvasimageWidget-BPk3GdGV.cjs} +2 -2
  30. package/dist/{CanvasimageWidget-B5YozXoI.cjs.map → CanvasimageWidget-BPk3GdGV.cjs.map} +1 -1
  31. package/dist/{CanvasimageWidget-BPlj5QYK.js → CanvasimageWidget-CNPV5Ale.js} +3 -3
  32. package/dist/{CanvasimageWidget-BPlj5QYK.js.map → CanvasimageWidget-CNPV5Ale.js.map} +1 -1
  33. package/dist/{CanvasimagevalueWidget-Dx1HnbEw.cjs → CanvasimagevalueWidget-DpPDDitX.cjs} +2 -2
  34. package/dist/{CanvasimagevalueWidget-Dx1HnbEw.cjs.map → CanvasimagevalueWidget-DpPDDitX.cjs.map} +1 -1
  35. package/dist/{CanvasimagevalueWidget-DVFGLt8f.js → CanvasimagevalueWidget-DsQbSZt_.js} +3 -3
  36. package/dist/{CanvasimagevalueWidget-DVFGLt8f.js.map → CanvasimagevalueWidget-DsQbSZt_.js.map} +1 -1
  37. package/dist/{CanvaslabelWidget-CYNqmyP0.js → CanvaslabelWidget-B-5KAkZr.js} +2 -2
  38. package/dist/{CanvaslabelWidget-CYNqmyP0.js.map → CanvaslabelWidget-B-5KAkZr.js.map} +1 -1
  39. package/dist/{CanvaslabelWidget-DgadQD-D.cjs → CanvaslabelWidget-CjKvr47x.cjs} +2 -2
  40. package/dist/{CanvaslabelWidget-DgadQD-D.cjs.map → CanvaslabelWidget-CjKvr47x.cjs.map} +1 -1
  41. package/dist/{CanvaslabelvalueWidget-C3k5gx5c.cjs → CanvaslabelvalueWidget-C0jdjHxr.cjs} +2 -2
  42. package/dist/{CanvaslabelvalueWidget-C3k5gx5c.cjs.map → CanvaslabelvalueWidget-C0jdjHxr.cjs.map} +1 -1
  43. package/dist/{CanvaslabelvalueWidget-B7yIDmsn.js → CanvaslabelvalueWidget-DX-b_55r.js} +2 -2
  44. package/dist/{CanvaslabelvalueWidget-B7yIDmsn.js.map → CanvaslabelvalueWidget-DX-b_55r.js.map} +1 -1
  45. package/dist/{CanvaslineWidget-CYHkes0a.cjs → CanvaslineWidget-C-4EjDkj.cjs} +2 -2
  46. package/dist/{CanvaslineWidget-CYHkes0a.cjs.map → CanvaslineWidget-C-4EjDkj.cjs.map} +1 -1
  47. package/dist/{CanvaslineWidget-BICdxX0Q.js → CanvaslineWidget-DiNWzbpu.js} +2 -2
  48. package/dist/{CanvaslineWidget-BICdxX0Q.js.map → CanvaslineWidget-DiNWzbpu.js.map} +1 -1
  49. package/dist/{CanvaslinevalueWidget-Cq-Ddh0P.js → CanvaslinevalueWidget-Du9pwAN7.js} +2 -2
  50. package/dist/{CanvaslinevalueWidget-Cq-Ddh0P.js.map → CanvaslinevalueWidget-Du9pwAN7.js.map} +1 -1
  51. package/dist/{CanvaslinevalueWidget-5DzhZ22p.cjs → CanvaslinevalueWidget-x81dANpk.cjs} +2 -2
  52. package/dist/{CanvaslinevalueWidget-5DzhZ22p.cjs.map → CanvaslinevalueWidget-x81dANpk.cjs.map} +1 -1
  53. package/dist/{CheckbuttonWidget-B74AWeaW.js → CheckbuttonWidget--QM-segm.js} +2 -2
  54. package/dist/{CheckbuttonWidget-B74AWeaW.js.map → CheckbuttonWidget--QM-segm.js.map} +1 -1
  55. package/dist/{CheckbuttonWidget-BCzsXnIF.cjs → CheckbuttonWidget-LWSGbUuH.cjs} +2 -2
  56. package/dist/{CheckbuttonWidget-BCzsXnIF.cjs.map → CheckbuttonWidget-LWSGbUuH.cjs.map} +1 -1
  57. package/dist/{ComboboxWidget-CtyKbEWb.js → ComboboxWidget-BDpHIcCo.js} +2 -2
  58. package/dist/{ComboboxWidget-CtyKbEWb.js.map → ComboboxWidget-BDpHIcCo.js.map} +1 -1
  59. package/dist/{ComboboxWidget-DQgDyDAC.cjs → ComboboxWidget-DR8EmM6T.cjs} +2 -2
  60. package/dist/{ComboboxWidget-DQgDyDAC.cjs.map → ComboboxWidget-DR8EmM6T.cjs.map} +1 -1
  61. package/dist/CriticalCmdDialog-Ct5WeIW_.cjs +2 -0
  62. package/dist/CriticalCmdDialog-Ct5WeIW_.cjs.map +1 -0
  63. package/dist/{CriticalCmdDialog-DPIZOBeP.js → CriticalCmdDialog-D4-eoA3P.js} +16 -16
  64. package/dist/CriticalCmdDialog-D4-eoA3P.js.map +1 -0
  65. package/dist/{DateWidget-BEVSczU8.js → DateWidget-BCmQNavZ.js} +3 -3
  66. package/dist/{DateWidget-BEVSczU8.js.map → DateWidget-BCmQNavZ.js.map} +1 -1
  67. package/dist/{DateWidget-BB4cIuUS.cjs → DateWidget-CBzHYk5i.cjs} +2 -2
  68. package/dist/{DateWidget-BB4cIuUS.cjs.map → DateWidget-CBzHYk5i.cjs.map} +1 -1
  69. package/dist/{DetailsDialog-DmEC5BTs.js → DetailsDialog-OMd7LWdZ.js} +18 -18
  70. package/dist/DetailsDialog-OMd7LWdZ.js.map +1 -0
  71. package/dist/DetailsDialog-T9G076-B.cjs +2 -0
  72. package/dist/DetailsDialog-T9G076-B.cjs.map +1 -0
  73. package/dist/EventListDialog-COOwwkxk.cjs +2 -0
  74. package/dist/EventListDialog-COOwwkxk.cjs.map +1 -0
  75. package/dist/{EventListDialog-CSMSmCIT.js → EventListDialog-ankpCg-n.js} +520 -593
  76. package/dist/EventListDialog-ankpCg-n.js.map +1 -0
  77. package/dist/FormatvalueWidget-CPn5mDHY.js +48 -0
  78. package/dist/FormatvalueWidget-CPn5mDHY.js.map +1 -0
  79. package/dist/FormatvalueWidget-wjsl4ty0.cjs +2 -0
  80. package/dist/FormatvalueWidget-wjsl4ty0.cjs.map +1 -0
  81. package/dist/Graph-hTOB_jv2.cjs +2 -0
  82. package/dist/Graph-hTOB_jv2.cjs.map +1 -0
  83. package/dist/{Graph-Bgo0cjl3.js → Graph-vUcIyyTp.js} +666 -801
  84. package/dist/Graph-vUcIyyTp.js.map +1 -0
  85. package/dist/{GraphWidget-DurWDmpg.js → GraphWidget-Cl97QQYm.js} +2 -2
  86. package/dist/{GraphWidget-DurWDmpg.js.map → GraphWidget-Cl97QQYm.js.map} +1 -1
  87. package/dist/{GraphWidget-sid4Ws9H.cjs → GraphWidget-D3rDXvA8.cjs} +2 -2
  88. package/dist/{GraphWidget-sid4Ws9H.cjs.map → GraphWidget-D3rDXvA8.cjs.map} +1 -1
  89. package/dist/{HorizontalWidget-_6IR0cR8.cjs → HorizontalWidget-72nrDrwn.cjs} +2 -2
  90. package/dist/{HorizontalWidget-_6IR0cR8.cjs.map → HorizontalWidget-72nrDrwn.cjs.map} +1 -1
  91. package/dist/{HorizontalWidget-Cd_wl1b3.js → HorizontalWidget-CtTkQHl-.js} +2 -2
  92. package/dist/{HorizontalWidget-Cd_wl1b3.js.map → HorizontalWidget-CtTkQHl-.js.map} +1 -1
  93. package/dist/{HorizontalboxWidget-zmnurtv1.cjs → HorizontalboxWidget-C8kuEm-u.cjs} +2 -2
  94. package/dist/{HorizontalboxWidget-zmnurtv1.cjs.map → HorizontalboxWidget-C8kuEm-u.cjs.map} +1 -1
  95. package/dist/{HorizontalboxWidget-BcMTFBU-.js → HorizontalboxWidget-Dn9zVn4r.js} +5 -5
  96. package/dist/{HorizontalboxWidget-BcMTFBU-.js.map → HorizontalboxWidget-Dn9zVn4r.js.map} +1 -1
  97. package/dist/{HorizontallineWidget-CXFqHclf.js → HorizontallineWidget-BBvYWaP7.js} +2 -2
  98. package/dist/{HorizontallineWidget-CXFqHclf.js.map → HorizontallineWidget-BBvYWaP7.js.map} +1 -1
  99. package/dist/{HorizontallineWidget-CM-6WqCj.cjs → HorizontallineWidget-Bs_p5rzY.cjs} +2 -2
  100. package/dist/{HorizontallineWidget-CM-6WqCj.cjs.map → HorizontallineWidget-Bs_p5rzY.cjs.map} +1 -1
  101. package/dist/{IframeWidget-EhncMob0.cjs → IframeWidget-Bhl0G51c.cjs} +2 -2
  102. package/dist/{IframeWidget-EhncMob0.cjs.map → IframeWidget-Bhl0G51c.cjs.map} +1 -1
  103. package/dist/{IframeWidget-BPerHCCa.js → IframeWidget-BmZOip3U.js} +2 -2
  104. package/dist/{IframeWidget-BPerHCCa.js.map → IframeWidget-BmZOip3U.js.map} +1 -1
  105. package/dist/ImageLoader-CXV42ZAx.cjs +2 -0
  106. package/dist/{ImageLoader-cRmBcpU9.cjs.map → ImageLoader-CXV42ZAx.cjs.map} +1 -1
  107. package/dist/{ImageLoader-4N-7Gj61.js → ImageLoader-wYNaGuuz.js} +2 -2
  108. package/dist/{ImageLoader-4N-7Gj61.js.map → ImageLoader-wYNaGuuz.js.map} +1 -1
  109. package/dist/{ImageviewerWidget-Bv3CreXd.cjs → ImageviewerWidget-BAK_GlYK.cjs} +2 -2
  110. package/dist/{ImageviewerWidget-Bv3CreXd.cjs.map → ImageviewerWidget-BAK_GlYK.cjs.map} +1 -1
  111. package/dist/{ImageviewerWidget-Cw_H_HmZ.js → ImageviewerWidget-ByuTqBHq.js} +2 -2
  112. package/dist/{ImageviewerWidget-Cw_H_HmZ.js.map → ImageviewerWidget-ByuTqBHq.js.map} +1 -1
  113. package/dist/InterfacesTab-BbsiYwEX.js +83 -0
  114. package/dist/InterfacesTab-BbsiYwEX.js.map +1 -0
  115. package/dist/InterfacesTab-CnQLkjoz.cjs +2 -0
  116. package/dist/InterfacesTab-CnQLkjoz.cjs.map +1 -0
  117. package/dist/{LabelWidget-mMcf5S8K.cjs → LabelWidget-BP72ze-R.cjs} +2 -2
  118. package/dist/{LabelWidget-mMcf5S8K.cjs.map → LabelWidget-BP72ze-R.cjs.map} +1 -1
  119. package/dist/{LabelWidget-xrmcVeq8.js → LabelWidget-Dmb5F5j-.js} +2 -2
  120. package/dist/{LabelWidget-xrmcVeq8.js.map → LabelWidget-Dmb5F5j-.js.map} +1 -1
  121. package/dist/{LabelledWidget-BoYCuDaH.cjs → LabelledWidget-DIflzlDv.cjs} +2 -2
  122. package/dist/{LabelledWidget-BoYCuDaH.cjs.map → LabelledWidget-DIflzlDv.cjs.map} +1 -1
  123. package/dist/{LabelledWidget-D48QoyMk.js → LabelledWidget-DV1IbbPS.js} +4 -4
  124. package/dist/{LabelledWidget-D48QoyMk.js.map → LabelledWidget-DV1IbbPS.js.map} +1 -1
  125. package/dist/{LabelprogressbarWidget-DiucKsT2.cjs → LabelprogressbarWidget-B18EaMhU.cjs} +2 -2
  126. package/dist/{LabelprogressbarWidget-DiucKsT2.cjs.map → LabelprogressbarWidget-B18EaMhU.cjs.map} +1 -1
  127. package/dist/{LabelprogressbarWidget-C_950t6g.js → LabelprogressbarWidget-BHBDYVZp.js} +4 -4
  128. package/dist/{LabelprogressbarWidget-C_950t6g.js.map → LabelprogressbarWidget-BHBDYVZp.js.map} +1 -1
  129. package/dist/{LabelsparklineWidget-0KXQyPoU.js → LabelsparklineWidget-BaoIdd7s.js} +4 -4
  130. package/dist/{LabelsparklineWidget-0KXQyPoU.js.map → LabelsparklineWidget-BaoIdd7s.js.map} +1 -1
  131. package/dist/{LabelsparklineWidget-A3MTEhQc.cjs → LabelsparklineWidget-Bdft2p6Y.cjs} +2 -2
  132. package/dist/{LabelsparklineWidget-A3MTEhQc.cjs.map → LabelsparklineWidget-Bdft2p6Y.cjs.map} +1 -1
  133. package/dist/{LabelvalueWidget-DnKoz0-N.cjs → LabelvalueWidget-DiqMgePn.cjs} +2 -2
  134. package/dist/{LabelvalueWidget-DnKoz0-N.cjs.map → LabelvalueWidget-DiqMgePn.cjs.map} +1 -1
  135. package/dist/{LabelvalueWidget-CQ06wWDK.js → LabelvalueWidget-wuW55zQP.js} +4 -4
  136. package/dist/{LabelvalueWidget-CQ06wWDK.js.map → LabelvalueWidget-wuW55zQP.js.map} +1 -1
  137. package/dist/{LabelvaluedescWidget-Bo8zT01X.js → LabelvaluedescWidget-BBHwqvj4.js} +9 -9
  138. package/dist/{LabelvaluedescWidget-Bo8zT01X.js.map → LabelvaluedescWidget-BBHwqvj4.js.map} +1 -1
  139. package/dist/LabelvaluedescWidget-fN9XLm-N.cjs +2 -0
  140. package/dist/{LabelvaluedescWidget-I6ljK--Y.cjs.map → LabelvaluedescWidget-fN9XLm-N.cjs.map} +1 -1
  141. package/dist/{LabelvaluelimitsbarWidget-BucTw8Yk.js → LabelvaluelimitsbarWidget-77Rc3lCf.js} +4 -4
  142. package/dist/{LabelvaluelimitsbarWidget-BucTw8Yk.js.map → LabelvaluelimitsbarWidget-77Rc3lCf.js.map} +1 -1
  143. package/dist/{LabelvaluelimitsbarWidget-Cb6i_Ixc.cjs → LabelvaluelimitsbarWidget-Dp5qsue9.cjs} +2 -2
  144. package/dist/{LabelvaluelimitsbarWidget-Cb6i_Ixc.cjs.map → LabelvaluelimitsbarWidget-Dp5qsue9.cjs.map} +1 -1
  145. package/dist/{LabelvaluelimitscolumnWidget-Dflb1hNd.js → LabelvaluelimitscolumnWidget-nounrACl.js} +5 -5
  146. package/dist/{LabelvaluelimitscolumnWidget-Dflb1hNd.js.map → LabelvaluelimitscolumnWidget-nounrACl.js.map} +1 -1
  147. package/dist/{LabelvaluelimitscolumnWidget-ClY5OxUC.cjs → LabelvaluelimitscolumnWidget-uR4QE_cm.cjs} +2 -2
  148. package/dist/{LabelvaluelimitscolumnWidget-ClY5OxUC.cjs.map → LabelvaluelimitscolumnWidget-uR4QE_cm.cjs.map} +1 -1
  149. package/dist/{LabelvaluerangebarWidget-D8cbfXFM.js → LabelvaluerangebarWidget-B83Jj5Q1.js} +4 -4
  150. package/dist/{LabelvaluerangebarWidget-D8cbfXFM.js.map → LabelvaluerangebarWidget-B83Jj5Q1.js.map} +1 -1
  151. package/dist/{LabelvaluerangebarWidget-9S5rVZaS.cjs → LabelvaluerangebarWidget-MVkSnTVH.cjs} +2 -2
  152. package/dist/{LabelvaluerangebarWidget-9S5rVZaS.cjs.map → LabelvaluerangebarWidget-MVkSnTVH.cjs.map} +1 -1
  153. package/dist/{Layout-Tf--nruw.js → Layout-ByQC7nQ3.js} +2 -2
  154. package/dist/{Layout-Tf--nruw.js.map → Layout-ByQC7nQ3.js.map} +1 -1
  155. package/dist/Layout-CFJMHNqy.cjs +2 -0
  156. package/dist/{Layout-DuCYyOw4.cjs.map → Layout-CFJMHNqy.cjs.map} +1 -1
  157. package/dist/{LedWidget-qH_FthkK.js → LedWidget-Cccb8YTk.js} +13 -10
  158. package/dist/LedWidget-Cccb8YTk.js.map +1 -0
  159. package/dist/LedWidget-ghzR6jZJ.cjs +2 -0
  160. package/dist/LedWidget-ghzR6jZJ.cjs.map +1 -0
  161. package/dist/{LimitsbarWidget-B9lAB2RD.js → LimitsbarWidget-D1EBBwX1.js} +10 -7
  162. package/dist/LimitsbarWidget-D1EBBwX1.js.map +1 -0
  163. package/dist/LimitsbarWidget-Dg2_T5OY.cjs +2 -0
  164. package/dist/LimitsbarWidget-Dg2_T5OY.cjs.map +1 -0
  165. package/dist/{LimitscolorWidget-c6Qa6su7.js → LimitscolorWidget--1aPSNVB.js} +2 -2
  166. package/dist/{LimitscolorWidget-c6Qa6su7.js.map → LimitscolorWidget--1aPSNVB.js.map} +1 -1
  167. package/dist/{LimitscolorWidget-DORhDxRo.cjs → LimitscolorWidget-D9mHLFOs.cjs} +2 -2
  168. package/dist/{LimitscolorWidget-DORhDxRo.cjs.map → LimitscolorWidget-D9mHLFOs.cjs.map} +1 -1
  169. package/dist/{LimitscolumnWidget-C9Uyg7Fh.cjs → LimitscolumnWidget-D18x3aW-.cjs} +2 -2
  170. package/dist/{LimitscolumnWidget-C9Uyg7Fh.cjs.map → LimitscolumnWidget-D18x3aW-.cjs.map} +1 -1
  171. package/dist/{LimitscolumnWidget-CcLs_443.js → LimitscolumnWidget-swnMNApm.js} +2 -2
  172. package/dist/{LimitscolumnWidget-CcLs_443.js.map → LimitscolumnWidget-swnMNApm.js.map} +1 -1
  173. package/dist/{LinegraphWidget-BSVYLFo1.js → LinegraphWidget-BbI-wOnq.js} +4 -4
  174. package/dist/{LinegraphWidget-BSVYLFo1.js.map → LinegraphWidget-BbI-wOnq.js.map} +1 -1
  175. package/dist/LinegraphWidget-BdCc6zps.cjs +2 -0
  176. package/dist/{LinegraphWidget-Bf8DIwEn.cjs.map → LinegraphWidget-BdCc6zps.cjs.map} +1 -1
  177. package/dist/{MatrixbycolumnsWidget-DXFpZTre.js → MatrixbycolumnsWidget-Bx2qMr8P.js} +3 -3
  178. package/dist/{MatrixbycolumnsWidget-DXFpZTre.js.map → MatrixbycolumnsWidget-Bx2qMr8P.js.map} +1 -1
  179. package/dist/MatrixbycolumnsWidget-CuhTHsdb.cjs +2 -0
  180. package/dist/{MatrixbycolumnsWidget-DpdFzNeP.cjs.map → MatrixbycolumnsWidget-CuhTHsdb.cjs.map} +1 -1
  181. package/dist/MicroservicesTab-7mVRcHEj.cjs +2 -0
  182. package/dist/MicroservicesTab-7mVRcHEj.cjs.map +1 -0
  183. package/dist/MicroservicesTab-CtI7BEt0.js +219 -0
  184. package/dist/MicroservicesTab-CtI7BEt0.js.map +1 -0
  185. package/dist/Openc3Screen-B4X70CVP.cjs +5 -0
  186. package/dist/Openc3Screen-B4X70CVP.cjs.map +1 -0
  187. package/dist/Openc3Screen-DFYYhHt7.js +1704 -0
  188. package/dist/Openc3Screen-DFYYhHt7.js.map +1 -0
  189. package/dist/{OutputDialog-zVPZiZay.js → OutputDialog-CqD5uI0m.js} +66 -78
  190. package/dist/OutputDialog-CqD5uI0m.js.map +1 -0
  191. package/dist/OutputDialog-Dft9Xm4R.cjs +2 -0
  192. package/dist/OutputDialog-Dft9Xm4R.cjs.map +1 -0
  193. package/dist/PackagesTab-BxP1kiSR.cjs +2 -0
  194. package/dist/PackagesTab-BxP1kiSR.cjs.map +1 -0
  195. package/dist/PackagesTab-DhMk-fi5.js +313 -0
  196. package/dist/PackagesTab-DhMk-fi5.js.map +1 -0
  197. package/dist/PluginsTab-BKJo5vK-.cjs +6 -0
  198. package/dist/PluginsTab-BKJo5vK-.cjs.map +1 -0
  199. package/dist/{PluginsTab-B64OvayB.js → PluginsTab-DxxEqPCA.js} +205 -244
  200. package/dist/PluginsTab-DxxEqPCA.js.map +1 -0
  201. package/dist/{ProgressbarWidget-iYGw8-Dc.js → ProgressbarWidget-7rJeuX6H.js} +2 -2
  202. package/dist/{ProgressbarWidget-iYGw8-Dc.js.map → ProgressbarWidget-7rJeuX6H.js.map} +1 -1
  203. package/dist/{ProgressbarWidget-fGWa6ipm.cjs → ProgressbarWidget-DLvbQ0g-.cjs} +2 -2
  204. package/dist/{ProgressbarWidget-fGWa6ipm.cjs.map → ProgressbarWidget-DLvbQ0g-.cjs.map} +1 -1
  205. package/dist/{RadiobuttonWidget-ZEPJbOp_.cjs → RadiobuttonWidget-C15SchQH.cjs} +2 -2
  206. package/dist/{RadiobuttonWidget-ZEPJbOp_.cjs.map → RadiobuttonWidget-C15SchQH.cjs.map} +1 -1
  207. package/dist/{RadiobuttonWidget-ytmoVZ3u.js → RadiobuttonWidget-DsEw3JiU.js} +2 -2
  208. package/dist/{RadiobuttonWidget-ytmoVZ3u.js.map → RadiobuttonWidget-DsEw3JiU.js.map} +1 -1
  209. package/dist/{RadiogroupWidget-EK4rEGUC.cjs → RadiogroupWidget-BZS_MkSP.cjs} +2 -2
  210. package/dist/{RadiogroupWidget-EK4rEGUC.cjs.map → RadiogroupWidget-BZS_MkSP.cjs.map} +1 -1
  211. package/dist/{RadiogroupWidget-CusMBhKH.js → RadiogroupWidget-DhfbTvQ8.js} +2 -2
  212. package/dist/{RadiogroupWidget-CusMBhKH.js.map → RadiogroupWidget-DhfbTvQ8.js.map} +1 -1
  213. package/dist/{RangebarWidget-D_zGTtCa.js → RangebarWidget-BEGvSL_K.js} +2 -2
  214. package/dist/{RangebarWidget-D_zGTtCa.js.map → RangebarWidget-BEGvSL_K.js.map} +1 -1
  215. package/dist/{RangebarWidget-DwIs-L5k.cjs → RangebarWidget-bBSBfvHk.cjs} +2 -2
  216. package/dist/{RangebarWidget-DwIs-L5k.cjs.map → RangebarWidget-bBSBfvHk.cjs.map} +1 -1
  217. package/dist/{RedisTab-CyPo6ADN.js → RedisTab-Bq8Frctp.js} +13 -13
  218. package/dist/{RedisTab-CyPo6ADN.js.map → RedisTab-Bq8Frctp.js.map} +1 -1
  219. package/dist/RedisTab-CWYntIvy.cjs +2 -0
  220. package/dist/{RedisTab-67UcKoPf.cjs.map → RedisTab-CWYntIvy.cjs.map} +1 -1
  221. package/dist/{RollupWidget-Dolsixyt.js → RollupWidget-BZhspgWd.js} +2 -2
  222. package/dist/{RollupWidget-Dolsixyt.js.map → RollupWidget-BZhspgWd.js.map} +1 -1
  223. package/dist/{RollupWidget-DC3OIP6G.cjs → RollupWidget-BueYskqE.cjs} +2 -2
  224. package/dist/{RollupWidget-DC3OIP6G.cjs.map → RollupWidget-BueYskqE.cjs.map} +1 -1
  225. package/dist/RoutersTab-Bg6dpAXr.js +85 -0
  226. package/dist/RoutersTab-Bg6dpAXr.js.map +1 -0
  227. package/dist/RoutersTab-DOseaOsv.cjs +2 -0
  228. package/dist/RoutersTab-DOseaOsv.cjs.map +1 -0
  229. package/dist/ScriptChooser-CHkObjcT.cjs +2 -0
  230. package/dist/ScriptChooser-CHkObjcT.cjs.map +1 -0
  231. package/dist/ScriptChooser-DBkFAc6E.js +176 -0
  232. package/dist/ScriptChooser-DBkFAc6E.js.map +1 -0
  233. package/dist/{ScrollwindowWidget-BWeqSUPc.cjs → ScrollwindowWidget-CJmuGHai.cjs} +2 -2
  234. package/dist/{ScrollwindowWidget-BWeqSUPc.cjs.map → ScrollwindowWidget-CJmuGHai.cjs.map} +1 -1
  235. package/dist/{ScrollwindowWidget-DV2nZuNi.js → ScrollwindowWidget-qZ3nhhVU.js} +3 -3
  236. package/dist/{ScrollwindowWidget-DV2nZuNi.js.map → ScrollwindowWidget-qZ3nhhVU.js.map} +1 -1
  237. package/dist/SecretsTab-B49h9PhL.cjs +2 -0
  238. package/dist/SecretsTab-B49h9PhL.cjs.map +1 -0
  239. package/dist/{SecretsTab-DVyyyGlG.js → SecretsTab-vdm8oj9_.js} +39 -49
  240. package/dist/SecretsTab-vdm8oj9_.js.map +1 -0
  241. package/dist/{SettingsTab-g29K6FyC.js → SettingsTab-C05e6-Xm.js} +3 -3
  242. package/dist/{SettingsTab-g29K6FyC.js.map → SettingsTab-C05e6-Xm.js.map} +1 -1
  243. package/dist/SettingsTab-fmHVuOps.cjs +3 -0
  244. package/dist/{SettingsTab-B1LvOLG2.cjs.map → SettingsTab-fmHVuOps.cjs.map} +1 -1
  245. package/dist/{SignalWidget-d9-6h85k.js → SignalWidget-Bh14Zrch.js} +16 -18
  246. package/dist/SignalWidget-Bh14Zrch.js.map +1 -0
  247. package/dist/{SignalWidget-RvRwpE8T.cjs → SignalWidget-J3LFoUd-.cjs} +2 -2
  248. package/dist/SignalWidget-J3LFoUd-.cjs.map +1 -0
  249. package/dist/SimpleTextDialog-CSsm9IoB.cjs +2 -0
  250. package/dist/SimpleTextDialog-CSsm9IoB.cjs.map +1 -0
  251. package/dist/SimpleTextDialog-plHG7LGh.js +97 -0
  252. package/dist/SimpleTextDialog-plHG7LGh.js.map +1 -0
  253. package/dist/{SpacerWidget-7_8bpLCb.cjs → SpacerWidget-CzqLoBdY.cjs} +2 -2
  254. package/dist/{SpacerWidget-7_8bpLCb.cjs.map → SpacerWidget-CzqLoBdY.cjs.map} +1 -1
  255. package/dist/{SpacerWidget-BH0p2OLi.js → SpacerWidget-D_NE46jZ.js} +2 -2
  256. package/dist/{SpacerWidget-BH0p2OLi.js.map → SpacerWidget-D_NE46jZ.js.map} +1 -1
  257. package/dist/{SparklineWidget-coxi9r2g.js → SparklineWidget-CJEEJdZ-.js} +4 -4
  258. package/dist/{SparklineWidget-coxi9r2g.js.map → SparklineWidget-CJEEJdZ-.js.map} +1 -1
  259. package/dist/SparklineWidget-DDRhatn7.cjs +2 -0
  260. package/dist/{SparklineWidget-60jVlbHA.cjs.map → SparklineWidget-DDRhatn7.cjs.map} +1 -1
  261. package/dist/{TabbookWidget-B1XKplGH.js → TabbookWidget-C-SU65IF.js} +2 -2
  262. package/dist/{TabbookWidget-B1XKplGH.js.map → TabbookWidget-C-SU65IF.js.map} +1 -1
  263. package/dist/{TabbookWidget-D1CVT9IK.cjs → TabbookWidget-C8k2kKLX.cjs} +2 -2
  264. package/dist/{TabbookWidget-D1CVT9IK.cjs.map → TabbookWidget-C8k2kKLX.cjs.map} +1 -1
  265. package/dist/TargetsTab-DyfyM9sC.js +117 -0
  266. package/dist/TargetsTab-DyfyM9sC.js.map +1 -0
  267. package/dist/TargetsTab-pU_wu9d-.cjs +2 -0
  268. package/dist/TargetsTab-pU_wu9d-.cjs.map +1 -0
  269. package/dist/TextBoxDialog-C60jmnyN.js +98 -0
  270. package/dist/TextBoxDialog-C60jmnyN.js.map +1 -0
  271. package/dist/TextBoxDialog-DWt30tB8.cjs +2 -0
  272. package/dist/TextBoxDialog-DWt30tB8.cjs.map +1 -0
  273. package/dist/TextboxWidget-CRDu77NK.cjs +2 -0
  274. package/dist/{TextboxWidget-BDG4NxRw.cjs.map → TextboxWidget-CRDu77NK.cjs.map} +1 -1
  275. package/dist/{TextboxWidget-C-_M2M4l.js → TextboxWidget-Dn1Ds-b0.js} +4 -4
  276. package/dist/{TextboxWidget-C-_M2M4l.js.map → TextboxWidget-Dn1Ds-b0.js.map} +1 -1
  277. package/dist/{TextfieldWidget-C08N4JE8.js → TextfieldWidget-C0C7NL53.js} +2 -2
  278. package/dist/{TextfieldWidget-C08N4JE8.js.map → TextfieldWidget-C0C7NL53.js.map} +1 -1
  279. package/dist/{TextfieldWidget-BGJv9Lox.cjs → TextfieldWidget-DGdD6b_-.cjs} +2 -2
  280. package/dist/{TextfieldWidget-BGJv9Lox.cjs.map → TextfieldWidget-DGdD6b_-.cjs.map} +1 -1
  281. package/dist/{TimeWidget-DtwdEcFg.js → TimeWidget-AFOTVB4w.js} +3 -3
  282. package/dist/{TimeWidget-DtwdEcFg.js.map → TimeWidget-AFOTVB4w.js.map} +1 -1
  283. package/dist/{TimeWidget-CGCOIouj.cjs → TimeWidget-BlZoS24B.cjs} +2 -2
  284. package/dist/{TimeWidget-CGCOIouj.cjs.map → TimeWidget-BlZoS24B.cjs.map} +1 -1
  285. package/dist/{TitleWidget-CT-aLcNb.js → TitleWidget-CbS_wrQw.js} +2 -2
  286. package/dist/{TitleWidget-CT-aLcNb.js.map → TitleWidget-CbS_wrQw.js.map} +1 -1
  287. package/dist/{TitleWidget-BljFH9RB.cjs → TitleWidget-DDEnHVPP.cjs} +2 -2
  288. package/dist/{TitleWidget-BljFH9RB.cjs.map → TitleWidget-DDEnHVPP.cjs.map} +1 -1
  289. package/dist/ToolsTab-BvpoO0wt.js +1501 -0
  290. package/dist/{ToolsTab-NveeVXz2.js.map → ToolsTab-BvpoO0wt.js.map} +1 -1
  291. package/dist/ToolsTab-DCRNrlhT.cjs +7 -0
  292. package/dist/{ToolsTab-RMTst_Sy.cjs.map → ToolsTab-DCRNrlhT.cjs.map} +1 -1
  293. package/dist/{TopBar-CnJNNJlV.js → TopBar-AjYGyx8W.js} +68 -64
  294. package/dist/TopBar-AjYGyx8W.js.map +1 -0
  295. package/dist/TopBar-vznpQjGN.cjs +2 -0
  296. package/dist/TopBar-vznpQjGN.cjs.map +1 -0
  297. package/dist/UpgradeToEnterpriseDialog-1fVtqbze.cjs +2 -0
  298. package/dist/UpgradeToEnterpriseDialog-1fVtqbze.cjs.map +1 -0
  299. package/dist/UpgradeToEnterpriseDialog-CMVEjihv.js +95 -0
  300. package/dist/UpgradeToEnterpriseDialog-CMVEjihv.js.map +1 -0
  301. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-B98GsSQS.cjs +1497 -0
  302. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-B98GsSQS.cjs.map +1 -0
  303. package/dist/{WidgetComponents-C1lSLZ0I.js → UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BOiUmW4q.js} +10636 -10597
  304. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-BOiUmW4q.js.map +1 -0
  305. package/dist/{VWidget-DQqb7NVW.js → VWidget-BlF_o-7Z.js} +3 -3
  306. package/dist/{VWidget-DQqb7NVW.js.map → VWidget-BlF_o-7Z.js.map} +1 -1
  307. package/dist/{VWidget-2N2cOosI.cjs → VWidget-CMKh-tv6.cjs} +2 -2
  308. package/dist/{VWidget-2N2cOosI.cjs.map → VWidget-CMKh-tv6.cjs.map} +1 -1
  309. package/dist/{ValueWidget-C6RanBj3.js → ValueWidget-DFUfM5tw.js} +16 -14
  310. package/dist/ValueWidget-DFUfM5tw.js.map +1 -0
  311. package/dist/ValueWidget-K7SCPEB6.cjs +2 -0
  312. package/dist/ValueWidget-K7SCPEB6.cjs.map +1 -0
  313. package/dist/{ValuelimitsbarWidget-B3bvjfxc.js → ValuelimitsbarWidget-CALgABsT.js} +4 -4
  314. package/dist/{ValuelimitsbarWidget-B3bvjfxc.js.map → ValuelimitsbarWidget-CALgABsT.js.map} +1 -1
  315. package/dist/{ValuelimitsbarWidget-C0HROxrb.cjs → ValuelimitsbarWidget-DcY2NV9X.cjs} +2 -2
  316. package/dist/{ValuelimitsbarWidget-C0HROxrb.cjs.map → ValuelimitsbarWidget-DcY2NV9X.cjs.map} +1 -1
  317. package/dist/{ValuelimitscolumnWidget-QvhI6EcE.js → ValuelimitscolumnWidget-Bs91VFLz.js} +4 -4
  318. package/dist/{ValuelimitscolumnWidget-QvhI6EcE.js.map → ValuelimitscolumnWidget-Bs91VFLz.js.map} +1 -1
  319. package/dist/{ValuelimitscolumnWidget-CWvLfg8u.cjs → ValuelimitscolumnWidget-DQKvlGap.cjs} +2 -2
  320. package/dist/{ValuelimitscolumnWidget-CWvLfg8u.cjs.map → ValuelimitscolumnWidget-DQKvlGap.cjs.map} +1 -1
  321. package/dist/{ValuerangebarWidget-Dt3K9BnC.js → ValuerangebarWidget-C7WHyR2h.js} +4 -4
  322. package/dist/{ValuerangebarWidget-Dt3K9BnC.js.map → ValuerangebarWidget-C7WHyR2h.js.map} +1 -1
  323. package/dist/{ValuerangebarWidget-DyN78cQl.cjs → ValuerangebarWidget-DnWuvusw.cjs} +2 -2
  324. package/dist/{ValuerangebarWidget-DyN78cQl.cjs.map → ValuerangebarWidget-DnWuvusw.cjs.map} +1 -1
  325. package/dist/{VerticalWidget-BIIViZgI.js → VerticalWidget-COP5oVCK.js} +2 -2
  326. package/dist/{VerticalWidget-BIIViZgI.js.map → VerticalWidget-COP5oVCK.js.map} +1 -1
  327. package/dist/{VerticalWidget-CFTOu4H8.cjs → VerticalWidget-eMN4dvxL.cjs} +2 -2
  328. package/dist/{VerticalWidget-CFTOu4H8.cjs.map → VerticalWidget-eMN4dvxL.cjs.map} +1 -1
  329. package/dist/{VerticalboxWidget-DY72fLHW.js → VerticalboxWidget-CDPoOx4C.js} +5 -5
  330. package/dist/{VerticalboxWidget-DY72fLHW.js.map → VerticalboxWidget-CDPoOx4C.js.map} +1 -1
  331. package/dist/{VerticalboxWidget-Z8-DWI8t.cjs → VerticalboxWidget-UIBpyEz_.cjs} +2 -2
  332. package/dist/{VerticalboxWidget-Z8-DWI8t.cjs.map → VerticalboxWidget-UIBpyEz_.cjs.map} +1 -1
  333. package/dist/Widget-Cg0pAxSF.cjs +2 -0
  334. package/dist/Widget-Cg0pAxSF.cjs.map +1 -0
  335. package/dist/{Widget-oyqWpFXJ.js → Widget-cmJ76_g1.js} +3 -3
  336. package/dist/Widget-cmJ76_g1.js.map +1 -0
  337. package/dist/components.cjs +3 -3
  338. package/dist/components.cjs.map +1 -1
  339. package/dist/components.js +285 -318
  340. package/dist/components.js.map +1 -1
  341. package/dist/index-DcL65Mqb.cjs +7 -0
  342. package/dist/index-DcL65Mqb.cjs.map +1 -0
  343. package/dist/{index-DwP8ryNM.js → index-qCq0L4jN.js} +332 -323
  344. package/dist/index-qCq0L4jN.js.map +1 -0
  345. package/dist/plugins.cjs +2 -2
  346. package/dist/plugins.cjs.map +1 -1
  347. package/dist/plugins.js +94 -89
  348. package/dist/plugins.js.map +1 -1
  349. package/dist/{timeFilters-CRYpYDdf.js → timeFilters-BKnCM4rv.js} +139 -136
  350. package/dist/{timeFilters-CRYpYDdf.js.map → timeFilters-BKnCM4rv.js.map} +1 -1
  351. package/dist/timeFilters-CJFxfjqN.cjs +2 -0
  352. package/dist/{timeFilters-8SaYvcH0.cjs.map → timeFilters-CJFxfjqN.cjs.map} +1 -1
  353. package/dist/tools/admin.cjs +10 -10
  354. package/dist/tools/admin.cjs.map +1 -1
  355. package/dist/tools/admin.js +380 -406
  356. package/dist/tools/admin.js.map +1 -1
  357. package/dist/tools/base.cjs +1 -1
  358. package/dist/tools/base.cjs.map +1 -1
  359. package/dist/tools/base.js +212 -215
  360. package/dist/tools/base.js.map +1 -1
  361. package/dist/tools/calendar.cjs +1 -1
  362. package/dist/tools/calendar.js +1 -1
  363. package/dist/tools/scriptrunner.cjs +7 -8
  364. package/dist/tools/scriptrunner.cjs.map +1 -1
  365. package/dist/tools/scriptrunner.js +2021 -2011
  366. package/dist/tools/scriptrunner.js.map +1 -1
  367. package/dist/util.cjs +1 -1
  368. package/dist/util.js +1 -1
  369. package/dist/vue-common.css +1 -1
  370. package/dist/widgets.cjs +1 -1
  371. package/dist/widgets.js +63 -63
  372. package/package.json +12 -12
  373. package/dist/ArrayplotWidget-COeaK_Lz.cjs +0 -2
  374. package/dist/BarColumn-CJLW1nXy.cjs +0 -2
  375. package/dist/ButtonWidget-HN8UHsme.cjs +0 -3
  376. package/dist/CriticalCmdDialog-BnxZlt7W.cjs +0 -2
  377. package/dist/CriticalCmdDialog-BnxZlt7W.cjs.map +0 -1
  378. package/dist/CriticalCmdDialog-DPIZOBeP.js.map +0 -1
  379. package/dist/DetailsDialog-DmEC5BTs.js.map +0 -1
  380. package/dist/DetailsDialog-mvxMFmgV.cjs +0 -2
  381. package/dist/DetailsDialog-mvxMFmgV.cjs.map +0 -1
  382. package/dist/EventListDialog-BHZLl28V.cjs +0 -2
  383. package/dist/EventListDialog-BHZLl28V.cjs.map +0 -1
  384. package/dist/EventListDialog-CSMSmCIT.js.map +0 -1
  385. package/dist/FormatvalueWidget-CdjCEAI7.cjs +0 -2
  386. package/dist/FormatvalueWidget-CdjCEAI7.cjs.map +0 -1
  387. package/dist/FormatvalueWidget-DN12xymS.js +0 -44
  388. package/dist/FormatvalueWidget-DN12xymS.js.map +0 -1
  389. package/dist/Graph-Bgo0cjl3.js.map +0 -1
  390. package/dist/Graph-Ujd2yaeI.cjs +0 -2
  391. package/dist/Graph-Ujd2yaeI.cjs.map +0 -1
  392. package/dist/ImageLoader-cRmBcpU9.cjs +0 -2
  393. package/dist/InterfacesTab-B4glsR9Z.js +0 -93
  394. package/dist/InterfacesTab-B4glsR9Z.js.map +0 -1
  395. package/dist/InterfacesTab-Co1Kd6Fa.cjs +0 -2
  396. package/dist/InterfacesTab-Co1Kd6Fa.cjs.map +0 -1
  397. package/dist/LabelvaluedescWidget-I6ljK--Y.cjs +0 -2
  398. package/dist/Layout-DuCYyOw4.cjs +0 -2
  399. package/dist/LedWidget-B2BcwiYF.cjs +0 -2
  400. package/dist/LedWidget-B2BcwiYF.cjs.map +0 -1
  401. package/dist/LedWidget-qH_FthkK.js.map +0 -1
  402. package/dist/LimitsbarWidget-B9lAB2RD.js.map +0 -1
  403. package/dist/LimitsbarWidget-CVCLFIhG.cjs +0 -2
  404. package/dist/LimitsbarWidget-CVCLFIhG.cjs.map +0 -1
  405. package/dist/LinegraphWidget-Bf8DIwEn.cjs +0 -2
  406. package/dist/MatrixbycolumnsWidget-DpdFzNeP.cjs +0 -2
  407. package/dist/MicroservicesTab-B5n-mN8G.cjs +0 -2
  408. package/dist/MicroservicesTab-B5n-mN8G.cjs.map +0 -1
  409. package/dist/MicroservicesTab-mCdS0v39.js +0 -264
  410. package/dist/MicroservicesTab-mCdS0v39.js.map +0 -1
  411. package/dist/Openc3Screen-BYhHaH_I.cjs +0 -5
  412. package/dist/Openc3Screen-BYhHaH_I.cjs.map +0 -1
  413. package/dist/Openc3Screen-Cud0OCFu.js +0 -1789
  414. package/dist/Openc3Screen-Cud0OCFu.js.map +0 -1
  415. package/dist/OutputDialog-DXoL9VPw.cjs +0 -2
  416. package/dist/OutputDialog-DXoL9VPw.cjs.map +0 -1
  417. package/dist/OutputDialog-zVPZiZay.js.map +0 -1
  418. package/dist/PackagesTab-CvT2JyMA.cjs +0 -2
  419. package/dist/PackagesTab-CvT2JyMA.cjs.map +0 -1
  420. package/dist/PackagesTab-SWcXumpK.js +0 -332
  421. package/dist/PackagesTab-SWcXumpK.js.map +0 -1
  422. package/dist/PluginsTab-B64OvayB.js.map +0 -1
  423. package/dist/PluginsTab-CfpwWsqv.cjs +0 -6
  424. package/dist/PluginsTab-CfpwWsqv.cjs.map +0 -1
  425. package/dist/RedisTab-67UcKoPf.cjs +0 -2
  426. package/dist/RoutersTab-BBPlFi_z.cjs +0 -2
  427. package/dist/RoutersTab-BBPlFi_z.cjs.map +0 -1
  428. package/dist/RoutersTab-Cs2dFVNA.js +0 -95
  429. package/dist/RoutersTab-Cs2dFVNA.js.map +0 -1
  430. package/dist/ScriptChooser-EV65rbWx.js +0 -199
  431. package/dist/ScriptChooser-EV65rbWx.js.map +0 -1
  432. package/dist/ScriptChooser-vyZwngrz.cjs +0 -2
  433. package/dist/ScriptChooser-vyZwngrz.cjs.map +0 -1
  434. package/dist/SecretsTab-0IFqUxNJ.cjs +0 -2
  435. package/dist/SecretsTab-0IFqUxNJ.cjs.map +0 -1
  436. package/dist/SecretsTab-DVyyyGlG.js.map +0 -1
  437. package/dist/SettingsTab-B1LvOLG2.cjs +0 -3
  438. package/dist/SignalWidget-RvRwpE8T.cjs.map +0 -1
  439. package/dist/SignalWidget-d9-6h85k.js.map +0 -1
  440. package/dist/SimpleTextDialog-Cpbt7Q-8.cjs +0 -2
  441. package/dist/SimpleTextDialog-Cpbt7Q-8.cjs.map +0 -1
  442. package/dist/SimpleTextDialog-pwN8oRy1.js +0 -107
  443. package/dist/SimpleTextDialog-pwN8oRy1.js.map +0 -1
  444. package/dist/SparklineWidget-60jVlbHA.cjs +0 -2
  445. package/dist/TargetsTab-BkBkXn9A.js +0 -129
  446. package/dist/TargetsTab-BkBkXn9A.js.map +0 -1
  447. package/dist/TargetsTab-C-m26Eqq.cjs +0 -2
  448. package/dist/TargetsTab-C-m26Eqq.cjs.map +0 -1
  449. package/dist/TextBoxDialog-DOJ5d2RM.js +0 -110
  450. package/dist/TextBoxDialog-DOJ5d2RM.js.map +0 -1
  451. package/dist/TextBoxDialog-DfMXg_5C.cjs +0 -2
  452. package/dist/TextBoxDialog-DfMXg_5C.cjs.map +0 -1
  453. package/dist/TextboxWidget-BDG4NxRw.cjs +0 -2
  454. package/dist/ToolsTab-NveeVXz2.js +0 -1521
  455. package/dist/ToolsTab-RMTst_Sy.cjs +0 -7
  456. package/dist/TopBar-CnJNNJlV.js.map +0 -1
  457. package/dist/TopBar-Cnmb6DyC.cjs +0 -2
  458. package/dist/TopBar-Cnmb6DyC.cjs.map +0 -1
  459. package/dist/UpgradeToEnterpriseDialog-BvfgoNB1.js +0 -94
  460. package/dist/UpgradeToEnterpriseDialog-BvfgoNB1.js.map +0 -1
  461. package/dist/UpgradeToEnterpriseDialog-sUipOVpB.cjs +0 -2
  462. package/dist/UpgradeToEnterpriseDialog-sUipOVpB.cjs.map +0 -1
  463. package/dist/ValueWidget-C6RanBj3.js.map +0 -1
  464. package/dist/ValueWidget-Cu7hgKja.cjs +0 -2
  465. package/dist/ValueWidget-Cu7hgKja.cjs.map +0 -1
  466. package/dist/Widget-ChoIB2dd.cjs +0 -2
  467. package/dist/Widget-ChoIB2dd.cjs.map +0 -1
  468. package/dist/Widget-oyqWpFXJ.js.map +0 -1
  469. package/dist/WidgetComponents-C1lSLZ0I.js.map +0 -1
  470. package/dist/WidgetComponents-utpQ592X.cjs +0 -1493
  471. package/dist/WidgetComponents-utpQ592X.cjs.map +0 -1
  472. package/dist/index-BX05anye.cjs +0 -7
  473. package/dist/index-BX05anye.cjs.map +0 -1
  474. package/dist/index-DwP8ryNM.js.map +0 -1
  475. package/dist/timeFilters-8SaYvcH0.cjs +0 -2
@@ -1,13 +1,13 @@
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
- `),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
- `],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 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
- `),p<o.ace.getSession().getLength()-1&&(f+=`
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(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("../index-DcL65Mqb.cjs"),n=require("vue"),I=require("../CustomIcon-Bop2mEnu.cjs"),E=require("../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-B98GsSQS.cjs"),S=require("../TopBar-vznpQjGN.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"};function ge(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"),h=n.resolveComponent("v-col"),g=n.resolveComponent("v-list-item-title"),p=n.resolveComponent("v-progress-circular"),_=n.resolveComponent("v-list-item"),x=n.resolveComponent("v-divider"),b=n.resolveComponent("v-card-text"),m=n.resolveComponent("v-card"),w=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(w,{modelValue:o.show,"onUpdate:modelValue":t[0]||(t[0]=C=>o.show=C),width:"600"},{default:n.withCtx(()=>[n.createVNode(m,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(b,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(h,null,{default:n.withCtx(()=>[n.createElementVNode("div",fe,[n.createVNode(u,{block:"","data-test":"searchGithub",color:"primary",disabled:l.disableSearch,onClick:o.searchGithub},{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,["disabled","onClick"])])]),_: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,(C,v)=>(n.openBlock(),n.createElementBlock("div",{key:v},[n.createVNode(_,null,{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(C.name),1)]),_:2},1024),n.createVNode(_,{icon:""},{default:n.withCtx(()=>[l.activeDownload?(n.openBlock(),n.createBlock(p,{key:0,indeterminate:"",color:"primary"})):(n.openBlock(),n.createBlock(u,{key:1,icon:"mdi-cloud-download",variant:"text",disabled:l.activeDownload,onClick:V=>o.downloadGem(C)},null,8,["disabled","onClick"]))]),_:2},1024)]),_:2},1024),v<o.listData.length-1?(n.openBlock(),n.createBlock(x,{key:v})):n.createCommentVNode("",!0)]))),128))]))])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const pe=I._export_sfc(ce,[["render",ge]]),me={props:{content:{type:String,required:!0},type:String,name:String,modelValue:Boolean,readonly:Boolean},data(){return{editor:null,contextMenu:!1,menuX:0,menuY:0}},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}},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(),S.AceEditorUtils.applyVimModeIfEnabled(this.editor),this.editor.focus(),this.readonly&&this.editor.setReadOnly(!0)},beforeUnmount(){this.editor&&this.editor.destroy()},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(){S.AceEditorUtils.toggleVimMode(this.editor)}}},_e=["textContent"],be={class:"pa-3"},we={key:0},Ce=["textContent"];function xe(e,t,i,r,l,o){const s=n.resolveComponent("v-spacer"),a=n.resolveComponent("v-btn"),c=n.resolveComponent("v-toolbar"),d=n.resolveComponent("v-row"),u=n.resolveComponent("v-col"),h=n.resolveComponent("v-file-input"),g=n.resolveComponent("v-list-item"),p=n.resolveComponent("v-list"),_=n.resolveComponent("v-menu"),x=n.resolveComponent("v-card-text"),b=n.resolveComponent("v-card"),m=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(m,{modelValue:o.show,"onUpdate:modelValue":t[4]||(t[4]=w=>o.show=w),persistent:!i.readonly,width:"80vw"},{default:n.withCtx(()=>[n.createVNode(b,null,{default:n.withCtx(()=>[n.createElementVNode("form",{onSubmit:t[3]||(t[3]=n.withModifiers((...w)=>o.submit&&o.submit(...w),["prevent"]))},[n.createVNode(c,{height:"24"},{default:n.withCtx(()=>[n.createVNode(s),n.createElementVNode("span",{textContent:n.toDisplayString(o.title)},null,8,_e),n.createVNode(s),n.createVNode(a,{class:"mx-2",icon:"mdi-download",variant:"text",density:"compact","data-test":"downloadIcon",onClick:o.download},null,8,["onClick"])]),_:1}),n.createVNode(x,null,{default:n.withCtx(()=>[n.createElementVNode("div",be,[i.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",we,[n.createVNode(d,{class:"mt-3"},{default:n.withCtx(()=>t[5]||(t[5]=[n.createTextVNode(" Upload a file. ")])),_:1}),n.createVNode(d,{"no-gutters":"",align:"center"},{default:n.withCtx(()=>[n.createVNode(u,{cols:"3"},{default:n.withCtx(()=>[n.createVNode(a,{block:"",color:"success",disabled:!e.file||e.loadingFile||i.readonly,loading:e.loadingFile,"data-test":"editScreenLoadBtn",onClick:e.loadFile},{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,["disabled","loading","onClick"])]),_:1}),n.createVNode(u,{cols:"9"},{default:n.withCtx(()=>[n.createVNode(h,{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(d,{"no-gutters":""},{default:n.withCtx(()=>[n.createElementVNode("pre",{ref:"editor",class:"editor",onContextmenu:t[1]||(t[1]=n.withModifiers((...w)=>o.showContextMenu&&o.showContextMenu(...w),["prevent"]))},null,544),n.createVNode(_,{modelValue:l.contextMenu,"onUpdate:modelValue":t[2]||(t[2]=w=>l.contextMenu=w),target:[l.menuX,l.menuY]},{default:n.withCtx(()=>[n.createVNode(p,null,{default:n.withCtx(()=>[n.createVNode(g,{title:"Toggle Vim mode","prepend-icon":"extras:vim",onClick:o.toggleVimMode},null,8,["onClick"])]),_:1})]),_:1},8,["modelValue","target"])]),_:1}),n.createVNode(d,{class:"my-3"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("span",{class:"text-red",textContent:n.toDisplayString(o.error)},null,8,Ce),[[n.vShow,o.error]])]),_:1}),n.createVNode(d,null,{default:n.withCtx(()=>[n.createVNode(s),n.createVNode(a,{variant:"outlined",class:"mx-2","data-test":"editCancelBtn",onClick:n.withModifiers(o.close,["prevent"])},{default:n.withCtx(()=>t[8]||(t[8]=[n.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),i.readonly?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(a,{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,["modelValue","persistent"])}const ve=I._export_sfc(me,[["render",xe],["__scopeId","data-v-e84cb3ed"]]),ye={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.li.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"),h=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,w)=>(n.openBlock(),n.createBlock(u,{key:w,lines:"two"},{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(h,{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 Ee=I._export_sfc(ye,[["render",Ve]]),te=[{displayName:"Plugins",name:"PluginsTab",path:"plugins",component:()=>Promise.resolve().then(()=>require("../PluginsTab-BKJo5vK-.cjs"))},{displayName:"Targets",name:"TargetsTab",path:"targets",component:()=>Promise.resolve().then(()=>require("../TargetsTab-pU_wu9d-.cjs"))},{displayName:"Interfaces",name:"InterfacesTab",path:"interfaces",component:()=>Promise.resolve().then(()=>require("../InterfacesTab-CnQLkjoz.cjs"))},{displayName:"Routers",name:"RoutersTab",path:"routers",component:()=>Promise.resolve().then(()=>require("../RoutersTab-DOseaOsv.cjs"))},{displayName:"Microservices",name:"MicroservicesTab",path:"microservices",component:()=>Promise.resolve().then(()=>require("../MicroservicesTab-7mVRcHEj.cjs"))},{displayName:"Packages",name:"PackagesTab",path:"packages",component:()=>Promise.resolve().then(()=>require("../PackagesTab-BxP1kiSR.cjs"))},{displayName:"Tools",name:"ToolsTab",path:"tools",component:()=>Promise.resolve().then(()=>require("../ToolsTab-DCRNrlhT.cjs"))},{displayName:"Redis",name:"RedisTab",path:"redis",component:()=>Promise.resolve().then(()=>require("../RedisTab-CWYntIvy.cjs"))},{displayName:"Secrets",name:"SecretsTab",path:"secrets",component:()=>Promise.resolve().then(()=>require("../SecretsTab-B49h9PhL.cjs"))},{displayName:"Settings",name:"SettingsTab",path:"settings",component:()=>Promise.resolve().then(()=>require("../SettingsTab-fmHVuOps.cjs"))}],ke={components:{TopBar:S.TopBar},data(){return{title:"Administrator Console",curTab:null}},computed:{tabs:function(){return te.map(e=>({displayName:e.displayName,path:{name:e.name}}))}}};function Ne(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]=h=>l.curTab=h),"fixed-tabs":""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.tabs,(h,g)=>(n.openBlock(),n.createBlock(a,{key:g,to:h.path},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(h.displayName),1)]),_:2},1032,["to"]))),128))]),_:1},8,["modelValue"]),n.createVNode(d)]),_:1})])}const Se=I._export_sfc(ke,[["render",Ne]]),f=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};f.Diff=function(e,t){this[0]=e,this[1]=t};f.Diff.prototype.length=2;f.Diff.prototype.toString=function(){return this[0]+","+this[1]};f.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 f.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 f.Diff(0,a)),c&&d.push(new f.Diff(0,c)),this.diff_cleanupMerge(d),d};f.prototype.diff_compute_=function(e,t,i,r){let l;if(!e)return[new f.Diff(1,t)];if(!t)return[new f.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 f.Diff(1,o.substring(0,a)),new f.Diff(0,s),new f.Diff(1,o.substring(a+s.length))],e.length>t.length&&(l[0][0]=l[2][0]=-1),l):s.length==1?[new f.Diff(-1,e),new f.Diff(1,t)]:i&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,r):this.diff_bisect_(e,t,r)};f.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 f.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 h=this.diff_main(d,u,!1,i);for(let g=h.length-1;g>=0;g--)o.splice(s,0,h[g]);s=s+h.length}c=0,a=0,d="",u="";break}s++}return o.pop(),o};f.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,h=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 w=s+m,C;m==-b||m!=b&&c[w-1]<c[w+1]?C=c[w+1]:C=c[w-1]+1;let v=C-m;for(;C<r&&v<l&&e.charAt(C)==t.charAt(v);)C++,v++;if(c[w]=C,C>r)p+=2;else if(v>l)g+=2;else if(h){let V=s+u-m;if(V>=0&&V<a&&d[V]!=-1){let N=r-d[V];if(C>=N)return this.diff_bisectSplit_(e,t,C,v,i)}}}for(let m=-b+_;m<=b-x;m+=2){let w=s+m,C;m==-b||m!=b&&d[w-1]<d[w+1]?C=d[w+1]:C=d[w-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[w]=C,C>r)x+=2;else if(v>l)_+=2;else if(!h){let V=s+u-m;if(V>=0&&V<a&&c[V]!=-1){let N=c[V],T=s+N-V;if(C=r-C,N>=C)return this.diff_bisectSplit_(e,t,N,T,i)}}}}return[new f.Diff(-1,e),new f.Diff(1,t)]};f.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)};f.prototype.diff_linesToChars_=function(e,t){let i=[],r={};i[0]="";function l(c){let d="",u=0,h=-1,g=i.length;for(;h<c.length-1;){h=c.indexOf(`
2
+ `,u),h==-1&&(h=c.length-1);let p=c.substring(u,h+1);(r.hasOwnProperty?r.hasOwnProperty(p):r[p]!==void 0)?d+=String.fromCharCode(r[p]):(g==o&&(p=c.substring(u),h=c.length),d+=String.fromCharCode(g),r[p]=g,i[g++]=p),u=h+1}return d}let o=4e4,s=l(e);o=65535;let a=l(t);return{chars1:s,chars2:a,lineArray:i}};f.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("")}};f.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};f.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};f.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++)}};f.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)),w=-1,C="",v,V,N,T;for(;(w=x.indexOf(m,w+1))!=-1;){let L=l.diff_commonPrefix(_.substring(b),x.substring(w)),D=l.diff_commonSuffix(_.substring(0,b),x.substring(0,w));C.length<D+L&&(C=x.substring(w-D,w)+x.substring(w,w+L),v=_.substring(0,b-D),V=_.substring(b+L),N=x.substring(0,w-D),T=x.substring(w+L))}return C.length*2>=_.length?[v,V,N,T,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,h,g;e.length>t.length?(d=c[0],u=c[1],h=c[2],g=c[3]):(h=c[0],g=c[1],d=c[2],u=c[3]);let p=c[4];return[d,u,h,g,p]};f.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 f.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],h=e[o][1],g=this.diff_commonOverlap_(u,h),p=this.diff_commonOverlap_(h,u);g>=p?(g>=u.length/2||g>=h.length/2)&&(e.splice(o,0,new f.Diff(0,h.substring(0,g))),e[o-1][1]=u.substring(0,u.length-g),e[o+1][1]=h.substring(g),o++):(p>=u.length/2||p>=h.length/2)&&(e.splice(o,0,new f.Diff(0,u.substring(0,p))),e[o-1][0]=1,e[o-1][1]=h.substring(0,h.length-p),e[o+1][0]=-1,e[o+1][1]=u.substring(p),o++),o++}o++}};f.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(f.nonAlphaNumericRegex_),c=s.match(f.nonAlphaNumericRegex_),d=a&&o.match(f.whitespaceRegex_),u=c&&s.match(f.whitespaceRegex_),h=d&&o.match(f.linebreakRegex_),g=u&&s.match(f.linebreakRegex_),p=h&&r.match(f.blanklineEndRegex_),_=g&&l.match(f.blanklineStartRegex_);return p||_?5:h||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 h=l.substring(l.length-s);r=r.substring(0,r.length-s),l=h+l.substring(0,l.length-s),o=h+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 h=t(r,l)+t(l,o);h>=u&&(u=h,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++}};f.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;f.whitespaceRegex_=/\s/;f.linebreakRegex_=/[\r\n]/;f.blanklineEndRegex_=/\n\r?\n$/;f.blanklineStartRegex_=/^\r?\n\r?\n/;f.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 f.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)};f.prototype.diff_cleanupMerge=function(e){e.push(new f.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 f.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 f.Diff(-1,l)),t++),o.length&&(e.splice(t,0,new f.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)};f.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};f.prototype.isHighSurrogate=function(e){let t=e.charCodeAt(0);return t>=55296&&t<=56319};f.prototype.isLowSurrogate=function(e){let t=e.charCodeAt(0);return t>=56320&&t<=57343};f.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")}};f.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}};f.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)};f.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("")};f.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("")};f.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("")};f.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};f.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," ")};f.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 f.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 f.Diff(0,r):l[o++]=new f.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};f.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};f.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,h=t.length+e.length,g;for(let p=0;p<t.length;p++){for(d=0,u=h;d<u;)o(p,i+u)<=s?d=u:h=u,u=Math.floor((h-d)/2+d);h=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 w=r[e.charAt(m-1)];if(p===0?b[m]=(b[m+1]<<1|1)&w:b[m]=(b[m+1]<<1|1)&w|((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};f.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};f.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&&f.prototype.isLowSurrogate(t[e.start2-r])&&r++;let l=t.substring(e.start2-r,e.start2);l&&e.diffs.unshift(new f.Diff(0,l)),e.start2+e.length1+r<t.length&&f.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 f.Diff(0,o)),e.start1-=l.length,e.start2-=l.length,e.length1+=l.length+o.length,e.length2+=l.length+o.length};f.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 f.patch_obj,a=0,c=0,d=0,u=r,h=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,h=h.substring(0,d)+_+h.substring(d);break;case-1:s.length1+=_.length,s.diffs[a++]=l[g],h=h.substring(0,d)+h.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 f.patch_obj,a=0,u=h,c=d);break}p!==1&&(c+=_.length),p!==-1&&(d+=_.length)}return a&&(this.patch_addContext_(s,u),o.push(s)),o};f.prototype.patch_deepCopy=function(e){let t=[];for(let i=0;i<e.length;i++){let r=e[i],l=new f.patch_obj;l.diffs=[];for(let o=0;o<r.diffs.length;o++)l.diffs[o]=new f.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};f.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 h=this.diff_main(a,u,!1);if(a.length>this.Match_MaxBits&&this.diff_levenshtein(h)/a.length>this.Patch_DeleteThreshold)l[o]=!1;else{this.diff_cleanupSemanticLossless(h);let g=0,p;for(let _=0;_<e[o].diffs.length;_++){let x=e[o].diffs[_];x[0]!==0&&(p=this.diff_xIndex(h,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(h,g+x[1].length))),x[0]!==-1&&(g+=x[1].length)}}}}}return t=t.substring(i.length,t.length-i.length),[t,l]};f.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 f.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 f.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};f.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 f.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 f.Diff(0,s)));r.diffs.length!==0&&a.length1<t-this.Patch_Margin;){let u=r.diffs[0][0],h=r.diffs[0][1];u===1?(a.length2+=h.length,o+=h.length,a.diffs.push(r.diffs.shift()),c=!1):u===-1&&a.diffs.length==1&&a.diffs[0][0]==0&&h.length>2*t?(a.length1+=h.length,l+=h.length,c=!1,a.diffs.push(new f.Diff(u,h)),r.diffs.shift()):(h=h.substring(0,t-a.length1-this.Patch_Margin),a.length1+=h.length,l+=h.length,u===0?(a.length2+=h.length,o+=h.length):c=!1,a.diffs.push(new f.Diff(u,h)),h==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(h.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 f.Diff(0,d))),c||e.splice(++i,0,a)}}};f.prototype.patch_toText=function(e){let t=[];for(let i=0;i<e.length;i++)t[i]=e[i];return t.join("")};f.prototype.patch_fromText=function(e){let t=[];if(!e)return t;let i=e.split(`
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 f.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 f.Diff(-1,c));else if(a=="+")s.diffs.push(new f.Diff(1,c));else if(a==" ")s.diffs.push(new f.Diff(0,c));else{if(a=="@")break;if(a!=="")throw new Error('Invalid patch mode "'+a+'" in: '+c)}r++}}return t};f.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0};f.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
+ `],r;f.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 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 Te(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 Le(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 h=s[c];for(;u&&u!==l;)u===h&&r.call(h,o),u=u.parentNode}})}let A;function De(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=De(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=Le(t),setTimeout(()=>{t.lineHeight=t.editors.left.ace.renderer.lineHeight,Me(t),Ae(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 f,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=Ue(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 Me(e){e.editors.left.ace.getSession().on("changeScrollTop",F(()=>{W(e)},16)),e.editors.right.ace.getSession().on("changeScrollTop",F(()=>{W(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=Te(()=>{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 h="";for(let p=a;p<c;p+=1)h+=ne(o,p),p===a&&h===""&&d!=0&&(h+=`
8
+ `),p<o.ace.getSession().getLength()-1&&(h+=`
9
+ `);const g=s.ace.getSession().getScrollTop();s.ace.getSession().replace(new A(d,0,u,0),h),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 X(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 W(e){oe(e),le(e),Be(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 Ie(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,h=-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,_,h,g),m=`L${d},${u} ${p},${_}`,w=`L${h},${g} ${a},${c}`,C=`${x} ${m} ${b} ${w}`,v=document.createElementNS(y.SVG_NS,"path");v.setAttribute("d",C),v.setAttribute("class",e.options.classes.connector),e.gutterSVG.appendChild(v)}function Re(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 Be(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,h=s.startLine===s.endLine,g=0;(s.startChar>0||h&&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,h=s.startLine===s.endLine,g=0;(s.startChar>0||h&&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 Ae(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 Pe(e){document.getElementById(e.options.classes.gutterID).removeChild(e.gutterSVG),re(e)}function Oe(e){e.copyLeftContainer.innerHTML="",e.copyRightContainer.innerHTML=""}function Ue(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){Pe(e),Oe(e),e.diffs.forEach((t,i)=>{e.options.showDiffs&&(X(e,y.EDITOR_LEFT,t.leftStartLine,t.leftEndLine,e.options.classes.diff),X(e,y.EDITOR_RIGHT,t.rightStartLine,t.rightEndLine,e.options.classes.diff),e.options.showConnectors&&Ie(e,t.leftStartLine,t.leftEndLine,t.rightStartLine,t.rightEndLine),Re(e,t,i))},e)}const Fe={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}},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())}}},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(),S.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),S.AceEditorUtils.applyVimModeIfEnabled(this.differ.getEditors().left),S.AceEditorUtils.applyVimModeIfEnabled(this.differ.getEditors().right),this.curDiff=-1)},beforeUnmount(){this.editor&&this.editor.destroy(),this.differ&&this.differ.destroy()},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},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;
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&&S.AceEditorUtils.toggleVimMode(this.editor)}}},He={style:{flex:"1"}},qe={class:"pa-3"},Ge={ref:"editor",class:"editor"},$e={key:0};function je(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"),h=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"),w=n.resolveComponent("v-menu"),C=n.resolveComponent("v-window"),v=n.resolveComponent("v-btn"),V=n.resolveComponent("v-spacer"),N=n.resolveComponent("v-card-actions"),T=n.resolveComponent("v-card-text"),L=n.resolveComponent("v-card"),D=n.resolveComponent("v-dialog");return n.openBlock(),n.createBlock(D,{modelValue:o.show,"onUpdate:modelValue":t[5]||(t[5]=k=>o.show=k),persistent:"",width:"80vw"},{default:n.withCtx(()=>[n.createVNode(L,null,{default:n.withCtx(()=>[n.createVNode(T,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",He," 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]=k=>l.tab=k),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((...k)=>e.onSubmit&&e.onSubmit(...k),["prevent"]))},[n.createVNode(C,{modelValue:l.tab,"onUpdate:modelValue":t[3]||(t[3]=k=>l.tab=k)},{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,(k,R)=>(n.openBlock(),n.createElementBlock("div",{key:R},[n.createVNode(g,{style:{width:"220px"}},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:l.localVariables[R],"onUpdate:modelValue":se=>l.localVariables[R]=se,clearable:"",type:"text",label:R},null,8,["modelValue","onUpdate:modelValue","label"])]),_: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((...k)=>o.showContextMenu&&o.showContextMenu(...k),["prevent"]))},null,544),n.createVNode(w,{modelValue:l.contextMenu,"onUpdate:modelValue":t[2]||(t[2]=k=>l.contextMenu=k),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",Ge,null,512)]),_:1}))]),_:1},8,["modelValue"]),n.createVNode(N,{class:"px-2 mt-2"},{default:n.withCtx(()=>[i.existingPluginTxt!==null?(n.openBlock(),n.createElementBlock("div",$e,[n.createVNode(v,{variant:"text",onClick:o.nextDiff},{default:n.withCtx(()=>t[12]||(t[12]=[n.createTextVNode(" Next Diff ")])),_:1},8,["onClick"]),n.createVNode(v,{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(v,{variant:"outlined","data-test":"edit-cancel",onClick:n.withModifiers(o.close,["prevent"])},{default:n.withCtx(()=>t[14]||(t[14]=[n.createTextVNode(" Cancel ")])),_:1},8,["onClick"]),n.createVNode(v,{variant:"flat","data-test":"edit-submit",onClick:o.submit},{default:n.withCtx(()=>t[15]||(t[15]=[n.createTextVNode(" Install ")])),_:1},8,["onClick"])]),_:1})],32)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const Ye=I._export_sfc(Fe,[["render",je],["__scopeId","data-v-5b18ccf5"]]);exports.DownloadDialog=pe;exports.EditDialog=ve;exports.ModifiedPluginDialog=Ee;exports.OpenC3Admin=Se;exports.PluginDialog=Ye;exports.TabsList=te;
13
13
  //# sourceMappingURL=admin.cjs.map