@emailmaker/emailmaker 1.0.32 → 1.0.33

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 (390) hide show
  1. package/README.md +1 -1
  2. package/iframe/{iframe-eblock.eefae9b7403d0fa06227.html → iframe-eblock.a8bef4943d19ed8120eb.html} +1 -1
  3. package/iframe/{iframe.eefae9b7403d0fa06227.html → iframe.a8bef4943d19ed8120eb.html} +1 -1
  4. package/iframe/js/cssbeautify.js +1 -1
  5. package/iframe/sandbox-eblock.js +1 -1
  6. package/iframe/sandbox.js +1 -1
  7. package/package.json +1 -1
  8. package/asset-manifest.json +0 -373
  9. package/css.worker.js +0 -2
  10. package/css.worker.js.LICENSE.txt +0 -6
  11. package/editor.worker.js +0 -1
  12. package/emailmaker-esm.js +0 -1
  13. package/emailmaker.d.ts +0 -1055
  14. package/emailmaker.js +0 -1
  15. package/html.worker.js +0 -2
  16. package/html.worker.js.LICENSE.txt +0 -14
  17. package/json.worker.js +0 -2
  18. package/json.worker.js.LICENSE.txt +0 -6
  19. package/plugin.html +0 -273
  20. package/plugin_blocks_test.html +0 -144
  21. package/plugin_default.html +0 -56
  22. package/plugin_s.html +0 -31
  23. package/static/css/1795.3b54559d.css +0 -1
  24. package/static/css/2256.d0db3199.css +0 -1
  25. package/static/css/3215.3a2b7cfe.css +0 -1
  26. package/static/css/4877.237f7f6b.css +0 -1
  27. package/static/css/5571.4415a91e.css +0 -1
  28. package/static/css/698.9a48c3be.css +0 -1
  29. package/static/css/984.b0f773d2.css +0 -1
  30. package/static/js/1028.4360e11f.js +0 -1
  31. package/static/js/1052.d1f85a29.js +0 -1
  32. package/static/js/1101.c32ce4f7.chunk.js +0 -2
  33. package/static/js/1101.c32ce4f7.chunk.js.LICENSE.txt +0 -6
  34. package/static/js/119.9a0f51df.chunk.js +0 -2
  35. package/static/js/119.9a0f51df.chunk.js.LICENSE.txt +0 -6
  36. package/static/js/1197.7e9444b1.js +0 -1
  37. package/static/js/1212.15b852ca.js +0 -1
  38. package/static/js/127.9f5a0761.chunk.js +0 -2
  39. package/static/js/127.9f5a0761.chunk.js.LICENSE.txt +0 -6
  40. package/static/js/1271.d2ba7d58.chunk.js +0 -2
  41. package/static/js/1271.d2ba7d58.chunk.js.LICENSE.txt +0 -6
  42. package/static/js/1283.b7058deb.chunk.js +0 -2
  43. package/static/js/1283.b7058deb.chunk.js.LICENSE.txt +0 -6
  44. package/static/js/1307.74cb7b10.js +0 -1
  45. package/static/js/1366.f647b62f.js +0 -2
  46. package/static/js/1366.f647b62f.js.LICENSE.txt +0 -6
  47. package/static/js/1399.cb6eb2fa.js +0 -1
  48. package/static/js/1403.68211890.js +0 -1
  49. package/static/js/1472.c8712709.js +0 -1
  50. package/static/js/1619.bb9c2d4f.chunk.js +0 -2
  51. package/static/js/1619.bb9c2d4f.chunk.js.LICENSE.txt +0 -6
  52. package/static/js/1663.cd15901b.chunk.js +0 -2
  53. package/static/js/1663.cd15901b.chunk.js.LICENSE.txt +0 -6
  54. package/static/js/1667.101647da.js +0 -1
  55. package/static/js/1729.b71e4a99.chunk.js +0 -1
  56. package/static/js/1792.f185436f.js +0 -1
  57. package/static/js/1795.a481592d.js +0 -1
  58. package/static/js/1818.053eb89f.chunk.js +0 -2
  59. package/static/js/1818.053eb89f.chunk.js.LICENSE.txt +0 -6
  60. package/static/js/1821.a8efb62e.chunk.js +0 -2
  61. package/static/js/1821.a8efb62e.chunk.js.LICENSE.txt +0 -6
  62. package/static/js/197.a135382e.js +0 -1
  63. package/static/js/2016.e08ef9ce.js +0 -1
  64. package/static/js/2029.041a1c1a.chunk.js +0 -2
  65. package/static/js/2029.041a1c1a.chunk.js.LICENSE.txt +0 -6
  66. package/static/js/2179.73130a54.chunk.js +0 -2
  67. package/static/js/2179.73130a54.chunk.js.LICENSE.txt +0 -6
  68. package/static/js/222.280bf6b3.js +0 -1
  69. package/static/js/2223.17806e9a.js +0 -2
  70. package/static/js/2223.17806e9a.js.LICENSE.txt +0 -10
  71. package/static/js/2225.d78bdfb7.js +0 -1
  72. package/static/js/2256.225fba63.js +0 -1
  73. package/static/js/227.5fd33eeb.chunk.js +0 -2
  74. package/static/js/227.5fd33eeb.chunk.js.LICENSE.txt +0 -10
  75. package/static/js/2464.2c009f8c.js +0 -2
  76. package/static/js/2464.2c009f8c.js.LICENSE.txt +0 -6
  77. package/static/js/2475.c86d0c20.chunk.js +0 -2
  78. package/static/js/2475.c86d0c20.chunk.js.LICENSE.txt +0 -6
  79. package/static/js/2547.9cdcf5fd.chunk.js +0 -2
  80. package/static/js/2547.9cdcf5fd.chunk.js.LICENSE.txt +0 -6
  81. package/static/js/2581.4558746b.chunk.js +0 -2
  82. package/static/js/2581.4558746b.chunk.js.LICENSE.txt +0 -6
  83. package/static/js/2582.d77da683.js +0 -2
  84. package/static/js/2582.d77da683.js.LICENSE.txt +0 -31
  85. package/static/js/2642.53da04d8.js +0 -1
  86. package/static/js/2675.dbe09fe1.chunk.js +0 -2
  87. package/static/js/2675.dbe09fe1.chunk.js.LICENSE.txt +0 -6
  88. package/static/js/2851.fea52359.chunk.js +0 -2
  89. package/static/js/2851.fea52359.chunk.js.LICENSE.txt +0 -6
  90. package/static/js/2896.fac80e3c.js +0 -2
  91. package/static/js/2896.fac80e3c.js.LICENSE.txt +0 -6
  92. package/static/js/2935.c0d4b469.chunk.js +0 -2
  93. package/static/js/2935.c0d4b469.chunk.js.LICENSE.txt +0 -6
  94. package/static/js/2951.3f25f72c.chunk.js +0 -2
  95. package/static/js/2951.3f25f72c.chunk.js.LICENSE.txt +0 -6
  96. package/static/js/3041.e05fa027.js +0 -1
  97. package/static/js/3068.591718b0.chunk.js +0 -2
  98. package/static/js/3068.591718b0.chunk.js.LICENSE.txt +0 -6
  99. package/static/js/3142.6792174f.js +0 -1
  100. package/static/js/3148.2e2f27ce.js +0 -1
  101. package/static/js/3299.983ba49b.chunk.js +0 -2
  102. package/static/js/3299.983ba49b.chunk.js.LICENSE.txt +0 -6
  103. package/static/js/3303.576ded0e.js +0 -1
  104. package/static/js/3447.2a559817.chunk.js +0 -2
  105. package/static/js/3447.2a559817.chunk.js.LICENSE.txt +0 -6
  106. package/static/js/353.3e6b29fb.js +0 -1
  107. package/static/js/3555.3ae2b597.chunk.js +0 -2
  108. package/static/js/3555.3ae2b597.chunk.js.LICENSE.txt +0 -6
  109. package/static/js/3651.8f2624f3.js +0 -1
  110. package/static/js/3682.d155b110.js +0 -2
  111. package/static/js/3682.d155b110.js.LICENSE.txt +0 -18
  112. package/static/js/3683.9414adf5.chunk.js +0 -2
  113. package/static/js/3683.9414adf5.chunk.js.LICENSE.txt +0 -6
  114. package/static/js/3704.aef08abb.js +0 -1
  115. package/static/js/3763.5f775790.chunk.js +0 -2
  116. package/static/js/3763.5f775790.chunk.js.LICENSE.txt +0 -6
  117. package/static/js/3768.f13fcea4.js +0 -1
  118. package/static/js/393.2f571faf.chunk.js +0 -2
  119. package/static/js/393.2f571faf.chunk.js.LICENSE.txt +0 -6
  120. package/static/js/3960.89f3c9f4.chunk.js +0 -2
  121. package/static/js/3960.89f3c9f4.chunk.js.LICENSE.txt +0 -6
  122. package/static/js/3991.d0073826.js +0 -1
  123. package/static/js/4001.0602b191.chunk.js +0 -2
  124. package/static/js/4001.0602b191.chunk.js.LICENSE.txt +0 -6
  125. package/static/js/4047.25747214.chunk.js +0 -2
  126. package/static/js/4047.25747214.chunk.js.LICENSE.txt +0 -6
  127. package/static/js/4087.48b614cb.js +0 -1
  128. package/static/js/4122.efa76a71.js +0 -1
  129. package/static/js/4159.cd6afba9.chunk.js +0 -2
  130. package/static/js/4159.cd6afba9.chunk.js.LICENSE.txt +0 -6
  131. package/static/js/4231.0dca1f81.js +0 -1
  132. package/static/js/4299.440bc3d2.chunk.js +0 -2
  133. package/static/js/4299.440bc3d2.chunk.js.LICENSE.txt +0 -6
  134. package/static/js/4325.e27cebb3.chunk.js +0 -2
  135. package/static/js/4325.e27cebb3.chunk.js.LICENSE.txt +0 -6
  136. package/static/js/4384.d7dc931a.js +0 -2
  137. package/static/js/4384.d7dc931a.js.LICENSE.txt +0 -15
  138. package/static/js/4417.4b3f75b4.chunk.js +0 -2
  139. package/static/js/4417.4b3f75b4.chunk.js.LICENSE.txt +0 -6
  140. package/static/js/4498.0767c1ee.js +0 -1
  141. package/static/js/451.d254d20c.chunk.js +0 -2
  142. package/static/js/451.d254d20c.chunk.js.LICENSE.txt +0 -6
  143. package/static/js/4627.cedc745b.chunk.js +0 -2
  144. package/static/js/4627.cedc745b.chunk.js.LICENSE.txt +0 -6
  145. package/static/js/4805.1ac956f6.js +0 -1
  146. package/static/js/4845.c3ae91f2.js +0 -1
  147. package/static/js/4867.ae5eb9c0.chunk.js +0 -2
  148. package/static/js/4867.ae5eb9c0.chunk.js.LICENSE.txt +0 -6
  149. package/static/js/4877.6ed62a0e.js +0 -1
  150. package/static/js/51.0157cb43.chunk.js +0 -2
  151. package/static/js/51.0157cb43.chunk.js.LICENSE.txt +0 -6
  152. package/static/js/515.16219a24.js +0 -2
  153. package/static/js/515.16219a24.js.LICENSE.txt +0 -6
  154. package/static/js/5243.c58a8a21.chunk.js +0 -2
  155. package/static/js/5243.c58a8a21.chunk.js.LICENSE.txt +0 -6
  156. package/static/js/5315.1a03f762.chunk.js +0 -2
  157. package/static/js/5315.1a03f762.chunk.js.LICENSE.txt +0 -6
  158. package/static/js/5319.92df1268.js +0 -1
  159. package/static/js/5339.df02c3e0.chunk.js +0 -2
  160. package/static/js/5339.df02c3e0.chunk.js.LICENSE.txt +0 -6
  161. package/static/js/5445.7db0b349.chunk.js +0 -2
  162. package/static/js/5445.7db0b349.chunk.js.LICENSE.txt +0 -6
  163. package/static/js/5475.dc9057be.chunk.js +0 -2
  164. package/static/js/5475.dc9057be.chunk.js.LICENSE.txt +0 -6
  165. package/static/js/5491.d8b1b7b0.chunk.js +0 -2
  166. package/static/js/5491.d8b1b7b0.chunk.js.LICENSE.txt +0 -6
  167. package/static/js/5497.a3910de2.js +0 -1
  168. package/static/js/5571.11726031.js +0 -1
  169. package/static/js/577.ca8a62c4.chunk.js +0 -2
  170. package/static/js/577.ca8a62c4.chunk.js.LICENSE.txt +0 -6
  171. package/static/js/5796.4b4a1748.js +0 -2
  172. package/static/js/5796.4b4a1748.js.LICENSE.txt +0 -1
  173. package/static/js/5853.ce87dead.chunk.js +0 -2
  174. package/static/js/5853.ce87dead.chunk.js.LICENSE.txt +0 -6
  175. package/static/js/5873.5fdbcd6c.js +0 -1
  176. package/static/js/5916.3a56abae.js +0 -1
  177. package/static/js/5923.e8e7b96d.chunk.js +0 -2
  178. package/static/js/5923.e8e7b96d.chunk.js.LICENSE.txt +0 -6
  179. package/static/js/5927.4afcefc8.chunk.js +0 -1
  180. package/static/js/5957.d2ad88af.js +0 -2
  181. package/static/js/5957.d2ad88af.js.LICENSE.txt +0 -9
  182. package/static/js/5974.9d34d7d3.js +0 -1
  183. package/static/js/6021.7f32cea2.chunk.js +0 -2
  184. package/static/js/6021.7f32cea2.chunk.js.LICENSE.txt +0 -6
  185. package/static/js/6051.6cefb17a.chunk.js +0 -2
  186. package/static/js/6051.6cefb17a.chunk.js.LICENSE.txt +0 -6
  187. package/static/js/6075.38c621ae.chunk.js +0 -2
  188. package/static/js/6075.38c621ae.chunk.js.LICENSE.txt +0 -6
  189. package/static/js/6083.0ef791dc.chunk.js +0 -2
  190. package/static/js/6083.0ef791dc.chunk.js.LICENSE.txt +0 -6
  191. package/static/js/6091.804a3e5a.js +0 -2
  192. package/static/js/6091.804a3e5a.js.LICENSE.txt +0 -6
  193. package/static/js/6133.0da38de9.js +0 -1
  194. package/static/js/6154.eda7a5eb.js +0 -1
  195. package/static/js/6161.6a73be6e.chunk.js +0 -2
  196. package/static/js/6161.6a73be6e.chunk.js.LICENSE.txt +0 -6
  197. package/static/js/6242.14f46d39.js +0 -2
  198. package/static/js/6242.14f46d39.js.LICENSE.txt +0 -43
  199. package/static/js/6275.19545c93.chunk.js +0 -2
  200. package/static/js/6275.19545c93.chunk.js.LICENSE.txt +0 -6
  201. package/static/js/6300.1ed0e3a4.js +0 -1
  202. package/static/js/6547.377fc02b.chunk.js +0 -2
  203. package/static/js/6547.377fc02b.chunk.js.LICENSE.txt +0 -6
  204. package/static/js/6567.cad55045.js +0 -1
  205. package/static/js/6643.1eb62a36.chunk.js +0 -2
  206. package/static/js/6643.1eb62a36.chunk.js.LICENSE.txt +0 -6
  207. package/static/js/6691.1ee2f23b.chunk.js +0 -2
  208. package/static/js/6691.1ee2f23b.chunk.js.LICENSE.txt +0 -6
  209. package/static/js/6701.8bd3807d.chunk.js +0 -2
  210. package/static/js/6701.8bd3807d.chunk.js.LICENSE.txt +0 -6
  211. package/static/js/6739.22d13837.chunk.js +0 -2
  212. package/static/js/6739.22d13837.chunk.js.LICENSE.txt +0 -6
  213. package/static/js/687.147e9138.js +0 -1
  214. package/static/js/6915.e4ede32f.chunk.js +0 -2
  215. package/static/js/6915.e4ede32f.chunk.js.LICENSE.txt +0 -6
  216. package/static/js/698.aebcf9cd.js +0 -1
  217. package/static/js/7018.f481e3a0.js +0 -1
  218. package/static/js/7051.c0c7cf26.chunk.js +0 -2
  219. package/static/js/7051.c0c7cf26.chunk.js.LICENSE.txt +0 -6
  220. package/static/js/7059.9c893bc0.chunk.js +0 -2
  221. package/static/js/7059.9c893bc0.chunk.js.LICENSE.txt +0 -6
  222. package/static/js/7187.7e67eebe.chunk.js +0 -2
  223. package/static/js/7187.7e67eebe.chunk.js.LICENSE.txt +0 -6
  224. package/static/js/721.4c6f728a.chunk.js +0 -2
  225. package/static/js/721.4c6f728a.chunk.js.LICENSE.txt +0 -6
  226. package/static/js/7471.fe46efd9.js +0 -1
  227. package/static/js/7533.a49f7784.js +0 -1
  228. package/static/js/7635.9d5d1322.chunk.js +0 -2
  229. package/static/js/7635.9d5d1322.chunk.js.LICENSE.txt +0 -6
  230. package/static/js/7698.f82d28d4.js +0 -1
  231. package/static/js/7779.0d221377.chunk.js +0 -2
  232. package/static/js/7779.0d221377.chunk.js.LICENSE.txt +0 -6
  233. package/static/js/7795.c0e8c528.chunk.js +0 -2
  234. package/static/js/7795.c0e8c528.chunk.js.LICENSE.txt +0 -6
  235. package/static/js/7824.e0daa1f7.chunk.js +0 -1
  236. package/static/js/7963.a4acc856.chunk.js +0 -2
  237. package/static/js/7963.a4acc856.chunk.js.LICENSE.txt +0 -6
  238. package/static/js/8003.a4a62303.chunk.js +0 -2
  239. package/static/js/8003.a4a62303.chunk.js.LICENSE.txt +0 -6
  240. package/static/js/8015.b608b9db.chunk.js +0 -2
  241. package/static/js/8015.b608b9db.chunk.js.LICENSE.txt +0 -6
  242. package/static/js/8030.0b457006.js +0 -1
  243. package/static/js/8075.bea74e99.js +0 -1
  244. package/static/js/8179.acf16a1a.chunk.js +0 -1
  245. package/static/js/823.48325ac1.js +0 -2
  246. package/static/js/823.48325ac1.js.LICENSE.txt +0 -7
  247. package/static/js/8236.bdefaa6b.js +0 -2
  248. package/static/js/8236.bdefaa6b.js.LICENSE.txt +0 -42
  249. package/static/js/8309.7e81b18b.js +0 -1
  250. package/static/js/8319.7ea4b259.chunk.js +0 -2
  251. package/static/js/8319.7ea4b259.chunk.js.LICENSE.txt +0 -6
  252. package/static/js/8345.e3795419.js +0 -1
  253. package/static/js/851.23920710.chunk.js +0 -2
  254. package/static/js/851.23920710.chunk.js.LICENSE.txt +0 -6
  255. package/static/js/8671.6a83db75.js +0 -1
  256. package/static/js/8679.f65e4d91.chunk.js +0 -2
  257. package/static/js/8679.f65e4d91.chunk.js.LICENSE.txt +0 -6
  258. package/static/js/8689.5fdcff24.chunk.js +0 -1
  259. package/static/js/8694.60896e26.js +0 -1
  260. package/static/js/8696.301b3f9b.js +0 -1
  261. package/static/js/8738.3ba7b2e7.js +0 -2
  262. package/static/js/8738.3ba7b2e7.js.LICENSE.txt +0 -87
  263. package/static/js/8740.a2a83fd4.js +0 -1
  264. package/static/js/8779.f6f8b6f7.chunk.js +0 -2
  265. package/static/js/8779.f6f8b6f7.chunk.js.LICENSE.txt +0 -6
  266. package/static/js/883.616a487d.chunk.js +0 -2
  267. package/static/js/883.616a487d.chunk.js.LICENSE.txt +0 -6
  268. package/static/js/8879.10db9af5.js +0 -2
  269. package/static/js/8879.10db9af5.js.LICENSE.txt +0 -86
  270. package/static/js/8881.ce638df9.chunk.js +0 -2
  271. package/static/js/8881.ce638df9.chunk.js.LICENSE.txt +0 -6
  272. package/static/js/8911.8253711c.chunk.js +0 -2
  273. package/static/js/8911.8253711c.chunk.js.LICENSE.txt +0 -6
  274. package/static/js/9005.62fb383a.chunk.js +0 -2
  275. package/static/js/9005.62fb383a.chunk.js.LICENSE.txt +0 -6
  276. package/static/js/9019.7efd13af.js +0 -2
  277. package/static/js/9019.7efd13af.js.LICENSE.txt +0 -96
  278. package/static/js/9055.1f85af27.js +0 -1
  279. package/static/js/9061.3366c9e5.js +0 -1
  280. package/static/js/9101.08739c9d.js +0 -1
  281. package/static/js/9267.67d8f2bb.chunk.js +0 -2
  282. package/static/js/9267.67d8f2bb.chunk.js.LICENSE.txt +0 -6
  283. package/static/js/9328.74394e00.js +0 -1
  284. package/static/js/9603.4321e1c5.chunk.js +0 -2
  285. package/static/js/9603.4321e1c5.chunk.js.LICENSE.txt +0 -6
  286. package/static/js/9649.ff98467b.js +0 -1
  287. package/static/js/9653.3c3fd842.js +0 -1
  288. package/static/js/9763.2e0a4d2d.chunk.js +0 -2
  289. package/static/js/9763.2e0a4d2d.chunk.js.LICENSE.txt +0 -6
  290. package/static/js/9796.52daf89f.js +0 -1
  291. package/static/js/9878.cca6854e.js +0 -2
  292. package/static/js/9878.cca6854e.js.LICENSE.txt +0 -8
  293. package/static/js/9898.93cc5558.chunk.js +0 -2
  294. package/static/js/9898.93cc5558.chunk.js.LICENSE.txt +0 -6
  295. package/static/js/9907.c26468b0.js +0 -1
  296. package/static/js/9935.52cd750c.chunk.js +0 -2
  297. package/static/js/9935.52cd750c.chunk.js.LICENSE.txt +0 -6
  298. package/static/js/ant-locale/locale0.fdb32a9f.chunk.js +0 -1
  299. package/static/js/ant-locale/locale1.5b1308da.chunk.js +0 -1
  300. package/static/js/ant-locale/locale10.f74ae841.chunk.js +0 -1
  301. package/static/js/ant-locale/locale11.cf703a34.chunk.js +0 -1
  302. package/static/js/ant-locale/locale13.9bcbe954.chunk.js +0 -1
  303. package/static/js/ant-locale/locale14.138842ea.chunk.js +0 -1
  304. package/static/js/ant-locale/locale15.e80eb12a.chunk.js +0 -1
  305. package/static/js/ant-locale/locale16.49bc0148.chunk.js +0 -1
  306. package/static/js/ant-locale/locale17.2daaf9a6.chunk.js +0 -1
  307. package/static/js/ant-locale/locale18.f9e62843.chunk.js +0 -1
  308. package/static/js/ant-locale/locale19.c98c053a.chunk.js +0 -1
  309. package/static/js/ant-locale/locale2.b54c0d79.chunk.js +0 -1
  310. package/static/js/ant-locale/locale20.b5cb6b02.chunk.js +0 -1
  311. package/static/js/ant-locale/locale21.7764c4b3.chunk.js +0 -1
  312. package/static/js/ant-locale/locale22.5cbb9959.chunk.js +0 -1
  313. package/static/js/ant-locale/locale23.2342f692.chunk.js +0 -1
  314. package/static/js/ant-locale/locale24.3c622cfa.chunk.js +0 -1
  315. package/static/js/ant-locale/locale25.7658de4e.chunk.js +0 -1
  316. package/static/js/ant-locale/locale26.b7e751bd.chunk.js +0 -1
  317. package/static/js/ant-locale/locale27.a47676d9.chunk.js +0 -1
  318. package/static/js/ant-locale/locale28.c89eee28.chunk.js +0 -1
  319. package/static/js/ant-locale/locale3.48f0afe7.chunk.js +0 -1
  320. package/static/js/ant-locale/locale30.4d3672db.chunk.js +0 -1
  321. package/static/js/ant-locale/locale31.406215d5.chunk.js +0 -1
  322. package/static/js/ant-locale/locale32.6167b5e8.chunk.js +0 -1
  323. package/static/js/ant-locale/locale33.4be05b3c.chunk.js +0 -1
  324. package/static/js/ant-locale/locale34.3813ab2f.chunk.js +0 -1
  325. package/static/js/ant-locale/locale35.d58b9c31.chunk.js +0 -1
  326. package/static/js/ant-locale/locale36.34d5c9ee.chunk.js +0 -1
  327. package/static/js/ant-locale/locale37.1c16e25b.chunk.js +0 -1
  328. package/static/js/ant-locale/locale38.dfa6d712.chunk.js +0 -1
  329. package/static/js/ant-locale/locale39.31c90381.chunk.js +0 -1
  330. package/static/js/ant-locale/locale4.e6fdd0ee.chunk.js +0 -1
  331. package/static/js/ant-locale/locale40.fe7ab935.chunk.js +0 -1
  332. package/static/js/ant-locale/locale41.4dee0621.chunk.js +0 -1
  333. package/static/js/ant-locale/locale42.7061d0fc.chunk.js +0 -1
  334. package/static/js/ant-locale/locale43.b3c810a8.chunk.js +0 -1
  335. package/static/js/ant-locale/locale44.df0a5a76.chunk.js +0 -1
  336. package/static/js/ant-locale/locale45.a7f6f97e.chunk.js +0 -1
  337. package/static/js/ant-locale/locale46.8f49c2cd.chunk.js +0 -1
  338. package/static/js/ant-locale/locale47.b84733ce.chunk.js +0 -1
  339. package/static/js/ant-locale/locale48.bfb8c2b3.chunk.js +0 -1
  340. package/static/js/ant-locale/locale49.c67382b7.chunk.js +0 -1
  341. package/static/js/ant-locale/locale5.b2b61134.chunk.js +0 -1
  342. package/static/js/ant-locale/locale50.6520fd45.chunk.js +0 -1
  343. package/static/js/ant-locale/locale51.9b89fb56.chunk.js +0 -1
  344. package/static/js/ant-locale/locale52.11d21631.chunk.js +0 -1
  345. package/static/js/ant-locale/locale53.cea142dd.chunk.js +0 -1
  346. package/static/js/ant-locale/locale54.16ef125d.chunk.js +0 -1
  347. package/static/js/ant-locale/locale55.b1a653c1.chunk.js +0 -1
  348. package/static/js/ant-locale/locale56.83c76bd5.chunk.js +0 -1
  349. package/static/js/ant-locale/locale57.e685764a.chunk.js +0 -1
  350. package/static/js/ant-locale/locale58.d003f49e.chunk.js +0 -1
  351. package/static/js/ant-locale/locale59.556522b5.chunk.js +0 -1
  352. package/static/js/ant-locale/locale60.bf3ddb83.chunk.js +0 -1
  353. package/static/js/ant-locale/locale61.30fe9720.chunk.js +0 -1
  354. package/static/js/ant-locale/locale62.b21e6edb.chunk.js +0 -1
  355. package/static/js/ant-locale/locale63.8e66417e.chunk.js +0 -1
  356. package/static/js/ant-locale/locale64.fdae6858.chunk.js +0 -1
  357. package/static/js/ant-locale/locale65.58003560.chunk.js +0 -1
  358. package/static/js/ant-locale/locale66.94ea41f2.chunk.js +0 -1
  359. package/static/js/ant-locale/locale68.8a9f32b5.chunk.js +0 -1
  360. package/static/js/ant-locale/locale69.27295717.chunk.js +0 -1
  361. package/static/js/ant-locale/locale7.1509b3e0.chunk.js +0 -1
  362. package/static/js/ant-locale/locale70.964bc038.chunk.js +0 -1
  363. package/static/js/ant-locale/locale71.99926e0d.chunk.js +0 -1
  364. package/static/js/ant-locale/locale8.134136c4.chunk.js +0 -1
  365. package/static/js/ant-locale/locale9.9b87d751.chunk.js +0 -1
  366. package/static/js/emailmaker_core.80378bf9.js +0 -1
  367. package/static/js/mergeTags/locale0.23c595c1.chunk.js +0 -1
  368. package/static/js/mergeTags/locale1.3448e6cb.chunk.js +0 -1
  369. package/static/js/mocks.90ebae7c.chunk.js +0 -1
  370. package/static/media/ai-image.7c42c2e1.png +0 -0
  371. package/static/media/codicon.f13d28f3.ttf +0 -0
  372. package/static/media/empty-image.1827d656.png +0 -0
  373. package/static/media/frame_dark.318d7ed5.png +0 -0
  374. package/static/media/frame_light.22a9b4ec.png +0 -0
  375. package/static/media/frame_template_gallery.85693b39.png +0 -0
  376. package/static/media/icon-border-radius.2a56b93a7711558098a622296b7ae2e1.svg +0 -1
  377. package/static/media/icon-create-block.0b077f4000bf7907b9ea871d28c7fb1e.svg +0 -1
  378. package/static/media/sign_up_01.33327158.png +0 -0
  379. package/static/media/sign_up_01_blocks.5538cfdb.png +0 -0
  380. package/static/media/sign_up_02.d99d2aa6.png +0 -0
  381. package/static/media/sign_up_02_blocks.837fc2c9.png +0 -0
  382. package/static/media/sign_up_03.5545ffad.png +0 -0
  383. package/static/media/sign_up_03_blocks.126601f7.png +0 -0
  384. package/static/media/sign_up_04.398a4ca5.png +0 -0
  385. package/static/media/sign_up_04_blocks.255c5c07.png +0 -0
  386. package/static/media/sign_up_05.4c58df1b.png +0 -0
  387. package/static/media/sign_up_05_blocks.431b6844.png +0 -0
  388. package/static/media/video.854adea5.png +0 -0
  389. package/ts.worker.js +0 -2
  390. package/ts.worker.js.LICENSE.txt +0 -21
@@ -1,2 +0,0 @@
1
- /*! For license information please see 8015.b608b9db.chunk.js.LICENSE.txt */
2
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[8015],{68015:(e,i,t)=>{t.r(i),t.d(i,{conf:()=>n,language:()=>s});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},s={defaultToken:"",tokenPostfix:".cypher",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","AND","AS","ASC","ASCENDING","BY","CALL","CASE","CONTAINS","CREATE","DELETE","DESC","DESCENDING","DETACH","DISTINCT","ELSE","END","ENDS","EXISTS","IN","IS","LIMIT","MANDATORY","MATCH","MERGE","NOT","ON","ON","OPTIONAL","OR","ORDER","REMOVE","RETURN","SET","SKIP","STARTS","THEN","UNION","UNWIND","WHEN","WHERE","WITH","XOR","YIELD"],builtinLiterals:["true","TRUE","false","FALSE","null","NULL"],builtinFunctions:["abs","acos","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endNode","exists","exp","floor","head","id","keys","labels","last","left","length","log","log10","lTrim","max","min","nodes","percentileCont","percentileDisc","pi","properties","radians","rand","range","relationships","replace","reverse","right","round","rTrim","sign","sin","size","split","sqrt","startNode","stDev","stDevP","substring","sum","tail","tan","timestamp","toBoolean","toFloat","toInteger","toLower","toString","toUpper","trim","type"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">=","->","<-","--\x3e","<--"],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function"}}],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinLiterals":"predefined.literal","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[<>=%+\-*/^]+/,{cases:{"@operators":"delimiter","@default":""}}]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}}}}]);
@@ -1,6 +0,0 @@
1
- /*!-----------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.34.0(dee69564fa27426c7ebb706c3d2ed3d1acccedfe)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------------------------*/
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[8030],{58387:(e,t,i)=>{i.r(t),i.d(t,{FoldingController:()=>ie,editorFoldForeground:()=>ae,foldBackgroundBackground:()=>se});var n=i(86683),o=i(24156),r=i(44948),s=i(26819),a=i(53817),l=i(4562),d=i(24195),c=i(50051),h=i(29671),g=i(63404),u=i(91835),p=i(74663);const f=16777215,m=4278190080;class _{constructor(e,t,i){if(e.length!==t.length||e.length>65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t;const n=Math.ceil(e.length/32);this._collapseStates=new Uint32Array(n),this._manualStates=new Uint32Array(n),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const e=[],t=(t,i)=>{const n=e[e.length-1];return this.getStartLineNumber(n)<=t&&this.getEndLineNumber(n)>=i};for(let i=0,n=this._startIndexes.length;i<n;i++){const n=this._startIndexes[i],o=this._endIndexes[i];if(n>f||o>f)throw new Error("startLineNumber or endLineNumber must not exceed "+f);for(;e.length>0&&!t(n,o);)e.pop();const r=e.length>0?e[e.length-1]:-1;e.push(i),this._startIndexes[i]=n+((255&r)<<24),this._endIndexes[i]=o+((65280&r)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&f}getEndLineNumber(e){return this._endIndexes[e]&f}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){const t=e/32|0,i=e%32;return 0!==(this._collapseStates[t]&1<<i)}setCollapsed(e,t){const i=e/32|0,n=e%32,o=this._collapseStates[i];this._collapseStates[i]=t?o|1<<n:o&~(1<<n)}isManualSelection(e){const t=e/32|0,i=e%32;return 0!==(this._manualStates[t]&1<<i)}setManualSelection(e,t){const i=e/32|0,n=e%32,o=this._manualStates[i];this._manualStates[i]=t?o|1<<n:o&~(1<<n)}setCollapsedAllOfType(e,t){let i=!1;if(this._types)for(let n=0;n<this._types.length;n++)this._types[n]===e&&(this.setCollapsed(n,t),i=!0);return i}toRegion(e){return new v(this,e)}getParentIndex(e){this.ensureParentIndices();const t=((this._startIndexes[e]&m)>>>24)+((this._endIndexes[e]&m)>>>16);return 65535===t?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t<i;){const n=Math.floor((t+i)/2);e<this.getStartLineNumber(n)?i=n:t=n+1}return t-1}findRange(e){let t=this.findIndex(e);if(t>=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){const e=[];for(let t=0;t<this.length;t++)e[t]=`[${this.isManualSelection(t)?"*":" "}${this.isCollapsed(t)?"+":"-"}] ${this.getStartLineNumber(t)}/${this.getEndLineNumber(t)}`;return e.join(", ")}toFoldRange(e){return{startLineNumber:this._startIndexes[e]&f,endLineNumber:this._endIndexes[e]&f,type:this._types?this._types[e]:void 0,isCollapsed:this.isCollapsed(e),isManualSelection:this.isManualSelection(e)}}static fromFoldRanges(e){const t=e.length,i=new Uint32Array(t),n=new Uint32Array(t);let o=[],r=!1;for(let a=0;a<t;a++){const t=e[a];i[a]=t.startLineNumber,n[a]=t.endLineNumber,o.push(t.type),t.type&&(r=!0)}r||(o=void 0);const s=new _(i,n,o);for(let a=0;a<t;a++)e[a].isCollapsed&&s.setCollapsed(a,!0),e[a].isManualSelection&&s.setManualSelection(a,!0);return s}static sanitizeAndMerge(e,t,i){i=null!==i&&void 0!==i?i:Number.MAX_VALUE;let n=this._trySanitizeAndMerge(1,e,t,i);return n||(n=this._trySanitizeAndMerge(2,e,t,i)),n}static _trySanitizeAndMerge(e,t,i,n){const o=(e,t)=>Array.isArray(e)?i=>i<t?e[i]:void 0:i=>i<t?e.toFoldRange(i):void 0,r=o(t,t.length),s=o(i,i.length);let a=0,l=0,d=r(0),c=s(0);const h=[];let g,u=0;const p=[];let f=0;for(;d||c;){let t;if(c&&(!d||d.startLineNumber>=c.startLineNumber)){if(d&&d.startLineNumber===c.startLineNumber&&d.endLineNumber===c.endLineNumber)t=c,t.isCollapsed=t.isCollapsed||d.isCollapsed,t.isManualSelection=d.isManualSelection&&c.isManualSelection,t.type||(t.type=d.type),d=r(++a);else if(c.isCollapsed&&!c.isManualSelection&&1===e){if(++f>1)return null}else t=c,t.isCollapsed&&(t.isManualSelection=!0);c=s(++l)}else{let i=l,n=c;for(;;){if(!n||n.startLineNumber>d.endLineNumber){t=d;break}if(n.endLineNumber>d.endLineNumber&&(!n.isCollapsed||n.isManualSelection||2===e))break;n=s(++i)}d=r(++a)}if(t){for(;g&&g.endLineNumber<t.startLineNumber;)g=h.pop();t.endLineNumber>t.startLineNumber&&t.startLineNumber>u&&t.endLineNumber<=n&&(!g||g.endLineNumber>=t.endLineNumber)&&(p.push(t),u=t.startLineNumber,g&&h.push(g),g=t)}}return p}}class v{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}var b=i(82671);class k{constructor(e,t,i){this._updateEventEmitter=new p.vl,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._triggerRecomputeRanges=i,this._regions=new _(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}get regions(){return this._regions}get textModel(){return this._textModel}toggleCollapseState(e){if(!e.length)return;e=e.sort(((e,t)=>e.regionIndex-t.regionIndex));const t={};this._decorationProvider.changeDecorations((i=>{let n=0,o=-1,r=-1;const s=e=>{for(;n<e;){const e=this._regions.getEndLineNumber(n),t=this._regions.isCollapsed(n),s=this.regions.isManualSelection(n);e<=o&&i.changeDecorationOptions(this._editorDecorationIds[n],this._decorationProvider.getDecorationOption(t,e<=r,s)),t&&e>r&&(r=e),n++}};for(const a of e){const e=a.regionIndex,i=this._editorDecorationIds[e];if(i&&!t[i]){t[i]=!0,s(e);const n=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,n),o=Math.max(o,this._regions.getEndLineNumber(e))}}s(this._regions.length)})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}update(e,t=[]){const i=this._currentHiddenRegions(t),n=_.sanitizeAndMerge(e,i,this._textModel.getLineCount());this.updatePost(_.fromFoldRanges(n))}updatePost(e){const t=[];let i=-1;for(let n=0,o=e.length;n<o;n++){const o=e.getStartLineNumber(n),r=e.getEndLineNumber(n),s=e.isCollapsed(n),a=e.isManualSelection(n),l={startLineNumber:o,startColumn:this._textModel.getLineMaxColumn(o),endLineNumber:r,endColumn:this._textModel.getLineMaxColumn(r)+1};t.push({range:l,options:this._decorationProvider.getDecorationOption(s,r<=i,a)}),s&&r>i&&(i=r)}this._decorationProvider.changeDecorations((e=>this._editorDecorationIds=e.deltaDecorations(this._editorDecorationIds,t))),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentHiddenRegions(e=[]){const t=(t,i)=>{for(const n of e)if(t<n&&n<=i)return!0;return!1},i=[];for(let n=0,o=this._regions.length;n<o;n++)if(this.regions.isCollapsed(n)){const e=this._regions.toFoldRange(n),o=this._textModel.getDecorationRange(this._editorDecorationIds[n]);o&&!t(o.startLineNumber,o.endLineNumber)&&o.endLineNumber-o.startLineNumber===e.endLineNumber-e.startLineNumber&&i.push({startLineNumber:o.startLineNumber,endLineNumber:o.endLineNumber,type:e.type,isCollapsed:!0,isManualSelection:e.isManualSelection})}return i}getMemento(){const e=this._currentHiddenRegions(),t=[];for(let i=0,n=e.length;i<n;i++){const n=e[i],o=this._getLinesChecksum(n.startLineNumber+1,n.endLineNumber);t.push({startLineNumber:n.startLineNumber,endLineNumber:n.endLineNumber,checksum:o})}return t.length>0?t:void 0}applyMemento(e){if(!Array.isArray(e))return;const t=[],i=this._textModel.getLineCount();for(const o of e){if(o.startLineNumber>=o.endLineNumber||o.startLineNumber<1||o.endLineNumber>i)continue;const e=this._getLinesChecksum(o.startLineNumber+1,o.endLineNumber);o.checksum&&e!==o.checksum||t.push({startLineNumber:o.startLineNumber,endLineNumber:o.endLineNumber,type:void 0,isCollapsed:!0,isManualSelection:!0})}const n=_.sanitizeAndMerge(this._regions,t,i);this.updatePost(_.fromFoldRanges(n))}_getLinesChecksum(e,t){return(0,b.tW)(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){const i=[];if(this._regions){let n=this._regions.findRange(e),o=1;for(;n>=0;){const e=this._regions.toRegion(n);t&&!t(e,o)||i.push(e),o++,n=e.parentIndex}}return i}getRegionAtLine(e){if(this._regions){const t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){const i=[],n=e?e.regionIndex+1:0,o=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){const e=[];for(let r=n,s=this._regions.length;r<s;r++){const n=this._regions.toRegion(r);if(!(this._regions.getStartLineNumber(r)<o))break;for(;e.length>0&&!n.containedBy(e[e.length-1]);)e.pop();e.push(n),t(n,e.length)&&i.push(n)}}else for(let r=n,s=this._regions.length;r<s;r++){const e=this._regions.toRegion(r);if(!(this._regions.getStartLineNumber(r)<o))break;t&&!t(e)||i.push(e)}return i}}function y(e,t,i=Number.MAX_VALUE,n){const o=[];if(n&&n.length>0)for(const r of n){const n=e.getRegionAtLine(r);if(n&&(n.isCollapsed!==t&&o.push(n),i>1)){const r=e.getRegionsInside(n,((e,n)=>e.isCollapsed!==t&&n<i));o.push(...r)}}else{const n=e.getRegionsInside(null,((e,n)=>e.isCollapsed!==t&&n<i));o.push(...n)}e.toggleCollapseState(o)}function C(e,t,i,n){const o=[];for(const r of n){const n=e.getAllRegionsAtLine(r,((e,n)=>e.isCollapsed!==t&&n<=i));o.push(...n)}e.toggleCollapseState(o)}function w(e,t,i){const n=[];for(const r of i){const t=e.getAllRegionsAtLine(r,void 0);t.length>0&&n.push(t[0])}const o=e.getRegionsInside(null,(e=>n.every((t=>!t.containedBy(e)&&!e.containedBy(t)))&&e.isCollapsed!==t));e.toggleCollapseState(o)}function M(e,t,i){const n=e.textModel,o=e.regions,r=[];for(let s=o.length-1;s>=0;s--)if(i!==o.isCollapsed(s)){const e=o.getStartLineNumber(s);t.test(n.getLineContent(e))&&r.push(o.toRegion(s))}e.toggleCollapseState(r)}function R(e,t,i){const n=e.regions,o=[];for(let r=n.length-1;r>=0;r--)i!==n.isCollapsed(r)&&t===n.getType(r)&&o.push(n.toRegion(r));e.toggleCollapseState(o)}var L=i(39869),S=i(15186),D=i(66195);class x{constructor(e){this._updateEventEmitter=new p.vl,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange((e=>this.updateHiddenRanges())),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some((e=>e.range.endLineNumber!==e.range.startLineNumber||0!==(0,D.W)(e.text)[0])))}updateHiddenRanges(){let e=!1;const t=[];let i=0,n=0,o=Number.MAX_VALUE,r=-1;const s=this._foldingModel.regions;for(;i<s.length;i++){if(!s.isCollapsed(i))continue;const a=s.getStartLineNumber(i)+1,l=s.getEndLineNumber(i);o<=a&&l<=r||(!e&&n<this._hiddenRanges.length&&this._hiddenRanges[n].startLineNumber===a&&this._hiddenRanges[n].endLineNumber===l?(t.push(this._hiddenRanges[n]),n++):(e=!0,t.push(new S.Q(a,1,l,1))),o=a,r=l)}(this._hasLineChanges||e||n<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyHiddenRanges(e){this._hiddenRanges=e,this._hasLineChanges=!1,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return null!==I(this._hiddenRanges,e)}adjustSelections(e){let t=!1;const i=this._foldingModel.textModel;let n=null;const o=e=>(n&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,n)||(n=I(this._hiddenRanges,e)),n?n.startLineNumber-1:null);for(let r=0,s=e.length;r<s;r++){let n=e[r];const s=o(n.startLineNumber);s&&(n=n.setStartPosition(s,i.getLineMaxColumn(s)),t=!0);const a=o(n.endLineNumber);a&&(n=n.setEndPosition(a,i.getLineMaxColumn(a)),t=!0),e[r]=n}return t}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function I(e,t){const i=(0,L.aB)(e,(e=>t<e.startLineNumber))-1;return i>=0&&e[i].endLineNumber>=t?e[i]:null}var N=i(42948);class P{constructor(e,t,i){this.editorModel=e,this.languageConfigurationService=t,this.maxFoldingRegions=i,this.id="indent"}dispose(){}compute(e,t){const i=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,n=i&&!!i.offSide,o=i&&i.markers;return Promise.resolve(function(e,t,i,n,o){const r=e.getOptions().tabSize,s=new E(n=null!==n&&void 0!==n?n:5e3,o);let a;i&&(a=new RegExp(`(${i.start.source})|(?:${i.end.source})`));const l=[],d=e.getLineCount()+1;l.push({indent:-1,endAbove:d,line:d});for(let c=e.getLineCount();c>0;c--){const i=e.getLineContent(c),n=(0,N.G)(i,r);let o,d=l[l.length-1];if(-1!==n){if(a&&(o=i.match(a))){if(!o[1]){l.push({indent:-2,endAbove:c,line:c});continue}{let e=l.length-1;for(;e>0&&-2!==l[e].indent;)e--;if(e>0){l.length=e+1,d=l[e],s.insertFirst(c,d.line,n),d.line=c,d.indent=n,d.endAbove=c;continue}}}if(d.indent>n){do{l.pop(),d=l[l.length-1]}while(d.indent>n);const e=d.endAbove-1;e-c>=1&&s.insertFirst(c,e,n)}d.indent===n?d.endAbove=c:l.push({indent:n,endAbove:c,line:c})}else t&&(d.endAbove=c)}return s.toIndentRanges(e)}(this.editorModel,n,o,this.maxFoldingRegions,t))}}class E{constructor(e,t){this._notifyTooManyRegions=t,this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){if(e>f||t>f)return;const n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}toIndentRanges(e){var t;if(this._length<=this._foldingRangesLimit){const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=this._length-1,n=0;i>=0;i--,n++)e[n]=this._startIndexes[i],t[n]=this._endIndexes[i];return new _(e,t)}{null===(t=this._notifyTooManyRegions)||void 0===t||t.call(this,this._foldingRangesLimit);let i=0,n=this._indentOccurrences.length;for(let e=0;e<this._indentOccurrences.length;e++){const t=this._indentOccurrences[e];if(t){if(t+i>this._foldingRangesLimit){n=e;break}i+=t}}const o=e.getOptions().tabSize,r=new Uint32Array(this._foldingRangesLimit),s=new Uint32Array(this._foldingRangesLimit);for(let t=this._length-1,a=0;t>=0;t--){const l=this._startIndexes[t],d=e.getLineContent(l),c=(0,N.G)(d,o);(c<n||c===n&&i++<this._foldingRangesLimit)&&(r[a]=l,s[a]=this._endIndexes[t],a++)}return new _(r,s)}}}var F=i(38016),A=i(40350),O=i(93467),T=i(86471),U=i(82747),W=i(28715),B=i(59793);const H=(0,B.pU)("folding-expanded",U.W6.chevronDown,(0,F.kg)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),j=(0,B.pU)("folding-collapsed",U.W6.chevronRight,(0,F.kg)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),G=(0,B.pU)("folding-manual",U.W6.ellipsis,(0,F.kg)("foldingManualIcon","Icon for manually collapsed ranges in the editor glyph margin."));class K{constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,i){return t||"never"===this.showFoldingControls||i&&!e?K.HIDDEN_RANGE_DECORATION:e?i?this.showFoldingHighlights?K.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:K.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?K.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:K.COLLAPSED_VISUAL_DECORATION:"mouseover"===this.showFoldingControls?K.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:K.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}}K.COLLAPSED_VISUAL_DECORATION=W.kI.register({description:"folding-collapsed-visual-decoration",stickiness:1,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:T.L0.asClassName(j)}),K.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=W.kI.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,firstLineDecorationClassName:T.L0.asClassName(j)}),K.MANUALLY_COLLAPSED_VISUAL_DECORATION=W.kI.register({description:"folding-manually-collapsed-visual-decoration",stickiness:1,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:T.L0.asClassName(G)}),K.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=W.kI.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,firstLineDecorationClassName:T.L0.asClassName(G)}),K.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=W.kI.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:T.L0.asClassName(H)}),K.EXPANDED_VISUAL_DECORATION=W.kI.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+T.L0.asClassName(H)}),K.HIDDEN_RANGE_DECORATION=W.kI.register({description:"folding-hidden-range-decoration",stickiness:1});const V={};class ${constructor(e,t,i,n){this.editorModel=e,this.providers=t,this.limit=n,this.id="syntax";for(const o of t)"function"===typeof o.onDidChange&&(this.disposables||(this.disposables=new s.Cm),this.disposables.add(o.onDidChange(i)))}compute(e,t){return function(e,t,i){let n=null;const r=e.map(((e,r)=>Promise.resolve(e.provideFoldingRanges(t,V,i)).then((e=>{if(!i.isCancellationRequested&&Array.isArray(e)){Array.isArray(n)||(n=[]);const i=t.getLineCount();for(const t of e)t.start>0&&t.end>t.start&&t.end<=i&&n.push({start:t.start,end:t.end,rank:r,kind:t.kind})}}),o.M_)));return Promise.all(r).then((e=>n))}(this.providers,this.editorModel,e).then((e=>{if(e){const i=function(e,t,i){const n=e.sort(((e,t)=>{let i=e.start-t.start;return 0===i&&(i=e.rank-t.rank),i})),o=new z(t,i);let r;const s=[];for(const a of n)if(r){if(a.start>r.start)if(a.end<=r.end)s.push(r),r=a,o.add(a.start,a.end,a.kind&&a.kind.value,s.length);else{if(a.start>r.end){do{r=s.pop()}while(r&&a.start>r.end);r&&s.push(r),r=a}o.add(a.start,a.end,a.kind&&a.kind.value,s.length)}}else r=a,o.add(a.start,a.end,a.kind&&a.kind.value,s.length);return o.toIndentRanges()}(e,this.limit,t);return i}return null}))}dispose(){var e;null===(e=this.disposables)||void 0===e||e.dispose()}}class z{constructor(e,t){this._notifyTooManyRegions=t,this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,i,n){if(e>f||t>f)return;const o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=n,this._types[o]=i,this._length++,n<30&&(this._nestingLevelCounts[n]=(this._nestingLevelCounts[n]||0)+1)}toIndentRanges(){var e;if(this._length<=this._foldingRangesLimit){const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=0;i<this._length;i++)e[i]=this._startIndexes[i],t[i]=this._endIndexes[i];return new _(e,t,this._types)}{null===(e=this._notifyTooManyRegions)||void 0===e||e.call(this,this._foldingRangesLimit);let t=0,i=this._nestingLevelCounts.length;for(let e=0;e<this._nestingLevelCounts.length;e++){const n=this._nestingLevelCounts[e];if(n){if(n+t>this._foldingRangesLimit){i=e;break}t+=n}}const n=new Uint32Array(this._foldingRangesLimit),o=new Uint32Array(this._foldingRangesLimit),r=[];for(let e=0,s=0;e<this._length;e++){const a=this._nestingLevels[e];(a<i||a===i&&t++<this._foldingRangesLimit)&&(n[s]=this._startIndexes[e],o[s]=this._endIndexes[e],r[s]=this._types[e],s++)}return new _(n,o,r)}}}var Q=i(11734),X=i(23876),q=i(14399),Z=i(43792),Y=i(68975),J=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},ee=function(e,t){return function(i,n){t(i,n,e)}};const te=new A.N1("foldingEnabled",!1);let ie=class e extends s.jG{constructor(e,t,i,n,o,r){super(),this.contextKeyService=t,this.languageConfigurationService=i,this.languageFeaturesService=r,this._tooManyRegionsNotified=!1,this.localToDispose=this._register(new s.Cm),this.editor=e;const a=this.editor.getOptions();this._isEnabled=a.get(38),this._useFoldingProviders="indentation"!==a.get(39),this._unfoldOnClickAfterEndOfLine=a.get(43),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=a.get(41),this._maxFoldingRegions=a.get(42),this.updateDebounceInfo=o.for(r.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new K(e),this.foldingDecorationProvider.showFoldingControls=a.get(100),this.foldingDecorationProvider.showFoldingHighlights=a.get(40),this.foldingEnabled=te.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._notifyTooManyRegions=e=>{this._tooManyRegionsNotified||(n.notify({severity:X.A.Warning,sticky:!0,message:F.kg("maximum fold ranges","The number of foldable regions is limited to a maximum of {0}. Increase configuration option ['Folding Maximum Regions'](command:workbench.action.openSettings?[\"editor.foldingMaximumRegions\"]) to enable more.",e)}),this._tooManyRegionsNotified=!0)},this._register(this.editor.onDidChangeModel((()=>this.onModelChanged()))),this._register(this.editor.onDidChangeConfiguration((e=>{if(e.hasChanged(38)&&(this._isEnabled=this.editor.getOptions().get(38),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),e.hasChanged(42)&&(this._maxFoldingRegions=this.editor.getOptions().get(42),this._tooManyRegionsNotified=!1,this.onModelChanged()),e.hasChanged(100)||e.hasChanged(40)){const e=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=e.get(100),this.foldingDecorationProvider.showFoldingHighlights=e.get(40),this.triggerFoldingModelChanged()}e.hasChanged(39)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(39),this.onFoldingStrategyChanged()),e.hasChanged(43)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(43)),e.hasChanged(41)&&(this._foldingImportsByDefault=this.editor.getOptions().get(41))}))),this.onModelChanged()}static get(t){return t.getContribution(e.ID)}saveViewState(){const e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){const t=this.foldingModel.getMemento(),i=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:i,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){const t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&e.lineCount===t.getLineCount()&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new k(e,this.foldingDecorationProvider,this.triggerFoldingModelChanged.bind(this)),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new x(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((e=>this.onHiddenRangesChanges(e)))),this.updateScheduler=new n.ve(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new n.uC((()=>this.revealCursor()),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration((()=>this.onFoldingStrategyChanged()))),this.localToDispose.add(this.editor.onDidChangeModelContent((e=>this.onDidChangeModelContent(e)))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((()=>this.onCursorPositionChanged()))),this.localToDispose.add(this.editor.onMouseDown((e=>this.onEditorMouseDown(e)))),this.localToDispose.add(this.editor.onMouseUp((e=>this.onEditorMouseUp(e)))),this.localToDispose.add({dispose:()=>{this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.updateScheduler&&this.updateScheduler.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new P(e,this.languageConfigurationService,this._maxFoldingRegions),this._useFoldingProviders&&this.foldingModel){const t=this.languageFeaturesService.foldingRangeProvider.ordered(this.foldingModel.textModel);t.length>0&&(this.rangeProvider=new $(e,t,(()=>this.triggerFoldingModelChanged()),this._maxFoldingRegions))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){var t;null===(t=this.hiddenRangeModel)||void 0===t||t.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((()=>{const e=this.foldingModel;if(!e)return null;const t=new Z.W(!0),i=this.getRangeProvider(e.textModel),o=this.foldingRegionPromise=(0,n.SS)((e=>i.compute(e,this._notifyTooManyRegions)));return o.then((i=>{if(i&&o===this.foldingRegionPromise){let n;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const e=i.setCollapsedAllOfType(g.lO.Imports.value,!0);e&&(n=d.D.capture(this.editor),this._currentModelHasFoldedImports=e)}const o=this.editor.getSelections(),r=o?o.map((e=>e.startLineNumber)):[];e.update(i,r),null===n||void 0===n||n.restore(this.editor);const s=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=s)}return e}))})).then(void 0,(e=>((0,o.dz)(e),null))))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){const e=this.editor.getSelections();e&&this.hiddenRangeModel.adjustSelections(e)&&this.editor.setSelections(e)}this.editor.setHiddenAreas(e)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const e=this.getFoldingModel();e&&e.then((e=>{if(e){const t=this.editor.getSelections();if(t&&t.length>0){const i=[];for(const n of t){const t=n.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&i.push(...e.getAllRegionsAtLine(t,(e=>e.isCollapsed&&t>e.startLineNumber)))}i.length&&(e.toggleCollapseState(i),this.reveal(t[0].getPosition()))}}})).then(void 0,o.dz)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range)return;if(!e.event.leftButton&&!e.event.middleButton)return;const t=e.target.range;let i=!1;switch(e.target.type){case 4:{const t=e.target.detail,n=e.target.element.offsetLeft;if(t.offsetX-n<5)return;i=!0;break}case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()){if(!e.target.detail.isAfterLines)break}return;case 6:if(this.hiddenRangeModel.hasRanges()){const e=this.editor.getModel();if(e&&t.startColumn===e.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:i}}onEditorMouseUp(e){const t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;const i=this.mouseDownInfo.lineNumber,n=this.mouseDownInfo.iconClicked,o=e.target.range;if(!o||o.startLineNumber!==i)return;if(n){if(4!==e.target.type)return}else{const e=this.editor.getModel();if(!e||o.startColumn!==e.getLineMaxColumn(i))return}const r=t.getRegionAtLine(i);if(r&&r.startLineNumber===i){const o=r.isCollapsed;if(n||o){let n=[];if(e.event.altKey){const e=e=>!e.containedBy(r)&&!r.containedBy(e),i=t.getRegionsInside(null,e);for(const t of i)t.isCollapsed&&n.push(t);0===n.length&&(n=i)}else{const i=e.event.middleButton||e.event.shiftKey;if(i)for(const e of t.getRegionsInside(r))e.isCollapsed===o&&n.push(e);!o&&i&&0!==n.length||n.push(r)}t.toggleCollapseState(n),this.reveal({lineNumber:i,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};ie.ID="editor.contrib.folding",ie=J([ee(1,A.fN),ee(2,u.JZ),ee(3,Q.Ot),ee(4,q.U),ee(5,Y.u)],ie);class ne extends c.ks{runEditorCommand(e,t,i){const n=e.get(u.JZ),o=ie.get(t);if(!o)return;const r=o.getFoldingModel();return r?(this.reportTelemetry(e,t),r.then((e=>{if(e){this.invoke(o,e,t,i,n);const r=t.getSelection();r&&o.reveal(r.getStartPosition())}}))):void 0}getSelectedLines(e){const t=e.getSelections();return t?t.map((e=>e.startLineNumber)):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map((e=>e+1)):this.getSelectedLines(t)}run(e,t){}}function oe(e){if(!l.b0(e)){if(!l.Gv(e))return!1;const t=e;if(!l.b0(t.levels)&&!l.Et(t.levels))return!1;if(!l.b0(t.direction)&&!l.Kg(t.direction))return!1;if(!l.b0(t.selectionLines)&&(!l.cy(t.selectionLines)||!t.selectionLines.every(l.Et)))return!1}return!0}class re extends ne{getFoldingLevel(){return parseInt(this.id.substr(re.ID_PREFIX.length))}invoke(e,t,i){!function(e,t,i,n){const o=e.getRegionsInside(null,((e,o)=>o===t&&e.isCollapsed!==i&&!n.some((t=>e.containsLine(t)))));e.toggleCollapseState(o)}(t,this.getFoldingLevel(),!0,this.getSelectedLines(i))}}re.ID_PREFIX="editor.foldLevel",re.ID=e=>re.ID_PREFIX+e;(0,c.HW)(ie.ID,ie),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.unfold",label:F.kg("unfoldAction.label","Unfold"),alias:"Unfold",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,primary:3161,mac:{primary:2649},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:oe,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const o=n&&n.levels||1,r=this.getLineNumbers(n,i);n&&"up"===n.direction?C(t,!1,o,r):y(t,!1,o,r)}}),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.unfoldRecursively",label:F.kg("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,primary:(0,r.m5)(2089,2137),weight:100}})}invoke(e,t,i,n){y(t,!1,Number.MAX_VALUE,this.getSelectedLines(i))}}),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.fold",label:F.kg("foldAction.label","Fold"),alias:"Fold",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,primary:3159,mac:{primary:2647},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:oe,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const o=this.getLineNumbers(n,i),r=n&&n.levels,s=n&&n.direction;"number"!==typeof r&&"string"!==typeof s?function(e,t,i){const n=[];for(const o of i){const i=e.getAllRegionsAtLine(o,(e=>e.isCollapsed!==t));i.length>0&&n.push(i[0])}e.toggleCollapseState(n)}(t,!0,o):"up"===s?C(t,!0,r||1,o):y(t,!0,r||1,o)}}),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.foldRecursively",label:F.kg("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,primary:(0,r.m5)(2089,2135),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);y(t,!0,Number.MAX_VALUE,n)}}),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.foldAll",label:F.kg("foldAllAction.label","Fold All"),alias:"Fold All",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,primary:(0,r.m5)(2089,2069),weight:100}})}invoke(e,t,i){y(t,!0)}}),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.unfoldAll",label:F.kg("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,primary:(0,r.m5)(2089,2088),weight:100}})}invoke(e,t,i){y(t,!1)}}),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.foldAllBlockComments",label:F.kg("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,primary:(0,r.m5)(2089,2133),weight:100}})}invoke(e,t,i,n,o){if(t.regions.hasTypes())R(t,g.lO.Comment.value,!0);else{const e=i.getModel();if(!e)return;const n=o.getLanguageConfiguration(e.getLanguageId()).comments;if(n&&n.blockCommentStartToken){M(t,new RegExp("^\\s*"+(0,a.bm)(n.blockCommentStartToken)),!0)}}}}),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.foldAllMarkerRegions",label:F.kg("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,primary:(0,r.m5)(2089,2077),weight:100}})}invoke(e,t,i,n,o){if(t.regions.hasTypes())R(t,g.lO.Region.value,!0);else{const e=i.getModel();if(!e)return;const n=o.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(n&&n.markers&&n.markers.start){M(t,new RegExp(n.markers.start),!0)}}}}),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:F.kg("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,primary:(0,r.m5)(2089,2078),weight:100}})}invoke(e,t,i,n,o){if(t.regions.hasTypes())R(t,g.lO.Region.value,!1);else{const e=i.getModel();if(!e)return;const n=o.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(n&&n.markers&&n.markers.start){M(t,new RegExp(n.markers.start),!1)}}}}),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.foldAllExcept",label:F.kg("foldAllExcept.label","Fold All Regions Except Selected"),alias:"Fold All Regions Except Selected",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,primary:(0,r.m5)(2089,2131),weight:100}})}invoke(e,t,i){w(t,!0,this.getSelectedLines(i))}}),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.unfoldAllExcept",label:F.kg("unfoldAllExcept.label","Unfold All Regions Except Selected"),alias:"Unfold All Regions Except Selected",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,primary:(0,r.m5)(2089,2129),weight:100}})}invoke(e,t,i){w(t,!1,this.getSelectedLines(i))}}),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.toggleFold",label:F.kg("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,primary:(0,r.m5)(2089,2090),weight:100}})}invoke(e,t,i){!function(e,t,i){const n=[];for(const o of i){const i=e.getRegionAtLine(o);if(i){const o=!i.isCollapsed;if(n.push(i),t>1){const r=e.getRegionsInside(i,((e,i)=>e.isCollapsed!==o&&i<t));n.push(...r)}}}e.toggleCollapseState(n)}(t,1,this.getSelectedLines(i))}}),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.gotoParentFold",label:F.kg("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=function(e,t){let i=null;const n=t.getRegionAtLine(e);if(null!==n&&(i=n.startLineNumber,e===i)){const e=n.parentIndex;i=-1!==e?t.regions.getStartLineNumber(e):null}return i}(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.gotoPreviousFold",label:F.kg("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=function(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){if(e!==i.startLineNumber)return i.startLineNumber;{const e=i.parentIndex;let n=0;for(-1!==e&&(n=t.regions.getStartLineNumber(i.parentIndex));null!==i;){if(!(i.regionIndex>0))return null;if(i=t.regions.toRegion(i.regionIndex-1),i.startLineNumber<=n)return null;if(i.parentIndex===e)return i.startLineNumber}}}else if(t.regions.length>0)for(i=t.regions.toRegion(t.regions.length-1);null!==i;){if(i.startLineNumber<e)return i.startLineNumber;i=i.regionIndex>0?t.regions.toRegion(i.regionIndex-1):null}return null}(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.gotoNextFold",label:F.kg("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=function(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){const e=i.parentIndex;let n=0;if(-1!==e)n=t.regions.getEndLineNumber(i.parentIndex);else{if(0===t.regions.length)return null;n=t.regions.getEndLineNumber(t.regions.length-1)}for(;null!==i;){if(!(i.regionIndex<t.regions.length))return null;if(i=t.regions.toRegion(i.regionIndex+1),i.startLineNumber>=n)return null;if(i.parentIndex===e)return i.startLineNumber}}else if(t.regions.length>0)for(i=t.regions.toRegion(0);null!==i;){if(i.startLineNumber>e)return i.startLineNumber;i=i.regionIndex<t.regions.length?t.regions.toRegion(i.regionIndex+1):null}return null}(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,c.Fl)(class extends ne{constructor(){super({id:"editor.foldSelected",label:F.kg("foldSelectedAction.label","Fold Selected Lines"),alias:"Fold Selected Lines",precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,primary:(0,r.m5)(2089,2132),weight:100}})}invoke(e,t,i){var n;const o=[],r=i.getSelections();if(r){for(const e of r){let t=e.endLineNumber;1===e.endColumn&&--t,t>e.startLineNumber&&(o.push({startLineNumber:e.startLineNumber,endLineNumber:t,type:void 0,isCollapsed:!0,isManualSelection:!0}),i.setSelection({startLineNumber:e.startLineNumber,startColumn:1,endLineNumber:e.startLineNumber,endColumn:1}))}if(o.length>0){o.sort(((e,t)=>e.startLineNumber-t.startLineNumber));const e=_.sanitizeAndMerge(t.regions,o,null===(n=i.getModel())||void 0===n?void 0:n.getLineCount());t.updatePost(_.fromFoldRanges(e))}}}});for(let le=1;le<=7;le++)(0,c.xX)(new re({id:re.ID(le),label:F.kg("foldLevelAction.label","Fold Level {0}",le),alias:`Fold Level ${le}`,precondition:te,kbOpts:{kbExpr:h.R.editorTextFocus,primary:(0,r.m5)(2089,2048|21+le),weight:100}}));const se=(0,O.x1A)("editor.foldBackground",{light:(0,O.JO0)(O.seu,.3),dark:(0,O.JO0)(O.seu,.3),hcDark:null,hcLight:null},F.kg("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0),ae=(0,O.x1A)("editorGutter.foldingControlForeground",{dark:O.t4B,light:O.t4B,hcDark:O.t4B,hcLight:O.t4B},F.kg("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));(0,T.zy)(((e,t)=>{const i=e.getColor(se);i&&t.addRule(`.monaco-editor .folded-background { background-color: ${i}; }`);const n=e.getColor(ae);n&&t.addRule(`\n\t\t.monaco-editor .cldr${T.L0.asCSSSelector(H)},\n\t\t.monaco-editor .cldr${T.L0.asCSSSelector(j)},\n\t\t.monaco-editor .cldr${T.L0.asCSSSelector(G)} {\n\t\t\tcolor: ${n} !important;\n\t\t}\n\t\t`)}))},10527:(e,t,i)=>{i.r(t);var n=i(50051),o=i(84914),r=i(38016);class s extends n.ks{constructor(){super({id:"editor.action.fontZoomIn",label:r.kg("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){o.D.setZoomLevel(o.D.getZoomLevel()+1)}}class a extends n.ks{constructor(){super({id:"editor.action.fontZoomOut",label:r.kg("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){o.D.setZoomLevel(o.D.getZoomLevel()-1)}}class l extends n.ks{constructor(){super({id:"editor.action.fontZoomReset",label:r.kg("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){o.D.setZoomLevel(0)}}(0,n.Fl)(s),(0,n.Fl)(a),(0,n.Fl)(l)},43905:(e,t,i)=>{i.d(t,{Pj:()=>S,_V:()=>P,jX:()=>D,pD:()=>R,vg:()=>I});var n=i(89527),o=i(39869),r=i(74832),s=i(24156),a=i(7533),l=i(22814),d=i(4562),c=i(54605),h=i(85693),g=i(73397),u=i(62612),p=i(15186),f=i(21429),m=i(52693),_=i(65573),v=i(88193),b=i(38016),k=i(84562),y=i(76253),C=i(93218),w=i(68975),M=function(e,t,i,n){return new(i||(i=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function R(e){if(!(e=e.filter((e=>e.range))).length)return;let{range:t}=e[0];for(let n=1;n<e.length;n++)t=p.Q.plusRange(t,e[n].range);const{startLineNumber:i,endLineNumber:o}=t;i===o?1===e.length?(0,n.xE)(b.kg("hint11","Made 1 formatting edit on line {0}",i)):(0,n.xE)(b.kg("hintn1","Made {0} formatting edits on line {1}",e.length,i)):1===e.length?(0,n.xE)(b.kg("hint1n","Made 1 formatting edit between lines {0} and {1}",i,o)):(0,n.xE)(b.kg("hintnn","Made {0} formatting edits between lines {1} and {2}",e.length,i,o))}function L(e,t,i){const n=[],o=new Set,r=e.ordered(i);for(const a of r)n.push(a),a.extensionId&&o.add(y.H.toKey(a.extensionId));const s=t.ordered(i);for(const a of s){if(a.extensionId){if(o.has(y.H.toKey(a.extensionId)))continue;o.add(y.H.toKey(a.extensionId))}n.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits:(e,t,i)=>a.provideDocumentRangeFormattingEdits(e,e.getFullModelRange(),t,i)})}return n}class S{static setFormatterSelector(e){return{dispose:S._selectors.unshift(e)}}static select(e,t,i){return M(this,void 0,void 0,(function*(){if(0===e.length)return;const n=a.f.first(S._selectors);return n?yield n(e,t,i):void 0}))}}function D(e,t,i,n,o,r){return M(this,void 0,void 0,(function*(){const s=e.get(C._Y),{documentRangeFormattingEditProvider:a}=e.get(w.u),l=(0,g.z9)(t)?t.getModel():t,d=a.ordered(l),c=yield S.select(d,l,n);c&&(o.report(c),yield s.invokeFunction(x,c,t,i,r))}))}function x(e,t,i,n,r){return M(this,void 0,void 0,(function*(){const s=e.get(m.w);let a,l;(0,g.z9)(i)?(a=i.getModel(),l=new h.gI(i,5,void 0,r)):(a=i,l=new h.ER(i,r));const d=[];let c=0;for(const e of(0,o._j)(n).sort(p.Q.compareRangesUsingStarts))c>0&&p.Q.areIntersectingOrTouching(d[c-1],e)?d[c-1]=p.Q.fromPositions(d[c-1].getStartPosition(),e.getEndPosition()):c=d.push(e);const u=e=>M(this,void 0,void 0,(function*(){return(yield t.provideDocumentRangeFormattingEdits(a,e,a.getFormattingOptions(),l.token))||[]})),_=(e,t)=>{if(!e.length||!t.length)return!1;const i=e.reduce(((e,t)=>p.Q.plusRange(e,t.range)),e[0].range);if(!t.some((e=>p.Q.intersectRanges(i,e.range))))return!1;for(const n of e)for(const e of t)if(p.Q.intersectRanges(n.range,e.range))return!0;return!1},b=[],k=[];try{for(const e of d){if(l.token.isCancellationRequested)return!0;k.push(yield u(e))}for(let e=0;e<d.length;++e)for(let t=e+1;t<d.length;++t){if(l.token.isCancellationRequested)return!0;if(_(k[e],k[t])){const i=p.Q.plusRange(d[e],d[t]),n=yield u(i);d.splice(t,1),d.splice(e,1),d.push(i),k.splice(t,1),k.splice(e,1),k.push(n),e=0,t=0}}for(const e of k){if(l.token.isCancellationRequested)return!0;const t=yield s.computeMoreMinimalEdits(a.uri,e);t&&b.push(...t)}}finally{l.dispose()}if(0===b.length)return!1;if((0,g.z9)(i))v.c.execute(i,b,!0),R(b),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=b,t=new f.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);a.pushEditOperations([t],b.map((e=>({text:e.text,range:p.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(p.Q.areIntersectingOrTouching(i,t))return[new f.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return!0}))}function I(e,t,i,n,o){return M(this,void 0,void 0,(function*(){const r=e.get(C._Y),s=e.get(w.u),a=(0,g.z9)(t)?t.getModel():t,l=L(s.documentFormattingEditProvider,s.documentRangeFormattingEditProvider,a),d=yield S.select(l,a,i);d&&(n.report(d),yield r.invokeFunction(N,d,t,i,o))}))}function N(e,t,i,n,o){return M(this,void 0,void 0,(function*(){const r=e.get(m.w);let s,a,l;(0,g.z9)(i)?(s=i.getModel(),a=new h.gI(i,5,void 0,o)):(s=i,a=new h.ER(i,o));try{const e=yield t.provideDocumentFormattingEdits(s,s.getFormattingOptions(),a.token);if(l=yield r.computeMoreMinimalEdits(s.uri,e),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!l||0===l.length)return!1;if((0,g.z9)(i))v.c.execute(i,l,2!==n),2!==n&&(R(l),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1));else{const[{range:e}]=l,t=new f.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);s.pushEditOperations([t],l.map((e=>({text:e.text,range:p.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(p.Q.areIntersectingOrTouching(i,t))return[new f.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return!0}))}function P(e,t,i,n,o,r,a){const l=t.onTypeFormattingEditProvider.ordered(i);return 0===l.length||l[0].autoFormatTriggerCharacters.indexOf(o)<0?Promise.resolve(void 0):Promise.resolve(l[0].provideOnTypeFormattingEdits(i,n,o,r,a)).catch(s.M_).then((t=>e.computeMoreMinimalEdits(i.uri,t)))}S._selectors=new l.w,k.wb.registerCommand("_executeFormatRangeProvider",(function(e,...t){return M(this,void 0,void 0,(function*(){const[i,n,a]=t;(0,d.j)(c.r.isUri(i)),(0,d.j)(p.Q.isIRange(n));const l=e.get(_.b),h=e.get(m.w),g=e.get(w.u),u=yield l.createModelReference(i);try{return function(e,t,i,n,r,a){return M(this,void 0,void 0,(function*(){const l=t.documentRangeFormattingEditProvider.ordered(i);for(const t of l){const l=yield Promise.resolve(t.provideDocumentRangeFormattingEdits(i,n,r,a)).catch(s.M_);if((0,o.EI)(l))return yield e.computeMoreMinimalEdits(i.uri,l)}}))}(h,g,u.object.textEditorModel,p.Q.lift(n),a,r.X.None)}finally{u.dispose()}}))})),k.wb.registerCommand("_executeFormatDocumentProvider",(function(e,...t){return M(this,void 0,void 0,(function*(){const[i,n]=t;(0,d.j)(c.r.isUri(i));const a=e.get(_.b),l=e.get(m.w),h=e.get(w.u),g=yield a.createModelReference(i);try{return function(e,t,i,n,r){return M(this,void 0,void 0,(function*(){const a=L(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i);for(const t of a){const a=yield Promise.resolve(t.provideDocumentFormattingEdits(i,n,r)).catch(s.M_);if((0,o.EI)(a))return yield e.computeMoreMinimalEdits(i.uri,a)}}))}(l,h,g.object.textEditorModel,n,r.X.None)}finally{g.dispose()}}))})),k.wb.registerCommand("_executeFormatOnTypeProvider",(function(e,...t){return M(this,void 0,void 0,(function*(){const[i,n,o,s]=t;(0,d.j)(c.r.isUri(i)),(0,d.j)(u.y.isIPosition(n)),(0,d.j)("string"===typeof o);const a=e.get(_.b),l=e.get(m.w),h=e.get(w.u),g=yield a.createModelReference(i);try{return P(l,h,g.object.textEditorModel,u.y.lift(n),o,s,r.X.None)}finally{g.dispose()}}))}))},45262:(e,t,i)=>{i.r(t);var n=i(39869),o=i(74832),r=i(24156),s=i(44948),a=i(26819),l=i(50051),d=i(10664),c=i(2945),h=i(15186),g=i(29671),u=i(52693),p=i(68975),f=i(43905),m=i(88193),_=i(38016),v=i(84562),b=i(40350),k=i(93218),y=i(84134),C=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},w=function(e,t){return function(i,n){t(i,n,e)}},M=function(e,t,i,n){return new(i||(i=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};let R=class{constructor(e,t,i){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._disposables=new a.Cm,this._sessionDisposables=new a.Cm,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._update()})))}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(50))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;const i=new c.y;for(const n of t.autoFormatTriggerCharacters)i.add(n.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType((e=>{const t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))})))}_trigger(e){if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const t=this._editor.getModel(),i=this._editor.getPosition(),r=new o.Q,s=this._editor.onDidChangeModelContent((e=>{if(e.isFlush)return r.cancel(),void s.dispose();for(let t=0,n=e.changes.length;t<n;t++){if(e.changes[t].range.endLineNumber<=i.lineNumber)return r.cancel(),void s.dispose()}}));(0,f._V)(this._workerService,this._languageFeaturesService,t,i,e,t.getFormattingOptions(),r.token).then((e=>{r.token.isCancellationRequested||(0,n.EI)(e)&&(m.c.execute(this._editor,e,!0),(0,f.pD)(e))})).finally((()=>{s.dispose()}))}};R.ID="editor.contrib.autoFormat",R=C([w(1,p.u),w(2,u.w)],R);let L=class{constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new a.Cm,this._callOnModel=new a.Cm,this._callOnDispose.add(e.onDidChangeConfiguration((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModel((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModelLanguage((()=>this._update()))),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(49)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((({range:e})=>this._trigger(e))))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(f.jX,this.editor,e,2,y.ke.None,o.X.None).catch(r.dz))}};L.ID="editor.contrib.formatOnPaste",L=C([w(1,p.u),w(2,k._Y)],L);class S extends l.ks{constructor(){super({id:"editor.action.formatDocument",label:_.kg("formatDocument.label","Format Document"),alias:"Format Document",precondition:b.M$.and(g.R.notInCompositeEditor,g.R.writable,g.R.hasDocumentFormattingProvider),kbOpts:{kbExpr:g.R.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}run(e,t){return M(this,void 0,void 0,(function*(){if(t.hasModel()){const i=e.get(k._Y),n=e.get(y.N8);yield n.showWhile(i.invokeFunction(f.vg,t,1,y.ke.None,o.X.None),250)}}))}}class D extends l.ks{constructor(){super({id:"editor.action.formatSelection",label:_.kg("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:b.M$.and(g.R.writable,g.R.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:g.R.editorTextFocus,primary:(0,s.m5)(2089,2084),weight:100},contextMenuOpts:{when:g.R.hasNonEmptySelection,group:"1_modification",order:1.31}})}run(e,t){return M(this,void 0,void 0,(function*(){if(!t.hasModel())return;const i=e.get(k._Y),n=t.getModel(),r=t.getSelections().map((e=>e.isEmpty()?new h.Q(e.startLineNumber,1,e.startLineNumber,n.getLineMaxColumn(e.startLineNumber)):e)),s=e.get(y.N8);yield s.showWhile(i.invokeFunction(f.jX,t,r,1,y.ke.None,o.X.None),250)}))}}(0,l.HW)(R.ID,R),(0,l.HW)(L.ID,L),(0,l.Fl)(S),(0,l.Fl)(D),v.wb.registerCommand("editor.action.format",(e=>M(void 0,void 0,void 0,(function*(){const t=e.get(d.T).getFocusedCodeEditor();if(!t||!t.hasModel())return;const i=e.get(v.wT);t.getSelection().isEmpty()?yield i.executeCommand("editor.action.formatDocument"):yield i.executeCommand("editor.action.formatSelection")}))))},88193:(e,t,i)=>{i.d(t,{c:()=>r});var n=i(48282),o=i(15186);class r{static _handleEolEdits(e,t){let i;const n=[];for(const o of t)"number"===typeof o.eol&&(i=o.eol),o.range&&"string"===typeof o.text&&n.push(o);return"number"===typeof i&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const s=r._handleEolEdits(e,t);1===s.length&&r._isFullModelReplaceEdit(e,s[0])?e.executeEdits("formatEditsCommand",s.map((e=>n.k.replace(o.Q.lift(e.range),e.text)))):e.executeEdits("formatEditsCommand",s.map((e=>n.k.replaceMove(o.Q.lift(e.range),e.text)))),i&&e.pushUndoStop()}}},3903:(e,t,i)=>{i.r(t),i.d(t,{MarkerController:()=>ne,NextMarkerAction:()=>re});var n=i(82747),o=i(26819),r=i(50051),s=i(10664),a=i(62612),l=i(15186),d=i(29671),c=i(39869),h=i(74663),g=i(22814),u=i(53817),p=i(54605),f=i(44785),m=i(93218),_=i(1882),v=i(7548),b=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},k=function(e,t){return function(i,n){t(i,n,e)}};class y{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let C=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._dispoables=new o.Cm,this._markers=[],this._nextIdx=-1,p.r.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),r=(e,t)=>{let i=(0,u.UD)(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===n?l.Q.compareRangesUsingStarts(e,t)||_.cj.compare(e.severity,t.severity):_.cj.compare(e.severity,t.severity)||l.Q.compareRangesUsingStarts(e,t)),i},s=()=>{this._markers=this._markerService.read({resource:p.r.isUri(e)?e:void 0,severities:_.cj.Error|_.cj.Warning|_.cj.Info}),"function"===typeof e&&(this._markers=this._markers.filter((e=>this._resourceFilter(e.resource)))),this._markers.sort(r)};s(),this._dispoables.add(t.onMarkerChanged((e=>{this._resourceFilter&&!e.some((e=>this._resourceFilter(e)))||(s(),this._nextIdx=-1,this._onDidChange.fire())})))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new y(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,o=this._markers.findIndex((t=>t.resource.toString()===e.uri.toString()));o<0&&(o=(0,c.El)(this._markers,{resource:e.uri},((e,t)=>(0,u.UD)(e.resource.toString(),t.resource.toString()))),o<0&&(o=~o));for(let r=o;r<this._markers.length;r++){let i=l.Q.lift(this._markers[r]);if(i.isEmpty()){const t=e.getWordAtPosition(i.getStartPosition());t&&(i=new l.Q(i.startLineNumber,t.startColumn,i.startLineNumber,t.endColumn))}if(t&&(i.containsPosition(t)||t.isBeforeOrEqual(i.getStartPosition()))){this._nextIdx=r,n=!0;break}if(this._markers[r].resource.toString()!==e.uri.toString())break}n||(this._nextIdx=i?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,i){if(0===this._markers.length)return!1;const n=this._nextIdx;return-1===this._nextIdx?this._initIdx(t,i,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:e||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),n!==this._nextIdx}find(e,t){let i=this._markers.findIndex((t=>t.resource.toString()===e.toString()));if(!(i<0))for(;i<this._markers.length;i++)if(l.Q.containsPosition(this._markers[i],t))return new y(this._markers[i],i+1,this._markers.length)}};C=b([k(1,_.DR),k(2,v.pG)],C);const w=(0,m.u1)("IMarkerNavigationService");let M=class{constructor(e,t){this._markerService=e,this._configService=t,this._provider=new g.w}getMarkerList(e){for(const t of this._provider){const i=t.getMarkerList(e);if(i)return i}return new C(e,this._markerService,this._configService)}};M=b([k(0,_.DR),k(1,v.pG)],M),(0,f.v)(w,M,!0);var R=i(38016),L=i(21850),S=i(40350),D=i(59793),x=i(38278),I=i(12947),N=i(60196),P=i(9934),E=i(11293),F=i(48696),A=i(73624),O=i(1754),T=i(2886),U=i(93467),W=i(86471),B=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},H=function(e,t){return function(i,n){t(i,n,e)}};class j{constructor(e,t,i,n,r){this._openerService=n,this._labelService=r,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new o.Cm,this._editor=t;const s=document.createElement("div");s.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),s.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),s.appendChild(this._relatedBlock),this._disposables.add(x.b2(this._relatedBlock,"click",(e=>{e.preventDefault();const t=this._relatedDiagnostics.get(e.target);t&&i(t)}))),this._scrollable=new I.Se(s,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((e=>{s.style.left=`-${e.scrollLeft}px`,s.style.top=`-${e.scrollTop}px`}))),this._disposables.add(this._scrollable)}dispose(){(0,o.AS)(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:o}=e;let r=((null===t||void 0===t?void 0:t.length)||0)+2;o&&(r+="string"===typeof o?o.length:o.value.length);const s=(0,u.uz)(i);this._lines=s.length,this._longestLineLength=0;for(const c of s)this._longestLineLength=Math.max(c.length+r,this._longestLineLength);x.w_(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let a=this._messageBlock;for(const c of s)a=document.createElement("div"),a.innerText=c,""===c&&(a.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(a);if(t||o){const e=document.createElement("span");if(e.classList.add("details"),a.appendChild(e),t){const i=document.createElement("span");i.innerText=t,i.classList.add("source"),e.appendChild(i)}if(o)if("string"===typeof o){const t=document.createElement("span");t.innerText=`(${o})`,t.classList.add("code"),e.appendChild(t)}else{this._codeLink=x.$("a.code-link"),this._codeLink.setAttribute("href",`${o.target.toString()}`),this._codeLink.onclick=e=>{this._openerService.open(o.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()};x.BC(this._codeLink,x.$("span")).innerText=o.value,e.appendChild(this._codeLink)}}if(x.w_(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,c.EI)(n)){const e=this._relatedBlock.appendChild(document.createElement("div"));e.style.paddingTop=`${Math.floor(.66*this._editor.getOption(60))}px`,this._lines+=1;for(const t of n){const i=document.createElement("div"),n=document.createElement("a");n.classList.add("filename"),n.innerText=`${this._labelService.getUriBasenameLabel(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,n.title=this._labelService.getUriLabel(t.resource),this._relatedDiagnostics.set(n,t);const o=document.createElement("span");o.innerText=t.message,i.appendChild(n),i.appendChild(o),this._lines+=1,e.appendChild(i)}}const l=this._editor.getOption(45),d=Math.ceil(l.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=l.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case _.cj.Error:t=R.kg("Error","Error");break;case _.cj.Warning:t=R.kg("Warning","Warning");break;case _.cj.Info:t=R.kg("Info","Info");break;case _.cj.Hint:t=R.kg("Hint","Hint")}let i=R.kg("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();if(n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1){i=`${n.getLineContent(e.startLineNumber)}, ${i}`}return i}}let G=class e extends E.j6{constructor(e,t,i,n,r,s,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},r),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=s,this._labelService=a,this._callOnDispose=new o.Cm,this._onDidSelectRelatedInformation=new h.vl,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=_.cj.Warning,this._backgroundColor=N.Q1.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(J);let t=z,i=Q;this._severity===_.cj.Warning?(t=X,i=q):this._severity===_.cj.Info&&(t=Z,i=Y);const n=e.getColor(t),o=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:o,primaryHeadingColor:e.getColor(E._X),secondaryHeadingColor:e.getColor(E.e3)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(t){super._fillHead(t),this._disposables.add(this._actionbarWidget.actionRunner.onBeforeRun((e=>this.editor.focus())));const i=[],n=this._menuService.createMenu(e.TitleMenu,this._contextKeyService);(0,F.Ot)(n,void 0,i),this._actionbarWidget.push(i,{label:!1,icon:!0,index:0}),n.dispose()}_fillTitleIcon(e){this._icon=x.BC(e,x.$(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new j(this._container,this.editor,(e=>this._onDidSelectRelatedInformation.fire(e)),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=l.Q.lift(e),o=this.editor.getPosition(),r=o&&n.containsPosition(o)?o:n.getStartPosition();super.show(r,this.computeRequiredHeight());const s=this.editor.getModel();if(s){const e=i>1?R.kg("problems","{0} of {1} problems",t,i):R.kg("change","{0} of {1} problem",t,i);this.setTitle((0,P.P8)(s.uri),e)}this._icon.className=`codicon ${T.z.className(_.cj.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(r,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};G.TitleMenu=new L.D8("gotoErrorTitleMenu"),G=B([H(1,W.Gy),H(2,O.Cr),H(3,L.ez),H(4,m._Y),H(5,S.fN),H(6,A.L)],G);const K=(0,U.yLr)(U.Rbi,U.AN$),V=(0,U.yLr)(U.Hng,U.Stt),$=(0,U.yLr)(U.pOz,U.IIb),z=(0,U.x1A)("editorMarkerNavigationError.background",{dark:K,light:K,hcDark:U.b1q,hcLight:U.b1q},R.kg("editorMarkerNavigationError","Editor marker navigation widget error color.")),Q=(0,U.x1A)("editorMarkerNavigationError.headerBackground",{dark:(0,U.JO0)(z,.1),light:(0,U.JO0)(z,.1),hcDark:null,hcLight:null},R.kg("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),X=(0,U.x1A)("editorMarkerNavigationWarning.background",{dark:V,light:V,hcDark:U.b1q,hcLight:U.b1q},R.kg("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),q=(0,U.x1A)("editorMarkerNavigationWarning.headerBackground",{dark:(0,U.JO0)(X,.1),light:(0,U.JO0)(X,.1),hcDark:"#0C141F",hcLight:(0,U.JO0)(X,.2)},R.kg("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),Z=(0,U.x1A)("editorMarkerNavigationInfo.background",{dark:$,light:$,hcDark:U.b1q,hcLight:U.b1q},R.kg("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Y=(0,U.x1A)("editorMarkerNavigationInfo.headerBackground",{dark:(0,U.JO0)(Z,.1),light:(0,U.JO0)(Z,.1),hcDark:null,hcLight:null},R.kg("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),J=(0,U.x1A)("editorMarkerNavigation.background",{dark:U.YtV,light:U.YtV,hcDark:U.YtV,hcLight:U.YtV},R.kg("editorMarkerNavigationBackground","Editor marker navigation widget background."));var ee=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},te=function(e,t){return function(i,n){t(i,n,e)}},ie=function(e,t,i,n){return new(i||(i=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};let ne=class e{constructor(e,t,i,n,r){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=r,this._sessionDispoables=new o.Cm,this._editor=e,this._widgetVisible=ae.bindTo(this._contextKeyService)}static get(t){return t.getContribution(e.ID)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(G,this._editor),this._widget.onDidClose((()=>this.close()),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition((e=>{var t,i,n;(null===(t=this._model)||void 0===t?void 0:t.selected)&&l.Q.containsPosition(null===(i=this._model)||void 0===i?void 0:i.selected.marker,e.position)||null===(n=this._model)||void 0===n||n.resetIndex()}))),this._sessionDispoables.add(this._model.onDidChange((()=>{if(!this._widget||!this._widget.position||!this._model)return;const e=this._model.find(this._editor.getModel().uri,this._widget.position);e?this._widget.updateMarker(e.marker):this._widget.showStale()}))),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation((e=>{this._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:l.Q.lift(e).collapseToStart()}},this._editor),this.close(!1)}))),this._sessionDispoables.add(this._editor.onDidChangeModel((()=>this._cleanUp()))),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new a.y(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(t,i){var n,o;return ie(this,void 0,void 0,(function*(){if(this._editor.hasModel()){const r=this._getOrCreateModel(i?void 0:this._editor.getModel().uri);if(r.move(t,this._editor.getModel(),this._editor.getPosition()),!r.selected)return;if(r.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const s=yield this._editorService.openCodeEditor({resource:r.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:r.selected.marker}},this._editor);s&&(null===(n=e.get(s))||void 0===n||n.close(),null===(o=e.get(s))||void 0===o||o.nagivate(t,i))}else this._widget.showAtMarker(r.selected.marker,r.selected.index,r.selected.total)}}))}};ne.ID="editor.contrib.markerController",ne=ee([te(1,w),te(2,S.fN),te(3,s.T),te(4,m._Y)],ne);class oe extends r.ks{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}run(e,t){var i;return ie(this,void 0,void 0,(function*(){t.hasModel()&&(null===(i=ne.get(t))||void 0===i||i.nagivate(this._next,this._multiFile))}))}}class re extends oe{constructor(){super(!0,!1,{id:re.ID,label:re.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.R.focus,primary:578,weight:100},menuOpts:{menuId:G.TitleMenu,title:re.LABEL,icon:(0,D.pU)("marker-navigation-next",n.W6.arrowDown,R.kg("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}re.ID="editor.action.marker.next",re.LABEL=R.kg("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class se extends oe{constructor(){super(!1,!1,{id:se.ID,label:se.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.R.focus,primary:1602,weight:100},menuOpts:{menuId:G.TitleMenu,title:se.LABEL,icon:(0,D.pU)("marker-navigation-previous",n.W6.arrowUp,R.kg("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}se.ID="editor.action.marker.prev",se.LABEL=R.kg("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");(0,r.HW)(ne.ID,ne),(0,r.Fl)(re),(0,r.Fl)(se),(0,r.Fl)(class extends oe{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:R.kg("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.R.focus,primary:66,weight:100},menuOpts:{menuId:L.D8.MenubarGoMenu,title:R.kg({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),(0,r.Fl)(class extends oe{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:R.kg("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.R.focus,primary:1090,weight:100},menuOpts:{menuId:L.D8.MenubarGoMenu,title:R.kg({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});const ae=new S.N1("markersNavigationVisible",!1),le=r.DX.bindToContribution(ne.get);(0,r.E_)(new le({id:"closeMarkersNavigation",precondition:ae,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:d.R.focus,primary:9,secondary:[1033]}}))},66024:(e,t,i)=>{i.r(t),i.d(t,{DefinitionAction:()=>ne,SymbolNavigationAction:()=>ie,SymbolNavigationAnchor:()=>te});var n=i(47702),o=i(89527),r=i(86683),s=i(44948),a=i(17032),l=i(4562),d=i(54605),c=i(85693),h=i(73397),g=i(50051),u=i(10664),p=i(59629),f=i(62612),m=i(15186),_=i(29671),v=i(63404),b=i(72708),k=i(76395),y=i(74663),C=i(26819),w=i(9934),M=i(38016),R=i(40350),L=i(44785),S=i(93218),D=i(84278),x=i(47506),I=i(11734),N=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},P=function(e,t){return function(i,n){t(i,n,e)}};const E=new R.N1("hasSymbols",!1,(0,M.kg)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),F=(0,S.u1)("ISymbolNavigationService");let A=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=E.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),null===(e=this._currentState)||void 0===e||e.dispose(),null===(t=this._currentMessage)||void 0===t||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new O(this._editorService),n=i.onDidChange((e=>{if(this._ignoreEditorChange)return;const i=this._editorService.getActiveCodeEditor();if(!i)return;const n=i.getModel(),o=i.getPosition();if(!n||!o)return;let r=!1,s=!1;for(const a of t.references)if((0,w.n4)(a.uri,n.uri))r=!0,s=s||m.Q.containsPosition(a.range,o);else if(r)break;r&&s||this.reset()}));this._currentState=(0,C.qE)(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:m.Q.collapseToStart(t.range),selectionRevealType:3}},e).finally((()=>{this._ignoreEditorChange=!1}))}_showMessage(){var e;null===(e=this._currentMessage)||void 0===e||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?(0,M.kg)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):(0,M.kg)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};A=N([P(0,R.fN),P(1,u.T),P(2,I.Ot),P(3,D.b)],A),(0,L.v)(F,A,!0),(0,g.E_)(new class extends g.DX{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:E,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(F).revealNext(t)}}),x.f.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:E,primary:9,handler(e){e.get(F).reset()}});let O=class{constructor(e){this._listener=new Map,this._disposables=new C.Cm,this._onDidChange=new y.vl,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,C.AS)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,C.qE)(e.onDidChangeCursorPosition((t=>this._onDidChange.fire({editor:e}))),e.onDidChangeModelContent((t=>this._onDidChange.fire({editor:e})))))}_onDidRemoveEditor(e){var t;null===(t=this._listener.get(e))||void 0===t||t.dispose(),this._listener.delete(e)}};O=N([P(0,u.T)],O);var T,U,W,B,H,j,G,K,V=i(5179),$=i(11293),z=i(21850),Q=i(84562),X=i(84134),q=i(62381),Z=i(68975),Y=function(e,t,i,n){return new(i||(i=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};z.ZG.appendMenuItem(z.D8.EditorContext,{submenu:z.D8.EditorContextPeek,title:M.kg("peek.submenu","Peek"),group:"navigation",order:100});const J=new Set;function ee(e){const t=new e;return(0,g.xX)(t),J.add(t.id),t}class te{constructor(e,t){this.model=e,this.position=t}static is(e){return!(!e||"object"!==typeof e)&&(e instanceof te||!(!f.y.isIPosition(e.position)||!e.model))}}class ie extends g.ks{constructor(e,t){super(t),this.configuration=e}run(e,t,i){if(!t.hasModel())return Promise.resolve(void 0);const n=e.get(I.Ot),s=e.get(u.T),a=e.get(X.N8),l=e.get(F),d=e.get(Z.u),h=t.getModel(),g=t.getPosition(),p=te.is(i)?i:new te(h,g),f=new c.gI(t,5),m=(0,r.PK)(this._getLocationModel(d,p.model,p.position,f.token),f.token).then((e=>Y(this,void 0,void 0,(function*(){var i;if(!e||f.token.isCancellationRequested)return;let n;if((0,o.xE)(e.ariaMessage),e.referenceAt(h.uri,g)){const e=this._getAlternativeCommand(t);!ie._activeAlternativeCommands.has(e)&&J.has(e)&&(n=t.getAction(e))}const r=e.references.length;if(0===r){if(!this.configuration.muteMessage){const e=h.getWordAtPosition(g);null===(i=V.k.get(t))||void 0===i||i.showMessage(this._getNoResultFoundMessage(e),g)}}else{if(1!==r||!n)return this._onResult(s,l,t,e);ie._activeAlternativeCommands.add(this.id),n.run().finally((()=>{ie._activeAlternativeCommands.delete(this.id)}))}}))),(e=>{n.error(e)})).finally((()=>{f.dispose()}));return a.showWhile(m,250),m}_onResult(e,t,i,n){return Y(this,void 0,void 0,(function*(){const o=this._getGoToPreference(i);if(i instanceof p.t||!(this.configuration.openInPeek||"peek"===o&&n.references.length>1)){const r=n.firstReference(),s=n.references.length>1&&"gotoAndPeek"===o,a=yield this._openReference(i,e,r,this.configuration.openToSide,!s);s&&a?this._openInPeek(a,n):n.dispose(),"goto"===o&&t.put(r)}else this._openInPeek(i,n)}))}_openReference(e,t,i,n,o){return Y(this,void 0,void 0,(function*(){let r;if((0,v.Iu)(i)&&(r=i.targetSelectionRange),r||(r=i.range),!r)return;const s=yield t.openCodeEditor({resource:i.uri,options:{selection:m.Q.collapseToStart(r),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(s){if(o){const e=s.getModel(),t=s.createDecorationsCollection([{range:r,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout((()=>{s.getModel()===e&&t.clear()}),350)}return s}}))}_openInPeek(e,t){const i=b.X.get(e);i&&e.hasModel()?i.toggleWidget(e.getSelection(),(0,r.SS)((e=>Promise.resolve(t))),this.configuration.openInPeek):t.dispose()}}ie._activeAlternativeCommands=new Set;class ne extends ie{_getLocationModel(e,t,i,n){return Y(this,void 0,void 0,(function*(){return new k.y4(yield(0,q.hE)(e.definitionProvider,t,i,n),M.kg("def.title","Definitions"))}))}_getNoResultFoundMessage(e){return e&&e.word?M.kg("noResultWord","No definition found for '{0}'",e.word):M.kg("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(52).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(52).multipleDefinitions}}const oe=a.HZ&&!(0,n.isStandalone)()?2118:70;ee(((T=class e extends ne{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,label:M.kg("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:R.M$.and(_.R.hasDefinitionProvider,_.R.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:_.R.editorTextFocus,primary:oe,weight:100},contextMenuOpts:{group:"navigation",order:1.1}}),Q.wb.registerCommandAlias("editor.action.goToDeclaration",e.id)}}).id="editor.action.revealDefinition",T)),ee(((U=class e extends ne{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:e.id,label:M.kg("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:R.M$.and(_.R.hasDefinitionProvider,_.R.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:_.R.editorTextFocus,primary:(0,s.m5)(2089,oe),weight:100}}),Q.wb.registerCommandAlias("editor.action.openDeclarationToTheSide",e.id)}}).id="editor.action.revealDefinitionAside",U)),ee(((W=class e extends ne{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.id,label:M.kg("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:R.M$.and(_.R.hasDefinitionProvider,$.x2.notInPeekEditor,_.R.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:_.R.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:z.D8.EditorContextPeek,group:"peek",order:2}}),Q.wb.registerCommandAlias("editor.action.previewDeclaration",e.id)}}).id="editor.action.peekDefinition",W));class re extends ie{_getLocationModel(e,t,i,n){return Y(this,void 0,void 0,(function*(){return new k.y4(yield(0,q.sv)(e.declarationProvider,t,i,n),M.kg("decl.title","Declarations"))}))}_getNoResultFoundMessage(e){return e&&e.word?M.kg("decl.noResultWord","No declaration found for '{0}'",e.word):M.kg("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(52).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(52).multipleDeclarations}}ee(((B=class e extends re{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,label:M.kg("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:R.M$.and(_.R.hasDeclarationProvider,_.R.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3}})}_getNoResultFoundMessage(e){return e&&e.word?M.kg("decl.noResultWord","No declaration found for '{0}'",e.word):M.kg("decl.generic.noResults","No declaration found")}}).id="editor.action.revealDeclaration",B)),ee(class extends re{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:M.kg("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:R.M$.and(_.R.hasDeclarationProvider,$.x2.notInPeekEditor,_.R.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:z.D8.EditorContextPeek,group:"peek",order:3}})}});class se extends ie{_getLocationModel(e,t,i,n){return Y(this,void 0,void 0,(function*(){return new k.y4(yield(0,q.f9)(e.typeDefinitionProvider,t,i,n),M.kg("typedef.title","Type Definitions"))}))}_getNoResultFoundMessage(e){return e&&e.word?M.kg("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):M.kg("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(52).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(52).multipleTypeDefinitions}}ee(((H=class e extends se{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,label:M.kg("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:R.M$.and(_.R.hasTypeDefinitionProvider,_.R.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:_.R.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4}})}}).ID="editor.action.goToTypeDefinition",H)),ee(((j=class e extends se{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,label:M.kg("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:R.M$.and(_.R.hasTypeDefinitionProvider,$.x2.notInPeekEditor,_.R.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:z.D8.EditorContextPeek,group:"peek",order:4}})}}).ID="editor.action.peekTypeDefinition",j));class ae extends ie{_getLocationModel(e,t,i,n){return Y(this,void 0,void 0,(function*(){return new k.y4(yield(0,q.eS)(e.implementationProvider,t,i,n),M.kg("impl.title","Implementations"))}))}_getNoResultFoundMessage(e){return e&&e.word?M.kg("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):M.kg("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(52).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(52).multipleImplementations}}ee(((G=class e extends ae{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,label:M.kg("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:R.M$.and(_.R.hasImplementationProvider,_.R.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:_.R.editorTextFocus,primary:2118,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}}).ID="editor.action.goToImplementation",G)),ee(((K=class e extends ae{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,label:M.kg("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:R.M$.and(_.R.hasImplementationProvider,$.x2.notInPeekEditor,_.R.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:_.R.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:z.D8.EditorContextPeek,group:"peek",order:5}})}}).ID="editor.action.peekImplementation",K));class le extends ie{_getNoResultFoundMessage(e){return e?M.kg("references.no","No references found for '{0}'",e.word):M.kg("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(52).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(52).multipleReferences}}ee(class extends le{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:M.kg("goToReferences.label","Go to References"),alias:"Go to References",precondition:R.M$.and(_.R.hasReferenceProvider,$.x2.notInPeekEditor,_.R.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:_.R.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}_getLocationModel(e,t,i,n){return Y(this,void 0,void 0,(function*(){return new k.y4(yield(0,q.NN)(e.referenceProvider,t,i,!0,n),M.kg("ref.title","References"))}))}}),ee(class extends le{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:M.kg("references.action.label","Peek References"),alias:"Peek References",precondition:R.M$.and(_.R.hasReferenceProvider,$.x2.notInPeekEditor,_.R.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:z.D8.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,n){return Y(this,void 0,void 0,(function*(){return new k.y4(yield(0,q.NN)(e.referenceProvider,t,i,!1,n),M.kg("ref.title","References"))}))}});class de extends ie{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",label:M.kg("label.generic","Go to Any Symbol"),alias:"Go to Any Symbol",precondition:R.M$.and($.x2.notInPeekEditor,_.R.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,n){return Y(this,void 0,void 0,(function*(){return new k.y4(this._references,M.kg("generic.title","Locations"))}))}_getNoResultFoundMessage(e){return e&&M.kg("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(52).multipleReferences}_getAlternativeCommand(){return""}}Q.wb.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:d.r},{name:"position",description:"The position at which to start",constraint:f.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(e,t,i,n,o,r,s)=>Y(void 0,void 0,void 0,(function*(){(0,l.j)(d.r.isUri(t)),(0,l.j)(f.y.isIPosition(i)),(0,l.j)(Array.isArray(n)),(0,l.j)("undefined"===typeof o||"string"===typeof o),(0,l.j)("undefined"===typeof s||"boolean"===typeof s);const a=e.get(u.T),c=yield a.openCodeEditor({resource:t},a.getFocusedCodeEditor());if((0,h.z9)(c))return c.setPosition(i),c.revealPositionInCenterIfOutsideViewport(i,0),c.invokeWithinContext((e=>{const t=new class extends de{_getNoResultFoundMessage(e){return r||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(r),openInPeek:Boolean(s),openToSide:!1},n,o);e.get(S._Y).invokeFunction(t.run.bind(t),c)}))}))}),Q.wb.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:d.r},{name:"position",description:"The position at which to start",constraint:f.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(e,t,i,n,o)=>Y(void 0,void 0,void 0,(function*(){e.get(Q.wT).executeCommand("editor.action.goToLocations",t,i,n,o,void 0,!0)}))}),Q.wb.registerCommand({id:"editor.action.findReferences",handler:(e,t,i)=>{(0,l.j)(d.r.isUri(t)),(0,l.j)(f.y.isIPosition(i));const n=e.get(Z.u),o=e.get(u.T);return o.openCodeEditor({resource:t},o.getFocusedCodeEditor()).then((e=>{if(!(0,h.z9)(e)||!e.hasModel())return;const t=b.X.get(e);if(!t)return;const o=(0,r.SS)((t=>(0,q.NN)(n.referenceProvider,e.getModel(),f.y.lift(i),!1,t).then((e=>new k.y4(e,M.kg("ref.title","References")))))),s=new m.Q(i.lineNumber,i.column,i.lineNumber,i.column);return Promise.resolve(t.toggleWidget(s,o,!1))}))}}),Q.wb.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations"),z.ZG.appendMenuItems([{id:z.D8.MenubarGoMenu,item:{command:{id:"editor.action.revealDefinition",title:M.kg({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},group:"4_symbol_nav",order:2}},{id:z.D8.MenubarGoMenu,item:{command:{id:"editor.action.revealDeclaration",title:M.kg({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},group:"4_symbol_nav",order:3}},{id:z.D8.MenubarGoMenu,item:{command:{id:"editor.action.goToTypeDefinition",title:M.kg({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},group:"4_symbol_nav",order:3}},{id:z.D8.MenubarGoMenu,item:{command:{id:"editor.action.goToImplementation",title:M.kg({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},group:"4_symbol_nav",order:4}},{id:z.D8.MenubarGoMenu,item:{command:{id:"editor.action.goToReferences",title:M.kg({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},group:"4_symbol_nav",order:5}}])},62381:(e,t,i)=>{i.d(t,{NN:()=>p,eS:()=>g,f9:()=>u,hE:()=>c,sv:()=>h});var n=i(74832),o=i(24156),r=i(50051),s=i(76395),a=i(68975),l=function(e,t,i,n){return new(i||(i=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};function d(e,t,i,n){const r=i.ordered(e).map((i=>Promise.resolve(n(i,e,t)).then(void 0,(e=>{(0,o.M_)(e)}))));return Promise.all(r).then((e=>{const t=[];for(const i of e)Array.isArray(i)?t.push(...i):i&&t.push(i);return t}))}function c(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideDefinition(t,i,n)))}function h(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideDeclaration(t,i,n)))}function g(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideImplementation(t,i,n)))}function u(e,t,i,n){return d(t,i,e,((e,t,i)=>e.provideTypeDefinition(t,i,n)))}function p(e,t,i,n,o){return d(t,i,e,((e,t,i)=>l(this,void 0,void 0,(function*(){const r=yield e.provideReferences(t,i,{includeDeclaration:!0},o);if(!n||!r||2!==r.length)return r;const s=yield e.provideReferences(t,i,{includeDeclaration:!1},o);return s&&1===s.length?s:r}))))}function f(e){return l(this,void 0,void 0,(function*(){const t=yield e(),i=new s.y4(t,""),n=i.references.map((e=>e.link));return i.dispose(),n}))}(0,r.ke)("_executeDefinitionProvider",((e,t,i)=>{const o=c(e.get(a.u).definitionProvider,t,i,n.X.None);return f((()=>o))})),(0,r.ke)("_executeTypeDefinitionProvider",((e,t,i)=>{const o=u(e.get(a.u).typeDefinitionProvider,t,i,n.X.None);return f((()=>o))})),(0,r.ke)("_executeDeclarationProvider",((e,t,i)=>{const o=h(e.get(a.u).declarationProvider,t,i,n.X.None);return f((()=>o))})),(0,r.ke)("_executeReferenceProvider",((e,t,i)=>{const o=p(e.get(a.u).referenceProvider,t,i,!1,n.X.None);return f((()=>o))})),(0,r.ke)("_executeImplementationProvider",((e,t,i)=>{const o=g(e.get(a.u).implementationProvider,t,i,n.X.None);return f((()=>o))}))},81346:(e,t,i)=>{i.d(t,{gi:()=>h});var n=i(74663),o=i(26819),r=i(17032);function s(e,t){return!!e[t]}class a{constructor(e,t){this.target=e.target,this.hasTriggerModifier=s(e.event,t.triggerModifier),this.hasSideBySideModifier=s(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class l{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=s(e,t.triggerModifier)}}class d{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function c(e){return"altKey"===e?r.zx?new d(57,"metaKey",6,"altKey"):new d(5,"ctrlKey",6,"altKey"):r.zx?new d(6,"altKey",57,"metaKey"):new d(6,"altKey",5,"ctrlKey")}class h extends o.jG{constructor(e){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new n.vl),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new n.vl),this.onExecute=this._onExecute.event,this._onCancel=this._register(new n.vl),this.onCancel=this._onCancel.event,this._editor=e,this._opts=c(this._editor.getOption(71)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration((e=>{if(e.hasChanged(71)){const e=c(this._editor.getOption(71));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}}))),this._register(this._editor.onMouseMove((e=>this._onEditorMouseMove(new a(e,this._opts))))),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(new a(e,this._opts))))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(new a(e,this._opts))))),this._register(this._editor.onKeyDown((e=>this._onEditorKeyDown(new l(e,this._opts))))),this._register(this._editor.onKeyUp((e=>this._onEditorKeyUp(new l(e,this._opts))))),this._register(this._editor.onMouseDrag((()=>this._resetHandler()))),this._register(this._editor.onDidChangeCursorSelection((e=>this._onDidChangeCursorSelection(e)))),this._register(this._editor.onDidChangeModel((e=>this._resetHandler()))),this._register(this._editor.onDidChangeModelContent((()=>this._resetHandler()))),this._register(this._editor.onDidScrollChange((e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()})))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},90237:(e,t,i)=>{i.r(t),i.d(t,{GotoDefinitionAtPositionEditorContribution:()=>M});var n=i(86683),o=i(24156),r=i(84181),s=i(26819),a=i(4562),l=i(85693),d=i(50051),c=i(15186),h=i(19821),g=i(65573),u=i(81346),p=i(11293),f=i(38016),m=i(40350),_=i(93467),v=i(86471),b=i(66024),k=i(62381),y=i(68975),C=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},w=function(e,t){return function(i,n){t(i,n,e)}};let M=class e{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new s.Cm,this.toUnhookForKeyboard=new s.Cm,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const r=new u.gi(e);this.toUnhook.add(r),this.toUnhook.add(r.onMouseMoveOrRelevantKeyDown((([e,t])=>{this.startFindDefinitionFromMouse(e,(0,a.UH)(t))}))),this.toUnhook.add(r.onExecute((e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).then((()=>{this.removeLinkDecorations()}),(e=>{this.removeLinkDecorations(),(0,o.dz)(e)}))}))),this.toUnhook.add(r.onCancel((()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null})))}static get(t){return t.getContribution(e.ID)}startFindDefinitionFromCursor(e){return this.startFindDefinition(e).then((()=>{this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition((()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()}))),this.toUnhookForKeyboard.add(this.editor.onKeyDown((e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())})))}))}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const i=e.target.position;this.startFindDefinition(i)}startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const i=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return Promise.resolve(0);this.currentWordAtPosition=i;const s=new l.$t(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,n.SS)((t=>this.findDefinition(e,t))),this.previousPromise.then((t=>{if(t&&t.length&&s.validate(this.editor))if(t.length>1)this.addDecoration(new c.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn),(new r.Bc).appendText(f.kg("multipleResults","Click to show {0} definitions.",t.length)));else{const n=t[0];if(!n.uri)return;this.textModelResolverService.createModelReference(n.uri).then((t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:o}}=t,{startLineNumber:s}=n.range;if(s<1||s>o.getLineCount())return void t.dispose();const a=this.getPreviewValue(o,s,n);let l;l=n.originSelectionRange?c.Q.lift(n.originSelectionRange):new c.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);const d=this.languageService.guessLanguageIdByFilepathOrFirstLine(o.uri);this.addDecoration(l,(new r.Bc).appendCodeblock(d||"",a)),t.dispose()}))}else this.removeLinkDecorations()})).then(void 0,o.dz)}getPreviewValue(t,i,n){let o=n.range;o.endLineNumber-o.startLineNumber>=e.MAX_SOURCE_PREVIEW_LINES&&(o=this.getPreviewRangeBasedOnIndentation(t,i));return this.stripIndentationFromPreviewRange(t,i,o)}stripIndentationFromPreviewRange(e,t,i){let n=e.getLineFirstNonWhitespaceColumn(t);for(let o=t+1;o<i.endLineNumber;o++){const t=e.getLineFirstNonWhitespaceColumn(o);n=Math.min(n,t)}return e.getValueInRange(i).replace(new RegExp(`^\\s{${n-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(t,i){const n=t.getLineFirstNonWhitespaceColumn(i),o=Math.min(t.getLineCount(),i+e.MAX_SOURCE_PREVIEW_LINES);let r=i+1;for(;r<o;r++){if(n===t.getLineFirstNonWhitespaceColumn(r))break}return new c.Q(i,1,r+1,1)}addDecoration(e,t){const i={range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations.set([i])}removeLinkDecorations(){this.linkDecorations.clear()}isEnabled(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&6===e.target.type&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&this.languageFeaturesService.definitionProvider.has(this.editor.getModel())}findDefinition(e,t){const i=this.editor.getModel();return i?(0,k.hE)(this.languageFeaturesService.definitionProvider,i,e,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext((e=>{const i=!t&&this.editor.getOption(79)&&!this.isInPeekEditor(e);return new b.DefinitionAction({openToSide:t,openInPeek:i,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0}).run(e,this.editor)}))}isInPeekEditor(e){const t=e.get(m.fN);return p.x2.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose()}};M.ID="editor.contrib.gotodefinitionatposition",M.MAX_SOURCE_PREVIEW_LINES=8,M=C([w(1,g.b),w(2,h.L),w(3,y.u)],M),(0,d.HW)(M.ID,M),(0,v.zy)(((e,t)=>{const i=e.getColor(_.Ztu);i&&t.addRule(`.monaco-editor .goto-definition-link { color: ${i} !important; }`)}))},72708:(e,t,i)=>{i.d(t,{X:()=>ce});var n=i(86683),o=i(24156),r=i(44948),s=i(26819),a=i(10664),l=i(62612),d=i(15186),c=i(11293),h=i(38016),g=i(84562),u=i(7548),p=i(40350),f=i(93218),m=i(47506),_=i(572),v=i(11734),b=i(2234),k=i(76395),y=i(38278),C=i(10745),w=i(60196),M=i(74663),R=i(86657),L=i(9934),S=i(59629),D=i(28715),x=i(91835),I=i(99588),N=i(19821),P=i(65573),E=i(48563),F=i(39302),A=i(64562),O=i(4384),T=i(84278),U=i(73624),W=i(33010),B=i(86471),H=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},j=function(e,t){return function(i,n){t(i,n,e)}};let G=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof k.y4||e instanceof k.$L}getChildren(e){if(e instanceof k.y4)return e.groups;if(e instanceof k.$L)return e.resolve(this._resolverService).then((e=>e.children));throw new Error("bad tree")}};G=H([j(0,P.b)],G);class K{getHeight(){return 23}getTemplateId(e){return e instanceof k.$L?Q.id:q.id}}let V=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof k.yc){const i=null===(t=e.parent.getPreview(e))||void 0===t?void 0:t.preview(e.range);if(i)return i.value}return(0,L.P8)(e.uri)}};V=H([j(0,T.b)],V);class ${getId(e){return e instanceof k.yc?e.id:e.uri}}let z=class extends s.jG{constructor(e,t,i){super(),this._labelService=t;const n=document.createElement("div");n.classList.add("reference-file"),this.file=this._register(new A.s(n,{supportHighlights:!0})),this.badge=new E.x(y.BC(n,y.$(".count"))),this._register((0,W.Gd)(this.badge,i)),e.appendChild(n)}set(e,t){const i=(0,L.pD)(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat((0,h.kg)("referencesCount","{0} references",n)):this.badge.setTitleFormat((0,h.kg)("referenceCount","{0} reference",n))}};z=H([j(1,U.L),j(2,B.Gy)],z);let Q=class e{constructor(t){this._instantiationService=t,this.templateId=e.id}renderTemplate(e){return this._instantiationService.createInstance(z,e)}renderElement(e,t,i){i.set(e.element,(0,O.WJ)(e.filterData))}disposeTemplate(e){e.dispose()}};Q.id="FileReferencesRenderer",Q=H([j(0,f._Y)],Q);class X{constructor(e){this.label=new F._(e)}set(e,t){var i;const n=null===(i=e.parent.getPreview(e))||void 0===i?void 0:i.preview(e.range);if(n&&n.value){const{value:e,highlight:i}=n;t&&!O.ne.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,(0,O.WJ)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[i]))}else this.label.set(`${(0,L.P8)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class q{constructor(){this.templateId=q.id}renderTemplate(e){return new X(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(){}}q.id="OneReferenceRenderer";class Z{getWidgetAriaLabel(){return(0,h.kg)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var Y=i(24554),J=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},ee=function(e,t){return function(i,n){t(i,n,e)}},te=function(e,t,i,n){return new(i||(i=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class ie{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new s.Cm,this._callOnModelChange=new s.Cm,this._callOnDispose.add(this._editor.onDidChangeModel((()=>this._onModelChanged()))),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e)for(const t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((()=>this._onDecorationChanged())));const t=[],i=[];for(let n=0,o=e.children.length;n<o;n++){const o=e.children[n];this._decorationIgnoreSet.has(o.id)||o.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:o.range,options:ie.DecorationOptions}),i.push(n))}this._editor.changeDecorations((n=>{const o=n.deltaDecorations([],t);for(let t=0;t<o.length;t++)this._decorations.set(o[t],e.children[i[t]])}))}_onDecorationChanged(){const e=[],t=this._editor.getModel();if(t){for(const[i,n]of this._decorations){const o=t.getDecorationRange(i);if(!o)continue;let r=!1;if(!d.Q.equalsRange(o,n.range)){if(d.Q.spansMultipleLines(o))r=!0;else{n.range.endColumn-n.range.startColumn!==o.endColumn-o.startColumn&&(r=!0)}r?(this._decorationIgnoreSet.add(n.id),e.push(i)):n.range=o}}for(let t=0,i=e.length;t<i;t++)this._decorations.delete(e[t]);this._editor.removeDecorations(e)}}removeDecorations(){this._editor.removeDecorations([...this._decorations.keys()]),this._decorations.clear()}}ie.DecorationOptions=D.kI.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"});class ne{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,i;try{const n=JSON.parse(e);t=n.ratio,i=n.heightInLines}catch(n){}return{ratio:t||.7,heightInLines:i||18}}}class oe extends _.er{}let re=class extends c.j6{constructor(e,t,i,n,o,r,a,l,d,c,h,g){super(e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},r),this._defaultTreeKeyboardSupport=t,this.layoutData=i,this._textModelResolverService=o,this._instantiationService=r,this._peekViewService=a,this._uriLabel=l,this._undoRedoService=d,this._keybindingService=c,this._languageService=h,this._languageConfigurationService=g,this._disposeOnNewModel=new s.Cm,this._callOnDispose=new s.Cm,this._onDidSelectReference=new M.vl,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new y.fg(0,0),this._applyTheme(n.getColorTheme()),this._callOnDispose.add(n.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(e,this),this.create()}dispose(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),(0,s.AS)(this._preview),(0,s.AS)(this._previewNotAvailableMessage),(0,s.AS)(this._tree),(0,s.AS)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(e){const t=e.getColor(c.zl)||w.Q1.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(c.z0)||w.Q1.transparent,primaryHeadingColor:e.getColor(c._X),secondaryHeadingColor:e.getColor(c.e3)})}show(e){super.show(e,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})}_fillBody(e){this.setCssClass("reference-zone-widget"),this._messageContainer=y.BC(e,y.$("div.messages")),y.jD(this._messageContainer),this._splitView=new C.U(e,{orientation:1}),this._previewContainer=y.BC(e,y.$("div.preview.inline"));this._preview=this._instantiationService.createInstance(S.t,this._previewContainer,{scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}},this.editor),y.jD(this._previewContainer),this._previewNotAvailableMessage=new D.Bz(h.kg("missingPreviewMessage","no preview available"),I.vH,D.Bz.DEFAULT_CREATION_OPTIONS,null,this._undoRedoService,this._languageService,this._languageConfigurationService),this._treeContainer=y.BC(e,y.$("div.ref-tree.inline"));const t={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new Z,keyboardNavigationLabelProvider:this._instantiationService.createInstance(V),identityProvider:new $,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:c.n6}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(y.b2(this._treeContainer,"keydown",(e=>{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())}),!0)),this._tree=this._instantiationService.createInstance(oe,"ReferencesWidget",this._treeContainer,new K,[this._instantiationService.createInstance(Q),this._instantiationService.createInstance(q)],this._instantiationService.createInstance(G),t),this._splitView.addView({onDidChange:M.Jh.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},C.X.Distribute),this._splitView.addView({onDidChange:M.Jh.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${e}px`,this._tree.layout(this._dim.height,e)}},C.X.Distribute),this._disposables.add(this._splitView.onDidSashChange((()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)}),void 0));const i=(e,t)=>{e instanceof k.yc&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._tree.onDidOpen((e=>{e.sideBySide?i(e.element,"side"):e.editorOptions.pinned?i(e.element,"goto"):i(e.element,"show")})),y.jD(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new y.fg(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then((()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))}))}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=h.kg("noResults","No results"),y.WU(this._messageContainer),Promise.resolve(void 0)):(y.jD(this._messageContainer),this._decorationsManager=new ie(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((e=>this._tree.rerender(e)))),this._disposeOnNewModel.add(this._preview.onMouseDown((e=>{const{event:t,target:i}=e;if(2!==t.detail)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})}))),this.container.classList.add("results-loaded"),y.WU(this._treeContainer),y.WU(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();return e instanceof k.yc?e:e instanceof k.$L&&e.children.length>0?e.children[0]:void 0}revealReference(e){return te(this,void 0,void 0,(function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}))}_revealReference(e,t){return te(this,void 0,void 0,(function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==R.ny.inMemory?this.setTitle((0,L.Pi)(e.uri),this._uriLabel.getUriLabel((0,L.pD)(e.uri))):this.setTitle(h.kg("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent||(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent)),this._tree.reveal(e);const n=yield i;if(!this._model)return void n.dispose();(0,s.AS)(this._previewModelReference);const o=n.object;if(o){const t=this._preview.getModel()===o.textEditorModel?0:1,i=d.Q.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(o.textEditorModel),this._preview.setSelection(i),this._preview.revealRangeInCenter(i,t)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()}))}};re=J([ee(3,B.Gy),ee(4,P.b),ee(5,f._Y),ee(6,c.zn),ee(7,U.L),ee(8,Y.$D),ee(9,T.b),ee(10,N.L),ee(11,x.JZ)],re);var se=function(e,t,i,n){var o,r=arguments.length,s=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,i,s):o(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},ae=function(e,t){return function(i,n){t(i,n,e)}},le=function(e,t,i,n){return new(i||(i=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};const de=new p.N1("referenceSearchVisible",!1,h.kg("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let ce=class e{constructor(e,t,i,n,o,r,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=o,this._instantiationService=r,this._storageService=a,this._configurationService=l,this._disposables=new s.Cm,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=de.bindTo(i)}static get(t){return t.getContribution(e.ID)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),null===(e=this._widget)||void 0===e||e.dispose(),null===(t=this._model)||void 0===t||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>{this.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((()=>{this._ignoreModelChangeEvent||this.closeWidget()})));const o="peekViewLayout",r=ne.fromJSON(this._storageService.get(o,0,"{}"));this._widget=this._instantiationService.createInstance(re,this._editor,this._defaultTreeKeyboardSupport,r),this._widget.setTitle(h.kg("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose((()=>{t.cancel(),this._widget&&(this._storageService.store(o,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((e=>{const{element:t,kind:n}=e;if(t)switch(n){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1,!1);break;case"side":this.openReference(t,!0,!1);break;case"goto":i?this._gotoReference(t):this.openReference(t,!1,!0)}})));const s=++this._requestIdPool;t.then((t=>{var i;if(s===this._requestIdPool&&this._widget)return null===(i=this._model)||void 0===i||i.dispose(),this._model=t,this._widget.setModel(this._model).then((()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(h.kg("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const t=this._editor.getModel().uri,i=new l.y(e.startLineNumber,e.startColumn),n=this._model.nearestReference(t,i);if(n)return this._widget.setSelection(n).then((()=>{this._widget&&"editor"===this._editor.getOption(78)&&this._widget.focusOnPreviewEditor()}))}}));t.dispose()}),(e=>{this._notificationService.error(e)}))}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return le(this,void 0,void 0,(function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),o=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n),o?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()}))}revealReference(e){return le(this,void 0,void 0,(function*(){this._editor.hasModel()&&this._model&&this._widget&&(yield this._widget.revealReference(e))}))}closeWidget(e=!0){var t,i;null===(t=this._widget)||void 0===t||t.dispose(),null===(i=this._model)||void 0===i||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(t){this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;const i=d.Q.lift(t.range).collapseToStart();return this._editorService.openCodeEditor({resource:t.uri,options:{selection:i,selectionSource:"code.jump"}},this._editor).then((t=>{var o;if(this._ignoreModelChangeEvent=!1,t&&this._widget)if(this._editor===t)this._widget.show(i),this._widget.focusOnReferenceTree();else{const r=e.get(t),s=this._model.clone();this.closeWidget(),t.focus(),null===r||void 0===r||r.toggleWidget(i,(0,n.SS)((e=>Promise.resolve(s))),null!==(o=this._peekMode)&&void 0!==o&&o)}else this.closeWidget()}),(e=>{this._ignoreModelChangeEvent=!1,(0,o.dz)(e)}))}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:o}=e;this._editorService.openCodeEditor({resource:n,options:{selection:o,selectionSource:"code.jump",pinned:i}},this._editor,t)}};function he(e,t){const i=(0,c.RL)(e);if(!i)return;const n=ce.get(i);n&&t(n)}ce.ID="editor.contrib.referencesController",ce=se([ae(2,p.fN),ae(3,a.T),ae(4,v.Ot),ae(5,f._Y),ae(6,b.CS),ae(7,u.pG)],ce),m.f.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,r.m5)(2089,60),when:p.M$.or(de,c.x2.inPeekEditor),handler(e){he(e,(e=>{e.changeFocusBetweenPreviewAndReferences()}))}}),m.f.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:p.M$.or(de,c.x2.inPeekEditor),handler(e){he(e,(e=>{e.goToNextOrPreviousReference(!0)}))}}),m.f.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:p.M$.or(de,c.x2.inPeekEditor),handler(e){he(e,(e=>{e.goToNextOrPreviousReference(!1)}))}}),g.wb.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),g.wb.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),g.wb.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),g.wb.registerCommand("closeReferenceSearch",(e=>he(e,(e=>e.closeWidget())))),m.f.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:p.M$.and(c.x2.inPeekEditor,p.M$.not("config.editor.stablePeek"))}),m.f.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:p.M$.and(de,p.M$.not("config.editor.stablePeek"))}),m.f.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:p.M$.and(de,_.YD,_.Nf.negate(),_.cH.negate()),handler(e){var t;const i=null===(t=e.get(_.PE).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof k.yc&&he(e,(e=>e.revealReference(i[0])))}}),m.f.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:p.M$.and(de,_.YD,_.Nf.negate(),_.cH.negate()),handler(e){var t;const i=null===(t=e.get(_.PE).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof k.yc&&he(e,(e=>e.openReference(i[0],!0,!0)))}}),g.wb.registerCommand("openReference",(e=>{var t;const i=null===(t=e.get(_.PE).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof k.yc&&he(e,(e=>e.openReference(i[0],!1,!0)))}))},76395:(e,t,i)=>{i.d(t,{$L:()=>f,y4:()=>m,yc:()=>u});var n=i(24156),o=i(74663),r=i(62013),s=i(26819),a=i(1713),l=i(9934),d=i(53817),c=i(15186),h=i(38016),g=function(e,t,i,n){return new(i||(i=Promise))((function(o,r){function s(e){try{l(n.next(e))}catch(t){r(t)}}function a(e){try{l(n.throw(e))}catch(t){r(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}l((n=n.apply(e,t||[])).next())}))};class u{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=r.r.nextId()}get uri(){return this.link.uri}get range(){var e,t;return null!==(t=null!==(e=this._range)&&void 0!==e?e:this.link.targetSelectionRange)&&void 0!==t?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=null===(e=this.parent.getPreview(this))||void 0===e?void 0:e.preview(this.range);return t?(0,h.kg)({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",(0,l.P8)(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):(0,h.kg)("aria.oneReference","symbol in {0} on line {1} at column {2}",(0,l.P8)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class p{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:o,endLineNumber:r,endColumn:s}=e,a=i.getWordUntilPosition({lineNumber:n,column:o-t}),l=new c.Q(n,a.startColumn,n,o),d=new c.Q(r,s,r,1073741824),h=i.getValueInRange(l).replace(/^\s+/,""),g=i.getValueInRange(e);return{value:h+g+i.getValueInRange(d).replace(/\s+$/,""),highlight:{start:h.length,end:h.length+g.length}}}}class f{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new a.fT}dispose(){(0,s.AS)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?(0,h.kg)("aria.fileReferences.1","1 symbol in {0}, full path {1}",(0,l.P8)(this.uri),this.uri.fsPath):(0,h.kg)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,l.P8)(this.uri),this.uri.fsPath)}resolve(e){return g(this,void 0,void 0,(function*(){if(0!==this._previews.size)return this;for(const i of this.children)if(!this._previews.has(i.uri))try{const t=yield e.createModelReference(i.uri);this._previews.set(i.uri,new p(t))}catch(t){(0,n.dz)(t)}return this}))}}class m{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new o.vl,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;let n;e.sort(m._compareReferences);for(const o of e)if(n&&l.er.isEqual(n.uri,o.uri,!0)||(n=new f(this,o.uri),this.groups.push(n)),0===n.children.length||0!==m._compareReferences(o,n.children[n.children.length-1])){const e=new u(i===o,n,o,(e=>this._onDidChangeReferenceRange.fire(e)));this.references.push(e),n.children.push(e)}}dispose(){(0,s.AS)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new m(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?(0,h.kg)("aria.result.0","No results found"):1===this.references.length?(0,h.kg)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?(0,h.kg)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,h.kg)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const o=i.children.length,r=i.parent.groups.length;return 1===r||t&&n+1<o||!t&&n>0?(n=t?(n+1)%o:(n+o-1)%o,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%r,i.parent.groups[n].children[0]):(n=(n+r-1)%r,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map(((i,n)=>({idx:n,prefixLen:d.Qp(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)}))).sort(((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLen<t.prefixLen?1:e.offsetDist<t.offsetDist?-1:e.offsetDist>t.offsetDist?1:0))[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&c.Q.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return l.er.compare(e.uri,t.uri)||c.Q.compareRangesUsingStarts(e.range,t.range)}}}}]);