@emailmaker/emailmaker 1.0.33 → 1.0.35

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 (394) hide show
  1. package/README.md +1 -1
  2. package/asset-manifest.json +379 -0
  3. package/css.worker.js +2 -0
  4. package/css.worker.js.LICENSE.txt +6 -0
  5. package/editor.worker.js +1 -0
  6. package/emailmaker-esm.js +1 -0
  7. package/emailmaker.d.ts +1072 -0
  8. package/emailmaker.js +1 -0
  9. package/html.worker.js +2 -0
  10. package/html.worker.js.LICENSE.txt +14 -0
  11. package/iframe/{iframe-eblock.a8bef4943d19ed8120eb.html → iframe-eblock.5edb895b1b04e652428a.html} +1 -1
  12. package/iframe/{iframe.a8bef4943d19ed8120eb.html → iframe.5edb895b1b04e652428a.html} +1 -1
  13. package/iframe/js/cssbeautify.js +1 -1
  14. package/iframe/sandbox-eblock.js +1 -1
  15. package/iframe/sandbox.js +1 -1
  16. package/json.worker.js +2 -0
  17. package/json.worker.js.LICENSE.txt +6 -0
  18. package/package.json +1 -1
  19. package/plugin.html +281 -0
  20. package/plugin_blocks_test.html +144 -0
  21. package/plugin_default.html +56 -0
  22. package/plugin_s.html +31 -0
  23. package/static/css/1795.3b54559d.css +1 -0
  24. package/static/css/2256.d0db3199.css +1 -0
  25. package/static/css/4877.237f7f6b.css +1 -0
  26. package/static/css/5571.e9720eda.css +1 -0
  27. package/static/css/6677.3a2b7cfe.css +1 -0
  28. package/static/css/698.9a48c3be.css +1 -0
  29. package/static/css/984.b0f773d2.css +1 -0
  30. package/static/js/1049.4172dffd.chunk.js +2 -0
  31. package/static/js/1049.4172dffd.chunk.js.LICENSE.txt +6 -0
  32. package/static/js/1052.d1f85a29.js +1 -0
  33. package/static/js/1185.6bf6f9aa.chunk.js +2 -0
  34. package/static/js/1185.6bf6f9aa.chunk.js.LICENSE.txt +6 -0
  35. package/static/js/1212.15b852ca.js +1 -0
  36. package/static/js/1265.a2619e5d.chunk.js +2 -0
  37. package/static/js/1265.a2619e5d.chunk.js.LICENSE.txt +6 -0
  38. package/static/js/1307.74cb7b10.js +1 -0
  39. package/static/js/1329.579d774a.chunk.js +2 -0
  40. package/static/js/1329.579d774a.chunk.js.LICENSE.txt +6 -0
  41. package/static/js/1399.cb6eb2fa.js +1 -0
  42. package/static/js/1403.68211890.js +1 -0
  43. package/static/js/1459.3976d721.chunk.js +2 -0
  44. package/static/js/1459.3976d721.chunk.js.LICENSE.txt +6 -0
  45. package/static/js/1472.4f1f2346.js +1 -0
  46. package/static/js/150.9575cb0c.js +2 -0
  47. package/static/js/150.9575cb0c.js.LICENSE.txt +1 -0
  48. package/static/js/1579.1a9c02cc.chunk.js +2 -0
  49. package/static/js/1579.1a9c02cc.chunk.js.LICENSE.txt +6 -0
  50. package/static/js/1653.4c4a3135.chunk.js +2 -0
  51. package/static/js/1653.4c4a3135.chunk.js.LICENSE.txt +6 -0
  52. package/static/js/1729.b71e4a99.chunk.js +1 -0
  53. package/static/js/1792.4d853bea.js +1 -0
  54. package/static/js/1795.8ada4a9a.js +1 -0
  55. package/static/js/1841.5da7bf01.chunk.js +2 -0
  56. package/static/js/1841.5da7bf01.chunk.js.LICENSE.txt +6 -0
  57. package/static/js/1861.b8c224a2.chunk.js +2 -0
  58. package/static/js/1861.b8c224a2.chunk.js.LICENSE.txt +6 -0
  59. package/static/js/192.c5769095.js +1 -0
  60. package/static/js/197.a135382e.js +1 -0
  61. package/static/js/2016.e08ef9ce.js +1 -0
  62. package/static/js/2049.ae85de41.chunk.js +2 -0
  63. package/static/js/2049.ae85de41.chunk.js.LICENSE.txt +6 -0
  64. package/static/js/2088.1813eba6.js +1 -0
  65. package/static/js/2132.3e700acc.js +2 -0
  66. package/static/js/2132.3e700acc.js.LICENSE.txt +6 -0
  67. package/static/js/2217.2e801f1a.chunk.js +2 -0
  68. package/static/js/2217.2e801f1a.chunk.js.LICENSE.txt +6 -0
  69. package/static/js/2223.17806e9a.js +2 -0
  70. package/static/js/2223.17806e9a.js.LICENSE.txt +10 -0
  71. package/static/js/2256.ae8285fc.js +1 -0
  72. package/static/js/2273.9a82beda.chunk.js +2 -0
  73. package/static/js/2273.9a82beda.chunk.js.LICENSE.txt +6 -0
  74. package/static/js/2279.8fca3f80.js +1 -0
  75. package/static/js/2353.e7f622b0.chunk.js +2 -0
  76. package/static/js/2353.e7f622b0.chunk.js.LICENSE.txt +6 -0
  77. package/static/js/2464.2c009f8c.js +2 -0
  78. package/static/js/2464.2c009f8c.js.LICENSE.txt +6 -0
  79. package/static/js/2469.b6573b5d.js +1 -0
  80. package/static/js/2579.ad196e9b.js +1 -0
  81. package/static/js/2582.d77da683.js +2 -0
  82. package/static/js/2582.d77da683.js.LICENSE.txt +31 -0
  83. package/static/js/2617.84f5300d.js +1 -0
  84. package/static/js/2642.53da04d8.js +1 -0
  85. package/static/js/2896.fac80e3c.js +2 -0
  86. package/static/js/2896.fac80e3c.js.LICENSE.txt +6 -0
  87. package/static/js/2987.6e35b276.chunk.js +2 -0
  88. package/static/js/2987.6e35b276.chunk.js.LICENSE.txt +6 -0
  89. package/static/js/3031.84c39f37.chunk.js +2 -0
  90. package/static/js/3031.84c39f37.chunk.js.LICENSE.txt +6 -0
  91. package/static/js/3142.506128bd.js +1 -0
  92. package/static/js/3143.1ba23572.chunk.js +2 -0
  93. package/static/js/3143.1ba23572.chunk.js.LICENSE.txt +6 -0
  94. package/static/js/3273.17658f13.chunk.js +2 -0
  95. package/static/js/3273.17658f13.chunk.js.LICENSE.txt +6 -0
  96. package/static/js/3303.576ded0e.js +1 -0
  97. package/static/js/3393.192ef5c3.chunk.js +2 -0
  98. package/static/js/3393.192ef5c3.chunk.js.LICENSE.txt +6 -0
  99. package/static/js/3441.c99ed155.chunk.js +2 -0
  100. package/static/js/3441.c99ed155.chunk.js.LICENSE.txt +6 -0
  101. package/static/js/3501.86e3c48e.chunk.js +2 -0
  102. package/static/js/3501.86e3c48e.chunk.js.LICENSE.txt +6 -0
  103. package/static/js/3511.80b2af5b.chunk.js +2 -0
  104. package/static/js/3511.80b2af5b.chunk.js.LICENSE.txt +6 -0
  105. package/static/js/353.3e6b29fb.js +1 -0
  106. package/static/js/3593.f09ad9a7.js +1 -0
  107. package/static/js/3665.12d06fc4.chunk.js +2 -0
  108. package/static/js/3665.12d06fc4.chunk.js.LICENSE.txt +6 -0
  109. package/static/js/3682.d155b110.js +2 -0
  110. package/static/js/3682.d155b110.js.LICENSE.txt +18 -0
  111. package/static/js/3713.ecd8d4d5.chunk.js +2 -0
  112. package/static/js/3713.ecd8d4d5.chunk.js.LICENSE.txt +6 -0
  113. package/static/js/3724.b7878b14.js +1 -0
  114. package/static/js/3737.df8953d0.chunk.js +2 -0
  115. package/static/js/3737.df8953d0.chunk.js.LICENSE.txt +6 -0
  116. package/static/js/3744.86c2957a.js +1 -0
  117. package/static/js/3921.99dffea2.chunk.js +2 -0
  118. package/static/js/3921.99dffea2.chunk.js.LICENSE.txt +6 -0
  119. package/static/js/3959.42824ee0.js +1 -0
  120. package/static/js/3969.d76517dd.chunk.js +2 -0
  121. package/static/js/3969.d76517dd.chunk.js.LICENSE.txt +6 -0
  122. package/static/js/3991.d0073826.js +1 -0
  123. package/static/js/4009.088de4c8.js +1 -0
  124. package/static/js/4046.b9a6a0d1.chunk.js +1 -0
  125. package/static/js/4047.9b1db1a0.chunk.js +2 -0
  126. package/static/js/4047.9b1db1a0.chunk.js.LICENSE.txt +6 -0
  127. package/static/js/4161.10fa2db8.chunk.js +2 -0
  128. package/static/js/4161.10fa2db8.chunk.js.LICENSE.txt +6 -0
  129. package/static/js/4197.8eec4e1e.chunk.js +2 -0
  130. package/static/js/4197.8eec4e1e.chunk.js.LICENSE.txt +6 -0
  131. package/static/js/4231.0dca1f81.js +1 -0
  132. package/static/js/433.e0f675e7.chunk.js +2 -0
  133. package/static/js/433.e0f675e7.chunk.js.LICENSE.txt +6 -0
  134. package/static/js/4337.cfa4be7c.chunk.js +2 -0
  135. package/static/js/4337.cfa4be7c.chunk.js.LICENSE.txt +6 -0
  136. package/static/js/4384.d7dc931a.js +2 -0
  137. package/static/js/4384.d7dc931a.js.LICENSE.txt +15 -0
  138. package/static/js/4465.1af39ca8.chunk.js +2 -0
  139. package/static/js/4465.1af39ca8.chunk.js.LICENSE.txt +6 -0
  140. package/static/js/4471.c28a2129.chunk.js +2 -0
  141. package/static/js/4471.c28a2129.chunk.js.LICENSE.txt +6 -0
  142. package/static/js/4609.b1d09cb3.chunk.js +2 -0
  143. package/static/js/4609.b1d09cb3.chunk.js.LICENSE.txt +6 -0
  144. package/static/js/4675.5a245a7a.js +1 -0
  145. package/static/js/4877.b90d1691.js +1 -0
  146. package/static/js/493.56a9ec50.chunk.js +2 -0
  147. package/static/js/493.56a9ec50.chunk.js.LICENSE.txt +6 -0
  148. package/static/js/4957.824c7499.chunk.js +2 -0
  149. package/static/js/4957.824c7499.chunk.js.LICENSE.txt +6 -0
  150. package/static/js/4963.d5f498ed.chunk.js +2 -0
  151. package/static/js/4963.d5f498ed.chunk.js.LICENSE.txt +6 -0
  152. package/static/js/5130.785486e8.js +2 -0
  153. package/static/js/5130.785486e8.js.LICENSE.txt +6 -0
  154. package/static/js/515.16219a24.js +2 -0
  155. package/static/js/515.16219a24.js.LICENSE.txt +6 -0
  156. package/static/js/5234.f4717ce4.js +1 -0
  157. package/static/js/5256.5152ffd5.js +1 -0
  158. package/static/js/5571.b22ca480.js +1 -0
  159. package/static/js/5606.a93f532c.js +1 -0
  160. package/static/js/5873.5fdbcd6c.js +1 -0
  161. package/static/js/5927.d93485f1.chunk.js +1 -0
  162. package/static/js/5957.d2ad88af.js +2 -0
  163. package/static/js/5957.d2ad88af.js.LICENSE.txt +9 -0
  164. package/static/js/5969.2b9f0751.js +1 -0
  165. package/static/js/5974.b325ee33.chunk.js +2 -0
  166. package/static/js/5974.b325ee33.chunk.js.LICENSE.txt +6 -0
  167. package/static/js/6133.0da38de9.js +1 -0
  168. package/static/js/6154.eda7a5eb.js +1 -0
  169. package/static/js/6177.cfd53511.chunk.js +2 -0
  170. package/static/js/6177.cfd53511.chunk.js.LICENSE.txt +6 -0
  171. package/static/js/6209.367effd7.chunk.js +2 -0
  172. package/static/js/6209.367effd7.chunk.js.LICENSE.txt +6 -0
  173. package/static/js/6210.e0532bdd.js +1 -0
  174. package/static/js/6219.e2ba95f7.chunk.js +2 -0
  175. package/static/js/6219.e2ba95f7.chunk.js.LICENSE.txt +6 -0
  176. package/static/js/6242.14f46d39.js +2 -0
  177. package/static/js/6242.14f46d39.js.LICENSE.txt +43 -0
  178. package/static/js/6289.46413f79.chunk.js +2 -0
  179. package/static/js/6289.46413f79.chunk.js.LICENSE.txt +6 -0
  180. package/static/js/6305.13b451ab.chunk.js +2 -0
  181. package/static/js/6305.13b451ab.chunk.js.LICENSE.txt +6 -0
  182. package/static/js/6313.16f2ea70.chunk.js +2 -0
  183. package/static/js/6313.16f2ea70.chunk.js.LICENSE.txt +6 -0
  184. package/static/js/6403.fdddaab8.js +1 -0
  185. package/static/js/6487.1bcde185.js +1 -0
  186. package/static/js/6529.67b52fe1.chunk.js +2 -0
  187. package/static/js/6529.67b52fe1.chunk.js.LICENSE.txt +6 -0
  188. package/static/js/6545.798ceede.chunk.js +2 -0
  189. package/static/js/6545.798ceede.chunk.js.LICENSE.txt +6 -0
  190. package/static/js/6567.e70469eb.js +1 -0
  191. package/static/js/657.c68af219.js +1 -0
  192. package/static/js/6633.2645f8a5.chunk.js +2 -0
  193. package/static/js/6633.2645f8a5.chunk.js.LICENSE.txt +6 -0
  194. package/static/js/665.6b528187.chunk.js +2 -0
  195. package/static/js/665.6b528187.chunk.js.LICENSE.txt +6 -0
  196. package/static/js/6659.3f40e62e.chunk.js +2 -0
  197. package/static/js/6659.3f40e62e.chunk.js.LICENSE.txt +6 -0
  198. package/static/js/6712.a85c5bf3.js +1 -0
  199. package/static/js/6873.36666f3b.chunk.js +2 -0
  200. package/static/js/6873.36666f3b.chunk.js.LICENSE.txt +6 -0
  201. package/static/js/6931.f1bfddce.chunk.js +2 -0
  202. package/static/js/6931.f1bfddce.chunk.js.LICENSE.txt +6 -0
  203. package/static/js/6945.feae0e01.js +1 -0
  204. package/static/js/6978.4572de86.chunk.js +2 -0
  205. package/static/js/6978.4572de86.chunk.js.LICENSE.txt +6 -0
  206. package/static/js/698.6e8cee9e.js +1 -0
  207. package/static/js/7099.df805007.js +1 -0
  208. package/static/js/7137.ce26a473.chunk.js +2 -0
  209. package/static/js/7137.ce26a473.chunk.js.LICENSE.txt +6 -0
  210. package/static/js/7167.8d977301.js +1 -0
  211. package/static/js/7297.55905776.chunk.js +2 -0
  212. package/static/js/7297.55905776.chunk.js.LICENSE.txt +6 -0
  213. package/static/js/7386.e4419bd3.js +1 -0
  214. package/static/js/7457.9d3d73f0.chunk.js +2 -0
  215. package/static/js/7457.9d3d73f0.chunk.js.LICENSE.txt +6 -0
  216. package/static/js/747.e69631e9.chunk.js +2 -0
  217. package/static/js/747.e69631e9.chunk.js.LICENSE.txt +6 -0
  218. package/static/js/7471.ae85b39d.js +1 -0
  219. package/static/js/753.3912652b.chunk.js +2 -0
  220. package/static/js/753.3912652b.chunk.js.LICENSE.txt +6 -0
  221. package/static/js/7698.28da948c.js +1 -0
  222. package/static/js/7768.49b35c46.js +1 -0
  223. package/static/js/7773.dbe2ce9b.js +1 -0
  224. package/static/js/7813.a2698e19.chunk.js +2 -0
  225. package/static/js/7813.a2698e19.chunk.js.LICENSE.txt +6 -0
  226. package/static/js/790.05e9f9b9.js +1 -0
  227. package/static/js/799.7d4b7962.chunk.js +2 -0
  228. package/static/js/799.7d4b7962.chunk.js.LICENSE.txt +6 -0
  229. package/static/js/8073.b0e835de.chunk.js +2 -0
  230. package/static/js/8073.b0e835de.chunk.js.LICENSE.txt +6 -0
  231. package/static/js/8154.ef02a714.js +1 -0
  232. package/static/js/8161.5ffffff0.chunk.js +2 -0
  233. package/static/js/8161.5ffffff0.chunk.js.LICENSE.txt +6 -0
  234. package/static/js/8179.acf16a1a.chunk.js +1 -0
  235. package/static/js/823.48325ac1.js +2 -0
  236. package/static/js/823.48325ac1.js.LICENSE.txt +7 -0
  237. package/static/js/8236.bdefaa6b.js +2 -0
  238. package/static/js/8236.bdefaa6b.js.LICENSE.txt +42 -0
  239. package/static/js/8325.41ced5ea.chunk.js +2 -0
  240. package/static/js/8325.41ced5ea.chunk.js.LICENSE.txt +6 -0
  241. package/static/js/8345.e3795419.js +1 -0
  242. package/static/js/8401.c2682208.chunk.js +2 -0
  243. package/static/js/8401.c2682208.chunk.js.LICENSE.txt +6 -0
  244. package/static/js/8405.427451ca.chunk.js +2 -0
  245. package/static/js/8405.427451ca.chunk.js.LICENSE.txt +6 -0
  246. package/static/js/8417.dd8c3bf1.chunk.js +2 -0
  247. package/static/js/8417.dd8c3bf1.chunk.js.LICENSE.txt +6 -0
  248. package/static/js/8447.56f9c146.js +1 -0
  249. package/static/js/8449.3924eedc.chunk.js +2 -0
  250. package/static/js/8449.3924eedc.chunk.js.LICENSE.txt +6 -0
  251. package/static/js/8545.5232cd96.chunk.js +2 -0
  252. package/static/js/8545.5232cd96.chunk.js.LICENSE.txt +6 -0
  253. package/static/js/8571.3cd299f9.chunk.js +2 -0
  254. package/static/js/8571.3cd299f9.chunk.js.LICENSE.txt +6 -0
  255. package/static/js/8573.2eb0c558.chunk.js +2 -0
  256. package/static/js/8573.2eb0c558.chunk.js.LICENSE.txt +6 -0
  257. package/static/js/8576.7d2900f8.js +1 -0
  258. package/static/js/8652.dd930977.js +1 -0
  259. package/static/js/8671.6a83db75.js +1 -0
  260. package/static/js/8689.e2d021af.chunk.js +1 -0
  261. package/static/js/8738.3ba7b2e7.js +2 -0
  262. package/static/js/8738.3ba7b2e7.js.LICENSE.txt +87 -0
  263. package/static/js/8740.a2a83fd4.js +1 -0
  264. package/static/js/8849.822eb43c.chunk.js +2 -0
  265. package/static/js/8849.822eb43c.chunk.js.LICENSE.txt +6 -0
  266. package/static/js/8865.19a4685d.chunk.js +2 -0
  267. package/static/js/8865.19a4685d.chunk.js.LICENSE.txt +6 -0
  268. package/static/js/8879.10db9af5.js +2 -0
  269. package/static/js/8879.10db9af5.js.LICENSE.txt +86 -0
  270. package/static/js/8912.0202829b.js +1 -0
  271. package/static/js/898.045789ed.js +1 -0
  272. package/static/js/9009.3a3823fe.chunk.js +2 -0
  273. package/static/js/9009.3a3823fe.chunk.js.LICENSE.txt +10 -0
  274. package/static/js/9019.7efd13af.js +2 -0
  275. package/static/js/9019.7efd13af.js.LICENSE.txt +96 -0
  276. package/static/js/9328.74394e00.js +1 -0
  277. package/static/js/9331.fb590698.js +1 -0
  278. package/static/js/9484.7637c43c.js +1 -0
  279. package/static/js/9485.9eeca498.chunk.js +2 -0
  280. package/static/js/9485.9eeca498.chunk.js.LICENSE.txt +6 -0
  281. package/static/js/9573.e444964a.chunk.js +2 -0
  282. package/static/js/9573.e444964a.chunk.js.LICENSE.txt +6 -0
  283. package/static/js/9649.ff98467b.js +1 -0
  284. package/static/js/9669.d08bf80a.chunk.js +2 -0
  285. package/static/js/9669.d08bf80a.chunk.js.LICENSE.txt +6 -0
  286. package/static/js/9691.ca82588e.chunk.js +2 -0
  287. package/static/js/9691.ca82588e.chunk.js.LICENSE.txt +6 -0
  288. package/static/js/9723.c2245912.chunk.js +2 -0
  289. package/static/js/9723.c2245912.chunk.js.LICENSE.txt +6 -0
  290. package/static/js/9725.60640f5c.chunk.js +2 -0
  291. package/static/js/9725.60640f5c.chunk.js.LICENSE.txt +6 -0
  292. package/static/js/9800.0bef2fed.chunk.js +2 -0
  293. package/static/js/9800.0bef2fed.chunk.js.LICENSE.txt +6 -0
  294. package/static/js/9878.cca6854e.js +2 -0
  295. package/static/js/9878.cca6854e.js.LICENSE.txt +8 -0
  296. package/static/js/9895.8824cd4c.chunk.js +2 -0
  297. package/static/js/9895.8824cd4c.chunk.js.LICENSE.txt +6 -0
  298. package/static/js/9907.0d22d89d.js +1 -0
  299. package/static/js/9969.455a2030.chunk.js +2 -0
  300. package/static/js/9969.455a2030.chunk.js.LICENSE.txt +6 -0
  301. package/static/js/ant-locale/locale0.fdb32a9f.chunk.js +1 -0
  302. package/static/js/ant-locale/locale1.5b1308da.chunk.js +1 -0
  303. package/static/js/ant-locale/locale10.f74ae841.chunk.js +1 -0
  304. package/static/js/ant-locale/locale11.cf703a34.chunk.js +1 -0
  305. package/static/js/ant-locale/locale13.9bcbe954.chunk.js +1 -0
  306. package/static/js/ant-locale/locale14.cb658550.chunk.js +1 -0
  307. package/static/js/ant-locale/locale15.e80eb12a.chunk.js +1 -0
  308. package/static/js/ant-locale/locale16.49bc0148.chunk.js +1 -0
  309. package/static/js/ant-locale/locale17.2daaf9a6.chunk.js +1 -0
  310. package/static/js/ant-locale/locale18.f9e62843.chunk.js +1 -0
  311. package/static/js/ant-locale/locale19.c98c053a.chunk.js +1 -0
  312. package/static/js/ant-locale/locale2.b54c0d79.chunk.js +1 -0
  313. package/static/js/ant-locale/locale20.b5cb6b02.chunk.js +1 -0
  314. package/static/js/ant-locale/locale21.7764c4b3.chunk.js +1 -0
  315. package/static/js/ant-locale/locale22.5cbb9959.chunk.js +1 -0
  316. package/static/js/ant-locale/locale23.2342f692.chunk.js +1 -0
  317. package/static/js/ant-locale/locale24.3c622cfa.chunk.js +1 -0
  318. package/static/js/ant-locale/locale25.7658de4e.chunk.js +1 -0
  319. package/static/js/ant-locale/locale26.b7e751bd.chunk.js +1 -0
  320. package/static/js/ant-locale/locale27.a47676d9.chunk.js +1 -0
  321. package/static/js/ant-locale/locale28.c89eee28.chunk.js +1 -0
  322. package/static/js/ant-locale/locale3.48f0afe7.chunk.js +1 -0
  323. package/static/js/ant-locale/locale30.4d3672db.chunk.js +1 -0
  324. package/static/js/ant-locale/locale31.406215d5.chunk.js +1 -0
  325. package/static/js/ant-locale/locale32.6167b5e8.chunk.js +1 -0
  326. package/static/js/ant-locale/locale33.4be05b3c.chunk.js +1 -0
  327. package/static/js/ant-locale/locale34.3813ab2f.chunk.js +1 -0
  328. package/static/js/ant-locale/locale35.d58b9c31.chunk.js +1 -0
  329. package/static/js/ant-locale/locale36.34d5c9ee.chunk.js +1 -0
  330. package/static/js/ant-locale/locale37.1c16e25b.chunk.js +1 -0
  331. package/static/js/ant-locale/locale38.dfa6d712.chunk.js +1 -0
  332. package/static/js/ant-locale/locale39.31c90381.chunk.js +1 -0
  333. package/static/js/ant-locale/locale4.e6fdd0ee.chunk.js +1 -0
  334. package/static/js/ant-locale/locale40.fe7ab935.chunk.js +1 -0
  335. package/static/js/ant-locale/locale41.4dee0621.chunk.js +1 -0
  336. package/static/js/ant-locale/locale42.7061d0fc.chunk.js +1 -0
  337. package/static/js/ant-locale/locale43.b3c810a8.chunk.js +1 -0
  338. package/static/js/ant-locale/locale44.df0a5a76.chunk.js +1 -0
  339. package/static/js/ant-locale/locale45.a7f6f97e.chunk.js +1 -0
  340. package/static/js/ant-locale/locale46.8f49c2cd.chunk.js +1 -0
  341. package/static/js/ant-locale/locale47.b84733ce.chunk.js +1 -0
  342. package/static/js/ant-locale/locale48.bfb8c2b3.chunk.js +1 -0
  343. package/static/js/ant-locale/locale49.c67382b7.chunk.js +1 -0
  344. package/static/js/ant-locale/locale5.b2b61134.chunk.js +1 -0
  345. package/static/js/ant-locale/locale50.6520fd45.chunk.js +1 -0
  346. package/static/js/ant-locale/locale51.9b89fb56.chunk.js +1 -0
  347. package/static/js/ant-locale/locale52.11d21631.chunk.js +1 -0
  348. package/static/js/ant-locale/locale53.cea142dd.chunk.js +1 -0
  349. package/static/js/ant-locale/locale54.16ef125d.chunk.js +1 -0
  350. package/static/js/ant-locale/locale55.b1a653c1.chunk.js +1 -0
  351. package/static/js/ant-locale/locale56.83c76bd5.chunk.js +1 -0
  352. package/static/js/ant-locale/locale57.e685764a.chunk.js +1 -0
  353. package/static/js/ant-locale/locale58.d003f49e.chunk.js +1 -0
  354. package/static/js/ant-locale/locale59.556522b5.chunk.js +1 -0
  355. package/static/js/ant-locale/locale60.bf3ddb83.chunk.js +1 -0
  356. package/static/js/ant-locale/locale61.30fe9720.chunk.js +1 -0
  357. package/static/js/ant-locale/locale62.b21e6edb.chunk.js +1 -0
  358. package/static/js/ant-locale/locale63.8e66417e.chunk.js +1 -0
  359. package/static/js/ant-locale/locale64.fdae6858.chunk.js +1 -0
  360. package/static/js/ant-locale/locale65.58003560.chunk.js +1 -0
  361. package/static/js/ant-locale/locale66.94ea41f2.chunk.js +1 -0
  362. package/static/js/ant-locale/locale68.8a9f32b5.chunk.js +1 -0
  363. package/static/js/ant-locale/locale69.27295717.chunk.js +1 -0
  364. package/static/js/ant-locale/locale7.1509b3e0.chunk.js +1 -0
  365. package/static/js/ant-locale/locale70.964bc038.chunk.js +1 -0
  366. package/static/js/ant-locale/locale71.99926e0d.chunk.js +1 -0
  367. package/static/js/ant-locale/locale8.134136c4.chunk.js +1 -0
  368. package/static/js/ant-locale/locale9.9b87d751.chunk.js +1 -0
  369. package/static/js/emailmaker_core.ea017ac4.js +1 -0
  370. package/static/js/mergeTags/locale0.23c595c1.chunk.js +1 -0
  371. package/static/js/mergeTags/locale1.3448e6cb.chunk.js +1 -0
  372. package/static/js/mocks.90ebae7c.chunk.js +1 -0
  373. package/static/media/ai-image.7c42c2e1.png +0 -0
  374. package/static/media/codicon.f13d28f3.ttf +0 -0
  375. package/static/media/empty-image.1827d656.png +0 -0
  376. package/static/media/frame_dark.318d7ed5.png +0 -0
  377. package/static/media/frame_light.22a9b4ec.png +0 -0
  378. package/static/media/frame_template_gallery.85693b39.png +0 -0
  379. package/static/media/icon-border-radius.2a56b93a7711558098a622296b7ae2e1.svg +1 -0
  380. package/static/media/icon-create-block.0b077f4000bf7907b9ea871d28c7fb1e.svg +1 -0
  381. package/static/media/sign_up_01.33327158.png +0 -0
  382. package/static/media/sign_up_01_blocks.5538cfdb.png +0 -0
  383. package/static/media/sign_up_02.d99d2aa6.png +0 -0
  384. package/static/media/sign_up_02_blocks.837fc2c9.png +0 -0
  385. package/static/media/sign_up_03.5545ffad.png +0 -0
  386. package/static/media/sign_up_03_blocks.126601f7.png +0 -0
  387. package/static/media/sign_up_04.398a4ca5.png +0 -0
  388. package/static/media/sign_up_04_blocks.255c5c07.png +0 -0
  389. package/static/media/sign_up_05.4c58df1b.png +0 -0
  390. package/static/media/sign_up_05_blocks.431b6844.png +0 -0
  391. package/static/media/video.854adea5.png +0 -0
  392. package/translations.pot +92 -92
  393. package/ts.worker.js +2 -0
  394. package/ts.worker.js.LICENSE.txt +21 -0
@@ -0,0 +1,96 @@
1
+ /**
2
+ * A class to parse color values
3
+ * @author Stoyan Stefanov <sstoo@gmail.com>
4
+ * @link http://www.phpied.com/rgb-color-parser-in-javascript/
5
+ * @license Use it if you like it
6
+ */
7
+
8
+ /**
9
+ * [js-sha256]{@link https://github.com/emn178/js-sha256}
10
+ *
11
+ * @version 0.11.0
12
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
13
+ * @copyright Chen, Yi-Cyuan 2014-2024
14
+ * @license MIT
15
+ */
16
+
17
+ /** @preserve
18
+ * jsPDF - PDF Document creation from JavaScript
19
+ * Version 1.4.1 Built on 2018-06-06T07:49:34.040Z
20
+ * CommitID 3233f44044
21
+ *
22
+ * Copyright (c) 2010-2016 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
23
+ * 2010 Aaron Spike, https://github.com/acspike
24
+ * 2012 Willow Systems Corporation, willow-systems.com
25
+ * 2012 Pablo Hess, https://github.com/pablohess
26
+ * 2012 Florian Jenett, https://github.com/fjenett
27
+ * 2013 Warren Weckesser, https://github.com/warrenweckesser
28
+ * 2013 Youssef Beddad, https://github.com/lifof
29
+ * 2013 Lee Driscoll, https://github.com/lsdriscoll
30
+ * 2013 Stefan Slonevskiy, https://github.com/stefslon
31
+ * 2013 Jeremy Morel, https://github.com/jmorel
32
+ * 2013 Christoph Hartmann, https://github.com/chris-rock
33
+ * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
34
+ * 2014 James Makes, https://github.com/dollaruw
35
+ * 2014 Diego Casorran, https://github.com/diegocr
36
+ * 2014 Steven Spungin, https://github.com/Flamenco
37
+ * 2014 Kenneth Glassey, https://github.com/Gavvers
38
+ *
39
+ * Licensed under the MIT License
40
+ *
41
+ * Contributor(s):
42
+ * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
43
+ * kim3er, mfo, alnorth, Flamenco
44
+ */
45
+
46
+ /** @preserve
47
+ * jsPDF addImage plugin
48
+ * Copyright (c) 2012 Jason Siefken, https://github.com/siefkenj/
49
+ * 2013 Chris Dowling, https://github.com/gingerchris
50
+ * 2013 Trinh Ho, https://github.com/ineedfat
51
+ * 2013 Edwin Alejandro Perez, https://github.com/eaparango
52
+ * 2013 Norah Smith, https://github.com/burnburnrocket
53
+ * 2014 Diego Casorran, https://github.com/diegocr
54
+ * 2014 James Robb, https://github.com/jamesbrobb
55
+ *
56
+ *
57
+ */
58
+
59
+ /** @preserve
60
+ * jsPDF fromHTML plugin. BETA stage. API subject to change. Needs browser
61
+ * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
62
+ * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
63
+ * 2014 Diego Casorran, https://github.com/diegocr
64
+ * 2014 Daniel Husar, https://github.com/danielhusar
65
+ * 2014 Wolfgang Gassler, https://github.com/woolfg
66
+ * 2014 Steven Spungin, https://github.com/flamenco
67
+ *
68
+ *
69
+ * ====================================================================
70
+ */
71
+
72
+ /** @preserve
73
+ * jsPDF split_text_to_size plugin - MIT license.
74
+ * Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
75
+ * 2014 Diego Casorran, https://github.com/diegocr
76
+ */
77
+
78
+ /** @preserve
79
+ jsPDF SVG plugin
80
+ Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
81
+ */
82
+
83
+ /** @preserve
84
+ jsPDF standard_fonts_metrics plugin
85
+ Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
86
+ MIT license.
87
+ */
88
+
89
+ /**@preserve
90
+ * ====================================================================
91
+ * jsPDF PNG PlugIn
92
+ * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
93
+ *
94
+ *
95
+ * ====================================================================
96
+ */
@@ -0,0 +1 @@
1
+ (globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9328],{42108:(t,n,e)=>{"use strict";e.d(n,{hU:()=>f,y3:()=>q,nv:()=>c});var i=e(99694),o=e.n(i),r=e(49298),s=e.n(r);const a=o()(console.error);function c(t){try{for(var n=arguments.length,e=new Array(n>1?n-1:0),i=1;i<n;i++)e[i-1]=arguments[i];return s().sprintf(t,...e)}catch(o){return o instanceof Error&&a("sprintf error: \n\n"+o.toString()),t}}var l=e(7761);const h={plural_forms:t=>1===t?0:1},u=/^i18n\.(n?gettext|has_translation)(_|$)/,f=(t,n,e)=>{const i=new l.A({}),o=new Set,r=()=>{o.forEach((t=>t()))},s=function(t){var n;let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";i.data[e]={...i.data[e],...t},i.data[e][""]={...h,...null===(n=i.data[e])||void 0===n?void 0:n[""]},delete i.pluralForms[e]},a=(t,n)=>{s(t,n),r()},c=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",n=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;return i.data[t]||s(void 0,t),i.dcnpgettext(t,n,e,o,r)},f=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"},d=(t,n,i)=>{let o=c(i,n,t);return e?(o=e.applyFilters("i18n.gettext_with_context",o,t,n,i),e.applyFilters("i18n.gettext_with_context_"+f(i),o,t,n,i)):o};if(t&&a(t,n),e){const t=t=>{u.test(t)&&r()};e.addAction("hookAdded","core/i18n",t),e.addAction("hookRemoved","core/i18n",t)}return{getLocaleData:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return i.data[t]},setLocaleData:a,addLocaleData:function(t){var n;let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";i.data[e]={...i.data[e],...t,"":{...h,...null===(n=i.data[e])||void 0===n?void 0:n[""],...null===t||void 0===t?void 0:t[""]}},delete i.pluralForms[e],r()},resetLocaleData:(t,n)=>{i.data={},i.pluralForms={},a(t,n)},subscribe:t=>(o.add(t),()=>o.delete(t)),__:(t,n)=>{let i=c(n,void 0,t);return e?(i=e.applyFilters("i18n.gettext",i,t,n),e.applyFilters("i18n.gettext_"+f(n),i,t,n)):i},_x:d,_n:(t,n,i,o)=>{let r=c(o,void 0,t,n,i);return e?(r=e.applyFilters("i18n.ngettext",r,t,n,i,o),e.applyFilters("i18n.ngettext_"+f(o),r,t,n,i,o)):r},_nx:(t,n,i,o,r)=>{let s=c(r,o,t,n,i);return e?(s=e.applyFilters("i18n.ngettext_with_context",s,t,n,i,o,r),e.applyFilters("i18n.ngettext_with_context_"+f(r),s,t,n,i,o,r)):s},isRTL:()=>"rtl"===d("ltr","text direction"),hasTranslation:(t,n,o)=>{var r,s;const a=n?n+"\x04"+t:t;let c=!(null===(r=i.data)||void 0===r||null===(s=r[null!==o&&void 0!==o?o:"default"])||void 0===s||!s[a]);return e&&(c=e.applyFilters("i18n.has_translation",c,t,n,o),c=e.applyFilters("i18n.has_translation_"+f(o),c,t,n,o)),c}}};const d=function(t){return"string"!==typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};const p=function(t){return"string"!==typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};const g=function(t,n){return function(e,i,o){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;const s=t[n];if(!p(e))return;if(!d(i))return;if("function"!==typeof o)return void console.error("The hook callback must be a function.");if("number"!==typeof r)return void console.error("If specified, the hook priority must be a number.");const a={callback:o,priority:r,namespace:i};if(s[e]){const t=s[e].handlers;let n;for(n=t.length;n>0&&!(r>=t[n-1].priority);n--);n===t.length?t[n]=a:t.splice(n,0,a),s.__current.forEach((t=>{t.name===e&&t.currentIndex>=n&&t.currentIndex++}))}else s[e]={handlers:[a],runs:0};"hookAdded"!==e&&t.doAction("hookAdded",e,i,o,r)}};const v=function(t,n){let e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,o){const r=t[n];if(!p(i))return;if(!e&&!d(o))return;if(!r[i])return 0;let s=0;if(e)s=r[i].handlers.length,r[i]={runs:r[i].runs,handlers:[]};else{const t=r[i].handlers;for(let n=t.length-1;n>=0;n--)t[n].namespace===o&&(t.splice(n,1),s++,r.__current.forEach((t=>{t.name===i&&t.currentIndex>=n&&t.currentIndex--})))}return"hookRemoved"!==i&&t.doAction("hookRemoved",i,o),s}};const m=function(t,n){return function(e,i){const o=t[n];return"undefined"!==typeof i?e in o&&o[e].handlers.some((t=>t.namespace===i)):e in o}};const y=function(t,n){let e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i){const o=t[n];o[i]||(o[i]={handlers:[],runs:0}),o[i].runs++;const r=o[i].handlers;for(var s=arguments.length,a=new Array(s>1?s-1:0),c=1;c<s;c++)a[c-1]=arguments[c];if(!r||!r.length)return e?a[0]:void 0;const l={name:i,currentIndex:0};for(o.__current.push(l);l.currentIndex<r.length;){const t=r[l.currentIndex].callback.apply(null,a);e&&(a[0]=t),l.currentIndex++}return o.__current.pop(),e?a[0]:void 0}};const w=function(t,n){return function(){var e,i;const o=t[n];return null!==(e=null===(i=o.__current[o.__current.length-1])||void 0===i?void 0:i.name)&&void 0!==e?e:null}};const _=function(t,n){return function(e){const i=t[n];return"undefined"===typeof e?"undefined"!==typeof i.__current[0]:!!i.__current[0]&&e===i.__current[0].name}};const b=function(t,n){return function(e){const i=t[n];if(p(e))return i[e]&&i[e].runs?i[e].runs:0}};class x{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=g(this,"actions"),this.addFilter=g(this,"filters"),this.removeAction=v(this,"actions"),this.removeFilter=v(this,"filters"),this.hasAction=m(this,"actions"),this.hasFilter=m(this,"filters"),this.removeAllActions=v(this,"actions",!0),this.removeAllFilters=v(this,"filters",!0),this.doAction=y(this,"actions"),this.applyFilters=y(this,"filters",!0),this.currentAction=w(this,"actions"),this.currentFilter=w(this,"filters"),this.doingAction=_(this,"actions"),this.doingFilter=_(this,"filters"),this.didAction=b(this,"actions"),this.didFilter=b(this,"filters")}}const A=function(){return new x}(),{addAction:k,addFilter:T,removeAction:F,removeFilter:j,hasAction:S,hasFilter:I,removeAllActions:E,removeAllFilters:C,doAction:O,applyFilters:L,currentAction:N,currentFilter:D,doingAction:$,doingFilter:P,didAction:W,didFilter:B,actions:R,filters:z}=A,Z=f(void 0,void 0,A),q=Z;Z.getLocaleData.bind(Z),Z.setLocaleData.bind(Z),Z.resetLocaleData.bind(Z),Z.subscribe.bind(Z),Z.__.bind(Z),Z._x.bind(Z),Z._n.bind(Z),Z._nx.bind(Z),Z.isRTL.bind(Z),Z.hasTranslation.bind(Z)},1741:(t,n,e)=>{var i;!function(){function o(t,n,e){return t.call.apply(t.bind,arguments)}function r(t,n,e){if(!t)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(e,i),t.apply(n,e)}}return function(){return t.apply(n,arguments)}}function s(t,n,e){return(s=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?o:r).apply(null,arguments)}var a=Date.now||function(){return+new Date};function c(t,n){this.a=t,this.o=n||t,this.c=this.o.document}var l=!!window.FontFace;function h(t,n,e,i){if(n=t.c.createElement(n),e)for(var o in e)e.hasOwnProperty(o)&&("style"==o?n.style.cssText=e[o]:n.setAttribute(o,e[o]));return i&&n.appendChild(t.c.createTextNode(i)),n}function u(t,n,e){(t=t.c.getElementsByTagName(n)[0])||(t=document.documentElement),t.insertBefore(e,t.lastChild)}function f(t){t.parentNode&&t.parentNode.removeChild(t)}function d(t,n,e){n=n||[],e=e||[];for(var i=t.className.split(/\s+/),o=0;o<n.length;o+=1){for(var r=!1,s=0;s<i.length;s+=1)if(n[o]===i[s]){r=!0;break}r||i.push(n[o])}for(n=[],o=0;o<i.length;o+=1){for(r=!1,s=0;s<e.length;s+=1)if(i[o]===e[s]){r=!0;break}r||n.push(i[o])}t.className=n.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function p(t,n){for(var e=t.className.split(/\s+/),i=0,o=e.length;i<o;i++)if(e[i]==n)return!0;return!1}function g(t,n,e){function i(){a&&o&&r&&(a(s),a=null)}n=h(t,"link",{rel:"stylesheet",href:n,media:"all"});var o=!1,r=!0,s=null,a=e||null;l?(n.onload=function(){o=!0,i()},n.onerror=function(){o=!0,s=Error("Stylesheet failed to load"),i()}):setTimeout((function(){o=!0,i()}),0),u(t,"head",n)}function v(t,n,e,i){var o=t.c.getElementsByTagName("head")[0];if(o){var r=h(t,"script",{src:n}),s=!1;return r.onload=r.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,e&&e(null),r.onload=r.onreadystatechange=null,"HEAD"==r.parentNode.tagName&&o.removeChild(r))},o.appendChild(r),setTimeout((function(){s||(s=!0,e&&e(Error("Script load timeout")))}),i||5e3),r}return null}function m(){this.a=0,this.c=null}function y(t){return t.a++,function(){t.a--,_(t)}}function w(t,n){t.c=n,_(t)}function _(t){0==t.a&&t.c&&(t.c(),t.c=null)}function b(t){this.a=t||"-"}function x(t,n){this.c=t,this.f=4,this.a="n";var e=(n||"n4").match(/^([nio])([1-9])$/i);e&&(this.a=e[1],this.f=parseInt(e[2],10))}function A(t){var n=[];t=t.split(/,\s*/);for(var e=0;e<t.length;e++){var i=t[e].replace(/['"]/g,"");-1!=i.indexOf(" ")||/^\d/.test(i)?n.push("'"+i+"'"):n.push(i)}return n.join(",")}function k(t){return t.a+t.f}function T(t){var n="normal";return"o"===t.a?n="oblique":"i"===t.a&&(n="italic"),n}function F(t){var n=4,e="n",i=null;return t&&((i=t.match(/(normal|oblique|italic)/i))&&i[1]&&(e=i[1].substr(0,1).toLowerCase()),(i=t.match(/([1-9]00|normal|bold)/i))&&i[1]&&(/bold/i.test(i[1])?n=7:/[1-9]00/.test(i[1])&&(n=parseInt(i[1].substr(0,1),10)))),e+n}function j(t,n){this.c=t,this.f=t.o.document.documentElement,this.h=n,this.a=new b("-"),this.j=!1!==n.events,this.g=!1!==n.classes}function S(t){if(t.g){var n=p(t.f,t.a.c("wf","active")),e=[],i=[t.a.c("wf","loading")];n||e.push(t.a.c("wf","inactive")),d(t.f,e,i)}I(t,"inactive")}function I(t,n,e){t.j&&t.h[n]&&(e?t.h[n](e.c,k(e)):t.h[n]())}function E(){this.c={}}function C(t,n){this.c=t,this.f=n,this.a=h(this.c,"span",{"aria-hidden":"true"},this.f)}function O(t){u(t.c,"body",t.a)}function L(t){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+A(t.c)+";font-style:"+T(t)+";font-weight:"+t.f+"00;"}function N(t,n,e,i,o,r){this.g=t,this.j=n,this.a=i,this.c=e,this.f=o||3e3,this.h=r||void 0}function D(t,n,e,i,o,r,s){this.v=t,this.B=n,this.c=e,this.a=i,this.s=s||"BESbswy",this.f={},this.w=o||3e3,this.u=r||null,this.m=this.j=this.h=this.g=null,this.g=new C(this.c,this.s),this.h=new C(this.c,this.s),this.j=new C(this.c,this.s),this.m=new C(this.c,this.s),t=L(t=new x(this.a.c+",serif",k(this.a))),this.g.a.style.cssText=t,t=L(t=new x(this.a.c+",sans-serif",k(this.a))),this.h.a.style.cssText=t,t=L(t=new x("serif",k(this.a))),this.j.a.style.cssText=t,t=L(t=new x("sans-serif",k(this.a))),this.m.a.style.cssText=t,O(this.g),O(this.h),O(this.j),O(this.m)}b.prototype.c=function(t){for(var n=[],e=0;e<arguments.length;e++)n.push(arguments[e].replace(/[\W_]+/g,"").toLowerCase());return n.join(this.a)},N.prototype.start=function(){var t=this.c.o.document,n=this,e=a(),i=new Promise((function(i,o){!function r(){a()-e>=n.f?o():t.fonts.load(function(t){return T(t)+" "+t.f+"00 300px "+A(t.c)}(n.a),n.h).then((function(t){1<=t.length?i():setTimeout(r,25)}),(function(){o()}))}()})),o=null,r=new Promise((function(t,e){o=setTimeout(e,n.f)}));Promise.race([r,i]).then((function(){o&&(clearTimeout(o),o=null),n.g(n.a)}),(function(){n.j(n.a)}))};var $={D:"serif",C:"sans-serif"},P=null;function W(){if(null===P){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);P=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))}return P}function B(t,n,e){for(var i in $)if($.hasOwnProperty(i)&&n===t.f[$[i]]&&e===t.f[$[i]])return!0;return!1}function R(t){var n,e=t.g.a.offsetWidth,i=t.h.a.offsetWidth;(n=e===t.f.serif&&i===t.f["sans-serif"])||(n=W()&&B(t,e,i)),n?a()-t.A>=t.w?W()&&B(t,e,i)&&(null===t.u||t.u.hasOwnProperty(t.a.c))?z(t,t.v):z(t,t.B):function(t){setTimeout(s((function(){R(this)}),t),50)}(t):z(t,t.v)}function z(t,n){setTimeout(s((function(){f(this.g.a),f(this.h.a),f(this.j.a),f(this.m.a),n(this.a)}),t),0)}function Z(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}D.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=a(),R(this)};var q=null;function H(t){0==--t.f&&t.j&&(t.m?((t=t.a).g&&d(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),I(t,"active")):S(t.a))}function M(t){this.j=t,this.a=new E,this.h=0,this.f=this.g=!0}function U(t,n,e,i,o){var r=0==--t.h;(t.f||t.g)&&setTimeout((function(){var t=o||null,a=i||{};if(0===e.length&&r)S(n.a);else{n.f+=e.length,r&&(n.j=r);var c,l=[];for(c=0;c<e.length;c++){var h=e[c],u=a[h.c],f=n.a,p=h;if(f.g&&d(f.f,[f.a.c("wf",p.c,k(p).toString(),"loading")]),I(f,"fontloading",p),f=null,null===q)if(window.FontFace){p=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);q=p?42<parseInt(p[1],10):!g}else q=!1;f=q?new N(s(n.g,n),s(n.h,n),n.c,h,n.s,u):new D(s(n.g,n),s(n.h,n),n.c,h,n.s,t,u),l.push(f)}for(c=0;c<l.length;c++)l[c].start()}}),0)}function G(t,n){this.c=t,this.a=n}function K(t,n){this.c=t,this.a=n}function V(t,n){this.c=t||X,this.a=[],this.f=[],this.g=n||""}Z.prototype.g=function(t){var n=this.a;n.g&&d(n.f,[n.a.c("wf",t.c,k(t).toString(),"active")],[n.a.c("wf",t.c,k(t).toString(),"loading"),n.a.c("wf",t.c,k(t).toString(),"inactive")]),I(n,"fontactive",t),this.m=!0,H(this)},Z.prototype.h=function(t){var n=this.a;if(n.g){var e=p(n.f,n.a.c("wf",t.c,k(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,k(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,k(t).toString(),"inactive")),d(n.f,i,o)}I(n,"fontinactive",t),H(this)},M.prototype.load=function(t){this.c=new c(this.j,t.context||this.j),this.g=!1!==t.events,this.f=!1!==t.classes,function(t,n,e){var i=[],o=e.timeout;!function(t){t.g&&d(t.f,[t.a.c("wf","loading")]),I(t,"loading")}(n);i=function(t,n,e){var i,o=[];for(i in n)if(n.hasOwnProperty(i)){var r=t.c[i];r&&o.push(r(n[i],e))}return o}(t.a,e,t.c);var r=new Z(t.c,n,o);for(t.h=i.length,n=0,e=i.length;n<e;n++)i[n].load((function(n,e,i){U(t,r,n,e,i)}))}(this,new j(this.c,t),t)},G.prototype.load=function(t){function n(){if(r["__mti_fntLst"+i]){var e,o=r["__mti_fntLst"+i](),s=[];if(o)for(var a=0;a<o.length;a++){var c=o[a].fontfamily;void 0!=o[a].fontStyle&&void 0!=o[a].fontWeight?(e=o[a].fontStyle+o[a].fontWeight,s.push(new x(c,e))):s.push(new x(c))}t(s)}else setTimeout((function(){n()}),50)}var e=this,i=e.a.projectId,o=e.a.version;if(i){var r=e.c.o;v(this.c,(e.a.api||"https://fast.fonts.net/jsapi")+"/"+i+".js"+(o?"?v="+o:""),(function(o){o?t([]):(r["__MonotypeConfiguration__"+i]=function(){return e.a},n())})).id="__MonotypeAPIScript__"+i}else t([])},K.prototype.load=function(t){var n,e,i=this.a.urls||[],o=this.a.families||[],r=this.a.testStrings||{},s=new m;for(n=0,e=i.length;n<e;n++)g(this.c,i[n],y(s));var a=[];for(n=0,e=o.length;n<e;n++)if((i=o[n].split(":"))[1])for(var c=i[1].split(","),l=0;l<c.length;l+=1)a.push(new x(i[0],c[l]));else a.push(new x(i[0]));w(s,(function(){t(a,r)}))};var X="https://fonts.googleapis.com/css";function J(t){this.f=t,this.a=[],this.c={}}var Q={latin:"BESbswy","latin-ext":"\xe7\xf6\xfc\u011f\u015f",cyrillic:"\u0439\u044f\u0416",greek:"\u03b1\u03b2\u03a3",khmer:"\u1780\u1781\u1782",Hanuman:"\u1780\u1781\u1782"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},tt={i:"i",italic:"i",n:"n",normal:"n"},nt=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function et(t,n){this.c=t,this.a=n}var it={Arimo:!0,Cousine:!0,Tinos:!0};function ot(t,n){this.c=t,this.a=n}function rt(t,n){this.c=t,this.f=n,this.a=[]}et.prototype.load=function(t){var n=new m,e=this.c,i=new V(this.a.api,this.a.text),o=this.a.families;!function(t,n){for(var e=n.length,i=0;i<e;i++){var o=n[i].split(":");3==o.length&&t.f.push(o.pop());var r="";2==o.length&&""!=o[1]&&(r=":"),t.a.push(o.join(r))}}(i,o);var r=new J(o);!function(t){for(var n=t.f.length,e=0;e<n;e++){var i=t.f[e].split(":"),o=i[0].replace(/\+/g," "),r=["n4"];if(2<=i.length){var s;if(s=[],a=i[1])for(var a,c=(a=a.split(",")).length,l=0;l<c;l++){var h;if((h=a[l]).match(/^[\w-]+$/))if(null==(u=nt.exec(h.toLowerCase())))h="";else{if(h=null==(h=u[2])||""==h?"n":tt[h],null==(u=u[1])||""==u)u="4";else var u=Y[u]||(isNaN(u)?"4":u.substr(0,1));h=[h,u].join("")}else h="";h&&s.push(h)}0<s.length&&(r=s),3==i.length&&(s=[],0<(i=(i=i[2])?i.split(","):s).length&&(i=Q[i[0]])&&(t.c[o]=i))}for(t.c[o]||(i=Q[o])&&(t.c[o]=i),i=0;i<r.length;i+=1)t.a.push(new x(o,r[i]))}}(r),g(e,function(t){if(0==t.a.length)throw Error("No fonts to load!");if(-1!=t.c.indexOf("kit="))return t.c;for(var n=t.a.length,e=[],i=0;i<n;i++)e.push(t.a[i].replace(/ /g,"+"));return n=t.c+"?family="+e.join("%7C"),0<t.f.length&&(n+="&subset="+t.f.join(",")),0<t.g.length&&(n+="&text="+encodeURIComponent(t.g)),n}(i),y(n)),w(n,(function(){t(r.a,r.c,it)}))},ot.prototype.load=function(t){var n=this.a.id,e=this.c.o;n?v(this.c,(this.a.api||"https://use.typekit.net")+"/"+n+".js",(function(n){if(n)t([]);else if(e.Typekit&&e.Typekit.config&&e.Typekit.config.fn){n=e.Typekit.config.fn;for(var i=[],o=0;o<n.length;o+=2)for(var r=n[o],s=n[o+1],a=0;a<s.length;a++)i.push(new x(r,s[a]));try{e.Typekit.load({events:!1,classes:!1,async:!0})}catch(c){}t(i)}}),2e3):t([])},rt.prototype.load=function(t){var n=this.f.id,e=this.c.o,i=this;n?(e.__webfontfontdeckmodule__||(e.__webfontfontdeckmodule__={}),e.__webfontfontdeckmodule__[n]=function(n,e){for(var o=0,r=e.fonts.length;o<r;++o){var s=e.fonts[o];i.a.push(new x(s.name,F("font-weight:"+s.weight+";font-style:"+s.style)))}t(i.a)},v(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(t){return t.o.location.hostname||t.a.location.hostname}(this.c)+"/"+n+".js",(function(n){n&&t([])}))):t([])};var st=new M(window);st.a.c.custom=function(t,n){return new K(n,t)},st.a.c.fontdeck=function(t,n){return new rt(n,t)},st.a.c.monotype=function(t,n){return new G(n,t)},st.a.c.typekit=function(t,n){return new ot(n,t)},st.a.c.google=function(t,n){return new et(n,t)};var at={load:s(st.load,st)};void 0===(i=function(){return at}.call(n,e,n,t))||(t.exports=i)}()},88317:(t,n,e)=>{"use strict";var i=e(11980),o=e(35359),r=e(26897),s=e(4545),a=e(75781),c=s("Object.prototype.toString"),l=e(91002)(),h="undefined"===typeof globalThis?e.g:globalThis,u=o(),f=s("String.prototype.slice"),d=Object.getPrototypeOf,p=s("Array.prototype.indexOf",!0)||function(t,n){for(var e=0;e<t.length;e+=1)if(t[e]===n)return e;return-1},g={__proto__:null};i(u,l&&a&&d?function(t){var n=new h[t];if(Symbol.toStringTag in n){var e=d(n),i=a(e,Symbol.toStringTag);if(!i){var o=d(e);i=a(o,Symbol.toStringTag)}g["$"+t]=r(i.get)}}:function(t){var n=new h[t],e=n.slice||n.set;e&&(g["$"+t]=r(e))});t.exports=function(t){if(!t||"object"!==typeof t)return!1;if(!l){var n=f(c(t),8,-1);return p(u,n)>-1?n:"Object"===n&&function(t){var n=!1;return i(g,(function(e,i){if(!n)try{e(t),n=f(i,1)}catch(o){}})),n}(t)}return a?function(t){var n=!1;return i(g,(function(e,i){if(!n)try{"$"+e(t)===i&&(n=f(i,1))}catch(o){}})),n}(t):null}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9331],{89331:(e,t,i)=>{i.r(t),i.d(t,{CommonFindController:()=>rt,FindController:()=>at,MatchFindAction:()=>gt,NextMatchFindAction:()=>_t,NextSelectionMatchFindAction:()=>mt,PreviousMatchFindAction:()=>ut,PreviousSelectionMatchFindAction:()=>ft,SelectionMatchFindAction:()=>pt,StartFindAction:()=>ht,StartFindReplaceAction:()=>St,StartFindWithArgsAction:()=>ct,StartFindWithSelectionAction:()=>lt,getSelectionSearchString:()=>nt});var s=i(85345),o=i(33793),n=i(22231),r=i(95713),a=i(35725),h=i(8415),d=i(51251),c=i(63102),l=i(93708),g=i(4707),_=i(62179),u=i(1528),p=i(21174),m=i(64709),f=i(87357);class S{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map((e=>this._editor.getModel().getDecorationRange(e))).filter((e=>!!e));if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getCurrentMatchesPosition(e){const t=this._editor.getModel().getDecorationsInRange(e);for(const i of t){const e=i.options;if(e===S._FIND_MATCH_DECORATION||e===S._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(i.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let s=0,o=this._decorations.length;s<o;s++){const o=this._editor.getModel().getDecorationRange(this._decorations[s]);if(e.equalsRange(o)){t=this._decorations[s],i=s+1;break}}return null===this._highlightedDecorationId&&null===t||this._editor.changeDecorations((e=>{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,S._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,S._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let i=this._editor.getModel().getDecorationRange(t);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){const e=i.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);i=new l.Q(i.startLineNumber,i.startColumn,e,t)}this._rangeHighlightDecorationId=e.addDecoration(i,S._RANGE_HIGHLIGHT_DECORATION)}})),i}set(e,t){this._editor.changeDecorations((i=>{let s=S._FIND_MATCH_DECORATION;const o=[];if(e.length>1e3){s=S._FIND_MATCH_NO_OVERVIEW_DECORATION;const t=this._editor.getModel().getLineCount(),i=this._editor.getLayoutInfo().height/t,n=Math.max(2,Math.ceil(3/i));let r=e[0].range.startLineNumber,a=e[0].range.endLineNumber;for(let s=1,h=e.length;s<h;s++){const t=e[s].range;a+n>=t.startLineNumber?t.endLineNumber>a&&(a=t.endLineNumber):(o.push({range:new l.Q(r,1,a,1),options:S._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),r=t.startLineNumber,a=t.endLineNumber)}o.push({range:new l.Q(r,1,a,1),options:S._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const n=new Array(e.length);for(let t=0,r=e.length;t<r;t++)n[t]={range:e[t].range,options:s};this._decorations=i.deltaDecorations(this._decorations,n),this._overviewRulerApproximateDecorations=i.deltaDecorations(this._overviewRulerApproximateDecorations,o),this._rangeHighlightDecorationId&&(i.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach((e=>i.removeDecoration(e))),this._findScopeDecorationIds=[]),(null===t||void 0===t?void 0:t.length)&&(this._findScopeDecorationIds=t.map((e=>i.addDecoration(e,S._FIND_SCOPE_DECORATION))))}))}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],s=this._editor.getModel().getDecorationRange(i);if(s&&!(s.endLineNumber>e.lineNumber)){if(s.endLineNumber<e.lineNumber)return s;if(!(s.endColumn>e.column))return s}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let t=0,i=this._decorations.length;t<i;t++){const i=this._decorations[t],s=this._editor.getModel().getDecorationRange(i);if(s&&!(s.startLineNumber<e.lineNumber)){if(s.startLineNumber>e.lineNumber)return s;if(!(s.startColumn<e.column))return s}}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}}S._CURRENT_FIND_MATCH_DECORATION=p.kI.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:(0,f.Yf)(m.fAP),position:u.A5.Center},minimap:{color:(0,f.Yf)(m.AjU),position:u.R3.Inline}}),S._FIND_MATCH_DECORATION=p.kI.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:(0,f.Yf)(m.fAP),position:u.A5.Center},minimap:{color:(0,f.Yf)(m.AjU),position:u.R3.Inline}}),S._FIND_MATCH_NO_OVERVIEW_DECORATION=p.kI.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0}),S._FIND_MATCH_ONLY_OVERVIEW_DECORATION=p.kI.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:(0,f.Yf)(m.fAP),position:u.A5.Center}}),S._RANGE_HIGHLIGHT_DECORATION=p.kI.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0}),S._FIND_SCOPE_DECORATION=p.kI.register({description:"find-scope",className:"findScope",isWholeLine:!0});class v{constructor(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){const e=[];for(let t=0;t<this._ranges.length;t++)e.push({range:this._ranges[t],text:this._replaceStrings[t]});e.sort(((e,t)=>l.Q.compareRangesUsingStarts(e.range,t.range)));const i=[];let s=e[0];for(let t=1;t<e.length;t++)s.range.endLineNumber===e[t].range.startLineNumber&&s.range.endColumn===e[t].range.startColumn?(s.range=s.range.plusRange(e[t].range),s.text=s.text+e[t].text):(i.push(s),s=e[t]);i.push(s);for(const o of i)t.addEditOperation(o.range,o.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}var C=i(41749);class b{constructor(e){this.staticValue=e,this.kind=0}}class R{constructor(e){this.pieces=e,this.kind=1}}class w{constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new b(e[0].staticValue):this._state=new R(e):this._state=new b("")}static fromStaticValue(e){return new w([x.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}buildReplaceString(e,t){if(0===this._state.kind)return t?(0,C.u)(e,this._state.staticValue):this._state.staticValue;let i="";for(let s=0,o=this._state.pieces.length;s<o;s++){const t=this._state.pieces[s];if(null!==t.staticValue){i+=t.staticValue;continue}let o=w._substitute(t.matchIndex,e);if(null!==t.caseOps&&t.caseOps.length>0){const e=[],i=t.caseOps.length;let s=0;for(let n=0,r=o.length;n<r;n++){if(s>=i){e.push(o.slice(n));break}switch(t.caseOps[s]){case"U":e.push(o[n].toUpperCase());break;case"u":e.push(o[n].toUpperCase()),s++;break;case"L":e.push(o[n].toLowerCase());break;case"l":e.push(o[n].toLowerCase()),s++;break;default:e.push(o[n])}}o=e.join("")}i+=o}return i}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let i="";for(;e>0;){if(e<t.length){return(t[e]||"")+i}i=String(e%10)+i,e=Math.floor(e/10)}return"$"+i}}class x{constructor(e,t,i){this.staticValue=e,this.matchIndex=t,i&&0!==i.length?this.caseOps=i.slice(0):this.caseOps=null}static staticValue(e){return new x(e,-1,null)}static caseOps(e,t){return new x(null,e,t)}}class I{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){0!==e.length&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,i){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=x.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=x.caseOps(e,i),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=x.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new w(this._result)}}var y=i(75664);const N=new y.N1("findWidgetVisible",!1),F=(N.toNegated(),new y.N1("findInputFocussed",!1)),O=new y.N1("replaceInputFocussed",!1),E={primary:545,mac:{primary:2593}},k={primary:565,mac:{primary:2613}},M={primary:560,mac:{primary:2608}},D={primary:554,mac:{primary:2602}},A={primary:558,mac:{primary:2606}},T="actions.find",W="actions.findWithSelection",L="editor.actions.findWithArgs",P="editor.action.nextMatchFindAction",B="editor.action.previousMatchFindAction",V="editor.action.nextSelectionMatchFindAction",H="editor.action.previousSelectionMatchFindAction",$="editor.action.startFindReplaceAction",U="closeFindWidget",Z="toggleFindCaseSensitive",q="toggleFindWholeWord",z="toggleFindRegex",G="toggleFindInSelection",K="togglePreserveCase",Q="editor.action.replaceOne",j="editor.action.replaceAll",Y="editor.action.selectAllMatches",X=19999;class J{constructor(e,t){this._toDispose=new o.Cm,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new s.pc,this._decorations=new S(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new s.uC((()=>this.research(!1)),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((e=>{3!==e.reason&&5!==e.reason&&6!==e.reason||this._decorations.setStartPosition(this._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((e=>{this._ignoreModelContentChanged||(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,o.AS)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){if(!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)){this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet((()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;"undefined"!==typeof t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map((e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new l.Q(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e})));const s=this._findMatches(i,!1,X);this._decorations.set(s,i);const o=this._editor.getSelection();let n=this._decorations.getCurrentMatchesPosition(o);if(0===n&&s.length>0){const e=(0,h.aB)(s.map((e=>e.range)),(e=>l.Q.compareRangesUsingStarts(e,o)>=0));n=e>0?e-1+1:n}this._state.changeMatchInfo(n,this._decorations.getCount(),void 0),e&&this._editor.getOption(36).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:s}=e;const o=this._editor.getModel();return t||1===s?(1===i?i=o.getLineCount():i--,s=o.getLineMaxColumn(i)):s--,new c.y(i,s)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const t=this._decorations.matchAfterPosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<X){let t=this._decorations.matchBeforePosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),t=this._decorations.matchBeforePosition(e)),void(t&&this._setCurrentFindMatch(t))}if(this._cannotFind())return;const i=this._decorations.getFindScope(),s=J._getSearchRange(this._editor.getModel(),i);s.getEndPosition().isBefore(e)&&(e=s.getEndPosition()),e.isBefore(s.getStartPosition())&&(e=s.getEndPosition());const{lineNumber:o,column:n}=e,r=this._editor.getModel();let a=new c.y(o,n),h=r.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(118):null,!1);return h&&h.range.isEmpty()&&h.range.getStartPosition().equals(a)&&(a=this._prevSearchPosition(a),h=r.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(118):null,!1)),h?t||s.containsRange(h.range)?void this._setCurrentFindMatch(h.range):this._moveToPrevMatch(h.range.getStartPosition(),!0):void 0}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:s}=e;const o=this._editor.getModel();return t||s===o.getLineMaxColumn(i)?(i===o.getLineCount()?i=1:i++,s=1):s++,new c.y(i,s)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const t=this._decorations.matchBeforePosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<X){let t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}const t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,i,s=!1){if(this._cannotFind())return null;const o=this._decorations.getFindScope(),n=J._getSearchRange(this._editor.getModel(),o);n.getEndPosition().isBefore(e)&&(e=n.getStartPosition()),e.isBefore(n.getStartPosition())&&(e=n.getStartPosition());const{lineNumber:r,column:a}=e,h=this._editor.getModel();let d=new c.y(r,a),l=h.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(118):null,t);return i&&l&&l.range.isEmpty()&&l.range.getStartPosition().equals(d)&&(d=this._nextSearchPosition(d),l=h.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(118):null,t)),l?s||n.containsRange(l.range)?l:this._getNextMatch(l.range.getEndPosition(),t,i,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_getReplacePattern(){return this._state.isRegex?function(e){if(!e||0===e.length)return new w(null);const t=[],i=new I(e);for(let s=0,o=e.length;s<o;s++){const n=e.charCodeAt(s);if(92!==n){if(36===n){if(s++,s>=o)break;const n=e.charCodeAt(s);if(36===n){i.emitUnchanged(s-1),i.emitStatic("$",s+1);continue}if(48===n||38===n){i.emitUnchanged(s-1),i.emitMatchIndex(0,s+1,t),t.length=0;continue}if(49<=n&&n<=57){let r=n-48;if(s+1<o){const o=e.charCodeAt(s+1);if(48<=o&&o<=57){s++,r=10*r+(o-48),i.emitUnchanged(s-2),i.emitMatchIndex(r,s+1,t),t.length=0;continue}}i.emitUnchanged(s-1),i.emitMatchIndex(r,s+1,t),t.length=0;continue}}}else{if(s++,s>=o)break;const n=e.charCodeAt(s);switch(n){case 92:i.emitUnchanged(s-1),i.emitStatic("\\",s+1);break;case 110:i.emitUnchanged(s-1),i.emitStatic("\n",s+1);break;case 116:i.emitUnchanged(s-1),i.emitStatic("\t",s+1);break;case 117:case 85:case 108:case 76:i.emitUnchanged(s-1),i.emitStatic("",s+1),t.push(String.fromCharCode(n))}}}return i.finalize()}(this._state.replaceString):w.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;const e=this._getReplacePattern(),t=this._editor.getSelection(),i=this._getNextMatch(t.getStartPosition(),!0,!1);if(i)if(t.equalsRange(i.range)){const s=e.buildReplaceString(i.matches,this._state.preserveCase),o=new d.iu(t,s);this._executeEditorCommand("replace",o),this._decorations.setStartPosition(new c.y(t.startLineNumber,t.startColumn+s.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}_findMatches(e,t,i){const s=(e||[null]).map((e=>J._getSearchRange(this._editor.getModel(),e)));return this._editor.getModel().findMatches(this._state.searchString,s,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(118):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=X?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const e=new _.lt(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(118):null).parseSearchRequest();if(!e)return;let t=e.regex;if(!t.multiline){let e="mu";t.ignoreCase&&(e+="i"),t.global&&(e+="g"),t=new RegExp(t.source,e)}const i=this._editor.getModel(),s=i.getValue(1),o=i.getFullModelRange(),n=this._getReplacePattern();let r;const a=this._state.preserveCase;r=n.hasReplacementPatterns||a?s.replace(t,(function(){return n.buildReplaceString(arguments,a)})):s.replace(t,n.buildReplaceString(null,a));const h=new d.ui(o,r,this._editor.getSelection());this._executeEditorCommand("replaceAll",h)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),s=[];for(let n=0,r=i.length;n<r;n++)s[n]=t.buildReplaceString(i[n].matches,this._state.preserveCase);const o=new v(this._editor.getSelection(),i.map((e=>e.range)),s);this._executeEditorCommand("replaceAll",o)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let t=this._findMatches(e,!1,1073741824).map((e=>new g.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)));const i=this._editor.getSelection();for(let s=0,o=t.length;s<o;s++){if(t[s].equalsRange(i)){t=[i].concat(t.slice(0,s)).concat(t.slice(s+1));break}}this._editor.setSelections(t)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}var ee=i(69848),te=i(88671),ie=i(11063);class se extends ie.x{constructor(e,t,i,o){super(),this._hideSoon=this._register(new s.uC((()=>this._hide()),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const n=o.getColorTheme().getColor(m.uNK),r=o.getColorTheme().getColor(m.$$0),a=o.getColorTheme().getColor(m.c1f);this.caseSensitive=this._register(new te.bc({appendTitle:this._keybindingLabelFor(Z),isChecked:this._state.matchCase,inputActiveOptionBorder:n,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange((()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)}))),this.wholeWords=this._register(new te.nV({appendTitle:this._keybindingLabelFor(q),isChecked:this._state.wholeWord,inputActiveOptionBorder:n,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange((()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)}))),this.regex=this._register(new te.Ix({appendTitle:this._keybindingLabelFor(z),isChecked:this._state.isRegex,inputActiveOptionBorder:n,inputActiveOptionForeground:r,inputActiveOptionBackground:a})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange((()=>{this._state.change({isRegex:this.regex.checked},!1)}))),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange((e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()}))),this._register(ee.ko(this._domNode,ee.Bx.MOUSE_LEAVE,(e=>this._onMouseLeave()))),this._register(ee.ko(this._domNode,"mouseover",(e=>this._onMouseOver()))),this._applyTheme(o.getColorTheme()),this._register(o.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return se.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){const t={inputActiveOptionBorder:e.getColor(m.uNK),inputActiveOptionForeground:e.getColor(m.$$0),inputActiveOptionBackground:e.getColor(m.c1f)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}se.ID="editor.contrib.findOptionsWidget",(0,f.zy)(((e,t)=>{const i=e.getColor(m.CgL);i&&t.addRule(`.monaco-editor .findOptionsWidget { background-color: ${i}; }`);const s=e.getColor(m.FiB);s&&t.addRule(`.monaco-editor .findOptionsWidget { color: ${s}; }`);const o=e.getColor(m.f9l);o&&t.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${o}; }`);const n=e.getColor(m.b1q);n&&t.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${n}; }`)}));var oe=i(16201);function ne(e,t){return 1===e||2!==e&&t}class re extends o.jG{constructor(){super(),this._onFindReplaceStateChange=this._register(new oe.vl),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return ne(this._isRegexOverride,this._isRegex)}get wholeWord(){return ne(this._wholeWordOverride,this._wholeWord)}get matchCase(){return ne(this._matchCaseOverride,this._matchCase)}get preserveCase(){return ne(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}changeMatchInfo(e,t,i){const s={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let o=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,s.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,s.matchesCount=!0,o=!0),"undefined"!==typeof i&&(l.Q.equalsRange(this._currentMatch,i)||(this._currentMatch=i,s.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(s)}change(e,t,i=!0){var s;const o={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let n=!1;const r=this.isRegex,a=this.wholeWord,h=this.matchCase,d=this.preserveCase;"undefined"!==typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,o.searchString=!0,n=!0),"undefined"!==typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,o.replaceString=!0,n=!0),"undefined"!==typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,o.isRevealed=!0,n=!0),"undefined"!==typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,o.isReplaceRevealed=!0,n=!0),"undefined"!==typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!==typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!==typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!==typeof e.preserveCase&&(this._preserveCase=e.preserveCase),"undefined"!==typeof e.searchScope&&((null===(s=e.searchScope)||void 0===s?void 0:s.every((e=>{var t;return null===(t=this._searchScope)||void 0===t?void 0:t.some((t=>!l.Q.equalsRange(t,e)))})))||(this._searchScope=e.searchScope,o.searchScope=!0,n=!0)),"undefined"!==typeof e.loop&&this._loop!==e.loop&&(this._loop=e.loop,o.loop=!0,n=!0),"undefined"!==typeof e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,o.isSearching=!0,n=!0),"undefined"!==typeof e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,o.filters=!0,n=!0),this._isRegexOverride="undefined"!==typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!==typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!==typeof e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride="undefined"!==typeof e.preserveCaseOverride?e.preserveCaseOverride:0,r!==this.isRegex&&(n=!0,o.isRegex=!0),a!==this.wholeWord&&(n=!0,o.wholeWord=!0),h!==this.matchCase&&(n=!0,o.matchCase=!0),d!==this.preserveCase&&(n=!0,o.preserveCase=!0),n&&this._onFindReplaceStateChange.fire(o)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=X}}var ae=i(83269),he=i(18643),de=i(29193),ce=i(15441),le=i(79734),ge=i(76394),_e=i(84978),ue=i(4720),pe=i(8360),me=i(13587),fe=i(80708),Se=function(e,t,i,s){return new(i||(i=Promise))((function(o,n){function r(e){try{h(s.next(e))}catch(t){n(t)}}function a(e){try{h(s.throw(e))}catch(t){n(t)}}function h(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}h((s=s.apply(e,t||[])).next())}))};const ve=(0,me.pU)("find-selection",ce.W6.selection,_e.kg("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),Ce=(0,me.pU)("find-collapsed",ce.W6.chevronRight,_e.kg("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),be=(0,me.pU)("find-expanded",ce.W6.chevronDown,_e.kg("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),Re=(0,me.pU)("find-replace",ce.W6.replace,_e.kg("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),we=(0,me.pU)("find-replace-all",ce.W6.replaceAll,_e.kg("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),xe=(0,me.pU)("find-previous-match",ce.W6.arrowUp,_e.kg("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Ie=(0,me.pU)("find-next-match",ce.W6.arrowDown,_e.kg("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),ye=_e.kg("label.find","Find"),Ne=_e.kg("placeholder.find","Find"),Fe=_e.kg("label.previousMatchButton","Previous Match"),Oe=_e.kg("label.nextMatchButton","Next Match"),Ee=_e.kg("label.toggleSelectionFind","Find in Selection"),ke=_e.kg("label.closeButton","Close"),Me=_e.kg("label.replace","Replace"),De=_e.kg("placeholder.replace","Replace"),Ae=_e.kg("label.replaceButton","Replace"),Te=_e.kg("label.replaceAllButton","Replace All"),We=_e.kg("label.toggleReplaceButton","Toggle Replace"),Le=_e.kg("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",X),Pe=_e.kg("label.matchesLocation","{0} of {1}"),Be=_e.kg("label.noResults","No results"),Ve=419;let He=69;const $e="ctrlEnterReplaceAll.windows.donotask",Ue=ge.zx?256:2048;class Ze{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function qe(e,t,i){const s=!!t.match(/\n/);i&&s&&i.selectionStart>0&&e.stopPropagation()}function ze(e,t,i){const s=!!t.match(/\n/);i&&s&&i.selectionEnd<i.value.length&&e.stopPropagation()}class Ge extends ie.x{constructor(e,t,i,n,r,a,h,d,c){super(),this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=i,this._contextViewProvider=n,this._keybindingService=r,this._contextKeyService=a,this._storageService=d,this._notificationService=c,this._ctrlEnterReplaceAllWarningPrompted=!!d.getBoolean($e,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new s.ve(500),this._register((0,o.s)((()=>this._updateHistoryDelayer.cancel()))),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration((e=>{if(e.hasChanged(82)&&(this._codeEditor.getOption(82)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(132)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(36)){const e=this._codeEditor.getOption(36).addExtraSpaceOnTop;e&&!this._viewZone&&(this._viewZone=new Ze(0),this._showViewZone()),!e&&this._viewZone&&this._removeViewZone()}}))),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection((()=>{this._isVisible&&this._updateToggleSelectionFindButton()}))),this._register(this._codeEditor.onDidFocusEditorWidget((()=>Se(this,void 0,void 0,(function*(){if(this._isVisible){const e=yield this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())}}))))),this._findInputFocused=F.bindTo(a),this._findFocusTracker=this._register(ee.w5(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus((()=>{this._findInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._findFocusTracker.onDidBlur((()=>{this._findInputFocused.set(!1)}))),this._replaceInputFocused=O.bindTo(a),this._replaceFocusTracker=this._register(ee.w5(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus((()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._replaceFocusTracker.onDidBlur((()=>{this._replaceInputFocused.set(!1)}))),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(36).addExtraSpaceOnTop&&(this._viewZone=new Ze(0)),this._applyTheme(h.getColorTheme()),this._register(h.onDidColorThemeChange(this._applyTheme.bind(this))),this._register(this._codeEditor.onDidChangeModel((()=>{this._isVisible&&(this._viewZoneId=void 0)}))),this._register(this._codeEditor.onDidScrollChange((e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout((()=>{this._layoutViewZone()}),0)})))}getId(){return Ge.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getOption(82)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=ee.Tr(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const e=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",e),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,le.dz)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=He+"px",this._state.matchesCount>=X?this._matchesCount.title=Le:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=X&&(t+="+");let i=String(this._state.matchesPosition);"0"===i&&(i="?"),e=n.GP(Pe,i,t)}else e=Be;this._matchesCount.appendChild(document.createTextNode(e)),(0,ae.xE)(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),He=Math.max(He,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===Be)return""===i?_e.kg("ariaSearchNoResultEmpty","{0} found",e):_e.kg("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const s=_e.kg("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),o=this._codeEditor.getModel();if(o&&t.startLineNumber<=o.getLineCount()&&t.startLineNumber>=1){return`${o.getLineContent(t.startLineNumber)}, ${s}`}return s}return _e.kg("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(82);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(36).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout((()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")}),0)),this._revealTimeouts.push(setTimeout((()=>{this._findInput.validate()}),200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(36).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const s=ee.BK(i),o=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),n=s.left+(o?o.left:0),r=o?o.top:0;if(this._viewZone&&r<this._viewZone.heightInPx){e.endLineNumber>e.startLineNumber&&(t=!1);const i=ee.cL(this._domNode).left;n>i&&(t=!1);const o=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());s.left+(o?o.left:0)>i&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(36).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;const t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((i=>{t.heightInPx=this._getHeight(),this._viewZoneId=i.addZone(t),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+t.heightInPx)}))}_showViewZone(e=!0){if(!this._isVisible)return;if(!this._codeEditor.getOption(36).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new Ze(0));const t=this._viewZone;this._codeEditor.changeViewZones((i=>{if(void 0!==this._viewZoneId){const s=this._getHeight();if(s===t.heightInPx)return;const o=s-t.heightInPx;return t.heightInPx=s,i.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+o))}{let s=this._getHeight();if(s-=this._codeEditor.getOption(76).top,s<=0)return;t.heightInPx=s,this._viewZoneId=i.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s)}}))}_removeViewZone(){this._codeEditor.changeViewZones((e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))}))}_applyTheme(e){const t={inputActiveOptionBorder:e.getColor(m.uNK),inputActiveOptionBackground:e.getColor(m.c1f),inputActiveOptionForeground:e.getColor(m.$$0),inputBackground:e.getColor(m.L4c),inputForeground:e.getColor(m.cws),inputBorder:e.getColor(m.Zgs),inputValidationInfoBackground:e.getColor(m.I$A),inputValidationInfoForeground:e.getColor(m.L9Z),inputValidationInfoBorder:e.getColor(m.YSW),inputValidationWarningBackground:e.getColor(m.ULt),inputValidationWarningForeground:e.getColor(m.T5N),inputValidationWarningBorder:e.getColor(m.C1n),inputValidationErrorBackground:e.getColor(m._$n),inputValidationErrorForeground:e.getColor(m.h9z),inputValidationErrorBorder:e.getColor(m.eYZ)};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)}_tryUpdateWidgetWidth(){if(!this._isVisible)return;if(!ee.qD(this._domNode))return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void this._domNode.classList.add("hiddenEditor");this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const t=e.width,i=e.minimap.minimapWidth;let s=!1,o=!1,n=!1;if(this._resized){if(ee.Tr(this._domNode)>Ve)return this._domNode.style.maxWidth=t-28-i-15+"px",void(this._replaceInput.width=ee.Tr(this._findInput.domNode))}if(447+i>=t&&(o=!0),447+i-He>=t&&(n=!0),447+i-He>=t+50&&(s=!0),this._domNode.classList.toggle("collapsed-find-widget",s),this._domNode.classList.toggle("narrow-find-widget",n),this._domNode.classList.toggle("reduced-find-widget",o),n||s||(this._domNode.style.maxWidth=t-28-i-15+"px"),this._resized){this._findInput.inputBox.layout();const e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=ee.Tr(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map((e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));const t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||l.Q.equalsRange(e,t)?null:e})).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|Ue)?(this._keybindingService.dispatchEvent(e,e.target)||this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?qe(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?ze(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|Ue)?(this._keybindingService.dispatchEvent(e,e.target)||(ge.uF&&ge.ib&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(_e.kg("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store($e,!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n")),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?qe(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?ze(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){const e=!0,t=!0;this._findInput=this._register(new ue.pG(null,this._contextViewProvider,{width:221,label:ye,placeholder:Ne,appendCaseSensitiveLabel:this._keybindingLabelFor(Z),appendWholeWordsLabel:this._keybindingLabelFor(q),appendRegexLabel:this._keybindingLabelFor(z),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return new RegExp(e,"gu"),null}catch(t){return{content:t.message}}},flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showHistoryHint:()=>(0,pe.z)(this._keybindingService)},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((e=>this._onFindInputKeyDown(e)))),this._register(this._findInput.inputBox.onDidChange((()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((e=>{this._tryUpdateHeight()&&this._showViewZone()}))),ge.j9&&this._register(this._findInput.onMouseDown((e=>this._onFindInputMouseDown(e)))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new Ke({label:Fe+this._keybindingLabelFor(B),icon:xe,onTrigger:()=>{this._codeEditor.getAction(B).run().then(void 0,le.dz)}})),this._nextBtn=this._register(new Ke({label:Oe+this._keybindingLabelFor(P),icon:Ie,onTrigger:()=>{this._codeEditor.getAction(P).run().then(void 0,le.dz)}}));const i=document.createElement("div");i.className="find-part",i.appendChild(this._findInput.domNode);const s=document.createElement("div");s.className="find-actions",i.appendChild(s),s.appendChild(this._matchesCount),s.appendChild(this._prevBtn.domNode),s.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new he.l({icon:ve,title:Ee+this._keybindingLabelFor(G),isChecked:!1})),this._register(this._toggleSelectionFind.onChange((()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){const e=this._codeEditor.getSelections();e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)}))),s.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new Ke({label:ke+this._keybindingLabelFor(U),icon:me.$_,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}})),s.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new ue._Q(null,void 0,{label:Me,placeholder:De,appendPreserveCaseLabel:this._keybindingLabelFor(K),history:[],flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showHistoryHint:()=>(0,pe.z)(this._keybindingService)},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((e=>this._onReplaceInputKeyDown(e)))),this._register(this._replaceInput.inputBox.onDidChange((()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())}))),this._replaceBtn=this._register(new Ke({label:Ae+this._keybindingLabelFor(Q),icon:Re,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}})),this._replaceAllBtn=this._register(new Ke({label:Te+this._keybindingLabelFor(j),icon:we,onTrigger:()=>{this._controller.replaceAll()}}));const o=document.createElement("div");o.className="replace-part",o.appendChild(this._replaceInput.domNode);const n=document.createElement("div");n.className="replace-actions",o.appendChild(n),n.appendChild(this._replaceBtn.domNode),n.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new Ke({label:We,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=ee.Tr(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(i),this._domNode.appendChild(o),this._resizeSash=new de.m(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let r=Ve;this._register(this._resizeSash.onDidStart((()=>{r=ee.Tr(this._domNode)}))),this._register(this._resizeSash.onDidChange((e=>{this._resized=!0;const t=r+e.startX-e.currentX;if(t<Ve)return;t>(parseFloat(ee.L9(this._domNode).maxWidth)||0)||(this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=ee.Tr(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())}))),this._register(this._resizeSash.onDidReset((()=>{const e=ee.Tr(this._domNode);if(e<Ve)return;let t=Ve;if(!this._resized||e===Ve){const e=this._codeEditor.getLayoutInfo();t=e.width-28-e.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=ee.Tr(this._findInput.domNode)),this._findInput.inputBox.layout()})))}updateAccessibilitySupport(){const e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)}}Ge.ID="editor.contrib.findWidget";class Ke extends ie.x{constructor(e){super(),this._opts=e;let t="button";this._opts.className&&(t=t+" "+this._opts.className),this._opts.icon&&(t=t+" "+f.L0.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.title=this._opts.label,this._domNode.tabIndex=0,this._domNode.className=t,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this.onclick(this._domNode,(e=>{this._opts.onTrigger(),e.preventDefault()})),this.onkeydown(this._domNode,(e=>{var t,i;if(e.equals(10)||e.equals(3))return this._opts.onTrigger(),void e.preventDefault();null===(i=(t=this._opts).onKeyDown)||void 0===i||i.call(t,e)}))}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...f.L0.asClassNameArray(Ce)),this._domNode.classList.add(...f.L0.asClassNameArray(be))):(this._domNode.classList.remove(...f.L0.asClassNameArray(be)),this._domNode.classList.add(...f.L0.asClassNameArray(Ce)))}}(0,f.zy)(((e,t)=>{const i=(e,i)=>{i&&t.addRule(`.monaco-editor ${e} { background-color: ${i}; }`)};i(".findMatch",e.getColor(m.Ubg)),i(".currentFindMatch",e.getColor(m.Syz)),i(".findScope",e.getColor(m.Q96));i(".find-widget",e.getColor(m.CgL));const s=e.getColor(m.f9l);s&&t.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${s}; }`);const o=e.getColor(m.ECk);o&&t.addRule(`.monaco-editor .findMatch { border: 1px ${(0,fe.Bb)(e.type)?"dotted":"solid"} ${o}; box-sizing: border-box; }`);const n=e.getColor(m._NC);n&&t.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${n}; padding: 1px; box-sizing: border-box; }`);const r=e.getColor(m.S5J);r&&t.addRule(`.monaco-editor .findScope { border: 1px ${(0,fe.Bb)(e.type)?"dashed":"solid"} ${r}; }`);const a=e.getColor(m.b1q);a&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${a}; }`);const h=e.getColor(m.FiB);h&&t.addRule(`.monaco-editor .find-widget { color: ${h}; }`);const d=e.getColor(m.UPX);d&&t.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${d}; }`);const c=e.getColor(m.US);if(c)t.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${c}; }`);else{const i=e.getColor(m.sIe);i&&t.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${i}; }`)}const l=e.getColor(m.ObF);l&&t.addRule(`\n\t\t.monaco-editor .find-widget .button:not(.disabled):hover,\n\t\t.monaco-editor .find-widget .codicon-find-selection:hover {\n\t\t\tbackground-color: ${l} !important;\n\t\t}\n\t`);const g=e.getColor(m.tAP);g&&t.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${g}; }`)}));var Qe=i(52692),je=i(24071),Ye=i(70497),Xe=i(3960),Je=i(24096),et=i(51756),tt=function(e,t,i,s){var o,n=arguments.length,r=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n<3?o(r):n>3?o(t,i,r):o(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},it=function(e,t){return function(i,s){t(i,s,e)}},st=function(e,t,i,s){return new(i||(i=Promise))((function(o,n){function r(e){try{h(s.next(e))}catch(t){n(t)}}function a(e){try{h(s.throw(e))}catch(t){n(t)}}function h(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}h((s=s.apply(e,t||[])).next())}))};const ot=524288;function nt(e,t="single",i=!1){if(!e.hasModel())return null;const s=e.getSelection();if("single"===t&&s.startLineNumber===s.endLineNumber||"multiple"===t)if(s.isEmpty()){const t=e.getConfiguredWordAtPosition(s.getStartPosition());if(t&&!1===i)return t.word}else if(e.getModel().getValueLengthInRange(s)<ot)return e.getModel().getValueInRange(s);return null}let rt=class e extends o.jG{constructor(e,t,i,o){super(),this._editor=e,this._findWidgetVisible=N.bindTo(t),this._contextKeyService=t,this._storageService=i,this._clipboardService=o,this._updateHistoryDelayer=new s.ve(500),this._state=this._register(new re),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._model=null,this._register(this._editor.onDidChangeModel((()=>{const e=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(36).loop})})))}get editor(){return this._editor}static get(t){return t.getContribution(e.ID)}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,0),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,0),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,0),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,0)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!F.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){const e=this._editor.getSelections();e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=n.bm(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}_start(e,t){return st(this,void 0,void 0,(function*(){if(this.disposeModel(),!this._editor.hasModel())return;const i=Object.assign(Object.assign({},t),{isRevealed:!0});if("single"===e.seedSearchStringFromSelection){const t=nt(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);t&&(this._state.isRegex?i.searchString=n.bm(t):i.searchString=t)}else if("multiple"===e.seedSearchStringFromSelection&&!e.updateSearchScope){const t=nt(this._editor,e.seedSearchStringFromSelection);t&&(i.searchString=t)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){const e=yield this.getGlobalBufferTerm();if(!this._editor.hasModel())return;e&&(i.searchString=e)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){const e=this._editor.getSelections();e.some((e=>!e.isEmpty()))&&(i.searchScope=e)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new J(this._editor,this._state))}))}start(e,t){return this._start(e,t)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){return!!this._model&&(this._model.replaceAll(),!0)}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}getGlobalBufferTerm(){return st(this,void 0,void 0,(function*(){return this._editor.getOption(36).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}))}setGlobalBufferTerm(e){this._editor.getOption(36).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};rt.ID="editor.contrib.findController",rt=tt([it(1,y.fN),it(2,et.CS),it(3,je.h)],rt);let at=class extends rt{constructor(e,t,i,s,o,n,r,a){super(e,i,r,a),this._contextViewService=t,this._keybindingService=s,this._themeService=o,this._notificationService=n,this._widget=null,this._findOptionsWidget=null}_start(e,t){const i=Object.create(null,{_start:{get:()=>super._start}});return st(this,void 0,void 0,(function*(){this._widget||this._createFindWidget();const s=this._editor.getSelection();let o=!1;switch(this._editor.getOption(36).autoFindInSelection){case"always":o=!0;break;case"never":o=!1;break;case"multiline":o=!!s&&s.startLineNumber!==s.endLineNumber;break}e.updateSearchScope=e.updateSearchScope||o,yield i._start.call(this,e,t),this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput())}))}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new Ge(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new se(this._editor,this._state,this._keybindingService,this._themeService))}};at=tt([it(1,Ye.l),it(2,y.fN),it(3,Xe.b),it(4,f.Gy),it(5,Je.Ot),it(6,et.CS),it(7,je.h)],at);const ht=(0,r.gW)(new r.PF({id:T,label:_e.kg("startFindAction","Find"),alias:"Find",precondition:y.M$.or(a.R.focus,y.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:Qe.D8.MenubarEditMenu,group:"3_find",title:_e.kg({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}}));ht.addImplementation(0,((e,t,i)=>{const s=rt.get(t);return!!s&&s.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(36).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(36).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(36).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(36).loop})}));const dt={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},regex:{type:"boolean"},regexOverride:{type:"number",description:_e.kg("actions.find.isRegexOverride",'Overrides "Use Regular Expression" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False')},wholeWord:{type:"boolean"},wholeWordOverride:{type:"number",description:_e.kg("actions.find.wholeWordOverride",'Overrides "Match Whole Word" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False')},matchCase:{type:"boolean"},matchCaseOverride:{type:"number",description:_e.kg("actions.find.matchCaseOverride",'Overrides "Math Case" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False')},preserveCase:{type:"boolean"},preserveCaseOverride:{type:"number",description:_e.kg("actions.find.preserveCaseOverride",'Overrides "Preserve Case" flag.\nThe flag will not be saved for the future.\n0: Do Nothing\n1: True\n2: False')},findInSelection:{type:"boolean"}}}}]};class ct extends r.ks{constructor(){super({id:L,label:_e.kg("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},description:dt})}run(e,t,i){return st(this,void 0,void 0,(function*(){const e=rt.get(t);if(e){const s=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:void 0!==i.replaceString,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===e.getState().searchString.length&&"never"!==t.getOption(36).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(36).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:(null===i||void 0===i?void 0:i.findInSelection)||!1,loop:t.getOption(36).loop},s),e.setGlobalBufferTerm(e.getState().searchString)}}))}}class lt extends r.ks{constructor(){super({id:W,label:_e.kg("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}run(e,t){return st(this,void 0,void 0,(function*(){const e=rt.get(t);e&&(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(36).loop}),e.setGlobalBufferTerm(e.getState().searchString))}))}}class gt extends r.ks{run(e,t){return st(this,void 0,void 0,(function*(){const e=rt.get(t);e&&!this._run(e)&&(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===e.getState().searchString.length&&"never"!==t.getOption(36).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(36).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(36).loop}),this._run(e))}))}}class _t extends gt{constructor(){super({id:P,label:_e.kg("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:a.R.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:y.M$.and(a.R.focus,F),primary:3,weight:100}]})}_run(e){return!!e.moveToNextMatch()&&(e.editor.pushUndoStop(),!0)}}class ut extends gt{constructor(){super({id:B,label:_e.kg("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:a.R.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:y.M$.and(a.R.focus,F),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}class pt extends r.ks{run(e,t){return st(this,void 0,void 0,(function*(){const e=rt.get(t);if(!e)return;const i="selection"===t.getOption(36).seedSearchStringFromSelection;let s=null;"never"!==t.getOption(36).seedSearchStringFromSelection&&(s=nt(t,"single",i)),s&&e.setSearchString(s),this._run(e)||(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(36).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:i,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(36).loop}),this._run(e))}))}}class mt extends pt{constructor(){super({id:V,label:_e.kg("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:a.R.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}class ft extends pt{constructor(){super({id:H,label:_e.kg("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:a.R.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}}const St=(0,r.gW)(new r.PF({id:$,label:_e.kg("startReplace","Replace"),alias:"Replace",precondition:y.M$.or(a.R.focus,y.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:Qe.D8.MenubarEditMenu,group:"3_find",title:_e.kg({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}}));St.addImplementation(0,((e,t,i)=>{if(!t.hasModel()||t.getOption(82))return!1;const s=rt.get(t);if(!s)return!1;const o=t.getSelection(),n=s.isFindInputFocused(),r=!o.isEmpty()&&o.startLineNumber===o.endLineNumber&&"never"!==t.getOption(36).seedSearchStringFromSelection&&!n,a=n||r?2:1;return s.start({forceRevealReplace:!0,seedSearchStringFromSelection:r?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(36).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(36).seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(36).loop})})),(0,r.HW)(rt.ID,at),(0,r.Fl)(ct),(0,r.Fl)(lt),(0,r.Fl)(_t),(0,r.Fl)(ut),(0,r.Fl)(mt),(0,r.Fl)(ft);const vt=r.DX.bindToContribution(rt.get);(0,r.E_)(new vt({id:U,precondition:N,handler:e=>e.closeFindWidget(),kbOpts:{weight:105,kbExpr:y.M$.and(a.R.focus,y.M$.not("isComposing")),primary:9,secondary:[1033]}})),(0,r.E_)(new vt({id:Z,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:a.R.focus,primary:E.primary,mac:E.mac,win:E.win,linux:E.linux}})),(0,r.E_)(new vt({id:q,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:105,kbExpr:a.R.focus,primary:k.primary,mac:k.mac,win:k.win,linux:k.linux}})),(0,r.E_)(new vt({id:z,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:105,kbExpr:a.R.focus,primary:M.primary,mac:M.mac,win:M.win,linux:M.linux}})),(0,r.E_)(new vt({id:G,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:105,kbExpr:a.R.focus,primary:D.primary,mac:D.mac,win:D.win,linux:D.linux}})),(0,r.E_)(new vt({id:K,precondition:void 0,handler:e=>e.togglePreserveCase(),kbOpts:{weight:105,kbExpr:a.R.focus,primary:A.primary,mac:A.mac,win:A.win,linux:A.linux}})),(0,r.E_)(new vt({id:Q,precondition:N,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:a.R.focus,primary:3094}})),(0,r.E_)(new vt({id:Q,precondition:N,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:y.M$.and(a.R.focus,O),primary:3}})),(0,r.E_)(new vt({id:j,precondition:N,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:a.R.focus,primary:2563}})),(0,r.E_)(new vt({id:j,precondition:N,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:y.M$.and(a.R.focus,O),primary:void 0,mac:{primary:2051}}})),(0,r.E_)(new vt({id:Y,precondition:N,handler:e=>e.selectAllMatches(),kbOpts:{weight:105,kbExpr:a.R.focus,primary:515}}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[9484],{6393:(e,t,i)=>{i.r(t);var o=i(95713),n=i(600),r=i(84978);class s extends o.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){n.D.setZoomLevel(n.D.getZoomLevel()+1)}}class a extends o.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){n.D.setZoomLevel(n.D.getZoomLevel()-1)}}class d extends o.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){n.D.setZoomLevel(0)}}(0,o.Fl)(s),(0,o.Fl)(a),(0,o.Fl)(d)},39627:(e,t,i)=>{i.d(t,{Pj:()=>R,_V:()=>T,jX:()=>x,pD:()=>C,vg:()=>I});var o=i(83269),n=i(8415),r=i(99826),s=i(79734),a=i(39319),d=i(19736),l=i(86448),c=i(34235),h=i(93363),u=i(65675),g=i(63102),p=i(93708),f=i(4707),m=i(22371),_=i(11615),v=i(50451),k=i(84978),y=i(93308),w=i(32956),b=i(3660),M=i(51209),D=function(e,t,i,o){return new(i||(i=Promise))((function(n,r){function s(e){try{d(o.next(e))}catch(t){r(t)}}function a(e){try{d(o.throw(e))}catch(t){r(t)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}d((o=o.apply(e,t||[])).next())}))};function C(e){if(!(e=e.filter((e=>e.range))).length)return;let{range:t}=e[0];for(let o=1;o<e.length;o++)t=p.Q.plusRange(t,e[o].range);const{startLineNumber:i,endLineNumber:n}=t;i===n?1===e.length?(0,o.xE)(k.kg("hint11","Made 1 formatting edit on line {0}",i)):(0,o.xE)(k.kg("hintn1","Made {0} formatting edits on line {1}",e.length,i)):1===e.length?(0,o.xE)(k.kg("hint1n","Made 1 formatting edit between lines {0} and {1}",i,n)):(0,o.xE)(k.kg("hintnn","Made {0} formatting edits between lines {1} and {2}",e.length,i,n))}function S(e,t,i){const o=[],n=new Set,r=e.ordered(i);for(const a of r)o.push(a),a.extensionId&&n.add(w.H.toKey(a.extensionId));const s=t.ordered(i);for(const a of s){if(a.extensionId){if(n.has(w.H.toKey(a.extensionId)))continue;n.add(w.H.toKey(a.extensionId))}o.push({displayName:a.displayName,extensionId:a.extensionId,provideDocumentFormattingEdits:(e,t,i)=>a.provideDocumentRangeFormattingEdits(e,e.getFullModelRange(),t,i)})}return o}class R{static setFormatterSelector(e){return{dispose:R._selectors.unshift(e)}}static select(e,t,i){return D(this,void 0,void 0,(function*(){if(0===e.length)return;const o=a.f.first(R._selectors);return o?yield o(e,t,i):void 0}))}}function x(e,t,i,o,n,r){return D(this,void 0,void 0,(function*(){const s=e.get(b._Y),{documentRangeFormattingEditProvider:a}=e.get(M.u),d=(0,u.z9)(t)?t.getModel():t,l=a.ordered(d),c=yield R.select(l,d,o);c&&(n.report(c),yield s.invokeFunction(P,c,t,i,r))}))}function P(e,t,i,o,r){return D(this,void 0,void 0,(function*(){const s=e.get(m.w);let a,d;(0,u.z9)(i)?(a=i.getModel(),d=new h.gI(i,5,void 0,r)):(a=i,d=new h.ER(i,r));const l=[];let c=0;for(const e of(0,n._j)(o).sort(p.Q.compareRangesUsingStarts))c>0&&p.Q.areIntersectingOrTouching(l[c-1],e)?l[c-1]=p.Q.fromPositions(l[c-1].getStartPosition(),e.getEndPosition()):c=l.push(e);const g=e=>D(this,void 0,void 0,(function*(){return(yield t.provideDocumentRangeFormattingEdits(a,e,a.getFormattingOptions(),d.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 o of e)for(const e of t)if(p.Q.intersectRanges(o.range,e.range))return!0;return!1},k=[],y=[];try{for(const e of l){if(d.token.isCancellationRequested)return!0;y.push(yield g(e))}for(let e=0;e<l.length;++e)for(let t=e+1;t<l.length;++t){if(d.token.isCancellationRequested)return!0;if(_(y[e],y[t])){const i=p.Q.plusRange(l[e],l[t]),o=yield g(i);l.splice(t,1),l.splice(e,1),l.push(i),y.splice(t,1),y.splice(e,1),y.push(o),e=0,t=0}}for(const e of y){if(d.token.isCancellationRequested)return!0;const t=yield s.computeMoreMinimalEdits(a.uri,e);t&&k.push(...t)}}finally{d.dispose()}if(0===k.length)return!1;if((0,u.z9)(i))v.c.execute(i,k,!0),C(k),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=k,t=new f.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);a.pushEditOperations([t],k.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,o,n){return D(this,void 0,void 0,(function*(){const r=e.get(b._Y),s=e.get(M.u),a=(0,u.z9)(t)?t.getModel():t,d=S(s.documentFormattingEditProvider,s.documentRangeFormattingEditProvider,a),l=yield R.select(d,a,i);l&&(o.report(l),yield r.invokeFunction(E,l,t,i,n))}))}function E(e,t,i,o,n){return D(this,void 0,void 0,(function*(){const r=e.get(m.w);let s,a,d;(0,u.z9)(i)?(s=i.getModel(),a=new h.gI(i,5,void 0,n)):(s=i,a=new h.ER(i,n));try{const e=yield t.provideDocumentFormattingEdits(s,s.getFormattingOptions(),a.token);if(d=yield r.computeMoreMinimalEdits(s.uri,e),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!d||0===d.length)return!1;if((0,u.z9)(i))v.c.execute(i,d,2!==o),2!==o&&(C(d),i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1));else{const[{range:e}]=d,t=new f.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);s.pushEditOperations([t],d.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 T(e,t,i,o,n,r,a){const d=t.onTypeFormattingEditProvider.ordered(i);return 0===d.length||d[0].autoFormatTriggerCharacters.indexOf(n)<0?Promise.resolve(void 0):Promise.resolve(d[0].provideOnTypeFormattingEdits(i,o,n,r,a)).catch(s.M_).then((t=>e.computeMoreMinimalEdits(i.uri,t)))}R._selectors=new d.w,y.wb.registerCommand("_executeFormatRangeProvider",(function(e,...t){return D(this,void 0,void 0,(function*(){const[i,o,a]=t;(0,l.j)(c.r.isUri(i)),(0,l.j)(p.Q.isIRange(o));const d=e.get(_.b),h=e.get(m.w),u=e.get(M.u),g=yield d.createModelReference(i);try{return function(e,t,i,o,r,a){return D(this,void 0,void 0,(function*(){const d=t.documentRangeFormattingEditProvider.ordered(i);for(const t of d){const d=yield Promise.resolve(t.provideDocumentRangeFormattingEdits(i,o,r,a)).catch(s.M_);if((0,n.EI)(d))return yield e.computeMoreMinimalEdits(i.uri,d)}}))}(h,u,g.object.textEditorModel,p.Q.lift(o),a,r.X.None)}finally{g.dispose()}}))})),y.wb.registerCommand("_executeFormatDocumentProvider",(function(e,...t){return D(this,void 0,void 0,(function*(){const[i,o]=t;(0,l.j)(c.r.isUri(i));const a=e.get(_.b),d=e.get(m.w),h=e.get(M.u),u=yield a.createModelReference(i);try{return function(e,t,i,o,r){return D(this,void 0,void 0,(function*(){const a=S(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i);for(const t of a){const a=yield Promise.resolve(t.provideDocumentFormattingEdits(i,o,r)).catch(s.M_);if((0,n.EI)(a))return yield e.computeMoreMinimalEdits(i.uri,a)}}))}(d,h,u.object.textEditorModel,o,r.X.None)}finally{u.dispose()}}))})),y.wb.registerCommand("_executeFormatOnTypeProvider",(function(e,...t){return D(this,void 0,void 0,(function*(){const[i,o,n,s]=t;(0,l.j)(c.r.isUri(i)),(0,l.j)(g.y.isIPosition(o)),(0,l.j)("string"===typeof n);const a=e.get(_.b),d=e.get(m.w),h=e.get(M.u),u=yield a.createModelReference(i);try{return T(d,h,u.object.textEditorModel,g.y.lift(o),n,s,r.X.None)}finally{u.dispose()}}))}))},88092:(e,t,i)=>{i.r(t);var o=i(8415),n=i(99826),r=i(79734),s=i(55746),a=i(33793),d=i(95713),l=i(39946),c=i(3931),h=i(93708),u=i(35725),g=i(22371),p=i(51209),f=i(39627),m=i(50451),_=i(84978),v=i(93308),k=i(75664),y=i(3660),w=i(86480),b=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},M=function(e,t){return function(i,o){t(i,o,e)}},D=function(e,t,i,o){return new(i||(i=Promise))((function(n,r){function s(e){try{d(o.next(e))}catch(t){r(t)}}function a(e){try{d(o.throw(e))}catch(t){r(t)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}d((o=o.apply(e,t||[])).next())}))};let C=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 o of t.autoFormatTriggerCharacters)i.add(o.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 n.Q,s=this._editor.onDidChangeModelContent((e=>{if(e.isFlush)return r.cancel(),void s.dispose();for(let t=0,o=e.changes.length;t<o;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,o.EI)(e)&&(m.c.execute(this._editor,e,!0),(0,f.pD)(e))})).finally((()=>{s.dispose()}))}};C.ID="editor.contrib.autoFormat",C=b([M(1,p.u),M(2,g.w)],C);let S=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,w.ke.None,n.X.None).catch(r.dz))}};S.ID="editor.contrib.formatOnPaste",S=b([M(1,p.u),M(2,y._Y)],S);class R extends d.ks{constructor(){super({id:"editor.action.formatDocument",label:_.kg("formatDocument.label","Format Document"),alias:"Format Document",precondition:k.M$.and(u.R.notInCompositeEditor,u.R.writable,u.R.hasDocumentFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}run(e,t){return D(this,void 0,void 0,(function*(){if(t.hasModel()){const i=e.get(y._Y),o=e.get(w.N8);yield o.showWhile(i.invokeFunction(f.vg,t,1,w.ke.None,n.X.None),250)}}))}}class x extends d.ks{constructor(){super({id:"editor.action.formatSelection",label:_.kg("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:k.M$.and(u.R.writable,u.R.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,s.m5)(2089,2084),weight:100},contextMenuOpts:{when:u.R.hasNonEmptySelection,group:"1_modification",order:1.31}})}run(e,t){return D(this,void 0,void 0,(function*(){if(!t.hasModel())return;const i=e.get(y._Y),o=t.getModel(),r=t.getSelections().map((e=>e.isEmpty()?new h.Q(e.startLineNumber,1,e.startLineNumber,o.getLineMaxColumn(e.startLineNumber)):e)),s=e.get(w.N8);yield s.showWhile(i.invokeFunction(f.jX,t,r,1,w.ke.None,n.X.None),250)}))}}(0,d.HW)(C.ID,C),(0,d.HW)(S.ID,S),(0,d.Fl)(R),(0,d.Fl)(x),v.wb.registerCommand("editor.action.format",(e=>D(void 0,void 0,void 0,(function*(){const t=e.get(l.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")}))))},50451:(e,t,i)=>{i.d(t,{c:()=>r});var o=i(91536),n=i(93708);class r{static _handleEolEdits(e,t){let i;const o=[];for(const n of t)"number"===typeof n.eol&&(i=n.eol),n.range&&"string"===typeof n.text&&o.push(n);return"number"===typeof i&&e.hasModel()&&e.getModel().pushEOL(i),o}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),o=i.validateRange(t.range);return i.getFullModelRange().equalsRange(o)}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=>o.k.replace(n.Q.lift(e.range),e.text)))):e.executeEdits("formatEditsCommand",s.map((e=>o.k.replaceMove(n.Q.lift(e.range),e.text)))),i&&e.pushUndoStop()}}},2525:(e,t,i)=>{i.r(t),i.d(t,{MarkerController:()=>oe,NextMarkerAction:()=>re});var o=i(15441),n=i(33793),r=i(95713),s=i(39946),a=i(63102),d=i(93708),l=i(35725),c=i(8415),h=i(16201),u=i(19736),g=i(22231),p=i(34235),f=i(22967),m=i(3660),_=i(30276),v=i(17030),k=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},y=function(e,t){return function(i,o){t(i,o,e)}};class w{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let b=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._dispoables=new n.Cm,this._markers=[],this._nextIdx=-1,p.r.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);const o=this._configService.getValue("problems.sortOrder"),r=(e,t)=>{let i=(0,g.UD)(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===o?d.Q.compareRangesUsingStarts(e,t)||_.cj.compare(e.severity,t.severity):_.cj.compare(e.severity,t.severity)||d.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 w(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let o=!1,n=this._markers.findIndex((t=>t.resource.toString()===e.uri.toString()));n<0&&(n=(0,c.El)(this._markers,{resource:e.uri},((e,t)=>(0,g.UD)(e.resource.toString(),t.resource.toString()))),n<0&&(n=~n));for(let r=n;r<this._markers.length;r++){let i=d.Q.lift(this._markers[r]);if(i.isEmpty()){const t=e.getWordAtPosition(i.getStartPosition());t&&(i=new d.Q(i.startLineNumber,t.startColumn,i.startLineNumber,t.endColumn))}if(t&&(i.containsPosition(t)||t.isBeforeOrEqual(i.getStartPosition()))){this._nextIdx=r,o=!0;break}if(this._markers[r].resource.toString()!==e.uri.toString())break}o||(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 o=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),o!==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(d.Q.containsPosition(this._markers[i],t))return new w(this._markers[i],i+1,this._markers.length)}};b=k([y(1,_.DR),y(2,v.pG)],b);const M=(0,m.u1)("IMarkerNavigationService");let D=class{constructor(e,t){this._markerService=e,this._configService=t,this._provider=new u.w}getMarkerList(e){for(const t of this._provider){const i=t.getMarkerList(e);if(i)return i}return new b(e,this._markerService,this._configService)}};D=k([y(0,_.DR),y(1,v.pG)],D),(0,f.v)(M,D,!0);var C=i(84978),S=i(52692),R=i(75664),x=i(13587),P=i(69848),I=i(15809),E=i(59638),T=i(68040),N=i(55643),O=i(67099),L=i(8530),F=i(49172),A=i(87936),W=i(64709),j=i(87357),B=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},K=function(e,t){return function(i,o){t(i,o,e)}};class G{constructor(e,t,i,o,r){this._openerService=o,this._labelService=r,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new n.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(P.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,n.AS)(this._disposables)}update(e){const{source:t,message:i,relatedInformation:o,code:n}=e;let r=((null===t||void 0===t?void 0:t.length)||0)+2;n&&(r+="string"===typeof n?n.length:n.value.length);const s=(0,g.uz)(i);this._lines=s.length,this._longestLineLength=0;for(const c of s)this._longestLineLength=Math.max(c.length+r,this._longestLineLength);P.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||n){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(n)if("string"===typeof n){const t=document.createElement("span");t.innerText=`(${n})`,t.classList.add("code"),e.appendChild(t)}else{this._codeLink=P.$("a.code-link"),this._codeLink.setAttribute("href",`${n.target.toString()}`),this._codeLink.onclick=e=>{this._openerService.open(n.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()};P.BC(this._codeLink,P.$("span")).innerText=n.value,e.appendChild(this._codeLink)}}if(P.w_(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,c.EI)(o)){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 o){const i=document.createElement("div"),o=document.createElement("a");o.classList.add("filename"),o.innerText=`${this._labelService.getUriBasenameLabel(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,o.title=this._labelService.getUriLabel(t.resource),this._relatedDiagnostics.set(o,t);const n=document.createElement("span");n.innerText=t.message,i.appendChild(o),i.appendChild(n),this._lines+=1,e.appendChild(i)}}const d=this._editor.getOption(45),l=Math.ceil(d.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=d.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:l,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=C.kg("Error","Error");break;case _.cj.Warning:t=C.kg("Warning","Warning");break;case _.cj.Info:t=C.kg("Info","Info");break;case _.cj.Hint:t=C.kg("Hint","Hint")}let i=C.kg("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const o=this._editor.getModel();if(o&&e.startLineNumber<=o.getLineCount()&&e.startLineNumber>=1){i=`${o.getLineContent(e.startLineNumber)}, ${i}`}return i}}let U=class e extends N.j6{constructor(e,t,i,o,r,s,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},r),this._themeService=t,this._openerService=i,this._menuService=o,this._contextKeyService=s,this._labelService=a,this._callOnDispose=new n.Cm,this._onDidSelectRelatedInformation=new h.vl,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=_.cj.Warning,this._backgroundColor=E.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=Q,i=z;this._severity===_.cj.Warning?(t=X,i=q):this._severity===_.cj.Info&&(t=Z,i=Y);const o=e.getColor(t),n=e.getColor(i);this.style({arrowColor:o,frameColor:o,headerBackgroundColor:n,primaryHeadingColor:e.getColor(N._X),secondaryHeadingColor:e.getColor(N.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=[],o=this._menuService.createMenu(e.TitleMenu,this._contextKeyService);(0,O.Ot)(o,void 0,i),this._actionbarWidget.push(i,{label:!1,icon:!0,index:0}),o.dispose()}_fillTitleIcon(e){this._icon=P.BC(e,P.$(""))}_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 G(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 o=d.Q.lift(e),n=this.editor.getPosition(),r=n&&o.containsPosition(n)?n:o.getStartPosition();super.show(r,this.computeRequiredHeight());const s=this.editor.getModel();if(s){const e=i>1?C.kg("problems","{0} of {1} problems",t,i):C.kg("change","{0} of {1} problem",t,i);this.setTitle((0,T.P8)(s.uri),e)}this._icon.className=`codicon ${A.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()}};U.TitleMenu=new S.D8("gotoErrorTitleMenu"),U=B([K(1,j.Gy),K(2,F.Cr),K(3,S.ez),K(4,m._Y),K(5,R.fN),K(6,L.L)],U);const $=(0,W.yLr)(W.Rbi,W.AN$),V=(0,W.yLr)(W.Hng,W.Stt),H=(0,W.yLr)(W.pOz,W.IIb),Q=(0,W.x1A)("editorMarkerNavigationError.background",{dark:$,light:$,hcDark:W.b1q,hcLight:W.b1q},C.kg("editorMarkerNavigationError","Editor marker navigation widget error color.")),z=(0,W.x1A)("editorMarkerNavigationError.headerBackground",{dark:(0,W.JO0)(Q,.1),light:(0,W.JO0)(Q,.1),hcDark:null,hcLight:null},C.kg("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),X=(0,W.x1A)("editorMarkerNavigationWarning.background",{dark:V,light:V,hcDark:W.b1q,hcLight:W.b1q},C.kg("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),q=(0,W.x1A)("editorMarkerNavigationWarning.headerBackground",{dark:(0,W.JO0)(X,.1),light:(0,W.JO0)(X,.1),hcDark:"#0C141F",hcLight:(0,W.JO0)(X,.2)},C.kg("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),Z=(0,W.x1A)("editorMarkerNavigationInfo.background",{dark:H,light:H,hcDark:W.b1q,hcLight:W.b1q},C.kg("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Y=(0,W.x1A)("editorMarkerNavigationInfo.headerBackground",{dark:(0,W.JO0)(Z,.1),light:(0,W.JO0)(Z,.1),hcDark:null,hcLight:null},C.kg("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),J=(0,W.x1A)("editorMarkerNavigation.background",{dark:W.YtV,light:W.YtV,hcDark:W.YtV,hcLight:W.YtV},C.kg("editorMarkerNavigationBackground","Editor marker navigation widget background."));var ee=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},te=function(e,t){return function(i,o){t(i,o,e)}},ie=function(e,t,i,o){return new(i||(i=Promise))((function(n,r){function s(e){try{d(o.next(e))}catch(t){r(t)}}function a(e){try{d(o.throw(e))}catch(t){r(t)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}d((o=o.apply(e,t||[])).next())}))};let oe=class e{constructor(e,t,i,o,r){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=o,this._instantiationService=r,this._sessionDispoables=new n.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(U,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,o;(null===(t=this._model)||void 0===t?void 0:t.selected)&&d.Q.containsPosition(null===(i=this._model)||void 0===i?void 0:i.selected.marker,e.position)||null===(o=this._model)||void 0===o||o.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:d.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 o,n;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===(o=e.get(s))||void 0===o||o.close(),null===(n=e.get(s))||void 0===n||n.nagivate(t,i))}else this._widget.showAtMarker(r.selected.marker,r.selected.index,r.selected.total)}}))}};oe.ID="editor.contrib.markerController",oe=ee([te(1,M),te(2,R.fN),te(3,s.T),te(4,m._Y)],oe);class ne 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=oe.get(t))||void 0===i||i.nagivate(this._next,this._multiFile))}))}}class re extends ne{constructor(){super(!0,!1,{id:re.ID,label:re.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:578,weight:100},menuOpts:{menuId:U.TitleMenu,title:re.LABEL,icon:(0,x.pU)("marker-navigation-next",o.W6.arrowDown,C.kg("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}re.ID="editor.action.marker.next",re.LABEL=C.kg("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class se extends ne{constructor(){super(!1,!1,{id:se.ID,label:se.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:1602,weight:100},menuOpts:{menuId:U.TitleMenu,title:se.LABEL,icon:(0,x.pU)("marker-navigation-previous",o.W6.arrowUp,C.kg("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}se.ID="editor.action.marker.prev",se.LABEL=C.kg("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");(0,r.HW)(oe.ID,oe),(0,r.Fl)(re),(0,r.Fl)(se),(0,r.Fl)(class extends ne{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:C.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:l.R.focus,primary:66,weight:100},menuOpts:{menuId:S.D8.MenubarGoMenu,title:C.kg({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),(0,r.Fl)(class extends ne{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:C.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:l.R.focus,primary:1090,weight:100},menuOpts:{menuId:S.D8.MenubarGoMenu,title:C.kg({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});const ae=new R.N1("markersNavigationVisible",!1),de=r.DX.bindToContribution(oe.get);(0,r.E_)(new de({id:"closeMarkersNavigation",precondition:ae,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:l.R.focus,primary:9,secondary:[1033]}}))},44238:(e,t,i)=>{i.r(t),i.d(t,{DefinitionAction:()=>oe,SymbolNavigationAction:()=>ie,SymbolNavigationAnchor:()=>te});var o=i(8468),n=i(83269),r=i(85345),s=i(55746),a=i(76394),d=i(86448),l=i(34235),c=i(93363),h=i(65675),u=i(95713),g=i(39946),p=i(29579),f=i(63102),m=i(93708),_=i(35725),v=i(52174),k=i(15250),y=i(82578),w=i(16201),b=i(33793),M=i(68040),D=i(84978),C=i(75664),S=i(22967),R=i(3660),x=i(3960),P=i(7492),I=i(24096),E=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},T=function(e,t){return function(i,o){t(i,o,e)}};const N=new C.N1("hasSymbols",!1,(0,D.kg)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),O=(0,R.u1)("ISymbolNavigationService");let L=class{constructor(e,t,i,o){this._editorService=t,this._notificationService=i,this._keybindingService=o,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=N.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 F(this._editorService),o=i.onDidChange((e=>{if(this._ignoreEditorChange)return;const i=this._editorService.getActiveCodeEditor();if(!i)return;const o=i.getModel(),n=i.getPosition();if(!o||!n)return;let r=!1,s=!1;for(const a of t.references)if((0,M.n4)(a.uri,o.uri))r=!0,s=s||m.Q.containsPosition(a.range,n);else if(r)break;r&&s||this.reset()}));this._currentState=(0,b.qE)(i,o)}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,D.kg)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):(0,D.kg)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};L=E([T(0,C.fN),T(1,g.T),T(2,I.Ot),T(3,x.b)],L),(0,S.v)(O,L,!0),(0,u.E_)(new class extends u.DX{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:N,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(O).revealNext(t)}}),P.f.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:N,primary:9,handler(e){e.get(O).reset()}});let F=class{constructor(e){this._listener=new Map,this._disposables=new b.Cm,this._onDidChange=new w.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,b.AS)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,b.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)}};F=E([T(0,g.T)],F);var A,W,j,B,K,G,U,$,V=i(3825),H=i(55643),Q=i(52692),z=i(93308),X=i(86480),q=i(76151),Z=i(51209),Y=function(e,t,i,o){return new(i||(i=Promise))((function(n,r){function s(e){try{d(o.next(e))}catch(t){r(t)}}function a(e){try{d(o.throw(e))}catch(t){r(t)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}d((o=o.apply(e,t||[])).next())}))};Q.ZG.appendMenuItem(Q.D8.EditorContext,{submenu:Q.D8.EditorContextPeek,title:D.kg("peek.submenu","Peek"),group:"navigation",order:100});const J=new Set;function ee(e){const t=new e;return(0,u.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 u.ks{constructor(e,t){super(t),this.configuration=e}run(e,t,i){if(!t.hasModel())return Promise.resolve(void 0);const o=e.get(I.Ot),s=e.get(g.T),a=e.get(X.N8),d=e.get(O),l=e.get(Z.u),h=t.getModel(),u=t.getPosition(),p=te.is(i)?i:new te(h,u),f=new c.gI(t,5),m=(0,r.PK)(this._getLocationModel(l,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 o;if((0,n.xE)(e.ariaMessage),e.referenceAt(h.uri,u)){const e=this._getAlternativeCommand(t);!ie._activeAlternativeCommands.has(e)&&J.has(e)&&(o=t.getAction(e))}const r=e.references.length;if(0===r){if(!this.configuration.muteMessage){const e=h.getWordAtPosition(u);null===(i=V.k.get(t))||void 0===i||i.showMessage(this._getNoResultFoundMessage(e),u)}}else{if(1!==r||!o)return this._onResult(s,d,t,e);ie._activeAlternativeCommands.add(this.id),o.run().finally((()=>{ie._activeAlternativeCommands.delete(this.id)}))}}))),(e=>{o.error(e)})).finally((()=>{f.dispose()}));return a.showWhile(m,250),m}_onResult(e,t,i,o){return Y(this,void 0,void 0,(function*(){const n=this._getGoToPreference(i);if(i instanceof p.t||!(this.configuration.openInPeek||"peek"===n&&o.references.length>1)){const r=o.firstReference(),s=o.references.length>1&&"gotoAndPeek"===n,a=yield this._openReference(i,e,r,this.configuration.openToSide,!s);s&&a?this._openInPeek(a,o):o.dispose(),"goto"===n&&t.put(r)}else this._openInPeek(i,o)}))}_openReference(e,t,i,o,n){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,o);if(s){if(n){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=k.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 oe extends ie{_getLocationModel(e,t,i,o){return Y(this,void 0,void 0,(function*(){return new y.y4(yield(0,q.hE)(e.definitionProvider,t,i,o),D.kg("def.title","Definitions"))}))}_getNoResultFoundMessage(e){return e&&e.word?D.kg("noResultWord","No definition found for '{0}'",e.word):D.kg("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(52).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(52).multipleDefinitions}}const ne=a.HZ&&!(0,o.isStandalone)()?2118:70;ee(((A=class e extends oe{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,label:D.kg("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:C.M$.and(_.R.hasDefinitionProvider,_.R.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:_.R.editorTextFocus,primary:ne,weight:100},contextMenuOpts:{group:"navigation",order:1.1}}),z.wb.registerCommandAlias("editor.action.goToDeclaration",e.id)}}).id="editor.action.revealDefinition",A)),ee(((W=class e extends oe{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:e.id,label:D.kg("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:C.M$.and(_.R.hasDefinitionProvider,_.R.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:_.R.editorTextFocus,primary:(0,s.m5)(2089,ne),weight:100}}),z.wb.registerCommandAlias("editor.action.openDeclarationToTheSide",e.id)}}).id="editor.action.revealDefinitionAside",W)),ee(((j=class e extends oe{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.id,label:D.kg("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:C.M$.and(_.R.hasDefinitionProvider,H.x2.notInPeekEditor,_.R.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:_.R.editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:Q.D8.EditorContextPeek,group:"peek",order:2}}),z.wb.registerCommandAlias("editor.action.previewDeclaration",e.id)}}).id="editor.action.peekDefinition",j));class re extends ie{_getLocationModel(e,t,i,o){return Y(this,void 0,void 0,(function*(){return new y.y4(yield(0,q.sv)(e.declarationProvider,t,i,o),D.kg("decl.title","Declarations"))}))}_getNoResultFoundMessage(e){return e&&e.word?D.kg("decl.noResultWord","No declaration found for '{0}'",e.word):D.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:D.kg("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:C.M$.and(_.R.hasDeclarationProvider,_.R.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3}})}_getNoResultFoundMessage(e){return e&&e.word?D.kg("decl.noResultWord","No declaration found for '{0}'",e.word):D.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:D.kg("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:C.M$.and(_.R.hasDeclarationProvider,H.x2.notInPeekEditor,_.R.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:Q.D8.EditorContextPeek,group:"peek",order:3}})}});class se extends ie{_getLocationModel(e,t,i,o){return Y(this,void 0,void 0,(function*(){return new y.y4(yield(0,q.f9)(e.typeDefinitionProvider,t,i,o),D.kg("typedef.title","Type Definitions"))}))}_getNoResultFoundMessage(e){return e&&e.word?D.kg("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):D.kg("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(52).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(52).multipleTypeDefinitions}}ee(((K=class e extends se{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,label:D.kg("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:C.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",K)),ee(((G=class e extends se{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,label:D.kg("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:C.M$.and(_.R.hasTypeDefinitionProvider,H.x2.notInPeekEditor,_.R.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:Q.D8.EditorContextPeek,group:"peek",order:4}})}}).ID="editor.action.peekTypeDefinition",G));class ae extends ie{_getLocationModel(e,t,i,o){return Y(this,void 0,void 0,(function*(){return new y.y4(yield(0,q.eS)(e.implementationProvider,t,i,o),D.kg("impl.title","Implementations"))}))}_getNoResultFoundMessage(e){return e&&e.word?D.kg("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):D.kg("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(52).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(52).multipleImplementations}}ee(((U=class e extends ae{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,label:D.kg("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:C.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",U)),ee((($=class e extends ae{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,label:D.kg("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:C.M$.and(_.R.hasImplementationProvider,H.x2.notInPeekEditor,_.R.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:_.R.editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:Q.D8.EditorContextPeek,group:"peek",order:5}})}}).ID="editor.action.peekImplementation",$));class de extends ie{_getNoResultFoundMessage(e){return e?D.kg("references.no","No references found for '{0}'",e.word):D.kg("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(52).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(52).multipleReferences}}ee(class extends de{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:D.kg("goToReferences.label","Go to References"),alias:"Go to References",precondition:C.M$.and(_.R.hasReferenceProvider,H.x2.notInPeekEditor,_.R.isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:_.R.editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45}})}_getLocationModel(e,t,i,o){return Y(this,void 0,void 0,(function*(){return new y.y4(yield(0,q.NN)(e.referenceProvider,t,i,!0,o),D.kg("ref.title","References"))}))}}),ee(class extends de{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:D.kg("references.action.label","Peek References"),alias:"Peek References",precondition:C.M$.and(_.R.hasReferenceProvider,H.x2.notInPeekEditor,_.R.isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:Q.D8.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,i,o){return Y(this,void 0,void 0,(function*(){return new y.y4(yield(0,q.NN)(e.referenceProvider,t,i,!1,o),D.kg("ref.title","References"))}))}});class le extends ie{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",label:D.kg("label.generic","Go to Any Symbol"),alias:"Go to Any Symbol",precondition:C.M$.and(H.x2.notInPeekEditor,_.R.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}_getLocationModel(e,t,i,o){return Y(this,void 0,void 0,(function*(){return new y.y4(this._references,D.kg("generic.title","Locations"))}))}_getNoResultFoundMessage(e){return e&&D.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""}}z.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:l.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,o,n,r,s)=>Y(void 0,void 0,void 0,(function*(){(0,d.j)(l.r.isUri(t)),(0,d.j)(f.y.isIPosition(i)),(0,d.j)(Array.isArray(o)),(0,d.j)("undefined"===typeof n||"string"===typeof n),(0,d.j)("undefined"===typeof s||"boolean"===typeof s);const a=e.get(g.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 le{_getNoResultFoundMessage(e){return r||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(r),openInPeek:Boolean(s),openToSide:!1},o,n);e.get(R._Y).invokeFunction(t.run.bind(t),c)}))}))}),z.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:l.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,o,n)=>Y(void 0,void 0,void 0,(function*(){e.get(z.wT).executeCommand("editor.action.goToLocations",t,i,o,n,void 0,!0)}))}),z.wb.registerCommand({id:"editor.action.findReferences",handler:(e,t,i)=>{(0,d.j)(l.r.isUri(t)),(0,d.j)(f.y.isIPosition(i));const o=e.get(Z.u),n=e.get(g.T);return n.openCodeEditor({resource:t},n.getFocusedCodeEditor()).then((e=>{if(!(0,h.z9)(e)||!e.hasModel())return;const t=k.X.get(e);if(!t)return;const n=(0,r.SS)((t=>(0,q.NN)(o.referenceProvider,e.getModel(),f.y.lift(i),!1,t).then((e=>new y.y4(e,D.kg("ref.title","References")))))),s=new m.Q(i.lineNumber,i.column,i.lineNumber,i.column);return Promise.resolve(t.toggleWidget(s,n,!1))}))}}),z.wb.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations"),Q.ZG.appendMenuItems([{id:Q.D8.MenubarGoMenu,item:{command:{id:"editor.action.revealDefinition",title:D.kg({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},group:"4_symbol_nav",order:2}},{id:Q.D8.MenubarGoMenu,item:{command:{id:"editor.action.revealDeclaration",title:D.kg({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},group:"4_symbol_nav",order:3}},{id:Q.D8.MenubarGoMenu,item:{command:{id:"editor.action.goToTypeDefinition",title:D.kg({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},group:"4_symbol_nav",order:3}},{id:Q.D8.MenubarGoMenu,item:{command:{id:"editor.action.goToImplementation",title:D.kg({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},group:"4_symbol_nav",order:4}},{id:Q.D8.MenubarGoMenu,item:{command:{id:"editor.action.goToReferences",title:D.kg({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},group:"4_symbol_nav",order:5}}])},76151:(e,t,i)=>{i.d(t,{NN:()=>p,eS:()=>u,f9:()=>g,hE:()=>c,sv:()=>h});var o=i(99826),n=i(79734),r=i(95713),s=i(82578),a=i(51209),d=function(e,t,i,o){return new(i||(i=Promise))((function(n,r){function s(e){try{d(o.next(e))}catch(t){r(t)}}function a(e){try{d(o.throw(e))}catch(t){r(t)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}d((o=o.apply(e,t||[])).next())}))};function l(e,t,i,o){const r=i.ordered(e).map((i=>Promise.resolve(o(i,e,t)).then(void 0,(e=>{(0,n.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,o){return l(t,i,e,((e,t,i)=>e.provideDefinition(t,i,o)))}function h(e,t,i,o){return l(t,i,e,((e,t,i)=>e.provideDeclaration(t,i,o)))}function u(e,t,i,o){return l(t,i,e,((e,t,i)=>e.provideImplementation(t,i,o)))}function g(e,t,i,o){return l(t,i,e,((e,t,i)=>e.provideTypeDefinition(t,i,o)))}function p(e,t,i,o,n){return l(t,i,e,((e,t,i)=>d(this,void 0,void 0,(function*(){const r=yield e.provideReferences(t,i,{includeDeclaration:!0},n);if(!o||!r||2!==r.length)return r;const s=yield e.provideReferences(t,i,{includeDeclaration:!1},n);return s&&1===s.length?s:r}))))}function f(e){return d(this,void 0,void 0,(function*(){const t=yield e(),i=new s.y4(t,""),o=i.references.map((e=>e.link));return i.dispose(),o}))}(0,r.ke)("_executeDefinitionProvider",((e,t,i)=>{const n=c(e.get(a.u).definitionProvider,t,i,o.X.None);return f((()=>n))})),(0,r.ke)("_executeTypeDefinitionProvider",((e,t,i)=>{const n=g(e.get(a.u).typeDefinitionProvider,t,i,o.X.None);return f((()=>n))})),(0,r.ke)("_executeDeclarationProvider",((e,t,i)=>{const n=h(e.get(a.u).declarationProvider,t,i,o.X.None);return f((()=>n))})),(0,r.ke)("_executeReferenceProvider",((e,t,i)=>{const n=p(e.get(a.u).referenceProvider,t,i,!1,o.X.None);return f((()=>n))})),(0,r.ke)("_executeImplementationProvider",((e,t,i)=>{const n=u(e.get(a.u).implementationProvider,t,i,o.X.None);return f((()=>n))}))},43364:(e,t,i)=>{i.d(t,{gi:()=>h});var o=i(16201),n=i(33793),r=i(76394);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 d{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=s(e,t.triggerModifier)}}class l{constructor(e,t,i,o){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=o}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 l(57,"metaKey",6,"altKey"):new l(5,"ctrlKey",6,"altKey"):r.zx?new l(6,"altKey",57,"metaKey"):new l(6,"altKey",5,"ctrlKey")}class h extends n.jG{constructor(e){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new o.vl),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new o.vl),this.onExecute=this._onExecute.event,this._onCancel=this._register(new o.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 d(e,this._opts))))),this._register(this._editor.onKeyUp((e=>this._onEditorKeyUp(new d(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()}}},58811:(e,t,i)=>{i.r(t),i.d(t,{GotoDefinitionAtPositionEditorContribution:()=>D});var o=i(85345),n=i(79734),r=i(82183),s=i(33793),a=i(86448),d=i(93363),l=i(95713),c=i(93708),h=i(21051),u=i(11615),g=i(43364),p=i(55643),f=i(84978),m=i(75664),_=i(64709),v=i(87357),k=i(44238),y=i(76151),w=i(51209),b=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},M=function(e,t){return function(i,o){t(i,o,e)}};let D=class e{constructor(e,t,i,o){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=o,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 g.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,n.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 d.$t(this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,o.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 o=t[0];if(!o.uri)return;this.textModelResolverService.createModelReference(o.uri).then((t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:n}}=t,{startLineNumber:s}=o.range;if(s<1||s>n.getLineCount())return void t.dispose();const a=this.getPreviewValue(n,s,o);let d;d=o.originSelectionRange?c.Q.lift(o.originSelectionRange):new c.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);const l=this.languageService.guessLanguageIdByFilepathOrFirstLine(n.uri);this.addDecoration(d,(new r.Bc).appendCodeblock(l||"",a)),t.dispose()}))}else this.removeLinkDecorations()})).then(void 0,n.dz)}getPreviewValue(t,i,o){let n=o.range;n.endLineNumber-n.startLineNumber>=e.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(t,i));return this.stripIndentationFromPreviewRange(t,i,n)}stripIndentationFromPreviewRange(e,t,i){let o=e.getLineFirstNonWhitespaceColumn(t);for(let n=t+1;n<i.endLineNumber;n++){const t=e.getLineFirstNonWhitespaceColumn(n);o=Math.min(o,t)}return e.getValueInRange(i).replace(new RegExp(`^\\s{${o-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(t,i){const o=t.getLineFirstNonWhitespaceColumn(i),n=Math.min(t.getLineCount(),i+e.MAX_SOURCE_PREVIEW_LINES);let r=i+1;for(;r<n;r++){if(o===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,y.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 k.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()}};D.ID="editor.contrib.gotodefinitionatposition",D.MAX_SOURCE_PREVIEW_LINES=8,D=b([M(1,u.b),M(2,h.L),M(3,w.u)],D),(0,l.HW)(D.ID,D),(0,v.zy)(((e,t)=>{const i=e.getColor(_.Ztu);i&&t.addRule(`.monaco-editor .goto-definition-link { color: ${i} !important; }`)}))},15250:(e,t,i)=>{i.d(t,{X:()=>ce});var o=i(85345),n=i(79734),r=i(55746),s=i(33793),a=i(39946),d=i(63102),l=i(93708),c=i(55643),h=i(84978),u=i(93308),g=i(17030),p=i(75664),f=i(3660),m=i(7492),_=i(40126),v=i(24096),k=i(51756),y=i(82578),w=i(69848),b=i(78499),M=i(59638),D=i(16201),C=i(15263),S=i(68040),R=i(29579),x=i(21174),P=i(7117),I=i(75562),E=i(21051),T=i(11615),N=i(76421),O=i(55800),L=i(15052),F=i(74790),A=i(3960),W=i(8530),j=i(52040),B=i(87357),K=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},G=function(e,t){return function(i,o){t(i,o,e)}};let U=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof y.y4||e instanceof y.$L}getChildren(e){if(e instanceof y.y4)return e.groups;if(e instanceof y.$L)return e.resolve(this._resolverService).then((e=>e.children));throw new Error("bad tree")}};U=K([G(0,T.b)],U);class ${getHeight(){return 23}getTemplateId(e){return e instanceof y.$L?z.id:q.id}}let V=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof y.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,S.P8)(e.uri)}};V=K([G(0,A.b)],V);class H{getId(e){return e instanceof y.yc?e.id:e.uri}}let Q=class extends s.jG{constructor(e,t,i){super(),this._labelService=t;const o=document.createElement("div");o.classList.add("reference-file"),this.file=this._register(new L.s(o,{supportHighlights:!0})),this.badge=new N.x(w.BC(o,w.$(".count"))),this._register((0,j.Gd)(this.badge,i)),e.appendChild(o)}set(e,t){const i=(0,S.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 o=e.children.length;this.badge.setCount(o),o>1?this.badge.setTitleFormat((0,h.kg)("referencesCount","{0} references",o)):this.badge.setTitleFormat((0,h.kg)("referenceCount","{0} reference",o))}};Q=K([G(1,W.L),G(2,B.Gy)],Q);let z=class e{constructor(t){this._instantiationService=t,this.templateId=e.id}renderTemplate(e){return this._instantiationService.createInstance(Q,e)}renderElement(e,t,i){i.set(e.element,(0,F.WJ)(e.filterData))}disposeTemplate(e){e.dispose()}};z.id="FileReferencesRenderer",z=K([G(0,f._Y)],z);class X{constructor(e){this.label=new O._(e)}set(e,t){var i;const o=null===(i=e.parent.getPreview(e))||void 0===i?void 0:i.preview(e.range);if(o&&o.value){const{value:e,highlight:i}=o;t&&!F.ne.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,(0,F.WJ)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[i]))}else this.label.set(`${(0,S.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(60332),J=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},ee=function(e,t){return function(i,o){t(i,o,e)}},te=function(e,t,i,o){return new(i||(i=Promise))((function(n,r){function s(e){try{d(o.next(e))}catch(t){r(t)}}function a(e){try{d(o.throw(e))}catch(t){r(t)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}d((o=o.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 o=0,n=e.children.length;o<n;o++){const n=e.children[o];this._decorationIgnoreSet.has(n.id)||n.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:n.range,options:ie.DecorationOptions}),i.push(o))}this._editor.changeDecorations((o=>{const n=o.deltaDecorations([],t);for(let t=0;t<n.length;t++)this._decorations.set(n[t],e.children[i[t]])}))}_onDecorationChanged(){const e=[],t=this._editor.getModel();if(t){for(const[i,o]of this._decorations){const n=t.getDecorationRange(i);if(!n)continue;let r=!1;if(!l.Q.equalsRange(n,o.range)){if(l.Q.spansMultipleLines(n))r=!0;else{o.range.endColumn-o.range.startColumn!==n.endColumn-n.startColumn&&(r=!0)}r?(this._decorationIgnoreSet.add(o.id),e.push(i)):o.range=n}}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=x.kI.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"});class oe{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,i;try{const o=JSON.parse(e);t=o.ratio,i=o.heightInLines}catch(o){}return{ratio:t||.7,heightInLines:i||18}}}class ne extends _.er{}let re=class extends c.j6{constructor(e,t,i,o,n,r,a,d,l,c,h,u){super(e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},r),this._defaultTreeKeyboardSupport=t,this.layoutData=i,this._textModelResolverService=n,this._instantiationService=r,this._peekViewService=a,this._uriLabel=d,this._undoRedoService=l,this._keybindingService=c,this._languageService=h,this._languageConfigurationService=u,this._disposeOnNewModel=new s.Cm,this._callOnDispose=new s.Cm,this._onDidSelectReference=new D.vl,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new w.fg(0,0),this._applyTheme(o.getColorTheme()),this._callOnDispose.add(o.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)||M.Q1.transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(c.z0)||M.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=w.BC(e,w.$("div.messages")),w.jD(this._messageContainer),this._splitView=new b.U(e,{orientation:1}),this._previewContainer=w.BC(e,w.$("div.preview.inline"));this._preview=this._instantiationService.createInstance(R.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),w.jD(this._previewContainer),this._previewNotAvailableMessage=new x.Bz(h.kg("missingPreviewMessage","no preview available"),I.vH,x.Bz.DEFAULT_CREATION_OPTIONS,null,this._undoRedoService,this._languageService,this._languageConfigurationService),this._treeContainer=w.BC(e,w.$("div.ref-tree.inline"));const t={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new Z,keyboardNavigationLabelProvider:this._instantiationService.createInstance(V),identityProvider:new H,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:c.n6}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(w.b2(this._treeContainer,"keydown",(e=>{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())}),!0)),this._tree=this._instantiationService.createInstance(ne,"ReferencesWidget",this._treeContainer,new $,[this._instantiationService.createInstance(z),this._instantiationService.createInstance(q)],this._instantiationService.createInstance(U),t),this._splitView.addView({onDidChange:D.Jh.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},b.X.Distribute),this._splitView.addView({onDidChange:D.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)}},b.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 y.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")})),w.jD(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new w.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"),w.WU(this._messageContainer),Promise.resolve(void 0)):(w.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 o=this._getFocusedReference();o&&this._onDidSelectReference.fire({element:{uri:o.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})}))),this.container.classList.add("results-loaded"),w.WU(this._treeContainer),w.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 y.yc?e:e instanceof y.$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!==C.ny.inMemory?this.setTitle((0,S.Pi)(e.uri),this._uriLabel.getUriLabel((0,S.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 o=yield i;if(!this._model)return void o.dispose();(0,s.AS)(this._previewModelReference);const n=o.object;if(n){const t=this._preview.getModel()===n.textEditorModel?0:1,i=l.Q.lift(e.range).collapseToStart();this._previewModelReference=o,this._preview.setModel(n.textEditorModel),this._preview.setSelection(i),this._preview.revealRangeInCenter(i,t)}else this._preview.setModel(this._previewNotAvailableMessage),o.dispose()}))}};re=J([ee(3,B.Gy),ee(4,T.b),ee(5,f._Y),ee(6,c.zn),ee(7,W.L),ee(8,Y.$D),ee(9,A.b),ee(10,E.L),ee(11,P.JZ)],re);var se=function(e,t,i,o){var n,r=arguments.length,s=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,i,s):n(t,i))||s);return r>3&&s&&Object.defineProperty(t,i,s),s},ae=function(e,t){return function(i,o){t(i,o,e)}},de=function(e,t,i,o){return new(i||(i=Promise))((function(n,r){function s(e){try{d(o.next(e))}catch(t){r(t)}}function a(e){try{d(o.throw(e))}catch(t){r(t)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}d((o=o.apply(e,t||[])).next())}))};const le=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,o,n,r,a,d){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=o,this._notificationService=n,this._instantiationService=r,this._storageService=a,this._configurationService=d,this._disposables=new s.Cm,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=le.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 o;if(this._widget&&(o=this._widget.position),this.closeWidget(),o&&e.containsPosition(o))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 n="peekViewLayout",r=oe.fromJSON(this._storageService.get(n,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(n,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()}))),this._disposables.add(this._widget.onDidSelectReference((e=>{const{element:t,kind:o}=e;if(t)switch(o){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 d.y(e.startLineNumber,e.startColumn),o=this._model.nearestReference(t,i);if(o)return this._widget.setSelection(o).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 de(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 o=this._model.nextOrPreviousReference(i,e),n=this._editor.hasTextFocus(),r=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(o),yield this._gotoReference(o),n?this._editor.focus():this._widget&&r&&this._widget.focusOnPreviewEditor()}))}revealReference(e){return de(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=l.Q.lift(t.range).collapseToStart();return this._editorService.openCodeEditor({resource:t.uri,options:{selection:i,selectionSource:"code.jump"}},this._editor).then((t=>{var n;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,o.SS)((e=>Promise.resolve(s))),null!==(n=this._peekMode)&&void 0!==n&&n)}else this.closeWidget()}),(e=>{this._ignoreModelChangeEvent=!1,(0,n.dz)(e)}))}openReference(e,t,i){t||this.closeWidget();const{uri:o,range:n}=e;this._editorService.openCodeEditor({resource:o,options:{selection:n,selectionSource:"code.jump",pinned:i}},this._editor,t)}};function he(e,t){const i=(0,c.RL)(e);if(!i)return;const o=ce.get(i);o&&t(o)}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,k.CS),ae(7,g.pG)],ce),m.f.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,r.m5)(2089,60),when:p.M$.or(le,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(le,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(le,c.x2.inPeekEditor),handler(e){he(e,(e=>{e.goToNextOrPreviousReference(!1)}))}}),u.wb.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),u.wb.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),u.wb.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),u.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(le,p.M$.not("config.editor.stablePeek"))}),m.f.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:p.M$.and(le,_.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 y.yc&&he(e,(e=>e.revealReference(i[0])))}}),m.f.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:p.M$.and(le,_.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 y.yc&&he(e,(e=>e.openReference(i[0],!0,!0)))}}),u.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 y.yc&&he(e,(e=>e.openReference(i[0],!1,!0)))}))},82578:(e,t,i)=>{i.d(t,{$L:()=>f,y4:()=>m,yc:()=>g});var o=i(79734),n=i(16201),r=i(72435),s=i(33793),a=i(19459),d=i(68040),l=i(22231),c=i(93708),h=i(84978),u=function(e,t,i,o){return new(i||(i=Promise))((function(n,r){function s(e){try{d(o.next(e))}catch(t){r(t)}}function a(e){try{d(o.throw(e))}catch(t){r(t)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}d((o=o.apply(e,t||[])).next())}))};class g{constructor(e,t,i,o){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=o,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,d.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,d.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:o,startColumn:n,endLineNumber:r,endColumn:s}=e,a=i.getWordUntilPosition({lineNumber:o,column:n-t}),d=new c.Q(o,a.startColumn,o,n),l=new c.Q(r,s,r,1073741824),h=i.getValueInRange(d).replace(/^\s+/,""),u=i.getValueInRange(e);return{value:h+u+i.getValueInRange(l).replace(/\s+$/,""),highlight:{start:h.length,end:h.length+u.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,d.P8)(this.uri),this.uri.fsPath):(0,h.kg)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,d.P8)(this.uri),this.uri.fsPath)}resolve(e){return u(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,o.dz)(t)}return this}))}}class m{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new n.vl,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;let o;e.sort(m._compareReferences);for(const n of e)if(o&&d.er.isEqual(o.uri,n.uri,!0)||(o=new f(this,n.uri),this.groups.push(o)),0===o.children.length||0!==m._compareReferences(n,o.children[o.children.length-1])){const e=new g(i===n,o,n,(e=>this._onDidChangeReferenceRange.fire(e)));this.references.push(e),o.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 o=i.children.indexOf(e);const n=i.children.length,r=i.parent.groups.length;return 1===r||t&&o+1<n||!t&&o>0?(o=t?(o+1)%n:(o+n-1)%n,i.children[o]):(o=i.parent.groups.indexOf(i),t?(o=(o+1)%r,i.parent.groups[o].children[0]):(o=(o+r-1)%r,i.parent.groups[o].children[i.parent.groups[o].children.length-1]))}nearestReference(e,t){const i=this.references.map(((i,o)=>({idx:o,prefixLen:l.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 d.er.compare(e.uri,t.uri)||c.Q.compareRangesUsingStarts(e.range,t.range)}}}}]);