@truefoundry/trueforge 0.178.0-rc.4 → 0.178.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/dist/_frontend/assets/{AgentCodeSnippets-DC7L3EFM-cunlmwXr.js → AgentCodeSnippets-DC7L3EFM-JxW1m3mC.js} +1 -1
  2. package/dist/_frontend/assets/AgentCodeSnippets-DC7L3EFM-JxW1m3mC.js.br +0 -0
  3. package/dist/_frontend/assets/AgentCodeSnippets-DC7L3EFM-JxW1m3mC.js.gz +0 -0
  4. package/dist/_frontend/assets/{AgentMetricChart-JZ722TYK-BxGvBWyv.js → AgentMetricChart-JZ722TYK-SxtsoqPo.js} +1 -1
  5. package/dist/_frontend/assets/AgentMetricChart-JZ722TYK-SxtsoqPo.js.br +0 -0
  6. package/dist/_frontend/assets/AgentMetricChart-JZ722TYK-SxtsoqPo.js.gz +0 -0
  7. package/dist/_frontend/assets/{AgentOverview-NMX2MNLP-CsvnUXVH.js → AgentOverview-NMX2MNLP-Rli3q5m0.js} +1 -1
  8. package/dist/_frontend/assets/AgentOverview-NMX2MNLP-Rli3q5m0.js.br +0 -0
  9. package/dist/_frontend/assets/AgentOverview-NMX2MNLP-Rli3q5m0.js.gz +0 -0
  10. package/dist/_frontend/assets/{AgentSessionEventTimeline-MCG62ZNZ-BdNYfsrh.js → AgentSessionEventTimeline-MCG62ZNZ-B3vKe56J.js} +1 -1
  11. package/dist/_frontend/assets/AgentSessionEventTimeline-MCG62ZNZ-B3vKe56J.js.br +0 -0
  12. package/dist/_frontend/assets/AgentSessionEventTimeline-MCG62ZNZ-B3vKe56J.js.gz +0 -0
  13. package/dist/_frontend/assets/{AgentSessionEventTimelineChart-OKFBASWD-DL3SRWH4.js → AgentSessionEventTimelineChart-OKFBASWD--yeu9HfR.js} +1 -1
  14. package/dist/_frontend/assets/AgentSessionEventTimelineChart-OKFBASWD--yeu9HfR.js.br +0 -0
  15. package/dist/_frontend/assets/AgentSessionEventTimelineChart-OKFBASWD--yeu9HfR.js.gz +0 -0
  16. package/dist/_frontend/assets/{AgentSessions-PJUMC3WV-BQ68v9hM.js → AgentSessions-PJUMC3WV-cstg6Lxs.js} +1 -1
  17. package/dist/_frontend/assets/AgentSessions-PJUMC3WV-cstg6Lxs.js.br +0 -0
  18. package/dist/_frontend/assets/AgentSessions-PJUMC3WV-cstg6Lxs.js.gz +0 -0
  19. package/dist/_frontend/assets/{ConnectorSettings-AL5WOZEO-LjkdEk5Y.js → ConnectorSettings-AL5WOZEO-CJW6Gj8W.js} +1 -1
  20. package/dist/_frontend/assets/ConnectorSettings-AL5WOZEO-CJW6Gj8W.js.br +0 -0
  21. package/dist/_frontend/assets/ConnectorSettings-AL5WOZEO-CJW6Gj8W.js.gz +0 -0
  22. package/dist/_frontend/assets/{DockLayout-YMWCMOZI-D8rEmmVa.js → DockLayout-YMWCMOZI-BI1wrttp.js} +1 -1
  23. package/dist/_frontend/assets/{DrawerLayout-GJSHDVMV-DNQurKDG.js → DrawerLayout-GJSHDVMV-l5OX3ZYn.js} +2 -2
  24. package/dist/_frontend/assets/DrawerLayout-GJSHDVMV-l5OX3ZYn.js.br +0 -0
  25. package/dist/_frontend/assets/DrawerLayout-GJSHDVMV-l5OX3ZYn.js.gz +0 -0
  26. package/dist/_frontend/assets/{EnvironmentsPage-K5K7RCNY-Bik7WNID.js → EnvironmentsPage-K5K7RCNY--Is04pmW.js} +1 -1
  27. package/dist/_frontend/assets/EnvironmentsPage-K5K7RCNY--Is04pmW.js.br +0 -0
  28. package/dist/_frontend/assets/EnvironmentsPage-K5K7RCNY--Is04pmW.js.gz +0 -0
  29. package/dist/_frontend/assets/{ModelSettings-BO2PXSKR-8WCEqRMt.js → ModelSettings-BO2PXSKR-Cu5LVO_l.js} +1 -1
  30. package/dist/_frontend/assets/ModelSettings-BO2PXSKR-Cu5LVO_l.js.br +0 -0
  31. package/dist/_frontend/assets/ModelSettings-BO2PXSKR-Cu5LVO_l.js.gz +0 -0
  32. package/dist/_frontend/assets/{SandboxSettings-55LSWUB5-XX89Xf1Z.js → SandboxSettings-55LSWUB5-D4oOqFKH.js} +1 -1
  33. package/dist/_frontend/assets/SandboxSettings-55LSWUB5-D4oOqFKH.js.br +0 -0
  34. package/dist/_frontend/assets/SandboxSettings-55LSWUB5-D4oOqFKH.js.gz +0 -0
  35. package/dist/_frontend/assets/{SchedulesPage-JXAA2HTM-DDBt0BOz.js → SchedulesPage-JXAA2HTM-BUSDfmz7.js} +1 -1
  36. package/dist/_frontend/assets/SchedulesPage-JXAA2HTM-BUSDfmz7.js.br +0 -0
  37. package/dist/_frontend/assets/SchedulesPage-JXAA2HTM-BUSDfmz7.js.gz +0 -0
  38. package/dist/_frontend/assets/{SettingsBuilder-WDSZTJGX-CAGvTvA9.js → SettingsBuilder-WDSZTJGX-DjUD3lNq.js} +2 -2
  39. package/dist/_frontend/assets/SettingsBuilder-WDSZTJGX-DjUD3lNq.js.br +0 -0
  40. package/dist/_frontend/assets/SettingsBuilder-WDSZTJGX-DjUD3lNq.js.gz +0 -0
  41. package/dist/_frontend/assets/{ShellRouteSync-TE3SJHJP-DHp-MBpj.js → ShellRouteSync-TE3SJHJP-BGiyJYgI.js} +1 -1
  42. package/dist/_frontend/assets/ShellRouteSync-TE3SJHJP-BGiyJYgI.js.br +0 -0
  43. package/dist/_frontend/assets/ShellRouteSync-TE3SJHJP-BGiyJYgI.js.gz +0 -0
  44. package/dist/_frontend/assets/{SidebarLayout-VRT5P4F3-BkCnD5qn.js → SidebarLayout-VRT5P4F3-DSvVfIrp.js} +2 -2
  45. package/dist/_frontend/assets/SidebarLayout-VRT5P4F3-DSvVfIrp.js.br +0 -0
  46. package/dist/_frontend/assets/SidebarLayout-VRT5P4F3-DSvVfIrp.js.gz +0 -0
  47. package/dist/_frontend/assets/{SkillSettings-5Z3PAA4T-ydSfQi0E.js → SkillSettings-5Z3PAA4T-MYZyY5oW.js} +1 -1
  48. package/dist/_frontend/assets/SkillSettings-5Z3PAA4T-MYZyY5oW.js.br +0 -0
  49. package/dist/_frontend/assets/SkillSettings-5Z3PAA4T-MYZyY5oW.js.gz +0 -0
  50. package/dist/_frontend/assets/{TrueForgeUIWithRouter-IZIWP6VP-czLsOM9w.js → TrueForgeUIWithRouter-IZIWP6VP-xV0uRJhD.js} +1 -1
  51. package/dist/_frontend/assets/{WebSearchSettings-MYEWCQ54-ClAAsDpq.js → WebSearchSettings-MYEWCQ54-C-q6z8qp.js} +1 -1
  52. package/dist/_frontend/assets/WebSearchSettings-MYEWCQ54-C-q6z8qp.js.br +0 -0
  53. package/dist/_frontend/assets/WebSearchSettings-MYEWCQ54-C-q6z8qp.js.gz +0 -0
  54. package/dist/_frontend/assets/{WidgetLayout-NHT76YXT-BTV3zPND.js → WidgetLayout-NHT76YXT-B5jmAI2S.js} +1 -1
  55. package/dist/_frontend/assets/WidgetLayout-NHT76YXT-B5jmAI2S.js.br +0 -0
  56. package/dist/_frontend/assets/WidgetLayout-NHT76YXT-B5jmAI2S.js.gz +0 -0
  57. package/dist/_frontend/assets/{chunk-3ULYWPHJ-DexzhAWb.js → chunk-3ULYWPHJ-1m5jfrCv.js} +1 -1
  58. package/dist/_frontend/assets/chunk-3ULYWPHJ-1m5jfrCv.js.br +0 -0
  59. package/dist/_frontend/assets/chunk-3ULYWPHJ-1m5jfrCv.js.gz +0 -0
  60. package/dist/_frontend/assets/{chunk-NAHDIPS6-BjjkI9rx.js → chunk-NAHDIPS6-D0fCTTPV.js} +2 -2
  61. package/dist/_frontend/assets/chunk-NAHDIPS6-D0fCTTPV.js.br +0 -0
  62. package/dist/_frontend/assets/chunk-NAHDIPS6-D0fCTTPV.js.gz +0 -0
  63. package/dist/_frontend/assets/{chunk-OB3PAWPO-B7hydS-q.js → chunk-OB3PAWPO-CaG6yJmO.js} +1 -1
  64. package/dist/_frontend/assets/chunk-OB3PAWPO-CaG6yJmO.js.br +0 -0
  65. package/dist/_frontend/assets/chunk-OB3PAWPO-CaG6yJmO.js.gz +0 -0
  66. package/dist/_frontend/assets/{chunk-UYBNBQBX-CM7f_1OV.js → chunk-UYBNBQBX-BctaejAU.js} +1 -1
  67. package/dist/_frontend/assets/chunk-UYBNBQBX-BctaejAU.js.br +0 -0
  68. package/dist/_frontend/assets/chunk-UYBNBQBX-BctaejAU.js.gz +0 -0
  69. package/dist/_frontend/assets/{chunk-UZWZXJEE-C_ZiSr3-.js → chunk-UZWZXJEE-CVU1P1x-.js} +1 -1
  70. package/dist/_frontend/assets/{cssMode-DvOUTn2K.js → cssMode-DmrgsyD1.js} +1 -1
  71. package/dist/_frontend/assets/cssMode-DmrgsyD1.js.br +0 -0
  72. package/dist/_frontend/assets/cssMode-DmrgsyD1.js.gz +0 -0
  73. package/dist/_frontend/assets/{freemarker2-BcfS0xYI.js → freemarker2-fuNcelkU.js} +1 -1
  74. package/dist/_frontend/assets/freemarker2-fuNcelkU.js.br +0 -0
  75. package/dist/_frontend/assets/freemarker2-fuNcelkU.js.gz +0 -0
  76. package/dist/_frontend/assets/{handlebars-BB7yqRc_.js → handlebars-DTYTiiwH.js} +1 -1
  77. package/dist/_frontend/assets/handlebars-DTYTiiwH.js.br +0 -0
  78. package/dist/_frontend/assets/handlebars-DTYTiiwH.js.gz +0 -0
  79. package/dist/_frontend/assets/{html-CnjoIb7c.js → html-Bqc8bhKJ.js} +1 -1
  80. package/dist/_frontend/assets/html-Bqc8bhKJ.js.br +0 -0
  81. package/dist/_frontend/assets/html-Bqc8bhKJ.js.gz +0 -0
  82. package/dist/_frontend/assets/{htmlMode-CSf7UDhE.js → htmlMode-DE-7Ck4r.js} +1 -1
  83. package/dist/_frontend/assets/htmlMode-DE-7Ck4r.js.br +0 -0
  84. package/dist/_frontend/assets/htmlMode-DE-7Ck4r.js.gz +0 -0
  85. package/dist/_frontend/assets/{index-QTtKU5T4.js → index-Bn8EqRnc.js} +1 -1
  86. package/dist/_frontend/assets/index-Bn8EqRnc.js.br +0 -0
  87. package/dist/_frontend/assets/index-Bn8EqRnc.js.gz +0 -0
  88. package/dist/_frontend/assets/{index-ktuzn6VD.js → index-DWq2uvgb.js} +3 -3
  89. package/dist/_frontend/assets/index-DWq2uvgb.js.br +0 -0
  90. package/dist/_frontend/assets/index-DWq2uvgb.js.gz +0 -0
  91. package/dist/_frontend/assets/{index-BVaUmrfH.js → index-DcqWwbw9.js} +4 -4
  92. package/dist/_frontend/assets/index-DcqWwbw9.js.br +0 -0
  93. package/dist/_frontend/assets/{index-BVaUmrfH.js.gz → index-DcqWwbw9.js.gz} +0 -0
  94. package/dist/_frontend/assets/{javascript-BVhI8Lrv.js → javascript-3tLy-pYX.js} +1 -1
  95. package/dist/_frontend/assets/{jsonMode-sRfwiBhG.js → jsonMode-CeuqhqUr.js} +1 -1
  96. package/dist/_frontend/assets/jsonMode-CeuqhqUr.js.br +0 -0
  97. package/dist/_frontend/assets/jsonMode-CeuqhqUr.js.gz +0 -0
  98. package/dist/_frontend/assets/{liquid-ByASE2a2.js → liquid-B_CDAqhq.js} +1 -1
  99. package/dist/_frontend/assets/liquid-B_CDAqhq.js.br +0 -0
  100. package/dist/_frontend/assets/liquid-B_CDAqhq.js.gz +0 -0
  101. package/dist/_frontend/assets/{lspLanguageFeatures-DZC1GsaK.js → lspLanguageFeatures-Biz-VYAI.js} +1 -1
  102. package/dist/_frontend/assets/lspLanguageFeatures-Biz-VYAI.js.br +0 -0
  103. package/dist/_frontend/assets/lspLanguageFeatures-Biz-VYAI.js.gz +0 -0
  104. package/dist/_frontend/assets/{mdx-6QcD_h6v.js → mdx-D4q2im3u.js} +1 -1
  105. package/dist/_frontend/assets/mdx-D4q2im3u.js.br +0 -0
  106. package/dist/_frontend/assets/mdx-D4q2im3u.js.gz +0 -0
  107. package/dist/_frontend/assets/{python-DzHdrLS-.js → python-_2fI7bmO.js} +1 -1
  108. package/dist/_frontend/assets/python-_2fI7bmO.js.br +0 -0
  109. package/dist/_frontend/assets/python-_2fI7bmO.js.gz +0 -0
  110. package/dist/_frontend/assets/{razor-Dpx1cL0e.js → razor-DPjcApXZ.js} +1 -1
  111. package/dist/_frontend/assets/razor-DPjcApXZ.js.br +0 -0
  112. package/dist/_frontend/assets/razor-DPjcApXZ.js.gz +0 -0
  113. package/dist/_frontend/assets/{tsMode-Dy3fREt1.js → tsMode-BIxH7XNZ.js} +1 -1
  114. package/dist/_frontend/assets/tsMode-BIxH7XNZ.js.br +0 -0
  115. package/dist/_frontend/assets/tsMode-BIxH7XNZ.js.gz +0 -0
  116. package/dist/_frontend/assets/{typescript-ChhxvXAY.js → typescript-j7EbA6zc.js} +1 -1
  117. package/dist/_frontend/assets/typescript-j7EbA6zc.js.br +0 -0
  118. package/dist/_frontend/assets/typescript-j7EbA6zc.js.gz +0 -0
  119. package/dist/_frontend/assets/{workers-CXZ3fi_g.js → workers-CmHIaj_A.js} +1 -1
  120. package/dist/_frontend/assets/workers-CmHIaj_A.js.br +0 -0
  121. package/dist/_frontend/assets/workers-CmHIaj_A.js.gz +0 -0
  122. package/dist/_frontend/assets/{xml-O1BYQF3r.js → xml-DS2z9mi-.js} +1 -1
  123. package/dist/_frontend/assets/xml-DS2z9mi-.js.br +0 -0
  124. package/dist/_frontend/assets/xml-DS2z9mi-.js.gz +0 -0
  125. package/dist/_frontend/assets/{yaml-C2rjClFq.js → yaml-SC2hdRDZ.js} +1 -1
  126. package/dist/_frontend/assets/yaml-SC2hdRDZ.js.br +0 -0
  127. package/dist/_frontend/assets/yaml-SC2hdRDZ.js.gz +0 -0
  128. package/dist/_frontend/index.html +1 -1
  129. package/package.json +3 -3
  130. package/dist/_frontend/assets/AgentCodeSnippets-DC7L3EFM-cunlmwXr.js.br +0 -0
  131. package/dist/_frontend/assets/AgentCodeSnippets-DC7L3EFM-cunlmwXr.js.gz +0 -0
  132. package/dist/_frontend/assets/AgentMetricChart-JZ722TYK-BxGvBWyv.js.br +0 -0
  133. package/dist/_frontend/assets/AgentMetricChart-JZ722TYK-BxGvBWyv.js.gz +0 -0
  134. package/dist/_frontend/assets/AgentOverview-NMX2MNLP-CsvnUXVH.js.br +0 -0
  135. package/dist/_frontend/assets/AgentOverview-NMX2MNLP-CsvnUXVH.js.gz +0 -0
  136. package/dist/_frontend/assets/AgentSessionEventTimeline-MCG62ZNZ-BdNYfsrh.js.br +0 -0
  137. package/dist/_frontend/assets/AgentSessionEventTimeline-MCG62ZNZ-BdNYfsrh.js.gz +0 -0
  138. package/dist/_frontend/assets/AgentSessionEventTimelineChart-OKFBASWD-DL3SRWH4.js.br +0 -0
  139. package/dist/_frontend/assets/AgentSessionEventTimelineChart-OKFBASWD-DL3SRWH4.js.gz +0 -0
  140. package/dist/_frontend/assets/AgentSessions-PJUMC3WV-BQ68v9hM.js.br +0 -0
  141. package/dist/_frontend/assets/AgentSessions-PJUMC3WV-BQ68v9hM.js.gz +0 -0
  142. package/dist/_frontend/assets/ConnectorSettings-AL5WOZEO-LjkdEk5Y.js.br +0 -0
  143. package/dist/_frontend/assets/ConnectorSettings-AL5WOZEO-LjkdEk5Y.js.gz +0 -0
  144. package/dist/_frontend/assets/DrawerLayout-GJSHDVMV-DNQurKDG.js.br +0 -0
  145. package/dist/_frontend/assets/DrawerLayout-GJSHDVMV-DNQurKDG.js.gz +0 -0
  146. package/dist/_frontend/assets/EnvironmentsPage-K5K7RCNY-Bik7WNID.js.br +0 -0
  147. package/dist/_frontend/assets/EnvironmentsPage-K5K7RCNY-Bik7WNID.js.gz +0 -0
  148. package/dist/_frontend/assets/ModelSettings-BO2PXSKR-8WCEqRMt.js.br +0 -0
  149. package/dist/_frontend/assets/ModelSettings-BO2PXSKR-8WCEqRMt.js.gz +0 -0
  150. package/dist/_frontend/assets/SandboxSettings-55LSWUB5-XX89Xf1Z.js.br +0 -0
  151. package/dist/_frontend/assets/SandboxSettings-55LSWUB5-XX89Xf1Z.js.gz +0 -0
  152. package/dist/_frontend/assets/SchedulesPage-JXAA2HTM-DDBt0BOz.js.br +0 -0
  153. package/dist/_frontend/assets/SchedulesPage-JXAA2HTM-DDBt0BOz.js.gz +0 -0
  154. package/dist/_frontend/assets/SettingsBuilder-WDSZTJGX-CAGvTvA9.js.br +0 -0
  155. package/dist/_frontend/assets/SettingsBuilder-WDSZTJGX-CAGvTvA9.js.gz +0 -0
  156. package/dist/_frontend/assets/ShellRouteSync-TE3SJHJP-DHp-MBpj.js.br +0 -0
  157. package/dist/_frontend/assets/ShellRouteSync-TE3SJHJP-DHp-MBpj.js.gz +0 -0
  158. package/dist/_frontend/assets/SidebarLayout-VRT5P4F3-BkCnD5qn.js.br +0 -0
  159. package/dist/_frontend/assets/SidebarLayout-VRT5P4F3-BkCnD5qn.js.gz +0 -0
  160. package/dist/_frontend/assets/SkillSettings-5Z3PAA4T-ydSfQi0E.js.br +0 -0
  161. package/dist/_frontend/assets/SkillSettings-5Z3PAA4T-ydSfQi0E.js.gz +0 -0
  162. package/dist/_frontend/assets/WebSearchSettings-MYEWCQ54-ClAAsDpq.js.br +0 -0
  163. package/dist/_frontend/assets/WebSearchSettings-MYEWCQ54-ClAAsDpq.js.gz +0 -0
  164. package/dist/_frontend/assets/WidgetLayout-NHT76YXT-BTV3zPND.js.br +0 -0
  165. package/dist/_frontend/assets/WidgetLayout-NHT76YXT-BTV3zPND.js.gz +0 -0
  166. package/dist/_frontend/assets/chunk-3ULYWPHJ-DexzhAWb.js.br +0 -0
  167. package/dist/_frontend/assets/chunk-3ULYWPHJ-DexzhAWb.js.gz +0 -0
  168. package/dist/_frontend/assets/chunk-NAHDIPS6-BjjkI9rx.js.br +0 -0
  169. package/dist/_frontend/assets/chunk-NAHDIPS6-BjjkI9rx.js.gz +0 -0
  170. package/dist/_frontend/assets/chunk-OB3PAWPO-B7hydS-q.js.br +0 -0
  171. package/dist/_frontend/assets/chunk-OB3PAWPO-B7hydS-q.js.gz +0 -0
  172. package/dist/_frontend/assets/chunk-UYBNBQBX-CM7f_1OV.js.br +0 -0
  173. package/dist/_frontend/assets/chunk-UYBNBQBX-CM7f_1OV.js.gz +0 -0
  174. package/dist/_frontend/assets/cssMode-DvOUTn2K.js.br +0 -0
  175. package/dist/_frontend/assets/cssMode-DvOUTn2K.js.gz +0 -0
  176. package/dist/_frontend/assets/freemarker2-BcfS0xYI.js.br +0 -0
  177. package/dist/_frontend/assets/freemarker2-BcfS0xYI.js.gz +0 -0
  178. package/dist/_frontend/assets/handlebars-BB7yqRc_.js.br +0 -0
  179. package/dist/_frontend/assets/handlebars-BB7yqRc_.js.gz +0 -0
  180. package/dist/_frontend/assets/html-CnjoIb7c.js.br +0 -0
  181. package/dist/_frontend/assets/html-CnjoIb7c.js.gz +0 -0
  182. package/dist/_frontend/assets/htmlMode-CSf7UDhE.js.br +0 -0
  183. package/dist/_frontend/assets/htmlMode-CSf7UDhE.js.gz +0 -0
  184. package/dist/_frontend/assets/index-BVaUmrfH.js.br +0 -0
  185. package/dist/_frontend/assets/index-QTtKU5T4.js.br +0 -0
  186. package/dist/_frontend/assets/index-QTtKU5T4.js.gz +0 -0
  187. package/dist/_frontend/assets/index-ktuzn6VD.js.br +0 -0
  188. package/dist/_frontend/assets/index-ktuzn6VD.js.gz +0 -0
  189. package/dist/_frontend/assets/jsonMode-sRfwiBhG.js.br +0 -0
  190. package/dist/_frontend/assets/jsonMode-sRfwiBhG.js.gz +0 -0
  191. package/dist/_frontend/assets/liquid-ByASE2a2.js.br +0 -0
  192. package/dist/_frontend/assets/liquid-ByASE2a2.js.gz +0 -0
  193. package/dist/_frontend/assets/lspLanguageFeatures-DZC1GsaK.js.br +0 -0
  194. package/dist/_frontend/assets/lspLanguageFeatures-DZC1GsaK.js.gz +0 -0
  195. package/dist/_frontend/assets/mdx-6QcD_h6v.js.br +0 -0
  196. package/dist/_frontend/assets/mdx-6QcD_h6v.js.gz +0 -0
  197. package/dist/_frontend/assets/python-DzHdrLS-.js.br +0 -0
  198. package/dist/_frontend/assets/python-DzHdrLS-.js.gz +0 -0
  199. package/dist/_frontend/assets/razor-Dpx1cL0e.js.br +0 -0
  200. package/dist/_frontend/assets/razor-Dpx1cL0e.js.gz +0 -0
  201. package/dist/_frontend/assets/tsMode-Dy3fREt1.js.br +0 -0
  202. package/dist/_frontend/assets/tsMode-Dy3fREt1.js.gz +0 -0
  203. package/dist/_frontend/assets/typescript-ChhxvXAY.js.br +0 -0
  204. package/dist/_frontend/assets/typescript-ChhxvXAY.js.gz +0 -0
  205. package/dist/_frontend/assets/workers-CXZ3fi_g.js.br +0 -0
  206. package/dist/_frontend/assets/workers-CXZ3fi_g.js.gz +0 -0
  207. package/dist/_frontend/assets/xml-O1BYQF3r.js.br +0 -0
  208. package/dist/_frontend/assets/xml-O1BYQF3r.js.gz +0 -0
  209. package/dist/_frontend/assets/yaml-C2rjClFq.js.br +0 -0
  210. package/dist/_frontend/assets/yaml-C2rjClFq.js.gz +0 -0
@@ -1 +1 @@
1
- import{b4 as U,t as B,U as O,r as t,W as A,j as e,I as P,a2 as I,b6 as D,al as z,as as T}from"./index-BVaUmrfH.js";var V=T("h-11 shadow-sm"),L=({open:r,onOpenChange:l,onSave:b,title:c,description:N,requireApiKey:d=!0,busy:p=!1,error:f})=>{const[h,u]=t.useState(""),m=()=>{u("")};t.useEffect(()=>{r&&u("")},[r]);const w=a=>{a||m(),l(a)},n=h.trim(),x=!d||!!n,g=async a=>{if(a.preventDefault(),!(!x||p))try{await b({apiKey:n}),m(),l(!1)}catch{}};return e.jsx(D,{open:r,onOpenChange:w,title:c,description:N,contentSized:!0,headerIcon:e.jsx("span",{className:"flex size-11 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary","aria-hidden":!0,children:e.jsx(P,{name:"search",className:"size-6"})}),children:e.jsxs("form",{className:"flex flex-col overflow-y-auto p-5 md:p-6",onSubmit:g,children:[e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"web-search-api-key",className:"mb-1.5 block text-sm font-medium text-text-primary",children:["API key",d?null:e.jsx("span",{className:"font-normal text-text-secondary",children:" (optional)"})]}),e.jsx("input",{id:"web-search-api-key",type:"password",required:d,value:h,onChange:a=>{u(a.target.value)},placeholder:d?"Parallel API key":"Leave blank to keep existing",autoFocus:!0,className:V})]})}),e.jsxs("div",{className:"mt-6 space-y-3",children:[f?e.jsx("p",{className:"text-failure-bg text-sm",children:f}):null,e.jsx(I.Primary,{type:"submit",size:"large",disabled:!x||p,className:"w-full shrink-0",children:"Save"})]})]})})},M=L,$=()=>{const{webSearchCatalog:r}=U(),l=B(),b=O(),[c,N]=t.useState([]),[d,p]=t.useState([]),[f,h]=t.useState(!0),[u,m]=t.useState(null),[w,n]=t.useState(null),[x,g]=t.useState(!1),[a,y]=t.useState(null),[o,v]=t.useState(null),S=t.useCallback(async({quiet:s=!1}={})=>{if(r){s||h(!0),m(null);try{const[i,j]=await Promise.all([r.listWebSearchProviders(),r.getWebSearchProviderCatalog()]);N(i),p(j)}catch(i){m(A(i,"Failed to load web search providers"))}finally{s||h(!1)}}},[r]);t.useEffect(()=>{S()},[S]);const C=c.length>0,k=t.useMemo(()=>{if(C)return[];const s=new Set(c.map(i=>i.catalogId));return d.filter(i=>!s.has(i.id))},[d,c,C]);if(!r)return e.jsx("p",{className:"text-sm text-text-secondary",children:"Web search provider catalog is not available."});const W=async(s,i=m)=>{g(!0),m(null);try{await s(),await S({quiet:!0})}catch(j){throw i(A(j,"Request failed")),j}finally{g(!1)}},_=async s=>{a&&(n(null),await W(async()=>{await r.createWebSearchProvider({catalogId:a.id,name:a.name,type:a.type,apiKey:s.apiKey})},n),y(null),setTimeout(()=>{l==null||l.showSuccess({title:`${a.name} configured`}),b(z.Settings.WEB_SEARCH_PROVIDER_SAVED,{provider_name:a.name,mode:"create"})},0))},F=async s=>{o&&(n(null),await W(async()=>{await r.updateWebSearchProvider({id:o.id,...s.apiKey?{apiKey:s.apiKey}:{}})},n),v(null),setTimeout(()=>{l==null||l.showSuccess({title:`${o.name} updated`}),b(z.Settings.WEB_SEARCH_PROVIDER_SAVED,{provider_name:o.name,mode:"update"})},0))},R=a!=null||o!=null,E=o!=null,K=o?`Update ${o.name}`:a?`Configure ${a.name}`:"Configure web search provider";return e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"text-xl font-semibold tracking-tight text-text-primary",children:"Web search"}),e.jsx("p",{className:"mt-1 text-sm text-text-secondary",children:"Configure a provider so agents can search the web. Only one can be active at a time."}),u?e.jsx("p",{className:"mt-3 rounded-md border border-failure-bg/30 bg-failure-bg/10 px-3 py-2 text-sm text-failure-bg",children:u}):null,e.jsx("div",{className:"mt-4 flex-1 overflow-y-auto",children:f?e.jsx("p",{className:"text-sm text-text-secondary",children:"Loading web search providers…"}):e.jsxs("div",{className:"space-y-6",children:[c.length>0?e.jsxs("section",{children:[e.jsxs("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-text-secondary",children:["Configured · ",c.length]}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card-bg",children:c.map(s=>e.jsxs("article",{className:"flex flex-col gap-3 border-b border-border p-3 last:border-b-0 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[e.jsx("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary","aria-hidden":!0,children:e.jsx(P,{name:"search",className:"size-4.5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h5",{className:"truncate text-sm font-medium text-text-primary",children:s.name}),e.jsx("p",{className:"truncate text-xs text-text-secondary",children:"Parallel web search"})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2.5 sm:justify-end",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm font-medium text-success-bg",children:[e.jsx("span",{className:"size-2 rounded-full bg-success-bg","aria-hidden":!0}),"Connected"]}),e.jsx(I.Secondary,{size:"small",type:"button",disabled:x,onClick:()=>{n(null),y(null),v(s)},children:"Update"})]})]},s.id))})]}):null,C?null:e.jsxs("section",{children:[e.jsxs("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-text-secondary",children:["Available · ",k.length]}),k.length===0?e.jsx("p",{className:"text-sm text-text-secondary",children:d.length>0?"All catalog providers are configured.":"No web search providers in the catalog."}):e.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card-bg",children:k.map(s=>e.jsxs("article",{className:"flex flex-col gap-3 border-b border-border p-3 last:border-b-0 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[e.jsx("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary","aria-hidden":!0,children:e.jsx(P,{name:"search",className:"size-4.5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h5",{className:"truncate text-sm font-medium text-text-primary",children:s.name}),e.jsx("p",{className:"truncate text-xs text-text-secondary",children:"Parallel web search"})]})]}),e.jsx(I.Secondary,{type:"button",disabled:x,onClick:()=>{n(null),v(null),y(s)},children:"Configure"})]},s.id))})]})]})}),e.jsx(M,{open:R,onOpenChange:s=>{s||(n(null),y(null),v(null))},onSave:E?F:_,title:K,description:E?"Update this web search provider. Leave API key blank to keep the existing key.":"Configure this web search provider. API key is never stored in the catalog.",requireApiKey:!E,busy:x,error:w})]})},q=$;export{q as default};
1
+ import{b4 as U,t as B,U as O,r as t,W as A,j as e,I as P,a2 as I,b6 as D,al as z,as as T}from"./index-DcqWwbw9.js";var V=T("h-11 shadow-sm"),L=({open:r,onOpenChange:l,onSave:b,title:c,description:N,requireApiKey:d=!0,busy:p=!1,error:f})=>{const[h,u]=t.useState(""),m=()=>{u("")};t.useEffect(()=>{r&&u("")},[r]);const w=a=>{a||m(),l(a)},n=h.trim(),x=!d||!!n,g=async a=>{if(a.preventDefault(),!(!x||p))try{await b({apiKey:n}),m(),l(!1)}catch{}};return e.jsx(D,{open:r,onOpenChange:w,title:c,description:N,contentSized:!0,headerIcon:e.jsx("span",{className:"flex size-11 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary","aria-hidden":!0,children:e.jsx(P,{name:"search",className:"size-6"})}),children:e.jsxs("form",{className:"flex flex-col overflow-y-auto p-5 md:p-6",onSubmit:g,children:[e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{children:[e.jsxs("label",{htmlFor:"web-search-api-key",className:"mb-1.5 block text-sm font-medium text-text-primary",children:["API key",d?null:e.jsx("span",{className:"font-normal text-text-secondary",children:" (optional)"})]}),e.jsx("input",{id:"web-search-api-key",type:"password",required:d,value:h,onChange:a=>{u(a.target.value)},placeholder:d?"Parallel API key":"Leave blank to keep existing",autoFocus:!0,className:V})]})}),e.jsxs("div",{className:"mt-6 space-y-3",children:[f?e.jsx("p",{className:"text-failure-bg text-sm",children:f}):null,e.jsx(I.Primary,{type:"submit",size:"large",disabled:!x||p,className:"w-full shrink-0",children:"Save"})]})]})})},M=L,$=()=>{const{webSearchCatalog:r}=U(),l=B(),b=O(),[c,N]=t.useState([]),[d,p]=t.useState([]),[f,h]=t.useState(!0),[u,m]=t.useState(null),[w,n]=t.useState(null),[x,g]=t.useState(!1),[a,y]=t.useState(null),[o,v]=t.useState(null),S=t.useCallback(async({quiet:s=!1}={})=>{if(r){s||h(!0),m(null);try{const[i,j]=await Promise.all([r.listWebSearchProviders(),r.getWebSearchProviderCatalog()]);N(i),p(j)}catch(i){m(A(i,"Failed to load web search providers"))}finally{s||h(!1)}}},[r]);t.useEffect(()=>{S()},[S]);const C=c.length>0,k=t.useMemo(()=>{if(C)return[];const s=new Set(c.map(i=>i.catalogId));return d.filter(i=>!s.has(i.id))},[d,c,C]);if(!r)return e.jsx("p",{className:"text-sm text-text-secondary",children:"Web search provider catalog is not available."});const W=async(s,i=m)=>{g(!0),m(null);try{await s(),await S({quiet:!0})}catch(j){throw i(A(j,"Request failed")),j}finally{g(!1)}},_=async s=>{a&&(n(null),await W(async()=>{await r.createWebSearchProvider({catalogId:a.id,name:a.name,type:a.type,apiKey:s.apiKey})},n),y(null),setTimeout(()=>{l==null||l.showSuccess({title:`${a.name} configured`}),b(z.Settings.WEB_SEARCH_PROVIDER_SAVED,{provider_name:a.name,mode:"create"})},0))},F=async s=>{o&&(n(null),await W(async()=>{await r.updateWebSearchProvider({id:o.id,...s.apiKey?{apiKey:s.apiKey}:{}})},n),v(null),setTimeout(()=>{l==null||l.showSuccess({title:`${o.name} updated`}),b(z.Settings.WEB_SEARCH_PROVIDER_SAVED,{provider_name:o.name,mode:"update"})},0))},R=a!=null||o!=null,E=o!=null,K=o?`Update ${o.name}`:a?`Configure ${a.name}`:"Configure web search provider";return e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"text-xl font-semibold tracking-tight text-text-primary",children:"Web search"}),e.jsx("p",{className:"mt-1 text-sm text-text-secondary",children:"Configure a provider so agents can search the web. Only one can be active at a time."}),u?e.jsx("p",{className:"mt-3 rounded-md border border-failure-bg/30 bg-failure-bg/10 px-3 py-2 text-sm text-failure-bg",children:u}):null,e.jsx("div",{className:"mt-4 flex-1 overflow-y-auto",children:f?e.jsx("p",{className:"text-sm text-text-secondary",children:"Loading web search providers…"}):e.jsxs("div",{className:"space-y-6",children:[c.length>0?e.jsxs("section",{children:[e.jsxs("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-text-secondary",children:["Configured · ",c.length]}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card-bg",children:c.map(s=>e.jsxs("article",{className:"flex flex-col gap-3 border-b border-border p-3 last:border-b-0 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[e.jsx("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary","aria-hidden":!0,children:e.jsx(P,{name:"search",className:"size-4.5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h5",{className:"truncate text-sm font-medium text-text-primary",children:s.name}),e.jsx("p",{className:"truncate text-xs text-text-secondary",children:"Parallel web search"})]})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2.5 sm:justify-end",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm font-medium text-success-bg",children:[e.jsx("span",{className:"size-2 rounded-full bg-success-bg","aria-hidden":!0}),"Connected"]}),e.jsx(I.Secondary,{size:"small",type:"button",disabled:x,onClick:()=>{n(null),y(null),v(s)},children:"Update"})]})]},s.id))})]}):null,C?null:e.jsxs("section",{children:[e.jsxs("h4",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-text-secondary",children:["Available · ",k.length]}),k.length===0?e.jsx("p",{className:"text-sm text-text-secondary",children:d.length>0?"All catalog providers are configured.":"No web search providers in the catalog."}):e.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card-bg",children:k.map(s=>e.jsxs("article",{className:"flex flex-col gap-3 border-b border-border p-3 last:border-b-0 sm:flex-row sm:items-center",children:[e.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[e.jsx("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary","aria-hidden":!0,children:e.jsx(P,{name:"search",className:"size-4.5"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h5",{className:"truncate text-sm font-medium text-text-primary",children:s.name}),e.jsx("p",{className:"truncate text-xs text-text-secondary",children:"Parallel web search"})]})]}),e.jsx(I.Secondary,{type:"button",disabled:x,onClick:()=>{n(null),v(null),y(s)},children:"Configure"})]},s.id))})]})]})}),e.jsx(M,{open:R,onOpenChange:s=>{s||(n(null),y(null),v(null))},onSave:E?F:_,title:K,description:E?"Update this web search provider. Leave API key blank to keep the existing key.":"Configure this web search provider. API key is never stored in the catalog.",requireApiKey:!E,busy:x,error:w})]})},q=$;export{q as default};
@@ -1 +1 @@
1
- import{S as m}from"./chunk-NAHDIPS6-BjjkI9rx.js";import{d as x,h as f,r,j as e,C as p,I as b,f as h,g as v}from"./index-BVaUmrfH.js";import"./chunk-3ULYWPHJ-DexzhAWb.js";function j({className:u}){const d=x("BrandLogo"),{open:a,setOpen:n}=f(),l=r.useRef(null),s=r.useRef(null),i=r.useRef(!1);return r.useEffect(()=>{if(!a)return;const t=o=>{var c;o.key==="Escape"&&!((c=s.current)!=null&&c.querySelector("dialog[open]"))&&n(!1)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[a,n]),r.useEffect(()=>{var t,o;if(a){i.current=!0,(t=s.current)==null||t.focus();return}i.current&&((o=l.current)==null||o.focus(),i.current=!1)},[a]),e.jsxs("div",{className:v("pointer-events-none relative h-full min-h-0 w-full",u),children:[a?e.jsx("div",{ref:s,"data-aui-compact-layout":!0,className:"pointer-events-auto absolute right-[max(1.25rem,env(safe-area-inset-right,0px))] bottom-[calc(5.25rem+env(safe-area-inset-bottom,0px))] z-[19] flex h-[min(560px,calc(100%-6.5rem-env(safe-area-inset-bottom,0px)))] max-h-[calc(100%-6.5rem)] w-[min(380px,calc(100%-2.5rem))] flex-col overflow-hidden rounded-xl border border-border bg-primary-bg shadow-[0_16px_48px_color-mix(in_oklab,var(--shadow-color)_14%,transparent)] outline-none",role:"dialog","aria-modal":!0,"aria-label":"Chat",tabIndex:-1,children:e.jsx(p,{children:e.jsx(m,{threadHeaderEnd:e.jsx("button",{type:"button","aria-label":"Close",title:"Close",className:h({variant:"ghost",size:"icon"}),onClick:()=>n(!1),children:e.jsx(b,{name:"xmark"})})})})}):null,e.jsx("button",{ref:l,type:"button",className:"pointer-events-auto absolute right-[max(1.25rem,env(safe-area-inset-right,0px))] bottom-[max(1.25rem,env(safe-area-inset-bottom,0px))] z-20 flex size-14 cursor-pointer items-center justify-center rounded-full text-sm font-medium shadow-[0_8px_24px_color-mix(in_oklab,var(--primary-button-bg)_45%,transparent)]",style:{backgroundColor:"var(--primary-button-bg)",color:"var(--primary-button-text)"},"aria-expanded":a,"aria-label":a?"Close chat":"Open chat",onClick:()=>n(t=>!t),children:a?e.jsx("span",{"aria-hidden":!0,className:"text-xl leading-none",children:"×"}):e.jsx(d,{variant:"icon",className:"size-6"})})]})}export{j as WidgetLayout};
1
+ import{S as m}from"./chunk-NAHDIPS6-D0fCTTPV.js";import{d as x,h as f,r,j as e,C as p,I as b,f as h,g as v}from"./index-DcqWwbw9.js";import"./chunk-3ULYWPHJ-1m5jfrCv.js";function j({className:u}){const d=x("BrandLogo"),{open:a,setOpen:n}=f(),l=r.useRef(null),s=r.useRef(null),i=r.useRef(!1);return r.useEffect(()=>{if(!a)return;const t=o=>{var c;o.key==="Escape"&&!((c=s.current)!=null&&c.querySelector("dialog[open]"))&&n(!1)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[a,n]),r.useEffect(()=>{var t,o;if(a){i.current=!0,(t=s.current)==null||t.focus();return}i.current&&((o=l.current)==null||o.focus(),i.current=!1)},[a]),e.jsxs("div",{className:v("pointer-events-none relative h-full min-h-0 w-full",u),children:[a?e.jsx("div",{ref:s,"data-aui-compact-layout":!0,className:"pointer-events-auto absolute right-[max(1.25rem,env(safe-area-inset-right,0px))] bottom-[calc(5.25rem+env(safe-area-inset-bottom,0px))] z-[19] flex h-[min(560px,calc(100%-6.5rem-env(safe-area-inset-bottom,0px)))] max-h-[calc(100%-6.5rem)] w-[min(380px,calc(100%-2.5rem))] flex-col overflow-hidden rounded-xl border border-border bg-primary-bg shadow-[0_16px_48px_color-mix(in_oklab,var(--shadow-color)_14%,transparent)] outline-none",role:"dialog","aria-modal":!0,"aria-label":"Chat",tabIndex:-1,children:e.jsx(p,{children:e.jsx(m,{threadHeaderEnd:e.jsx("button",{type:"button","aria-label":"Close",title:"Close",className:h({variant:"ghost",size:"icon"}),onClick:()=>n(!1),children:e.jsx(b,{name:"xmark"})})})})}):null,e.jsx("button",{ref:l,type:"button",className:"pointer-events-auto absolute right-[max(1.25rem,env(safe-area-inset-right,0px))] bottom-[max(1.25rem,env(safe-area-inset-bottom,0px))] z-20 flex size-14 cursor-pointer items-center justify-center rounded-full text-sm font-medium shadow-[0_8px_24px_color-mix(in_oklab,var(--primary-button-bg)_45%,transparent)]",style:{backgroundColor:"var(--primary-button-bg)",color:"var(--primary-button-text)"},"aria-expanded":a,"aria-label":a?"Close chat":"Open chat",onClick:()=>n(t=>!t),children:a?e.jsx("span",{"aria-hidden":!0,className:"text-xl leading-none",children:"×"}):e.jsx(d,{variant:"icon",className:"size-6"})})]})}export{j as WidgetLayout};
@@ -1 +1 @@
1
- import{j as e,r as d,bc as ce,b as z,d as b,bd as I,be as ue,bf as de,bg as me,bh as fe,bi as U,bj as K,k as ee,u as te,bk as F,bl as ge,bm as he,bn as pe,bo as xe,bp as be,b2 as ve,c as Ce,t as Se,bq as je,br as G,bs as ne,bt as se,bu as we,l as oe,U as J,bv as W,al as T,bw as Y,am as ye,bx as ke,by as Ie,bz as Me,bA as Ae,bB as P,a2 as X,bC as Ne,bD as Re,bE as Ee,bF as Te,ba as Pe,ar as re,bG as De,bH as ae,bI as Le,bJ as Oe,bK as B,bL as _e,bM as Fe,bN as Ue,bO as Be,i as He,V as Ve,p as ie,s as ze,bP as We,bQ as qe,bR as Qe,bS as Ke,I as V,f as q,g as _,bT as Q,bU as Ge,O as Je,bV as Ye}from"./index-BVaUmrfH.js";function Xe(){var p;const{pending:s}=ne(),t=De(),[n,a]=d.useState({approvalId:null,index:0}),r=d.useRef(null),c=s.length,u=n.approvalId==null?-1:s.findIndex(g=>g.approvalId===n.approvalId),i=u>=0?u:c===0?0:Math.min(n.index,c-1),o=(p=s[i])==null?void 0:p.approvalId;d.useEffect(()=>{const g=o??null;n.approvalId===g&&n.index===i||a({approvalId:g,index:i})},[o,i,n.approvalId,n.index]),d.useEffect(()=>{if(o==null||t==null){o==null&&(r.current=null);return}r.current!==o&&(r.current=o,t.focus(o))},[o,t]);const l=d.useCallback(()=>{var v;const g=Math.max(0,i-1);a({approvalId:((v=s[g])==null?void 0:v.approvalId)??null,index:g})},[s,i]),m=d.useCallback(()=>{var v;const g=Math.min(Math.max(c-1,0),i+1);a({approvalId:((v=s[g])==null?void 0:v.approvalId)??null,index:g})},[c,s,i]),h=d.useCallback(()=>{o==null||t==null||t.focus(o)},[o,t]);return{count:c,index:i,canPrev:i>0,canNext:i<c-1,goPrev:l,goNext:m,focusCurrent:h}}function $e(){const s=b("ApprovalNavBanner"),{count:t,index:n,canPrev:a,canNext:r,goPrev:c,goNext:u,focusCurrent:i}=Xe();return t===0?null:e.jsx(s,{total:t,current:n+1,canPrev:a,canNext:r,onPrev:c,onNext:u,onFocusCurrent:i})}var O={radioValue:"",custom:""};function Ze({disabled:s=!1}){const t=b("AskUserPrompt"),{pending:n,respond:a}=G(),r=J(),c=F(),u=n[0],i=d.useMemo(()=>u==null?[]:[{id:u.toolCallId,question:u.question??"Answer required",options:u.options??[]}],[u]),[o,l]=d.useState(0),[m,h]=d.useState({});d.useEffect(()=>{l(0),h({})},[u==null?void 0:u.toolCallId]);const p=Math.min(o,Math.max(i.length-1,0)),g=i[p],v=g==null?O:m[g.id]??O,j=d.useCallback(C=>{const k=m[C]??O;return k.radioValue===W?k.custom.trim():k.radioValue.trim()},[m]),x=d.useMemo(()=>i.every(C=>j(C.id)),[j,i]),w=v.radioValue===W?v.custom.trim():v.radioValue.trim(),y=c||s||g==null||w.length===0,M=y||!x,A=d.useCallback((C,k)=>{h(E=>({...E,[C]:{...E[C]??O,...k}}))},[]),N=d.useCallback(()=>{if(s||u==null||!x)return;const C=j(u.toolCallId);if(!C)return;const k=m[u.toolCallId]??O;r(T.AskUser.SUBMITTED,{tool_call_id:u.toolCallId,question_count:i.length,is_custom_option:k.radioValue===W}),a({toolCallId:u.toolCallId,content:C})},[x,m,s,j,u,i.length,a,r]);return u==null||g==null?null:e.jsx(t,{questions:i,readOnly:c||s,currentQuestion:g,currentQuestionIndex:p,currentAnswer:v,totalQuestions:i.length,isMultiQuestion:i.length>1,isLastQuestion:p===i.length-1,allQuestionsAnswered:x,isSubmitDisabled:y,isSubmitAllDisabled:M,onCurrentQuestionIndexChange:l,onCurrentAnswerChange:A,onSubmit:N})}function et(s){var a,r,c;const t=s.thread.messages,n=t[t.length-1];return(n==null?void 0:n.role)!=="assistant"||((a=n.status)==null?void 0:a.type)!=="requires-action"?!1:((c=(r=n.metadata)==null?void 0:r.custom)==null?void 0:c.pendingMcpAuth)===!0}function tt(){const s=I(et),{pending:t}=G(),{pending:n}=ne(),a=se();if(s)return{kind:"mcp"};const r=t[0];if(r!=null){const c=r.toolName;return c!=null&&(a==null?void 0:a[c])!=null?{kind:"custom",toolName:c}:{kind:"ask-user"}}return n.length>0?{kind:"approval"}:{kind:"compose"}}function nt({disabled:s=!1}){const t=se(),{pending:n,respond:a}=G(),r=F(),c=n[0],u=d.useCallback(o=>{if(s||c==null)return;const l=o.trim();l&&a({toolCallId:c.toolCallId,content:l})},[s,c,a]);if(c==null||c.toolName==null)return null;const i=t==null?void 0:t[c.toolName];return i==null?null:e.jsx(i,{args:c.args??{},disabled:r||s,onSubmit:u})}function st({servers:s,onContinue:t,readOnly:n}){const a=b("McpAuthPrompt"),{handleAuthorize:r}=Pe(),{refreshConnectors:c}=re(),[u,i]=d.useState(()=>new Set),o=d.useRef(u),[l,m]=d.useState(!1),h=d.useRef(!1),p=d.useRef(0);d.useEffect(()=>()=>{p.current+=1},[]);const g=()=>{n||h.current||(h.current=!0,m(!0),t().catch(()=>{h.current=!1,m(!1)}))},v=j=>{const x=p.current;r(j,w=>{if(x!==p.current||!w)return;const y=new Set([...o.current,j]);o.current=y,i(y),c(),s.every(M=>y.has(M.id))&&g()})};return e.jsx(a,{servers:s,connectedServerIds:u,continueLoading:l,onConnect:v,onContinue:g,readOnly:n})}function ot({disabled:s=!1}){const t=b("McpAuthPrompt"),{pending:n,resume:a}=we(),r=F(),c=oe();if(!n)return null;if(c){const i=JSON.stringify(n.mcpServers.map(o=>o.id));return e.jsx(st,{servers:n.mcpServers,onContinue:a,readOnly:r||s},i)}const u=i=>{const o=n.mcpServers.find(l=>l.id===i);o!=null&&o.authUrl&&window.open(o.authUrl,"_blank","noopener,noreferrer")};return e.jsx(t,{servers:n.mcpServers,onConnect:u,onContinue:()=>{s||a()},readOnly:r||s})}function rt({disabled:s,hasText:t,hasAttachments:n,requiresModel:a,hasModel:r}){return!s&&(t||n)&&(!a||r)}function $({placeholder:s,connectedToBanner:t=!1}){var D,L;const n=b("ComposerShell"),a=te(),r=z(),c=J(),u=I(f=>f.threadListItem.remoteId),i=I(f=>f.composer.text.trim().length>0),o=I(f=>f.composer.attachments.length),l=o>0,m=i||l,{agentSpec:h}=ae(),p=r==null||r.mode.status==="active"&&r.mode.isMutable,g=!!((L=(D=h==null?void 0:h.model)==null?void 0:D.name)!=null&&L.trim()),{isBusy:v,send:j,resetBusy:x}=Le(),w=K(),y=Oe(),M=d.useRef(null),A=!w,N=rt({disabled:A,hasText:i,hasAttachments:l,requiresModel:p,hasModel:g}),C=(r==null?void 0:r.mode.status)==="active"?{agentId:r.mode.agentId,agentName:r.mode.agentName}:{},k=()=>{var f;N&&(c(T.Message.SENT,B({has_text:i,has_attachments:l,attachment_count:o,requires_model:p,model:(f=h==null?void 0:h.model)==null?void 0:f.name},{sessionId:u,...C})),j(()=>a.composer().send()))},E=f=>{f.key!=="Enter"||f.shiftKey||f.nativeEvent.isComposing||N&&(f.preventDefault(),k())};return e.jsxs(e.Fragment,{children:[e.jsx("input",{ref:M,type:"file",multiple:!0,hidden:!0,onChange:f=>{const S=f.target.files;if(S){c(T.Attachment.PICKED,B({file_count:S.length},{sessionId:u,...C}));for(const R of S)a.composer().addAttachment(R)}f.target.value=""}}),e.jsx(P.AttachmentDropzone,{disabled:A,"data-slot":"aui_composer-attachment-dropzone",className:"w-full rounded-[0.75rem] transition-[box-shadow] data-[dragging=true]:ring-focus-ring/20 data-[dragging=true]:ring-3",onDropCapture:f=>{var R;if(A)return;const S=(R=f.dataTransfer)==null?void 0:R.files;S==null||S.length===0||c(T.Attachment.PICKED,B({file_count:S.length},{sessionId:u,...C}))},children:e.jsx(P.Root,{"data-slot":"aui_composer-root",className:"w-full",onSubmit:f=>{f.preventDefault(),k()},children:e.jsx(n,{className:t?"rounded-t-none border-t-0 focus-within:ring-0":void 0,attachments:e.jsx(_e,{}),input:e.jsx(P.Input,{"data-slot":"aui_composer-input",placeholder:s,disabled:A,submitMode:"enter",onKeyDown:E,"aria-label":"Message input",className:"text-text-primary placeholder:text-text-secondary/80 max-h-[10lh] min-h-10 w-full resize-none overflow-y-auto rounded-lg border-none bg-transparent px-1 py-1 text-base leading-normal shadow-none outline-none disabled:cursor-not-allowed"}),disabled:A,canSubmit:N,hasContent:m,isRunning:v,onSubmit:k,onCancel:w?()=>{c(T.Message.CANCELLED,B(void 0,{sessionId:u,...C})),x(),y()}:void 0,onAttach:w?()=>{var f;return(f=M.current)==null?void 0:f.click()}:void 0})})})]})}function H({placeholder:s,connectedToBanner:t=!1}){const n=z(),a=b("ComposerLeftSection"),r=b("ComposerRightSection"),c=Y("ComposerLeftSection"),u=Y("ComposerRightSection"),i=b("DraftComposerLeftSection"),o=b("DraftComposerRightSection");return(n==null?void 0:n.mode.status)==="active"&&n.mode.isMutable?e.jsx(ye,{children:e.jsx(ke,{overrides:{ComposerLeftSection:c?i:a,ComposerRightSection:u?o:r},children:e.jsx($,{placeholder:s,connectedToBanner:t})})}):e.jsx($,{placeholder:s,connectedToBanner:t})}function at({placeholder:s="Ask anything... (Shift+Enter for new line)"}){const t=tt(),n=K(),a=t.kind==="mcp"?e.jsx(ot,{disabled:!n}):t.kind==="custom"?e.jsx(nt,{disabled:!n}):t.kind==="ask-user"?e.jsx(Ze,{disabled:!n}):t.kind==="approval"?e.jsx($e,{}):null;return a==null?e.jsx(H,{placeholder:s}):t.kind==="approval"?e.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":t.kind,className:"flex w-full flex-col",children:[a,e.jsx(H,{placeholder:s,connectedToBanner:!0})]}):t.kind==="mcp"?e.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":t.kind,className:"relative flex w-full flex-col",children:[e.jsx("div",{className:"pb-2",children:a}),e.jsx("div",{className:"relative z-10 -mt-3",children:e.jsx(H,{placeholder:s})})]}):e.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":t.kind,className:"flex w-full flex-col",children:[a,e.jsx("div",{className:"relative z-10 -mt-1",children:e.jsx(H,{placeholder:s})})]})}var it=200,Z='[data-slot="aui_thread-viewport"]';function lt(){const s=b("HistoryLoader"),{hasOlderHistory:t,isLoadingOlderHistory:n,loadOlderHistory:a}=ge(),[r,c]=d.useState(null),u=d.useRef(!1),i=d.useCallback(async()=>{if(u.current)return;u.current=!0;const o=(r==null?void 0:r.closest(Z))??null,l=(o==null?void 0:o.scrollHeight)??0,m=(o==null?void 0:o.scrollTop)??0;try{await a(),requestAnimationFrame(()=>{if(o==null)return;const h=o.scrollHeight-l;h>0&&o.scrollTo({top:m+h,behavior:"instant"})})}catch{}finally{u.current=!1}},[r,a]);return d.useEffect(()=>{if(r==null||!t)return;const o=r.closest(Z),l=new IntersectionObserver(m=>{m.some(h=>h.isIntersecting)&&i()},{root:o,rootMargin:`${it}px 0px 0px 0px`});return l.observe(r),()=>l.disconnect()},[r,t,i]),t?e.jsx(s,{ref:c,isLoading:n}):null}function ct(){const s=b("ResumeUnavailable");return xe()?e.jsx(s,{}):null}function ut(){return I(t=>{var n;return(((n=t.message.attachments)==null?void 0:n.length)??0)>0})?e.jsx("div",{className:"pointer-events-none mb-2 opacity-90",children:e.jsx(Fe,{})}):null}function dt(){const s=b("UserMessageEdit"),t=b("MessageTimestamp"),n=F(),a=K(),r=I(o=>o.message.createdAt),{cancel:c,disabled:u}=Ie(),{disabled:i}=Me();return e.jsx(Ae.Root,{"data-role":"user",children:e.jsx(P.Root,{"data-slot":"aui_user-edit-composer-root",className:"fade-in slide-in-from-bottom-1 animate-in flex w-full justify-end px-2 duration-150",children:e.jsx(s,{timestamp:e.jsx(t,{createdAt:r}),attachments:e.jsx(ut,{}),input:e.jsx("div",{className:"mt-1 rounded border border-border bg-secondary-bg p-2 text-text-primary",children:e.jsx(P.Input,{"data-slot":"aui_user-edit-input",disabled:n||!a,submitMode:"enter","aria-label":"Edit message",className:"max-h-32 min-h-10 w-full resize-none border-none bg-transparent p-0 text-base leading-[1.34] outline-none focus:shadow-none"})}),footer:e.jsxs("div",{className:"flex items-center justify-end gap-2",children:[e.jsx(X.Secondary,{type:"button",disabled:u,onClick:c,children:"Cancel"}),e.jsx(P.Send,{asChild:!0,children:e.jsx(X.Primary,{type:"submit",disabled:i||n||!a,children:"Save & Rerun"})})]})})})})}function mt(){const s=ee(),t=te(),n=I(i=>i.threadListItem.remoteId),a=I(i=>i.threadListItem.title),r=F(),c=d.useRef(!1),u=d.useRef(void 0);d.useEffect(()=>{u.current=void 0},[n]),d.useEffect(()=>{const i=c.current&&!r;if(c.current=r,!i||s==null||n==null||u.current===n)return;if(a!=null&&a.trim()!==""){u.current=n;return}let o=!1;return s.getSession({sessionId:n}).then(l=>{if(o)return;const m=typeof l.title=="string"?l.title.trim():"";if(m.length!==0)return u.current=n,t.threadListItem().rename(m)}).catch(()=>{}),()=>{o=!0}},[t,r,n,s,a])}var le="trueforge.file-preview-width";function ft(){try{const s=sessionStorage.getItem(le);if(s==null)return null;const t=Number(s);return Number.isFinite(t)?t:null}catch{return null}}function gt(s){try{sessionStorage.setItem(le,String(Math.round(s)))}catch{}}function ht(){const s=be(),t=b("FilePreviewPanel"),n=ve(),a=Ce(),r=Se(),[c,u]=d.useState(0),[i,o]=d.useState(!1),[l,m]=d.useState(ft),h=je(s.target,c),p=s.target,g=s.presentation==="full"?"full":n||a?"overlay":"side";if(d.useLayoutEffect(()=>{var y;if(p==null||g!=="side")return;const x=((y=document.querySelector('[data-slot="aui_file-preview-row"]'))==null?void 0:y.getBoundingClientRect().width)??0;if(x<=0)return;const w=l==null?Ne(x):Re({requested:l,rowWidth:x});(l==null||Math.abs(w-l)>1)&&m(w)},[g,p,l]),p==null)return null;const v=h.view.status==="error",j=()=>{i||(o(!0),(async()=>{try{const x=h.blob??await p.load();Ee(x,Te(p.path))}catch(x){r!=null?r.showError(x):console.error("Failed to download sandbox file",x)}finally{o(!1)}})())};return e.jsx(t,{name:p.name,placement:g,view:h.view,onClose:s.close,onDownload:j,onEnterFullPage:()=>s.setPresentation("full"),onExitFullPage:()=>s.setPresentation("panel"),downloadBusy:i,...g==="side"&&l!=null?{widthPx:l}:{},...g==="side"?{onWidthChange:x=>{m(x),gt(x)}}:{},...v?{onRetry:()=>u(x=>x+1)}:{}})}function pt({children:s}){return e.jsx("div",{className:"animate-in fade-in slide-in-from-bottom-1 fill-mode-both duration-200",children:s})}function xt({isEditing:s}){return I(n=>n.message.role)==="user"?s?e.jsx(dt,{}):e.jsx(he,{}):e.jsx(pe,{})}function bt({composer:s}){d.useEffect(()=>{ce()},[]),mt();const t=z(),n=b("WelcomeScreen"),a=b("MessageListSkeleton"),r=b("ScrollToBottomButton"),c=b("MessageGroup"),u=b("ThreadComposerAreaShell"),i=b("ThreadRootShell"),o=b("ThreadViewportShell"),l=I(ue),m=I(p=>p.thread.isLoading),h=(t==null?void 0:t.mode.status)==="active"?t.mode.agentName!=null&&t.mode.agentName.length>0?t.mode.agentName:t.mode.isMutable&&t.mode.isCreateAgent?"Start building a new Agent":void 0:void 0;return e.jsx(de,{children:e.jsx(me,{children:e.jsx(fe,{children:e.jsx(U.Root,{asChild:!0,children:e.jsx(i,{children:e.jsxs("div",{"data-slot":"aui_file-preview-row",className:"relative flex min-h-0 w-full min-w-0 flex-1",children:[e.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[e.jsx(U.Viewport,{asChild:!0,autoScroll:!0,children:e.jsxs(o,{isEmpty:l,children:[l&&e.jsx(n,{heading:h}),l&&!m&&s,m?e.jsx(a,{}):!l&&e.jsxs(e.Fragment,{children:[e.jsx(lt,{}),e.jsxs(c,{children:[e.jsx(U.Messages,{children:({message:p})=>e.jsx(pt,{children:e.jsx(xt,{isEditing:p.role==="user"&&p.composer.isEditing})})}),e.jsx(ct,{})]})]})]})}),!m&&!l&&e.jsxs(u,{isEmpty:l,children:[e.jsx(U.ScrollToBottom,{asChild:!0,children:e.jsx(r,{})}),s]})]}),e.jsx(ht,{})]})})})})})})}function Ct(){return e.jsx(bt,{composer:e.jsx(at,{})})}function St({className:s}){const t=Ge(),n=I(c=>c.threadListItem.title);if(t===null)return null;const a=(n==null?void 0:n.trim())??"",r=t.allowThreadTitle&&a.length>0?a:t.name;return e.jsxs("h1",{className:_("flex min-w-0 items-center gap-1.5",Ye,s),children:[e.jsx("span",{className:"truncate",title:r,children:r}),t.isEditing?e.jsx(Je,{content:"Try changes here, then choose Update agent to save.",side:"bottom",children:e.jsxs("span",{className:"border-warning-bg/40 bg-warning-bg/10 text-warning-bg inline-flex shrink-0 items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium",children:[e.jsx(V,{name:"pencil",className:"size-3"}),"Editing"]})}):null]})}function jt({className:s,labeled:t=!1,onAction:n}){const a=z(),r=J(),c=oe(),u=ie(),{mode:i,setTheme:o}=Qe(),l=b("ShellActionsActionSlot"),m=i==="dark",h=m?"Light":"Dark",p=Ke({catalog:c,capabilities:u}),g="hover:bg-secondary-button-hover hover:text-ghost-button-text";return e.jsxs("div",{className:_("flex shrink-0 items-center gap-1",t?"w-full flex-col items-center gap-1 text-sidebar-text":"text-text-primary",s),children:[e.jsxs("a",{href:"https://trueforge.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"Documentation",title:"Documentation",className:q({variant:"ghost",size:t?void 0:"icon",className:_(g,t&&Q)}),onClick:()=>n==null?void 0:n(),children:[e.jsx(V,{name:"book-open",size:t?14:void 0}),t?e.jsx("span",{className:"text-center",children:"Docs"}):null]}),e.jsxs("button",{type:"button","aria-label":m?"Switch to light theme":"Switch to dark theme",title:m?"Light theme":"Dark theme",className:q({variant:"ghost",size:t?void 0:"icon",className:_(g,t&&Q)}),onClick:()=>{o(m?"light":"dark"),n==null||n()},children:[e.jsx(V,{name:m?"sun":"moon",size:t?14:void 0}),t?e.jsx("span",{className:"text-center",children:h}):null]}),a!=null&&p?e.jsxs("button",{type:"button","aria-label":"Settings",title:"Settings","aria-expanded":a.settingsOpen,"aria-current":a.settingsOpen?"page":void 0,className:q({variant:"ghost",size:t?void 0:"icon",className:_(g,t&&Q,a.settingsOpen&&"bg-primary-button-bg font-medium text-primary-button-text hover:bg-primary-button-hover hover:text-primary-button-text")}),onClick:()=>{a.settingsOpen||r(T.Settings.OPENED),a.setSettingsOpen(!0),n==null||n()},children:[e.jsx(V,{name:"settings",size:t?14:void 0}),t?e.jsx("span",{className:"text-center",children:"Settings"}):null]}):null,e.jsx(l,{})]})}function wt({showClose:s=!1}){var D,L;const{agentSpec:t}=ae(),n=Ue(),a=Be(),r=He(),c=r.mode.status==="active"?r.mode.agentId:void 0,{allows:u}=Ve({resourceType:"agent",resourceIds:c==null?[]:[c]}),i=u(c,"MANAGE"),o=ee(),l=ie(),m=re(),h=b("AgentConfigPanel"),p=b("AgentConfigEditors"),[g,v]=d.useState(null),j=ze(r.mode),{draft:x,flush:w}=We(),y=d.useCallback(()=>{w(),a(),r.setAgentConfigOpen(!1)},[a,w,r]);d.useEffect(()=>{j&&m.ensureLoaded()},[m,j]),d.useEffect(()=>{i||v(null)},[i]),d.useEffect(()=>{if(!s||!r.agentConfigOpen)return;const f=S=>{!S.defaultPrevented&&S.key==="Escape"&&g===null&&document.querySelector("dialog[open]")===null&&y()};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[y,g,r.agentConfigOpen,s]),d.useEffect(()=>()=>{w();try{a()}catch{}},[a,w]);const M=d.useCallback(({next:f,instructions:S})=>{var R;if(i){if(f.skills&&f.skills.length>0&&(l==null?void 0:l.sandbox.enabled)===!0){n==null||n({...f,instructions:S||void 0,config:{...f.config,sandbox:{...(R=f.config)==null?void 0:R.sandbox,enabled:!0}}});return}n==null||n({...f,instructions:S||void 0})}},[i,l==null?void 0:l.sandbox.enabled,n]),A=d.useCallback(f=>{M({next:f,instructions:x})},[M,x]),N=d.useCallback(f=>{t!==null&&M({next:qe({spec:t,messages:f.messages}),instructions:f.instructions})},[t,M]),C=d.useCallback(async f=>(o==null?void 0:o.getMcpTools)===void 0?[]:o.getMcpTools({connectorId:f}),[o]),k=d.useCallback(async f=>{var S;return(S=o==null?void 0:o.getMcpConnector)==null?void 0:S.call(o,{connectorId:f})},[o]);if(!j||t===null||s&&!r.agentConfigOpen)return null;const E=m.models.find(f=>f.name===t.model.name);return e.jsxs(e.Fragment,{children:[e.jsx(h,{spec:t,model:E,models:m.models,modelsLoading:m.loading,modelsError:m.error,skills:m.skills,skillsAvailable:(l==null?void 0:l.skill.enabled)===!0,webSearchAvailable:((D=l==null?void 0:l.webSearch)==null?void 0:D.enabled)===!0,instructions:x,onOpenEditor:f=>{i&&v(f)},onChange:A,disabled:!i,onClose:s?y:void 0}),e.jsx(p,{editor:g,spec:t,models:m.models,connectors:m.connectors,skills:m.skills,loading:m.loading,error:m.error,skillsDisabled:(l==null?void 0:l.skill.enabled)!==!0,sandboxAvailable:(l==null?void 0:l.sandbox.enabled)===!0,webSearchAvailable:((L=l==null?void 0:l.webSearch)==null?void 0:L.enabled)===!0,instructions:x,onInstructionsSave:N,...(o==null?void 0:o.getMcpConnector)===void 0?{}:{loadMcpConnector:k},loadMcpTools:C,onRefreshConnectors:m.refreshConnectors,onChange:A,onClose:()=>v(null)})]})}export{wt as A,St as N,jt as S,Ct as T};
1
+ import{j as e,r as d,bc as ce,b as z,d as b,bd as I,be as ue,bf as de,bg as me,bh as fe,bi as U,bj as K,k as ee,u as te,bk as F,bl as ge,bm as he,bn as pe,bo as xe,bp as be,b2 as ve,c as Ce,t as Se,bq as je,br as G,bs as ne,bt as se,bu as we,l as oe,U as J,bv as W,al as T,bw as Y,am as ye,bx as ke,by as Ie,bz as Me,bA as Ae,bB as P,a2 as X,bC as Ne,bD as Re,bE as Ee,bF as Te,ba as Pe,ar as re,bG as De,bH as ae,bI as Le,bJ as Oe,bK as B,bL as _e,bM as Fe,bN as Ue,bO as Be,i as He,V as Ve,p as ie,s as ze,bP as We,bQ as qe,bR as Qe,bS as Ke,I as V,f as q,g as _,bT as Q,bU as Ge,O as Je,bV as Ye}from"./index-DcqWwbw9.js";function Xe(){var p;const{pending:s}=ne(),t=De(),[n,a]=d.useState({approvalId:null,index:0}),r=d.useRef(null),c=s.length,u=n.approvalId==null?-1:s.findIndex(g=>g.approvalId===n.approvalId),i=u>=0?u:c===0?0:Math.min(n.index,c-1),o=(p=s[i])==null?void 0:p.approvalId;d.useEffect(()=>{const g=o??null;n.approvalId===g&&n.index===i||a({approvalId:g,index:i})},[o,i,n.approvalId,n.index]),d.useEffect(()=>{if(o==null||t==null){o==null&&(r.current=null);return}r.current!==o&&(r.current=o,t.focus(o))},[o,t]);const l=d.useCallback(()=>{var v;const g=Math.max(0,i-1);a({approvalId:((v=s[g])==null?void 0:v.approvalId)??null,index:g})},[s,i]),m=d.useCallback(()=>{var v;const g=Math.min(Math.max(c-1,0),i+1);a({approvalId:((v=s[g])==null?void 0:v.approvalId)??null,index:g})},[c,s,i]),h=d.useCallback(()=>{o==null||t==null||t.focus(o)},[o,t]);return{count:c,index:i,canPrev:i>0,canNext:i<c-1,goPrev:l,goNext:m,focusCurrent:h}}function $e(){const s=b("ApprovalNavBanner"),{count:t,index:n,canPrev:a,canNext:r,goPrev:c,goNext:u,focusCurrent:i}=Xe();return t===0?null:e.jsx(s,{total:t,current:n+1,canPrev:a,canNext:r,onPrev:c,onNext:u,onFocusCurrent:i})}var O={radioValue:"",custom:""};function Ze({disabled:s=!1}){const t=b("AskUserPrompt"),{pending:n,respond:a}=G(),r=J(),c=F(),u=n[0],i=d.useMemo(()=>u==null?[]:[{id:u.toolCallId,question:u.question??"Answer required",options:u.options??[]}],[u]),[o,l]=d.useState(0),[m,h]=d.useState({});d.useEffect(()=>{l(0),h({})},[u==null?void 0:u.toolCallId]);const p=Math.min(o,Math.max(i.length-1,0)),g=i[p],v=g==null?O:m[g.id]??O,j=d.useCallback(C=>{const k=m[C]??O;return k.radioValue===W?k.custom.trim():k.radioValue.trim()},[m]),x=d.useMemo(()=>i.every(C=>j(C.id)),[j,i]),w=v.radioValue===W?v.custom.trim():v.radioValue.trim(),y=c||s||g==null||w.length===0,M=y||!x,A=d.useCallback((C,k)=>{h(E=>({...E,[C]:{...E[C]??O,...k}}))},[]),N=d.useCallback(()=>{if(s||u==null||!x)return;const C=j(u.toolCallId);if(!C)return;const k=m[u.toolCallId]??O;r(T.AskUser.SUBMITTED,{tool_call_id:u.toolCallId,question_count:i.length,is_custom_option:k.radioValue===W}),a({toolCallId:u.toolCallId,content:C})},[x,m,s,j,u,i.length,a,r]);return u==null||g==null?null:e.jsx(t,{questions:i,readOnly:c||s,currentQuestion:g,currentQuestionIndex:p,currentAnswer:v,totalQuestions:i.length,isMultiQuestion:i.length>1,isLastQuestion:p===i.length-1,allQuestionsAnswered:x,isSubmitDisabled:y,isSubmitAllDisabled:M,onCurrentQuestionIndexChange:l,onCurrentAnswerChange:A,onSubmit:N})}function et(s){var a,r,c;const t=s.thread.messages,n=t[t.length-1];return(n==null?void 0:n.role)!=="assistant"||((a=n.status)==null?void 0:a.type)!=="requires-action"?!1:((c=(r=n.metadata)==null?void 0:r.custom)==null?void 0:c.pendingMcpAuth)===!0}function tt(){const s=I(et),{pending:t}=G(),{pending:n}=ne(),a=se();if(s)return{kind:"mcp"};const r=t[0];if(r!=null){const c=r.toolName;return c!=null&&(a==null?void 0:a[c])!=null?{kind:"custom",toolName:c}:{kind:"ask-user"}}return n.length>0?{kind:"approval"}:{kind:"compose"}}function nt({disabled:s=!1}){const t=se(),{pending:n,respond:a}=G(),r=F(),c=n[0],u=d.useCallback(o=>{if(s||c==null)return;const l=o.trim();l&&a({toolCallId:c.toolCallId,content:l})},[s,c,a]);if(c==null||c.toolName==null)return null;const i=t==null?void 0:t[c.toolName];return i==null?null:e.jsx(i,{args:c.args??{},disabled:r||s,onSubmit:u})}function st({servers:s,onContinue:t,readOnly:n}){const a=b("McpAuthPrompt"),{handleAuthorize:r}=Pe(),{refreshConnectors:c}=re(),[u,i]=d.useState(()=>new Set),o=d.useRef(u),[l,m]=d.useState(!1),h=d.useRef(!1),p=d.useRef(0);d.useEffect(()=>()=>{p.current+=1},[]);const g=()=>{n||h.current||(h.current=!0,m(!0),t().catch(()=>{h.current=!1,m(!1)}))},v=j=>{const x=p.current;r(j,w=>{if(x!==p.current||!w)return;const y=new Set([...o.current,j]);o.current=y,i(y),c(),s.every(M=>y.has(M.id))&&g()})};return e.jsx(a,{servers:s,connectedServerIds:u,continueLoading:l,onConnect:v,onContinue:g,readOnly:n})}function ot({disabled:s=!1}){const t=b("McpAuthPrompt"),{pending:n,resume:a}=we(),r=F(),c=oe();if(!n)return null;if(c){const i=JSON.stringify(n.mcpServers.map(o=>o.id));return e.jsx(st,{servers:n.mcpServers,onContinue:a,readOnly:r||s},i)}const u=i=>{const o=n.mcpServers.find(l=>l.id===i);o!=null&&o.authUrl&&window.open(o.authUrl,"_blank","noopener,noreferrer")};return e.jsx(t,{servers:n.mcpServers,onConnect:u,onContinue:()=>{s||a()},readOnly:r||s})}function rt({disabled:s,hasText:t,hasAttachments:n,requiresModel:a,hasModel:r}){return!s&&(t||n)&&(!a||r)}function $({placeholder:s,connectedToBanner:t=!1}){var D,L;const n=b("ComposerShell"),a=te(),r=z(),c=J(),u=I(f=>f.threadListItem.remoteId),i=I(f=>f.composer.text.trim().length>0),o=I(f=>f.composer.attachments.length),l=o>0,m=i||l,{agentSpec:h}=ae(),p=r==null||r.mode.status==="active"&&r.mode.isMutable,g=!!((L=(D=h==null?void 0:h.model)==null?void 0:D.name)!=null&&L.trim()),{isBusy:v,send:j,resetBusy:x}=Le(),w=K(),y=Oe(),M=d.useRef(null),A=!w,N=rt({disabled:A,hasText:i,hasAttachments:l,requiresModel:p,hasModel:g}),C=(r==null?void 0:r.mode.status)==="active"?{agentId:r.mode.agentId,agentName:r.mode.agentName}:{},k=()=>{var f;N&&(c(T.Message.SENT,B({has_text:i,has_attachments:l,attachment_count:o,requires_model:p,model:(f=h==null?void 0:h.model)==null?void 0:f.name},{sessionId:u,...C})),j(()=>a.composer().send()))},E=f=>{f.key!=="Enter"||f.shiftKey||f.nativeEvent.isComposing||N&&(f.preventDefault(),k())};return e.jsxs(e.Fragment,{children:[e.jsx("input",{ref:M,type:"file",multiple:!0,hidden:!0,onChange:f=>{const S=f.target.files;if(S){c(T.Attachment.PICKED,B({file_count:S.length},{sessionId:u,...C}));for(const R of S)a.composer().addAttachment(R)}f.target.value=""}}),e.jsx(P.AttachmentDropzone,{disabled:A,"data-slot":"aui_composer-attachment-dropzone",className:"w-full rounded-[0.75rem] transition-[box-shadow] data-[dragging=true]:ring-focus-ring/20 data-[dragging=true]:ring-3",onDropCapture:f=>{var R;if(A)return;const S=(R=f.dataTransfer)==null?void 0:R.files;S==null||S.length===0||c(T.Attachment.PICKED,B({file_count:S.length},{sessionId:u,...C}))},children:e.jsx(P.Root,{"data-slot":"aui_composer-root",className:"w-full",onSubmit:f=>{f.preventDefault(),k()},children:e.jsx(n,{className:t?"rounded-t-none border-t-0 focus-within:ring-0":void 0,attachments:e.jsx(_e,{}),input:e.jsx(P.Input,{"data-slot":"aui_composer-input",placeholder:s,disabled:A,submitMode:"enter",onKeyDown:E,"aria-label":"Message input",className:"text-text-primary placeholder:text-text-secondary/80 max-h-[10lh] min-h-10 w-full resize-none overflow-y-auto rounded-lg border-none bg-transparent px-1 py-1 text-base leading-normal shadow-none outline-none disabled:cursor-not-allowed"}),disabled:A,canSubmit:N,hasContent:m,isRunning:v,onSubmit:k,onCancel:w?()=>{c(T.Message.CANCELLED,B(void 0,{sessionId:u,...C})),x(),y()}:void 0,onAttach:w?()=>{var f;return(f=M.current)==null?void 0:f.click()}:void 0})})})]})}function H({placeholder:s,connectedToBanner:t=!1}){const n=z(),a=b("ComposerLeftSection"),r=b("ComposerRightSection"),c=Y("ComposerLeftSection"),u=Y("ComposerRightSection"),i=b("DraftComposerLeftSection"),o=b("DraftComposerRightSection");return(n==null?void 0:n.mode.status)==="active"&&n.mode.isMutable?e.jsx(ye,{children:e.jsx(ke,{overrides:{ComposerLeftSection:c?i:a,ComposerRightSection:u?o:r},children:e.jsx($,{placeholder:s,connectedToBanner:t})})}):e.jsx($,{placeholder:s,connectedToBanner:t})}function at({placeholder:s="Ask anything... (Shift+Enter for new line)"}){const t=tt(),n=K(),a=t.kind==="mcp"?e.jsx(ot,{disabled:!n}):t.kind==="custom"?e.jsx(nt,{disabled:!n}):t.kind==="ask-user"?e.jsx(Ze,{disabled:!n}):t.kind==="approval"?e.jsx($e,{}):null;return a==null?e.jsx(H,{placeholder:s}):t.kind==="approval"?e.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":t.kind,className:"flex w-full flex-col",children:[a,e.jsx(H,{placeholder:s,connectedToBanner:!0})]}):t.kind==="mcp"?e.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":t.kind,className:"relative flex w-full flex-col",children:[e.jsx("div",{className:"pb-2",children:a}),e.jsx("div",{className:"relative z-10 -mt-3",children:e.jsx(H,{placeholder:s})})]}):e.jsxs("div",{"data-slot":"aui_composer-pause","data-pause-kind":t.kind,className:"flex w-full flex-col",children:[a,e.jsx("div",{className:"relative z-10 -mt-1",children:e.jsx(H,{placeholder:s})})]})}var it=200,Z='[data-slot="aui_thread-viewport"]';function lt(){const s=b("HistoryLoader"),{hasOlderHistory:t,isLoadingOlderHistory:n,loadOlderHistory:a}=ge(),[r,c]=d.useState(null),u=d.useRef(!1),i=d.useCallback(async()=>{if(u.current)return;u.current=!0;const o=(r==null?void 0:r.closest(Z))??null,l=(o==null?void 0:o.scrollHeight)??0,m=(o==null?void 0:o.scrollTop)??0;try{await a(),requestAnimationFrame(()=>{if(o==null)return;const h=o.scrollHeight-l;h>0&&o.scrollTo({top:m+h,behavior:"instant"})})}catch{}finally{u.current=!1}},[r,a]);return d.useEffect(()=>{if(r==null||!t)return;const o=r.closest(Z),l=new IntersectionObserver(m=>{m.some(h=>h.isIntersecting)&&i()},{root:o,rootMargin:`${it}px 0px 0px 0px`});return l.observe(r),()=>l.disconnect()},[r,t,i]),t?e.jsx(s,{ref:c,isLoading:n}):null}function ct(){const s=b("ResumeUnavailable");return xe()?e.jsx(s,{}):null}function ut(){return I(t=>{var n;return(((n=t.message.attachments)==null?void 0:n.length)??0)>0})?e.jsx("div",{className:"pointer-events-none mb-2 opacity-90",children:e.jsx(Fe,{})}):null}function dt(){const s=b("UserMessageEdit"),t=b("MessageTimestamp"),n=F(),a=K(),r=I(o=>o.message.createdAt),{cancel:c,disabled:u}=Ie(),{disabled:i}=Me();return e.jsx(Ae.Root,{"data-role":"user",children:e.jsx(P.Root,{"data-slot":"aui_user-edit-composer-root",className:"fade-in slide-in-from-bottom-1 animate-in flex w-full justify-end px-2 duration-150",children:e.jsx(s,{timestamp:e.jsx(t,{createdAt:r}),attachments:e.jsx(ut,{}),input:e.jsx("div",{className:"mt-1 rounded border border-border bg-secondary-bg p-2 text-text-primary",children:e.jsx(P.Input,{"data-slot":"aui_user-edit-input",disabled:n||!a,submitMode:"enter","aria-label":"Edit message",className:"max-h-32 min-h-10 w-full resize-none border-none bg-transparent p-0 text-base leading-[1.34] outline-none focus:shadow-none"})}),footer:e.jsxs("div",{className:"flex items-center justify-end gap-2",children:[e.jsx(X.Secondary,{type:"button",disabled:u,onClick:c,children:"Cancel"}),e.jsx(P.Send,{asChild:!0,children:e.jsx(X.Primary,{type:"submit",disabled:i||n||!a,children:"Save & Rerun"})})]})})})})}function mt(){const s=ee(),t=te(),n=I(i=>i.threadListItem.remoteId),a=I(i=>i.threadListItem.title),r=F(),c=d.useRef(!1),u=d.useRef(void 0);d.useEffect(()=>{u.current=void 0},[n]),d.useEffect(()=>{const i=c.current&&!r;if(c.current=r,!i||s==null||n==null||u.current===n)return;if(a!=null&&a.trim()!==""){u.current=n;return}let o=!1;return s.getSession({sessionId:n}).then(l=>{if(o)return;const m=typeof l.title=="string"?l.title.trim():"";if(m.length!==0)return u.current=n,t.threadListItem().rename(m)}).catch(()=>{}),()=>{o=!0}},[t,r,n,s,a])}var le="trueforge.file-preview-width";function ft(){try{const s=sessionStorage.getItem(le);if(s==null)return null;const t=Number(s);return Number.isFinite(t)?t:null}catch{return null}}function gt(s){try{sessionStorage.setItem(le,String(Math.round(s)))}catch{}}function ht(){const s=be(),t=b("FilePreviewPanel"),n=ve(),a=Ce(),r=Se(),[c,u]=d.useState(0),[i,o]=d.useState(!1),[l,m]=d.useState(ft),h=je(s.target,c),p=s.target,g=s.presentation==="full"?"full":n||a?"overlay":"side";if(d.useLayoutEffect(()=>{var y;if(p==null||g!=="side")return;const x=((y=document.querySelector('[data-slot="aui_file-preview-row"]'))==null?void 0:y.getBoundingClientRect().width)??0;if(x<=0)return;const w=l==null?Ne(x):Re({requested:l,rowWidth:x});(l==null||Math.abs(w-l)>1)&&m(w)},[g,p,l]),p==null)return null;const v=h.view.status==="error",j=()=>{i||(o(!0),(async()=>{try{const x=h.blob??await p.load();Ee(x,Te(p.path))}catch(x){r!=null?r.showError(x):console.error("Failed to download sandbox file",x)}finally{o(!1)}})())};return e.jsx(t,{name:p.name,placement:g,view:h.view,onClose:s.close,onDownload:j,onEnterFullPage:()=>s.setPresentation("full"),onExitFullPage:()=>s.setPresentation("panel"),downloadBusy:i,...g==="side"&&l!=null?{widthPx:l}:{},...g==="side"?{onWidthChange:x=>{m(x),gt(x)}}:{},...v?{onRetry:()=>u(x=>x+1)}:{}})}function pt({children:s}){return e.jsx("div",{className:"animate-in fade-in slide-in-from-bottom-1 fill-mode-both duration-200",children:s})}function xt({isEditing:s}){return I(n=>n.message.role)==="user"?s?e.jsx(dt,{}):e.jsx(he,{}):e.jsx(pe,{})}function bt({composer:s}){d.useEffect(()=>{ce()},[]),mt();const t=z(),n=b("WelcomeScreen"),a=b("MessageListSkeleton"),r=b("ScrollToBottomButton"),c=b("MessageGroup"),u=b("ThreadComposerAreaShell"),i=b("ThreadRootShell"),o=b("ThreadViewportShell"),l=I(ue),m=I(p=>p.thread.isLoading),h=(t==null?void 0:t.mode.status)==="active"?t.mode.agentName!=null&&t.mode.agentName.length>0?t.mode.agentName:t.mode.isMutable&&t.mode.isCreateAgent?"Start building a new Agent":void 0:void 0;return e.jsx(de,{children:e.jsx(me,{children:e.jsx(fe,{children:e.jsx(U.Root,{asChild:!0,children:e.jsx(i,{children:e.jsxs("div",{"data-slot":"aui_file-preview-row",className:"relative flex min-h-0 w-full min-w-0 flex-1",children:[e.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[e.jsx(U.Viewport,{asChild:!0,autoScroll:!0,children:e.jsxs(o,{isEmpty:l,children:[l&&e.jsx(n,{heading:h}),l&&!m&&s,m?e.jsx(a,{}):!l&&e.jsxs(e.Fragment,{children:[e.jsx(lt,{}),e.jsxs(c,{children:[e.jsx(U.Messages,{children:({message:p})=>e.jsx(pt,{children:e.jsx(xt,{isEditing:p.role==="user"&&p.composer.isEditing})})}),e.jsx(ct,{})]})]})]})}),!m&&!l&&e.jsxs(u,{isEmpty:l,children:[e.jsx(U.ScrollToBottom,{asChild:!0,children:e.jsx(r,{})}),s]})]}),e.jsx(ht,{})]})})})})})})}function Ct(){return e.jsx(bt,{composer:e.jsx(at,{})})}function St({className:s}){const t=Ge(),n=I(c=>c.threadListItem.title);if(t===null)return null;const a=(n==null?void 0:n.trim())??"",r=t.allowThreadTitle&&a.length>0?a:t.name;return e.jsxs("h1",{className:_("flex min-w-0 items-center gap-1.5",Ye,s),children:[e.jsx("span",{className:"truncate",title:r,children:r}),t.isEditing?e.jsx(Je,{content:"Try changes here, then choose Update agent to save.",side:"bottom",children:e.jsxs("span",{className:"border-warning-bg/40 bg-warning-bg/10 text-warning-bg inline-flex shrink-0 items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium",children:[e.jsx(V,{name:"pencil",className:"size-3"}),"Editing"]})}):null]})}function jt({className:s,labeled:t=!1,onAction:n}){const a=z(),r=J(),c=oe(),u=ie(),{mode:i,setTheme:o}=Qe(),l=b("ShellActionsActionSlot"),m=i==="dark",h=m?"Light":"Dark",p=Ke({catalog:c,capabilities:u}),g="hover:bg-secondary-button-hover hover:text-ghost-button-text";return e.jsxs("div",{className:_("flex shrink-0 items-center gap-1",t?"w-full flex-col items-center gap-1 text-sidebar-text":"text-text-primary",s),children:[e.jsxs("a",{href:"https://trueforge.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"Documentation",title:"Documentation",className:q({variant:"ghost",size:t?void 0:"icon",className:_(g,t&&Q)}),onClick:()=>n==null?void 0:n(),children:[e.jsx(V,{name:"book-open",size:t?14:void 0}),t?e.jsx("span",{className:"text-center",children:"Docs"}):null]}),e.jsxs("button",{type:"button","aria-label":m?"Switch to light theme":"Switch to dark theme",title:m?"Light theme":"Dark theme",className:q({variant:"ghost",size:t?void 0:"icon",className:_(g,t&&Q)}),onClick:()=>{o(m?"light":"dark"),n==null||n()},children:[e.jsx(V,{name:m?"sun":"moon",size:t?14:void 0}),t?e.jsx("span",{className:"text-center",children:h}):null]}),a!=null&&p?e.jsxs("button",{type:"button","aria-label":"Settings",title:"Settings","aria-expanded":a.settingsOpen,"aria-current":a.settingsOpen?"page":void 0,className:q({variant:"ghost",size:t?void 0:"icon",className:_(g,t&&Q,a.settingsOpen&&"bg-primary-button-bg font-medium text-primary-button-text hover:bg-primary-button-hover hover:text-primary-button-text")}),onClick:()=>{a.settingsOpen||r(T.Settings.OPENED),a.setSettingsOpen(!0),n==null||n()},children:[e.jsx(V,{name:"settings",size:t?14:void 0}),t?e.jsx("span",{className:"text-center",children:"Settings"}):null]}):null,e.jsx(l,{})]})}function wt({showClose:s=!1}){var D,L;const{agentSpec:t}=ae(),n=Ue(),a=Be(),r=He(),c=r.mode.status==="active"?r.mode.agentId:void 0,{allows:u}=Ve({resourceType:"agent",resourceIds:c==null?[]:[c]}),i=u(c,"MANAGE"),o=ee(),l=ie(),m=re(),h=b("AgentConfigPanel"),p=b("AgentConfigEditors"),[g,v]=d.useState(null),j=ze(r.mode),{draft:x,flush:w}=We(),y=d.useCallback(()=>{w(),a(),r.setAgentConfigOpen(!1)},[a,w,r]);d.useEffect(()=>{j&&m.ensureLoaded()},[m,j]),d.useEffect(()=>{i||v(null)},[i]),d.useEffect(()=>{if(!s||!r.agentConfigOpen)return;const f=S=>{!S.defaultPrevented&&S.key==="Escape"&&g===null&&document.querySelector("dialog[open]")===null&&y()};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[y,g,r.agentConfigOpen,s]),d.useEffect(()=>()=>{w();try{a()}catch{}},[a,w]);const M=d.useCallback(({next:f,instructions:S})=>{var R;if(i){if(f.skills&&f.skills.length>0&&(l==null?void 0:l.sandbox.enabled)===!0){n==null||n({...f,instructions:S||void 0,config:{...f.config,sandbox:{...(R=f.config)==null?void 0:R.sandbox,enabled:!0}}});return}n==null||n({...f,instructions:S||void 0})}},[i,l==null?void 0:l.sandbox.enabled,n]),A=d.useCallback(f=>{M({next:f,instructions:x})},[M,x]),N=d.useCallback(f=>{t!==null&&M({next:qe({spec:t,messages:f.messages}),instructions:f.instructions})},[t,M]),C=d.useCallback(async f=>(o==null?void 0:o.getMcpTools)===void 0?[]:o.getMcpTools({connectorId:f}),[o]),k=d.useCallback(async f=>{var S;return(S=o==null?void 0:o.getMcpConnector)==null?void 0:S.call(o,{connectorId:f})},[o]);if(!j||t===null||s&&!r.agentConfigOpen)return null;const E=m.models.find(f=>f.name===t.model.name);return e.jsxs(e.Fragment,{children:[e.jsx(h,{spec:t,model:E,models:m.models,modelsLoading:m.loading,modelsError:m.error,skills:m.skills,skillsAvailable:(l==null?void 0:l.skill.enabled)===!0,webSearchAvailable:((D=l==null?void 0:l.webSearch)==null?void 0:D.enabled)===!0,instructions:x,onOpenEditor:f=>{i&&v(f)},onChange:A,disabled:!i,onClose:s?y:void 0}),e.jsx(p,{editor:g,spec:t,models:m.models,connectors:m.connectors,skills:m.skills,loading:m.loading,error:m.error,skillsDisabled:(l==null?void 0:l.skill.enabled)!==!0,sandboxAvailable:(l==null?void 0:l.sandbox.enabled)===!0,webSearchAvailable:((L=l==null?void 0:l.webSearch)==null?void 0:L.enabled)===!0,instructions:x,onInstructionsSave:N,...(o==null?void 0:o.getMcpConnector)===void 0?{}:{loadMcpConnector:k},loadMcpTools:C,onRefreshConnectors:m.refreshConnectors,onChange:A,onClose:()=>v(null)})]})}export{wt as A,St as N,jt as S,Ct as T};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SettingsBuilder-WDSZTJGX-CAGvTvA9.js","./index-BVaUmrfH.js","./index-B01pXqvC.css","./SchedulesPage-JXAA2HTM-DDBt0BOz.js","./chunk-UYBNBQBX-CM7f_1OV.js","./EnvironmentsPage-K5K7RCNY-Bik7WNID.js"])))=>i.map(i=>d[i]);
2
- import{u as _,b as P,d as t,e as L,r as a,j as s,S as c,P as z,I as l,f as d,g as B,_ as u}from"./index-BVaUmrfH.js";import{N as I,T,S as k,A as D}from"./chunk-3ULYWPHJ-DexzhAWb.js";var V=a.lazy(()=>u(()=>import("./SettingsBuilder-WDSZTJGX-CAGvTvA9.js"),__vite__mapDeps([0,1,2]),import.meta.url)),R=a.lazy(()=>u(()=>import("./SchedulesPage-JXAA2HTM-DDBt0BOz.js"),__vite__mapDeps([3,4,1,2]),import.meta.url).then(n=>({default:n.SchedulesPage}))),F=a.lazy(()=>u(()=>import("./EnvironmentsPage-K5K7RCNY-Bik7WNID.js"),__vite__mapDeps([5,4,1,2]),import.meta.url).then(n=>({default:n.EnvironmentsPage})));function q({className:n,threadHeaderEnd:f}){const r=_(),e=P(),j=t("ClearChatButton"),g=t("AgentDetailsPage"),v=t("AgentsLibrary"),b=t("SessionsPage"),h=t("ShareChatButton"),N=t("SaveAgentButton"),y=t("SelectAgentEmptyState"),A=t("UserAvatar"),i=(e==null?void 0:e.mode.status)==="idle",S=(e==null?void 0:e.settingsOpen)===!0,o=(e==null?void 0:e.libraryOpen)===!0,C=(e==null?void 0:e.sessionsOpen)===!0,m=(e==null?void 0:e.schedulesOpen)===!0,x=(e==null?void 0:e.environmentsOpen)===!0,O=L(),p=(e==null?void 0:e.isNewChatEnabled)!==!1;a.useEffect(()=>{i||Promise.resolve(r.threads().switchToNewThread()).catch(()=>{})},[r,i]);const w=()=>{if(e==null||e.setLibraryOpen(!1),e==null||e.setSessionsOpen(!1),e!=null&&e.isComposerEnabled){e.openDraft();return}e==null||e.setSettingsOpen(!1),e==null||e.setSchedulesOpen(!1),e==null||e.setEnvironmentsOpen(!1),Promise.resolve(r.threads().switchToNewThread()).catch(()=>{})},E=()=>{e==null||e.setLibraryOpen(!1),e==null||e.setSessionsOpen(!1),e!=null&&e.isComposerEnabled&&e.openAgentBuilder()};return s.jsxs("div",{className:B("relative flex h-full min-h-0 flex-col",n),children:[S?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(c,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(V,{})})}):C?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(b,{})}):o&&(e==null?void 0:e.libraryAgentId)!=null?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(g,{agentId:e.libraryAgentId},e.libraryAgentId)}):o?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(v,{})}):m?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(c,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(R,{})})}):x?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(c,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(F,{})})}):s.jsxs(s.Fragment,{children:[s.jsx(z,{start:s.jsxs(s.Fragment,{children:[p&&!O?s.jsx("button",{type:"button","aria-label":"New Chat",title:"New Chat",className:d({variant:"ghost",size:"icon"}),onClick:w,children:s.jsx(l,{name:"square-pen"})}):null,p&&(e!=null&&e.isComposerEnabled)?s.jsx("button",{type:"button","aria-label":"New Agent",title:"New Agent",className:d({variant:"ghost",size:"icon"}),onClick:E,children:s.jsx(l,{name:"agent-2"})}):null]}),title:s.jsx(I,{}),end:s.jsxs(s.Fragment,{children:[s.jsx(h,{}),s.jsx(j,{}),s.jsx(N,{}),f]})}),s.jsx("div",{className:"min-h-0 flex-1",children:i?s.jsx(y,{}):s.jsx(T,{})})]}),s.jsxs("footer",{className:"flex shrink-0 items-center justify-between border-t border-border px-2 py-1.5",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[o||m||x?s.jsxs("button",{type:"button",className:d({variant:"ghost",size:"small"}),onClick:()=>{e==null||e.setLibraryOpen(!1),e==null||e.setSchedulesOpen(!1),e==null||e.setEnvironmentsOpen(!1)},children:[s.jsx(l,{name:"arrow-left"}),"Back to chat"]}):null,s.jsx(A,{})]}),s.jsx(k,{},"shell-actions")]}),e!=null&&e.agentConfigOpen?s.jsx("aside",{role:"dialog","aria-label":"Agent Config",className:"absolute inset-0 z-20 border-l border-border shadow-xl",children:s.jsx(D,{showClose:!0})}):null]})}export{q as S};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SettingsBuilder-WDSZTJGX-DjUD3lNq.js","./index-DcqWwbw9.js","./index-B01pXqvC.css","./SchedulesPage-JXAA2HTM-BUSDfmz7.js","./chunk-UYBNBQBX-BctaejAU.js","./EnvironmentsPage-K5K7RCNY--Is04pmW.js"])))=>i.map(i=>d[i]);
2
+ import{u as _,b as P,d as t,e as L,r as a,j as s,S as c,P as z,I as l,f as d,g as B,_ as u}from"./index-DcqWwbw9.js";import{N as I,T,S as k,A as D}from"./chunk-3ULYWPHJ-1m5jfrCv.js";var V=a.lazy(()=>u(()=>import("./SettingsBuilder-WDSZTJGX-DjUD3lNq.js"),__vite__mapDeps([0,1,2]),import.meta.url)),R=a.lazy(()=>u(()=>import("./SchedulesPage-JXAA2HTM-BUSDfmz7.js"),__vite__mapDeps([3,4,1,2]),import.meta.url).then(n=>({default:n.SchedulesPage}))),F=a.lazy(()=>u(()=>import("./EnvironmentsPage-K5K7RCNY--Is04pmW.js"),__vite__mapDeps([5,4,1,2]),import.meta.url).then(n=>({default:n.EnvironmentsPage})));function q({className:n,threadHeaderEnd:f}){const r=_(),e=P(),j=t("ClearChatButton"),g=t("AgentDetailsPage"),v=t("AgentsLibrary"),b=t("SessionsPage"),h=t("ShareChatButton"),N=t("SaveAgentButton"),y=t("SelectAgentEmptyState"),A=t("UserAvatar"),i=(e==null?void 0:e.mode.status)==="idle",S=(e==null?void 0:e.settingsOpen)===!0,o=(e==null?void 0:e.libraryOpen)===!0,C=(e==null?void 0:e.sessionsOpen)===!0,m=(e==null?void 0:e.schedulesOpen)===!0,x=(e==null?void 0:e.environmentsOpen)===!0,O=L(),p=(e==null?void 0:e.isNewChatEnabled)!==!1;a.useEffect(()=>{i||Promise.resolve(r.threads().switchToNewThread()).catch(()=>{})},[r,i]);const w=()=>{if(e==null||e.setLibraryOpen(!1),e==null||e.setSessionsOpen(!1),e!=null&&e.isComposerEnabled){e.openDraft();return}e==null||e.setSettingsOpen(!1),e==null||e.setSchedulesOpen(!1),e==null||e.setEnvironmentsOpen(!1),Promise.resolve(r.threads().switchToNewThread()).catch(()=>{})},E=()=>{e==null||e.setLibraryOpen(!1),e==null||e.setSessionsOpen(!1),e!=null&&e.isComposerEnabled&&e.openAgentBuilder()};return s.jsxs("div",{className:B("relative flex h-full min-h-0 flex-col",n),children:[S?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(c,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(V,{})})}):C?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(b,{})}):o&&(e==null?void 0:e.libraryAgentId)!=null?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(g,{agentId:e.libraryAgentId},e.libraryAgentId)}):o?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(v,{})}):m?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(c,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(R,{})})}):x?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(c,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(F,{})})}):s.jsxs(s.Fragment,{children:[s.jsx(z,{start:s.jsxs(s.Fragment,{children:[p&&!O?s.jsx("button",{type:"button","aria-label":"New Chat",title:"New Chat",className:d({variant:"ghost",size:"icon"}),onClick:w,children:s.jsx(l,{name:"square-pen"})}):null,p&&(e!=null&&e.isComposerEnabled)?s.jsx("button",{type:"button","aria-label":"New Agent",title:"New Agent",className:d({variant:"ghost",size:"icon"}),onClick:E,children:s.jsx(l,{name:"agent-2"})}):null]}),title:s.jsx(I,{}),end:s.jsxs(s.Fragment,{children:[s.jsx(h,{}),s.jsx(j,{}),s.jsx(N,{}),f]})}),s.jsx("div",{className:"min-h-0 flex-1",children:i?s.jsx(y,{}):s.jsx(T,{})})]}),s.jsxs("footer",{className:"flex shrink-0 items-center justify-between border-t border-border px-2 py-1.5",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[o||m||x?s.jsxs("button",{type:"button",className:d({variant:"ghost",size:"small"}),onClick:()=>{e==null||e.setLibraryOpen(!1),e==null||e.setSchedulesOpen(!1),e==null||e.setEnvironmentsOpen(!1)},children:[s.jsx(l,{name:"arrow-left"}),"Back to chat"]}):null,s.jsx(A,{})]}),s.jsx(k,{},"shell-actions")]}),e!=null&&e.agentConfigOpen?s.jsx("aside",{role:"dialog","aria-label":"Agent Config",className:"absolute inset-0 z-20 border-l border-border shadow-xl",children:s.jsx(D,{showClose:!0})}):null]})}export{q as S};
@@ -1,4 +1,4 @@
1
- import{r as i}from"./index-BVaUmrfH.js";/**
1
+ import{r as i}from"./index-DcqWwbw9.js";/**
2
2
  * react-router v7.18.4
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
@@ -1 +1 @@
1
- import{aB as o,j as t,g as s}from"./index-BVaUmrfH.js";var u={default:"border-border bg-card-bg text-text-primary",success:"border-success-bg/30 bg-success-bg/10 text-success-bg",info:"border-primary-button-bg/30 bg-primary-button-bg/10 text-primary-button-bg",warning:"border-warning-bg/40 bg-warning-bg/10 text-warning-bg",destructive:"border-failure-bg/30 bg-failure-bg/10 text-failure-bg",outline:"border-border bg-transparent text-text-secondary"},l={default:"bg-text-secondary",success:"bg-success-bg",info:"bg-primary-button-bg",warning:"bg-warning-bg",destructive:"bg-failure-bg",outline:"bg-text-secondary"},c={rounded:"rounded-sm",pill:"rounded-full"},x={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-0.5 text-xs"},m=o.forwardRef(({className:n,variant:e="default",shape:r="rounded",size:a="sm",dot:b=!1,children:d,...g},i)=>t.jsxs("span",{ref:i,"data-slot":"badge","data-variant":e,"data-shape":r,"data-size":a,className:s("inline-flex items-center gap-1.5 border font-medium leading-normal",u[e],c[r],x[a],n),...g,children:[b?t.jsx("span",{className:s("size-1.5 shrink-0 rounded-full",l[e]),"aria-hidden":!0}):null,d]}));m.displayName="Badge";export{m as B};
1
+ import{aB as o,j as t,g as s}from"./index-DcqWwbw9.js";var u={default:"border-border bg-card-bg text-text-primary",success:"border-success-bg/30 bg-success-bg/10 text-success-bg",info:"border-primary-button-bg/30 bg-primary-button-bg/10 text-primary-button-bg",warning:"border-warning-bg/40 bg-warning-bg/10 text-warning-bg",destructive:"border-failure-bg/30 bg-failure-bg/10 text-failure-bg",outline:"border-border bg-transparent text-text-secondary"},l={default:"bg-text-secondary",success:"bg-success-bg",info:"bg-primary-button-bg",warning:"bg-warning-bg",destructive:"bg-failure-bg",outline:"bg-text-secondary"},c={rounded:"rounded-sm",pill:"rounded-full"},x={sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-0.5 text-xs"},m=o.forwardRef(({className:n,variant:e="default",shape:r="rounded",size:a="sm",dot:b=!1,children:d,...g},i)=>t.jsxs("span",{ref:i,"data-slot":"badge","data-variant":e,"data-shape":r,"data-size":a,className:s("inline-flex items-center gap-1.5 border font-medium leading-normal",u[e],c[r],x[a],n),...g,children:[b?t.jsx("span",{className:s("size-1.5 shrink-0 rounded-full",l[e]),"aria-hidden":!0}):null,d]}));m.displayName="Badge";export{m as B};
@@ -1 +1 @@
1
- import{j as e,ad as m,ae as u,af as h,ag as j,ah as g,a2 as n}from"./index-BVaUmrfH.js";function p(a){return a.replace(/\?$/,"").replace(/^Remove /i,"Can't remove ")}var f=({title:a,description:o,confirmLabel:c="Remove",busy:i=!1,error:l=null,onCancel:t,onConfirm:d})=>{const s=l!=null&&l!=="",r=s?p(a):a;return e.jsxs(m,{open:!0,onOpenChange:x=>{x||t()},"aria-label":r,className:"max-w-md",children:[e.jsx(u,{children:e.jsxs(h,{children:[e.jsx(j,{children:r}),s?e.jsx("p",{role:"alert",className:"text-sm text-failure-bg",children:l}):e.jsx("p",{className:"text-sm text-text-secondary",children:o})]})}),e.jsx(g,{children:s?e.jsx(n.Secondary,{type:"button",onClick:t,children:"Close"}):e.jsxs(e.Fragment,{children:[e.jsx(n.Secondary,{type:"button",disabled:i,onClick:t,children:"Cancel"}),e.jsx(n.Destructive,{type:"button",disabled:i,onClick:d,children:c})]})})]})},C=f;export{C};
1
+ import{j as e,ad as m,ae as u,af as h,ag as j,ah as g,a2 as n}from"./index-DcqWwbw9.js";function p(a){return a.replace(/\?$/,"").replace(/^Remove /i,"Can't remove ")}var f=({title:a,description:o,confirmLabel:c="Remove",busy:i=!1,error:l=null,onCancel:t,onConfirm:d})=>{const s=l!=null&&l!=="",r=s?p(a):a;return e.jsxs(m,{open:!0,onOpenChange:x=>{x||t()},"aria-label":r,className:"max-w-md",children:[e.jsx(u,{children:e.jsxs(h,{children:[e.jsx(j,{children:r}),s?e.jsx("p",{role:"alert",className:"text-sm text-failure-bg",children:l}):e.jsx("p",{className:"text-sm text-text-secondary",children:o})]})}),e.jsx(g,{children:s?e.jsx(n.Secondary,{type:"button",onClick:t,children:"Close"}):e.jsxs(e.Fragment,{children:[e.jsx(n.Secondary,{type:"button",disabled:i,onClick:t,children:"Cancel"}),e.jsx(n.Destructive,{type:"button",disabled:i,onClick:d,children:c})]})})]})},C=f;export{C};
@@ -1 +1 @@
1
- import{c as h}from"./workers-CXZ3fi_g.js";import{C as c,H as u,D as p,a as m,R as f,b as _,c as w,d as k,F as v,e as D,S as P,f as R,g as C}from"./lspLanguageFeatures-DZC1GsaK.js";import{h as U,i as y,j as T,t as x,k as O}from"./lspLanguageFeatures-DZC1GsaK.js";import{l as s}from"./index-ktuzn6VD.js";import"./index-BVaUmrfH.js";const I=120*1e3;class A{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL(""+new URL("css.worker-CH7Os8C2.js",import.meta.url).href,import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(a=>e)}}function E(o){const n=[],e=[],a=new A(o);n.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=o;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,o.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new C(r)))}return l(),n.push(d(e)),d(n)}function d(o){return{dispose:()=>g(o)}}function g(o){for(;o.length;)o.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,U as DocumentLinkAdapter,C as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,A as WorkerManager,y as fromPosition,T as fromRange,E as setupMode,x as toRange,O as toTextEdit};
1
+ import{c as h}from"./workers-CmHIaj_A.js";import{C as c,H as u,D as p,a as m,R as f,b as _,c as w,d as k,F as v,e as D,S as P,f as R,g as C}from"./lspLanguageFeatures-Biz-VYAI.js";import{h as U,i as y,j as T,t as x,k as O}from"./lspLanguageFeatures-Biz-VYAI.js";import{l as s}from"./index-DWq2uvgb.js";import"./index-DcqWwbw9.js";const I=120*1e3;class A{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL(""+new URL("css.worker-CH7Os8C2.js",import.meta.url).href,import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(a=>e)}}function E(o){const n=[],e=[],a=new A(o);n.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=o;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,o.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new C(r)))}return l(),n.push(d(e)),d(n)}function d(o){return{dispose:()=>g(o)}}function g(o){for(;o.length;)o.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,U as DocumentLinkAdapter,C as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,A as WorkerManager,y as fromPosition,T as fromRange,E as setupMode,x as toRange,O as toTextEdit};
@@ -1,3 +1,3 @@
1
- import{l as c}from"./index-ktuzn6VD.js";import"./index-BVaUmrfH.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],r={close:">",id:"angle",open:"<"},a={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
1
+ import{l as c}from"./index-DWq2uvgb.js";import"./index-DcqWwbw9.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],r={close:">",id:"angle",open:"<"},a={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
2
2
  \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${d.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function g(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:`
3
3
  \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${d.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function _(t,n){const i=`_${t.id}_${n.id}`,e=u=>u.replace(/__id__/g,i),o=u=>{const m=u.source.replace(/__id__/g,i);return new RegExp(m,u.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/&lt;=|&gt;=|\\lte|\\lt|&lt;|\\gte|\\gt|&gt;|&amp;&amp;|\\and|-&gt;|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","-&gt;"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function A(t){const n=_(r,t),i=_(a,t),e=_(F,t);return{...n,...i,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,...i.tokenizer,...e.tokenizer}}}const x={conf:l(r),language:_(r,k)},$={conf:l(a),language:_(a,k)},E={conf:l(r),language:_(r,p)},B={conf:l(a),language:_(a,p)},D={conf:g(),language:A(k)},C={conf:g(),language:A(p)};export{E as TagAngleInterpolationBracket,x as TagAngleInterpolationDollar,C as TagAutoInterpolationBracket,D as TagAutoInterpolationDollar,B as TagBracketInterpolationBracket,$ as TagBracketInterpolationDollar};
@@ -1 +1 @@
1
- import{l as e}from"./index-ktuzn6VD.js";import"./index-BVaUmrfH.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{m as conf,r as language};
1
+ import{l as e}from"./index-DWq2uvgb.js";import"./index-DcqWwbw9.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{m as conf,r as language};
@@ -1 +1 @@
1
- import{l as e}from"./index-ktuzn6VD.js";import"./index-BVaUmrfH.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language};
1
+ import{l as e}from"./index-DWq2uvgb.js";import"./index-DcqWwbw9.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language};
@@ -1 +1 @@
1
- import{c as D}from"./workers-CXZ3fi_g.js";import{H as d,D as l,h as c,F as u,b as h,S as m,c as p,f as w,g as f,C as R}from"./lspLanguageFeatures-DZC1GsaK.js";import{a as b,e as y,d as T,R as U,i as x,j as M,t as j,k as O}from"./lspLanguageFeatures-DZC1GsaK.js";import{l as t}from"./index-ktuzn6VD.js";import"./index-BVaUmrfH.js";const I=120*1e3;class _{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL(""+new URL("html.worker-DTgyLzoY.js",import.meta.url).href,import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(r=>e)}}class v extends R{constructor(n){super(n,[".",":","<",'"',"=","/"])}}function W(i){const n=new _(i),e=(...o)=>n.getLanguageServiceWorker(...o);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new d(e)),t.registerDocumentHighlightProvider(r,new l(e)),t.registerLinkProvider(r,new c(e)),t.registerFoldingRangeProvider(r,new u(e)),t.registerDocumentSymbolProvider(r,new h(e)),t.registerSelectionRangeProvider(r,new m(e)),t.registerRenameProvider(r,new p(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new f(e)))}function F(i){const n=[],e=[],r=new _(i);n.push(r);const o=(...s)=>r.getLanguageServiceWorker(...s);function P(){const{languageId:s,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(s,new v(o))),a.hovers&&e.push(t.registerHoverProvider(s,new d(o))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(s,new l(o))),a.links&&e.push(t.registerLinkProvider(s,new c(o))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(s,new h(o))),a.rename&&e.push(t.registerRenameProvider(s,new p(o))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(s,new u(o))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(s,new m(o))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(s,new w(o))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(s,new f(o)))}return P(),n.push(g(e)),g(n)}function g(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,b as DefinitionAdapter,y as DiagnosticsAdapter,T as DocumentColorAdapter,w as DocumentFormattingEditProvider,l as DocumentHighlightAdapter,c as DocumentLinkAdapter,f as DocumentRangeFormattingEditProvider,h as DocumentSymbolAdapter,u as FoldingRangeAdapter,d as HoverAdapter,U as ReferenceAdapter,p as RenameAdapter,m as SelectionRangeAdapter,_ as WorkerManager,x as fromPosition,M as fromRange,F as setupMode,W as setupMode1,j as toRange,O as toTextEdit};
1
+ import{c as D}from"./workers-CmHIaj_A.js";import{H as d,D as l,h as c,F as u,b as h,S as m,c as p,f as w,g as f,C as R}from"./lspLanguageFeatures-Biz-VYAI.js";import{a as b,e as y,d as T,R as U,i as x,j as M,t as j,k as O}from"./lspLanguageFeatures-Biz-VYAI.js";import{l as t}from"./index-DWq2uvgb.js";import"./index-DcqWwbw9.js";const I=120*1e3;class _{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL(""+new URL("html.worker-DTgyLzoY.js",import.meta.url).href,import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(r=>e)}}class v extends R{constructor(n){super(n,[".",":","<",'"',"=","/"])}}function W(i){const n=new _(i),e=(...o)=>n.getLanguageServiceWorker(...o);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new d(e)),t.registerDocumentHighlightProvider(r,new l(e)),t.registerLinkProvider(r,new c(e)),t.registerFoldingRangeProvider(r,new u(e)),t.registerDocumentSymbolProvider(r,new h(e)),t.registerSelectionRangeProvider(r,new m(e)),t.registerRenameProvider(r,new p(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new f(e)))}function F(i){const n=[],e=[],r=new _(i);n.push(r);const o=(...s)=>r.getLanguageServiceWorker(...s);function P(){const{languageId:s,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(s,new v(o))),a.hovers&&e.push(t.registerHoverProvider(s,new d(o))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(s,new l(o))),a.links&&e.push(t.registerLinkProvider(s,new c(o))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(s,new h(o))),a.rename&&e.push(t.registerRenameProvider(s,new p(o))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(s,new u(o))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(s,new m(o))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(s,new w(o))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(s,new f(o)))}return P(),n.push(g(e)),g(n)}function g(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,b as DefinitionAdapter,y as DiagnosticsAdapter,T as DocumentColorAdapter,w as DocumentFormattingEditProvider,l as DocumentHighlightAdapter,c as DocumentLinkAdapter,f as DocumentRangeFormattingEditProvider,h as DocumentSymbolAdapter,u as FoldingRangeAdapter,d as HoverAdapter,U as ReferenceAdapter,p as RenameAdapter,m as SelectionRangeAdapter,_ as WorkerManager,x as fromPosition,M as fromRange,F as setupMode,W as setupMode1,j as toRange,O as toTextEdit};
@@ -1,4 +1,4 @@
1
- var In=Object.defineProperty;var Fn=(i,t,e)=>t in i?In(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var M=(i,t,e)=>Fn(i,typeof t!="symbol"?t+"":t,e);import{r as tt,j as Hs}from"./index-BVaUmrfH.js";/*!
1
+ var In=Object.defineProperty;var Fn=(i,t,e)=>t in i?In(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var M=(i,t,e)=>Fn(i,typeof t!="symbol"?t+"":t,e);import{r as tt,j as Hs}from"./index-DcqWwbw9.js";/*!
2
2
  * @kurkle/color v0.3.4
3
3
  * https://github.com/kurkle/color#readme
4
4
  * (c) 2024 Jukka Kurkela