@openc3/vue-common 6.2.0 → 6.2.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 (405) hide show
  1. package/dist/ArrayWidget-BIQi_bWC.cjs +3 -0
  2. package/dist/ArrayWidget-BIQi_bWC.cjs.map +1 -0
  3. package/dist/ArrayWidget-BxEO5hEG.js +106 -0
  4. package/dist/ArrayWidget-BxEO5hEG.js.map +1 -0
  5. package/dist/ArrayplotWidget-B_VPoV4v.js +199 -0
  6. package/dist/ArrayplotWidget-B_VPoV4v.js.map +1 -0
  7. package/dist/ArrayplotWidget-Donxhd8_.cjs +2 -0
  8. package/dist/ArrayplotWidget-Donxhd8_.cjs.map +1 -0
  9. package/dist/AstroStatus-CILMWL6F.cjs +2 -0
  10. package/dist/AstroStatus-CILMWL6F.cjs.map +1 -0
  11. package/dist/AstroStatus-CY9VkeTN.js +40 -0
  12. package/dist/AstroStatus-CY9VkeTN.js.map +1 -0
  13. package/dist/BarColumn-C9dkpg2O.js +108 -0
  14. package/dist/BarColumn-C9dkpg2O.js.map +1 -0
  15. package/dist/BarColumn-CyRSZHMh.cjs +2 -0
  16. package/dist/BarColumn-CyRSZHMh.cjs.map +1 -0
  17. package/dist/BlockWidget-CuefOin6.js +112 -0
  18. package/dist/BlockWidget-CuefOin6.js.map +1 -0
  19. package/dist/BlockWidget-DPLN1jgj.cjs +3 -0
  20. package/dist/BlockWidget-DPLN1jgj.cjs.map +1 -0
  21. package/dist/ButtonWidget-B6HM0Doo.js +166 -0
  22. package/dist/ButtonWidget-B6HM0Doo.js.map +1 -0
  23. package/dist/ButtonWidget-DccYzIY3.cjs +3 -0
  24. package/dist/ButtonWidget-DccYzIY3.cjs.map +1 -0
  25. package/dist/CanvasWidget-BzTU9rc9.cjs +2 -0
  26. package/dist/CanvasWidget-BzTU9rc9.cjs.map +1 -0
  27. package/dist/CanvasWidget-DZQGG-yQ.js +39 -0
  28. package/dist/CanvasWidget-DZQGG-yQ.js.map +1 -0
  29. package/dist/CanvasdotWidget-6wuCSnw_.js +19 -0
  30. package/dist/CanvasdotWidget-6wuCSnw_.js.map +1 -0
  31. package/dist/CanvasdotWidget-B7VTS1QI.cjs +2 -0
  32. package/dist/CanvasdotWidget-B7VTS1QI.cjs.map +1 -0
  33. package/dist/CanvasimageWidget-BwYpfmDE.cjs +2 -0
  34. package/dist/CanvasimageWidget-BwYpfmDE.cjs.map +1 -0
  35. package/dist/CanvasimageWidget-mhcPpAuN.js +58 -0
  36. package/dist/CanvasimageWidget-mhcPpAuN.js.map +1 -0
  37. package/dist/CanvasimagevalueWidget-Cx-dH8Gc.js +107 -0
  38. package/dist/CanvasimagevalueWidget-Cx-dH8Gc.js.map +1 -0
  39. package/dist/CanvasimagevalueWidget-E_NsZ82T.cjs +2 -0
  40. package/dist/CanvasimagevalueWidget-E_NsZ82T.cjs.map +1 -0
  41. package/dist/CanvaslabelWidget-BBDuXWfU.cjs +2 -0
  42. package/dist/CanvaslabelWidget-BBDuXWfU.cjs.map +1 -0
  43. package/dist/CanvaslabelWidget-CQZCeohU.js +23 -0
  44. package/dist/CanvaslabelWidget-CQZCeohU.js.map +1 -0
  45. package/dist/CanvaslabelvalueWidget-CwmYDCjr.js +42 -0
  46. package/dist/CanvaslabelvalueWidget-CwmYDCjr.js.map +1 -0
  47. package/dist/CanvaslabelvalueWidget-DAdu7ujn.cjs +2 -0
  48. package/dist/CanvaslabelvalueWidget-DAdu7ujn.cjs.map +1 -0
  49. package/dist/CanvaslineWidget-Bv5da1Vy.cjs +2 -0
  50. package/dist/CanvaslineWidget-Bv5da1Vy.cjs.map +1 -0
  51. package/dist/CanvaslineWidget-nTP3fJB4.js +28 -0
  52. package/dist/CanvaslineWidget-nTP3fJB4.js.map +1 -0
  53. package/dist/CanvaslinevalueWidget-BVfUB96K.cjs +2 -0
  54. package/dist/CanvaslinevalueWidget-BVfUB96K.cjs.map +1 -0
  55. package/dist/CanvaslinevalueWidget-C3sJnjLQ.js +44 -0
  56. package/dist/CanvaslinevalueWidget-C3sJnjLQ.js.map +1 -0
  57. package/dist/CheckbuttonWidget-5-8YDsQL.js +37 -0
  58. package/dist/CheckbuttonWidget-5-8YDsQL.js.map +1 -0
  59. package/dist/CheckbuttonWidget-BGqD-BGc.cjs +2 -0
  60. package/dist/CheckbuttonWidget-BGqD-BGc.cjs.map +1 -0
  61. package/dist/ComboboxWidget-DoHMlSAr.cjs +2 -0
  62. package/dist/ComboboxWidget-DoHMlSAr.cjs.map +1 -0
  63. package/dist/ComboboxWidget-DzBL8h9f.js +37 -0
  64. package/dist/ComboboxWidget-DzBL8h9f.js.map +1 -0
  65. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs +2 -0
  66. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs.map +1 -0
  67. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js +10 -0
  68. package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js.map +1 -0
  69. package/dist/CriticalCmdDialog-DLEasFsx.js +270 -0
  70. package/dist/CriticalCmdDialog-DLEasFsx.js.map +1 -0
  71. package/dist/CriticalCmdDialog-DoLBrU2k.cjs +2 -0
  72. package/dist/CriticalCmdDialog-DoLBrU2k.cjs.map +1 -0
  73. package/dist/DateWidget-CW7Od7lB.js +40 -0
  74. package/dist/DateWidget-CW7Od7lB.js.map +1 -0
  75. package/dist/DateWidget-DKZz1J9J.cjs +2 -0
  76. package/dist/DateWidget-DKZz1J9J.cjs.map +1 -0
  77. package/dist/DetailsDialog-BvbziA7Y.js +767 -0
  78. package/dist/DetailsDialog-BvbziA7Y.js.map +1 -0
  79. package/dist/DetailsDialog-CiuQYvJK.cjs +2 -0
  80. package/dist/DetailsDialog-CiuQYvJK.cjs.map +1 -0
  81. package/dist/DynamicWidget-3wHr6Ng-.cjs +2 -0
  82. package/dist/DynamicWidget-3wHr6Ng-.cjs.map +1 -0
  83. package/dist/DynamicWidget-gFSYxzvT.js +35 -0
  84. package/dist/DynamicWidget-gFSYxzvT.js.map +1 -0
  85. package/dist/FormatvalueWidget-CGpnTqVH.js +44 -0
  86. package/dist/FormatvalueWidget-CGpnTqVH.js.map +1 -0
  87. package/dist/FormatvalueWidget-DFrbeKb9.cjs +2 -0
  88. package/dist/FormatvalueWidget-DFrbeKb9.cjs.map +1 -0
  89. package/dist/Graph-3rkhFP3G.js +1983 -0
  90. package/dist/Graph-3rkhFP3G.js.map +1 -0
  91. package/dist/Graph-C3vGMcos.cjs +2 -0
  92. package/dist/Graph-C3vGMcos.cjs.map +1 -0
  93. package/dist/GraphWidget-22NxFa9k.cjs +2 -0
  94. package/dist/GraphWidget-22NxFa9k.cjs.map +1 -0
  95. package/dist/GraphWidget-Dycey-mj.js +130 -0
  96. package/dist/GraphWidget-Dycey-mj.js.map +1 -0
  97. package/dist/HorizontalWidget-BBeB0eBI.cjs +2 -0
  98. package/dist/HorizontalWidget-BBeB0eBI.cjs.map +1 -0
  99. package/dist/HorizontalWidget-D31NRWy5.js +41 -0
  100. package/dist/HorizontalWidget-D31NRWy5.js.map +1 -0
  101. package/dist/HorizontalboxWidget-Br8dSVHD.js +38 -0
  102. package/dist/HorizontalboxWidget-Br8dSVHD.js.map +1 -0
  103. package/dist/HorizontalboxWidget-DsdzrCJx.cjs +2 -0
  104. package/dist/HorizontalboxWidget-DsdzrCJx.cjs.map +1 -0
  105. package/dist/HorizontallineWidget-BCKOQase.cjs +2 -0
  106. package/dist/HorizontallineWidget-BCKOQase.cjs.map +1 -0
  107. package/dist/HorizontallineWidget-CbxREBYI.js +11 -0
  108. package/dist/HorizontallineWidget-CbxREBYI.js.map +1 -0
  109. package/dist/IframeWidget-CZwsTgvX.cjs +2 -0
  110. package/dist/IframeWidget-CZwsTgvX.cjs.map +1 -0
  111. package/dist/IframeWidget-Ctj8OIcG.js +90 -0
  112. package/dist/IframeWidget-Ctj8OIcG.js.map +1 -0
  113. package/dist/ImageLoader-BrNrCBvi.js +36 -0
  114. package/dist/ImageLoader-BrNrCBvi.js.map +1 -0
  115. package/dist/ImageLoader-D_Gq-KxR.cjs +2 -0
  116. package/dist/ImageLoader-D_Gq-KxR.cjs.map +1 -0
  117. package/dist/ImageviewerWidget-DwRPFSLR.cjs +2 -0
  118. package/dist/ImageviewerWidget-DwRPFSLR.cjs.map +1 -0
  119. package/dist/ImageviewerWidget-XrsqxmLo.js +37 -0
  120. package/dist/ImageviewerWidget-XrsqxmLo.js.map +1 -0
  121. package/dist/InterfacesTab-CLaicsHA.cjs +2 -0
  122. package/dist/InterfacesTab-CLaicsHA.cjs.map +1 -0
  123. package/dist/InterfacesTab-DAeNlGlB.js +93 -0
  124. package/dist/InterfacesTab-DAeNlGlB.js.map +1 -0
  125. package/dist/LabelWidget-C-s8OVmA.cjs +2 -0
  126. package/dist/LabelWidget-C-s8OVmA.cjs.map +1 -0
  127. package/dist/LabelWidget-t7I87dp7.js +48 -0
  128. package/dist/LabelWidget-t7I87dp7.js.map +1 -0
  129. package/dist/LabelledWidget-C7TDf92M.js +42 -0
  130. package/dist/LabelledWidget-C7TDf92M.js.map +1 -0
  131. package/dist/LabelledWidget-DUpHxc9z.cjs +2 -0
  132. package/dist/LabelledWidget-DUpHxc9z.cjs.map +1 -0
  133. package/dist/LabelprogressbarWidget-D6cpayCR.cjs +2 -0
  134. package/dist/LabelprogressbarWidget-D6cpayCR.cjs.map +1 -0
  135. package/dist/LabelprogressbarWidget-wwLURt1u.js +43 -0
  136. package/dist/LabelprogressbarWidget-wwLURt1u.js.map +1 -0
  137. package/dist/LabelsparklineWidget-B3awLUyP.js +44 -0
  138. package/dist/LabelsparklineWidget-B3awLUyP.js.map +1 -0
  139. package/dist/LabelsparklineWidget-CJRnLETe.cjs +2 -0
  140. package/dist/LabelsparklineWidget-CJRnLETe.cjs.map +1 -0
  141. package/dist/LabelvalueWidget-Zx_yHCtl.js +58 -0
  142. package/dist/LabelvalueWidget-Zx_yHCtl.js.map +1 -0
  143. package/dist/LabelvalueWidget-owiMSCYl.cjs +2 -0
  144. package/dist/LabelvalueWidget-owiMSCYl.cjs.map +1 -0
  145. package/dist/LabelvaluedescWidget-BBSBh4vI.js +59 -0
  146. package/dist/LabelvaluedescWidget-BBSBh4vI.js.map +1 -0
  147. package/dist/LabelvaluedescWidget-MRmZBUc0.cjs +2 -0
  148. package/dist/LabelvaluedescWidget-MRmZBUc0.cjs.map +1 -0
  149. package/dist/LabelvaluelimitsbarWidget-BQ2XYPNE.cjs +2 -0
  150. package/dist/LabelvaluelimitsbarWidget-BQ2XYPNE.cjs.map +1 -0
  151. package/dist/LabelvaluelimitsbarWidget-CZueHYWG.js +57 -0
  152. package/dist/LabelvaluelimitsbarWidget-CZueHYWG.js.map +1 -0
  153. package/dist/LabelvaluelimitscolumnWidget-BTvzyQMq.js +47 -0
  154. package/dist/LabelvaluelimitscolumnWidget-BTvzyQMq.js.map +1 -0
  155. package/dist/LabelvaluelimitscolumnWidget-DNmVpU8J.cjs +2 -0
  156. package/dist/LabelvaluelimitscolumnWidget-DNmVpU8J.cjs.map +1 -0
  157. package/dist/LabelvaluerangebarWidget-BhYTBgDq.js +79 -0
  158. package/dist/LabelvaluerangebarWidget-BhYTBgDq.js.map +1 -0
  159. package/dist/LabelvaluerangebarWidget-DL0U8cbw.cjs +2 -0
  160. package/dist/LabelvaluerangebarWidget-DL0U8cbw.cjs.map +1 -0
  161. package/dist/Layout-Bh7VzCZd.js +14 -0
  162. package/dist/Layout-Bh7VzCZd.js.map +1 -0
  163. package/dist/Layout-DRL0EeSA.cjs +2 -0
  164. package/dist/Layout-DRL0EeSA.cjs.map +1 -0
  165. package/dist/LedWidget-B8rjFe1b.cjs +2 -0
  166. package/dist/LedWidget-B8rjFe1b.cjs.map +1 -0
  167. package/dist/LedWidget-CxJjJBBS.js +71 -0
  168. package/dist/LedWidget-CxJjJBBS.js.map +1 -0
  169. package/dist/LimitsbarWidget-CYIH8fdp.cjs +2 -0
  170. package/dist/LimitsbarWidget-CYIH8fdp.cjs.map +1 -0
  171. package/dist/LimitsbarWidget-Djui0IpK.js +69 -0
  172. package/dist/LimitsbarWidget-Djui0IpK.js.map +1 -0
  173. package/dist/LimitscolorWidget-CS0wpX9A.cjs +2 -0
  174. package/dist/LimitscolorWidget-CS0wpX9A.cjs.map +1 -0
  175. package/dist/LimitscolorWidget-DdmvKzmx.js +63 -0
  176. package/dist/LimitscolorWidget-DdmvKzmx.js.map +1 -0
  177. package/dist/LimitscolumnWidget-C_UW6xKq.cjs +2 -0
  178. package/dist/LimitscolumnWidget-C_UW6xKq.cjs.map +1 -0
  179. package/dist/LimitscolumnWidget-Cc19IEjq.js +66 -0
  180. package/dist/LimitscolumnWidget-Cc19IEjq.js.map +1 -0
  181. package/dist/LinegraphWidget-8td_PqgU.cjs +2 -0
  182. package/dist/LinegraphWidget-8td_PqgU.cjs.map +1 -0
  183. package/dist/LinegraphWidget-BtieJxeL.js +39 -0
  184. package/dist/LinegraphWidget-BtieJxeL.js.map +1 -0
  185. package/dist/MatrixbycolumnsWidget-CGOeCNW2.cjs +2 -0
  186. package/dist/MatrixbycolumnsWidget-CGOeCNW2.cjs.map +1 -0
  187. package/dist/MatrixbycolumnsWidget-DnExVRF8.js +56 -0
  188. package/dist/MatrixbycolumnsWidget-DnExVRF8.js.map +1 -0
  189. package/dist/MicroservicesTab-IbTmbPxO.js +268 -0
  190. package/dist/MicroservicesTab-IbTmbPxO.js.map +1 -0
  191. package/dist/MicroservicesTab-uMC8NebS.cjs +2 -0
  192. package/dist/MicroservicesTab-uMC8NebS.cjs.map +1 -0
  193. package/dist/OutputDialog-B4Q0QMJ1.cjs +2 -0
  194. package/dist/OutputDialog-B4Q0QMJ1.cjs.map +1 -0
  195. package/dist/OutputDialog-Ci5OT_fH.js +245 -0
  196. package/dist/OutputDialog-Ci5OT_fH.js.map +1 -0
  197. package/dist/PackagesTab-BX8YP3H1.js +332 -0
  198. package/dist/PackagesTab-BX8YP3H1.js.map +1 -0
  199. package/dist/PackagesTab-eYbk2vw7.cjs +2 -0
  200. package/dist/PackagesTab-eYbk2vw7.cjs.map +1 -0
  201. package/dist/PluginsTab-Ck3DvEGm.cjs +6 -0
  202. package/dist/PluginsTab-Ck3DvEGm.cjs.map +1 -0
  203. package/dist/PluginsTab-Ds3jk64b.js +599 -0
  204. package/dist/PluginsTab-Ds3jk64b.js.map +1 -0
  205. package/dist/ProgressbarWidget-CUIAYySg.cjs +2 -0
  206. package/dist/ProgressbarWidget-CUIAYySg.cjs.map +1 -0
  207. package/dist/ProgressbarWidget-DIfqhHRE.js +46 -0
  208. package/dist/ProgressbarWidget-DIfqhHRE.js.map +1 -0
  209. package/dist/RadiobuttonWidget-Cjk1JAP_.cjs +2 -0
  210. package/dist/RadiobuttonWidget-Cjk1JAP_.cjs.map +1 -0
  211. package/dist/RadiobuttonWidget-QzIkNP7m.js +34 -0
  212. package/dist/RadiobuttonWidget-QzIkNP7m.js.map +1 -0
  213. package/dist/RadiogroupWidget-B4lkYWaC.cjs +2 -0
  214. package/dist/RadiogroupWidget-B4lkYWaC.cjs.map +1 -0
  215. package/dist/RadiogroupWidget-Ci9sCX39.js +48 -0
  216. package/dist/RadiogroupWidget-Ci9sCX39.js.map +1 -0
  217. package/dist/RangebarWidget-CN0YuHqy.js +67 -0
  218. package/dist/RangebarWidget-CN0YuHqy.js.map +1 -0
  219. package/dist/RangebarWidget-nl0rzj93.cjs +2 -0
  220. package/dist/RangebarWidget-nl0rzj93.cjs.map +1 -0
  221. package/dist/RedisTab-CVimDkIE.js +135 -0
  222. package/dist/RedisTab-CVimDkIE.js.map +1 -0
  223. package/dist/RedisTab-DhS4GHDj.cjs +2 -0
  224. package/dist/RedisTab-DhS4GHDj.cjs.map +1 -0
  225. package/dist/RollupWidget-Bgudi_bt.cjs +2 -0
  226. package/dist/RollupWidget-Bgudi_bt.cjs.map +1 -0
  227. package/dist/RollupWidget-y4jBtJB2.js +83 -0
  228. package/dist/RollupWidget-y4jBtJB2.js.map +1 -0
  229. package/dist/RoutersTab-CzO10cVP.cjs +2 -0
  230. package/dist/RoutersTab-CzO10cVP.cjs.map +1 -0
  231. package/dist/RoutersTab-Dki_66av.js +95 -0
  232. package/dist/RoutersTab-Dki_66av.js.map +1 -0
  233. package/dist/ScriptChooser-BNm_zXxX.cjs +2 -0
  234. package/dist/ScriptChooser-BNm_zXxX.cjs.map +1 -0
  235. package/dist/ScriptChooser-l5i8c8KP.js +199 -0
  236. package/dist/ScriptChooser-l5i8c8KP.js.map +1 -0
  237. package/dist/ScrollwindowWidget-BIiV7xwi.cjs +2 -0
  238. package/dist/ScrollwindowWidget-BIiV7xwi.cjs.map +1 -0
  239. package/dist/ScrollwindowWidget-CBzYk4Y3.js +45 -0
  240. package/dist/ScrollwindowWidget-CBzYk4Y3.js.map +1 -0
  241. package/dist/SecretsTab-BSzFZ81X.cjs +2 -0
  242. package/dist/SecretsTab-BSzFZ81X.cjs.map +1 -0
  243. package/dist/SecretsTab-BjviaTxh.js +202 -0
  244. package/dist/SecretsTab-BjviaTxh.js.map +1 -0
  245. package/dist/SettingsTab-Bo_dYXgb.js +1382 -0
  246. package/dist/SettingsTab-Bo_dYXgb.js.map +1 -0
  247. package/dist/SettingsTab-DH8LAAoG.cjs +3 -0
  248. package/dist/SettingsTab-DH8LAAoG.cjs.map +1 -0
  249. package/dist/SignalWidget-CvZkvejy.cjs +2 -0
  250. package/dist/SignalWidget-CvZkvejy.cjs.map +1 -0
  251. package/dist/SignalWidget-DQ5Uc2uV.js +66 -0
  252. package/dist/SignalWidget-DQ5Uc2uV.js.map +1 -0
  253. package/dist/SimpleTextDialog-CheuP_ls.js +108 -0
  254. package/dist/SimpleTextDialog-CheuP_ls.js.map +1 -0
  255. package/dist/SimpleTextDialog-DmeNMMCR.cjs +2 -0
  256. package/dist/SimpleTextDialog-DmeNMMCR.cjs.map +1 -0
  257. package/dist/SpacerWidget-6rsc_dSM.js +19 -0
  258. package/dist/SpacerWidget-6rsc_dSM.js.map +1 -0
  259. package/dist/SpacerWidget-BBJR6HBQ.cjs +2 -0
  260. package/dist/SpacerWidget-BBJR6HBQ.cjs.map +1 -0
  261. package/dist/SparklineWidget-BxBLnjAO.cjs +2 -0
  262. package/dist/SparklineWidget-BxBLnjAO.cjs.map +1 -0
  263. package/dist/SparklineWidget-CZtvu2ss.js +48 -0
  264. package/dist/SparklineWidget-CZtvu2ss.js.map +1 -0
  265. package/dist/TabbookWidget-DNALU0jl.js +66 -0
  266. package/dist/TabbookWidget-DNALU0jl.js.map +1 -0
  267. package/dist/TabbookWidget-DyFQnA10.cjs +2 -0
  268. package/dist/TabbookWidget-DyFQnA10.cjs.map +1 -0
  269. package/dist/TargetsTab-Cd8U1aN_.js +129 -0
  270. package/dist/TargetsTab-Cd8U1aN_.js.map +1 -0
  271. package/dist/TargetsTab-DMiOliqg.cjs +2 -0
  272. package/dist/TargetsTab-DMiOliqg.cjs.map +1 -0
  273. package/dist/TextBoxDialog-DvUf3Cak.cjs +2 -0
  274. package/dist/TextBoxDialog-DvUf3Cak.cjs.map +1 -0
  275. package/dist/TextBoxDialog-fHkDTtzI.js +110 -0
  276. package/dist/TextBoxDialog-fHkDTtzI.js.map +1 -0
  277. package/dist/TextboxWidget-5hqPj74D.js +93 -0
  278. package/dist/TextboxWidget-5hqPj74D.js.map +1 -0
  279. package/dist/TextboxWidget-D6lW_dsU.cjs +2 -0
  280. package/dist/TextboxWidget-D6lW_dsU.cjs.map +1 -0
  281. package/dist/TextfieldWidget-Df0ANSiU.js +37 -0
  282. package/dist/TextfieldWidget-Df0ANSiU.js.map +1 -0
  283. package/dist/TextfieldWidget-iHN7-fyF.cjs +2 -0
  284. package/dist/TextfieldWidget-iHN7-fyF.cjs.map +1 -0
  285. package/dist/TimeWidget-C3NZqTEG.cjs +2 -0
  286. package/dist/TimeWidget-C3NZqTEG.cjs.map +1 -0
  287. package/dist/TimeWidget-C6XQMUG2.js +40 -0
  288. package/dist/TimeWidget-C6XQMUG2.js.map +1 -0
  289. package/dist/TitleWidget-B9SPUlbW.js +26 -0
  290. package/dist/TitleWidget-B9SPUlbW.js.map +1 -0
  291. package/dist/TitleWidget-CWZs33c4.cjs +2 -0
  292. package/dist/TitleWidget-CWZs33c4.cjs.map +1 -0
  293. package/dist/ToolsTab-CUpUmkZL.cjs +7 -0
  294. package/dist/ToolsTab-CUpUmkZL.cjs.map +1 -0
  295. package/dist/ToolsTab-Cgpb2nAW.js +1521 -0
  296. package/dist/ToolsTab-Cgpb2nAW.js.map +1 -0
  297. package/dist/TopBar-DuXL27iD.cjs +2 -0
  298. package/dist/TopBar-DuXL27iD.cjs.map +1 -0
  299. package/dist/TopBar-F1jHuFan.js +248 -0
  300. package/dist/TopBar-F1jHuFan.js.map +1 -0
  301. package/dist/UpgradeToEnterpriseDialog-DVcAH30Y.js +95 -0
  302. package/dist/UpgradeToEnterpriseDialog-DVcAH30Y.js.map +1 -0
  303. package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs +2 -0
  304. package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs.map +1 -0
  305. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs +1417 -0
  306. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs.map +1 -0
  307. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js +26941 -0
  308. package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js.map +1 -0
  309. package/dist/VWidget-C2x_zSC2.cjs +2 -0
  310. package/dist/VWidget-C2x_zSC2.cjs.map +1 -0
  311. package/dist/VWidget-C4spAawK.js +323 -0
  312. package/dist/VWidget-C4spAawK.js.map +1 -0
  313. package/dist/ValueWidget-D4RrYVEK.js +116 -0
  314. package/dist/ValueWidget-D4RrYVEK.js.map +1 -0
  315. package/dist/ValueWidget-Do3Yn47P.cjs +2 -0
  316. package/dist/ValueWidget-Do3Yn47P.cjs.map +1 -0
  317. package/dist/ValuelimitsbarWidget-Bc9_Vj_f.js +41 -0
  318. package/dist/ValuelimitsbarWidget-Bc9_Vj_f.js.map +1 -0
  319. package/dist/ValuelimitsbarWidget-DJuh7FOs.cjs +2 -0
  320. package/dist/ValuelimitsbarWidget-DJuh7FOs.cjs.map +1 -0
  321. package/dist/ValuelimitscolumnWidget-BFpG-H7v.cjs +2 -0
  322. package/dist/ValuelimitscolumnWidget-BFpG-H7v.cjs.map +1 -0
  323. package/dist/ValuelimitscolumnWidget-DHKIL7sf.js +40 -0
  324. package/dist/ValuelimitscolumnWidget-DHKIL7sf.js.map +1 -0
  325. package/dist/ValuerangebarWidget-BlZSaiXo.cjs +2 -0
  326. package/dist/ValuerangebarWidget-BlZSaiXo.cjs.map +1 -0
  327. package/dist/ValuerangebarWidget-CecQRIok.js +65 -0
  328. package/dist/ValuerangebarWidget-CecQRIok.js.map +1 -0
  329. package/dist/VerticalWidget--8UErB4q.cjs +2 -0
  330. package/dist/VerticalWidget--8UErB4q.cjs.map +1 -0
  331. package/dist/VerticalWidget-D8jUFxjS.js +40 -0
  332. package/dist/VerticalWidget-D8jUFxjS.js.map +1 -0
  333. package/dist/VerticalboxWidget-B4eGUSYH.js +37 -0
  334. package/dist/VerticalboxWidget-B4eGUSYH.js.map +1 -0
  335. package/dist/VerticalboxWidget-cxHq1WKQ.cjs +2 -0
  336. package/dist/VerticalboxWidget-cxHq1WKQ.cjs.map +1 -0
  337. package/dist/Widget-DNf52jRQ.cjs +2 -0
  338. package/dist/Widget-DNf52jRQ.cjs.map +1 -0
  339. package/dist/Widget-fRCERxGf.js +197 -0
  340. package/dist/Widget-fRCERxGf.js.map +1 -0
  341. package/dist/addMonths-BtG7uZLJ.js +19 -0
  342. package/dist/addMonths-BtG7uZLJ.js.map +1 -0
  343. package/dist/addMonths-n1tnl3ab.cjs +2 -0
  344. package/dist/addMonths-n1tnl3ab.cjs.map +1 -0
  345. package/dist/components.cjs +7 -0
  346. package/dist/components.cjs.map +1 -0
  347. package/dist/components.js +2973 -0
  348. package/dist/components.js.map +1 -0
  349. package/dist/fileIcon-BduOQcTc.cjs +2 -0
  350. package/dist/fileIcon-BduOQcTc.cjs.map +1 -0
  351. package/dist/fileIcon-DqRHb1_Z.js +22 -0
  352. package/dist/fileIcon-DqRHb1_Z.js.map +1 -0
  353. package/dist/format-B22VpiOS.cjs +2 -0
  354. package/dist/format-B22VpiOS.cjs.map +1 -0
  355. package/dist/format-CVeawcIv.js +1295 -0
  356. package/dist/format-CVeawcIv.js.map +1 -0
  357. package/dist/getDefaultOptions-Batab9o8.cjs +2 -0
  358. package/dist/getDefaultOptions-Batab9o8.cjs.map +1 -0
  359. package/dist/getDefaultOptions-BhSDk-Jo.js +8 -0
  360. package/dist/getDefaultOptions-BhSDk-Jo.js.map +1 -0
  361. package/dist/icons/status-dark.png +0 -0
  362. package/dist/icons/status-dark.xcf +0 -0
  363. package/dist/icons/status-light.png +0 -0
  364. package/dist/icons.cjs +2 -0
  365. package/dist/icons.cjs.map +1 -0
  366. package/dist/icons.js +157 -0
  367. package/dist/icons.js.map +1 -0
  368. package/dist/index-Bz_jHTkl.cjs +7 -0
  369. package/dist/index-Bz_jHTkl.cjs.map +1 -0
  370. package/dist/index-CFQnWdPA.js +1705 -0
  371. package/dist/index-CFQnWdPA.js.map +1 -0
  372. package/dist/parse-DnkEsW-3.js +1603 -0
  373. package/dist/parse-DnkEsW-3.js.map +1 -0
  374. package/dist/parse-DwfgQboe.cjs +2 -0
  375. package/dist/parse-DwfgQboe.cjs.map +1 -0
  376. package/dist/plugins.cjs +9 -0
  377. package/dist/plugins.cjs.map +1 -0
  378. package/dist/plugins.js +772 -0
  379. package/dist/plugins.js.map +1 -0
  380. package/dist/timeFilters-8SaYvcH0.cjs +2 -0
  381. package/dist/timeFilters-8SaYvcH0.cjs.map +1 -0
  382. package/dist/timeFilters-CRYpYDdf.js +622 -0
  383. package/dist/timeFilters-CRYpYDdf.js.map +1 -0
  384. package/dist/tools/admin.cjs +13 -0
  385. package/dist/tools/admin.cjs.map +1 -0
  386. package/dist/tools/admin.js +1944 -0
  387. package/dist/tools/admin.js.map +1 -0
  388. package/dist/tools/base.cjs +2 -0
  389. package/dist/tools/base.cjs.map +1 -0
  390. package/dist/tools/base.js +1683 -0
  391. package/dist/tools/base.js.map +1 -0
  392. package/dist/tools/calendar.cjs +2 -0
  393. package/dist/tools/calendar.cjs.map +1 -0
  394. package/dist/tools/calendar.js +1586 -0
  395. package/dist/tools/calendar.js.map +1 -0
  396. package/dist/util.cjs +2 -0
  397. package/dist/util.cjs.map +1 -0
  398. package/dist/util.js +9 -0
  399. package/dist/util.js.map +1 -0
  400. package/dist/vue-common.css +1 -0
  401. package/dist/widgets.cjs +2 -0
  402. package/dist/widgets.cjs.map +1 -0
  403. package/dist/widgets.js +132 -0
  404. package/dist/widgets.js.map +1 -0
  405. package/package.json +2 -2
@@ -0,0 +1,1944 @@
1
+ import { a as pe } from "../index-CFQnWdPA.js";
2
+ import { resolveComponent as _, createBlock as M, openBlock as S, withCtx as u, createVNode as g, createElementVNode as k, createElementBlock as V, createTextVNode as E, Fragment as P, renderList as F, createCommentVNode as H, toDisplayString as A, mergeProps as me, withModifiers as j, normalizeProps as _e, guardReactiveProps as be, withDirectives as we, vShow as ye, toRaw as ve } from "vue";
3
+ import { _ as U } from "../CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js";
4
+ import { c as R, a as xe } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js";
5
+ import "single-spa";
6
+ import { T as Le } from "../TopBar-F1jHuFan.js";
7
+ const Se = {
8
+ props: {
9
+ modelValue: Boolean
10
+ },
11
+ data() {
12
+ return {
13
+ url: "",
14
+ type: null,
15
+ response: null,
16
+ activeDownload: !1,
17
+ disableSearch: !1,
18
+ expanded: []
19
+ };
20
+ },
21
+ computed: {
22
+ show: {
23
+ get() {
24
+ return this.modelValue;
25
+ },
26
+ set(e) {
27
+ this.$emit("update:modelValue", e);
28
+ }
29
+ },
30
+ listData: function() {
31
+ return this.response ? this.type === "github" ? this.parseGithub() : this.parseRuby() : [];
32
+ }
33
+ },
34
+ methods: {
35
+ parseGithub: function() {
36
+ const e = /\w+.gem/;
37
+ return this.response.tree.filter((t) => e.exec(t.path)).map((t) => ({
38
+ name: t.path,
39
+ url: `https://raw.github.com/OpenC3/openc3-tools/main/${t.path}`
40
+ }));
41
+ },
42
+ getResponse: function() {
43
+ this.disableSearch = !0, pe.get(this.url).then((e) => {
44
+ this.response = e.data;
45
+ }), setTimeout(() => {
46
+ this.disableSearch = !1;
47
+ }, 1e4);
48
+ },
49
+ searchGithub: function() {
50
+ this.type = "github", this.url = "https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1", this.getResponse();
51
+ },
52
+ downloadGem: function(e) {
53
+ const t = document.createElement("a");
54
+ t.href = e.url, t.setAttribute("download", e.name), t.click(), t.remove();
55
+ }
56
+ }
57
+ }, Ee = { class: "pa-3" }, Ce = { class: "px-2" }, De = {
58
+ key: 0,
59
+ class: "mt-4"
60
+ }, Te = {
61
+ key: 1,
62
+ class: "mt-4"
63
+ }, ke = { key: 0 }, Ie = { key: 1 };
64
+ function Me(e, t, n, o, s, i) {
65
+ const l = _("v-spacer"), r = _("v-toolbar"), a = _("v-row"), f = _("v-icon"), c = _("v-btn"), h = _("v-col"), p = _("v-list-item-title"), m = _("v-progress-circular"), w = _("v-tooltip"), v = _("v-list-item"), y = _("v-divider"), b = _("v-card-text"), L = _("v-card"), x = _("v-dialog");
66
+ return S(), M(x, {
67
+ modelValue: i.show,
68
+ "onUpdate:modelValue": t[0] || (t[0] = (C) => i.show = C),
69
+ width: "600"
70
+ }, {
71
+ default: u(() => [
72
+ g(L, null, {
73
+ default: u(() => [
74
+ g(r, { height: "24" }, {
75
+ default: u(() => [
76
+ g(l),
77
+ t[1] || (t[1] = k("span", null, " Download Gems ", -1)),
78
+ g(l)
79
+ ]),
80
+ _: 1
81
+ }),
82
+ g(b, null, {
83
+ default: u(() => [
84
+ k("div", Ee, [
85
+ g(a, { class: "my-2" }, {
86
+ default: u(() => t[2] || (t[2] = [
87
+ E(" Select a download option ")
88
+ ])),
89
+ _: 1
90
+ }),
91
+ g(a, null, {
92
+ default: u(() => [
93
+ g(h, null, {
94
+ default: u(() => [
95
+ k("div", Ce, [
96
+ g(c, {
97
+ onClick: i.searchGithub,
98
+ block: "",
99
+ "data-test": "searchGithub",
100
+ color: "primary",
101
+ disabled: s.disableSearch
102
+ }, {
103
+ default: u(() => [
104
+ t[4] || (t[4] = E(" Github ")),
105
+ g(f, {
106
+ end: "",
107
+ theme: "dark"
108
+ }, {
109
+ default: u(() => t[3] || (t[3] = [
110
+ E(" mdi-github ")
111
+ ])),
112
+ _: 1
113
+ })
114
+ ]),
115
+ _: 1
116
+ }, 8, ["onClick", "disabled"])
117
+ ])
118
+ ]),
119
+ _: 1
120
+ })
121
+ ]),
122
+ _: 1
123
+ }),
124
+ g(a, { class: "mt-5" }, {
125
+ default: u(() => t[5] || (t[5] = [
126
+ E(" Community Gems ")
127
+ ])),
128
+ _: 1
129
+ }),
130
+ i.listData.length < 1 ? (S(), V("div", De, [
131
+ g(a, { class: "mx-2" }, {
132
+ default: u(() => t[6] || (t[6] = [
133
+ k("span", null, " I’m sorry, Dave. No gems available.... ", -1)
134
+ ])),
135
+ _: 1
136
+ })
137
+ ])) : (S(), V("div", Te, [
138
+ (S(!0), V(P, null, F(i.listData, (C, D) => (S(), V("div", { key: D }, [
139
+ g(v, null, {
140
+ default: u(() => [
141
+ g(p, null, {
142
+ default: u(() => [
143
+ E(A(C.name), 1)
144
+ ]),
145
+ _: 2
146
+ }, 1024),
147
+ g(v, { icon: "" }, {
148
+ default: u(() => [
149
+ s.activeDownload ? (S(), V("div", ke, [
150
+ g(m, {
151
+ indeterminate: "",
152
+ color: "primary"
153
+ })
154
+ ])) : (S(), V("div", Ie, [
155
+ g(w, { location: "top" }, {
156
+ activator: u(({ props: I }) => [
157
+ g(f, me({ ref_for: !0 }, I, {
158
+ onClick: (N) => i.downloadGem(C),
159
+ disabled: s.activeDownload
160
+ }), {
161
+ default: u(() => t[7] || (t[7] = [
162
+ E(" mdi-cloud-download ")
163
+ ])),
164
+ _: 2
165
+ }, 1040, ["onClick", "disabled"])
166
+ ]),
167
+ default: u(() => [
168
+ t[8] || (t[8] = k("span", null, "Download Gem", -1))
169
+ ]),
170
+ _: 2
171
+ }, 1024)
172
+ ]))
173
+ ]),
174
+ _: 2
175
+ }, 1024)
176
+ ]),
177
+ _: 2
178
+ }, 1024),
179
+ D < i.listData.length - 1 ? (S(), M(y, { key: D })) : H("", !0)
180
+ ]))), 128))
181
+ ]))
182
+ ])
183
+ ]),
184
+ _: 1
185
+ })
186
+ ]),
187
+ _: 1
188
+ })
189
+ ]),
190
+ _: 1
191
+ }, 8, ["modelValue"]);
192
+ }
193
+ const pt = /* @__PURE__ */ U(Se, [["render", Me]]), Re = {
194
+ props: {
195
+ content: {
196
+ type: String,
197
+ required: !0
198
+ },
199
+ type: String,
200
+ name: String,
201
+ modelValue: Boolean,
202
+ readonly: Boolean
203
+ },
204
+ data() {
205
+ return {
206
+ editor: null
207
+ };
208
+ },
209
+ mounted() {
210
+ const e = this.buildPluginMode();
211
+ this.editor = R.edit(this.$refs.editor), this.editor.setTheme("ace/theme/twilight"), this.editor.session.setMode(new e()), this.editor.session.setTabSize(2), this.editor.session.setUseWrapMode(!0), this.editor.$blockScrolling = 1 / 0, this.editor.setHighlightActiveLine(!1), this.editor.setValue(this.content), this.editor.clearSelection(), this.editor.focus(), this.readonly && this.editor.setReadOnly(!0);
212
+ },
213
+ beforeUnmount() {
214
+ this.editor && this.editor.destroy();
215
+ },
216
+ computed: {
217
+ show: {
218
+ get() {
219
+ return this.modelValue;
220
+ },
221
+ set(e) {
222
+ this.$emit("update:modelValue", e);
223
+ }
224
+ },
225
+ title: function() {
226
+ return `${this.type}: ${this.name}`;
227
+ },
228
+ error: function() {
229
+ return this.editor && this.editor.getValue() === "" && !this.file ? "Input can not be blank." : null;
230
+ }
231
+ },
232
+ methods: {
233
+ submit: function() {
234
+ this.$emit("submit", this.editor.getValue()), this.show = !this.show;
235
+ },
236
+ close: function() {
237
+ this.show = !this.show;
238
+ },
239
+ download: function() {
240
+ const e = new Blob([this.editor.getValue()], {
241
+ type: "text/plain"
242
+ }), t = document.createElement("a");
243
+ t.href = URL.createObjectURL(e), t.setAttribute(
244
+ "download",
245
+ `${this.type.toLowerCase()}_${this.name.toLowerCase()}.json`
246
+ ), t.click();
247
+ },
248
+ buildPluginMode() {
249
+ let e = R.require("ace/lib/oop"), t = R.require(
250
+ "ace/mode/json_highlight_rules"
251
+ ).JsonHighlightRules, n = R.require(
252
+ "ace/mode/matching_brace_outdent"
253
+ ).MatchingBraceOutdent, o = R.require(
254
+ "ace/mode/behaviour/cstyle"
255
+ ).CstyleBehaviour, s = R.require("ace/mode/folding/ruby").FoldMode, i = function() {
256
+ this.HighlightRules = t, this.$outdent = new n(), this.$behaviour = new o(), this.foldingRules = new s(), this.indentKeywords = this.foldingRules.indentKeywords;
257
+ }, l = R.require("ace/mode/ruby").Mode;
258
+ return e.inherits(i, l), (function() {
259
+ this.$id = "ace/mode/openc3";
260
+ }).call(i.prototype), i;
261
+ }
262
+ }
263
+ }, Ve = ["textContent"], Ae = { class: "mx-2" }, Ne = { class: "pa-3" }, Oe = { key: 0 }, Pe = {
264
+ class: "editor",
265
+ ref: "editor"
266
+ }, Fe = ["textContent"];
267
+ function He(e, t, n, o, s, i) {
268
+ const l = _("v-spacer"), r = _("v-icon"), a = _("v-tooltip"), f = _("v-toolbar"), c = _("v-row"), h = _("v-btn"), p = _("v-col"), m = _("v-file-input"), w = _("v-card-text"), v = _("v-card"), y = _("v-dialog");
269
+ return S(), M(y, {
270
+ persistent: !n.readonly,
271
+ modelValue: i.show,
272
+ "onUpdate:modelValue": t[2] || (t[2] = (b) => i.show = b),
273
+ width: "80vw"
274
+ }, {
275
+ default: u(() => [
276
+ g(v, null, {
277
+ default: u(() => [
278
+ k("form", {
279
+ onSubmit: t[1] || (t[1] = j((...b) => i.submit && i.submit(...b), ["prevent"]))
280
+ }, [
281
+ g(f, { height: "24" }, {
282
+ default: u(() => [
283
+ g(l),
284
+ k("span", {
285
+ textContent: A(i.title)
286
+ }, null, 8, Ve),
287
+ g(l),
288
+ k("div", Ae, [
289
+ g(a, { location: "top" }, {
290
+ activator: u(({ props: b }) => [
291
+ k("div", _e(be(b)), [
292
+ g(r, {
293
+ "data-test": "downloadIcon",
294
+ onClick: i.download
295
+ }, {
296
+ default: u(() => t[3] || (t[3] = [
297
+ E(" mdi-download ")
298
+ ])),
299
+ _: 1
300
+ }, 8, ["onClick"])
301
+ ], 16)
302
+ ]),
303
+ default: u(() => [
304
+ t[4] || (t[4] = k("span", null, " Download ", -1))
305
+ ]),
306
+ _: 1
307
+ })
308
+ ])
309
+ ]),
310
+ _: 1
311
+ }),
312
+ g(w, null, {
313
+ default: u(() => [
314
+ k("div", Ne, [
315
+ n.readonly ? H("", !0) : (S(), V("div", Oe, [
316
+ g(c, { class: "mt-3" }, {
317
+ default: u(() => t[5] || (t[5] = [
318
+ E(" Upload a file. ")
319
+ ])),
320
+ _: 1
321
+ }),
322
+ g(c, {
323
+ "no-gutters": "",
324
+ align: "center"
325
+ }, {
326
+ default: u(() => [
327
+ g(p, { cols: "3" }, {
328
+ default: u(() => [
329
+ g(h, {
330
+ block: "",
331
+ color: "success",
332
+ onClick: e.loadFile,
333
+ disabled: !e.file || e.loadingFile || n.readonly,
334
+ loading: e.loadingFile,
335
+ "data-test": "editScreenLoadBtn"
336
+ }, {
337
+ loader: u(() => t[6] || (t[6] = [
338
+ k("span", null, "Loading...", -1)
339
+ ])),
340
+ default: u(() => [
341
+ t[7] || (t[7] = E(" Load "))
342
+ ]),
343
+ _: 1
344
+ }, 8, ["onClick", "disabled", "loading"])
345
+ ]),
346
+ _: 1
347
+ }),
348
+ g(p, { cols: "9" }, {
349
+ default: u(() => [
350
+ g(m, {
351
+ modelValue: e.file,
352
+ "onUpdate:modelValue": t[0] || (t[0] = (b) => e.file = b),
353
+ accept: ".json",
354
+ label: "Click to select .json file.",
355
+ disabled: n.readonly
356
+ }, null, 8, ["modelValue", "disabled"])
357
+ ]),
358
+ _: 1
359
+ })
360
+ ]),
361
+ _: 1
362
+ })
363
+ ])),
364
+ g(c, { "no-gutters": "" }, {
365
+ default: u(() => [
366
+ k("pre", Pe, null, 512)
367
+ ]),
368
+ _: 1
369
+ }),
370
+ g(c, { class: "my-3" }, {
371
+ default: u(() => [
372
+ we(k("span", {
373
+ class: "text-red",
374
+ textContent: A(i.error)
375
+ }, null, 8, Fe), [
376
+ [ye, i.error]
377
+ ])
378
+ ]),
379
+ _: 1
380
+ }),
381
+ g(c, null, {
382
+ default: u(() => [
383
+ g(l),
384
+ g(h, {
385
+ onClick: j(i.close, ["prevent"]),
386
+ variant: "outlined",
387
+ class: "mx-2",
388
+ "data-test": "editCancelBtn"
389
+ }, {
390
+ default: u(() => t[8] || (t[8] = [
391
+ E(" Cancel ")
392
+ ])),
393
+ _: 1
394
+ }, 8, ["onClick"]),
395
+ n.readonly ? H("", !0) : (S(), M(h, {
396
+ key: 0,
397
+ class: "mx-2",
398
+ color: "primary",
399
+ type: "submit",
400
+ "data-test": "editSubmitBtn",
401
+ disabled: !!i.error || n.readonly
402
+ }, {
403
+ default: u(() => t[9] || (t[9] = [
404
+ E(" Save ")
405
+ ])),
406
+ _: 1
407
+ }, 8, ["disabled"]))
408
+ ]),
409
+ _: 1
410
+ })
411
+ ])
412
+ ]),
413
+ _: 1
414
+ })
415
+ ], 32)
416
+ ]),
417
+ _: 1
418
+ })
419
+ ]),
420
+ _: 1
421
+ }, 8, ["persistent", "modelValue"]);
422
+ }
423
+ const mt = /* @__PURE__ */ U(Re, [["render", He], ["__scopeId", "data-v-74f3ff47"]]), Ue = {
424
+ props: {
425
+ modelValue: Boolean,
426
+ plugin: String,
427
+ targets: Array,
428
+ pluginDelete: Boolean
429
+ },
430
+ data() {
431
+ return {
432
+ modifiedTargets: [],
433
+ deleteModified: !1
434
+ };
435
+ },
436
+ computed: {
437
+ show: {
438
+ get() {
439
+ return this.modelValue;
440
+ },
441
+ set(e) {
442
+ this.$emit("update:modelValue", e);
443
+ }
444
+ }
445
+ },
446
+ created() {
447
+ for (const e of this.targets)
448
+ xe.get(`/openc3-api/targets/${e.name}/modified_files`).then(
449
+ (t) => {
450
+ t.data.length !== 0 && this.modifiedTargets.push({
451
+ name: e.name,
452
+ files: t.data
453
+ });
454
+ }
455
+ );
456
+ }
457
+ };
458
+ function $e(e, t, n, o, s, i) {
459
+ const l = _("v-spacer"), r = _("v-toolbar"), a = _("v-list-item-title"), f = _("v-list-item-subtitle"), c = _("v-list-item"), h = _("v-checkbox"), p = _("v-card-text"), m = _("v-btn"), w = _("v-card-actions"), v = _("v-card"), y = _("v-dialog");
460
+ return S(), M(y, {
461
+ modelValue: i.show,
462
+ "onUpdate:modelValue": t[3] || (t[3] = (b) => i.show = b),
463
+ width: "600"
464
+ }, {
465
+ default: u(() => [
466
+ g(v, null, {
467
+ default: u(() => [
468
+ g(r, { height: "24" }, {
469
+ default: u(() => [
470
+ g(l),
471
+ t[4] || (t[4] = k("span", null, " Modified Plugin ", -1)),
472
+ g(l)
473
+ ]),
474
+ _: 1
475
+ }),
476
+ g(p, { class: "pa-3" }, {
477
+ default: u(() => [
478
+ k("div", null, " Plugin " + A(n.plugin) + " was modified. Would you like to delete the existing modified files? ", 1),
479
+ (S(!0), V(P, null, F(s.modifiedTargets, (b, L) => (S(), M(c, {
480
+ lines: "two",
481
+ key: L
482
+ }, {
483
+ default: u(() => [
484
+ g(a, null, {
485
+ default: u(() => [
486
+ E(A(b.name), 1)
487
+ ]),
488
+ _: 2
489
+ }, 1024),
490
+ (S(!0), V(P, null, F(b.files, (x, C) => (S(), M(f, { key: C }, {
491
+ default: u(() => [
492
+ E(A(x), 1)
493
+ ]),
494
+ _: 2
495
+ }, 1024))), 128))
496
+ ]),
497
+ _: 2
498
+ }, 1024))), 128)),
499
+ g(h, {
500
+ modelValue: s.deleteModified,
501
+ "onUpdate:modelValue": t[0] || (t[0] = (b) => s.deleteModified = b),
502
+ label: "DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",
503
+ color: "error",
504
+ "data-test": "modified-plugin-delete-checkbox"
505
+ }, null, 8, ["modelValue"])
506
+ ]),
507
+ _: 1
508
+ }),
509
+ g(w, { class: "px-2" }, {
510
+ default: u(() => [
511
+ g(l),
512
+ g(m, {
513
+ variant: "outlined",
514
+ "data-test": "modified-plugin-cancel",
515
+ onClick: t[1] || (t[1] = () => {
516
+ i.show = !1, e.$emit("cancel");
517
+ })
518
+ }, {
519
+ default: u(() => t[5] || (t[5] = [
520
+ E(" Cancel ")
521
+ ])),
522
+ _: 1
523
+ }),
524
+ g(m, {
525
+ variant: "flat",
526
+ "data-test": "modified-plugin-submit",
527
+ onClick: t[2] || (t[2] = () => {
528
+ i.show = !1, e.$emit("submit", s.deleteModified);
529
+ })
530
+ }, {
531
+ default: u(() => t[6] || (t[6] = [
532
+ E(" Confirm ")
533
+ ])),
534
+ _: 1
535
+ })
536
+ ]),
537
+ _: 1
538
+ })
539
+ ]),
540
+ _: 1
541
+ })
542
+ ]),
543
+ _: 1
544
+ }, 8, ["modelValue"]);
545
+ }
546
+ const _t = /* @__PURE__ */ U(Ue, [["render", $e]]), Be = [
547
+ {
548
+ displayName: "Plugins",
549
+ name: "PluginsTab",
550
+ path: "plugins",
551
+ component: () => import("../PluginsTab-Ds3jk64b.js")
552
+ },
553
+ {
554
+ displayName: "Targets",
555
+ name: "TargetsTab",
556
+ path: "targets",
557
+ component: () => import("../TargetsTab-Cd8U1aN_.js")
558
+ },
559
+ {
560
+ displayName: "Interfaces",
561
+ name: "InterfacesTab",
562
+ path: "interfaces",
563
+ component: () => import("../InterfacesTab-DAeNlGlB.js")
564
+ },
565
+ {
566
+ displayName: "Routers",
567
+ name: "RoutersTab",
568
+ path: "routers",
569
+ component: () => import("../RoutersTab-Dki_66av.js")
570
+ },
571
+ {
572
+ displayName: "Microservices",
573
+ name: "MicroservicesTab",
574
+ path: "microservices",
575
+ component: () => import("../MicroservicesTab-IbTmbPxO.js")
576
+ },
577
+ {
578
+ displayName: "Packages",
579
+ name: "PackagesTab",
580
+ path: "packages",
581
+ component: () => import("../PackagesTab-BX8YP3H1.js")
582
+ },
583
+ {
584
+ displayName: "Tools",
585
+ name: "ToolsTab",
586
+ path: "tools",
587
+ component: () => import("../ToolsTab-Cgpb2nAW.js")
588
+ },
589
+ {
590
+ displayName: "Redis",
591
+ name: "RedisTab",
592
+ path: "redis",
593
+ component: () => import("../RedisTab-CVimDkIE.js")
594
+ },
595
+ {
596
+ displayName: "Secrets",
597
+ name: "SecretsTab",
598
+ path: "secrets",
599
+ component: () => import("../SecretsTab-BjviaTxh.js")
600
+ },
601
+ {
602
+ displayName: "Settings",
603
+ name: "SettingsTab",
604
+ path: "settings",
605
+ component: () => import("../SettingsTab-Bo_dYXgb.js")
606
+ }
607
+ ], Ge = {
608
+ components: {
609
+ TopBar: Le
610
+ },
611
+ data() {
612
+ return {
613
+ title: "Administrator Console",
614
+ curTab: null
615
+ };
616
+ },
617
+ computed: {
618
+ tabs: function() {
619
+ return Be.map((e) => ({
620
+ displayName: e.displayName,
621
+ path: { name: e.name }
622
+ }));
623
+ }
624
+ }
625
+ };
626
+ function je(e, t, n, o, s, i) {
627
+ const l = _("top-bar"), r = _("v-tab"), a = _("v-tabs"), f = _("router-view"), c = _("v-card");
628
+ return S(), V("div", null, [
629
+ g(l, { title: s.title }, null, 8, ["title"]),
630
+ g(c, null, {
631
+ default: u(() => [
632
+ g(a, {
633
+ modelValue: s.curTab,
634
+ "onUpdate:modelValue": t[0] || (t[0] = (h) => s.curTab = h),
635
+ "fixed-tabs": ""
636
+ }, {
637
+ default: u(() => [
638
+ (S(!0), V(P, null, F(i.tabs, (h, p) => (S(), M(r, {
639
+ key: p,
640
+ to: h.path
641
+ }, {
642
+ default: u(() => [
643
+ E(A(h.displayName), 1)
644
+ ]),
645
+ _: 2
646
+ }, 1032, ["to"]))), 128))
647
+ ]),
648
+ _: 1
649
+ }, 8, ["modelValue"]),
650
+ g(f)
651
+ ]),
652
+ _: 1
653
+ })
654
+ ]);
655
+ }
656
+ const bt = /* @__PURE__ */ U(Ge, [["render", je]]), d = function() {
657
+ this.Diff_Timeout = 1, this.Diff_EditCost = 4, this.Match_Threshold = 0.5, this.Match_Distance = 1e3, this.Patch_DeleteThreshold = 0.5, this.Patch_Margin = 4, this.Match_MaxBits = 32;
658
+ };
659
+ d.Diff = function(e, t) {
660
+ this[0] = e, this[1] = t;
661
+ };
662
+ d.Diff.prototype.length = 2;
663
+ d.Diff.prototype.toString = function() {
664
+ return this[0] + "," + this[1];
665
+ };
666
+ d.prototype.diff_main = function(e, t, n, o) {
667
+ typeof o > "u" && (this.Diff_Timeout <= 0 ? o = Number.MAX_VALUE : o = (/* @__PURE__ */ new Date()).getTime() + this.Diff_Timeout * 1e3);
668
+ let s = o;
669
+ if (e == null || t == null) throw new Error("Null input. (diff_main)");
670
+ if (e == t) return e ? [new d.Diff(0, e)] : [];
671
+ typeof n > "u" && (n = !0);
672
+ let i = n, l = this.diff_commonPrefix(e, t), r = e.substring(0, l);
673
+ e = e.substring(l), t = t.substring(l), l = this.diff_commonSuffix(e, t);
674
+ let a = e.substring(e.length - l);
675
+ e = e.substring(0, e.length - l), t = t.substring(0, t.length - l);
676
+ let f = this.diff_compute_(e, t, i, s);
677
+ return r && f.unshift(new d.Diff(0, r)), a && f.push(new d.Diff(0, a)), this.diff_cleanupMerge(f), f;
678
+ };
679
+ d.prototype.diff_compute_ = function(e, t, n, o) {
680
+ let s;
681
+ if (!e) return [new d.Diff(1, t)];
682
+ if (!t) return [new d.Diff(-1, e)];
683
+ let i = e.length > t.length ? e : t, l = e.length > t.length ? t : e, r = i.indexOf(l);
684
+ return r != -1 ? (s = [new d.Diff(1, i.substring(0, r)), new d.Diff(0, l), new d.Diff(1, i.substring(r + l.length))], e.length > t.length && (s[0][0] = s[2][0] = -1), s) : l.length == 1 ? [new d.Diff(-1, e), new d.Diff(1, t)] : n && e.length > 100 && t.length > 100 ? this.diff_lineMode_(e, t, o) : this.diff_bisect_(e, t, o);
685
+ };
686
+ d.prototype.diff_lineMode_ = function(e, t, n) {
687
+ let o = this.diff_linesToChars_(e, t);
688
+ e = o.chars1, t = o.chars2;
689
+ let s = o.lineArray, i = this.diff_main(e, t, !1, n);
690
+ this.diff_charsToLines_(i, s), this.diff_cleanupSemantic(i), i.push(new d.Diff(0, ""));
691
+ let l = 0, r = 0, a = 0, f = "", c = "";
692
+ for (; l < i.length; ) {
693
+ switch (i[l][0]) {
694
+ case 1:
695
+ a++, c += i[l][1];
696
+ break;
697
+ case -1:
698
+ r++, f += i[l][1];
699
+ break;
700
+ case 0:
701
+ if (r >= 1 && a >= 1) {
702
+ i.splice(l - r - a, r + a), l = l - r - a;
703
+ let h = this.diff_main(f, c, !1, n);
704
+ for (let p = h.length - 1; p >= 0; p--) i.splice(l, 0, h[p]);
705
+ l = l + h.length;
706
+ }
707
+ a = 0, r = 0, f = "", c = "";
708
+ break;
709
+ }
710
+ l++;
711
+ }
712
+ return i.pop(), i;
713
+ };
714
+ d.prototype.diff_bisect_ = function(e, t, n) {
715
+ let o = e.length, s = t.length, i = Math.ceil((o + s) / 2), l = i, r = 2 * i, a = new Array(r), f = new Array(r);
716
+ for (let y = 0; y < r; y++) a[y] = -1, f[y] = -1;
717
+ a[l + 1] = 0, f[l + 1] = 0;
718
+ let c = o - s, h = c % 2 != 0, p = 0, m = 0, w = 0, v = 0;
719
+ for (let y = 0; y < i && !((/* @__PURE__ */ new Date()).getTime() > n); y++) {
720
+ for (let b = -y + p; b <= y - m; b += 2) {
721
+ let L = l + b, x;
722
+ b == -y || b != y && a[L - 1] < a[L + 1] ? x = a[L + 1] : x = a[L - 1] + 1;
723
+ let C = x - b;
724
+ for (; x < o && C < s && e.charAt(x) == t.charAt(C); ) x++, C++;
725
+ if (a[L] = x, x > o) m += 2;
726
+ else if (C > s) p += 2;
727
+ else if (h) {
728
+ let D = l + c - b;
729
+ if (D >= 0 && D < r && f[D] != -1) {
730
+ let I = o - f[D];
731
+ if (x >= I) return this.diff_bisectSplit_(e, t, x, C, n);
732
+ }
733
+ }
734
+ }
735
+ for (let b = -y + w; b <= y - v; b += 2) {
736
+ let L = l + b, x;
737
+ b == -y || b != y && f[L - 1] < f[L + 1] ? x = f[L + 1] : x = f[L - 1] + 1;
738
+ let C = x - b;
739
+ for (; x < o && C < s && e.charAt(o - x - 1) == t.charAt(s - C - 1); ) x++, C++;
740
+ if (f[L] = x, x > o) v += 2;
741
+ else if (C > s) w += 2;
742
+ else if (!h) {
743
+ let D = l + c - b;
744
+ if (D >= 0 && D < r && a[D] != -1) {
745
+ let I = a[D], N = l + I - D;
746
+ if (x = o - x, I >= x) return this.diff_bisectSplit_(e, t, I, N, n);
747
+ }
748
+ }
749
+ }
750
+ }
751
+ return [new d.Diff(-1, e), new d.Diff(1, t)];
752
+ };
753
+ d.prototype.diff_bisectSplit_ = function(e, t, n, o, s) {
754
+ let i = e.substring(0, n), l = t.substring(0, o), r = e.substring(n), a = t.substring(o), f = this.diff_main(i, l, !1, s), c = this.diff_main(r, a, !1, s);
755
+ return f.concat(c);
756
+ };
757
+ d.prototype.diff_linesToChars_ = function(e, t) {
758
+ let n = [], o = {};
759
+ n[0] = "";
760
+ function s(a) {
761
+ let f = "", c = 0, h = -1, p = n.length;
762
+ for (; h < a.length - 1; ) {
763
+ h = a.indexOf(`
764
+ `, c), h == -1 && (h = a.length - 1);
765
+ let m = a.substring(c, h + 1);
766
+ (o.hasOwnProperty ? o.hasOwnProperty(m) : o[m] !== void 0) ? f += String.fromCharCode(o[m]) : (p == i && (m = a.substring(c), h = a.length), f += String.fromCharCode(p), o[m] = p, n[p++] = m), c = h + 1;
767
+ }
768
+ return f;
769
+ }
770
+ let i = 4e4, l = s(e);
771
+ i = 65535;
772
+ let r = s(t);
773
+ return { chars1: l, chars2: r, lineArray: n };
774
+ };
775
+ d.prototype.diff_charsToLines_ = function(e, t) {
776
+ for (let n = 0; n < e.length; n++) {
777
+ let o = e[n][1], s = [];
778
+ for (let i = 0; i < o.length; i++) s[i] = t[o.charCodeAt(i)];
779
+ e[n][1] = s.join("");
780
+ }
781
+ };
782
+ d.prototype.diff_commonPrefix = function(e, t) {
783
+ if (!e || !t || e.charAt(0) != t.charAt(0)) return 0;
784
+ let n = 0, o = Math.min(e.length, t.length), s = o, i = 0;
785
+ for (; n < s; ) e.substring(i, s) == t.substring(i, s) ? (n = s, i = n) : o = s, s = Math.floor((o - n) / 2 + n);
786
+ return s;
787
+ };
788
+ d.prototype.diff_commonSuffix = function(e, t) {
789
+ if (!e || !t || e.charAt(e.length - 1) != t.charAt(t.length - 1)) return 0;
790
+ let n = 0, o = Math.min(e.length, t.length), s = o, i = 0;
791
+ for (; n < s; ) e.substring(e.length - s, e.length - i) == t.substring(t.length - s, t.length - i) ? (n = s, i = n) : o = s, s = Math.floor((o - n) / 2 + n);
792
+ return s;
793
+ };
794
+ d.prototype.diff_commonOverlap_ = function(e, t) {
795
+ let n = e.length, o = t.length;
796
+ if (n == 0 || o == 0) return 0;
797
+ n > o ? e = e.substring(n - o) : n < o && (t = t.substring(0, n));
798
+ let s = Math.min(n, o);
799
+ if (e == t) return s;
800
+ let i = 0, l = 1;
801
+ for (; ; ) {
802
+ let r = e.substring(s - l), a = t.indexOf(r);
803
+ if (a == -1) return i;
804
+ l += a, (a == 0 || e.substring(s - l) == t.substring(0, l)) && (i = l, l++);
805
+ }
806
+ };
807
+ d.prototype.diff_halfMatch_ = function(e, t) {
808
+ if (this.Diff_Timeout <= 0) return null;
809
+ let n = e.length > t.length ? e : t, o = e.length > t.length ? t : e;
810
+ if (n.length < 4 || o.length * 2 < n.length) return null;
811
+ let s = this;
812
+ function i(w, v, y) {
813
+ let b = w.substring(y, y + Math.floor(w.length / 4)), L = -1, x = "", C, D, I, N;
814
+ for (; (L = v.indexOf(b, L + 1)) != -1; ) {
815
+ let $ = s.diff_commonPrefix(w.substring(y), v.substring(L)), B = s.diff_commonSuffix(w.substring(0, y), v.substring(0, L));
816
+ x.length < B + $ && (x = v.substring(L - B, L) + v.substring(L, L + $), C = w.substring(0, y - B), D = w.substring(y + $), I = v.substring(0, L - B), N = v.substring(L + $));
817
+ }
818
+ return x.length * 2 >= w.length ? [C, D, I, N, x] : null;
819
+ }
820
+ let l = i(n, o, Math.ceil(n.length / 4)), r = i(n, o, Math.ceil(n.length / 2)), a;
821
+ if (!l && !r) return null;
822
+ r ? l ? a = l[4].length > r[4].length ? l : r : a = r : a = l;
823
+ let f, c, h, p;
824
+ e.length > t.length ? (f = a[0], c = a[1], h = a[2], p = a[3]) : (h = a[0], p = a[1], f = a[2], c = a[3]);
825
+ let m = a[4];
826
+ return [f, c, h, p, m];
827
+ };
828
+ d.prototype.diff_cleanupSemantic = function(e) {
829
+ let t = !1, n = [], o = 0, s = null, i = 0, l = 0, r = 0, a = 0, f = 0;
830
+ for (; i < e.length; ) e[i][0] == 0 ? (n[o++] = i, l = a, r = f, a = 0, f = 0, s = e[i][1]) : (e[i][0] == 1 ? a += e[i][1].length : f += e[i][1].length, s && s.length <= Math.max(l, r) && s.length <= Math.max(a, f) && (e.splice(n[o - 1], 0, new d.Diff(-1, s)), e[n[o - 1] + 1][0] = 1, o--, o--, i = o > 0 ? n[o - 1] : -1, l = 0, r = 0, a = 0, f = 0, s = null, t = !0)), i++;
831
+ for (t && this.diff_cleanupMerge(e), this.diff_cleanupSemanticLossless(e), i = 1; i < e.length; ) {
832
+ if (e[i - 1][0] == -1 && e[i][0] == 1) {
833
+ let c = e[i - 1][1], h = e[i][1], p = this.diff_commonOverlap_(c, h), m = this.diff_commonOverlap_(h, c);
834
+ p >= m ? (p >= c.length / 2 || p >= h.length / 2) && (e.splice(i, 0, new d.Diff(0, h.substring(0, p))), e[i - 1][1] = c.substring(0, c.length - p), e[i + 1][1] = h.substring(p), i++) : (m >= c.length / 2 || m >= h.length / 2) && (e.splice(i, 0, new d.Diff(0, c.substring(0, m))), e[i - 1][0] = 1, e[i - 1][1] = h.substring(0, h.length - m), e[i + 1][0] = -1, e[i + 1][1] = c.substring(m), i++), i++;
835
+ }
836
+ i++;
837
+ }
838
+ };
839
+ d.prototype.diff_cleanupSemanticLossless = function(e) {
840
+ function t(o, s) {
841
+ if (!o || !s) return 6;
842
+ let i = o.charAt(o.length - 1), l = s.charAt(0), r = i.match(d.nonAlphaNumericRegex_), a = l.match(d.nonAlphaNumericRegex_), f = r && i.match(d.whitespaceRegex_), c = a && l.match(d.whitespaceRegex_), h = f && i.match(d.linebreakRegex_), p = c && l.match(d.linebreakRegex_), m = h && o.match(d.blanklineEndRegex_), w = p && s.match(d.blanklineStartRegex_);
843
+ return m || w ? 5 : h || p ? 4 : r && !f && c ? 3 : f || c ? 2 : r || a ? 1 : 0;
844
+ }
845
+ let n = 1;
846
+ for (; n < e.length - 1; ) {
847
+ if (e[n - 1][0] == 0 && e[n + 1][0] == 0) {
848
+ let o = e[n - 1][1], s = e[n][1], i = e[n + 1][1], l = this.diff_commonSuffix(o, s);
849
+ if (l) {
850
+ o[o.length - l] === `
851
+ ` && (l -= 1);
852
+ let h = s.substring(s.length - l);
853
+ o = o.substring(0, o.length - l), s = h + s.substring(0, s.length - l), i = h + i;
854
+ }
855
+ let r = o, a = s, f = i, c = t(o, s) + t(s, i);
856
+ for (; s.charAt(0) === i.charAt(0); ) {
857
+ o += s.charAt(0), s = s.substring(1) + i.charAt(0), i = i.substring(1);
858
+ let h = t(o, s) + t(s, i);
859
+ h >= c && (c = h, r = o, a = s, f = i);
860
+ }
861
+ e[n - 1][1] != r && (r ? e[n - 1][1] = r : (e.splice(n - 1, 1), n--), e[n][1] = a, f ? e[n + 1][1] = f : (e.splice(n + 1, 1), n--));
862
+ }
863
+ n++;
864
+ }
865
+ };
866
+ d.nonAlphaNumericRegex_ = /[^a-zA-Z0-9]/;
867
+ d.whitespaceRegex_ = /\s/;
868
+ d.linebreakRegex_ = /[\r\n]/;
869
+ d.blanklineEndRegex_ = /\n\r?\n$/;
870
+ d.blanklineStartRegex_ = /^\r?\n\r?\n/;
871
+ d.prototype.diff_cleanupEfficiency = function(e) {
872
+ let t = !1, n = [], o = 0, s = null, i = 0, l = !1, r = !1, a = !1, f = !1;
873
+ for (; i < e.length; ) e[i][0] == 0 ? (e[i][1].length < this.Diff_EditCost && (a || f) ? (n[o++] = i, l = a, r = f, s = e[i][1]) : (o = 0, s = null), a = f = !1) : (e[i][0] == -1 ? f = !0 : a = !0, s && (l && r && a && f || s.length < this.Diff_EditCost / 2 && l + r + a + f == 3) && (e.splice(n[o - 1], 0, new d.Diff(-1, s)), e[n[o - 1] + 1][0] = 1, o--, s = null, l && r ? (a = f = !0, o = 0) : (o--, i = o > 0 ? n[o - 1] : -1, a = f = !1), t = !0)), i++;
874
+ t && this.diff_cleanupMerge(e);
875
+ };
876
+ d.prototype.diff_cleanupMerge = function(e) {
877
+ e.push(new d.Diff(0, ""));
878
+ let t = 0, n = 0, o = 0, s = "", i = "", l;
879
+ for (; t < e.length; ) switch (e[t][0]) {
880
+ case 1:
881
+ o++, i += e[t][1], t++;
882
+ break;
883
+ case -1:
884
+ n++, s += e[t][1], t++;
885
+ break;
886
+ case 0:
887
+ n + o > 1 ? (n !== 0 && o !== 0 && (l = this.diff_commonPrefix(i, s), l !== 0 && (t - n - o > 0 && e[t - n - o - 1][0] == 0 ? e[t - n - o - 1][1] += i.substring(0, l) : (e.splice(0, 0, new d.Diff(0, i.substring(0, l))), t++), i = i.substring(l), s = s.substring(l)), l = this.diff_commonSuffix(i, s), l !== 0 && (e[t][1] = i.substring(i.length - l) + e[t][1], i = i.substring(0, i.length - l), s = s.substring(0, s.length - l))), t -= n + o, e.splice(t, n + o), s.length && (e.splice(t, 0, new d.Diff(-1, s)), t++), i.length && (e.splice(t, 0, new d.Diff(1, i)), t++), t++) : t !== 0 && e[t - 1][0] == 0 ? (e[t - 1][1] += e[t][1], e.splice(t, 1)) : t++, o = 0, n = 0, s = "", i = "";
888
+ break;
889
+ }
890
+ e[e.length - 1][1] === "" && e.pop();
891
+ let r = !1;
892
+ 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), r = !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), r = !0)), t++;
893
+ r && this.diff_cleanupMerge(e);
894
+ };
895
+ d.prototype.diff_cleanupSplitSurrogates = function(e) {
896
+ let t;
897
+ for (let n = 0; n < e.length; n++) {
898
+ let o = e[n], s = o[1][0], i = o[1][o[1].length - 1];
899
+ if (o[1].length === 0) {
900
+ e.splice(n--, 1);
901
+ continue;
902
+ }
903
+ if (i && this.isHighSurrogate(i) && (t = i, o[1] = o[1].slice(0, -1)), t && s && this.isHighSurrogate(t) && this.isLowSurrogate(s) && (o[1] = t + o[1]), o[1].length === 0) {
904
+ e.splice(n--, 1);
905
+ continue;
906
+ }
907
+ }
908
+ return e;
909
+ };
910
+ d.prototype.isHighSurrogate = function(e) {
911
+ let t = e.charCodeAt(0);
912
+ return t >= 55296 && t <= 56319;
913
+ };
914
+ d.prototype.isLowSurrogate = function(e) {
915
+ let t = e.charCodeAt(0);
916
+ return t >= 56320 && t <= 57343;
917
+ };
918
+ d.prototype.digit16 = function(e) {
919
+ switch (e) {
920
+ case "0":
921
+ return 0;
922
+ case "1":
923
+ return 1;
924
+ case "2":
925
+ return 2;
926
+ case "3":
927
+ return 3;
928
+ case "4":
929
+ return 4;
930
+ case "5":
931
+ return 5;
932
+ case "6":
933
+ return 6;
934
+ case "7":
935
+ return 7;
936
+ case "8":
937
+ return 8;
938
+ case "9":
939
+ return 9;
940
+ case "A":
941
+ case "a":
942
+ return 10;
943
+ case "B":
944
+ case "b":
945
+ return 11;
946
+ case "C":
947
+ case "c":
948
+ return 12;
949
+ case "D":
950
+ case "d":
951
+ return 13;
952
+ case "E":
953
+ case "e":
954
+ return 14;
955
+ case "F":
956
+ case "f":
957
+ return 15;
958
+ default:
959
+ throw new Error("Invalid hex-code");
960
+ }
961
+ };
962
+ d.prototype.decodeURI = function(e) {
963
+ try {
964
+ return decodeURI(e);
965
+ } catch {
966
+ let t = 0, n = "";
967
+ for (; t < e.length; ) {
968
+ if (e[t] !== "%") {
969
+ n += e[t++];
970
+ continue;
971
+ }
972
+ let o = (this.digit16(e[t + 1]) << 4) + this.digit16(e[t + 2]);
973
+ if (!(o & 128)) {
974
+ n += String.fromCharCode(o), t += 3;
975
+ continue;
976
+ }
977
+ if (e[t + 3] !== "%") throw new URIError("URI malformed");
978
+ let s = (this.digit16(e[t + 4]) << 4) + this.digit16(e[t + 5]);
979
+ if ((s & 192) !== 128) throw new URIError("URI malformed");
980
+ if (s = s & 63, (o & 224) === 192) {
981
+ n += String.fromCharCode((o & 31) << 6 | s), t += 6;
982
+ continue;
983
+ }
984
+ if (e[t + 6] !== "%") throw new URIError("URI malformed");
985
+ let i = (this.digit16(e[t + 7]) << 4) + this.digit16(e[t + 8]);
986
+ if ((i & 192) !== 128) throw new URIError("URI malformed");
987
+ if (i = i & 63, (o & 240) === 224) {
988
+ n += String.fromCharCode((o & 15) << 12 | s << 6 | i), t += 9;
989
+ continue;
990
+ }
991
+ if (e[t + 9] !== "%") throw new URIError("URI malformed");
992
+ let l = (this.digit16(e[t + 10]) << 4) + this.digit16(e[t + 11]);
993
+ if ((l & 192) !== 128) throw new URIError("URI malformed");
994
+ if (l = l & 63, (o & 248) === 240) {
995
+ let r = (o & 7) << 18 | s << 12 | i << 6 | l;
996
+ if (r >= 65536 && r <= 1114111) {
997
+ n += String.fromCharCode((r & 65535) >>> 10 & 1023 | 55296), n += String.fromCharCode(56320 | r & 65535 & 1023), t += 12;
998
+ continue;
999
+ }
1000
+ }
1001
+ throw new URIError("URI malformed");
1002
+ }
1003
+ return n;
1004
+ }
1005
+ };
1006
+ d.prototype.diff_xIndex = function(e, t) {
1007
+ let n = 0, o = 0, s = 0, i = 0, l;
1008
+ for (l = 0; l < e.length && (e[l][0] !== 1 && (n += e[l][1].length), e[l][0] !== -1 && (o += e[l][1].length), !(n > t)); l++) s = n, i = o;
1009
+ return e.length != l && e[l][0] === -1 ? i : i + (t - s);
1010
+ };
1011
+ d.prototype.diff_prettyHtml = function(e) {
1012
+ e = this.diff_cleanupSplitSurrogates(e);
1013
+ let t = [], n = /&/g, o = /</g, s = />/g, i = /\n/g;
1014
+ for (let l = 0; l < e.length; l++) {
1015
+ let r = e[l][0], a = e[l][1].replace(n, "&amp;").replace(o, "&lt;").replace(s, "&gt;").replace(i, "&para;<br>");
1016
+ switch (r) {
1017
+ case 1:
1018
+ t[l] = '<ins style="background:#e6ffe6;">' + a + "</ins>";
1019
+ break;
1020
+ case -1:
1021
+ t[l] = '<del style="background:#ffe6e6;">' + a + "</del>";
1022
+ break;
1023
+ case 0:
1024
+ t[l] = "<span>" + a + "</span>";
1025
+ break;
1026
+ }
1027
+ }
1028
+ return t.join("");
1029
+ };
1030
+ d.prototype.diff_text1 = function(e) {
1031
+ let t = [];
1032
+ for (let n = 0; n < e.length; n++) e[n][0] !== 1 && (t[n] = e[n][1]);
1033
+ return t.join("");
1034
+ };
1035
+ d.prototype.diff_text2 = function(e) {
1036
+ let t = [];
1037
+ for (let n = 0; n < e.length; n++) e[n][0] !== -1 && (t[n] = e[n][1]);
1038
+ return t.join("");
1039
+ };
1040
+ d.prototype.diff_levenshtein = function(e) {
1041
+ let t = 0, n = 0, o = 0;
1042
+ for (let s = 0; s < e.length; s++) {
1043
+ let i = e[s][0], l = e[s][1];
1044
+ switch (i) {
1045
+ case 1:
1046
+ n += l.length;
1047
+ break;
1048
+ case -1:
1049
+ o += l.length;
1050
+ break;
1051
+ case 0:
1052
+ t += Math.max(n, o), n = 0, o = 0;
1053
+ break;
1054
+ }
1055
+ }
1056
+ return t += Math.max(n, o), t;
1057
+ };
1058
+ d.prototype.diff_toDelta = function(e) {
1059
+ e = this.diff_cleanupSplitSurrogates(e);
1060
+ let t = [];
1061
+ for (let n = 0; n < e.length; n++) switch (e[n][0]) {
1062
+ case 1:
1063
+ t[n] = "+" + encodeURI(e[n][1]);
1064
+ break;
1065
+ case -1:
1066
+ t[n] = "-" + e[n][1].length;
1067
+ break;
1068
+ case 0:
1069
+ t[n] = "=" + e[n][1].length;
1070
+ break;
1071
+ }
1072
+ return t.join(" ").replace(/%20/g, " ");
1073
+ };
1074
+ d.prototype.diff_fromDelta = function(e, t) {
1075
+ let n = 0, o = "", s = [], i = 0, l = 0, r = t.split(/\t/g);
1076
+ for (let a = 0; a < r.length; a++) {
1077
+ let f = r[a].substring(1);
1078
+ switch (r[a].charAt(0)) {
1079
+ case "+":
1080
+ try {
1081
+ s[i++] = new d.Diff(1, this.decodeURI(f));
1082
+ } catch {
1083
+ throw new Error("Illegal escape in diff_fromDelta: " + f);
1084
+ }
1085
+ break;
1086
+ case "-":
1087
+ case "=":
1088
+ if (n = parseInt(f, 10), isNaN(n) || n < 0) throw new Error("Invalid number in diff_fromDelta: " + f);
1089
+ o = e.substring(l, l += n), r[a].charAt(0) == "=" ? s[i++] = new d.Diff(0, o) : s[i++] = new d.Diff(-1, o);
1090
+ break;
1091
+ default:
1092
+ if (r[a]) throw new Error("Invalid diff operation in diff_fromDelta: " + r[a]);
1093
+ }
1094
+ }
1095
+ if (l != e.length) throw new Error("Delta length (" + l + ") does not equal source text length (" + e.length + ").");
1096
+ return s;
1097
+ };
1098
+ d.prototype.match_main = function(e, t, n) {
1099
+ if (e == null || t == null || n == null) throw new Error("Null input. (match_main)");
1100
+ return n = Math.max(0, Math.min(n, e.length)), e == t ? 0 : e.length ? e.substring(n, n + t.length) == t ? n : this.match_bitap_(e, t, n) : -1;
1101
+ };
1102
+ d.prototype.match_bitap_ = function(e, t, n) {
1103
+ if (t.length > this.Match_MaxBits) throw new Error("Pattern too long for this browser.");
1104
+ let o = this.match_alphabet_(t), s = this;
1105
+ function i(m, w) {
1106
+ let v = m / t.length, y = Math.abs(n - w);
1107
+ return s.Match_Distance ? v + y / s.Match_Distance : y ? 1 : v;
1108
+ }
1109
+ let l = this.Match_Threshold, r = e.indexOf(t, n);
1110
+ r != -1 && (l = Math.min(i(0, r), l), r = e.lastIndexOf(t, n + t.length), r != -1 && (l = Math.min(i(0, r), l)));
1111
+ let a = 1 << t.length - 1;
1112
+ r = -1;
1113
+ let f, c, h = t.length + e.length, p;
1114
+ for (let m = 0; m < t.length; m++) {
1115
+ for (f = 0, c = h; f < c; ) i(m, n + c) <= l ? f = c : h = c, c = Math.floor((h - f) / 2 + f);
1116
+ h = c;
1117
+ let w = Math.max(1, n - c + 1), v = Math.min(n + c, e.length) + t.length, y = Array(v + 2);
1118
+ y[v + 1] = (1 << m) - 1;
1119
+ for (let b = v; b >= w; b--) {
1120
+ let L = o[e.charAt(b - 1)];
1121
+ if (m === 0 ? y[b] = (y[b + 1] << 1 | 1) & L : y[b] = (y[b + 1] << 1 | 1) & L | ((p[b + 1] | p[b]) << 1 | 1) | p[b + 1], y[b] & a) {
1122
+ let x = i(m, b - 1);
1123
+ if (x <= l) if (l = x, r = b - 1, r > n) w = Math.max(1, 2 * n - r);
1124
+ else break;
1125
+ }
1126
+ }
1127
+ if (i(m + 1, n) > l) break;
1128
+ p = y;
1129
+ }
1130
+ return r;
1131
+ };
1132
+ d.prototype.match_alphabet_ = function(e) {
1133
+ let t = {};
1134
+ for (let n = 0; n < e.length; n++) t[e.charAt(n)] = 0;
1135
+ for (let n = 0; n < e.length; n++) t[e.charAt(n)] |= 1 << e.length - n - 1;
1136
+ return t;
1137
+ };
1138
+ d.prototype.patch_addContext_ = function(e, t) {
1139
+ if (t.length == 0) return;
1140
+ if (e.start2 === null) throw Error("patch not initialized");
1141
+ let n = t.substring(e.start2, e.start2 + e.length1), o = 0;
1142
+ for (; t.indexOf(n) != t.lastIndexOf(n) && n.length < this.Match_MaxBits - this.Patch_Margin - this.Patch_Margin; ) o += this.Patch_Margin, n = t.substring(e.start2 - o, e.start2 + e.length1 + o);
1143
+ o += this.Patch_Margin, e.start2 - o > 0 && d.prototype.isLowSurrogate(t[e.start2 - o]) && o++;
1144
+ let s = t.substring(e.start2 - o, e.start2);
1145
+ s && e.diffs.unshift(new d.Diff(0, s)), e.start2 + e.length1 + o < t.length && d.prototype.isHighSurrogate(t[e.start2 + e.length1 + o]) && o++;
1146
+ let i = t.substring(e.start2 + e.length1, e.start2 + e.length1 + o);
1147
+ i && e.diffs.push(new d.Diff(0, i)), e.start1 -= s.length, e.start2 -= s.length, e.length1 += s.length + i.length, e.length2 += s.length + i.length;
1148
+ };
1149
+ d.prototype.patch_make = function(e, t, n) {
1150
+ let o, s;
1151
+ if (typeof e == "string" && typeof t == "string" && typeof n > "u") o = e, s = this.diff_main(o, t, !0), s.length > 2 && (this.diff_cleanupSemantic(s), this.diff_cleanupEfficiency(s));
1152
+ else if (e && typeof e == "object" && typeof t > "u" && typeof n > "u") s = e, o = this.diff_text1(s);
1153
+ else if (typeof e == "string" && t && typeof t == "object" && typeof n > "u") o = e, s = t;
1154
+ else if (typeof e == "string" && typeof t == "string" && n && typeof n == "object") o = e, s = n;
1155
+ else throw new Error("Unknown call format to patch_make.");
1156
+ if (s.length === 0) return [];
1157
+ s = this.diff_cleanupSplitSurrogates(s);
1158
+ let i = [], l = new d.patch_obj(), r = 0, a = 0, f = 0, c = o, h = o;
1159
+ for (let p = 0; p < s.length; p++) {
1160
+ let m = s[p][0], w = s[p][1];
1161
+ switch (!r && m !== 0 && (l.start1 = a, l.start2 = f), m) {
1162
+ case 1:
1163
+ l.diffs[r++] = s[p], l.length2 += w.length, h = h.substring(0, f) + w + h.substring(f);
1164
+ break;
1165
+ case -1:
1166
+ l.length1 += w.length, l.diffs[r++] = s[p], h = h.substring(0, f) + h.substring(f + w.length);
1167
+ break;
1168
+ case 0:
1169
+ w.length <= 2 * this.Patch_Margin && r && s.length != p + 1 ? (l.diffs[r++] = s[p], l.length1 += w.length, l.length2 += w.length) : w.length >= 2 * this.Patch_Margin && r && (this.patch_addContext_(l, c), i.push(l), l = new d.patch_obj(), r = 0, c = h, a = f);
1170
+ break;
1171
+ }
1172
+ m !== 1 && (a += w.length), m !== -1 && (f += w.length);
1173
+ }
1174
+ return r && (this.patch_addContext_(l, c), i.push(l)), i;
1175
+ };
1176
+ d.prototype.patch_deepCopy = function(e) {
1177
+ let t = [];
1178
+ for (let n = 0; n < e.length; n++) {
1179
+ let o = e[n], s = new d.patch_obj();
1180
+ s.diffs = [];
1181
+ for (let i = 0; i < o.diffs.length; i++) s.diffs[i] = new d.Diff(o.diffs[i][0], o.diffs[i][1]);
1182
+ s.start1 = o.start1, s.start2 = o.start2, s.length1 = o.length1, s.length2 = o.length2, t[n] = s;
1183
+ }
1184
+ return t;
1185
+ };
1186
+ d.prototype.patch_apply = function(e, t) {
1187
+ if (e.length == 0) return [t, []];
1188
+ e = this.patch_deepCopy(e);
1189
+ let n = this.patch_addPadding(e);
1190
+ t = n + t + n, this.patch_splitMax(e);
1191
+ let o = 0, s = [];
1192
+ for (let i = 0; i < e.length; i++) {
1193
+ let l = e[i].start2 + o, r = this.diff_text1(e[i].diffs), a, f = -1;
1194
+ if (r.length > this.Match_MaxBits ? (a = this.match_main(t, r.substring(0, this.Match_MaxBits), l), a != -1 && (f = this.match_main(t, r.substring(r.length - this.Match_MaxBits), l + r.length - this.Match_MaxBits), (f == -1 || a >= f) && (a = -1))) : a = this.match_main(t, r, l), a == -1) s[i] = !1, o -= e[i].length2 - e[i].length1;
1195
+ else {
1196
+ s[i] = !0, o = a - l;
1197
+ let c;
1198
+ if (f == -1 ? c = t.substring(a, a + r.length) : c = t.substring(a, f + this.Match_MaxBits), r == c) t = t.substring(0, a) + this.diff_text2(e[i].diffs) + t.substring(a + r.length);
1199
+ else {
1200
+ let h = this.diff_main(r, c, !1);
1201
+ if (r.length > this.Match_MaxBits && this.diff_levenshtein(h) / r.length > this.Patch_DeleteThreshold) s[i] = !1;
1202
+ else {
1203
+ this.diff_cleanupSemanticLossless(h);
1204
+ let p = 0, m;
1205
+ for (let w = 0; w < e[i].diffs.length; w++) {
1206
+ let v = e[i].diffs[w];
1207
+ v[0] !== 0 && (m = this.diff_xIndex(h, p)), v[0] === 1 ? t = t.substring(0, a + m) + v[1] + t.substring(a + m) : v[0] === -1 && (t = t.substring(0, a + m) + t.substring(a + this.diff_xIndex(h, p + v[1].length))), v[0] !== -1 && (p += v[1].length);
1208
+ }
1209
+ }
1210
+ }
1211
+ }
1212
+ }
1213
+ return t = t.substring(n.length, t.length - n.length), [t, s];
1214
+ };
1215
+ d.prototype.patch_addPadding = function(e) {
1216
+ let t = this.Patch_Margin, n = "";
1217
+ for (let i = 1; i <= t; i++) n += String.fromCharCode(i);
1218
+ for (let i = 0; i < e.length; i++) e[i].start1 += t, e[i].start2 += t;
1219
+ let o = e[0], s = o.diffs;
1220
+ if (s.length == 0 || s[0][0] != 0) s.unshift(new d.Diff(0, n)), o.start1 -= t, o.start2 -= t, o.length1 += t, o.length2 += t;
1221
+ else if (t > s[0][1].length) {
1222
+ let i = t - s[0][1].length;
1223
+ s[0][1] = n.substring(s[0][1].length) + s[0][1], o.start1 -= i, o.start2 -= i, o.length1 += i, o.length2 += i;
1224
+ }
1225
+ if (o = e[e.length - 1], s = o.diffs, s.length == 0 || s[s.length - 1][0] != 0) s.push(new d.Diff(0, n)), o.length1 += t, o.length2 += t;
1226
+ else if (t > s[s.length - 1][1].length) {
1227
+ let i = t - s[s.length - 1][1].length;
1228
+ s[s.length - 1][1] += n.substring(0, i), o.length1 += i, o.length2 += i;
1229
+ }
1230
+ return n;
1231
+ };
1232
+ d.prototype.patch_splitMax = function(e) {
1233
+ let t = this.Match_MaxBits;
1234
+ for (let n = 0; n < e.length; n++) {
1235
+ if (e[n].length1 <= t) continue;
1236
+ let o = e[n];
1237
+ e.splice(n--, 1);
1238
+ let s = o.start1, i = o.start2, l = "";
1239
+ for (; o.diffs.length !== 0; ) {
1240
+ let r = new d.patch_obj(), a = !0;
1241
+ for (r.start1 = s - l.length, r.start2 = i - l.length, l !== "" && (r.length1 = r.length2 = l.length, r.diffs.push(new d.Diff(0, l))); o.diffs.length !== 0 && r.length1 < t - this.Patch_Margin; ) {
1242
+ let c = o.diffs[0][0], h = o.diffs[0][1];
1243
+ c === 1 ? (r.length2 += h.length, i += h.length, r.diffs.push(o.diffs.shift()), a = !1) : c === -1 && r.diffs.length == 1 && r.diffs[0][0] == 0 && h.length > 2 * t ? (r.length1 += h.length, s += h.length, a = !1, r.diffs.push(new d.Diff(c, h)), o.diffs.shift()) : (h = h.substring(0, t - r.length1 - this.Patch_Margin), r.length1 += h.length, s += h.length, c === 0 ? (r.length2 += h.length, i += h.length) : a = !1, r.diffs.push(new d.Diff(c, h)), h == o.diffs[0][1] ? o.diffs.shift() : o.diffs[0][1] = o.diffs[0][1].substring(h.length));
1244
+ }
1245
+ l = this.diff_text2(r.diffs), l = l.substring(l.length - this.Patch_Margin);
1246
+ let f = this.diff_text1(o.diffs).substring(0, this.Patch_Margin);
1247
+ f !== "" && (r.length1 += f.length, r.length2 += f.length, r.diffs.length !== 0 && r.diffs[r.diffs.length - 1][0] === 0 ? r.diffs[r.diffs.length - 1][1] += f : r.diffs.push(new d.Diff(0, f))), a || e.splice(++n, 0, r);
1248
+ }
1249
+ }
1250
+ };
1251
+ d.prototype.patch_toText = function(e) {
1252
+ let t = [];
1253
+ for (let n = 0; n < e.length; n++) t[n] = e[n];
1254
+ return t.join("");
1255
+ };
1256
+ d.prototype.patch_fromText = function(e) {
1257
+ let t = [];
1258
+ if (!e) return t;
1259
+ let n = e.split(`
1260
+ `), o = 0, s = /^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;
1261
+ for (; o < n.length; ) {
1262
+ let i = n[o].match(s);
1263
+ if (!i) throw new Error("Invalid patch string: " + n[o]);
1264
+ let l = new d.patch_obj();
1265
+ for (t.push(l), l.start1 = parseInt(i[1], 10), i[2] === "" ? (l.start1--, l.length1 = 1) : i[2] == "0" ? l.length1 = 0 : (l.start1--, l.length1 = parseInt(i[2], 10)), l.start2 = parseInt(i[3], 10), i[4] === "" ? (l.start2--, l.length2 = 1) : i[4] == "0" ? l.length2 = 0 : (l.start2--, l.length2 = parseInt(i[4], 10)), o++; o < n.length; ) {
1266
+ let r = n[o].charAt(0), a = "";
1267
+ try {
1268
+ a = decodeURI(n[o].substring(1));
1269
+ } catch {
1270
+ throw new Error("Illegal escape in patch_fromText: " + a);
1271
+ }
1272
+ if (r == "-") l.diffs.push(new d.Diff(-1, a));
1273
+ else if (r == "+") l.diffs.push(new d.Diff(1, a));
1274
+ else if (r == " ") l.diffs.push(new d.Diff(0, a));
1275
+ else {
1276
+ if (r == "@") break;
1277
+ if (r !== "") throw new Error('Invalid patch mode "' + r + '" in: ' + a);
1278
+ }
1279
+ o++;
1280
+ }
1281
+ }
1282
+ return t;
1283
+ };
1284
+ d.patch_obj = function() {
1285
+ this.diffs = [], this.start1 = null, this.start2 = null, this.length1 = 0, this.length2 = 0;
1286
+ };
1287
+ d.patch_obj.prototype.toString = function() {
1288
+ let e, t;
1289
+ 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;
1290
+ let n = ["@@ -" + e + " +" + t + ` @@
1291
+ `], o;
1292
+ d.prototype.diff_cleanupSplitSurrogates(this.diffs);
1293
+ for (let s = 0; s < this.diffs.length; s++) {
1294
+ switch (this.diffs[s][0]) {
1295
+ case 1:
1296
+ o = "+";
1297
+ break;
1298
+ case -1:
1299
+ o = "-";
1300
+ break;
1301
+ case 0:
1302
+ o = " ";
1303
+ break;
1304
+ }
1305
+ n[s + 1] = o + encodeURI(this.diffs[s][1]) + `
1306
+ `;
1307
+ }
1308
+ return n.join("").replace(/%20/g, " ");
1309
+ };
1310
+ function G(e) {
1311
+ return e && typeof e == "object" && !Array.isArray(e) && e !== null;
1312
+ }
1313
+ function W(e, t) {
1314
+ return G(e) && G(t) && Object.keys(t).forEach((n) => {
1315
+ n === "__proto__" || n === "constructor" || (G(t[n]) ? ((!e[n] || !G(e[n])) && (e[n] = t[n]), W(e[n], t[n])) : Object.assign(e, { [n]: t[n] }));
1316
+ }), e;
1317
+ }
1318
+ function J(e, t, n = !1) {
1319
+ let o = null, s = !0;
1320
+ return (...i) => {
1321
+ const l = n && s, r = () => {
1322
+ e.apply(this, i), o = null;
1323
+ };
1324
+ l && (s = !1, r()), o || (o = setTimeout(r, t));
1325
+ };
1326
+ }
1327
+ function qe(e, t) {
1328
+ let n;
1329
+ return (...o) => {
1330
+ const s = this;
1331
+ clearTimeout(n), n = setTimeout(() => e.apply(s, o), t);
1332
+ };
1333
+ }
1334
+ function K(e = "") {
1335
+ return e.replace(/\r\n/g, `
1336
+ `);
1337
+ }
1338
+ function Q(e, t, n, o) {
1339
+ const s = n - e, i = e + s / 2;
1340
+ return `M ${e} ${t} C ${i},${t} ${i},${o} ${n},${o}`;
1341
+ }
1342
+ const T = { 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" };
1343
+ function X(e, t) {
1344
+ let { mode: n } = e.options;
1345
+ return t === T.EDITOR_LEFT && e.options.left.mode !== null && (n = e.options.left.mode), t === T.EDITOR_RIGHT && e.options.right.mode !== null && (n = e.options.right.mode), n;
1346
+ }
1347
+ function Z(e, t) {
1348
+ let { theme: n } = e.options;
1349
+ return t === T.EDITOR_LEFT && e.options.left.theme !== null && (n = e.options.left.theme), t === T.EDITOR_RIGHT && e.options.right.theme !== null && (n = e.options.right.theme), n;
1350
+ }
1351
+ function he(e, t) {
1352
+ return e.ace.getSession().doc.getLine(t);
1353
+ }
1354
+ function ze(e) {
1355
+ return document.getElementById(e.options.left.id).offsetHeight;
1356
+ }
1357
+ function ee(e) {
1358
+ const t = document.createElement("div"), n = { class: e.className, style: `top:${e.topOffset}px`, title: e.tooltip, "data-diff-index": e.diffIndex };
1359
+ for (const o in n) t.setAttribute(o, n[o]);
1360
+ return t.innerHTML = e.arrowContent, t;
1361
+ }
1362
+ function Y(e, t) {
1363
+ const n = Math.random().toString(36).substr(2, 5), o = `js-${t}-${n}`, s = e.querySelector(`.${t}`);
1364
+ if (s) return s.id = s.id || o, s.id;
1365
+ const i = document.createElement("div");
1366
+ return e.appendChild(i), i.className = t, i.id = o, i.id;
1367
+ }
1368
+ function te(e, t, n, o) {
1369
+ const s = e === "document" ? document : document.querySelector(e);
1370
+ s.addEventListener(t, (i) => {
1371
+ const l = s.querySelectorAll(n), { target: r } = i;
1372
+ for (let a = 0, f = l.length; a < f; a += 1) {
1373
+ let c = r;
1374
+ const h = l[a];
1375
+ for (; c && c !== s; ) c === h && o.call(h, i), c = c.parentNode;
1376
+ }
1377
+ });
1378
+ }
1379
+ let q;
1380
+ function Ye(e) {
1381
+ if (e.Range) return e.Range;
1382
+ const t = e.acequire || e.require;
1383
+ return t ? t("ace/range") : !1;
1384
+ }
1385
+ function z(e = {}) {
1386
+ if (!(this instanceof z)) return new z(e);
1387
+ const t = this, n = () => window ? window.ace : void 0;
1388
+ t.options = W({ ace: n(), mode: null, theme: null, element: null, diffGranularity: T.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);
1389
+ const { ace: o } = t.options;
1390
+ if (!o) {
1391
+ const s = "No ace editor found nor supplied - `options.ace` or `window.ace` is missing";
1392
+ return console.error(s), new Error(s);
1393
+ }
1394
+ if (q = Ye(o), !q) {
1395
+ const s = "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";
1396
+ return console.error(s), new Error(s);
1397
+ }
1398
+ if (t.options.element === null) {
1399
+ const s = "You need to specify an element for Ace-diff - `options.element` is missing";
1400
+ return console.error(s), new Error(s);
1401
+ }
1402
+ if (t.options.element instanceof HTMLElement ? t.el = t.options.element : t.el = document.body.querySelector(t.options.element), !t.el) {
1403
+ const s = `Can't find the specified element ${t.options.element}`;
1404
+ return console.error(s), new Error(s);
1405
+ }
1406
+ t.options.left.id = Y(t.el, "acediff__left"), t.options.classes.gutterID = Y(t.el, "acediff__gutter"), t.options.right.id = Y(t.el, "acediff__right"), t.el.innerHTML = `<div class="acediff__wrap">${t.el.innerHTML}</div>`, t.editors = { left: { ace: o.edit(t.options.left.id), markers: [], lineLengths: [] }, right: { ace: o.edit(t.options.right.id), markers: [], lineLengths: [] }, editorHeight: null }, t.editors.left.ace.getSession().setMode(X(t, T.EDITOR_LEFT)), t.editors.right.ace.getSession().setMode(X(t, T.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(Z(t, T.EDITOR_LEFT)), t.editors.right.ace.setTheme(Z(t, T.EDITOR_RIGHT)), t.editors.left.ace.setValue(K(t.options.left.content), -1), t.editors.right.ace.setValue(K(t.options.right.content), -1), t.editors.editorHeight = ze(t), setTimeout(() => {
1407
+ t.lineHeight = t.editors.left.ace.renderer.lineHeight, We(t), Xe(t), ue(t), t.diff();
1408
+ }, 1);
1409
+ }
1410
+ z.prototype = { setOptions(e) {
1411
+ W(this.options, e), this.diff();
1412
+ }, getNumDiffs() {
1413
+ return this.diffs.length;
1414
+ }, getEditors() {
1415
+ return { left: this.editors.left.ace, right: this.editors.right.ace };
1416
+ }, diff() {
1417
+ const e = new d(), t = this.editors.left.ace.getSession().getValue(), n = this.editors.right.ace.getSession().getValue(), o = e.diff_main(n, t);
1418
+ e.diff_cleanupSemantic(o), this.editors.left.lineLengths = ie(this.editors.left), this.editors.right.lineLengths = ie(this.editors.right);
1419
+ const s = [], i = { left: 0, right: 0 };
1420
+ o.forEach((l) => {
1421
+ const r = l[0];
1422
+ let a = l[1];
1423
+ a.length !== 0 && (r === T.DIFF_EQUAL ? (i.left += a.length, i.right += a.length) : r === T.DIFF_DELETE ? (s.push(le(this, T.DIFF_DELETE, i.left, i.right, a)), i.right += a.length) : r === T.DIFF_INSERT && (s.push(le(this, T.DIFF_INSERT, i.left, i.right, a)), i.left += a.length));
1424
+ }, this), this.diffs = tt(this, s), !(this.diffs.length > this.options.maxDiffs) && (ce(this), ge(this));
1425
+ }, destroy() {
1426
+ const e = this.editors.left.ace.getValue();
1427
+ this.editors.left.ace.destroy();
1428
+ let t = this.editors.left.ace.container, n = t.cloneNode(!1);
1429
+ n.textContent = e, t.parentNode.replaceChild(n, t);
1430
+ const o = this.editors.right.ace.getValue();
1431
+ this.editors.right.ace.destroy(), t = this.editors.right.ace.container, n = t.cloneNode(!1), n.textContent = o, t.parentNode.replaceChild(n, t), document.getElementById(this.options.classes.gutterID).innerHTML = "", de();
1432
+ } };
1433
+ let de = () => {
1434
+ };
1435
+ function We(e) {
1436
+ e.editors.left.ace.getSession().on("changeScrollTop", J(() => {
1437
+ se(e);
1438
+ }, 16)), e.editors.right.ace.getSession().on("changeScrollTop", J(() => {
1439
+ se(e);
1440
+ }, 16));
1441
+ const t = e.diff.bind(e);
1442
+ e.editors.left.ace.on("change", t), e.editors.right.ace.on("change", t), e.options.left.copyLinkEnabled && te(`#${e.options.classes.gutterID}`, "click", `.${e.options.classes.newCodeConnectorLink}`, (o) => {
1443
+ ne(e, o, T.LTR);
1444
+ }), e.options.right.copyLinkEnabled && te(`#${e.options.classes.gutterID}`, "click", `.${e.options.classes.deletedCodeConnectorLink}`, (o) => {
1445
+ ne(e, o, T.RTL);
1446
+ });
1447
+ const n = qe(() => {
1448
+ e.editors.availableHeight = document.getElementById(e.options.left.id).offsetHeight, e.diff();
1449
+ }, 250);
1450
+ window.addEventListener("resize", n), de = () => {
1451
+ window.removeEventListener("resize", n);
1452
+ };
1453
+ }
1454
+ function ne(e, t, n) {
1455
+ const o = parseInt(t.target.getAttribute("data-diff-index"), 10), s = e.diffs[o];
1456
+ let i, l, r, a, f, c;
1457
+ n === T.LTR ? (i = e.editors.left, l = e.editors.right, r = s.leftStartLine, a = s.leftEndLine, f = s.rightStartLine, c = s.rightEndLine) : (i = e.editors.right, l = e.editors.left, r = s.rightStartLine, a = s.rightEndLine, f = s.leftStartLine, c = s.leftEndLine);
1458
+ let h = "";
1459
+ for (let m = r; m < a; m += 1) h += he(i, m), m === r && h === "" && f != 0 && (h += `
1460
+ `), m < i.ace.getSession().getLength() - 1 && (h += `
1461
+ `);
1462
+ const p = l.ace.getSession().getScrollTop();
1463
+ l.ace.getSession().replace(new q(f, 0, c, 0), h), l.ace.getSession().setScrollTop(parseInt(p, 10)), e.diff();
1464
+ }
1465
+ function ie(e) {
1466
+ const t = e.ace.getSession().doc.getAllLines(), n = [];
1467
+ return t.forEach((o) => {
1468
+ n.push(o.length + 1);
1469
+ }), n;
1470
+ }
1471
+ function oe(e, t, n, o, s) {
1472
+ const i = e.editors[t];
1473
+ o < n && (o = n);
1474
+ const l = `${s} ${o > n ? "lines" : "targetOnly"}`;
1475
+ o > n && (o -= 1), i.markers.push(i.ace.session.addMarker(new q(n, 0, o, 1), l, "fullLine"));
1476
+ }
1477
+ function se(e) {
1478
+ ce(e), ge(e), Qe(e);
1479
+ }
1480
+ function ce(e) {
1481
+ e.editors.left.markers.forEach((t) => {
1482
+ e.editors.left.ace.getSession().removeMarker(t);
1483
+ }, e), e.editors.right.markers.forEach((t) => {
1484
+ e.editors.right.ace.getSession().removeMarker(t);
1485
+ }, e);
1486
+ }
1487
+ function Je(e, t, n, o, s) {
1488
+ const i = e.editors.left.ace.getSession().getScrollTop(), l = e.editors.right.ace.getSession().getScrollTop();
1489
+ e.connectorYOffset = 1;
1490
+ const r = -1, a = t * e.lineHeight - i + 0.5, f = e.gutterWidth + 1, c = o * e.lineHeight - l + 0.5, h = -1, p = n * e.lineHeight - i + e.connectorYOffset + 0.5, m = e.gutterWidth + 1, w = s * e.lineHeight - l + e.connectorYOffset + 0.5, v = Q(r, a, f, c), y = Q(m, w, h, p), b = `L${f},${c} ${m},${w}`, L = `L${h},${p} ${r},${a}`, x = `${v} ${b} ${y} ${L}`, C = document.createElementNS(T.SVG_NS, "path");
1491
+ C.setAttribute("d", x), C.setAttribute("class", e.options.classes.connector), e.gutterSVG.appendChild(C);
1492
+ }
1493
+ function Ke(e, t, n) {
1494
+ if (t.leftEndLine > t.leftStartLine && e.options.left.copyLinkEnabled) {
1495
+ const o = ee({ className: e.options.classes.newCodeConnectorLink, topOffset: t.leftStartLine * e.lineHeight, tooltip: "Copy to right", diffIndex: n, arrowContent: e.options.classes.newCodeConnectorLinkContent });
1496
+ e.copyRightContainer.appendChild(o);
1497
+ }
1498
+ if (t.rightEndLine > t.rightStartLine && e.options.right.copyLinkEnabled) {
1499
+ const o = ee({ className: e.options.classes.deletedCodeConnectorLink, topOffset: t.rightStartLine * e.lineHeight, tooltip: "Copy to left", diffIndex: n, arrowContent: e.options.classes.deletedCodeConnectorLinkContent });
1500
+ e.copyLeftContainer.appendChild(o);
1501
+ }
1502
+ }
1503
+ function Qe(e) {
1504
+ const t = e.editors.left.ace.getSession().getScrollTop(), n = e.editors.right.ace.getSession().getScrollTop();
1505
+ e.copyRightContainer.style.cssText = `top: ${-t}px`, e.copyLeftContainer.style.cssText = `top: ${-n}px`;
1506
+ }
1507
+ function le(e, t, n, o, s) {
1508
+ let i = {};
1509
+ if (t === T.DIFF_INSERT) {
1510
+ let l = re(e.editors.left, n, s), r = ae(e.editors.right, o), a = O(e.editors.right, r);
1511
+ const f = O(e.editors.left, l.startLine);
1512
+ let c = r, h = l.startLine === l.endLine, p = 0;
1513
+ (l.startChar > 0 || h && s.length < f) && a > 0 && l.startChar < f && p++, i = { leftStartLine: l.startLine, leftEndLine: l.endLine + 1, rightStartLine: c, rightEndLine: c + p };
1514
+ } else {
1515
+ let l = re(e.editors.right, o, s), r = ae(e.editors.left, n), a = O(e.editors.left, r);
1516
+ const f = O(e.editors.right, l.startLine);
1517
+ let c = r, h = l.startLine === l.endLine, p = 0;
1518
+ (l.startChar > 0 || h && s.length < f) && a > 0 && l.startChar < f && p++, i = { leftStartLine: c, leftEndLine: c + p, rightStartLine: l.startLine, rightEndLine: l.endLine + 1 };
1519
+ }
1520
+ return i;
1521
+ }
1522
+ function re(e, t, n) {
1523
+ const o = { startLine: 0, startChar: 0, endLine: 0, endChar: 0 }, s = t + n.length;
1524
+ let i = 0, l = !1, r = !1;
1525
+ e.lineLengths.forEach((f, c) => {
1526
+ i += f, !l && t < i && (o.startLine = c, o.startChar = t - i + f, l = !0), !r && s <= i && (o.endLine = c, o.endChar = s - i + f, r = !0);
1527
+ }), o.startChar > 0 && O(e, o.startLine) === o.startChar && (o.startLine++, o.startChar = 0), o.endChar === 0 && o.endLine--;
1528
+ const a = /\n$/.test(n);
1529
+ return o.startChar > 0 && a && o.endLine++, o;
1530
+ }
1531
+ function O(e, t) {
1532
+ return he(e, t).length;
1533
+ }
1534
+ function ae(e, t) {
1535
+ const n = e.ace.getSession().doc.getAllLines();
1536
+ let o = 0, s = 0;
1537
+ for (let i = 0; i < n.length; i += 1) if (s += n[i].length + 1, t < s) {
1538
+ o = i;
1539
+ break;
1540
+ }
1541
+ return s > e.ace.getSession().getValue().length && (o += 1), o;
1542
+ }
1543
+ function ue(e) {
1544
+ e.gutterHeight = document.getElementById(e.options.classes.gutterID).clientHeight, e.gutterWidth = document.getElementById(e.options.classes.gutterID).clientWidth;
1545
+ const t = fe(e, T.EDITOR_LEFT), n = fe(e, T.EDITOR_RIGHT), o = Math.max(t, n, e.gutterHeight);
1546
+ e.gutterSVG = document.createElementNS(T.SVG_NS, "svg"), e.gutterSVG.setAttribute("width", e.gutterWidth), e.gutterSVG.setAttribute("height", o), document.getElementById(e.options.classes.gutterID).appendChild(e.gutterSVG);
1547
+ }
1548
+ function fe(e, t) {
1549
+ return (t === T.EDITOR_LEFT ? e.editors.left : e.editors.right).ace.getSession().getLength() * e.lineHeight;
1550
+ }
1551
+ function Xe(e) {
1552
+ 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);
1553
+ }
1554
+ function Ze(e) {
1555
+ document.getElementById(e.options.classes.gutterID).removeChild(e.gutterSVG), ue(e);
1556
+ }
1557
+ function et(e) {
1558
+ e.copyLeftContainer.innerHTML = "", e.copyRightContainer.innerHTML = "";
1559
+ }
1560
+ function tt(e, t) {
1561
+ const n = [];
1562
+ function o(i) {
1563
+ return e.options.diffGranularity === T.DIFF_GRANULARITY_SPECIFIC ? i < 1 : i <= 1;
1564
+ }
1565
+ t.forEach((i, l) => {
1566
+ if (l === 0) {
1567
+ n.push(i);
1568
+ return;
1569
+ }
1570
+ let r = !1;
1571
+ for (let a = 0; a < n.length; a += 1) if (o(Math.abs(i.leftStartLine - n[a].leftEndLine)) && o(Math.abs(i.rightStartLine - n[a].rightEndLine))) {
1572
+ n[a].leftStartLine = Math.min(i.leftStartLine, n[a].leftStartLine), n[a].rightStartLine = Math.min(i.rightStartLine, n[a].rightStartLine), n[a].leftEndLine = Math.max(i.leftEndLine, n[a].leftEndLine), n[a].rightEndLine = Math.max(i.rightEndLine, n[a].rightEndLine), r = !0;
1573
+ break;
1574
+ }
1575
+ r || n.push(i);
1576
+ });
1577
+ const s = [];
1578
+ return n.forEach((i) => {
1579
+ i.leftStartLine === i.leftEndLine && i.rightStartLine === i.rightEndLine || s.push(i);
1580
+ }), s;
1581
+ }
1582
+ function ge(e) {
1583
+ Ze(e), et(e), e.diffs.forEach((t, n) => {
1584
+ e.options.showDiffs && (oe(e, T.EDITOR_LEFT, t.leftStartLine, t.leftEndLine, e.options.classes.diff), oe(e, T.EDITOR_RIGHT, t.rightStartLine, t.rightEndLine, e.options.classes.diff), e.options.showConnectors && Je(e, t.leftStartLine, t.leftEndLine, t.rightStartLine, t.rightEndLine), Ke(e, t, n));
1585
+ }, e);
1586
+ }
1587
+ const nt = {
1588
+ props: {
1589
+ pluginName: {
1590
+ type: String,
1591
+ required: !0
1592
+ },
1593
+ variables: {
1594
+ type: Object,
1595
+ required: !0
1596
+ },
1597
+ pluginTxt: {
1598
+ type: String,
1599
+ required: !0
1600
+ },
1601
+ existingPluginTxt: {
1602
+ type: String,
1603
+ required: !1
1604
+ },
1605
+ modelValue: Boolean
1606
+ // modelValue is the default prop when using v-model
1607
+ },
1608
+ data() {
1609
+ return {
1610
+ tab: 0,
1611
+ localVariables: [],
1612
+ localPluginTxt: "",
1613
+ localExistingPluginTxt: null,
1614
+ editor: null,
1615
+ differ: null
1616
+ };
1617
+ },
1618
+ mounted() {
1619
+ const e = this.buildPluginMode();
1620
+ this.existingPluginTxt === null ? (this.editor = R.edit(this.$refs.editor), this.editor.setTheme("ace/theme/twilight"), this.editor.session.setMode(new e()), this.editor.session.setTabSize(2), this.editor.session.setUseWrapMode(!0), this.editor.$blockScrolling = 1 / 0, this.editor.setHighlightActiveLine(!1), this.editor.setValue(this.localPluginTxt), this.editor.clearSelection(), this.editor.focus()) : (this.tab = 1, this.differ = new z({
1621
+ element: this.$refs.editor,
1622
+ mode: new e(),
1623
+ theme: "ace/theme/twilight",
1624
+ left: {
1625
+ content: this.localExistingPluginTxt,
1626
+ copyLinkEnabled: !1
1627
+ },
1628
+ right: {
1629
+ content: this.localPluginTxt,
1630
+ editable: !1
1631
+ }
1632
+ }), this.differ.getEditors().left.setFontSize(16), this.differ.getEditors().right.setFontSize(16), this.curDiff = -1);
1633
+ },
1634
+ beforeUnmount() {
1635
+ this.editor && this.editor.destroy(), this.differ && this.differ.destroy();
1636
+ },
1637
+ computed: {
1638
+ show: {
1639
+ get() {
1640
+ return this.modelValue;
1641
+ },
1642
+ set(e) {
1643
+ this.$emit("update:modelValue", e);
1644
+ }
1645
+ }
1646
+ },
1647
+ watch: {
1648
+ value: {
1649
+ immediate: !0,
1650
+ handler: function() {
1651
+ this.localVariables = JSON.parse(JSON.stringify(this.variables)), this.localPluginTxt = this.pluginTxt.slice(), this.existingPluginTxt !== null && (this.localExistingPluginTxt = this.existingPluginTxt.slice());
1652
+ }
1653
+ }
1654
+ },
1655
+ methods: {
1656
+ previousDiff() {
1657
+ this.curDiff--, this.curDiff < 0 && (this.curDiff = this.differ.diffs.length - 1), this.scrollToCurDiff();
1658
+ },
1659
+ nextDiff() {
1660
+ this.curDiff++, this.curDiff >= this.differ.diffs.length && (this.curDiff = 0), this.scrollToCurDiff();
1661
+ },
1662
+ scrollToCurDiff() {
1663
+ if (this.differ.diffs.length === 0) return;
1664
+ let e = this.differ.diffs[this.curDiff].leftStartLine, t = this.differ.diffs[this.curDiff].rightStartLine;
1665
+ e > 5 && (e -= 5), t > 5 && (t -= 5), this.differ.getEditors().left.scrollToLine(e), this.differ.getEditors().right.scrollToLine(t);
1666
+ },
1667
+ buildPluginMode() {
1668
+ let e = R.require("ace/lib/oop"), t = R.require(
1669
+ "ace/mode/ruby_highlight_rules"
1670
+ ).RubyHighlightRules, n = ["VARIABLE"], o = new RegExp(`(\\b${n.join("\\b|\\b")}\\b)`), s = function() {
1671
+ t.call(this);
1672
+ for (let c in this.$rules)
1673
+ this.$rules[c].unshift({
1674
+ regex: o,
1675
+ token: "support.function"
1676
+ });
1677
+ };
1678
+ e.inherits(s, t);
1679
+ let i = R.require(
1680
+ "ace/mode/matching_brace_outdent"
1681
+ ).MatchingBraceOutdent, l = R.require(
1682
+ "ace/mode/behaviour/cstyle"
1683
+ ).CstyleBehaviour, r = R.require("ace/mode/folding/ruby").FoldMode, a = function() {
1684
+ this.HighlightRules = s, this.$outdent = new i(), this.$behaviour = new l(), this.foldingRules = new r(), this.indentKeywords = this.foldingRules.indentKeywords;
1685
+ }, f = R.require("ace/mode/ruby").Mode;
1686
+ return e.inherits(a, f), (function() {
1687
+ this.$id = "ace/mode/openc3";
1688
+ }).call(a.prototype), a;
1689
+ },
1690
+ submit: function() {
1691
+ this.existingPluginTxt === null ? this.emitSubmit(this.editor.getValue().split(`
1692
+ `)) : this.differ.diffs.length === 0 ? this.emitSubmit(this.differ.getEditors().left.getValue().split(`
1693
+ `)) : this.$dialog.confirm(
1694
+ "Diffs still detected! Install using 'Existing plugin.txt' (left) and ignore additional changes in the new plugin.txt (right)?",
1695
+ {
1696
+ okText: "Install",
1697
+ cancelText: "Cancel"
1698
+ }
1699
+ ).then((e) => {
1700
+ this.emitSubmit(
1701
+ this.differ.getEditors().left.getValue().split(`
1702
+ `)
1703
+ );
1704
+ }).catch((e) => {
1705
+ });
1706
+ },
1707
+ emitSubmit(e) {
1708
+ let t = {
1709
+ name: this.pluginName,
1710
+ variables: ve(this.localVariables),
1711
+ plugin_txt_lines: e
1712
+ };
1713
+ this.$emit("callback", t);
1714
+ },
1715
+ close: function() {
1716
+ this.show = !this.show;
1717
+ }
1718
+ }
1719
+ }, it = { style: { flex: "1" } }, ot = { class: "pa-3" }, st = {
1720
+ ref: "editor",
1721
+ class: "editor"
1722
+ }, lt = {
1723
+ ref: "editor",
1724
+ class: "editor"
1725
+ }, rt = { key: 0 };
1726
+ function at(e, t, n, o, s, i) {
1727
+ const l = _("v-card-title"), r = _("v-icon"), a = _("v-row"), f = _("v-tab"), c = _("v-tabs"), h = _("v-text-field"), p = _("v-col"), m = _("v-window-item"), w = _("v-window"), v = _("v-btn"), y = _("v-spacer"), b = _("v-card-actions"), L = _("v-card-text"), x = _("v-card"), C = _("v-dialog");
1728
+ return S(), M(C, {
1729
+ persistent: "",
1730
+ modelValue: i.show,
1731
+ "onUpdate:modelValue": t[3] || (t[3] = (D) => i.show = D),
1732
+ width: "80vw"
1733
+ }, {
1734
+ default: u(() => [
1735
+ g(x, null, {
1736
+ default: u(() => [
1737
+ g(L, null, {
1738
+ default: u(() => [
1739
+ g(l, null, {
1740
+ default: u(() => [
1741
+ E(A(n.pluginName), 1)
1742
+ ]),
1743
+ _: 1
1744
+ }),
1745
+ n.existingPluginTxt !== null ? (S(), M(a, {
1746
+ key: 0,
1747
+ class: "notice d-flex flex-row"
1748
+ }, {
1749
+ default: u(() => [
1750
+ g(r, {
1751
+ size: "x-large",
1752
+ start: "",
1753
+ color: "yellow"
1754
+ }, {
1755
+ default: u(() => t[4] || (t[4] = [
1756
+ E(" mdi-alert-box ")
1757
+ ])),
1758
+ _: 1
1759
+ }),
1760
+ k("div", it, " The existing plugin.txt is different from the " + A(n.pluginName) + "'s plugin.txt. Navigate the diffs making whatever edits you want before installing. You may want to update " + A(n.pluginName) + "'s plugin.txt going forward. ", 1)
1761
+ ]),
1762
+ _: 1
1763
+ })) : H("", !0),
1764
+ g(a, { class: "pb-3 pr-3" }, {
1765
+ default: u(() => [
1766
+ g(c, {
1767
+ modelValue: s.tab,
1768
+ "onUpdate:modelValue": t[0] || (t[0] = (D) => s.tab = D),
1769
+ class: "ml-3"
1770
+ }, {
1771
+ default: u(() => [
1772
+ (S(), M(f, { key: 0 }, {
1773
+ default: u(() => t[5] || (t[5] = [
1774
+ E(" Variables ")
1775
+ ])),
1776
+ _: 1
1777
+ })),
1778
+ (S(), M(f, { key: 1 }, {
1779
+ default: u(() => t[6] || (t[6] = [
1780
+ E(" plugin.txt ")
1781
+ ])),
1782
+ _: 1
1783
+ }))
1784
+ ]),
1785
+ _: 1
1786
+ }, 8, ["modelValue"])
1787
+ ]),
1788
+ _: 1
1789
+ }),
1790
+ k("form", {
1791
+ onSubmit: t[2] || (t[2] = j((...D) => e.onSubmit && e.onSubmit(...D), ["prevent"]))
1792
+ }, [
1793
+ g(w, {
1794
+ modelValue: s.tab,
1795
+ "onUpdate:modelValue": t[1] || (t[1] = (D) => s.tab = D)
1796
+ }, {
1797
+ default: u(() => [
1798
+ (S(), M(m, {
1799
+ key: 0,
1800
+ eager: "true",
1801
+ class: "tab"
1802
+ }, {
1803
+ default: u(() => [
1804
+ k("div", ot, [
1805
+ g(a, { class: "mt-3" }, {
1806
+ default: u(() => [
1807
+ (S(!0), V(P, null, F(s.localVariables, (D, I) => (S(), V("div", { key: I }, [
1808
+ g(p, { style: { width: "220px" } }, {
1809
+ default: u(() => [
1810
+ g(h, {
1811
+ clearable: "",
1812
+ type: "text",
1813
+ label: I,
1814
+ modelValue: s.localVariables[I],
1815
+ "onUpdate:modelValue": (N) => s.localVariables[I] = N
1816
+ }, null, 8, ["label", "modelValue", "onUpdate:modelValue"])
1817
+ ]),
1818
+ _: 2
1819
+ }, 1024)
1820
+ ]))), 128))
1821
+ ]),
1822
+ _: 1
1823
+ })
1824
+ ])
1825
+ ]),
1826
+ _: 1
1827
+ })),
1828
+ n.existingPluginTxt === null ? (S(), M(m, {
1829
+ key: "1-new",
1830
+ eager: "true",
1831
+ class: "tab"
1832
+ }, {
1833
+ default: u(() => [
1834
+ g(a, { class: "pa-3" }, {
1835
+ default: u(() => [
1836
+ g(p, null, {
1837
+ default: u(() => t[7] || (t[7] = [
1838
+ E(" This can be edited before installation. ")
1839
+ ])),
1840
+ _: 1
1841
+ })
1842
+ ]),
1843
+ _: 1
1844
+ }),
1845
+ k("pre", st, null, 512)
1846
+ ]),
1847
+ _: 1
1848
+ })) : (S(), M(m, {
1849
+ key: "1-existing",
1850
+ eager: "true",
1851
+ class: "tab"
1852
+ }, {
1853
+ default: u(() => [
1854
+ g(a, { class: "pa-3" }, {
1855
+ default: u(() => [
1856
+ g(p, null, {
1857
+ default: u(() => t[8] || (t[8] = [
1858
+ E(" Existing plugin.txt. This can be edited before installation. ")
1859
+ ])),
1860
+ _: 1
1861
+ }),
1862
+ g(p, { class: "ml-6" }, {
1863
+ default: u(() => t[9] || (t[9] = [
1864
+ E(" Uneditable plugin.txt from the new plugin. ")
1865
+ ])),
1866
+ _: 1
1867
+ })
1868
+ ]),
1869
+ _: 1
1870
+ }),
1871
+ k("pre", lt, null, 512)
1872
+ ]),
1873
+ _: 1
1874
+ }))
1875
+ ]),
1876
+ _: 1
1877
+ }, 8, ["modelValue"]),
1878
+ g(b, { class: "px-2 mt-2" }, {
1879
+ default: u(() => [
1880
+ n.existingPluginTxt !== null ? (S(), V("div", rt, [
1881
+ g(v, {
1882
+ variant: "text",
1883
+ onClick: i.nextDiff
1884
+ }, {
1885
+ default: u(() => t[10] || (t[10] = [
1886
+ E(" Next Diff ")
1887
+ ])),
1888
+ _: 1
1889
+ }, 8, ["onClick"]),
1890
+ g(v, {
1891
+ variant: "text",
1892
+ onClick: i.previousDiff
1893
+ }, {
1894
+ default: u(() => t[11] || (t[11] = [
1895
+ E(" Previous Diff ")
1896
+ ])),
1897
+ _: 1
1898
+ }, 8, ["onClick"])
1899
+ ])) : H("", !0),
1900
+ g(y),
1901
+ g(v, {
1902
+ variant: "outlined",
1903
+ onClick: j(i.close, ["prevent"]),
1904
+ "data-test": "edit-cancel"
1905
+ }, {
1906
+ default: u(() => t[12] || (t[12] = [
1907
+ E(" Cancel ")
1908
+ ])),
1909
+ _: 1
1910
+ }, 8, ["onClick"]),
1911
+ g(v, {
1912
+ variant: "flat",
1913
+ onClick: i.submit,
1914
+ "data-test": "edit-submit"
1915
+ }, {
1916
+ default: u(() => t[13] || (t[13] = [
1917
+ E(" Install ")
1918
+ ])),
1919
+ _: 1
1920
+ }, 8, ["onClick"])
1921
+ ]),
1922
+ _: 1
1923
+ })
1924
+ ], 32)
1925
+ ]),
1926
+ _: 1
1927
+ })
1928
+ ]),
1929
+ _: 1
1930
+ })
1931
+ ]),
1932
+ _: 1
1933
+ }, 8, ["modelValue"]);
1934
+ }
1935
+ const wt = /* @__PURE__ */ U(nt, [["render", at], ["__scopeId", "data-v-4a504453"]]);
1936
+ export {
1937
+ pt as DownloadDialog,
1938
+ mt as EditDialog,
1939
+ _t as ModifiedPluginDialog,
1940
+ bt as OpenC3Admin,
1941
+ wt as PluginDialog,
1942
+ Be as TabsList
1943
+ };
1944
+ //# sourceMappingURL=admin.js.map