@oscharko-dev/keiko 0.2.5 → 0.2.6

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 (249) hide show
  1. package/dist/ui/csp-hashes.json +21 -20
  2. package/dist/ui/static/404.html +1 -1
  3. package/dist/ui/static/__next.__PAGE__.txt +4 -4
  4. package/dist/ui/static/__next._full.txt +11 -12
  5. package/dist/ui/static/__next._head.txt +4 -4
  6. package/dist/ui/static/__next._index.txt +4 -4
  7. package/dist/ui/static/__next._tree.txt +2 -3
  8. package/dist/ui/static/_next/static/chunks/141a63f7.b221c9ae6bf65aa1.js +1 -0
  9. package/dist/ui/static/_next/static/chunks/{29d1969dncoef.js → 1562.a7c2497354300cf6.js} +1 -1
  10. package/dist/ui/static/_next/static/chunks/1587.561c8a85eac6595a.js +1 -0
  11. package/dist/ui/static/_next/static/chunks/1688.1b48974d4820565a.js +1 -0
  12. package/dist/ui/static/_next/static/chunks/1814a212.7fd52f5815687000.js +368 -0
  13. package/dist/ui/static/_next/static/chunks/1968-bbcb89b9ce3eb26b.js +32 -0
  14. package/dist/ui/static/_next/static/chunks/1994.32d7f1649e15081f.js +1 -0
  15. package/dist/ui/static/_next/static/chunks/2063.443bb736720d0976.js +1 -0
  16. package/dist/ui/static/_next/static/chunks/2107.c1ff3a39fd003d88.js +1 -0
  17. package/dist/ui/static/_next/static/chunks/2238.1c80c539dd21caff.js +3 -0
  18. package/dist/ui/static/_next/static/chunks/3170.2539679cfc72865c.js +679 -0
  19. package/dist/ui/static/_next/static/chunks/3181.7d593f9e0f846c96.js +1 -0
  20. package/dist/ui/static/_next/static/chunks/3294.024505d0744fef2a.js +1 -0
  21. package/dist/ui/static/_next/static/chunks/3740.84a20b2730a97a3a.js +1 -0
  22. package/dist/ui/static/_next/static/chunks/3868.3ebf6f39d31a4cce.js +1 -0
  23. package/dist/ui/static/_next/static/chunks/3883.f8e3dc3fea7fdbe1.js +1 -0
  24. package/dist/ui/static/_next/static/chunks/3968.55fa02cd74fb96b3.js +1 -0
  25. package/dist/ui/static/_next/static/chunks/4444.46b9cfb85257a381.js +1 -0
  26. package/dist/ui/static/_next/static/chunks/4621-88a84538a70dcf6d.js +98 -0
  27. package/dist/ui/static/_next/static/chunks/{0i37w6dtch5bm.js → 4690.6bc5c7d6c119aa54.js} +1 -1
  28. package/dist/ui/static/_next/static/chunks/4905.e5c0de0e634d5b31.js +1 -0
  29. package/dist/ui/static/_next/static/chunks/{0r1eh0425nsf8.js → 5272.bca1ad25a75d8d0a.js} +1 -1
  30. package/dist/ui/static/_next/static/chunks/5730.56d7cdb98dbdc486.js +1 -0
  31. package/dist/ui/static/_next/static/chunks/6028.c73575c441d46324.js +1 -0
  32. package/dist/ui/static/_next/static/chunks/{1pxydolx3s42k.js → 6774.52093bc8b0ffabc8.js} +1 -1
  33. package/dist/ui/static/_next/static/chunks/6808.64f635d2f411e8a8.js +1 -0
  34. package/dist/ui/static/_next/static/chunks/6bb8c0f0.ef92cd6e0332751d.js +1005 -0
  35. package/dist/ui/static/_next/static/chunks/7301.0c053ca1f6a524e6.js +1 -0
  36. package/dist/ui/static/_next/static/chunks/7573.103bcab7ad9ec4f4.js +1 -0
  37. package/dist/ui/static/_next/static/chunks/7732.a6e5df401d584efd.js +1 -0
  38. package/dist/ui/static/_next/static/chunks/7f819917.631f7e51d345e84c.js +1 -0
  39. package/dist/ui/static/_next/static/chunks/8556.4f751fdef390f050.js +1 -0
  40. package/dist/ui/static/_next/static/chunks/8776.140362f8c6f4d7f1.js +3 -0
  41. package/dist/ui/static/_next/static/chunks/87c73c54-014124adcece3495.js +1 -0
  42. package/dist/ui/static/_next/static/chunks/8835-d642f66c1962fa68.js +1 -0
  43. package/dist/ui/static/_next/static/chunks/8948.d928ebd17b05f4df.js +1 -0
  44. package/dist/ui/static/_next/static/chunks/9211-06ff5a834d85f608.js +3 -0
  45. package/dist/ui/static/_next/static/chunks/9385.4cf1f094775e2625.js +1 -0
  46. package/dist/ui/static/_next/static/chunks/{1qlzx0yicfamw.js → 9580.c45199468eff0333.js} +1 -1
  47. package/dist/ui/static/_next/static/chunks/960-fc53cb72c81db8c2.js +1 -0
  48. package/dist/ui/static/_next/static/chunks/9682.d5b8d9ce8cb80519.js +1 -0
  49. package/dist/ui/static/_next/static/chunks/9834.a4b101bcdd6d6a02.js +7 -0
  50. package/dist/ui/static/_next/static/chunks/9976.5970067ee5af21ee.js +1 -0
  51. package/dist/ui/static/_next/static/chunks/app/_global-error/page-7bf8bd93aa11e337.js +1 -0
  52. package/dist/ui/static/_next/static/chunks/app/_not-found/page-f21e3f25e28a4fe0.js +1 -0
  53. package/dist/ui/static/_next/static/chunks/app/launch/page-e1218f7643eb0a6e.js +1 -0
  54. package/dist/ui/static/_next/static/chunks/app/layout-b771eb1e519fd8e1.js +1 -0
  55. package/dist/ui/static/_next/static/chunks/app/local-knowledge/capsule/page-97eb36a77e8d4e78.js +1 -0
  56. package/dist/ui/static/_next/static/chunks/app/local-knowledge/page-d8f34047a97108ae.js +1 -0
  57. package/dist/ui/static/_next/static/chunks/app/memoriaviva/consolidation/page-7bf8bd93aa11e337.js +1 -0
  58. package/dist/ui/static/_next/static/chunks/app/memoriaviva/detail/page-7bf8bd93aa11e337.js +1 -0
  59. package/dist/ui/static/_next/static/chunks/app/memoriaviva/page-7bf8bd93aa11e337.js +1 -0
  60. package/dist/ui/static/_next/static/chunks/app/memoriaviva/review-queue/page-7bf8bd93aa11e337.js +1 -0
  61. package/dist/ui/static/_next/static/chunks/app/page-919e12de0b674447.js +1 -0
  62. package/dist/ui/static/_next/static/chunks/ebdf2699.65a70a76e20e9c97.js +1 -0
  63. package/dist/ui/static/_next/static/chunks/framework-2da6d53e02270a60.js +1 -0
  64. package/dist/ui/static/_next/static/chunks/main-3c13180c1c50c526.js +5 -0
  65. package/dist/ui/static/_next/static/chunks/main-app-f9e2c4e6329295bb.js +1 -0
  66. package/dist/ui/static/_next/static/chunks/next/dist/client/components/builtin/app-error-7bf8bd93aa11e337.js +1 -0
  67. package/dist/ui/static/_next/static/chunks/next/dist/client/components/builtin/forbidden-7bf8bd93aa11e337.js +1 -0
  68. package/dist/ui/static/_next/static/chunks/next/dist/client/components/builtin/global-error-af3824b7b26275df.js +1 -0
  69. package/dist/ui/static/_next/static/chunks/next/dist/client/components/builtin/not-found-7bf8bd93aa11e337.js +1 -0
  70. package/dist/ui/static/_next/static/chunks/next/dist/client/components/builtin/unauthorized-7bf8bd93aa11e337.js +1 -0
  71. package/dist/ui/static/_next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  72. package/dist/ui/static/_next/static/chunks/webpack-284633a353ab8ff4.js +1 -0
  73. package/dist/ui/static/_next/static/css/0fcf744e25b17e8a.css +3 -0
  74. package/dist/ui/static/_next/static/css/1ab47b3e78ccc975.css +3 -0
  75. package/dist/ui/static/_next/static/css/29c9f45818b0ee66.css +1 -0
  76. package/dist/ui/static/_next/static/css/5adfb34e72f5c7db.css +1 -0
  77. package/dist/ui/static/_next/static/oUkwnS6PllEZCcS8tUuTR/_buildManifest.js +1 -0
  78. package/dist/ui/static/_next/static/{961tfXyg-9TM0-AkHdDcN → oUkwnS6PllEZCcS8tUuTR}/_ssgManifest.js +1 -1
  79. package/dist/ui/static/_not-found/__next._full.txt +9 -9
  80. package/dist/ui/static/_not-found/__next._head.txt +4 -4
  81. package/dist/ui/static/_not-found/__next._index.txt +4 -4
  82. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +2 -2
  83. package/dist/ui/static/_not-found/__next._not-found.txt +3 -3
  84. package/dist/ui/static/_not-found/__next._tree.txt +2 -2
  85. package/dist/ui/static/_not-found.html +1 -1
  86. package/dist/ui/static/_not-found.txt +9 -9
  87. package/dist/ui/static/index.html +1 -1
  88. package/dist/ui/static/index.txt +11 -12
  89. package/dist/ui/static/launch/__next._full.txt +11 -12
  90. package/dist/ui/static/launch/__next._head.txt +4 -4
  91. package/dist/ui/static/launch/__next._index.txt +4 -4
  92. package/dist/ui/static/launch/__next._tree.txt +2 -3
  93. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +4 -4
  94. package/dist/ui/static/launch/__next.launch.txt +3 -3
  95. package/dist/ui/static/launch.html +1 -1
  96. package/dist/ui/static/launch.txt +11 -12
  97. package/dist/ui/static/local-knowledge/__next._full.txt +11 -12
  98. package/dist/ui/static/local-knowledge/__next._head.txt +4 -4
  99. package/dist/ui/static/local-knowledge/__next._index.txt +4 -4
  100. package/dist/ui/static/local-knowledge/__next._tree.txt +2 -3
  101. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +4 -4
  102. package/dist/ui/static/local-knowledge/__next.local-knowledge.txt +3 -3
  103. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +10 -10
  104. package/dist/ui/static/local-knowledge/capsule/__next._head.txt +4 -4
  105. package/dist/ui/static/local-knowledge/capsule/__next._index.txt +4 -4
  106. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +2 -2
  107. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +3 -3
  108. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.txt +3 -3
  109. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.txt +3 -3
  110. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  111. package/dist/ui/static/local-knowledge/capsule.txt +10 -10
  112. package/dist/ui/static/local-knowledge.html +1 -1
  113. package/dist/ui/static/local-knowledge.txt +11 -12
  114. package/dist/ui/static/memoriaviva/__next._full.txt +9 -9
  115. package/dist/ui/static/memoriaviva/__next._head.txt +4 -4
  116. package/dist/ui/static/memoriaviva/__next._index.txt +4 -4
  117. package/dist/ui/static/memoriaviva/__next._tree.txt +2 -2
  118. package/dist/ui/static/memoriaviva/__next.memoriaviva.__PAGE__.txt +2 -2
  119. package/dist/ui/static/memoriaviva/__next.memoriaviva.txt +3 -3
  120. package/dist/ui/static/memoriaviva/consolidation/__next._full.txt +9 -9
  121. package/dist/ui/static/memoriaviva/consolidation/__next._head.txt +4 -4
  122. package/dist/ui/static/memoriaviva/consolidation/__next._index.txt +4 -4
  123. package/dist/ui/static/memoriaviva/consolidation/__next._tree.txt +2 -2
  124. package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.consolidation.__PAGE__.txt +2 -2
  125. package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.consolidation.txt +3 -3
  126. package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.txt +3 -3
  127. package/dist/ui/static/memoriaviva/consolidation.html +1 -1
  128. package/dist/ui/static/memoriaviva/consolidation.txt +9 -9
  129. package/dist/ui/static/memoriaviva/detail/__next._full.txt +9 -9
  130. package/dist/ui/static/memoriaviva/detail/__next._head.txt +4 -4
  131. package/dist/ui/static/memoriaviva/detail/__next._index.txt +4 -4
  132. package/dist/ui/static/memoriaviva/detail/__next._tree.txt +2 -2
  133. package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.detail.__PAGE__.txt +2 -2
  134. package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.detail.txt +3 -3
  135. package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.txt +3 -3
  136. package/dist/ui/static/memoriaviva/detail.html +1 -1
  137. package/dist/ui/static/memoriaviva/detail.txt +9 -9
  138. package/dist/ui/static/memoriaviva/review-queue/__next._full.txt +9 -9
  139. package/dist/ui/static/memoriaviva/review-queue/__next._head.txt +4 -4
  140. package/dist/ui/static/memoriaviva/review-queue/__next._index.txt +4 -4
  141. package/dist/ui/static/memoriaviva/review-queue/__next._tree.txt +2 -2
  142. package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.review-queue.__PAGE__.txt +2 -2
  143. package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.review-queue.txt +3 -3
  144. package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.txt +3 -3
  145. package/dist/ui/static/memoriaviva/review-queue.html +1 -1
  146. package/dist/ui/static/memoriaviva/review-queue.txt +9 -9
  147. package/dist/ui/static/memoriaviva.html +1 -1
  148. package/dist/ui/static/memoriaviva.txt +9 -9
  149. package/dist/ui/static/sw.js +1 -211
  150. package/node_modules/@oscharko-dev/keiko-cli/dist/.tsbuildinfo +1 -1
  151. package/node_modules/@oscharko-dev/keiko-cli/package.json +14 -14
  152. package/node_modules/@oscharko-dev/keiko-contracts/dist/.tsbuildinfo +1 -1
  153. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +1 -1
  154. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.js +1 -1
  155. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  156. package/node_modules/@oscharko-dev/keiko-evaluations/dist/.tsbuildinfo +1 -1
  157. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  158. package/node_modules/@oscharko-dev/keiko-evidence/dist/.tsbuildinfo +1 -1
  159. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  160. package/node_modules/@oscharko-dev/keiko-harness/dist/.tsbuildinfo +1 -1
  161. package/node_modules/@oscharko-dev/keiko-harness/package.json +6 -6
  162. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/.tsbuildinfo +1 -1
  163. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  164. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  165. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  166. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  167. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  168. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/.tsbuildinfo +1 -1
  169. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  170. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/.tsbuildinfo +1 -1
  171. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +3 -3
  172. package/node_modules/@oscharko-dev/keiko-quality-intelligence/dist/.tsbuildinfo +1 -1
  173. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  174. package/node_modules/@oscharko-dev/keiko-sandbox/dist/.tsbuildinfo +1 -1
  175. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  176. package/node_modules/@oscharko-dev/keiko-sdk/dist/.tsbuildinfo +1 -1
  177. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  178. package/node_modules/@oscharko-dev/keiko-security/dist/.tsbuildinfo +1 -1
  179. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  180. package/node_modules/@oscharko-dev/keiko-server/dist/.tsbuildinfo +1 -1
  181. package/node_modules/@oscharko-dev/keiko-server/package.json +19 -19
  182. package/node_modules/@oscharko-dev/keiko-tools/dist/.tsbuildinfo +1 -1
  183. package/node_modules/@oscharko-dev/keiko-tools/package.json +5 -5
  184. package/node_modules/@oscharko-dev/keiko-verification/dist/.tsbuildinfo +1 -1
  185. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  186. package/node_modules/@oscharko-dev/keiko-workflows/dist/.tsbuildinfo +1 -1
  187. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  188. package/node_modules/@oscharko-dev/keiko-workspace/dist/.tsbuildinfo +1 -1
  189. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  190. package/package.json +24 -22
  191. package/dist/ui/static/_next/static/961tfXyg-9TM0-AkHdDcN/_buildManifest.js +0 -11
  192. package/dist/ui/static/_next/static/961tfXyg-9TM0-AkHdDcN/_clientMiddlewareManifest.js +0 -1
  193. package/dist/ui/static/_next/static/chunks/02x_fenv7_zew.js +0 -1
  194. package/dist/ui/static/_next/static/chunks/04v1kck7tfha5.js +0 -3
  195. package/dist/ui/static/_next/static/chunks/05-c3ty_6dwfk.js +0 -1
  196. package/dist/ui/static/_next/static/chunks/0cz1d0mv5g_q7.js +0 -1
  197. package/dist/ui/static/_next/static/chunks/0f5n_cgpnc_up.js +0 -1
  198. package/dist/ui/static/_next/static/chunks/0f8vu_oqmv33v.js +0 -1
  199. package/dist/ui/static/_next/static/chunks/0oj6iz8mnbx8s.js +0 -2
  200. package/dist/ui/static/_next/static/chunks/0plguvqu88z22.css +0 -1
  201. package/dist/ui/static/_next/static/chunks/0rfgnninook6m.js +0 -7
  202. package/dist/ui/static/_next/static/chunks/0rpy-4z62fhgt.js +0 -1
  203. package/dist/ui/static/_next/static/chunks/1008yamfukit7.js +0 -1
  204. package/dist/ui/static/_next/static/chunks/118gmc8yis71o.js +0 -1
  205. package/dist/ui/static/_next/static/chunks/14mrh2-p_w84d.js +0 -1
  206. package/dist/ui/static/_next/static/chunks/14pxq1l54d91b.js +0 -100
  207. package/dist/ui/static/_next/static/chunks/1bch0lzf2jhte.js +0 -1
  208. package/dist/ui/static/_next/static/chunks/1g9ftam8b7m8q.js +0 -1
  209. package/dist/ui/static/_next/static/chunks/1hu0-yn7a2hl7.js +0 -1
  210. package/dist/ui/static/_next/static/chunks/1jb065bgx6s74.js +0 -1
  211. package/dist/ui/static/_next/static/chunks/1ranrsmqde7a3.js +0 -1
  212. package/dist/ui/static/_next/static/chunks/1x1yfevmu5rb2.js +0 -1
  213. package/dist/ui/static/_next/static/chunks/20foqqrxh746m.js +0 -1
  214. package/dist/ui/static/_next/static/chunks/29350453epqhl.js +0 -678
  215. package/dist/ui/static/_next/static/chunks/2brgey_3-j__0.css +0 -78
  216. package/dist/ui/static/_next/static/chunks/2f07lv5x0j18r.js +0 -31
  217. package/dist/ui/static/_next/static/chunks/2hyzx1ec3gusp.js +0 -5
  218. package/dist/ui/static/_next/static/chunks/2kk_6twoug205.js +0 -1
  219. package/dist/ui/static/_next/static/chunks/2m8gr4lszkhce.js +0 -1
  220. package/dist/ui/static/_next/static/chunks/2ow5x0jmgs6c3.js +0 -1
  221. package/dist/ui/static/_next/static/chunks/2udnn0cidn7rd.js +0 -1372
  222. package/dist/ui/static/_next/static/chunks/2xt20mg9l3s14.js +0 -1
  223. package/dist/ui/static/_next/static/chunks/332o8ksd43271.css +0 -2
  224. package/dist/ui/static/_next/static/chunks/3ikgvfgh2w2mv.js +0 -1
  225. package/dist/ui/static/_next/static/chunks/3l7lvskoqfema.js +0 -1
  226. package/dist/ui/static/_next/static/chunks/3m8_lgj6p8ik3.js +0 -1
  227. package/dist/ui/static/_next/static/chunks/3peubv2924kx4.js +0 -1
  228. package/dist/ui/static/_next/static/chunks/3rcxnxkqe56aj.js +0 -1
  229. package/dist/ui/static/_next/static/chunks/3s4w0yl_p2lcg.css +0 -11
  230. package/dist/ui/static/_next/static/chunks/3wdv1n7vcw9cc.js +0 -3
  231. package/dist/ui/static/_next/static/chunks/3xvtkd60q8trh.js +0 -1
  232. package/dist/ui/static/_next/static/chunks/3zd9_bzzf89g-.js +0 -1
  233. package/dist/ui/static/_next/static/chunks/403o25d1h_c-n.js +0 -1
  234. package/dist/ui/static/_next/static/chunks/40jvaobgkjymu.js +0 -1
  235. package/dist/ui/static/_next/static/chunks/40zvqgo8jkl9z.css +0 -7
  236. package/dist/ui/static/_next/static/chunks/43ils02xq1hm1.js +0 -2
  237. package/dist/ui/static/_next/static/chunks/turbopack-06ieh9kn4227g.js +0 -1
  238. package/dist/ui/static/_next/static/chunks/turbopack-1g6b_g7qh0ywi.js +0 -1
  239. package/dist/ui/static/_next/static/chunks/turbopack-2kouhzbnsra9l.js +0 -1
  240. package/dist/ui/static/_next/static/chunks/turbopack-2t_ks90iyjtkj.js +0 -1
  241. package/dist/ui/static/_next/static/chunks/turbopack-3isq3ty8v6x-q.js +0 -1
  242. package/dist/ui/static/_next/static/chunks/turbopack-410ydpmcadyki.js +0 -1
  243. package/dist/ui/static/_next/static/chunks/turbopack-worker-2gqdcwp7k90ea.js +0 -1
  244. package/dist/ui/static/_next/static/media/css.worker.2tg30ell0fh1e.js +0 -8
  245. package/dist/ui/static/_next/static/media/editor.worker.2da6bfstu5_et.js +0 -11
  246. package/dist/ui/static/_next/static/media/html.worker.3rfboyno_oqe1.js +0 -8
  247. package/dist/ui/static/_next/static/media/json.worker.3z5byn_3-su6-.js +0 -8
  248. package/dist/ui/static/_next/static/media/ts.worker.0i3svvld44ebg.js +0 -14
  249. /package/dist/ui/static/_next/static/media/{codicon.3bppog5b8ye-1.ttf → codicon.5b7d6fac.ttf} +0 -0
@@ -0,0 +1,7 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9834],{89834:(e,t,i)=>{let r;var n,s,a,o,l,h,c,u,p,d,f,m,g,_,y,b,x,C,k,v,S,w,P,E,R,I,D,A,T,$,M,L,F,N,V,O,U,B,W,K,z,j,q,H,Q,G,J,X,Z,Y,ee,et,ei,er,en,es,ea,eo,el,eh,ec,eu,ep,ed,ef,em,eg,e_,ey,eb,ex,eC,ek,ev,eS,ew,eP,eE,eR,eI,eD,eA,eT,e$,eM,eL,eF,eN,eV,eO,eU,eB,eW,eK,ez,ej,eq,eH,eQ,eG,eJ,eX,eZ,eY,e0,e1,e2,e5,e4,e3,e6,e7,e8,e9,te,tt,ti,tr,tn,ts,ta,to,tl,th,tc,tu,tp,td,tf,tm,tg,t_,ty,tb,tx,tC,tk,tv,tS,tw,tP,tE,tR,tI,tD,tA,tT,t$,tM,tL,tF,tN,tV,tO,tU=i(31409),tB=i(55368),tW=i(52216);(n=em||(em={}))[n.Ident=0]="Ident",n[n.AtKeyword=1]="AtKeyword",n[n.String=2]="String",n[n.BadString=3]="BadString",n[n.UnquotedString=4]="UnquotedString",n[n.Hash=5]="Hash",n[n.Num=6]="Num",n[n.Percentage=7]="Percentage",n[n.Dimension=8]="Dimension",n[n.UnicodeRange=9]="UnicodeRange",n[n.CDO=10]="CDO",n[n.CDC=11]="CDC",n[n.Colon=12]="Colon",n[n.SemiColon=13]="SemiColon",n[n.CurlyL=14]="CurlyL",n[n.CurlyR=15]="CurlyR",n[n.ParenthesisL=16]="ParenthesisL",n[n.ParenthesisR=17]="ParenthesisR",n[n.BracketL=18]="BracketL",n[n.BracketR=19]="BracketR",n[n.Whitespace=20]="Whitespace",n[n.Includes=21]="Includes",n[n.Dashmatch=22]="Dashmatch",n[n.SubstringOperator=23]="SubstringOperator",n[n.PrefixOperator=24]="PrefixOperator",n[n.SuffixOperator=25]="SuffixOperator",n[n.Delim=26]="Delim",n[n.EMS=27]="EMS",n[n.EXS=28]="EXS",n[n.Length=29]="Length",n[n.Angle=30]="Angle",n[n.Time=31]="Time",n[n.Freq=32]="Freq",n[n.Exclamation=33]="Exclamation",n[n.Resolution=34]="Resolution",n[n.Comma=35]="Comma",n[n.Charset=36]="Charset",n[n.EscapedJavaScript=37]="EscapedJavaScript",n[n.BadEscapedJavaScript=38]="BadEscapedJavaScript",n[n.Comment=39]="Comment",n[n.SingleLineComment=40]="SingleLineComment",n[n.EOF=41]="EOF",n[n.ContainerQueryLength=42]="ContainerQueryLength",n[n.CustomToken=43]="CustomToken";class tK{substring(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.position;return this.source.substring(e,t);}eos(){return this.len<=this.position;}pos(){return this.position;}goBackTo(e){this.position=e;}goBack(e){this.position-=e;}advance(e){this.position+=e;}nextChar(){return this.source.charCodeAt(this.position++)||0;}peekChar(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.source.charCodeAt(this.position+e)||0;}lookbackChar(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.source.charCodeAt(this.position-e)||0;}advanceIfChar(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0);}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let t=0;for(;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0;}advanceWhileChar(e){let t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t;}constructor(e){this.source=e,this.len=e.length,this.position=0;}}let tz={};tz[59]=em.SemiColon,tz[58]=em.Colon,tz[123]=em.CurlyL,tz[125]=em.CurlyR,tz[93]=em.BracketR,tz[91]=em.BracketL,tz[40]=em.ParenthesisL,tz[41]=em.ParenthesisR,tz[44]=em.Comma;let tj={};tj.em=em.EMS,tj.ex=em.EXS,tj.px=em.Length,tj.cm=em.Length,tj.mm=em.Length,tj.in=em.Length,tj.pt=em.Length,tj.pc=em.Length,tj.deg=em.Angle,tj.rad=em.Angle,tj.grad=em.Angle,tj.ms=em.Time,tj.s=em.Time,tj.hz=em.Freq,tj.khz=em.Freq,tj["%"]=em.Percentage,tj.fr=em.Percentage,tj.dpi=em.Resolution,tj.dpcm=em.Resolution,tj.cqw=em.ContainerQueryLength,tj.cqh=em.ContainerQueryLength,tj.cqi=em.ContainerQueryLength,tj.cqb=em.ContainerQueryLength,tj.cqmin=em.ContainerQueryLength,tj.cqmax=em.ContainerQueryLength;class tq{setSource(e){this.stream=new tK(e);}finishToken(e,t,i){return{offset:e,len:this.stream.pos()-e,type:t,text:i||this.stream.substring(e)};}substring(e,t){return this.stream.substring(e,e+t);}pos(){return this.stream.pos();}goBackTo(e){this.stream.goBackTo(e);}scanUnquotedString(){let e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,em.UnquotedString,t.join("")):null;}scan(){let e=this.trivia();if(null!==e)return e;let t=this.stream.pos();return this.stream.eos()?this.finishToken(t,em.EOF):this.scanNext(t);}tryScanUnicode(){let e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,em.UnicodeRange);this.stream.goBackTo(e);}scanNext(e){if(this.stream.advanceIfChars([60,33,45,45]))return this.finishToken(e,em.CDO);if(this.stream.advanceIfChars([45,45,62]))return this.finishToken(e,em.CDC);let t=[];if(this.ident(t))return this.finishToken(e,em.Ident,t.join(""));if(this.stream.advanceIfChar(64)){if(t=["@"],!this._name(t))return this.finishToken(e,em.Delim);{let i=t.join("");return"@charset"===i?this.finishToken(e,em.Charset,i):this.finishToken(e,em.AtKeyword,i);}}if(this.stream.advanceIfChar(35))return(t=["#"],this._name(t))?this.finishToken(e,em.Hash,t.join("")):this.finishToken(e,em.Delim);if(this.stream.advanceIfChar(33))return this.finishToken(e,em.Exclamation);if(this._number()){let i=this.stream.pos();if(t=[this.stream.substring(e,i)],this.stream.advanceIfChar(37))return this.finishToken(e,em.Percentage);if(this.ident(t)){let r=tj[this.stream.substring(i).toLowerCase()];return void 0!==r?this.finishToken(e,r,t.join("")):this.finishToken(e,em.Dimension,t.join(""));}return this.finishToken(e,em.Num);}t=[];let i=this._string(t);return null!==i?this.finishToken(e,i,t.join("")):void 0!==(i=tz[this.stream.peekChar()])?(this.stream.advance(1),this.finishToken(e,i)):126===this.stream.peekChar(0)&&61===this.stream.peekChar(1)?(this.stream.advance(2),this.finishToken(e,em.Includes)):124===this.stream.peekChar(0)&&61===this.stream.peekChar(1)?(this.stream.advance(2),this.finishToken(e,em.Dashmatch)):42===this.stream.peekChar(0)&&61===this.stream.peekChar(1)?(this.stream.advance(2),this.finishToken(e,em.SubstringOperator)):94===this.stream.peekChar(0)&&61===this.stream.peekChar(1)?(this.stream.advance(2),this.finishToken(e,em.PrefixOperator)):36===this.stream.peekChar(0)&&61===this.stream.peekChar(1)?(this.stream.advance(2),this.finishToken(e,em.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,em.Delim));}trivia(){for(;;){let e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,em.Whitespace);}else if(!this.comment())return null;else if(!this.ignoreComment)return this.finishToken(e,em.Comment);}}comment(){if(this.stream.advanceIfChars([47,42])){let e=!1,t=!1;return this.stream.advanceWhileChar(i=>t&&47===i?(e=!0,!1):(t=42===i,!0)),e&&this.stream.advance(1),!0;}return!1;}_number(){let e=0,t;return 46===this.stream.peekChar()&&(e=1),(t=this.stream.peekChar(e))>=48&&t<=57&&(this.stream.advance(e+1),this.stream.advanceWhileChar(t=>t>=48&&t<=57||0===e&&46===t),!0);}_newline(e){let t=this.stream.peekChar();switch(t){case 13:case 12:case 10:return this.stream.advance(1),e.push(String.fromCharCode(t)),13===t&&this.stream.advanceIfChar(10)&&e.push("\n"),!0;}return!1;}_escape(e,t){let i=this.stream.peekChar();if(92===i){this.stream.advance(1),i=this.stream.peekChar();let r=0;for(;r<6&&(i>=48&&i<=57||i>=97&&i<=102||i>=65&&i<=70);)this.stream.advance(1),i=this.stream.peekChar(),r++;if(r>0){try{let t=parseInt(this.stream.substring(this.stream.pos()-r),16);t&&e.push(String.fromCharCode(t));}catch(e){}return 32===i||9===i?this.stream.advance(1):this._newline([]),!0;}if(13!==i&&12!==i&&10!==i)return this.stream.advance(1),e.push(String.fromCharCode(i)),!0;if(t)return this._newline(e);}return!1;}_stringChar(e,t){let i=this.stream.peekChar();return 0!==i&&i!==e&&92!==i&&13!==i&&12!==i&&10!==i&&(this.stream.advance(1),t.push(String.fromCharCode(i)),!0);}_string(e){if(39===this.stream.peekChar()||34===this.stream.peekChar()){let t=this.stream.nextChar();for(e.push(String.fromCharCode(t));this._stringChar(t,e)||this._escape(e,!0););return this.stream.peekChar()===t?(this.stream.nextChar(),e.push(String.fromCharCode(t)),em.String):em.BadString;}return null;}_unquotedChar(e){let t=this.stream.peekChar();return 0!==t&&92!==t&&39!==t&&34!==t&&40!==t&&41!==t&&32!==t&&9!==t&&10!==t&&12!==t&&13!==t&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0);}_unquotedString(e){let t=!1;for(;this._unquotedChar(e)||this._escape(e);)t=!0;return t;}_whitespace(){return this.stream.advanceWhileChar(e=>32===e||9===e||10===e||12===e||13===e)>0;}_name(e){let t=!1;for(;this._identChar(e)||this._escape(e);)t=!0;return t;}ident(e){let t=this.stream.pos();if(this._minus(e)){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0;}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0;}return this.stream.goBackTo(t),!1;}_identFirstChar(e){let t=this.stream.peekChar();return(95===t||t>=97&&t<=122||t>=65&&t<=90||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0);}_minus(e){let t=this.stream.peekChar();return 45===t&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0);}_identChar(e){let t=this.stream.peekChar();return(95===t||45===t||t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0);}_unicodeRange(){if(this.stream.advanceIfChar(43)){let e=e=>e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70,t=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar(e=>63===e);if(t>=1&&t<=6)if(!this.stream.advanceIfChar(45))return!0;else{let t=this.stream.advanceWhileChar(e);if(t>=1&&t<=6)return!0;}}return!1;}constructor(){this.stream=new tK(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1;}}function tH(e,t){if(e.length<t.length)return!1;for(let i=0;i<t.length;i++)if(e[i]!==t[i])return!1;return!0;}function tQ(e,t){let i=e.length-t.length;return i>0?e.lastIndexOf(t)===i:0===i&&e===t;}function tG(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e?e.length<140?e:e.slice(0,140)+(t?"…":""):"";}function tJ(e,t){let i="";for(;t>0;)(1&t)==1&&(i+=e),e+=e,t>>>=1;return i;}function tX(e,t){let i=null;return!e||t<e.offset||t>e.end?null:(e.accept(e=>-1===e.offset&&-1===e.length||e.offset<=t&&e.end>=t&&(i?e.length<=i.length&&(i=e):i=e,!0)),i);}function tZ(e,t){let i=tX(e,t),r=[];for(;i;)r.unshift(i),i=i.parent;return r;}(s=eg||(eg={}))[s.Undefined=0]="Undefined",s[s.Identifier=1]="Identifier",s[s.Stylesheet=2]="Stylesheet",s[s.Ruleset=3]="Ruleset",s[s.Selector=4]="Selector",s[s.SimpleSelector=5]="SimpleSelector",s[s.SelectorInterpolation=6]="SelectorInterpolation",s[s.SelectorCombinator=7]="SelectorCombinator",s[s.SelectorCombinatorParent=8]="SelectorCombinatorParent",s[s.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",s[s.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",s[s.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",s[s.Page=12]="Page",s[s.PageBoxMarginBox=13]="PageBoxMarginBox",s[s.ClassSelector=14]="ClassSelector",s[s.IdentifierSelector=15]="IdentifierSelector",s[s.ElementNameSelector=16]="ElementNameSelector",s[s.PseudoSelector=17]="PseudoSelector",s[s.AttributeSelector=18]="AttributeSelector",s[s.Declaration=19]="Declaration",s[s.Declarations=20]="Declarations",s[s.Property=21]="Property",s[s.Expression=22]="Expression",s[s.BinaryExpression=23]="BinaryExpression",s[s.Term=24]="Term",s[s.Operator=25]="Operator",s[s.Value=26]="Value",s[s.StringLiteral=27]="StringLiteral",s[s.URILiteral=28]="URILiteral",s[s.EscapedValue=29]="EscapedValue",s[s.Function=30]="Function",s[s.NumericValue=31]="NumericValue",s[s.HexColorValue=32]="HexColorValue",s[s.RatioValue=33]="RatioValue",s[s.MixinDeclaration=34]="MixinDeclaration",s[s.MixinReference=35]="MixinReference",s[s.VariableName=36]="VariableName",s[s.VariableDeclaration=37]="VariableDeclaration",s[s.Prio=38]="Prio",s[s.Interpolation=39]="Interpolation",s[s.NestedProperties=40]="NestedProperties",s[s.ExtendsReference=41]="ExtendsReference",s[s.SelectorPlaceholder=42]="SelectorPlaceholder",s[s.Debug=43]="Debug",s[s.If=44]="If",s[s.Else=45]="Else",s[s.For=46]="For",s[s.Each=47]="Each",s[s.While=48]="While",s[s.MixinContentReference=49]="MixinContentReference",s[s.MixinContentDeclaration=50]="MixinContentDeclaration",s[s.Media=51]="Media",s[s.Keyframe=52]="Keyframe",s[s.FontFace=53]="FontFace",s[s.Import=54]="Import",s[s.Namespace=55]="Namespace",s[s.Invocation=56]="Invocation",s[s.FunctionDeclaration=57]="FunctionDeclaration",s[s.ReturnStatement=58]="ReturnStatement",s[s.MediaQuery=59]="MediaQuery",s[s.MediaCondition=60]="MediaCondition",s[s.MediaFeature=61]="MediaFeature",s[s.FunctionParameter=62]="FunctionParameter",s[s.FunctionArgument=63]="FunctionArgument",s[s.KeyframeSelector=64]="KeyframeSelector",s[s.ViewPort=65]="ViewPort",s[s.Document=66]="Document",s[s.AtApplyRule=67]="AtApplyRule",s[s.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",s[s.CustomPropertySet=69]="CustomPropertySet",s[s.ListEntry=70]="ListEntry",s[s.Supports=71]="Supports",s[s.SupportsCondition=72]="SupportsCondition",s[s.NamespacePrefix=73]="NamespacePrefix",s[s.GridLine=74]="GridLine",s[s.Plugin=75]="Plugin",s[s.UnknownAtRule=76]="UnknownAtRule",s[s.Use=77]="Use",s[s.ModuleConfiguration=78]="ModuleConfiguration",s[s.Forward=79]="Forward",s[s.ForwardVisibility=80]="ForwardVisibility",s[s.Module=81]="Module",s[s.UnicodeRange=82]="UnicodeRange",s[s.Layer=83]="Layer",s[s.LayerNameList=84]="LayerNameList",s[s.LayerName=85]="LayerName",s[s.PropertyAtRule=86]="PropertyAtRule",s[s.Container=87]="Container",(a=e_||(e_={}))[a.Mixin=0]="Mixin",a[a.Rule=1]="Rule",a[a.Variable=2]="Variable",a[a.Function=3]="Function",a[a.Keyframe=4]="Keyframe",a[a.Unknown=5]="Unknown",a[a.Module=6]="Module",a[a.Forward=7]="Forward",a[a.ForwardVisibility=8]="ForwardVisibility",a[a.Property=9]="Property";class tY{get end(){return this.offset+this.length;}set type(e){this.nodeType=e;}get type(){return this.nodeType||eg.Undefined;}getTextProvider(){let e=this;for(;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:()=>"unknown";}getText(){return this.getTextProvider()(this.offset,this.length);}matches(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e;}startsWith(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e;}endsWith(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e;}accept(e){if(e(this)&&this.children)for(let t of this.children)t.accept(e);}acceptVisitor(e){this.accept(e.visitNode.bind(e));}adoptChild(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(e.parent&&e.parent.children){let t=e.parent.children.indexOf(e);t>=0&&e.parent.children.splice(t,1);}e.parent=this;let i=this.children;return i||(i=this.children=[]),-1!==t?i.splice(t,0,e):i.push(e),e;}attachTo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return e&&e.adoptChild(this,t),this;}collectIssues(e){this.issues&&e.push.apply(e,this.issues);}addIssue(e){this.issues||(this.issues=[]),this.issues.push(e);}hasIssue(e){return Array.isArray(this.issues)&&this.issues.some(t=>t.getRule()===e);}isErroneous(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!!this.issues&&this.issues.length>0||e&&Array.isArray(this.children)&&this.children.some(e=>e.isErroneous(!0));}setNode(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return!!t&&(t.attachTo(this,i),this[e]=t,!0);}addChild(e){return!!e&&(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0);}updateOffsetAndLength(e){(e.offset<this.offset||-1===this.offset)&&(this.offset=e.offset);let t=e.end;(t>this.end||-1===this.length)&&(this.length=t-this.offset);}hasChildren(){return!!this.children&&this.children.length>0;}getChildren(){return this.children?this.children.slice(0):[];}getChild(e){return this.children&&e<this.children.length?this.children[e]:null;}addChildren(e){for(let t of e)this.addChild(t);}findFirstChildBeforeOffset(e){if(this.children){let t=null;for(let i=this.children.length-1;i>=0;i--)if((t=this.children[i]).offset<=e)return t;}return null;}findChildAtOffset(e,t){let i=this.findFirstChildBeforeOffset(e);return i&&i.end>=e?t&&i.findChildAtOffset(e,!0)||i:null;}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length;}getParent(){let e=this.parent;for(;e instanceof t0;)e=e.parent;return e;}findParent(e){let t=this;for(;t&&t.type!==e;)t=t.parent;return t;}findAParent(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let r=this;for(;r&&!t.some(e=>r.type===e);)r=r.parent;return r;}setData(e,t){this.options||(this.options={}),this.options[e]=t;}getData(e){return this.options&&this.options.hasOwnProperty(e)?this.options[e]:null;}constructor(e=-1,t=-1,i){this.parent=null,this.offset=e,this.length=t,i&&(this.nodeType=i);}}class t0 extends tY{constructor(e,t=-1){super(-1,-1),this.attachTo(e,t),this.offset=-1,this.length=-1;}}class t1 extends tY{get type(){return eg.UnicodeRange;}setRangeStart(e){return this.setNode("rangeStart",e);}getRangeStart(){return this.rangeStart;}setRangeEnd(e){return this.setNode("rangeEnd",e);}getRangeEnd(){return this.rangeEnd;}constructor(e,t){super(e,t);}}class t2 extends tY{get type(){return eg.Identifier;}containsInterpolation(){return this.hasChildren();}constructor(e,t){super(e,t),this.isCustomProperty=!1;}}class t5 extends tY{get type(){return eg.Stylesheet;}constructor(e,t){super(e,t);}}class t4 extends tY{get type(){return eg.Declarations;}constructor(e,t){super(e,t);}}class t3 extends tY{getDeclarations(){return this.declarations;}setDeclarations(e){return this.setNode("declarations",e);}constructor(e,t){super(e,t);}}class t6 extends t3{get type(){return eg.Ruleset;}getSelectors(){return this.selectors||(this.selectors=new t0(this)),this.selectors;}isNested(){return!!this.parent&&null!==this.parent.findParent(eg.Declarations);}constructor(e,t){super(e,t);}}class t7 extends tY{get type(){return eg.Selector;}constructor(e,t){super(e,t);}}class t8 extends tY{get type(){return eg.SimpleSelector;}constructor(e,t){super(e,t);}}class t9 extends tY{constructor(e,t){super(e,t);}}class ie extends t3{get type(){return eg.CustomPropertySet;}constructor(e,t){super(e,t);}}class it extends t9{get type(){return eg.Declaration;}setProperty(e){return this.setNode("property",e);}getProperty(){return this.property;}getFullPropertyName(){let e=this.property?this.property.getName():"unknown";if(this.parent instanceof t4&&this.parent.getParent()instanceof iy){let t=this.parent.getParent().getParent();if(t instanceof it)return t.getFullPropertyName()+e;}return e;}getNonPrefixedPropertyName(){let e=this.getFullPropertyName();if(e&&"-"===e.charAt(0)){let t=e.indexOf("-",1);if(-1!==t)return e.substring(t+1);}return e;}setValue(e){return this.setNode("value",e);}getValue(){return this.value;}setNestedProperties(e){return this.setNode("nestedProperties",e);}getNestedProperties(){return this.nestedProperties;}constructor(e,t){super(e,t),this.property=null;}}class ii extends it{get type(){return eg.CustomPropertyDeclaration;}setPropertySet(e){return this.setNode("propertySet",e);}getPropertySet(){return this.propertySet;}constructor(e,t){super(e,t);}}class ir extends tY{get type(){return eg.Property;}setIdentifier(e){return this.setNode("identifier",e);}getIdentifier(){return this.identifier;}getName(){var e;let t;return e=this.getText(),(t=/[_\+]+$/.exec(e))&&t[0].length?e.substr(0,e.length-t[0].length):e;}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty;}constructor(e,t){super(e,t);}}class is extends tY{get type(){return eg.Invocation;}getArguments(){return this.arguments||(this.arguments=new t0(this)),this.arguments;}constructor(e,t){super(e,t);}}class ia extends is{get type(){return eg.Function;}setIdentifier(e){return this.setNode("identifier",e,0);}getIdentifier(){return this.identifier;}getName(){return this.identifier?this.identifier.getText():"";}constructor(e,t){super(e,t);}}class io extends tY{get type(){return eg.FunctionParameter;}setIdentifier(e){return this.setNode("identifier",e,0);}getIdentifier(){return this.identifier;}getName(){return this.identifier?this.identifier.getText():"";}setDefaultValue(e){return this.setNode("defaultValue",e,0);}getDefaultValue(){return this.defaultValue;}constructor(e,t){super(e,t);}}class il extends tY{get type(){return eg.FunctionArgument;}setIdentifier(e){return this.setNode("identifier",e,0);}getIdentifier(){return this.identifier;}getName(){return this.identifier?this.identifier.getText():"";}setValue(e){return this.setNode("value",e,0);}getValue(){return this.value;}constructor(e,t){super(e,t);}}class ih extends t3{get type(){return eg.If;}setExpression(e){return this.setNode("expression",e,0);}setElseClause(e){return this.setNode("elseClause",e);}constructor(e,t){super(e,t);}}class ic extends t3{get type(){return eg.For;}setVariable(e){return this.setNode("variable",e,0);}constructor(e,t){super(e,t);}}class iu extends t3{get type(){return eg.Each;}getVariables(){return this.variables||(this.variables=new t0(this)),this.variables;}constructor(e,t){super(e,t);}}class ip extends t3{get type(){return eg.While;}constructor(e,t){super(e,t);}}class id extends t3{get type(){return eg.Else;}constructor(e,t){super(e,t);}}class im extends t3{get type(){return eg.FunctionDeclaration;}setIdentifier(e){return this.setNode("identifier",e,0);}getIdentifier(){return this.identifier;}getName(){return this.identifier?this.identifier.getText():"";}getParameters(){return this.parameters||(this.parameters=new t0(this)),this.parameters;}constructor(e,t){super(e,t);}}class ig extends t3{get type(){return eg.ViewPort;}constructor(e,t){super(e,t);}}class i_ extends t3{get type(){return eg.FontFace;}constructor(e,t){super(e,t);}}class iy extends t3{get type(){return eg.NestedProperties;}constructor(e,t){super(e,t);}}class ib extends t3{get type(){return eg.Keyframe;}setKeyword(e){return this.setNode("keyword",e,0);}getKeyword(){return this.keyword;}setIdentifier(e){return this.setNode("identifier",e,0);}getIdentifier(){return this.identifier;}getName(){return this.identifier?this.identifier.getText():"";}constructor(e,t){super(e,t);}}class ix extends t3{get type(){return eg.KeyframeSelector;}constructor(e,t){super(e,t);}}class iC extends tY{get type(){return eg.Import;}setMedialist(e){return!!e&&(e.attachTo(this),!0);}constructor(e,t){super(e,t);}}class ik extends tY{get type(){return eg.Use;}getParameters(){return this.parameters||(this.parameters=new t0(this)),this.parameters;}setIdentifier(e){return this.setNode("identifier",e,0);}getIdentifier(){return this.identifier;}}class iv extends tY{get type(){return eg.ModuleConfiguration;}setIdentifier(e){return this.setNode("identifier",e,0);}getIdentifier(){return this.identifier;}getName(){return this.identifier?this.identifier.getText():"";}setValue(e){return this.setNode("value",e,0);}getValue(){return this.value;}}class iS extends tY{get type(){return eg.Forward;}setIdentifier(e){return this.setNode("identifier",e,0);}getIdentifier(){return this.identifier;}getMembers(){return this.members||(this.members=new t0(this)),this.members;}getParameters(){return this.parameters||(this.parameters=new t0(this)),this.parameters;}}class iw extends tY{get type(){return eg.ForwardVisibility;}setIdentifier(e){return this.setNode("identifier",e,0);}getIdentifier(){return this.identifier;}}class iP extends tY{get type(){return eg.Namespace;}constructor(e,t){super(e,t);}}class iE extends t3{get type(){return eg.Media;}constructor(e,t){super(e,t);}}class iR extends t3{get type(){return eg.Supports;}constructor(e,t){super(e,t);}}class iI extends t3{get type(){return eg.Layer;}setNames(e){return this.setNode("names",e);}getNames(){return this.names;}constructor(e,t){super(e,t);}}class iD extends t3{get type(){return eg.PropertyAtRule;}setName(e){return!!e&&(e.attachTo(this),this.name=e,!0);}getName(){return this.name;}constructor(e,t){super(e,t);}}class iA extends t3{get type(){return eg.Document;}constructor(e,t){super(e,t);}}class iT extends t3{get type(){return eg.Container;}constructor(e,t){super(e,t);}}class i$ extends tY{constructor(e,t){super(e,t);}}class iM extends tY{get type(){return eg.MediaQuery;}constructor(e,t){super(e,t);}}class iL extends tY{get type(){return eg.MediaCondition;}constructor(e,t){super(e,t);}}class iF extends tY{get type(){return eg.MediaFeature;}constructor(e,t){super(e,t);}}class iN extends tY{get type(){return eg.SupportsCondition;}constructor(e,t){super(e,t);}}class iV extends t3{get type(){return eg.Page;}constructor(e,t){super(e,t);}}class iO extends t3{get type(){return eg.PageBoxMarginBox;}constructor(e,t){super(e,t);}}class iU extends tY{get type(){return eg.Expression;}constructor(e,t){super(e,t);}}class iB extends tY{get type(){return eg.BinaryExpression;}setLeft(e){return this.setNode("left",e);}getLeft(){return this.left;}setRight(e){return this.setNode("right",e);}getRight(){return this.right;}setOperator(e){return this.setNode("operator",e);}getOperator(){return this.operator;}constructor(e,t){super(e,t);}}class iW extends tY{get type(){return eg.Term;}setOperator(e){return this.setNode("operator",e);}getOperator(){return this.operator;}setExpression(e){return this.setNode("expression",e);}getExpression(){return this.expression;}constructor(e,t){super(e,t);}}class iK extends tY{get type(){return eg.AttributeSelector;}setNamespacePrefix(e){return this.setNode("namespacePrefix",e);}getNamespacePrefix(){return this.namespacePrefix;}setIdentifier(e){return this.setNode("identifier",e);}getIdentifier(){return this.identifier;}setOperator(e){return this.setNode("operator",e);}getOperator(){return this.operator;}setValue(e){return this.setNode("value",e);}getValue(){return this.value;}constructor(e,t){super(e,t);}}class iz extends tY{get type(){return eg.HexColorValue;}constructor(e,t){super(e,t);}}class ij extends tY{get type(){return eg.RatioValue;}constructor(e,t){super(e,t);}}class iq extends tY{get type(){return eg.NumericValue;}getValue(){let e,t=this.getText(),i=0;for(let r=0,n=t.length;r<n&&(48<=(e=t.charCodeAt(r))&&e<=57||46===e);r++)i+=1;return{value:t.substring(0,i),unit:i<t.length?t.substring(i):void 0};}constructor(e,t){super(e,t);}}class iH extends t9{get type(){return eg.VariableDeclaration;}setVariable(e){return!!e&&(e.attachTo(this),this.variable=e,!0);}getVariable(){return this.variable;}getName(){return this.variable?this.variable.getName():"";}setValue(e){return!!e&&(e.attachTo(this),this.value=e,!0);}getValue(){return this.value;}constructor(e,t){super(e,t),this.needsSemicolon=!0;}}class iQ extends tY{get type(){return eg.Interpolation;}constructor(e,t){super(e,t);}}class iG extends tY{get type(){return eg.VariableName;}getName(){return this.getText();}constructor(e,t){super(e,t);}}class iJ extends tY{get type(){return eg.ExtendsReference;}getSelectors(){return this.selectors||(this.selectors=new t0(this)),this.selectors;}constructor(e,t){super(e,t);}}class iX extends tY{get type(){return eg.MixinContentReference;}getArguments(){return this.arguments||(this.arguments=new t0(this)),this.arguments;}constructor(e,t){super(e,t);}}class iZ extends t3{get type(){return eg.MixinContentDeclaration;}getParameters(){return this.parameters||(this.parameters=new t0(this)),this.parameters;}constructor(e,t){super(e,t);}}class iY extends tY{get type(){return eg.MixinReference;}getNamespaces(){return this.namespaces||(this.namespaces=new t0(this)),this.namespaces;}setIdentifier(e){return this.setNode("identifier",e,0);}getIdentifier(){return this.identifier;}getName(){return this.identifier?this.identifier.getText():"";}getArguments(){return this.arguments||(this.arguments=new t0(this)),this.arguments;}setContent(e){return this.setNode("content",e);}getContent(){return this.content;}constructor(e,t){super(e,t);}}class i0 extends t3{get type(){return eg.MixinDeclaration;}setIdentifier(e){return this.setNode("identifier",e,0);}getIdentifier(){return this.identifier;}getName(){return this.identifier?this.identifier.getText():"";}getParameters(){return this.parameters||(this.parameters=new t0(this)),this.parameters;}setGuard(e){return e&&(e.attachTo(this),this.guard=e),!1;}constructor(e,t){super(e,t);}}class i1 extends t3{get type(){return eg.UnknownAtRule;}setAtRuleName(e){this.atRuleName=e;}getAtRuleName(){return this.atRuleName;}constructor(e,t){super(e,t);}}class i2 extends tY{get type(){return eg.ListEntry;}setKey(e){return this.setNode("key",e,0);}setValue(e){return this.setNode("value",e,1);}}class i5 extends tY{getConditions(){return this.conditions||(this.conditions=new t0(this)),this.conditions;}}class i4 extends tY{setVariable(e){return this.setNode("variable",e);}}class i3 extends tY{get type(){return eg.Module;}setIdentifier(e){return this.setNode("identifier",e,0);}getIdentifier(){return this.identifier;}}(o=ey||(ey={}))[o.Ignore=1]="Ignore",o[o.Warning=2]="Warning",o[o.Error=4]="Error";class i6{getRule(){return this.rule;}getLevel(){return this.level;}getOffset(){return this.offset;}getLength(){return this.length;}getNode(){return this.node;}getMessage(){return this.message;}constructor(e,t,i,r,n=e.offset,s=e.length){this.node=e,this.rule=t,this.level=i,this.message=r||t.message,this.offset=n,this.length=s;}}class i7{static entries(e){let t=new i7();return e.acceptVisitor(t),t.entries;}visitNode(e){return e.isErroneous()&&e.collectIssues(this.entries),!0;}constructor(){this.entries=[];}}function i8(){let e,t;for(var i,r,n,s=arguments.length,a=Array(s),o=0;o<s;o++)a[o]=arguments[o];let l=a[0];if("string"==typeof l)e=l,a.splice(0,1),t=a&&"object"==typeof a[0]?a[0]:a;else if(l instanceof Array){let e=a.slice(1);if(l.length!==e.length+1)throw Error("expected a string as the first argument to l10n.t");let t=l[0];for(let e=1;e<l.length;e++)t+=`{${e-1}}`+l[e];return i8(t,...e);}else e=l.message,l.comment&&l.comment.length>0&&(Array.isArray(l.comment)?l.comment.join(""):l.comment),t=null!=(n=l.args)?n:{};return i=e,0===Object.keys(r=t).length?i:i.replace(i9,(e,t)=>{var i;return null!=(i=r[t])?i:e;});}var i9=/{([^}]+)}/g;class re{constructor(e,t){this.id=e,this.message=t;}}let rt={NumberExpected:new re("css-numberexpected",i8("number expected")),ConditionExpected:new re("css-conditionexpected",i8("condition expected")),RuleOrSelectorExpected:new re("css-ruleorselectorexpected",i8("at-rule or selector expected")),DotExpected:new re("css-dotexpected",i8("dot expected")),ColonExpected:new re("css-colonexpected",i8("colon expected")),SemiColonExpected:new re("css-semicolonexpected",i8("semi-colon expected")),TermExpected:new re("css-termexpected",i8("term expected")),ExpressionExpected:new re("css-expressionexpected",i8("expression expected")),OperatorExpected:new re("css-operatorexpected",i8("operator expected")),IdentifierExpected:new re("css-identifierexpected",i8("identifier expected")),PercentageExpected:new re("css-percentageexpected",i8("percentage expected")),URIOrStringExpected:new re("css-uriorstringexpected",i8("uri or string expected")),URIExpected:new re("css-uriexpected",i8("URI expected")),VariableNameExpected:new re("css-varnameexpected",i8("variable name expected")),VariableValueExpected:new re("css-varvalueexpected",i8("variable value expected")),PropertyValueExpected:new re("css-propertyvalueexpected",i8("property value expected")),LeftCurlyExpected:new re("css-lcurlyexpected",i8("{ expected")),RightCurlyExpected:new re("css-rcurlyexpected",i8("} expected")),LeftSquareBracketExpected:new re("css-rbracketexpected",i8("[ expected")),RightSquareBracketExpected:new re("css-lbracketexpected",i8("] expected")),LeftParenthesisExpected:new re("css-lparentexpected",i8("( expected")),RightParenthesisExpected:new re("css-rparentexpected",i8(") expected")),CommaExpected:new re("css-commaexpected",i8("comma expected")),PageDirectiveOrDeclarationExpected:new re("css-pagedirordeclexpected",i8("page directive or declaraton expected")),UnknownAtRule:new re("css-unknownatrule",i8("at-rule unknown")),UnknownKeyword:new re("css-unknownkeyword",i8("unknown keyword")),SelectorExpected:new re("css-selectorexpected",i8("selector expected")),StringLiteralExpected:new re("css-stringliteralexpected",i8("string literal expected")),WhitespaceExpected:new re("css-whitespaceexpected",i8("whitespace expected")),MediaQueryExpected:new re("css-mediaqueryexpected",i8("media query expected")),IdentifierOrWildcardExpected:new re("css-idorwildcardexpected",i8("identifier or wildcard expected")),WildcardExpected:new re("css-wildcardexpected",i8("wildcard expected")),IdentifierOrVariableExpected:new re("css-idorvarexpected",i8("identifier or variable expected"))};(eb||(eb={})).is=function(e){return"string"==typeof e;},(ex||(ex={})).is=function(e){return"string"==typeof e;},(l=eC||(eC={})).MIN_VALUE=-0x80000000,l.MAX_VALUE=0x7fffffff,l.is=function(e){return"number"==typeof e&&l.MIN_VALUE<=e&&e<=l.MAX_VALUE;},(h=ek||(ek={})).MIN_VALUE=0,h.MAX_VALUE=0x7fffffff,h.is=function(e){return"number"==typeof e&&h.MIN_VALUE<=e&&e<=h.MAX_VALUE;},(c=ev||(ev={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=ek.MAX_VALUE),t===Number.MAX_VALUE&&(t=ek.MAX_VALUE),{line:e,character:t};},c.is=function(e){return tM.objectLiteral(e)&&tM.uinteger(e.line)&&tM.uinteger(e.character);},(u=eS||(eS={})).create=function(e,t,i,r){if(tM.uinteger(e)&&tM.uinteger(t)&&tM.uinteger(i)&&tM.uinteger(r))return{start:ev.create(e,t),end:ev.create(i,r)};if(ev.is(e)&&ev.is(t))return{start:e,end:t};throw Error(`Range#create called with invalid arguments[${e}, ${t}, ${i}, ${r}]`);},u.is=function(e){return tM.objectLiteral(e)&&ev.is(e.start)&&ev.is(e.end);},(p=ew||(ew={})).create=function(e,t){return{uri:e,range:t};},p.is=function(e){return tM.objectLiteral(e)&&eS.is(e.range)&&(tM.string(e.uri)||tM.undefined(e.uri));},(d=eP||(eP={})).create=function(e,t,i,r){return{targetUri:e,targetRange:t,targetSelectionRange:i,originSelectionRange:r};},d.is=function(e){return tM.objectLiteral(e)&&eS.is(e.targetRange)&&tM.string(e.targetUri)&&eS.is(e.targetSelectionRange)&&(eS.is(e.originSelectionRange)||tM.undefined(e.originSelectionRange));},(f=eE||(eE={})).create=function(e,t,i,r){return{red:e,green:t,blue:i,alpha:r};},f.is=function(e){return tM.objectLiteral(e)&&tM.numberRange(e.red,0,1)&&tM.numberRange(e.green,0,1)&&tM.numberRange(e.blue,0,1)&&tM.numberRange(e.alpha,0,1);},(m=eR||(eR={})).create=function(e,t){return{range:e,color:t};},m.is=function(e){return tM.objectLiteral(e)&&eS.is(e.range)&&eE.is(e.color);},(g=eI||(eI={})).create=function(e,t,i){return{label:e,textEdit:t,additionalTextEdits:i};},g.is=function(e){return tM.objectLiteral(e)&&tM.string(e.label)&&(tM.undefined(e.textEdit)||eV.is(e))&&(tM.undefined(e.additionalTextEdits)||tM.typedArray(e.additionalTextEdits,eV.is));},(_=eD||(eD={})).Comment="comment",_.Imports="imports",_.Region="region",(y=eA||(eA={})).create=function(e,t,i,r,n,s){let a={startLine:e,endLine:t};return tM.defined(i)&&(a.startCharacter=i),tM.defined(r)&&(a.endCharacter=r),tM.defined(n)&&(a.kind=n),tM.defined(s)&&(a.collapsedText=s),a;},y.is=function(e){return tM.objectLiteral(e)&&tM.uinteger(e.startLine)&&tM.uinteger(e.startLine)&&(tM.undefined(e.startCharacter)||tM.uinteger(e.startCharacter))&&(tM.undefined(e.endCharacter)||tM.uinteger(e.endCharacter))&&(tM.undefined(e.kind)||tM.string(e.kind));},(b=eT||(eT={})).create=function(e,t){return{location:e,message:t};},b.is=function(e){return tM.defined(e)&&ew.is(e.location)&&tM.string(e.message);},(x=e$||(e$={})).Error=1,x.Warning=2,x.Information=3,x.Hint=4,(C=eM||(eM={})).Unnecessary=1,C.Deprecated=2,(eL||(eL={})).is=function(e){return tM.objectLiteral(e)&&tM.string(e.href);},(k=eF||(eF={})).create=function(e,t,i,r,n,s){let a={range:e,message:t};return tM.defined(i)&&(a.severity=i),tM.defined(r)&&(a.code=r),tM.defined(n)&&(a.source=n),tM.defined(s)&&(a.relatedInformation=s),a;},k.is=function(e){var t;return tM.defined(e)&&eS.is(e.range)&&tM.string(e.message)&&(tM.number(e.severity)||tM.undefined(e.severity))&&(tM.integer(e.code)||tM.string(e.code)||tM.undefined(e.code))&&(tM.undefined(e.codeDescription)||tM.string(null==(t=e.codeDescription)?void 0:t.href))&&(tM.string(e.source)||tM.undefined(e.source))&&(tM.undefined(e.relatedInformation)||tM.typedArray(e.relatedInformation,eT.is));},(v=eN||(eN={})).create=function(e,t){for(var i=arguments.length,r=Array(i>2?i-2:0),n=2;n<i;n++)r[n-2]=arguments[n];let s={title:e,command:t};return tM.defined(r)&&r.length>0&&(s.arguments=r),s;},v.is=function(e){return tM.defined(e)&&tM.string(e.title)&&tM.string(e.command);},(S=eV||(eV={})).replace=function(e,t){return{range:e,newText:t};},S.insert=function(e,t){return{range:{start:e,end:e},newText:t};},S.del=function(e){return{range:e,newText:""};},S.is=function(e){return tM.objectLiteral(e)&&tM.string(e.newText)&&eS.is(e.range);},(w=eO||(eO={})).create=function(e,t,i){let r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==i&&(r.description=i),r;},w.is=function(e){return tM.objectLiteral(e)&&tM.string(e.label)&&(tM.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(tM.string(e.description)||void 0===e.description);},(eU||(eU={})).is=function(e){return tM.string(e);},(P=eB||(eB={})).replace=function(e,t,i){return{range:e,newText:t,annotationId:i};},P.insert=function(e,t,i){return{range:{start:e,end:e},newText:t,annotationId:i};},P.del=function(e,t){return{range:e,newText:"",annotationId:t};},P.is=function(e){return eV.is(e)&&(eO.is(e.annotationId)||eU.is(e.annotationId));},(E=eW||(eW={})).create=function(e,t){return{textDocument:e,edits:t};},E.is=function(e){return tM.defined(e)&&eG.is(e.textDocument)&&Array.isArray(e.edits);},(R=eK||(eK={})).create=function(e,t,i){let r={kind:"create",uri:e};return void 0!==t&&(void 0!==t.overwrite||void 0!==t.ignoreIfExists)&&(r.options=t),void 0!==i&&(r.annotationId=i),r;},R.is=function(e){return e&&"create"===e.kind&&tM.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||tM.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||tM.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||eU.is(e.annotationId));},(I=ez||(ez={})).create=function(e,t,i,r){let n={kind:"rename",oldUri:e,newUri:t};return void 0!==i&&(void 0!==i.overwrite||void 0!==i.ignoreIfExists)&&(n.options=i),void 0!==r&&(n.annotationId=r),n;},I.is=function(e){return e&&"rename"===e.kind&&tM.string(e.oldUri)&&tM.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||tM.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||tM.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||eU.is(e.annotationId));},(D=ej||(ej={})).create=function(e,t,i){let r={kind:"delete",uri:e};return void 0!==t&&(void 0!==t.recursive||void 0!==t.ignoreIfNotExists)&&(r.options=t),void 0!==i&&(r.annotationId=i),r;},D.is=function(e){return e&&"delete"===e.kind&&tM.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||tM.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||tM.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||eU.is(e.annotationId));},(eq||(eq={})).is=function(e){return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every(e=>tM.string(e.kind)?eK.is(e)||ez.is(e)||ej.is(e):eW.is(e)));},(A=eH||(eH={})).create=function(e){return{uri:e};},A.is=function(e){return tM.defined(e)&&tM.string(e.uri);},(T=eQ||(eQ={})).create=function(e,t){return{uri:e,version:t};},T.is=function(e){return tM.defined(e)&&tM.string(e.uri)&&tM.integer(e.version);},($=eG||(eG={})).create=function(e,t){return{uri:e,version:t};},$.is=function(e){return tM.defined(e)&&tM.string(e.uri)&&(null===e.version||tM.integer(e.version));},(M=eJ||(eJ={})).create=function(e,t,i,r){return{uri:e,languageId:t,version:i,text:r};},M.is=function(e){return tM.defined(e)&&tM.string(e.uri)&&tM.string(e.languageId)&&tM.integer(e.version)&&tM.string(e.text);},(L=eX||(eX={})).PlainText="plaintext",L.Markdown="markdown",L.is=function(e){return e===L.PlainText||e===L.Markdown;},(eZ||(eZ={})).is=function(e){return tM.objectLiteral(e)&&eX.is(e.kind)&&tM.string(e.value);},(F=eY||(eY={})).Text=1,F.Method=2,F.Function=3,F.Constructor=4,F.Field=5,F.Variable=6,F.Class=7,F.Interface=8,F.Module=9,F.Property=10,F.Unit=11,F.Value=12,F.Enum=13,F.Keyword=14,F.Snippet=15,F.Color=16,F.File=17,F.Reference=18,F.Folder=19,F.EnumMember=20,F.Constant=21,F.Struct=22,F.Event=23,F.Operator=24,F.TypeParameter=25,(N=e0||(e0={})).PlainText=1,N.Snippet=2,(e1||(e1={})).Deprecated=1,(V=e2||(e2={})).create=function(e,t,i){return{newText:e,insert:t,replace:i};},V.is=function(e){return e&&tM.string(e.newText)&&eS.is(e.insert)&&eS.is(e.replace);},(O=e5||(e5={})).asIs=1,O.adjustIndentation=2,(e4||(e4={})).is=function(e){return e&&(tM.string(e.detail)||void 0===e.detail)&&(tM.string(e.description)||void 0===e.description);},(e3||(e3={})).create=function(e){return{label:e};},(e6||(e6={})).create=function(e,t){return{items:e||[],isIncomplete:!!t};},(U=e7||(e7={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&");},U.is=function(e){return tM.string(e)||tM.objectLiteral(e)&&tM.string(e.language)&&tM.string(e.value);},(e8||(e8={})).is=function(e){return!!e&&tM.objectLiteral(e)&&(eZ.is(e.contents)||e7.is(e.contents)||tM.typedArray(e.contents,e7.is))&&(void 0===e.range||eS.is(e.range));},(e9||(e9={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e};},(te||(te={})).create=function(e,t){for(var i=arguments.length,r=Array(i>2?i-2:0),n=2;n<i;n++)r[n-2]=arguments[n];let s={label:e};return tM.defined(t)&&(s.documentation=t),tM.defined(r)?s.parameters=r:s.parameters=[],s;},(B=tt||(tt={})).Text=1,B.Read=2,B.Write=3,(ti||(ti={})).create=function(e,t){let i={range:e};return tM.number(t)&&(i.kind=t),i;},(W=tr||(tr={})).File=1,W.Module=2,W.Namespace=3,W.Package=4,W.Class=5,W.Method=6,W.Property=7,W.Field=8,W.Constructor=9,W.Enum=10,W.Interface=11,W.Function=12,W.Variable=13,W.Constant=14,W.String=15,W.Number=16,W.Boolean=17,W.Array=18,W.Object=19,W.Key=20,W.Null=21,W.EnumMember=22,W.Struct=23,W.Event=24,W.Operator=25,W.TypeParameter=26,(tn||(tn={})).Deprecated=1,(ts||(ts={})).create=function(e,t,i,r,n){let s={name:e,kind:t,location:{uri:r,range:i}};return n&&(s.containerName=n),s;},(ta||(ta={})).create=function(e,t,i,r){return void 0!==r?{name:e,kind:t,location:{uri:i,range:r}}:{name:e,kind:t,location:{uri:i}};},(K=to||(to={})).create=function(e,t,i,r,n,s){let a={name:e,detail:t,kind:i,range:r,selectionRange:n};return void 0!==s&&(a.children=s),a;},K.is=function(e){return e&&tM.string(e.name)&&tM.number(e.kind)&&eS.is(e.range)&&eS.is(e.selectionRange)&&(void 0===e.detail||tM.string(e.detail))&&(void 0===e.deprecated||tM.boolean(e.deprecated))&&(void 0===e.children||Array.isArray(e.children))&&(void 0===e.tags||Array.isArray(e.tags));},(z=tl||(tl={})).Empty="",z.QuickFix="quickfix",z.Refactor="refactor",z.RefactorExtract="refactor.extract",z.RefactorInline="refactor.inline",z.RefactorRewrite="refactor.rewrite",z.Source="source",z.SourceOrganizeImports="source.organizeImports",z.SourceFixAll="source.fixAll",(j=th||(th={})).Invoked=1,j.Automatic=2,(q=tc||(tc={})).create=function(e,t,i){let r={diagnostics:e};return null!=t&&(r.only=t),null!=i&&(r.triggerKind=i),r;},q.is=function(e){return tM.defined(e)&&tM.typedArray(e.diagnostics,eF.is)&&(void 0===e.only||tM.typedArray(e.only,tM.string))&&(void 0===e.triggerKind||e.triggerKind===th.Invoked||e.triggerKind===th.Automatic);},(H=tu||(tu={})).create=function(e,t,i){let r={title:e},n=!0;return"string"==typeof t?(n=!1,r.kind=t):eN.is(t)?r.command=t:r.edit=t,n&&void 0!==i&&(r.kind=i),r;},H.is=function(e){return e&&tM.string(e.title)&&(void 0===e.diagnostics||tM.typedArray(e.diagnostics,eF.is))&&(void 0===e.kind||tM.string(e.kind))&&(void 0!==e.edit||void 0!==e.command)&&(void 0===e.command||eN.is(e.command))&&(void 0===e.isPreferred||tM.boolean(e.isPreferred))&&(void 0===e.edit||eq.is(e.edit));},(Q=tp||(tp={})).create=function(e,t){let i={range:e};return tM.defined(t)&&(i.data=t),i;},Q.is=function(e){return tM.defined(e)&&eS.is(e.range)&&(tM.undefined(e.command)||eN.is(e.command));},(G=td||(td={})).create=function(e,t){return{tabSize:e,insertSpaces:t};},G.is=function(e){return tM.defined(e)&&tM.uinteger(e.tabSize)&&tM.boolean(e.insertSpaces);},(J=tf||(tf={})).create=function(e,t,i){return{range:e,target:t,data:i};},J.is=function(e){return tM.defined(e)&&eS.is(e.range)&&(tM.undefined(e.target)||tM.string(e.target));},(X=tm||(tm={})).create=function(e,t){return{range:e,parent:t};},X.is=function(e){return tM.objectLiteral(e)&&eS.is(e.range)&&(void 0===e.parent||X.is(e.parent));},(Z=tg||(tg={})).namespace="namespace",Z.type="type",Z.class="class",Z.enum="enum",Z.interface="interface",Z.struct="struct",Z.typeParameter="typeParameter",Z.parameter="parameter",Z.variable="variable",Z.property="property",Z.enumMember="enumMember",Z.event="event",Z.function="function",Z.method="method",Z.macro="macro",Z.keyword="keyword",Z.modifier="modifier",Z.comment="comment",Z.string="string",Z.number="number",Z.regexp="regexp",Z.operator="operator",Z.decorator="decorator",(Y=t_||(t_={})).declaration="declaration",Y.definition="definition",Y.readonly="readonly",Y.static="static",Y.deprecated="deprecated",Y.abstract="abstract",Y.async="async",Y.modification="modification",Y.documentation="documentation",Y.defaultLibrary="defaultLibrary",(ty||(ty={})).is=function(e){return tM.objectLiteral(e)&&(void 0===e.resultId||"string"==typeof e.resultId)&&Array.isArray(e.data)&&(0===e.data.length||"number"==typeof e.data[0]);},(ee=tb||(tb={})).create=function(e,t){return{range:e,text:t};},ee.is=function(e){return null!=e&&eS.is(e.range)&&tM.string(e.text);},(et=tx||(tx={})).create=function(e,t,i){return{range:e,variableName:t,caseSensitiveLookup:i};},et.is=function(e){return null!=e&&eS.is(e.range)&&tM.boolean(e.caseSensitiveLookup)&&(tM.string(e.variableName)||void 0===e.variableName);},(ei=tC||(tC={})).create=function(e,t){return{range:e,expression:t};},ei.is=function(e){return null!=e&&eS.is(e.range)&&(tM.string(e.expression)||void 0===e.expression);},(er=tk||(tk={})).create=function(e,t){return{frameId:e,stoppedLocation:t};},er.is=function(e){return tM.defined(e)&&eS.is(e.stoppedLocation);},(en=tv||(tv={})).Type=1,en.Parameter=2,en.is=function(e){return 1===e||2===e;},(es=tS||(tS={})).create=function(e){return{value:e};},es.is=function(e){return tM.objectLiteral(e)&&(void 0===e.tooltip||tM.string(e.tooltip)||eZ.is(e.tooltip))&&(void 0===e.location||ew.is(e.location))&&(void 0===e.command||eN.is(e.command));},(ea=tw||(tw={})).create=function(e,t,i){let r={position:e,label:t};return void 0!==i&&(r.kind=i),r;},ea.is=function(e){return tM.objectLiteral(e)&&ev.is(e.position)&&(tM.string(e.label)||tM.typedArray(e.label,tS.is))&&(void 0===e.kind||tv.is(e.kind))&&void 0===e.textEdits||tM.typedArray(e.textEdits,eV.is)&&(void 0===e.tooltip||tM.string(e.tooltip)||eZ.is(e.tooltip))&&(void 0===e.paddingLeft||tM.boolean(e.paddingLeft))&&(void 0===e.paddingRight||tM.boolean(e.paddingRight));},(tP||(tP={})).createSnippet=function(e){return{kind:"snippet",value:e};},(tE||(tE={})).create=function(e,t,i,r){return{insertText:e,filterText:t,range:i,command:r};},(tR||(tR={})).create=function(e){return{items:e};},(eo=tI||(tI={})).Invoked=0,eo.Automatic=1,(tD||(tD={})).create=function(e,t){return{range:e,text:t};},(tA||(tA={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t};},(tT||(tT={})).is=function(e){return tM.objectLiteral(e)&&ex.is(e.uri)&&tM.string(e.name);},(el=t$||(t$={})).create=function(e,t,i,r){return new ri(e,t,i,r);},el.is=function(e){return!!(tM.defined(e)&&tM.string(e.uri)&&(tM.undefined(e.languageId)||tM.string(e.languageId))&&tM.uinteger(e.lineCount)&&tM.func(e.getText)&&tM.func(e.positionAt)&&tM.func(e.offsetAt));},el.applyEdits=function(e,t){let i=e.getText(),r=function e(t,i){if(t.length<=1)return t;let r=t.length/2|0,n=t.slice(0,r),s=t.slice(r);e(n,i),e(s,i);let a=0,o=0,l=0;for(;a<n.length&&o<s.length;)0>=i(n[a],s[o])?t[l++]=n[a++]:t[l++]=s[o++];for(;a<n.length;)t[l++]=n[a++];for(;o<s.length;)t[l++]=s[o++];return t;}(t,(e,t)=>{let i=e.range.start.line-t.range.start.line;return 0===i?e.range.start.character-t.range.start.character:i;}),n=i.length;for(let t=r.length-1;t>=0;t--){let s=r[t],a=e.offsetAt(s.range.start),o=e.offsetAt(s.range.end);if(o<=n)i=i.substring(0,a)+s.newText+i.substring(o,i.length);else throw Error("Overlapping edit");n=a;}return i;};class ri{get uri(){return this._uri;}get languageId(){return this._languageId;}get version(){return this._version;}getText(e){if(e){let t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i);}return this._content;}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0;}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,i=!0;for(let r=0;r<t.length;r++){i&&(e.push(r),i=!1);let n=t.charAt(r);i="\r"===n||"\n"===n,"\r"===n&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++;}i&&t.length>0&&e.push(t.length),this._lineOffsets=e;}return this._lineOffsets;}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),i=0,r=t.length;if(0===r)return ev.create(0,e);for(;i<r;){let n=Math.floor((i+r)/2);t[n]>e?r=n:i=n+1;}let n=i-1;return ev.create(n,e-t[n]);}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let i=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i);}get lineCount(){return this.getLineOffsets().length;}constructor(e,t,i,r){this._uri=e,this._languageId=t,this._version=i,this._content=r,this._lineOffsets=void 0;}}eh=tM||(tM={}),r=Object.prototype.toString,eh.defined=function(e){return void 0!==e;},eh.undefined=function(e){return void 0===e;},eh.boolean=function(e){return!0===e||!1===e;},eh.string=function(e){return"[object String]"===r.call(e);},eh.number=function(e){return"[object Number]"===r.call(e);},eh.numberRange=function(e,t,i){return"[object Number]"===r.call(e)&&t<=e&&e<=i;},eh.integer=function(e){return"[object Number]"===r.call(e)&&-0x80000000<=e&&e<=0x7fffffff;},eh.uinteger=function(e){return"[object Number]"===r.call(e)&&0<=e&&e<=0x7fffffff;},eh.func=function(e){return"[object Function]"===r.call(e);},eh.objectLiteral=function(e){return null!==e&&"object"==typeof e;},eh.typedArray=function(e,t){return Array.isArray(e)&&e.every(t);};class rr{get uri(){return this._uri;}get languageId(){return this._languageId;}get version(){return this._version;}getText(e){if(e){let t=this.offsetAt(e.start),i=this.offsetAt(e.end);return this._content.substring(t,i);}return this._content;}update(e,t){for(let t of e)if(rr.isIncremental(t)){let e=rs(t.range),i=this.offsetAt(e.start),r=this.offsetAt(e.end);this._content=this._content.substring(0,i)+t.text+this._content.substring(r,this._content.length);let n=Math.max(e.start.line,0),s=Math.max(e.end.line,0),a=this._lineOffsets,o=rn(t.text,!1,i);if(s-n===o.length)for(let e=0,t=o.length;e<t;e++)a[e+n+1]=o[e];else o.length<1e4?a.splice(n+1,s-n,...o):this._lineOffsets=a=a.slice(0,n+1).concat(o,a.slice(s+1));let l=t.text.length-(r-i);if(0!==l)for(let e=n+1+o.length,t=a.length;e<t;e++)a[e]=a[e]+l;}else if(rr.isFull(t))this._content=t.text,this._lineOffsets=void 0;else throw Error("Unknown change event received");this._version=t;}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=rn(this._content,!0)),this._lineOffsets;}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),i=0,r=t.length;if(0===r)return{line:0,character:e};for(;i<r;){let n=Math.floor((i+r)/2);t[n]>e?r=n:i=n+1;}let n=i-1;return{line:n,character:e-t[n]};}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let i=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(i+e.character,r),i);}get lineCount(){return this.getLineOffsets().length;}static isIncremental(e){return null!=e&&"string"==typeof e.text&&void 0!==e.range&&(void 0===e.rangeLength||"number"==typeof e.rangeLength);}static isFull(e){return null!=e&&"string"==typeof e.text&&void 0===e.range&&void 0===e.rangeLength;}constructor(e,t,i,r){this._uri=e,this._languageId=t,this._version=i,this._content=r,this._lineOffsets=void 0;}}function rn(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=t?[i]:[];for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);(13===n||10===n)&&(13===n&&t+1<e.length&&10===e.charCodeAt(t+1)&&t++,r.push(i+t+1));}return r;}function rs(e){let t=e.start,i=e.end;return t.line>i.line||t.line===i.line&&t.character>i.character?{start:i,end:t}:e;}function ra(e){let t=rs(e.range);return t!==e.range?{newText:e.newText,range:t}:e;}(ec=tL||(tL={})).create=function(e,t,i,r){return new rr(e,t,i,r);},ec.update=function(e,t,i){if(e instanceof rr)return e.update(t,i),e;throw Error("TextDocument.update: document must be created by TextDocument.create");},ec.applyEdits=function(e,t){let i=e.getText(),r=function e(t,i){if(t.length<=1)return t;let r=t.length/2|0,n=t.slice(0,r),s=t.slice(r);e(n,i),e(s,i);let a=0,o=0,l=0;for(;a<n.length&&o<s.length;)0>=i(n[a],s[o])?t[l++]=n[a++]:t[l++]=s[o++];for(;a<n.length;)t[l++]=n[a++];for(;o<s.length;)t[l++]=s[o++];return t;}(t.map(ra),(e,t)=>{let i=e.range.start.line-t.range.start.line;return 0===i?e.range.start.character-t.range.start.character:i;}),n=0,s=[];for(let t of r){let r=e.offsetAt(t.range.start);if(r<n)throw Error("Overlapping edit");r>n&&s.push(i.substring(n,r)),t.newText.length&&s.push(t.newText),n=e.offsetAt(t.range.end);}return s.push(i.substr(n)),s.join("");},(tF||(tF={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[eX.Markdown,eX.PlainText]}},hover:{contentFormat:[eX.Markdown,eX.PlainText]}}},(eu=tN||(tN={}))[eu.Unknown=0]="Unknown",eu[eu.File=1]="File",eu[eu.Directory=2]="Directory",eu[eu.SymbolicLink=64]="SymbolicLink";let ro=/(^#([0-9A-F]{3}){1,2}$)|(^#([0-9A-F]{4}){1,2}$)/i,rl=[{label:"rgb",func:"rgb($red, $green, $blue)",insertText:"rgb(${1:red}, ${2:green}, ${3:blue})",desc:i8("Creates a Color from red, green, and blue values.")},{label:"rgba",func:"rgba($red, $green, $blue, $alpha)",insertText:"rgba(${1:red}, ${2:green}, ${3:blue}, ${4:alpha})",desc:i8("Creates a Color from red, green, blue, and alpha values.")},{label:"rgb relative",func:"rgb(from $color $red $green $blue)",insertText:"rgb(from ${1:color} ${2:r} ${3:g} ${4:b})",desc:i8("Creates a Color from the red, green, and blue values of another Color.")},{label:"hsl",func:"hsl($hue, $saturation, $lightness)",insertText:"hsl(${1:hue}, ${2:saturation}, ${3:lightness})",desc:i8("Creates a Color from hue, saturation, and lightness values.")},{label:"hsla",func:"hsla($hue, $saturation, $lightness, $alpha)",insertText:"hsla(${1:hue}, ${2:saturation}, ${3:lightness}, ${4:alpha})",desc:i8("Creates a Color from hue, saturation, lightness, and alpha values.")},{label:"hsl relative",func:"hsl(from $color $hue $saturation $lightness)",insertText:"hsl(from ${1:color} ${2:h} ${3:s} ${4:l})",desc:i8("Creates a Color from the hue, saturation, and lightness values of another Color.")},{label:"hwb",func:"hwb($hue $white $black)",insertText:"hwb(${1:hue} ${2:white} ${3:black})",desc:i8("Creates a Color from hue, white, and black values.")},{label:"hwb relative",func:"hwb(from $color $hue $white $black)",insertText:"hwb(from ${1:color} ${2:h} ${3:w} ${4:b})",desc:i8("Creates a Color from the hue, white, and black values of another Color.")},{label:"lab",func:"lab($lightness $a $b)",insertText:"lab(${1:lightness} ${2:a} ${3:b})",desc:i8("Creates a Color from lightness, a, and b values.")},{label:"lab relative",func:"lab(from $color $lightness $a $b)",insertText:"lab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:i8("Creates a Color from the lightness, a, and b values of another Color.")},{label:"oklab",func:"oklab($lightness $a $b)",insertText:"oklab(${1:lightness} ${2:a} ${3:b})",desc:i8("Creates a Color from lightness, a, and b values.")},{label:"oklab relative",func:"oklab(from $color $lightness $a $b)",insertText:"oklab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:i8("Creates a Color from the lightness, a, and b values of another Color.")},{label:"lch",func:"lch($lightness $chroma $hue)",insertText:"lch(${1:lightness} ${2:chroma} ${3:hue})",desc:i8("Creates a Color from lightness, chroma, and hue values.")},{label:"lch relative",func:"lch(from $color $lightness $chroma $hue)",insertText:"lch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:i8("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"oklch",func:"oklch($lightness $chroma $hue)",insertText:"oklch(${1:lightness} ${2:chroma} ${3:hue})",desc:i8("Creates a Color from lightness, chroma, and hue values.")},{label:"oklch relative",func:"oklch(from $color $lightness $chroma $hue)",insertText:"oklch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:i8("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"color",func:"color($color-space $red $green $blue)",insertText:"color(${1|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${2:red} ${3:green} ${4:blue})",desc:i8("Creates a Color in a specific color space from red, green, and blue values.")},{label:"color relative",func:"color(from $color $color-space $red $green $blue)",insertText:"color(from ${1:color} ${2|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${3:r} ${4:g} ${5:b})",desc:i8("Creates a Color in a specific color space from the red, green, and blue values of another Color.")},{label:"color-mix",func:"color-mix(in $color-space, $color $percentage, $color $percentage)",insertText:"color-mix(in ${1|srgb,srgb-linear,lab,oklab,xyz,xyz-d50,xyz-d65|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:i8("Mix two colors together in a rectangular color space.")},{label:"color-mix hue",func:"color-mix(in $color-space $interpolation-method hue, $color $percentage, $color $percentage)",insertText:"color-mix(in ${1|hsl,hwb,lch,oklch|} ${2|shorter hue,longer hue,increasing hue,decreasing hue|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:i8("Mix two colors together in a polar color space.")}],rh=/^(rgb|rgba|hsl|hsla|hwb)$/i,rc={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},ru=RegExp(`^(${Object.keys(rc).join("|")})$`,"i"),rp={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."},rd=RegExp(`^(${Object.keys(rp).join("|")})$`,"i");function rf(e,t){let i=e.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(i){i[2]&&(t=100);let e=parseFloat(i[1])/t;if(e>=0&&e<=1)return e;}throw Error();}function rm(e){let t=e.getText(),i=t.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(i)switch(i[2]){case"deg":return parseFloat(t)%360;case"rad":return 180*parseFloat(t)/Math.PI%360;case"grad":return .9*parseFloat(t)%360;case"turn":return 360*parseFloat(t)%360;default:if(void 0===i[2])return parseFloat(t)%360;}throw Error();}function rg(e){return ro.test(e)||ru.test(e)||rd.test(e);}function r_(e){return e<48?0:e<=57?e-48:(e<97&&(e+=32),e>=97&&e<=102)?e-97+10:0;}function ry(e){if("#"!==e[0])return null;switch(e.length){case 4:return{red:17*r_(e.charCodeAt(1))/255,green:17*r_(e.charCodeAt(2))/255,blue:17*r_(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*r_(e.charCodeAt(1))/255,green:17*r_(e.charCodeAt(2))/255,blue:17*r_(e.charCodeAt(3))/255,alpha:17*r_(e.charCodeAt(4))/255};case 7:return{red:(16*r_(e.charCodeAt(1))+r_(e.charCodeAt(2)))/255,green:(16*r_(e.charCodeAt(3))+r_(e.charCodeAt(4)))/255,blue:(16*r_(e.charCodeAt(5))+r_(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*r_(e.charCodeAt(1))+r_(e.charCodeAt(2)))/255,green:(16*r_(e.charCodeAt(3))+r_(e.charCodeAt(4)))/255,blue:(16*r_(e.charCodeAt(5))+r_(e.charCodeAt(6)))/255,alpha:(16*r_(e.charCodeAt(7))+r_(e.charCodeAt(8)))/255};}return null;}function rb(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(e/=60,0===t)return{red:i,green:i,blue:i,alpha:r};{let n=(e,t,i)=>{for(;i<0;)i+=6;for(;i>=6;)i-=6;return i<1?(t-e)*i+e:i<3?t:i<4?(t-e)*(4-i)+e:e;},s=i<=.5?i*(t+1):i+t-i*t,a=2*i-s;return{red:n(a,s,e+2),green:n(a,s,e),blue:n(a,s,e-2),alpha:r};}}function rx(e){let t=e.red,i=e.green,r=e.blue,n=e.alpha,s=Math.max(t,i,r),a=Math.min(t,i,r),o=0,l=0,h=(a+s)/2,c=s-a;if(c>0){switch(l=Math.min(h<=.5?c/(2*h):c/(2-2*h),1),s){case t:o=(i-r)/c+6*(i<r);break;case i:o=(r-t)/c+2;break;case r:o=(t-i)/c+4;}o*=60,o=Math.round(o);}return{h:o,s:l,l:h,a:n};}let rC={bottom:"Computes to ‘100%’ for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.",center:"Computes to ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.",left:"Computes to ‘0%’ for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.",right:"Computes to ‘100%’ for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.",top:"Computes to ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset."},rk={"no-repeat":"Placed once and not repeated in this direction.",repeat:"Repeated in this direction as often as needed to cover the background painting area.","repeat-x":"Computes to ‘repeat no-repeat’.","repeat-y":"Computes to ‘no-repeat repeat’.",round:"Repeated as often as will fit within the background positioning area. If it doesn’t fit a whole number of times, it is rescaled so that it does.",space:"Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area."},rv={dashed:"A series of square-ended dashes.",dotted:"A series of round dots.",double:"Two parallel solid lines with some space between them.",groove:"Looks as if it were carved in the canvas.",hidden:"Same as ‘none’, but has different behavior in the border conflict resolution rules for border-collapsed tables.",inset:"Looks as if the content on the inside of the border is sunken into the canvas.",none:"No border. Color and width are ignored.",outset:"Looks as if the content on the inside of the border is coming out of the canvas.",ridge:"Looks as if it were coming out of the canvas.",solid:"A single line segment."},rS=["medium","thick","thin"],rw={"border-box":"The background is painted within (clipped to) the border box.","content-box":"The background is painted within (clipped to) the content box.","padding-box":"The background is painted within (clipped to) the padding box."},rP={"margin-box":"Uses the margin box as reference box.","fill-box":"Uses the object bounding box as reference box.","stroke-box":"Uses the stroke bounding box as reference box.","view-box":"Uses the nearest SVG viewport as reference box."},rE={initial:"Represents the value specified as the property’s initial value.",inherit:"Represents the computed value of the property on the element’s parent.",unset:"Acts as either `inherit` or `initial`, depending on whether the property is inherited or not."},rR={"var()":"Evaluates the value of a custom variable.","calc()":"Evaluates an mathematical expression. The following operators can be used: + - * /."},rI={"url()":"Reference an image file by URL","image()":"Provide image fallbacks and annotations.","-webkit-image-set()":"Provide multiple resolutions. Remember to use unprefixed image-set() in addition.","image-set()":"Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.","-moz-element()":"Use an element in the document as an image. Remember to use unprefixed element() in addition.","element()":"Use an element in the document as an image.","cross-fade()":"Indicates the two images to be combined and how far along in the transition the combination is.","-webkit-gradient()":"Deprecated. Use modern linear-gradient() or radial-gradient() instead.","-webkit-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-moz-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","-o-linear-gradient()":"Linear gradient. Remember to use unprefixed version in addition.","linear-gradient()":"A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.","-webkit-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-moz-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","-o-repeating-linear-gradient()":"Repeating Linear gradient. Remember to use unprefixed version in addition.","repeating-linear-gradient()":"Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.","-webkit-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","-moz-radial-gradient()":"Radial gradient. Remember to use unprefixed version in addition.","radial-gradient()":"Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.","-webkit-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","-moz-repeating-radial-gradient()":"Repeating radial gradient. Remember to use unprefixed version in addition.","repeating-radial-gradient()":"Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position."},rD={ease:"Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).","ease-in":"Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).","ease-in-out":"Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).","ease-out":"Equivalent to cubic-bezier(0, 0, 0.58, 1.0).",linear:"Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).","step-end":"Equivalent to steps(1, end).","step-start":"Equivalent to steps(1, start).","steps()":"The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value “start” or “end”.","cubic-bezier()":"Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).","cubic-bezier(0.6, -0.28, 0.735, 0.045)":"Ease-in Back. Overshoots.","cubic-bezier(0.68, -0.55, 0.265, 1.55)":"Ease-in-out Back. Overshoots.","cubic-bezier(0.175, 0.885, 0.32, 1.275)":"Ease-out Back. Overshoots.","cubic-bezier(0.6, 0.04, 0.98, 0.335)":"Ease-in Circular. Based on half circle.","cubic-bezier(0.785, 0.135, 0.15, 0.86)":"Ease-in-out Circular. Based on half circle.","cubic-bezier(0.075, 0.82, 0.165, 1)":"Ease-out Circular. Based on half circle.","cubic-bezier(0.55, 0.055, 0.675, 0.19)":"Ease-in Cubic. Based on power of three.","cubic-bezier(0.645, 0.045, 0.355, 1)":"Ease-in-out Cubic. Based on power of three.","cubic-bezier(0.215, 0.610, 0.355, 1)":"Ease-out Cubic. Based on power of three.","cubic-bezier(0.95, 0.05, 0.795, 0.035)":"Ease-in Exponential. Based on two to the power ten.","cubic-bezier(1, 0, 0, 1)":"Ease-in-out Exponential. Based on two to the power ten.","cubic-bezier(0.19, 1, 0.22, 1)":"Ease-out Exponential. Based on two to the power ten.","cubic-bezier(0.47, 0, 0.745, 0.715)":"Ease-in Sine.","cubic-bezier(0.445, 0.05, 0.55, 0.95)":"Ease-in-out Sine.","cubic-bezier(0.39, 0.575, 0.565, 1)":"Ease-out Sine.","cubic-bezier(0.55, 0.085, 0.68, 0.53)":"Ease-in Quadratic. Based on power of two.","cubic-bezier(0.455, 0.03, 0.515, 0.955)":"Ease-in-out Quadratic. Based on power of two.","cubic-bezier(0.25, 0.46, 0.45, 0.94)":"Ease-out Quadratic. Based on power of two.","cubic-bezier(0.895, 0.03, 0.685, 0.22)":"Ease-in Quartic. Based on power of four.","cubic-bezier(0.77, 0, 0.175, 1)":"Ease-in-out Quartic. Based on power of four.","cubic-bezier(0.165, 0.84, 0.44, 1)":"Ease-out Quartic. Based on power of four.","cubic-bezier(0.755, 0.05, 0.855, 0.06)":"Ease-in Quintic. Based on power of five.","cubic-bezier(0.86, 0, 0.07, 1)":"Ease-in-out Quintic. Based on power of five.","cubic-bezier(0.23, 1, 0.320, 1)":"Ease-out Quintic. Based on power of five."},rA={"circle()":"Defines a circle.","ellipse()":"Defines an ellipse.","inset()":"Defines an inset rectangle.","polygon()":"Defines a polygon."},rT={length:["cap","ch","cm","cqb","cqh","cqi","cqmax","cqmin","cqw","dvb","dvh","dvi","dvw","em","ex","ic","in","lh","lvb","lvh","lvi","lvw","mm","pc","pt","px","q","rcap","rch","rem","rex","ric","rlh","svb","svh","svi","svw","vb","vh","vi","vmax","vmin","vw"],angle:["deg","rad","grad","turn"],time:["ms","s"],frequency:["Hz","kHz"],resolution:["dpi","dpcm","dppx"],percentage:["%","fr"]},r$=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","const","video","wbr"],rM=["circle","clipPath","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","hatch","hatchpath","image","line","linearGradient","marker","mask","mesh","meshpatch","meshrow","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tspan","use","view"],rL=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"];function rF(e){return Object.keys(e).map(t=>e[t]);}function rN(e){return void 0!==e;}class rV{peekIdent(e){return em.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase();}peekKeyword(e){return em.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase();}peekDelim(e){return em.Delim===this.token.type&&e===this.token.text;}peek(e){return e===this.token.type;}peekOne(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return-1!==t.indexOf(this.token.type);}peekRegExp(e,t){return e===this.token.type&&t.test(this.token.text);}hasWhitespace(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset;}consumeToken(){this.prevToken=this.token,this.token=this.scanner.scan();}acceptUnicodeRange(){let e=this.scanner.tryScanUnicode();return!!e&&(this.prevToken=e,this.token=this.scanner.scan(),!0);}mark(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()};}restoreAtMark(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos);}try(e){let t=this.mark(),i=e();return i||(this.restoreAtMark(t),null);}acceptOneKeyword(e){if(em.AtKeyword===this.token.type){for(let t of e)if(t.length===this.token.text.length&&t===this.token.text.toLowerCase())return this.consumeToken(),!0;}return!1;}accept(e){return e===this.token.type&&(this.consumeToken(),!0);}acceptIdent(e){return!!this.peekIdent(e)&&(this.consumeToken(),!0);}acceptKeyword(e){return!!this.peekKeyword(e)&&(this.consumeToken(),!0);}acceptDelim(e){return!!this.peekDelim(e)&&(this.consumeToken(),!0);}acceptRegexp(e){return!!e.test(this.token.text)&&(this.consumeToken(),!0);}_parseRegexp(e){let t=this.createNode(eg.Identifier);do;while(this.acceptRegexp(e));return this.finish(t);}acceptUnquotedString(){let e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);let t=this.scanner.scanUnquotedString();return t?(this.token=t,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1);}resync(e,t){for(;;)if(e&&-1!==e.indexOf(this.token.type))return this.consumeToken(),!0;else{if(t&&-1!==t.indexOf(this.token.type))return!0;if(this.token.type===em.EOF)return!1;this.token=this.scanner.scan();}}createNode(e){return new tY(this.token.offset,this.token.len,e);}create(e){return new e(this.token.offset,this.token.len);}finish(e,t,i,r){if(!(e instanceof t0)&&(t&&this.markError(e,t,i,r),this.prevToken)){let t=this.prevToken.offset+this.prevToken.len;e.length=t>e.offset?t-e.offset:0;}return e;}markError(e,t,i,r){this.token!==this.lastErrorToken&&(e.addIssue(new i6(e,t,ey.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(i||r)&&this.resync(i,r);}parseStylesheet(e){let t=e.version,i=e.getText();return this.internalParse(i,this._parseStylesheet,(r,n)=>{if(e.version!==t)throw Error("Underlying model has changed, AST is no longer valid");return i.substr(r,n);});}internalParse(e,t,i){this.scanner.setSource(e),this.token=this.scanner.scan();let r=t.bind(this)();return r&&(i?r.textProvider=i:r.textProvider=(t,i)=>e.substr(t,i)),r;}_parseStylesheet(){let e=this.create(t5);for(;e.addChild(this._parseStylesheetStart()););let t=!1;do{let i=!1;do{i=!1;let r=this._parseStylesheetStatement();for(r&&(e.addChild(r),i=!0,t=!1,!this.peek(em.EOF)&&this._needsSemicolonAfter(r)&&!this.accept(em.SemiColon)&&this.markError(e,rt.SemiColonExpected));this.accept(em.SemiColon)||this.accept(em.CDO)||this.accept(em.CDC);)i=!0,t=!1;}while(i);if(this.peek(em.EOF))break;t||(this.peek(em.AtKeyword)?this.markError(e,rt.UnknownAtRule):this.markError(e,rt.RuleOrSelectorExpected),t=!0),this.consumeToken();}while(!this.peek(em.EOF));return this.finish(e);}_parseStylesheetStart(){return this._parseCharset();}_parseStylesheetStatement(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.peek(em.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e);}_parseStylesheetAtStatement(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseLayer(e)||this._parsePropertyAtRule()||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseContainer(e)||this._parseUnknownAtRule();}_tryParseRuleset(e){let t=this.mark();if(this._parseSelector(e)){for(;this.accept(em.Comma)&&this._parseSelector(e););if(this.accept(em.CurlyL))return this.restoreAtMark(t),this._parseRuleset(e);}return this.restoreAtMark(t),null;}_parseRuleset(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.create(t6),i=t.getSelectors();if(!i.addChild(this._parseSelector(e)))return null;for(;this.accept(em.Comma);)if(!i.addChild(this._parseSelector(e)))return this.finish(t,rt.SelectorExpected);return this._parseBody(t,this._parseRuleSetDeclaration.bind(this));}_parseRuleSetDeclarationAtStatement(){return this._parseMedia(!0)||this._parseSupports(!0)||this._parseLayer(!0)||this._parseContainer(!0)||this._parseUnknownAtRule();}_parseRuleSetDeclaration(){return this.peek(em.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this.peek(em.Ident)?this._tryParseRuleset(!0)||this._parseDeclaration():this._parseRuleset(!0);}_needsSemicolonAfter(e){switch(e.type){case eg.Keyframe:case eg.ViewPort:case eg.Media:case eg.Ruleset:case eg.Namespace:case eg.If:case eg.For:case eg.Each:case eg.While:case eg.MixinDeclaration:case eg.FunctionDeclaration:case eg.MixinContentDeclaration:break;case eg.ExtendsReference:case eg.MixinContentReference:case eg.ReturnStatement:case eg.MediaQuery:case eg.Debug:case eg.Import:case eg.AtApplyRule:case eg.CustomPropertyDeclaration:return!0;case eg.VariableDeclaration:return e.needsSemicolon;case eg.MixinReference:return!e.getContent();case eg.Declaration:return!e.getNestedProperties();}return!1;}_parseDeclarations(e){let t=this.create(t4);if(!this.accept(em.CurlyL))return null;let i=e();for(;t.addChild(i)&&!this.peek(em.CurlyR);){if(this._needsSemicolonAfter(i)&&!this.accept(em.SemiColon))return this.finish(t,rt.SemiColonExpected,[em.SemiColon,em.CurlyR]);for(i&&this.prevToken&&this.prevToken.type===em.SemiColon&&(i.semicolonPosition=this.prevToken.offset);this.accept(em.SemiColon););i=e();}return this.accept(em.CurlyR)?this.finish(t):this.finish(t,rt.RightCurlyExpected,[em.CurlyR,em.SemiColon]);}_parseBody(e,t){return e.setDeclarations(this._parseDeclarations(t))?this.finish(e):this.finish(e,rt.LeftCurlyExpected,[em.CurlyR,em.SemiColon]);}_parseSelector(e){let t=this.create(t7),i=!1;for(e&&(i=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());)i=!0,t.addChild(this._parseCombinator());return i?this.finish(t):null;}_parseDeclaration(e){let t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;let i=this.create(it);return i.setProperty(this._parseProperty())?this.accept(em.Colon)?(this.prevToken&&(i.colonPosition=this.prevToken.offset),i.setValue(this._parseExpr()))?(i.addChild(this._parsePrio()),this.peek(em.SemiColon)&&(i.semicolonPosition=this.token.offset),this.finish(i)):this.finish(i,rt.PropertyValueExpected):this.finish(i,rt.ColonExpected,[em.Colon],e||[em.SemiColon]):null;}_tryParseCustomPropertyDeclaration(e){if(!this.peekRegExp(em.Ident,/^--/))return null;let t=this.create(ii);if(!t.setProperty(this._parseProperty()))return null;if(!this.accept(em.Colon))return this.finish(t,rt.ColonExpected,[em.Colon]);this.prevToken&&(t.colonPosition=this.prevToken.offset);let i=this.mark();if(this.peek(em.CurlyL)){let e=this.create(ie),r=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(e.setDeclarations(r)&&!r.isErroneous(!0)&&(e.addChild(this._parsePrio()),this.peek(em.SemiColon)))return this.finish(e),t.setPropertySet(e),t.semicolonPosition=this.token.offset,this.finish(t);this.restoreAtMark(i);}let r=this._parseExpr();return r&&!r.isErroneous(!0)&&(this._parsePrio(),this.peekOne(...(e||[]),em.SemiColon,em.EOF))?(t.setValue(r),this.peek(em.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)):(this.restoreAtMark(i),t.addChild(this._parseCustomPropertyValue(e)),t.addChild(this._parsePrio()),rN(t.colonPosition)&&this.token.offset===t.colonPosition+1)?this.finish(t,rt.PropertyValueExpected):this.finish(t);}_parseCustomPropertyValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[em.CurlyR],t=this.create(tY),i=()=>0===n&&0===s&&0===a,r=()=>-1!==e.indexOf(this.token.type),n=0,s=0,a=0;e:for(;;){switch(this.token.type){case em.SemiColon:case em.Exclamation:if(i())break e;break;case em.CurlyL:n++;break;case em.CurlyR:if(--n<0){if(r()&&0===s&&0===a)break e;return this.finish(t,rt.LeftCurlyExpected);}break;case em.ParenthesisL:s++;break;case em.ParenthesisR:if(--s<0){if(r()&&0===a&&0===n)break e;return this.finish(t,rt.LeftParenthesisExpected);}break;case em.BracketL:a++;break;case em.BracketR:if(--a<0)return this.finish(t,rt.LeftSquareBracketExpected);break;case em.BadString:break e;case em.EOF:let e=rt.RightCurlyExpected;return a>0?e=rt.RightSquareBracketExpected:s>0&&(e=rt.RightParenthesisExpected),this.finish(t,e);}this.consumeToken();}return this.finish(t);}_tryToParseDeclaration(e){let t=this.mark();return this._parseProperty()&&this.accept(em.Colon)?(this.restoreAtMark(t),this._parseDeclaration(e)):(this.restoreAtMark(t),null);}_parseProperty(){let e=this.create(ir),t=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(t),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null;}_parsePropertyIdentifier(){return this._parseIdent();}_parseCharset(){if(!this.peek(em.Charset))return null;let e=this.create(tY);return(this.consumeToken(),this.accept(em.String))?this.accept(em.SemiColon)?this.finish(e):this.finish(e,rt.SemiColonExpected):this.finish(e,rt.IdentifierExpected);}_parseImport(){if(!this.peekKeyword("@import"))return null;let e=this.create(iC);return(this.consumeToken(),e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral()))?this._completeParseImport(e):this.finish(e,rt.URIOrStringExpected);}_completeParseImport(e){if(this.acceptIdent("layer")&&this.accept(em.ParenthesisL)){if(!e.addChild(this._parseLayerName()))return this.finish(e,rt.IdentifierExpected,[em.SemiColon]);if(!this.accept(em.ParenthesisR))return this.finish(e,rt.RightParenthesisExpected,[em.ParenthesisR],[]);}return this.acceptIdent("supports")&&this.accept(em.ParenthesisL)&&(e.addChild(this._tryToParseDeclaration()||this._parseSupportsCondition()),!this.accept(em.ParenthesisR))?this.finish(e,rt.RightParenthesisExpected,[em.ParenthesisR],[]):(this.peek(em.SemiColon)||this.peek(em.EOF)||e.setMedialist(this._parseMediaQueryList()),this.finish(e));}_parseNamespace(){if(!this.peekKeyword("@namespace"))return null;let e=this.create(iP);return(this.consumeToken(),e.addChild(this._parseURILiteral())||(e.addChild(this._parseIdent()),e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())))?this.accept(em.SemiColon)?this.finish(e):this.finish(e,rt.SemiColonExpected):this.finish(e,rt.URIExpected,[em.SemiColon]);}_parseFontFace(){if(!this.peekKeyword("@font-face"))return null;let e=this.create(i_);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this));}_parseViewPort(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;let e=this.create(ig);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this));}_parseKeyframe(){if(!this.peekRegExp(em.AtKeyword,this.keyframeRegex))return null;let e=this.create(ib),t=this.create(tY);return(this.consumeToken(),e.setKeyword(this.finish(t)),t.matches("@-ms-keyframes")&&this.markError(t,rt.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent()))?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,rt.IdentifierExpected,[em.CurlyR]);}_parseKeyframeIdent(){return this._parseIdent([e_.Keyframe]);}_parseKeyframeSelector(){let e=this.create(ix),t=!1;if(e.addChild(this._parseIdent())&&(t=!0),this.accept(em.Percentage)&&(t=!0),!t)return null;for(;this.accept(em.Comma);)if(t=!1,e.addChild(this._parseIdent())&&(t=!0),this.accept(em.Percentage)&&(t=!0),!t)return this.finish(e,rt.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this));}_tryParseKeyframeSelector(){let e=this.create(ix),t=this.mark(),i=!1;if(e.addChild(this._parseIdent())&&(i=!0),this.accept(em.Percentage)&&(i=!0),!i)return null;for(;this.accept(em.Comma);)if(i=!1,e.addChild(this._parseIdent())&&(i=!0),this.accept(em.Percentage)&&(i=!0),!i)return this.restoreAtMark(t),null;return this.peek(em.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(t),null);}_parsePropertyAtRule(){if(!this.peekKeyword("@property"))return null;let e=this.create(iD);return(this.consumeToken(),this.peekRegExp(em.Ident,/^--/)&&e.setName(this._parseIdent([e_.Property])))?this._parseBody(e,this._parseDeclaration.bind(this)):this.finish(e,rt.IdentifierExpected);}_parseLayer(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.peekKeyword("@layer"))return null;let t=this.create(iI);this.consumeToken();let i=this._parseLayerNameList();return(i&&t.setNames(i),(!i||1===i.getChildren().length)&&this.peek(em.CurlyL))?this._parseBody(t,this._parseLayerDeclaration.bind(this,e)):this.accept(em.SemiColon)?this.finish(t):this.finish(t,rt.SemiColonExpected);}_parseLayerDeclaration(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1);}_parseLayerNameList(){let e=this.createNode(eg.LayerNameList);if(!e.addChild(this._parseLayerName()))return null;for(;this.accept(em.Comma);)if(!e.addChild(this._parseLayerName()))return this.finish(e,rt.IdentifierExpected);return this.finish(e);}_parseLayerName(){let e=this.createNode(eg.LayerName);if(!e.addChild(this._parseIdent()))return null;for(;!this.hasWhitespace()&&this.acceptDelim(".");)if(this.hasWhitespace()||!e.addChild(this._parseIdent()))return this.finish(e,rt.IdentifierExpected);return this.finish(e);}_parseSupports(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.peekKeyword("@supports"))return null;let t=this.create(iR);return this.consumeToken(),t.addChild(this._parseSupportsCondition()),this._parseBody(t,this._parseSupportsDeclaration.bind(this,e));}_parseSupportsDeclaration(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1);}_parseSupportsCondition(){let e=this.create(iN);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(em.Ident,/^(and|or)$/i)){let t=this.token.text.toLowerCase();for(;this.acceptIdent(t);)e.addChild(this._parseSupportsConditionInParens());}return this.finish(e);}_parseSupportsConditionInParens(){let e=this.create(iN);if(this.accept(em.ParenthesisL))return(this.prevToken&&(e.lParent=this.prevToken.offset),e.addChild(this._tryToParseDeclaration([em.ParenthesisR]))||this._parseSupportsCondition())?this.accept(em.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,rt.RightParenthesisExpected,[em.ParenthesisR],[]):this.finish(e,rt.ConditionExpected);if(this.peek(em.Ident)){let t=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(em.ParenthesisL)){let t=1;for(;this.token.type!==em.EOF&&0!==t;)this.token.type===em.ParenthesisL?t++:this.token.type===em.ParenthesisR&&t--,this.consumeToken();return this.finish(e);}this.restoreAtMark(t);}return this.finish(e,rt.LeftParenthesisExpected,[],[em.ParenthesisL]);}_parseMediaDeclaration(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1);}_parseMedia(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.peekKeyword("@media"))return null;let t=this.create(iE);return(this.consumeToken(),t.addChild(this._parseMediaQueryList()))?this._parseBody(t,this._parseMediaDeclaration.bind(this,e)):this.finish(t,rt.MediaQueryExpected);}_parseMediaQueryList(){let e=this.create(i$);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,rt.MediaQueryExpected);for(;this.accept(em.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,rt.MediaQueryExpected);return this.finish(e);}_parseMediaQuery(){let e=this.create(iM),t=this.mark();if(this.acceptIdent("not"),this.peek(em.ParenthesisL))this.restoreAtMark(t),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!e.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&e.addChild(this._parseMediaCondition());}return this.finish(e);}_parseRatio(){let e=this.mark(),t=this.create(ij);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(t):this.finish(t,rt.NumberExpected):(this.restoreAtMark(e),null):null;}_parseMediaCondition(){let e=this.create(iL);this.acceptIdent("not");let t=!0;for(;t;){if(!this.accept(em.ParenthesisL))return this.finish(e,rt.LeftParenthesisExpected,[],[em.CurlyL]);if(this.peek(em.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(em.ParenthesisR))return this.finish(e,rt.RightParenthesisExpected,[],[em.CurlyL]);t=this.acceptIdent("and")||this.acceptIdent("or");}return this.finish(e);}_parseMediaFeature(){let e=[em.ParenthesisR],t=this.create(iF);if(t.addChild(this._parseMediaFeatureName())){if(this.accept(em.Colon)){if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,rt.TermExpected,[],e);}else if(this._parseMediaFeatureRangeOperator()&&(!t.addChild(this._parseMediaFeatureValue())||this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue())))return this.finish(t,rt.TermExpected,[],e);}else{if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,rt.IdentifierExpected,[],e);if(!this._parseMediaFeatureRangeOperator())return this.finish(t,rt.OperatorExpected,[],e);if(!t.addChild(this._parseMediaFeatureName()))return this.finish(t,rt.IdentifierExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,rt.TermExpected,[],e);}return this.finish(t);}_parseMediaFeatureRangeOperator(){return this.acceptDelim("<")||this.acceptDelim(">")?(this.hasWhitespace()||this.acceptDelim("="),!0):!!this.acceptDelim("=");}_parseMediaFeatureName(){return this._parseIdent();}_parseMediaFeatureValue(){return this._parseRatio()||this._parseTermExpression();}_parseMedium(){let e=this.create(tY);return e.addChild(this._parseIdent())?this.finish(e):null;}_parsePageDeclaration(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration();}_parsePage(){if(!this.peekKeyword("@page"))return null;let e=this.create(iV);if(this.consumeToken(),e.addChild(this._parsePageSelector())){for(;this.accept(em.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,rt.IdentifierExpected);}return this._parseBody(e,this._parsePageDeclaration.bind(this));}_parsePageMarginBox(){if(!this.peek(em.AtKeyword))return null;let e=this.create(iO);return this.acceptOneKeyword(rL)||this.markError(e,rt.UnknownAtRule,[],[em.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this));}_parsePageSelector(){if(!this.peek(em.Ident)&&!this.peek(em.Colon))return null;let e=this.create(tY);return(e.addChild(this._parseIdent()),this.accept(em.Colon)&&!e.addChild(this._parseIdent()))?this.finish(e,rt.IdentifierExpected):this.finish(e);}_parseDocument(){if(!this.peekKeyword("@-moz-document"))return null;let e=this.create(iA);return this.consumeToken(),this.resync([],[em.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this));}_parseContainerDeclaration(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1);}_parseContainer(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.peekKeyword("@container"))return null;let t=this.create(iT);return this.consumeToken(),t.addChild(this._parseIdent()),t.addChild(this._parseContainerQuery()),this._parseBody(t,this._parseContainerDeclaration.bind(this,e));}_parseContainerQuery(){let e=this.create(tY);if(this.acceptIdent("not"))e.addChild(this._parseContainerQueryInParens());else if(e.addChild(this._parseContainerQueryInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseContainerQueryInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseContainerQueryInParens());return this.finish(e);}_parseContainerQueryInParens(){let e=this.create(tY);if(this.accept(em.ParenthesisL)){if(this.peekIdent("not")||this.peek(em.ParenthesisL)?e.addChild(this._parseContainerQuery()):e.addChild(this._parseMediaFeature()),!this.accept(em.ParenthesisR))return this.finish(e,rt.RightParenthesisExpected,[],[em.CurlyL]);}else{if(!this.acceptIdent("style")||this.hasWhitespace()||!this.accept(em.ParenthesisL))return this.finish(e,rt.LeftParenthesisExpected,[],[em.CurlyL]);if(e.addChild(this._parseStyleQuery()),!this.accept(em.ParenthesisR))return this.finish(e,rt.RightParenthesisExpected,[],[em.CurlyL]);}return this.finish(e);}_parseStyleQuery(){let e=this.create(tY);if(this.acceptIdent("not"))e.addChild(this._parseStyleInParens());else if(this.peek(em.ParenthesisL)){if(e.addChild(this._parseStyleInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseStyleInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseStyleInParens());}else e.addChild(this._parseDeclaration([em.ParenthesisR]));return this.finish(e);}_parseStyleInParens(){let e=this.create(tY);return this.accept(em.ParenthesisL)?(e.addChild(this._parseStyleQuery()),this.accept(em.ParenthesisR))?this.finish(e):this.finish(e,rt.RightParenthesisExpected,[],[em.CurlyL]):this.finish(e,rt.LeftParenthesisExpected,[],[em.CurlyL]);}_parseUnknownAtRule(){if(!this.peek(em.AtKeyword))return null;let e=this.create(i1);e.addChild(this._parseUnknownAtRuleName());let t=()=>0===r&&0===n&&0===s,i=0,r=0,n=0,s=0;e:for(;;){switch(this.token.type){case em.SemiColon:if(t())break e;break;case em.EOF:if(r>0)return this.finish(e,rt.RightCurlyExpected);if(s>0)return this.finish(e,rt.RightSquareBracketExpected);if(n>0)return this.finish(e,rt.RightParenthesisExpected);else return this.finish(e);case em.CurlyL:i++,r++;break;case em.CurlyR:if(r--,i>0&&0===r){if(this.consumeToken(),s>0)return this.finish(e,rt.RightSquareBracketExpected);if(n>0)return this.finish(e,rt.RightParenthesisExpected);break e;}if(r<0){if(0===n&&0===s)break e;return this.finish(e,rt.LeftCurlyExpected);}break;case em.ParenthesisL:n++;break;case em.ParenthesisR:if(--n<0)return this.finish(e,rt.LeftParenthesisExpected);break;case em.BracketL:s++;break;case em.BracketR:if(--s<0)return this.finish(e,rt.LeftSquareBracketExpected);}this.consumeToken();}return e;}_parseUnknownAtRuleName(){let e=this.create(tY);return this.accept(em.AtKeyword)?this.finish(e):e;}_parseOperator(){if(!(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(em.Dashmatch)||this.peek(em.Includes)||this.peek(em.SubstringOperator)||this.peek(em.PrefixOperator)||this.peek(em.SuffixOperator)||this.peekDelim("=")))return null;{let e=this.createNode(eg.Operator);return this.consumeToken(),this.finish(e);}}_parseUnaryOperator(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;let e=this.create(tY);return this.consumeToken(),this.finish(e);}_parseCombinator(){if(this.peekDelim(">")){let e=this.create(tY);this.consumeToken();let t=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=eg.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t);}return e.type=eg.SelectorCombinatorParent,this.finish(e);}if(this.peekDelim("+")){let e=this.create(tY);return this.consumeToken(),e.type=eg.SelectorCombinatorSibling,this.finish(e);}if(this.peekDelim("~")){let e=this.create(tY);return this.consumeToken(),e.type=eg.SelectorCombinatorAllSiblings,this.finish(e);}if(this.peekDelim("/")){let e=this.create(tY);this.consumeToken();let t=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=eg.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t);}return null;}_parseSimpleSelector(){let e=this.create(t8),t=0;for(e.addChild(this._parseElementName()||this._parseNestingSelector())&&t++;(0===t||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return t>0?this.finish(e):null;}_parseNestingSelector(){if(this.peekDelim("&")){let e=this.createNode(eg.SelectorCombinator);return this.consumeToken(),this.finish(e);}return null;}_parseSimpleSelectorBody(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib();}_parseSelectorIdent(){return this._parseIdent();}_parseHash(){if(!this.peek(em.Hash)&&!this.peekDelim("#"))return null;let e=this.createNode(eg.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,rt.IdentifierExpected);}else this.consumeToken();return this.finish(e);}_parseClass(){if(!this.peekDelim("."))return null;let e=this.createNode(eg.ClassSelector);return(this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))?this.finish(e,rt.IdentifierExpected):this.finish(e);}_parseElementName(){let e=this.mark(),t=this.createNode(eg.ElementNameSelector);return(t.addChild(this._parseNamespacePrefix()),t.addChild(this._parseSelectorIdent())||this.acceptDelim("*"))?this.finish(t):(this.restoreAtMark(e),null);}_parseNamespacePrefix(){let e=this.mark(),t=this.createNode(eg.NamespacePrefix);return(!t.addChild(this._parseIdent())&&!this.acceptDelim("*"),this.acceptDelim("|"))?this.finish(t):(this.restoreAtMark(e),null);}_parseAttrib(){if(!this.peek(em.BracketL))return null;let e=this.create(iK);return(this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent()))?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i"),this.acceptIdent("s")),this.accept(em.BracketR))?this.finish(e):this.finish(e,rt.RightSquareBracketExpected):this.finish(e,rt.IdentifierExpected);}_parsePseudo(){let e=this._tryParsePseudoIdentifier();if(e){if(!this.hasWhitespace()&&this.accept(em.ParenthesisL)){let t=()=>{let e=this.create(tY);if(!e.addChild(this._parseSelector(!0)))return null;for(;this.accept(em.Comma)&&e.addChild(this._parseSelector(!0)););return this.peek(em.ParenthesisR)?this.finish(e):null;};if(!e.addChild(this.try(t))&&e.addChild(this._parseBinaryExpr())&&this.acceptIdent("of")&&!e.addChild(this.try(t)))return this.finish(e,rt.SelectorExpected);if(!this.accept(em.ParenthesisR))return this.finish(e,rt.RightParenthesisExpected);}return this.finish(e);}return null;}_tryParsePseudoIdentifier(){if(!this.peek(em.Colon))return null;let e=this.mark(),t=this.createNode(eg.PseudoSelector);return(this.consumeToken(),this.hasWhitespace())?(this.restoreAtMark(e),null):(this.accept(em.Colon),this.hasWhitespace()||!t.addChild(this._parseIdent()))?this.finish(t,rt.IdentifierExpected):this.finish(t);}_tryParsePrio(){let e=this.mark(),t=this._parsePrio();return t||(this.restoreAtMark(e),null);}_parsePrio(){if(!this.peek(em.Exclamation))return null;let e=this.createNode(eg.Prio);return this.accept(em.Exclamation)&&this.acceptIdent("important")?this.finish(e):null;}_parseExpr(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.create(iU);if(!t.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(em.Comma)){if(e)return this.finish(t);this.consumeToken();}if(!t.addChild(this._parseBinaryExpr()))break;}return this.finish(t);}_parseUnicodeRange(){if(!this.peekIdent("u"))return null;let e=this.create(t1);return this.acceptUnicodeRange()?this.finish(e):null;}_parseNamedLine(){if(!this.peek(em.BracketL))return null;let e=this.createNode(eg.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(em.BracketR)?this.finish(e):this.finish(e,rt.RightSquareBracketExpected);}_parseBinaryExpr(e,t){let i=this.create(iB);if(!i.setLeft(e||this._parseTerm()))return null;if(!i.setOperator(t||this._parseOperator()))return this.finish(i);if(!i.setRight(this._parseTerm()))return this.finish(i,rt.TermExpected);i=this.finish(i);let r=this._parseOperator();return r&&(i=this._parseBinaryExpr(i,r)),this.finish(i);}_parseTerm(){let e=this.create(iW);return(e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression()))?this.finish(e):null;}_parseTermExpression(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine();}_parseOperation(){if(!this.peek(em.ParenthesisL))return null;let e=this.create(tY);return(this.consumeToken(),e.addChild(this._parseExpr()),this.accept(em.ParenthesisR))?this.finish(e):this.finish(e,rt.RightParenthesisExpected);}_parseNumeric(){if(this.peek(em.Num)||this.peek(em.Percentage)||this.peek(em.Resolution)||this.peek(em.Length)||this.peek(em.EMS)||this.peek(em.EXS)||this.peek(em.Angle)||this.peek(em.Time)||this.peek(em.Dimension)||this.peek(em.ContainerQueryLength)||this.peek(em.Freq)){let e=this.create(iq);return this.consumeToken(),this.finish(e);}return null;}_parseStringLiteral(){if(!this.peek(em.String)&&!this.peek(em.BadString))return null;let e=this.createNode(eg.StringLiteral);return this.consumeToken(),this.finish(e);}_parseURILiteral(){if(!this.peekRegExp(em.Ident,/^url(-prefix)?$/i))return null;let e=this.mark(),t=this.createNode(eg.URILiteral);return(this.accept(em.Ident),this.hasWhitespace()||!this.peek(em.ParenthesisL))?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),t.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(em.ParenthesisR))?this.finish(t):this.finish(t,rt.RightParenthesisExpected);}_parseURLArgument(){let e=this.create(tY);return this.accept(em.String)||this.accept(em.BadString)||this.acceptUnquotedString()?this.finish(e):null;}_parseIdent(e){if(!this.peek(em.Ident))return null;let t=this.create(t2);return e&&(t.referenceTypes=e),t.isCustomProperty=this.peekRegExp(em.Ident,/^--/),this.consumeToken(),this.finish(t);}_parseFunction(){let e=this.mark(),t=this.create(ia);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(em.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(em.Comma)&&!this.peek(em.ParenthesisR);)t.getArguments().addChild(this._parseFunctionArgument())||this.markError(t,rt.ExpressionExpected);return this.accept(em.ParenthesisR)?this.finish(t):this.finish(t,rt.RightParenthesisExpected);}_parseFunctionIdentifier(){if(!this.peek(em.Ident))return null;let e=this.create(t2);if(e.referenceTypes=[e_.Function],this.acceptIdent("progid")){if(this.accept(em.Colon))for(;this.accept(em.Ident)&&this.acceptDelim("."););return this.finish(e);}return this.consumeToken(),this.finish(e);}_parseFunctionArgument(){let e=this.create(il);return e.setValue(this._parseExpr(!0))?this.finish(e):null;}_parseHexColor(){if(!this.peekRegExp(em.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g))return null;{let e=this.create(iz);return this.consumeToken(),this.finish(e);}}constructor(e=new tq()){this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:em.EOF,offset:-1,len:0,text:""},this.prevToken=void 0;}}function rO(e,t){return-1!==e.indexOf(t);}function rU(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];let r=[];for(let e of t)for(let t of e)rO(r,t)||r.push(t);return r;}class rB{addChild(e){this.children.push(e),e.setParent(this);}setParent(e){this.parent=e;}findScope(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.offset<=e&&this.offset+this.length>e+t||this.offset===e&&this.length===t?this.findInScope(e,t):null;}findInScope(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=e+t,r=function(e,t){let i=0,r=e.length;if(0===r)return 0;for(;i<r;){let n=Math.floor((i+r)/2);t(e[n])?r=n:i=n+1;}return i;}(this.children,e=>e.offset>i);if(0===r)return this;let n=this.children[r-1];return n.offset<=e&&n.offset+n.length>=e+t?n.findInScope(e,t):this;}addSymbol(e){this.symbols.push(e);}getSymbol(e,t){for(let i=0;i<this.symbols.length;i++){let r=this.symbols[i];if(r.name===e&&r.type===t)return r;}return null;}getSymbols(){return this.symbols;}constructor(e,t){this.offset=e,this.length=t,this.symbols=[],this.parent=null,this.children=[];}}class rW extends rB{constructor(){super(0,Number.MAX_VALUE);}}class rK{constructor(e,t,i,r){this.name=e,this.value=t,this.node=i,this.type=r;}}class rz{addSymbol(e,t,i,r){if(-1!==e.offset){let n=this.scope.findScope(e.offset,e.length);n&&n.addSymbol(new rK(t,i,e,r));}}addScope(e){if(-1!==e.offset){let t=this.scope.findScope(e.offset,e.length);if(t&&(t.offset!==e.offset||t.length!==e.length)){let i=new rB(e.offset,e.length);return t.addChild(i),i;}return t;}return null;}addSymbolToChildScope(e,t,i,r,n){if(e&&-1!==e.offset){let s=this.addScope(e);s&&s.addSymbol(new rK(i,r,t,n));}}visitNode(e){switch(e.type){case eg.Keyframe:this.addSymbol(e,e.getName(),void 0,e_.Keyframe);break;case eg.CustomPropertyDeclaration:return this.visitCustomPropertyDeclarationNode(e);case eg.VariableDeclaration:return this.visitVariableDeclarationNode(e);case eg.Ruleset:return this.visitRuleSet(e);case eg.MixinDeclaration:this.addSymbol(e,e.getName(),void 0,e_.Mixin);break;case eg.FunctionDeclaration:this.addSymbol(e,e.getName(),void 0,e_.Function);break;case eg.FunctionParameter:return this.visitFunctionParameterNode(e);case eg.Declarations:this.addScope(e);break;case eg.For:let t=e.getDeclarations();t&&e.variable&&this.addSymbolToChildScope(t,e.variable,e.variable.getName(),void 0,e_.Variable);break;case eg.Each:{let t=e.getDeclarations();if(t)for(let i of e.getVariables().getChildren())this.addSymbolToChildScope(t,i,i.getName(),void 0,e_.Variable);}}return!0;}visitRuleSet(e){let t=this.scope.findScope(e.offset,e.length);if(t)for(let i of e.getSelectors().getChildren())i instanceof t7&&1===i.getChildren().length&&t.addSymbol(new rK(i.getChild(0).getText(),void 0,i,e_.Rule));return!0;}visitVariableDeclarationNode(e){let t=e.getValue()?e.getValue().getText():void 0;return this.addSymbol(e,e.getName(),t,e_.Variable),!0;}visitFunctionParameterNode(e){let t=e.getParent().getDeclarations();if(t){let i=e.getDefaultValue(),r=i?i.getText():void 0;this.addSymbolToChildScope(t,e,e.getName(),r,e_.Variable);}return!0;}visitCustomPropertyDeclarationNode(e){let t=e.getValue()?e.getValue().getText():"";return this.addCSSVariable(e.getProperty(),e.getProperty().getName(),t,e_.Variable),!0;}addCSSVariable(e,t,i,r){-1!==e.offset&&this.scope.addSymbol(new rK(t,i,e,r));}constructor(e){this.scope=e;}}class rj{findSymbolsAtOffset(e,t){let i=this.global.findScope(e,0),r=[],n={};for(;i;){let e=i.getSymbols();for(let i=0;i<e.length;i++){let s=e[i];s.type!==t||n[s.name]||(r.push(s),n[s.name]=!0);}i=i.parent;}return r;}internalFindSymbol(e,t){let i=e;if(e.parent instanceof io&&e.parent.getParent()instanceof t3&&(i=e.parent.getParent().getDeclarations()),e.parent instanceof il&&e.parent.getParent()instanceof ia){let t=e.parent.getParent().getIdentifier();if(t){let e=this.internalFindSymbol(t,[e_.Function]);e&&(i=e.node.getDeclarations());}}if(!i)return null;let r=e.getText(),n=this.global.findScope(i.offset,i.length);for(;n;){for(let e=0;e<t.length;e++){let i=t[e],s=n.getSymbol(r,i);if(s)return s;}n=n.parent;}return null;}evaluateReferenceTypes(e){if(e instanceof t2){let t=e.referenceTypes;if(t)return t;{let t,i;if(e.isCustomProperty)return[e_.Variable];let r=(i=(t=e.findParent(eg.Declaration))&&t.getValue())&&i.encloses(e)?t:null;if(r){let t=r.getNonPrefixedPropertyName();if(("animation"===t||"animation-name"===t)&&r.getValue()&&r.getValue().offset===e.offset)return[e_.Keyframe];}}}else if(e instanceof iG)return[e_.Variable];return e.findAParent(eg.Selector,eg.ExtendsReference)?[e_.Rule]:null;}findSymbolFromNode(e){if(!e)return null;for(;e.type===eg.Interpolation;)e=e.getParent();let t=this.evaluateReferenceTypes(e);return t?this.internalFindSymbol(e,t):null;}matchesSymbol(e,t){if(!e)return!1;for(;e.type===eg.Interpolation;)e=e.getParent();if(!e.matches(t.name))return!1;let i=this.evaluateReferenceTypes(e);return!!i&&-1!==i.indexOf(t.type)&&this.internalFindSymbol(e,i)===t;}findSymbol(e,t,i){let r=this.global.findScope(i);for(;r;){let i=r.getSymbol(e,t);if(i)return i;r=r.parent;}return null;}constructor(e){this.global=new rW(),e.acceptVisitor(new rz(this.global));}}let rq={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function rH(e){switch(e){case"experimental":return"⚠️ Property is experimental. Be cautious when using it.️\n\n";case"nonstandard":return"\uD83D\uDEA8️ Property is nonstandard. Avoid using it.\n\n";case"obsolete":return"\uD83D\uDEA8️️️ Property is obsolete. Avoid using it.\n\n";default:return"";}}function rQ(e,t,i){let r;if(""!==(r=t?{kind:"markdown",value:function(e,t){if(!e.description||""===e.description)return"";let i="";if((null==t?void 0:t.documentation)!==!1){e.status&&(i+=rH(e.status)),"string"==typeof e.description?i+=rG(e.description):i+=e.description.kind===eX.Markdown?e.description.value:rG(e.description.value);let t=rJ(e.browsers);t&&(i+="\n\n("+rG(t)+")"),"syntax"in e&&e.syntax&&(i+=`
2
+
3
+ Syntax: ${rG(e.syntax)}`);}return e.references&&e.references.length>0&&(null==t?void 0:t.references)!==!1&&(i.length>0&&(i+="\n\n"),i+=e.references.map(e=>`[${e.name}](${e.url})`).join(" | ")),i;}(e,i)}:{kind:"plaintext",value:function(e,t){if(!e.description||""===e.description)return"";if("string"!=typeof e.description)return e.description.value;let i="";if((null==t?void 0:t.documentation)!==!1){e.status&&(i+=rH(e.status)),i+=e.description;let t=rJ(e.browsers);t&&(i+="\n("+t+")"),"syntax"in e&&(i+=`
4
+
5
+ Syntax: ${e.syntax}`);}return e.references&&e.references.length>0&&(null==t?void 0:t.references)!==!1&&(i.length>0&&(i+="\n\n"),i+=e.references.map(e=>`${e.name}: ${e.url}`).join(" | ")),i;}(e,i)}).value)return r;}function rG(e){return(e=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")).replace(/</g,"&lt;").replace(/>/g,"&gt;");}function rJ(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return 0===e.length?null:e.map(e=>{let t="",i=e.match(/([A-Z]+)(\d+)?/),r=i[1],n=i[2];return r in rq&&(t+=rq[r]),n&&(t+=" "+n),t;}).join(", ");}var rX=i(63680),rZ={470:e=>{function t(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e));}function i(e,t){for(var i,r="",n=0,s=-1,a=0,o=0;o<=e.length;++o){if(o<e.length)i=e.charCodeAt(o);else{if(47===i)break;i=47;}if(47===i){if(s===o-1||1===a);else if(s!==o-1&&2===a){if(r.length<2||2!==n||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2)){if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",n=0):n=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),s=o,a=0;continue;}}else if(2===r.length||1===r.length){r="",n=0,s=o,a=0;continue;}}t&&(r.length>0?r+="/..":r="..",n=2);}else r.length>0?r+="/"+e.slice(s+1,o):r=e.slice(s+1,o),n=o-s-1;s=o,a=0;}else 46===i&&-1!==a?++a:a=-1;}return r;}var r={resolve:function(){for(var e,r,n="",s=!1,a=arguments.length-1;a>=-1&&!s;a--)a>=0?e=arguments[a]:(void 0===r&&(r=rX.cwd()),e=r),t(e),0!==e.length&&(n=e+"/"+n,s=47===e.charCodeAt(0));return n=i(n,!s),s?n.length>0?"/"+n:"/":n.length>0?n:".";},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),n=47===e.charCodeAt(e.length-1);return 0!==(e=i(e,!r)).length||r||(e="."),e.length>0&&n&&(e+="/"),r?"/"+e:e;},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0);},join:function(){if(0==arguments.length)return".";for(var e,i=0;i<arguments.length;++i){var n=arguments[i];t(n),n.length>0&&(void 0===e?e=n:e+="/"+n);}return void 0===e?".":r.normalize(e);},relative:function(e,i){if(t(e),t(i),e===i||(e=r.resolve(e))===(i=r.resolve(i)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var s=e.length,a=s-n,o=1;o<i.length&&47===i.charCodeAt(o);++o);for(var l=i.length-o,h=a<l?a:l,c=-1,u=0;u<=h;++u){if(u===h){if(l>h){if(47===i.charCodeAt(o+u))return i.slice(o+u+1);if(0===u)return i.slice(o+u);}else a>h&&(47===e.charCodeAt(n+u)?c=u:0===u&&(c=0));break;}var p=e.charCodeAt(n+u);if(p!==i.charCodeAt(o+u))break;47===p&&(c=u);}var d="";for(u=n+c+1;u<=s;++u)u!==s&&47!==e.charCodeAt(u)||(0===d.length?d+="..":d+="/..");return d.length>0?d+i.slice(o+c):(o+=c,47===i.charCodeAt(o)&&++o,i.slice(o));},_makeLong:function(e){return e;},dirname:function(e){if(t(e),0===e.length)return".";for(var i=e.charCodeAt(0),r=47===i,n=-1,s=!0,a=e.length-1;a>=1;--a)if(47===(i=e.charCodeAt(a))){if(!s){n=a;break;}}else s=!1;return-1===n?r?"/":".":r&&1===n?"//":e.slice(0,n);},basename:function(e,i){if(void 0!==i&&"string"!=typeof i)throw TypeError('"ext" argument must be a string');t(e);var r,n=0,s=-1,a=!0;if(void 0!==i&&i.length>0&&i.length<=e.length){if(i.length===e.length&&i===e)return"";var o=i.length-1,l=-1;for(r=e.length-1;r>=0;--r){var h=e.charCodeAt(r);if(47===h){if(!a){n=r+1;break;}}else-1===l&&(a=!1,l=r+1),o>=0&&(h===i.charCodeAt(o)?-1==--o&&(s=r):(o=-1,s=l));}return n===s?s=l:-1===s&&(s=e.length),e.slice(n,s);}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){n=r+1;break;}}else-1===s&&(a=!1,s=r+1);return-1===s?"":e.slice(n,s);},extname:function(e){t(e);for(var i=-1,r=0,n=-1,s=!0,a=0,o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(47!==l)-1===n&&(s=!1,n=o+1),46===l?-1===i?i=o:1!==a&&(a=1):-1!==i&&(a=-1);else if(!s){r=o+1;break;}}return-1===i||-1===n||0===a||1===a&&i===n-1&&i===r+1?"":e.slice(i,n);},format:function(e){var t,i;if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return t=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||""),t?t===e.root?t+i:t+"/"+i:i;},parse:function(e){t(e);var i={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return i;var r,n=e.charCodeAt(0),s=47===n;s?(i.root="/",r=1):r=0;for(var a=-1,o=0,l=-1,h=!0,c=e.length-1,u=0;c>=r;--c)if(47!==(n=e.charCodeAt(c)))-1===l&&(h=!1,l=c+1),46===n?-1===a?a=c:1!==u&&(u=1):-1!==a&&(u=-1);else if(!h){o=c+1;break;}return-1===a||-1===l||0===u||1===u&&a===l-1&&a===o+1?-1!==l&&(i.base=i.name=0===o&&s?e.slice(1,l):e.slice(o,l)):(0===o&&s?(i.name=e.slice(1,a),i.base=e.slice(1,l)):(i.name=e.slice(o,a),i.base=e.slice(o,l)),i.ext=e.slice(a,l)),o>0?i.dir=e.slice(0,o-1):s&&(i.dir="/"),i;},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r;}},rY={};function r0(e){var t=rY[e];if(void 0!==t)return t.exports;var i=rY[e]={exports:{}};return rZ[e](i,i.exports,r0),i.exports;}r0.d=(e,t)=>{for(var i in t)r0.o(t,i)&&!r0.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]});},r0.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r0.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});};var r1={};(()=>{let e;(r0.r(r1),r0.d(r1,{URI:()=>a,Utils:()=>_}),"object"==typeof rX)?e="win32"===rX.platform:"object"==typeof navigator&&(e=navigator.userAgent.indexOf("Windows")>=0);let t=/^\w[\w\d+.-]*$/,i=/^\//,r=/^\/\//;function n(e,n){if(!e.scheme&&n)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!t.test(e.scheme))throw Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!i.test(e.path))throw Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character');}else if(r.test(e.path))throw Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")');}}let s=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class a{static isUri(e){return e instanceof a||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString;}get fsPath(){return p(this);}with(e){if(!e)return this;let{scheme:t,authority:i,path:r,query:n,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===i?i=this.authority:null===i&&(i=""),void 0===r?r=this.path:null===r&&(r=""),void 0===n?n=this.query:null===n&&(n=""),void 0===s?s=this.fragment:null===s&&(s=""),t===this.scheme&&i===this.authority&&r===this.path&&n===this.query&&s===this.fragment?this:new l(t,i,r,n,s);}static parse(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=s.exec(e);return i?new l(i[2]||"",m(i[4]||""),m(i[5]||""),m(i[7]||""),m(i[9]||""),t):new l("","","","","");}static file(t){let i="";if(e&&(t=t.replace(/\\/g,"/")),"/"===t[0]&&"/"===t[1]){let e=t.indexOf("/",2);-1===e?(i=t.substring(2),t="/"):(i=t.substring(2,e),t=t.substring(e)||"/");}return new l("file",i,t,"","");}static from(e){let t=new l(e.scheme,e.authority,e.path,e.query,e.fragment);return n(t,!0),t;}toString(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return d(this,e);}toJSON(){return this;}static revive(e){if(e){if(e instanceof a)return e;{let t=new l(e);return t._formatted=e.external,t._fsPath=e._sep===o?e.fsPath:null,t;}}return e;}constructor(e,t,i,r,s,a=!1){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=function(e,t){return e||t?e:"file";}(e,a),this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?"/"!==t[0]&&(t="/"+t):t="/";}return t;}(this.scheme,i||""),this.query=r||"",this.fragment=s||"",n(this,a));}}let o=e?1:void 0;class l extends a{get fsPath(){return this._fsPath||(this._fsPath=p(this)),this._fsPath;}toString(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?d(this,!0):(this._formatted||(this._formatted=d(this,!1)),this._formatted);}toJSON(){let e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=o),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e;}constructor(...e){super(...e),this._formatted=null,this._fsPath=null;}}let h={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function c(e,t,i){let r,n=-1;for(let s=0;s<e.length;s++){let a=e.charCodeAt(s);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||45===a||46===a||95===a||126===a||t&&47===a||i&&91===a||i&&93===a||i&&58===a)-1!==n&&(r+=encodeURIComponent(e.substring(n,s)),n=-1),void 0!==r&&(r+=e.charAt(s));else{void 0===r&&(r=e.substr(0,s));let t=h[a];void 0!==t?(-1!==n&&(r+=encodeURIComponent(e.substring(n,s)),n=-1),r+=t):-1===n&&(n=s);}}return-1!==n&&(r+=encodeURIComponent(e.substring(n))),void 0!==r?r:e;}function u(e){let t;for(let i=0;i<e.length;i++){let r=e.charCodeAt(i);35===r||63===r?(void 0===t&&(t=e.substr(0,i)),t+=h[r]):void 0!==t&&(t+=e[i]);}return void 0!==t?t:e;}function p(t,i){let r;return r=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&90>=t.path.charCodeAt(1)||t.path.charCodeAt(1)>=97&&122>=t.path.charCodeAt(1))&&58===t.path.charCodeAt(2)?t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,"\\")),r;}function d(e,t){let i=t?u:c,r="",{scheme:n,authority:s,path:a,query:o,fragment:l}=e;if(n&&(r+=n,r+=":"),(s||"file"===n)&&(r+="/",r+="/"),s){let e=s.indexOf("@");if(-1!==e){let t=s.substr(0,e);s=s.substr(e+1),-1===(e=t.lastIndexOf(":"))?r+=i(t,!1,!1):(r+=i(t.substr(0,e),!1,!1),r+=":",r+=i(t.substr(e+1),!1,!0)),r+="@";}-1===(e=(s=s.toLowerCase()).lastIndexOf(":"))?r+=i(s,!1,!0):(r+=i(s.substr(0,e),!1,!0),r+=s.substr(e));}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){let e=a.charCodeAt(1);e>=65&&e<=90&&(a=`/${String.fromCharCode(e+32)}:${a.substr(3)}`);}else if(a.length>=2&&58===a.charCodeAt(1)){let e=a.charCodeAt(0);e>=65&&e<=90&&(a=`${String.fromCharCode(e+32)}:${a.substr(2)}`);}r+=i(a,!0,!1);}return o&&(r+="?",r+=i(o,!1,!1)),l&&(r+="#",r+=t?l:c(l,!1,!1)),r;}let f=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function m(e){return e.match(f)?e.replace(f,e=>function e(t){try{return decodeURIComponent(t);}catch{return t.length>3?t.substr(0,3)+e(t.substr(3)):t;}}(e)):e;}var g,_,y=r0(470);let b=y.posix||y;(g=_||(_={})).joinPath=function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return e.with({path:b.join(e.path,...i)});},g.resolvePath=function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];let n=e.path,s=!1;"/"!==n[0]&&(n="/"+n,s=!0);let a=b.resolve(n,...i);return s&&"/"===a[0]&&!e.authority&&(a=a.substring(1)),e.with({path:a});},g.dirname=function(e){if(0===e.path.length||"/"===e.path)return e;let t=b.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t});},g.basename=function(e){return b.basename(e.path);},g.extname=function(e){return b.extname(e.path);};})();let{URI:r2,Utils:r5}=r1;function r4(e){return r5.dirname(r2.parse(e)).toString(!0);}function r3(e){for(var t=arguments.length,i=Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return r5.joinPath(r2.parse(e),...i).toString(!0);}class r6{onCssURILiteralValue(e){this.literalCompletions.push(e);}onCssImportPath(e){this.importCompletions.push(e);}async computeCompletions(e,t){let i={items:[],isIncomplete:!1};for(let r of this.literalCompletions){let n=r.uriValue,s=r8(n);if("."===s||".."===s)i.isIncomplete=!0;else for(let s of await this.providePathSuggestions(n,r.position,r.range,e,t))i.items.push(s);}for(let r of this.importCompletions){let n=r.pathValue,s=r8(n);if("."===s||".."===s)i.isIncomplete=!0;else{let s=await this.providePathSuggestions(n,r.position,r.range,e,t);for(let t of("scss"===e.languageId&&s.forEach(e=>{tH(e.label,"_")&&tQ(e.label,".scss")&&(e.textEdit?e.textEdit.newText=e.label.slice(1,-5):e.label=e.label.slice(1,-5));}),s))i.items.push(t);}}return i;}async providePathSuggestions(e,t,i,r,n){var s,a,o,l;let h,c,u=r8(e),p=tH(e,"'")||tH(e,'"'),d=p?u.slice(0,t.character-(i.start.character+1)):u.slice(0,t.character-i.start.character),f=r.uri,m=function(e,t,i){let r,n=e.lastIndexOf("/");if(-1===n)r=i;else{let e,s=t.slice(n+1),a=ne(i.end,-s.length),o=s.indexOf(" ");e=-1!==o?ne(a,o):i.end,r=eS.create(a,e);}return r;}(d,u,p?(h=ne((s=i).start,1),c=ne(s.end,-1),eS.create(h,c)):i),g=d.substring(0,d.lastIndexOf("/")+1),_=n.resolveReference(g||".",f);if(_)try{let e=[];for(let[t,i]of await this.readDirectory(_)){t.charCodeAt(0)!==r7&&(i===tN.Directory||r3(_,t)!==f)&&e.push((a=t,o=i===tN.Directory,l=m,o?{label:r9(a+="/"),kind:eY.Folder,textEdit:eV.replace(l,r9(a)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:r9(a),kind:eY.File,textEdit:eV.replace(l,r9(a))}));}return e;}catch(e){}return[];}constructor(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[];}}let r7=46;function r8(e){return tH(e,"'")||tH(e,'"')?e.slice(1,-1):e;}function r9(e){return e.replace(/(\s|\(|\)|,|"|')/g,"\\$1");}function ne(e,t){return ev.create(e.line,e.character+t);}let nt=e0.Snippet,ni={title:"Suggest",command:"editor.action.triggerSuggest"};(ep=tV||(tV={})).Enums=" ",ep.Normal="d",ep.VendorPrefixed="x",ep.Term="y",ep.Variable="z";class nr{configure(e){this.defaultSettings=e;}getSymbolContext(){return this.symbolContext||(this.symbolContext=new rj(this.styleSheet)),this.symbolContext;}setCompletionParticipants(e){this.completionParticipants=e||[];}async doComplete2(e,t,i,r){let n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.defaultSettings;if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,t,i,n);let s=new r6(this.lsOptions.fileSystemProvider.readDirectory),a=this.completionParticipants;this.completionParticipants=[s].concat(a);let o=this.doComplete(e,t,i,n);try{let t=await s.computeCompletions(e,r);return{isIncomplete:o.isIncomplete||t.isIncomplete,itemDefaults:o.itemDefaults,items:t.items.concat(o.items)};}finally{this.completionParticipants=a;}}doComplete(e,t,i,r){this.offset=e.offsetAt(t),this.position=t,this.currentWord=function(e,t){let i=t-1,r=e.getText();for(;i>=0&&-1===' \n\r":{[()]},*>+'.indexOf(r.charAt(i));)i--;return r.substring(i+1,t);}(e,this.offset),this.defaultReplaceRange=eS.create(ev.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=i,this.documentSettings=r;try{let e={isIncomplete:!1,itemDefaults:{editRange:{start:{line:t.line,character:t.character-this.currentWord.length},end:t}},items:[]};this.nodePath=tZ(this.styleSheet,this.offset);for(let t=this.nodePath.length-1;t>=0;t--){let i=this.nodePath[t];if(i instanceof ir)this.getCompletionsForDeclarationProperty(i.getParent(),e);else if(i instanceof iU)i.parent instanceof iQ?this.getVariableProposals(null,e):this.getCompletionsForExpression(i,e);else if(i instanceof t8){let t=i.findAParent(eg.ExtendsReference,eg.Ruleset);t&&(t.type===eg.ExtendsReference?this.getCompletionsForExtendsReference(t,i,e):this.getCompletionsForSelector(t,t&&t.isNested(),e));}else if(i instanceof il)this.getCompletionsForFunctionArgument(i,i.getParent(),e);else if(i instanceof t4)this.getCompletionsForDeclarations(i,e);else if(i instanceof iH)this.getCompletionsForVariableDeclaration(i,e);else if(i instanceof t6)this.getCompletionsForRuleSet(i,e);else if(i instanceof iQ)this.getCompletionsForInterpolation(i,e);else if(i instanceof im)this.getCompletionsForFunctionDeclaration(i,e);else if(i instanceof iY)this.getCompletionsForMixinReference(i,e);else if(i instanceof ia)this.getCompletionsForFunctionArgument(null,i,e);else if(i instanceof iR)this.getCompletionsForSupports(i,e);else if(i instanceof iN)this.getCompletionsForSupportsCondition(i,e);else if(i instanceof iJ)this.getCompletionsForExtendsReference(i,null,e);else if(i.type===eg.URILiteral)this.getCompletionForUriLiteralValue(i,e);else if(null===i.parent)this.getCompletionForTopLevel(e);else{if(!(i.type===eg.StringLiteral&&this.isImportPathParent(i.parent.type)))continue;this.getCompletionForImportPath(i,e);}if(e.items.length>0||this.offset>i.offset)return this.finalize(e);}return this.getCompletionsForStylesheet(e),0===e.items.length&&this.variablePrefix&&0===this.currentWord.indexOf(this.variablePrefix)&&this.getVariableProposals(null,e),this.finalize(e);}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null;}}isImportPathParent(e){return e===eg.Import;}finalize(e){return e;}findInNodePath(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];for(let e=this.nodePath.length-1;e>=0;e--){let i=this.nodePath[e];if(-1!==t.indexOf(i.type))return i;}return null;}getCompletionsForDeclarationProperty(e,t){return this.getPropertyProposals(e,t);}getPropertyProposals(e,t){let i=this.isTriggerPropertyValueCompletionEnabled,r=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach(n=>{let s,a,o=!1;e?(s=this.getCompletionRange(e.getProperty()),a=n.name,rN(e.colonPosition)||(a+=": ",o=!0)):(s=this.getCompletionRange(null),a=n.name+": ",o=!0),!e&&r&&(a+="$0;"),e&&!e.semicolonPosition&&r&&this.offset>=this.textDocument.offsetAt(s.end)&&(a+="$0;");let l={label:n.name,documentation:rQ(n,this.doesSupportMarkdown()),tags:nn(n)?[e1.Deprecated]:[],textEdit:eV.replace(s,a),insertTextFormat:e0.Snippet,kind:eY.Property};n.restrictions||(o=!1),i&&o&&(l.command=ni);let h=(255-("number"==typeof n.relevance?Math.min(Math.max(n.relevance,0),99):50)).toString(16);l.sortText=(tH(n.name,"-")?tV.VendorPrefixed:tV.Normal)+"_"+h,t.items.push(l);}),this.completionParticipants.forEach(e=>{e.onCssProperty&&e.onCssProperty({propertyName:this.currentWord,range:this.defaultReplaceRange});}),t;}get isTriggerPropertyValueCompletionEnabled(){var e,t;return null==(e=null==(t=this.documentSettings)?void 0:t.triggerPropertyValueCompletion)||e;}get isCompletePropertyWithSemicolonEnabled(){var e,t;return null==(e=null==(t=this.documentSettings)?void 0:t.completePropertyWithSemicolon)||e;}getCompletionsForDeclarationValue(e,t){let i=e.getFullPropertyName(),r=this.cssDataManager.getProperty(i),n=e.getValue()||null;for(;n&&n.hasChildren();)n=n.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach(e=>{e.onCssPropertyValue&&e.onCssPropertyValue({propertyName:i,propertyValue:this.currentWord,range:this.getCompletionRange(n)});}),r){if(r.restrictions)for(let e of r.restrictions)switch(e){case"color":this.getColorProposals(r,n,t);break;case"position":this.getPositionProposals(r,n,t);break;case"repeat":this.getRepeatStyleProposals(r,n,t);break;case"line-style":this.getLineStyleProposals(r,n,t);break;case"line-width":this.getLineWidthProposals(r,n,t);break;case"geometry-box":this.getGeometryBoxProposals(r,n,t);break;case"box":this.getBoxProposals(r,n,t);break;case"image":this.getImageProposals(r,n,t);break;case"timing-function":this.getTimingFunctionProposals(r,n,t);break;case"shape":this.getBasicShapeProposals(r,n,t);}this.getValueEnumProposals(r,n,t),this.getCSSWideKeywordProposals(r,n,t),this.getUnitProposals(r,n,t);}else for(let i of function(e,t){let i=t.getFullPropertyName(),r=new ns();function n(e){return(e instanceof t2||e instanceof iq||e instanceof iz)&&r.add(e.getText()),!0;}return e.accept(function(e){if(e instanceof it&&e!==t&&i===e.getFullPropertyName()){let t=e.getValue();t&&t.accept(n);}return!0;}),r;}(this.styleSheet,e).getEntries())t.items.push({label:i,textEdit:eV.replace(this.getCompletionRange(n),i),kind:eY.Value});return this.getVariableProposals(n,t),this.getTermProposals(r,n,t),t;}getValueEnumProposals(e,t,i){if(e.values)for(let r of e.values){let n,s=r.name;if(tQ(s,")")){let e=s.lastIndexOf("(");-1!==e&&(s=s.substring(0,e+1)+"$1"+s.substring(e+1),n=nt);}let a=tV.Enums;tH(r.name,"-")&&(a+=tV.VendorPrefixed);let o={label:r.name,documentation:rQ(r,this.doesSupportMarkdown()),tags:nn(e)?[e1.Deprecated]:[],textEdit:eV.replace(this.getCompletionRange(t),s),sortText:a,kind:eY.Value,insertTextFormat:n};i.items.push(o);}return i;}getCSSWideKeywordProposals(e,t,i){for(let e in rE)i.items.push({label:e,documentation:rE[e],textEdit:eV.replace(this.getCompletionRange(t),e),kind:eY.Value});for(let e in rR){let r=na(e);i.items.push({label:e,documentation:rR[e],textEdit:eV.replace(this.getCompletionRange(t),r),kind:eY.Function,insertTextFormat:nt,command:tH(e,"var")?ni:void 0});}return i;}getCompletionsForInterpolation(e,t){return this.offset>=e.offset+2&&this.getVariableProposals(null,t),t;}getVariableProposals(e,t){for(let i of this.getSymbolContext().findSymbolsAtOffset(this.offset,e_.Variable)){let r=tH(i.name,"--")?`var(${i.name})`:i.name,n={label:i.name,documentation:i.value?tG(i.value):i.value,textEdit:eV.replace(this.getCompletionRange(e),r),kind:eY.Variable,sortText:tV.Variable};if("string"==typeof n.documentation&&rg(n.documentation)&&(n.kind=eY.Color),i.node.type===eg.FunctionParameter){let e=i.node.getParent();e.type===eg.MixinDeclaration&&(n.detail=i8("argument from '{0}'",e.getName()));}t.items.push(n);}return t;}getVariableProposalsForCSSVarFunction(e){let t=new ns();for(let i of(this.styleSheet.acceptVisitor(new nl(t,this.offset)),this.getSymbolContext().findSymbolsAtOffset(this.offset,e_.Variable))){if(tH(i.name,"--")){let t={label:i.name,documentation:i.value?tG(i.value):i.value,textEdit:eV.replace(this.getCompletionRange(null),i.name),kind:eY.Variable};"string"==typeof t.documentation&&rg(t.documentation)&&(t.kind=eY.Color),e.items.push(t);}t.remove(i.name);}for(let i of t.getEntries())if(tH(i,"--")){let t={label:i,textEdit:eV.replace(this.getCompletionRange(null),i),kind:eY.Variable};e.items.push(t);}return e;}getUnitProposals(e,t,i){let r="0";if(this.currentWord.length>0){let e=this.currentWord.match(/^-?\d[\.\d+]*/);e&&(i.isIncomplete=(r=e[0]).length===this.currentWord.length);}else 0===this.currentWord.length&&(i.isIncomplete=!0);if(t&&t.parent&&t.parent.type===eg.Term&&(t=t.getParent()),e.restrictions)for(let n of e.restrictions){let e=rT[n];if(e)for(let n of e){let e=r+n;i.items.push({label:e,textEdit:eV.replace(this.getCompletionRange(t),e),kind:eY.Unit});}}return i;}getCompletionRange(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){let t=-1!==e.end?this.textDocument.positionAt(e.end):this.position,i=this.textDocument.positionAt(e.offset);if(i.line===t.line)return eS.create(i,t);}return this.defaultReplaceRange;}getColorProposals(e,t,i){for(let e in rc)i.items.push({label:e,documentation:rc[e],textEdit:eV.replace(this.getCompletionRange(t),e),kind:eY.Color});for(let e in rp)i.items.push({label:e,documentation:rp[e],textEdit:eV.replace(this.getCompletionRange(t),e),kind:eY.Value});let r=new ns();for(let e of(this.styleSheet.acceptVisitor(new no(r,this.offset)),r.getEntries()))i.items.push({label:e,textEdit:eV.replace(this.getCompletionRange(t),e),kind:eY.Color});for(let e of rl)i.items.push({label:e.label,detail:e.func,documentation:e.desc,textEdit:eV.replace(this.getCompletionRange(t),e.insertText),insertTextFormat:nt,kind:eY.Function});return i;}getPositionProposals(e,t,i){for(let e in rC)i.items.push({label:e,documentation:rC[e],textEdit:eV.replace(this.getCompletionRange(t),e),kind:eY.Value});return i;}getRepeatStyleProposals(e,t,i){for(let e in rk)i.items.push({label:e,documentation:rk[e],textEdit:eV.replace(this.getCompletionRange(t),e),kind:eY.Value});return i;}getLineStyleProposals(e,t,i){for(let e in rv)i.items.push({label:e,documentation:rv[e],textEdit:eV.replace(this.getCompletionRange(t),e),kind:eY.Value});return i;}getLineWidthProposals(e,t,i){for(let e of rS)i.items.push({label:e,textEdit:eV.replace(this.getCompletionRange(t),e),kind:eY.Value});return i;}getGeometryBoxProposals(e,t,i){for(let e in rP)i.items.push({label:e,documentation:rP[e],textEdit:eV.replace(this.getCompletionRange(t),e),kind:eY.Value});return i;}getBoxProposals(e,t,i){for(let e in rw)i.items.push({label:e,documentation:rw[e],textEdit:eV.replace(this.getCompletionRange(t),e),kind:eY.Value});return i;}getImageProposals(e,t,i){for(let e in rI){let r=na(e);i.items.push({label:e,documentation:rI[e],textEdit:eV.replace(this.getCompletionRange(t),r),kind:eY.Function,insertTextFormat:e!==r?nt:void 0});}return i;}getTimingFunctionProposals(e,t,i){for(let e in rD){let r=na(e);i.items.push({label:e,documentation:rD[e],textEdit:eV.replace(this.getCompletionRange(t),r),kind:eY.Function,insertTextFormat:e!==r?nt:void 0});}return i;}getBasicShapeProposals(e,t,i){for(let e in rA){let r=na(e);i.items.push({label:e,documentation:rA[e],textEdit:eV.replace(this.getCompletionRange(t),r),kind:eY.Function,insertTextFormat:e!==r?nt:void 0});}return i;}getCompletionsForStylesheet(e){let t=this.styleSheet.findFirstChildBeforeOffset(this.offset);return t?t instanceof t6?this.getCompletionsForRuleSet(t,e):t instanceof iR?this.getCompletionsForSupports(t,e):e:this.getCompletionForTopLevel(e);}getCompletionForTopLevel(e){return this.cssDataManager.getAtDirectives().forEach(t=>{e.items.push({label:t.name,textEdit:eV.replace(this.getCompletionRange(null),t.name),documentation:rQ(t,this.doesSupportMarkdown()),tags:nn(t)?[e1.Deprecated]:[],kind:eY.Keyword});}),this.getCompletionsForSelector(null,!1,e),e;}getCompletionsForRuleSet(e,t){let i=e.getDeclarations();return i&&i.endsWith("}")&&this.offset>=i.end?this.getCompletionForTopLevel(t):!i||this.offset<=i.offset?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t);}getCompletionsForSelector(e,t,i){let r=this.findInNodePath(eg.PseudoSelector,eg.IdentifierSelector,eg.ClassSelector,eg.ElementNameSelector);if(!r&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=eS.create(ev.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach(e=>{let t=na(e.name),n={label:e.name,textEdit:eV.replace(this.getCompletionRange(r),t),documentation:rQ(e,this.doesSupportMarkdown()),tags:nn(e)?[e1.Deprecated]:[],kind:eY.Function,insertTextFormat:e.name!==t?nt:void 0};tH(e.name,":-")&&(n.sortText=tV.VendorPrefixed),i.items.push(n);}),this.cssDataManager.getPseudoElements().forEach(e=>{let t=na(e.name),n={label:e.name,textEdit:eV.replace(this.getCompletionRange(r),t),documentation:rQ(e,this.doesSupportMarkdown()),tags:nn(e)?[e1.Deprecated]:[],kind:eY.Function,insertTextFormat:e.name!==t?nt:void 0};tH(e.name,"::-")&&(n.sortText=tV.VendorPrefixed),i.items.push(n);}),!t){for(let e of r$)i.items.push({label:e,textEdit:eV.replace(this.getCompletionRange(r),e),kind:eY.Keyword});for(let e of rM)i.items.push({label:e,textEdit:eV.replace(this.getCompletionRange(r),e),kind:eY.Keyword});}let n={};n[this.currentWord]=!0;let s=this.textDocument.getText();if(this.styleSheet.accept(e=>{if(e.type===eg.SimpleSelector&&e.length>0){let t=s.substr(e.offset,e.length);return"."!==t.charAt(0)||n[t]||(n[t]=!0,i.items.push({label:t,textEdit:eV.replace(this.getCompletionRange(r),t),kind:eY.Keyword})),!1;}return!0;}),e&&e.isNested()){let t=e.getSelectors().findFirstChildBeforeOffset(this.offset);t&&0===e.getSelectors().getChildren().indexOf(t)&&this.getPropertyProposals(null,i);}return i;}getCompletionsForDeclarations(e,t){if(!e||this.offset===e.offset)return t;let i=e.findFirstChildBeforeOffset(this.offset);if(!i)return this.getCompletionsForDeclarationProperty(null,t);if(i instanceof t9){if(!rN(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,t);if(rN(i.semicolonPosition)&&i.semicolonPosition<this.offset)return this.offset===i.semicolonPosition+1?t:this.getCompletionsForDeclarationProperty(null,t);if(i instanceof it)return this.getCompletionsForDeclarationValue(i,t);}else i instanceof iJ?this.getCompletionsForExtendsReference(i,null,t):this.currentWord&&"@"===this.currentWord[0]?this.getCompletionsForDeclarationProperty(null,t):i instanceof t6&&this.getCompletionsForDeclarationProperty(null,t);return t;}getCompletionsForVariableDeclaration(e,t){return this.offset&&rN(e.colonPosition)&&this.offset>e.colonPosition&&this.getVariableProposals(e.getValue()||null,t),t;}getCompletionsForExpression(e,t){let i=e.getParent();if(i instanceof il)return this.getCompletionsForFunctionArgument(i,i.getParent(),t),t;let r=e.findParent(eg.Declaration);if(!r)return this.getTermProposals(void 0,null,t),t;let n=e.findChildAtOffset(this.offset,!0);return!n||n instanceof iq||n instanceof t2?this.getCompletionsForDeclarationValue(r,t):t;}getCompletionsForFunctionArgument(e,t,i){let r=t.getIdentifier();return r&&r.matches("var")&&(!t.getArguments().hasChildren()||t.getArguments().getChild(0)===e)&&this.getVariableProposalsForCSSVarFunction(i),i;}getCompletionsForFunctionDeclaration(e,t){let i=e.getDeclarations();return i&&this.offset>i.offset&&this.offset<i.end&&this.getTermProposals(void 0,null,t),t;}getCompletionsForMixinReference(e,t){for(let e of this.getSymbolContext().findSymbolsAtOffset(this.offset,e_.Mixin))e.node instanceof i0&&t.items.push(this.makeTermProposal(e,e.node.getParameters(),null));let i=e.getIdentifier()||null;return this.completionParticipants.forEach(e=>{e.onCssMixinReference&&e.onCssMixinReference({mixinName:this.currentWord,range:this.getCompletionRange(i)});}),t;}getTermProposals(e,t,i){for(let e of this.getSymbolContext().findSymbolsAtOffset(this.offset,e_.Function))e.node instanceof im&&i.items.push(this.makeTermProposal(e,e.node.getParameters(),t));return i;}makeTermProposal(e,t,i){e.node;let r=t.getChildren().map(e=>e instanceof io?e.getName():e.getText()),n=e.name+"("+r.map((e,t)=>"${"+(t+1)+":"+e+"}").join(", ")+")";return{label:e.name,detail:e.name+"("+r.join(", ")+")",textEdit:eV.replace(this.getCompletionRange(i),n),insertTextFormat:nt,kind:eY.Function,sortText:tV.Term};}getCompletionsForSupportsCondition(e,t){let i=e.findFirstChildBeforeOffset(this.offset);if(i){if(i instanceof it){if(!rN(i.colonPosition)||this.offset<=i.colonPosition)return this.getCompletionsForDeclarationProperty(i,t);else return this.getCompletionsForDeclarationValue(i,t);}else if(i instanceof iN)return this.getCompletionsForSupportsCondition(i,t);}return rN(e.lParent)&&this.offset>e.lParent&&(!rN(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t;}getCompletionsForSupports(e,t){let i=e.getDeclarations();if(!i||this.offset<=i.offset){let i=e.findFirstChildBeforeOffset(this.offset);return i instanceof iN?this.getCompletionsForSupportsCondition(i,t):t;}return this.getCompletionForTopLevel(t);}getCompletionsForExtendsReference(e,t,i){return i;}getCompletionForUriLiteralValue(e,t){let i,r,n;if(e.hasChildren()){let t=e.getChild(0);i=t.getText(),r=this.position,n=this.getCompletionRange(t);}else{i="",r=this.position;let t=this.textDocument.positionAt(e.offset+4);n=eS.create(t,t);}return this.completionParticipants.forEach(e=>{e.onCssURILiteralValue&&e.onCssURILiteralValue({uriValue:i,position:r,range:n});}),t;}getCompletionForImportPath(e,t){return this.completionParticipants.forEach(t=>{t.onCssImportPath&&t.onCssImportPath({pathValue:e.getText(),position:this.position,range:this.getCompletionRange(e)});}),t;}hasCharacterAtPosition(e,t){let i=this.textDocument.getText();return e>=0&&e<i.length&&i.charAt(e)===t;}doesSupportMarkdown(){if(!rN(this.supportsMarkdown)){var e,t,i;if(!rN(this.lsOptions.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let r=null==(i=this.lsOptions.clientCapabilities.textDocument)||null==(t=i.completion)||null==(e=t.completionItem)?void 0:e.documentationFormat;this.supportsMarkdown=Array.isArray(r)&&-1!==r.indexOf(eX.Markdown);}return this.supportsMarkdown;}constructor(e=null,t,i){this.variablePrefix=e,this.lsOptions=t,this.cssDataManager=i,this.completionParticipants=[];}}function nn(e){return!!e.status&&("nonstandard"===e.status||"obsolete"===e.status);}class ns{add(e){this.entries[e]=!0;}remove(e){delete this.entries[e];}getEntries(){return Object.keys(this.entries);}constructor(){this.entries={};}}function na(e){return e.replace(/\(\)$/,"($1)");}class no{visitNode(e){let t;return(e instanceof iz||e instanceof ia&&(t=e.getName())&&rh.test(t))&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0;}constructor(e,t){this.entries=e,this.currentOffset=t;}}class nl{visitNode(e){return e instanceof t2&&e.isCustomProperty&&(this.currentOffset<e.offset||e.end<this.currentOffset)&&this.entries.add(e.getText()),!0;}constructor(e,t){this.entries=e,this.currentOffset=t;}}class nh{findAttribute(e){if(this.attributes){for(let t of this.attributes)if(t.name===e)return t.value;}return null;}addChild(e){e instanceof nh&&(e.parent=this),this.children||(this.children=[]),this.children.push(e);}append(e){if(this.attributes){let t=this.attributes[this.attributes.length-1];t.value=t.value+e;}}prepend(e){if(this.attributes){let t=this.attributes[0];t.value=e+t.value;}}findRoot(){let e=this;for(;e.parent&&!(e.parent instanceof nc);)e=e.parent;return e;}removeChild(e){if(this.children){let t=this.children.indexOf(e);if(-1!==t)return this.children.splice(t,1),!0;}return!1;}addAttr(e,t){for(let i of(this.attributes||(this.attributes=[]),this.attributes))if(i.name===e){i.value+=" "+t;return;}this.attributes.push({name:e,value:t});}clone(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=new nh();if(this.attributes)for(let e of(t.attributes=[],this.attributes))t.addAttr(e.name,e.value);if(e&&this.children){t.children=[];for(let e=0;e<this.children.length;e++)t.addChild(this.children[e].clone());}return t;}cloneWithParent(){let e=this.clone(!1);return!this.parent||this.parent instanceof nc||this.parent.cloneWithParent().addChild(e),e;}constructor(){this.parent=null,this.children=null,this.attributes=null;}}class nc extends nh{}class nu extends nh{constructor(e){super(),this.addAttr("name",e);}}class np{print(e,t){return this.result=[],e instanceof nc?e.children&&this.doPrint(e.children,0):this.doPrint([e],0),[{language:"html",value:t?`${t.text}
6
+ … `+this.result.join("\n"):this.result.join("\n")}];}doPrint(e,t){for(let i of e)this.doPrintElement(i,t),i.children&&this.doPrint(i.children,t+1);}writeLine(e,t){let i=Array(e+1).join(" ");this.result.push(i+t);}doPrintElement(e,t){let i=e.findAttribute("name");if(e instanceof nu||"…"===i)return void this.writeLine(t,i);let r=["<"];if(i?r.push(i):r.push("element"),e.attributes){for(let t of e.attributes)if("name"!==t.name){r.push(" "),r.push(t.name);let e=t.value;e&&(r.push("="),r.push(tO.ensure(e,this.quote)));}}r.push(">"),this.writeLine(t,r.join(""));}constructor(e){this.quote=e,this.result=[];}}var nd=tO||(tO={});function nf(e){let t=e.match(/^['"](.*)["']$/);return t?t[1]:e;}nd.ensure=function(e,t){return t+nf(e)+t;},nd.remove=nf;class nm{constructor(){this.id=0,this.attr=0,this.tag=0;}}function ng(e,t){let i=new nh();for(let r of e.getChildren())switch(r.type){case eg.SelectorCombinator:if(t){let e=r.getText().split("&");if(1===e.length){i.addAttr("name",e[0]);break;}i=t.cloneWithParent(),e[0]&&i.findRoot().prepend(e[0]);for(let r=1;r<e.length;r++){if(r>1){let e=t.cloneWithParent();i.addChild(e.findRoot()),i=e;}i.append(e[r]);}}break;case eg.SelectorPlaceholder:if(r.matches("@at-root"))return i;case eg.ElementNameSelector:let e=r.getText();i.addAttr("name","*"===e?"element":n_(e));break;case eg.ClassSelector:i.addAttr("class",n_(r.getText().substring(1)));break;case eg.IdentifierSelector:i.addAttr("id",n_(r.getText().substring(1)));break;case eg.MixinDeclaration:i.addAttr("class",r.getName());break;case eg.PseudoSelector:i.addAttr(n_(r.getText()),"");break;case eg.AttributeSelector:let n=r.getIdentifier();if(n){let e,t=r.getValue(),s=r.getOperator();if(t&&s)switch(n_(s.getText())){case"|=":e=`${tO.remove(n_(t.getText()))}-\u2026`;break;case"^=":e=`${tO.remove(n_(t.getText()))}\u2026`;break;case"$=":e=`\u2026${tO.remove(n_(t.getText()))}`;break;case"~=":e=` \u2026 ${tO.remove(n_(t.getText()))} \u2026 `;break;case"*=":e=`\u2026${tO.remove(n_(t.getText()))}\u2026`;break;default:e=tO.remove(n_(t.getText()));}i.addAttr(n_(n.getText()),e);}}return i;}function n_(e){let t=new tq();t.setSource(e);let i=t.scanUnquotedString();return i?i.text:e;}class ny{selectorToMarkedString(e,t){let i=function(e){if(e.matches("@at-root"))return null;let t=new nc(),i=[],r=e.getParent();if(r instanceof t6){let e=r.getParent();for(;e&&!function(e){switch(e.type){case eg.MixinDeclaration:case eg.Stylesheet:return!0;}return!1;}(e);){if(e instanceof t6){if(e.getSelectors().matches("@at-root"))break;i.push(e);}e=e.getParent();}}let n=new nb(t);for(let e=i.length-1;e>=0;e--){let t=i[e].getSelectors().getChild(0);t&&n.processSelector(t);}return n.processSelector(e),t;}(e);if(!i)return[];{let r=new np('"').print(i,t);return r.push(this.selectorToSpecificityMarkedString(e)),r;}}simpleSelectorToMarkedString(e){let t=ng(e),i=new np('"').print(t);return i.push(this.selectorToSpecificityMarkedString(e)),i;}isPseudoElementIdentifier(e){let t=e.match(/^::?([\w-]+)/);return!!t&&!!this.cssDataManager.getPseudoElement("::"+t[1]);}selectorToSpecificityMarkedString(e){let t=e=>{let t=new nm(),r=new nm();for(let t of e)for(let e of t.getChildren()){let t=i(e);if(t.id>r.id){r=t;continue;}if(!(t.id<r.id)){if(t.attr>r.attr){r=t;continue;}if(!(t.attr<r.attr)&&t.tag>r.tag){r=t;continue;}}}return t.id+=r.id,t.attr+=r.attr,t.tag+=r.tag,t;},i=e=>{let r=new nm();for(let n of e.getChildren()){switch(n.type){case eg.IdentifierSelector:r.id++;break;case eg.ClassSelector:case eg.AttributeSelector:r.attr++;break;case eg.ElementNameSelector:if(n.matches("*"))break;r.tag++;break;case eg.PseudoSelector:let e=n.getText(),s=n.getChildren();if(this.isPseudoElementIdentifier(e)){if(e.match(/^::slotted/i)&&s.length>0){r.tag++;let e=t(s);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue;}r.tag++;continue;}if(e.match(/^:where/i))continue;if(e.match(/^:(?:not|has|is)/i)&&s.length>0){let e=t(s);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue;}if(e.match(/^:(?:host|host-context)/i)&&s.length>0){r.attr++;let e=t(s);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue;}if(e.match(/^:(?:nth-child|nth-last-child)/i)&&s.length>0){if(r.attr++,3===s.length&&23===s[1].type){let e=t(s[2].getChildren());r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;continue;}let e=new rV(),i=s[1].getText();e.scanner.setSource(i);let n=e.scanner.scan(),a=e.scanner.scan();if("n"===n.text||"-n"===n.text&&"of"===a.text){let n=[];for(let t of i.slice(a.offset+2).split(",")){let i=e.internalParse(t,e._parseSelector);i&&n.push(i);}let s=t(n);r.id+=s.id,r.attr+=s.attr,r.tag+=s.tag;}continue;}r.attr++;continue;}if(n.getChildren().length>0){let e=i(n);r.id+=e.id,r.attr+=e.attr,r.tag+=e.tag;}}return r;},r=i(e);return`[${i8("Selector Specificity")}](https://developer.mozilla.org/docs/Web/CSS/Specificity): (${r.id}, ${r.attr}, ${r.tag})`;}constructor(e){this.cssDataManager=e;}}class nb{processSelector(e){let t=null;if(!(this.element instanceof nc)&&e.getChildren().some(e=>e.hasChildren()&&e.getChild(0).type===eg.SelectorCombinator)){let e=this.element.findRoot();e.parent instanceof nc&&(t=this.element,this.element=e.parent,this.element.removeChild(e),this.prev=null);}for(let i of e.getChildren()){if(i instanceof t8){if(this.prev instanceof t8){let e=new nu("…");this.element.addChild(e),this.element=e;}else this.prev&&(this.prev.matches("+")||this.prev.matches("~"))&&this.element.parent&&(this.element=this.element.parent);this.prev&&this.prev.matches("~")&&this.element.addChild(new nu("⋮"));let e=ng(i,t),r=e.findRoot();this.element.addChild(r),this.element=e;}(i instanceof t8||i.type===eg.SelectorCombinatorParent||i.type===eg.SelectorCombinatorShadowPiercingDescendant||i.type===eg.SelectorCombinatorSibling||i.type===eg.SelectorCombinatorAllSiblings)&&(this.prev=i);}}constructor(e){this.prev=null,this.element=e;}}class nx{configure(e){this.defaultSettings=e;}doHover(e,t,i){let r,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.defaultSettings;function s(t){return eS.create(e.positionAt(t.offset),e.positionAt(t.end));}let a=tZ(i,e.offsetAt(t)),o=null;for(let e=0;e<a.length;e++){let t=a[e];if(t instanceof iE){let e=/@media[^\{]+/g,i=t.getText().match(e);r={isMedia:!0,text:null==i?void 0:i[0]};}if(t instanceof t7){o={contents:this.selectorPrinting.selectorToMarkedString(t,r),range:s(t)};break;}if(t instanceof t8){tH(t.getText(),"@")||(o={contents:this.selectorPrinting.simpleSelectorToMarkedString(t),range:s(t)});break;}if(t instanceof it){let e=t.getFullPropertyName(),i=this.cssDataManager.getProperty(e);if(i){let e=rQ(i,this.doesSupportMarkdown(),n);o=e?{contents:e,range:s(t)}:null;}continue;}if(t instanceof i1){let e=t.getText(),i=this.cssDataManager.getAtDirective(e);if(i){let e=rQ(i,this.doesSupportMarkdown(),n);o=e?{contents:e,range:s(t)}:null;}continue;}if(t instanceof tY&&t.type===eg.PseudoSelector){let e=t.getText(),i="::"===e.slice(0,2)?this.cssDataManager.getPseudoElement(e):this.cssDataManager.getPseudoClass(e);if(i){let e=rQ(i,this.doesSupportMarkdown(),n);o=e?{contents:e,range:s(t)}:null;}continue;}}return o&&(o.contents=this.convertContents(o.contents)),o;}convertContents(e){if(!this.doesSupportMarkdown())if("string"==typeof e);else if("kind"in e)return{kind:"plaintext",value:e.value};else if(Array.isArray(e))return e.map(e=>"string"==typeof e?e:e.value);else return e.value;return e;}doesSupportMarkdown(){if(!rN(this.supportsMarkdown)){if(!rN(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;let e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&-1!==e.contentFormat.indexOf(eX.Markdown);}return this.supportsMarkdown;}constructor(e,t){this.clientCapabilities=e,this.cssDataManager=t,this.selectorPrinting=new ny(t);}}let nC=/^\w+:\/\//,nk=/^data:/;class nv{configure(e){this.defaultSettings=e;}findDefinition(e,t,i){let r=new rj(i),n=tX(i,e.offsetAt(t));if(!n)return null;let s=r.findSymbolFromNode(n);return s?{uri:e.uri,range:nS(s.node,e)}:null;}findReferences(e,t,i){return this.findDocumentHighlights(e,t,i).map(t=>({uri:e.uri,range:t.range}));}getHighlightNode(e,t,i){let r=tX(i,e.offsetAt(t));if(r&&r.type!==eg.Stylesheet&&r.type!==eg.Declarations)return r.type===eg.Identifier&&r.parent&&r.parent.type===eg.ClassSelector&&(r=r.parent),r;}findDocumentHighlights(e,t,i){let r=[],n=this.getHighlightNode(e,t,i);if(!n)return r;let s=new rj(i),a=s.findSymbolFromNode(n),o=n.getText();return i.accept(t=>{if(a){if(s.matchesSymbol(t,a))return r.push({kind:nP(t),range:nS(t,e)}),!1;}else n&&n.type===t.type&&t.matches(o)&&r.push({kind:nP(t),range:nS(t,e)});return!0;}),r;}isRawStringDocumentLinkNode(e){return e.type===eg.Import;}findDocumentLinks(e,t,i){let r=this.findUnresolvedLinks(e,t),n=[];for(let t of r){let r=t.link,s=r.target;if(!s||nk.test(s));else if(nC.test(s))n.push(r);else{let t=i.resolveReference(s,e.uri);t&&(r.target=t),n.push(r);}}return n;}async findDocumentLinks2(e,t,i){let r=this.findUnresolvedLinks(e,t),n=[];for(let t of r){let r=t.link,s=r.target;if(!s||nk.test(s));else if(nC.test(s))n.push(r);else{let a=await this.resolveReference(s,e.uri,i,t.isRawLink);void 0!==a&&(r.target=a,n.push(r));}}return n;}findUnresolvedLinks(e,t){let i=[],r=t=>{let r=t.getText(),n=nS(t,e);if(n.start.line===n.end.line&&n.start.character===n.end.character)return;(tH(r,"'")||tH(r,'"'))&&(r=r.slice(1,-1));let s=!!t.parent&&this.isRawStringDocumentLinkNode(t.parent);i.push({link:{target:r,range:n},isRawLink:s});};return t.accept(e=>{if(e.type===eg.URILiteral){let t=e.getChild(0);return t&&r(t),!1;}if(e.parent&&this.isRawStringDocumentLinkNode(e.parent)){let t=e.getText();return(tH(t,"'")||tH(t,'"'))&&r(e),!1;}return!0;}),i;}findSymbolInformations(e,t){let i=[];return this.collectDocumentSymbols(e,t,(t,r,n)=>{let s=n instanceof tY?nS(n,e):n,a={name:t||i8("<undefined>"),kind:r,location:ew.create(e.uri,s)};i.push(a);}),i;}findDocumentSymbols(e,t){let i=[],r=[];return this.collectDocumentSymbols(e,t,(t,n,s,a,o)=>{let l=s instanceof tY?nS(s,e):s,h=a instanceof tY?nS(a,e):a;h&&nw(l,h)||(h=eS.create(l.start,l.start));let c={name:t||i8("<undefined>"),kind:n,range:l,selectionRange:h},u=r.pop();for(;u&&!nw(u[1],l);)u=r.pop();if(u){let e=u[0];e.children||(e.children=[]),e.children.push(c),r.push(u);}else i.push(c);o&&r.push([c,nS(o,e)]);}),i;}collectDocumentSymbols(e,t,i){t.accept(t=>{if(t instanceof t6){for(let r of t.getSelectors().getChildren())if(r instanceof t7){let n=eS.create(e.positionAt(r.offset),e.positionAt(t.end));i(r.getText(),tr.Class,n,r,t.getDeclarations());}}else if(t instanceof iH)i(t.getName(),tr.Variable,t,t.getVariable(),void 0);else if(t instanceof i0)i(t.getName(),tr.Method,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof im)i(t.getName(),tr.Function,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof ib)i(i8("@keyframes {0}",t.getName()),tr.Class,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof i_)i(i8("@font-face"),tr.Class,t,void 0,t.getDeclarations());else if(t instanceof iE){let e=t.getChild(0);e instanceof i$&&i("@media "+e.getText(),tr.Module,t,e,t.getDeclarations());}return!0;});}findDocumentColors(e,t){let i=[];return t.accept(t=>{var r,n;let s,a=(r=t,n=e,(s=function(e){if(e.type===eg.HexColorValue)return ry(e.getText());if(e.type===eg.Function){let t=e.getName(),i=e.getArguments().getChildren();if(1===i.length){let e=i[0].getChildren();if(1===e.length&&e[0].type===eg.Expression&&3===(i=e[0].getChildren()).length){let e=i[2];if(e instanceof iB){let t=e.getLeft(),r=e.getRight(),n=e.getOperator();t&&r&&n&&n.matches("/")&&(i=[i[0],i[1],t,r]);}}}if(!t||i.length<3||i.length>4)return null;try{let e=4===i.length?rf(i[3],1):1;if("rgb"===t||"rgba"===t)return{red:rf(i[0],255),green:rf(i[1],255),blue:rf(i[2],255),alpha:e};if("hsl"===t||"hsla"===t){let t=rm(i[0]),r=rf(i[1],100),n=rf(i[2],100);return rb(t,r,n,e);}if("hwb"===t){let t=rm(i[0]),r=rf(i[1],100),n=rf(i[2],100);return function(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(t+i>=1){let e=t/(t+i);return{red:e,green:e,blue:e,alpha:r};}let n=rb(e,1,.5,r),s=n.red;s*=1-t-i,s+=t;let a=n.green;a*=1-t-i,a+=t;let o=n.blue;return o*=1-t-i,{red:s,green:a,blue:o+=t,alpha:r};}(t,r,n,e);}}catch(e){}}else if(e.type===eg.Identifier){if(e.parent&&e.parent.type!==eg.Term)return null;let t=e.parent;if(t&&t.parent&&t.parent.type===eg.BinaryExpression){let e=t.parent;if(e.parent&&e.parent.type===eg.ListEntry&&e.parent.key===e)return null;}let i=e.getText().toLowerCase();if("none"===i)return null;let r=rc[i];if(r)return ry(r);}return null;}(r))?{color:s,range:nS(r,n)}:null);return a&&i.push(a),!0;}),i;}getColorPresentations(e,t,i,r){let n,s,a,o,l=[],h=Math.round(255*i.red),c=Math.round(255*i.green),u=Math.round(255*i.blue);l.push({label:n=1===i.alpha?`rgb(${h}, ${c}, ${u})`:`rgba(${h}, ${c}, ${u}, ${i.alpha})`,textEdit:eV.replace(r,n)}),l.push({label:n=1===i.alpha?`#${nE(h)}${nE(c)}${nE(u)}`:`#${nE(h)}${nE(c)}${nE(u)}${nE(Math.round(255*i.alpha))}`,textEdit:eV.replace(r,n)});let p=rx(i);l.push({label:n=1===p.a?`hsl(${p.h}, ${Math.round(100*p.s)}%, ${Math.round(100*p.l)}%)`:`hsla(${p.h}, ${Math.round(100*p.s)}%, ${Math.round(100*p.l)}%, ${p.a})`,textEdit:eV.replace(r,n)});let d=(s=rx(i),a=Math.min(i.red,i.green,i.blue),o=1-Math.max(i.red,i.green,i.blue),{h:s.h,w:a,b:o,a:s.a});return l.push({label:n=1===d.a?`hwb(${d.h} ${Math.round(100*d.w)}% ${Math.round(100*d.b)}%)`:`hwb(${d.h} ${Math.round(100*d.w)}% ${Math.round(100*d.b)}% / ${d.a})`,textEdit:eV.replace(r,n)}),l;}prepareRename(e,t,i){let r=this.getHighlightNode(e,t,i);if(r)return eS.create(e.positionAt(r.offset),e.positionAt(r.end));}doRename(e,t,i,r){let n=this.findDocumentHighlights(e,t,r).map(e=>eV.replace(e.range,i));return{changes:{[e.uri]:n}};}async resolveModuleReference(e,t,i){if(tH(t,"file://")){let r=function(e){let t=e.indexOf("/");if(-1===t)return"";if("@"===e[0]){let i=e.indexOf("/",t+1);return-1===i?e:e.substring(0,i);}return e.substring(0,t);}(e);if(r&&"."!==r&&".."!==r){let n=i.resolveReference("/",t),s=r4(t),a=await this.resolvePathToModule(r,s,n);if(a)return r3(a,e.substring(r.length+1));}}}async mapReference(e,t){return e;}async resolveReference(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.defaultSettings;if("~"===e[0]&&"/"!==e[1]&&this.fileSystemProvider)return e=e.substring(1),this.mapReference(await this.resolveModuleReference(e,t,i),r);let s=await this.mapReference(i.resolveReference(e,t),r);if(this.resolveModuleReferences){if(s&&(await this.fileExists(s)))return s;let n=await this.mapReference(await this.resolveModuleReference(e,t,i),r);if(n)return n;}if(s&&!(await this.fileExists(s))){let s=i.resolveReference("/",t);if(n&&s){if(e in n)return this.mapReference(r3(s,n[e]),r);let t=e.indexOf("/"),i=`${e.substring(0,t)}/`;if(i in n){let t=r3(s,n[i].slice(0,-1));return this.mapReference(t=r3(t,e.substring(i.length-1)),r);}}}return s;}async resolvePathToModule(e,t,i){let r=r3(t,"node_modules",e,"package.json");return(await this.fileExists(r))?r4(r):i&&t.startsWith(i)&&t.length!==i.length?this.resolvePathToModule(e,r4(t),i):void 0;}async fileExists(e){if(!this.fileSystemProvider)return!1;try{let t=await this.fileSystemProvider.stat(e);if(t.type===tN.Unknown&&-1===t.size)return!1;return!0;}catch(e){return!1;}}constructor(e,t){this.fileSystemProvider=e,this.resolveModuleReferences=t;}}function nS(e,t){return eS.create(t.positionAt(e.offset),t.positionAt(e.end));}function nw(e,t){let i=t.start.line,r=t.end.line,n=e.start.line,s=e.end.line;return!(i<n)&&!(r<n)&&!(i>s)&&!(r>s)&&(i!==n||!(t.start.character<e.start.character))&&(r!==s||!(t.end.character>e.end.character));}function nP(e){if(e.type===eg.Selector||e instanceof t2&&e.parent&&e.parent instanceof ir&&e.isCustomProperty)return tt.Write;if(e.parent)switch(e.parent.type){case eg.FunctionDeclaration:case eg.MixinDeclaration:case eg.Keyframe:case eg.VariableDeclaration:case eg.FunctionParameter:return tt.Write;}return tt.Read;}function nE(e){let t=e.toString(16);return 2!==t.length?"0"+t:t;}let nR=ey.Warning,nI=ey.Error,nD=ey.Ignore;class nA{constructor(e,t,i){this.id=e,this.message=t,this.defaultValue=i;}}class nT{constructor(e,t,i){this.id=e,this.message=t,this.defaultValue=i;}}let n$={AllVendorPrefixes:new nA("compatibleVendorPrefixes",i8("When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),nD),IncludeStandardPropertyWhenUsingVendorPrefix:new nA("vendorPrefix",i8("When using a vendor-specific prefix also include the standard property"),nR),DuplicateDeclarations:new nA("duplicateProperties",i8("Do not use duplicate style definitions"),nD),EmptyRuleSet:new nA("emptyRules",i8("Do not use empty rulesets"),nR),ImportStatemement:new nA("importStatement",i8("Import statements do not load in parallel"),nD),BewareOfBoxModelSize:new nA("boxModel",i8("Do not use width or height when using padding or border"),nD),UniversalSelector:new nA("universalSelector",i8("The universal selector (*) is known to be slow"),nD),ZeroWithUnit:new nA("zeroUnits",i8("No unit for zero needed"),nD),RequiredPropertiesForFontFace:new nA("fontFaceProperties",i8("@font-face rule must define 'src' and 'font-family' properties"),nR),HexColorLength:new nA("hexColorLength",i8("Hex colors must consist of three, four, six or eight hex numbers"),nI),ArgsInColorFunction:new nA("argumentsInColorFunction",i8("Invalid number of parameters"),nI),UnknownProperty:new nA("unknownProperties",i8("Unknown property."),nR),UnknownAtRules:new nA("unknownAtRules",i8("Unknown at-rule."),nR),IEStarHack:new nA("ieHack",i8("IE hacks are only necessary when supporting IE7 and older"),nD),UnknownVendorSpecificProperty:new nA("unknownVendorSpecificProperties",i8("Unknown vendor specific property."),nD),PropertyIgnoredDueToDisplay:new nA("propertyIgnoredDueToDisplay",i8("Property is ignored due to the display."),nR),AvoidImportant:new nA("important",i8("Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),nD),AvoidFloat:new nA("float",i8("Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),nD),AvoidIdSelector:new nA("idSelector",i8("Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),nD)},nM={ValidProperties:new nT("validProperties",i8("A list of properties that are not validated against the `unknownProperties` rule."),[])};class nL{getRule(e){if(this.conf.hasOwnProperty(e.id)){let t=function(e){switch(e){case"ignore":return ey.Ignore;case"warning":return ey.Warning;case"error":return ey.Error;}return null;}(this.conf[e.id]);if(t)return t;}return e.defaultValue;}getSetting(e){return this.conf[e.id];}constructor(e={}){this.conf=e;}}class nF{doCodeActions(e,t,i,r){return this.doCodeActions2(e,t,i,r).map(t=>{let i=t.edit&&t.edit.documentChanges&&t.edit.documentChanges[0];return eN.create(t.title,"_css.applyCodeAction",e.uri,e.version,i&&i.edits);});}doCodeActions2(e,t,i,r){let n=[];if(i.diagnostics)for(let t of i.diagnostics)this.appendFixesForMarker(e,r,t,n);return n;}getFixesForUnknownProperty(e,t,i,r){let n=t.getName(),s=[];this.cssDataManager.getProperties().forEach(e=>{let t=function(e,t){let i,r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,s=Math.abs(e.length-t.length);if(s>n)return 0;let a=[],o=[];for(i=0;i<t.length+1;++i)o.push(0);for(i=0;i<e.length+1;++i)a.push(o);for(i=1;i<e.length+1;++i)for(r=1;r<t.length+1;++r)e[i-1]===t[r-1]?a[i][r]=a[i-1][r-1]+1:a[i][r]=Math.max(a[i-1][r],a[i][r-1]);return a[e.length][t.length]-Math.sqrt(s);}(n,e.name);t>=n.length/2&&s.push({property:e.name,score:t});}),s.sort((e,t)=>t.score-e.score||e.property.localeCompare(t.property));let a=3;for(let t of s){let n=t.property,s=i8("Rename to '{0}'",n),o=eV.replace(i.range,n),l=eQ.create(e.uri,e.version),h={documentChanges:[eW.create(l,[o])]},c=tu.create(s,h,tl.QuickFix);if(c.diagnostics=[i],r.push(c),--a<=0)return;}}appendFixesForMarker(e,t,i,r){if(i.code!==n$.UnknownProperty.id)return;let n=e.offsetAt(i.range.start),s=e.offsetAt(i.range.end),a=tZ(t,n);for(let t=a.length-1;t>=0;t--){let o=a[t];if(o instanceof it){let t=o.getProperty();if(t&&t.offset===n&&t.end===s)return void this.getFixesForUnknownProperty(e,t,i,r);}}}constructor(e){this.cssDataManager=e;}}class nN{constructor(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e;}}function nV(e,t,i,r){let n=e[t];n.value=i,i&&!rO(n.properties,r)&&n.properties.push(r);}function nO(e,t,i,r){if("top"===t||"right"===t||"bottom"===t||"left"===t)nV(e,t,i,r);else nV(e,"top",i,r),nV(e,"right",i,r),nV(e,"bottom",i,r),nV(e,"left",i,r);}function nU(e,t,i){switch(t.length){case 1:nO(e,void 0,t[0],i);break;case 2:nO(e,"top",t[0],i),nO(e,"bottom",t[0],i),nO(e,"right",t[1],i),nO(e,"left",t[1],i);break;case 3:nO(e,"top",t[0],i),nO(e,"right",t[1],i),nO(e,"left",t[1],i),nO(e,"bottom",t[2],i);break;case 4:nO(e,"top",t[0],i),nO(e,"right",t[1],i),nO(e,"bottom",t[2],i),nO(e,"left",t[3],i);}}function nB(e,t){for(let i of t)if(e.matches(i))return!0;return!1;}function nW(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return!(t&&nB(e,["initial","unset"]))&&0!==parseFloat(e.getText());}function nK(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e.map(e=>nW(e,t));}function nz(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return!(nB(e,["none","hidden"])||t&&nB(e,["initial","unset"]));}class nj{add(e,t,i){let r=this.data[e];r||(r={nodes:[],names:[]},this.data[e]=r),r.names.push(t),i&&r.nodes.push(i);}constructor(){this.data={};}}class nq{static entries(e,t,i,r,n){let s=new nq(t,i,r);return e.acceptVisitor(s),s.completeValidations(),s.getEntries(n);}isValidPropertyDeclaration(e){let t=e.fullPropertyName;return this.validProperties[t];}fetch(e,t){let i=[];for(let r of e)r.fullPropertyName===t&&i.push(r);return i;}fetchWithValue(e,t,i){let r=[];for(let n of e)if(n.fullPropertyName===t){let e=n.node.getValue();e&&this.findValueInExpression(e,i)&&r.push(n);}return r;}findValueInExpression(e,t){let i=!1;return e.accept(e=>(e.type===eg.Identifier&&e.matches(t)&&(i=!0),!i)),i;}getEntries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ey.Warning|ey.Error;return this.warnings.filter(t=>(t.getLevel()&e)!=0);}addEntry(e,t,i){let r=new i6(e,t,this.settings.getRule(t),i);this.warnings.push(r);}getMissingNames(e,t){let i=e.slice(0);for(let e=0;e<t.length;e++){let r=i.indexOf(t[e]);-1!==r&&(i[r]=null);}let r=null;for(let e=0;e<i.length;e++){let t=i[e];t&&(r=null===r?i8("'{0}'",t):i8("{0}, '{1}'",r,t));}return r;}visitNode(e){switch(e.type){case eg.UnknownAtRule:return this.visitUnknownAtRule(e);case eg.Keyframe:return this.visitKeyframe(e);case eg.FontFace:return this.visitFontFace(e);case eg.Ruleset:return this.visitRuleSet(e);case eg.SimpleSelector:return this.visitSimpleSelector(e);case eg.Function:return this.visitFunction(e);case eg.NumericValue:return this.visitNumericValue(e);case eg.Import:return this.visitImport(e);case eg.HexColorValue:return this.visitHexColorValue(e);case eg.Prio:return this.visitPrio(e);case eg.IdentifierSelector:return this.visitIdentifierSelector(e);}return!0;}completeValidations(){this.validateKeyframes();}visitUnknownAtRule(e){let t=e.getChild(0);return!(!t||this.cssDataManager.getAtDirective(t.getText()))&&(this.addEntry(t,n$.UnknownAtRules,`Unknown at rule ${t.getText()}`),!0);}visitKeyframe(e){let t=e.getKeyword();if(!t)return!1;let i=t.getText();return this.keyframes.add(e.getName(),i,"@keyframes"!==i?t:null),!0;}validateKeyframes(){let e=["@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"];for(let t in this.keyframes.data){let i=this.keyframes.data[t].names,r=-1===i.indexOf("@keyframes");if(!r&&1===i.length)continue;let n=this.getMissingNames(e,i);if(n||r)for(let e of this.keyframes.data[t].nodes){if(r){let t=i8("Always define standard rule '@keyframes' when defining keyframes.");this.addEntry(e,n$.IncludeStandardPropertyWhenUsingVendorPrefix,t);}if(n){let t=i8("Always include all vendor specific rules: Missing: {0}",n);this.addEntry(e,n$.AllVendorPrefixes,t);}}}return!0;}visitSimpleSelector(e){let t=this.documentText.charAt(e.offset);return 1===e.length&&"*"===t&&this.addEntry(e,n$.UniversalSelector),!0;}visitIdentifierSelector(e){return this.addEntry(e,n$.AvoidIdSelector),!0;}visitImport(e){return this.addEntry(e,n$.ImportStatemement),!0;}visitRuleSet(e){let t=e.getDeclarations();if(!t)return!1;t.hasChildren()||this.addEntry(e.getSelectors(),n$.EmptyRuleSet);let i=[];for(let e of t.getChildren())e instanceof it&&i.push(new nN(e));let r=function(e){let t={top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};for(let i of e){let e=i.node.value;if(void 0!==e)switch(i.fullPropertyName){case"box-sizing":return{top:{value:!1,properties:[]},right:{value:!1,properties:[]},bottom:{value:!1,properties:[]},left:{value:!1,properties:[]}};case"width":t.width=i;break;case"height":t.height=i;break;default:let r=i.fullPropertyName.split("-");switch(r[0]){case"border":switch(r[1]){case void 0:case"top":case"right":case"bottom":case"left":switch(r[2]){case void 0:nO(t,r[1],function(e){let t=e.getChildren();if(1===t.length){let e=t[0];return nW(e)&&nz(e);}for(let e of t)if(!nW(e,!1)||!nz(e,!1))return!1;return!0;}(e),i);break;case"width":nO(t,r[1],nW(e,!1),i);break;case"style":nO(t,r[1],nz(e,!0),i);}break;case"width":nU(t,nK(e.getChildren(),!1),i);break;case"style":nU(t,function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return e.map(e=>nz(e,t));}(e.getChildren(),!0),i);}break;case"padding":1===r.length?nU(t,nK(e.getChildren(),!0),i):nO(t,r[1],nW(e,!0),i);}}}return t;}(i);if(r.width){let e=[];if(r.right.value&&(e=rU(e,r.right.properties)),r.left.value&&(e=rU(e,r.left.properties)),0!==e.length){for(let t of e)this.addEntry(t.node,n$.BewareOfBoxModelSize);this.addEntry(r.width.node,n$.BewareOfBoxModelSize);}}if(r.height){let e=[];if(r.top.value&&(e=rU(e,r.top.properties)),r.bottom.value&&(e=rU(e,r.bottom.properties)),0!==e.length){for(let t of e)this.addEntry(t.node,n$.BewareOfBoxModelSize);this.addEntry(r.height.node,n$.BewareOfBoxModelSize);}}let n=this.fetchWithValue(i,"display","inline-block");if(n.length>0){let e=this.fetch(i,"float");for(let t=0;t<e.length;t++){let i=e[t].node,r=i.getValue();r&&!r.matches("none")&&this.addEntry(i,n$.PropertyIgnoredDueToDisplay,i8("inline-block is ignored due to the float. If 'float' has a value other than 'none', the box is floated and 'display' is treated as 'block'"));}}if((n=this.fetchWithValue(i,"display","block")).length>0){let e=this.fetch(i,"vertical-align");for(let t=0;t<e.length;t++)this.addEntry(e[t].node,n$.PropertyIgnoredDueToDisplay,i8("Property is ignored due to the display. With 'display: block', vertical-align should not be used."));}let s=this.fetch(i,"float");for(let e=0;e<s.length;e++){let t=s[e];this.isValidPropertyDeclaration(t)||this.addEntry(t.node,n$.AvoidFloat);}for(let e=0;e<i.length;e++){let t=i[e];if("background"!==t.fullPropertyName&&!this.validProperties[t.fullPropertyName]){let e=t.node.getValue();if(e&&"-"!==this.documentText.charAt(e.offset)){let e=this.fetch(i,t.fullPropertyName);if(e.length>1)for(let i=0;i<e.length;i++){let r=e[i].node.getValue();r&&"-"!==this.documentText.charAt(r.offset)&&e[i]!==t&&this.addEntry(t.node,n$.DuplicateDeclarations);}}}}if(!e.getSelectors().matches(":export")){let t=new nj(),r=!1;for(let e of i){let i=e.node;if(this.isCSSDeclaration(i)){let r=e.fullPropertyName,n=r.charAt(0);if("-"===n){if("-"!==r.charAt(1)){this.cssDataManager.isKnownProperty(r)||this.validProperties[r]||this.addEntry(i.getProperty(),n$.UnknownVendorSpecificProperty);let e=i.getNonPrefixedPropertyName();t.add(e,r,i.getProperty());}}else{let e=r;("*"===n||"_"===n)&&(this.addEntry(i.getProperty(),n$.IEStarHack),r=r.substr(1)),this.cssDataManager.isKnownProperty(e)||this.cssDataManager.isKnownProperty(r)||this.validProperties[r]||this.addEntry(i.getProperty(),n$.UnknownProperty,i8("Unknown property: '{0}'",i.getFullPropertyName())),t.add(r,r,null);}}else r=!0;}if(!r)for(let i in t.data){let r=t.data[i],n=r.names,s=this.cssDataManager.isStandardProperty(i)&&-1===n.indexOf(i);if(!s&&1===n.length)continue;let a=new Set(s?r.nodes:[]);if(s){let t=this.getContextualVendorSpecificPseudoElements(e);for(let e of r.nodes){let r=e.getName(),n=r.substring(0,r.length-i.length);t.some(e=>e.startsWith(n))&&a.delete(e);}}let o=[];for(let e=0,t=nq.prefixes.length;e<t;e++){let t=nq.prefixes[e];this.cssDataManager.isStandardProperty(t+i)&&o.push(t+i);}let l=this.getMissingNames(o,n);if(l||s)for(let e of r.nodes){if(s&&a.has(e)){let t=i8("Also define the standard property '{0}' for compatibility",i);this.addEntry(e,n$.IncludeStandardPropertyWhenUsingVendorPrefix,t);}if(l){let t=i8("Always include all vendor specific properties: Missing: {0}",l);this.addEntry(e,n$.AllVendorPrefixes,t);}}}}return!0;}getContextualVendorSpecificPseudoElements(e){let t=new Set();return!function e(t,i){if(i.type===eg.Ruleset)for(let e of i.getSelectors().getChildren())!function e(t,i){for(let n of i.getChildren()){if(n.type===eg.PseudoSelector){var r;let e=null==(r=n.getChildren()[0])?void 0:r.getText();e&&t.add(e);}e(t,n);}}(t,e);return i.parent?e(t,i.parent):void 0;}(t,e),Array.from(t);}visitPrio(e){return this.addEntry(e,n$.AvoidImportant),!0;}visitNumericValue(e){let t=e.findParent(eg.Function);if(t&&"calc"===t.getName())return!0;let i=e.findParent(eg.Declaration);if(i&&i.getValue()){let t=e.getValue();if(!t.unit||-1===rT.length.indexOf(t.unit.toLowerCase()))return!0;0===parseFloat(t.value)&&t.unit&&!this.validProperties[i.getFullPropertyName()]&&this.addEntry(e,n$.ZeroWithUnit);}return!0;}visitFontFace(e){let t=e.getDeclarations();if(!t)return!1;let i=!1,r=!1,n=!1;for(let e of t.getChildren())if(this.isCSSDeclaration(e)){let t=e.getProperty().getName().toLowerCase();"src"===t&&(i=!0),"font-family"===t&&(r=!0);}else n=!0;return n||i&&r||this.addEntry(e,n$.RequiredPropertiesForFontFace),!0;}isCSSDeclaration(e){if(e instanceof it){if(!e.getValue())return!1;let t=e.getProperty();if(!t)return!1;let i=t.getIdentifier();return!(!i||i.containsInterpolation());}return!1;}visitHexColorValue(e){let t=e.length;return 9!==t&&7!==t&&5!==t&&4!==t&&this.addEntry(e,n$.HexColorLength),!1;}visitFunction(e){let t=e.getName().toLowerCase(),i=-1,r=0;switch(t){case"rgb(":case"hsl(":i=3;break;case"rgba(":case"hsla(":i=4;}return-1!==i&&(e.getArguments().accept(e=>!(e instanceof iB)||(r+=1,!1)),r!==i&&this.addEntry(e,n$.ArgsInColorFunction)),!0;}constructor(e,t,i){this.cssDataManager=i,this.warnings=[],this.settings=t,this.documentText=e.getText(),this.keyframes=new nj(),this.validProperties={};const r=t.getSetting(nM.ValidProperties);Array.isArray(r)&&r.forEach(e=>{if("string"==typeof e){let t=e.trim().toLowerCase();t.length&&(this.validProperties[t]=!0);}});}}nq.prefixes=["-ms-","-moz-","-o-","-webkit-"];class nH{configure(e){this.settings=e;}doValidation(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.settings;if(i&&!1===i.validate)return[];let r=[];r.push.apply(r,i7.entries(t)),r.push.apply(r,nq.entries(t,e,new nL(i&&i.lint),this.cssDataManager));let n=[];for(let e in n$)n.push(n$[e].id);return r.filter(e=>e.getLevel()!==ey.Ignore).map(function(t){let i=eS.create(e.positionAt(t.getOffset()),e.positionAt(t.getOffset()+t.getLength())),r=e.languageId;return{code:t.getRule().id,source:r,message:t.getMessage(),severity:t.getLevel()===ey.Warning?e$.Warning:e$.Error,range:i};});}constructor(e){this.cssDataManager=e;}}let nQ=em.CustomToken,nG=nQ++,nJ=nQ++;nQ++;let nX=nQ++,nZ=nQ++,nY=nQ++,n0=nQ++,n1=nQ++;nQ++;class n2 extends tq{scanNext(e){if(this.stream.advanceIfChar(36)){let t=["$"];if(this.ident(t))return this.finishToken(e,nG,t.join(""));this.stream.goBackTo(e);}return this.stream.advanceIfChars([35,123])?this.finishToken(e,nJ):this.stream.advanceIfChars([61,61])?this.finishToken(e,nX):this.stream.advanceIfChars([33,61])?this.finishToken(e,nZ):this.stream.advanceIfChar(60)?this.stream.advanceIfChar(61)?this.finishToken(e,n0):this.finishToken(e,em.Delim):this.stream.advanceIfChar(62)?this.stream.advanceIfChar(61)?this.finishToken(e,nY):this.finishToken(e,em.Delim):this.stream.advanceIfChars([46,46,46])?this.finishToken(e,n1):super.scanNext(e);}comment(){return!!super.comment()||!!(!this.inURL&&this.stream.advanceIfChars([47,47]))&&(this.stream.advanceWhileChar(e=>{switch(e){case 10:case 13:case 12:return!1;default:return!0;}}),!0);}}class n5{constructor(e,t){this.id=e,this.message=t;}}let n4={FromExpected:new n5("scss-fromexpected",i8("'from' expected")),ThroughOrToExpected:new n5("scss-throughexpected",i8("'through' or 'to' expected")),InExpected:new n5("scss-fromexpected",i8("'in' expected"))};class n3 extends rV{_parseStylesheetStatement(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.peek(em.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(e)||super._parseStylesheetAtStatement(e):this._parseRuleset(!0)||this._parseVariableDeclaration();}_parseImport(){if(!this.peekKeyword("@import"))return null;let e=this.create(iC);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,rt.URIOrStringExpected);for(;this.accept(em.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,rt.URIOrStringExpected);return this._completeParseImport(e);}_parseVariableDeclaration(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!this.peek(nG))return null;let t=this.create(iH);if(!t.setVariable(this._parseVariable()))return null;if(!this.accept(em.Colon))return this.finish(t,rt.ColonExpected);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),!t.setValue(this._parseExpr()))return this.finish(t,rt.VariableValueExpected,[],e);for(;this.peek(em.Exclamation);)if(t.addChild(this._tryParsePrio()));else{if(this.consumeToken(),!this.peekRegExp(em.Ident,/^(default|global)$/))return this.finish(t,rt.UnknownKeyword);this.consumeToken();}return this.peek(em.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t);}_parseMediaCondition(){return this._parseInterpolation()||super._parseMediaCondition();}_parseMediaFeatureRangeOperator(){return this.accept(n0)||this.accept(nY)||super._parseMediaFeatureRangeOperator();}_parseMediaFeatureName(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable();}_parseKeyframeSelector(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseWarnAndDebug()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseVariableDeclaration()||this._parseMixinContent();}_parseVariable(){if(!this.peek(nG))return null;let e=this.create(iG);return this.consumeToken(),e;}_parseModuleMember(){let e=this.mark(),t=this.create(i3);return t.setIdentifier(this._parseIdent([e_.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(e),null):t.addChild(this._parseVariable()||this._parseFunction())?t:this.finish(t,rt.IdentifierOrVariableExpected):null;}_parseIdent(e){if(!this.peek(em.Ident)&&!this.peek(nJ)&&!this.peekDelim("-"))return null;let t=this.create(t2);t.referenceTypes=e,t.isCustomProperty=this.peekRegExp(em.Ident,/^--/);let i=!1,r=()=>{let e=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(e),null):this._parseInterpolation();};for(;(this.accept(em.Ident)||t.addChild(r())||i&&this.acceptRegexp(/^[\w-]/))&&(i=!0,!this.hasWhitespace()););return i?this.finish(t):null;}_parseTermExpression(){return this._parseModuleMember()||this._parseVariable()||this._parseNestingSelector()||super._parseTermExpression();}_parseInterpolation(){if(this.peek(nJ)){let e=this.create(iQ);return(this.consumeToken(),e.addChild(this._parseExpr())||this._parseNestingSelector())?this.accept(em.CurlyR)?this.finish(e):this.finish(e,rt.RightCurlyExpected):this.accept(em.CurlyR)?this.finish(e):this.finish(e,rt.ExpressionExpected);}return null;}_parseOperator(){if(this.peek(nX)||this.peek(nZ)||this.peek(nY)||this.peek(n0)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){let e=this.createNode(eg.Operator);return this.consumeToken(),this.finish(e);}return super._parseOperator();}_parseUnaryOperator(){if(this.peekIdent("not")){let e=this.create(tY);return this.consumeToken(),this.finish(e);}return super._parseUnaryOperator();}_parseRuleSetDeclaration(){return this.peek(em.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseRuleSetDeclarationAtStatement():this._parseVariableDeclaration()||this._tryParseRuleset(!0)||this._parseDeclaration();}_parseDeclaration(e){let t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;let i=this.create(it);if(!i.setProperty(this._parseProperty()))return null;if(!this.accept(em.Colon))return this.finish(i,rt.ColonExpected,[em.Colon],e||[em.SemiColon]);this.prevToken&&(i.colonPosition=this.prevToken.offset);let r=!1;if(i.setValue(this._parseExpr())&&(r=!0,i.addChild(this._parsePrio())),this.peek(em.CurlyL))i.setNestedProperties(this._parseNestedProperties());else if(!r)return this.finish(i,rt.PropertyValueExpected);return this.peek(em.SemiColon)&&(i.semicolonPosition=this.token.offset),this.finish(i);}_parseNestedProperties(){let e=this.create(iy);return this._parseBody(e,this._parseDeclaration.bind(this));}_parseExtends(){if(this.peekKeyword("@extend")){let e=this.create(iJ);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,rt.SelectorExpected);for(;this.accept(em.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(em.Exclamation)&&!this.acceptIdent("optional")?this.finish(e,rt.UnknownKeyword):this.finish(e);}return null;}_parseSimpleSelectorBody(){return this._parseSelectorPlaceholder()||super._parseSimpleSelectorBody();}_parseNestingSelector(){if(this.peekDelim("&")){let e=this.createNode(eg.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(em.Num)||this.accept(em.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e);}return null;}_parseSelectorPlaceholder(){if(this.peekDelim("%")){let e=this.createNode(eg.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(e);}if(this.peekKeyword("@at-root")){let e=this.createNode(eg.SelectorPlaceholder);if(this.consumeToken(),this.accept(em.ParenthesisL)){if(!this.acceptIdent("with")&&!this.acceptIdent("without"))return this.finish(e,rt.IdentifierExpected);if(!this.accept(em.Colon))return this.finish(e,rt.ColonExpected);if(!e.addChild(this._parseIdent()))return this.finish(e,rt.IdentifierExpected);if(!this.accept(em.ParenthesisR))return this.finish(e,rt.RightParenthesisExpected,[em.CurlyR]);}return this.finish(e);}return null;}_parseElementName(){let e=this.mark(),t=super._parseElementName();return t&&!this.hasWhitespace()&&this.peek(em.ParenthesisL)?(this.restoreAtMark(e),null):t;}_tryParsePseudoIdentifier(){return this._parseInterpolation()||super._tryParsePseudoIdentifier();}_parseWarnAndDebug(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;let e=this.createNode(eg.Debug);return this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e);}_parseControlStatement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._parseRuleSetDeclaration.bind(this);return this.peek(em.AtKeyword)?this._parseIfStatement(e)||this._parseForStatement(e)||this._parseEachStatement(e)||this._parseWhileStatement(e):null;}_parseIfStatement(e){return this.peekKeyword("@if")?this._internalParseIfStatement(e):null;}_internalParseIfStatement(e){let t=this.create(ih);if(this.consumeToken(),!t.setExpression(this._parseExpr(!0)))return this.finish(t,rt.ExpressionExpected);if(this._parseBody(t,e),this.acceptKeyword("@else")){if(this.peekIdent("if"))t.setElseClause(this._internalParseIfStatement(e));else if(this.peek(em.CurlyL)){let i=this.create(id);this._parseBody(i,e),t.setElseClause(i);}}return this.finish(t);}_parseForStatement(e){if(!this.peekKeyword("@for"))return null;let t=this.create(ic);return(this.consumeToken(),t.setVariable(this._parseVariable()))?this.acceptIdent("from")?t.addChild(this._parseBinaryExpr())?this.acceptIdent("to")||this.acceptIdent("through")?t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,rt.ExpressionExpected,[em.CurlyR]):this.finish(t,n4.ThroughOrToExpected,[em.CurlyR]):this.finish(t,rt.ExpressionExpected,[em.CurlyR]):this.finish(t,n4.FromExpected,[em.CurlyR]):this.finish(t,rt.VariableNameExpected,[em.CurlyR]);}_parseEachStatement(e){if(!this.peekKeyword("@each"))return null;let t=this.create(iu);this.consumeToken();let i=t.getVariables();if(!i.addChild(this._parseVariable()))return this.finish(t,rt.VariableNameExpected,[em.CurlyR]);for(;this.accept(em.Comma);)if(!i.addChild(this._parseVariable()))return this.finish(t,rt.VariableNameExpected,[em.CurlyR]);return(this.finish(i),this.acceptIdent("in"))?t.addChild(this._parseExpr())?this._parseBody(t,e):this.finish(t,rt.ExpressionExpected,[em.CurlyR]):this.finish(t,n4.InExpected,[em.CurlyR]);}_parseWhileStatement(e){if(!this.peekKeyword("@while"))return null;let t=this.create(ip);return(this.consumeToken(),t.addChild(this._parseBinaryExpr()))?this._parseBody(t,e):this.finish(t,rt.ExpressionExpected,[em.CurlyR]);}_parseFunctionBodyDeclaration(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this));}_parseFunctionDeclaration(){if(!this.peekKeyword("@function"))return null;let e=this.create(im);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([e_.Function])))return this.finish(e,rt.IdentifierExpected,[em.CurlyR]);if(!this.accept(em.ParenthesisL))return this.finish(e,rt.LeftParenthesisExpected,[em.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(em.Comma)&&!this.peek(em.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,rt.VariableNameExpected);}return this.accept(em.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,rt.RightParenthesisExpected,[em.CurlyR]);}_parseReturnStatement(){if(!this.peekKeyword("@return"))return null;let e=this.createNode(eg.ReturnStatement);return(this.consumeToken(),e.addChild(this._parseExpr()))?this.finish(e):this.finish(e,rt.ExpressionExpected);}_parseMixinDeclaration(){if(!this.peekKeyword("@mixin"))return null;let e=this.create(i0);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([e_.Mixin])))return this.finish(e,rt.IdentifierExpected,[em.CurlyR]);if(this.accept(em.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(em.Comma)&&!this.peek(em.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,rt.VariableNameExpected);}if(!this.accept(em.ParenthesisR))return this.finish(e,rt.RightParenthesisExpected,[em.CurlyR]);}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this));}_parseParameterDeclaration(){let e=this.create(io);return e.setIdentifier(this._parseVariable())?(this.accept(n1),this.accept(em.Colon)&&!e.setDefaultValue(this._parseExpr(!0)))?this.finish(e,rt.VariableValueExpected,[],[em.Comma,em.ParenthesisR]):this.finish(e):null;}_parseMixinContent(){if(!this.peekKeyword("@content"))return null;let e=this.create(iX);if(this.consumeToken(),this.accept(em.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(em.Comma)&&!this.peek(em.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,rt.ExpressionExpected);}if(!this.accept(em.ParenthesisR))return this.finish(e,rt.RightParenthesisExpected);}return this.finish(e);}_parseMixinReference(){if(!this.peekKeyword("@include"))return null;let e=this.create(iY);this.consumeToken();let t=this._parseIdent([e_.Mixin]);if(!e.setIdentifier(t))return this.finish(e,rt.IdentifierExpected,[em.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){let i=this._parseIdent([e_.Mixin]);if(!i)return this.finish(e,rt.IdentifierExpected,[em.CurlyR]);let r=this.create(i3);t.referenceTypes=[e_.Module],r.setIdentifier(t),e.setIdentifier(i),e.addChild(r);}if(this.accept(em.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument())){for(;this.accept(em.Comma)&&!this.peek(em.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,rt.ExpressionExpected);}if(!this.accept(em.ParenthesisR))return this.finish(e,rt.RightParenthesisExpected);}return(this.peekIdent("using")||this.peek(em.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e);}_parseMixinContentDeclaration(){let e=this.create(iZ);if(this.acceptIdent("using")){if(!this.accept(em.ParenthesisL))return this.finish(e,rt.LeftParenthesisExpected,[em.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration())){for(;this.accept(em.Comma)&&!this.peek(em.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,rt.VariableNameExpected);}if(!this.accept(em.ParenthesisR))return this.finish(e,rt.RightParenthesisExpected,[em.CurlyL]);}return this.peek(em.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e);}_parseMixinReferenceBodyStatement(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration();}_parseFunctionArgument(){let e=this.create(il),t=this.mark(),i=this._parseVariable();if(i)if(this.accept(em.Colon))e.setIdentifier(i);else{if(this.accept(n1))return e.setValue(i),this.finish(e);this.restoreAtMark(t);}return e.setValue(this._parseExpr(!0))?(this.accept(n1),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null;}_parseURLArgument(){let e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(em.ParenthesisR)){this.restoreAtMark(e);let t=this.create(tY);return t.addChild(this._parseBinaryExpr()),this.finish(t);}return t;}_parseOperation(){if(!this.peek(em.ParenthesisL))return null;let e=this.create(tY);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(em.Comma);return this.accept(em.ParenthesisR)?this.finish(e):this.finish(e,rt.RightParenthesisExpected);}_parseListElement(){let e=this.create(i2),t=this._parseBinaryExpr();if(!t)return null;if(this.accept(em.Colon)){if(e.setKey(t),!e.setValue(this._parseBinaryExpr()))return this.finish(e,rt.ExpressionExpected);}else e.setValue(t);return this.finish(e);}_parseUse(){if(!this.peekKeyword("@use"))return null;let e=this.create(ik);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,rt.StringLiteralExpected);if(!this.peek(em.SemiColon)&&!this.peek(em.EOF)){if(!this.peekRegExp(em.Ident,/as|with/))return this.finish(e,rt.UnknownKeyword);if(this.acceptIdent("as")&&!e.setIdentifier(this._parseIdent([e_.Module]))&&!this.acceptDelim("*"))return this.finish(e,rt.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(em.ParenthesisL))return this.finish(e,rt.LeftParenthesisExpected,[em.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,rt.VariableNameExpected);for(;this.accept(em.Comma)&&!this.peek(em.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,rt.VariableNameExpected);if(!this.accept(em.ParenthesisR))return this.finish(e,rt.RightParenthesisExpected);}}return this.accept(em.SemiColon)||this.accept(em.EOF)?this.finish(e):this.finish(e,rt.SemiColonExpected);}_parseModuleConfigDeclaration(){let e=this.create(iv);return e.setIdentifier(this._parseVariable())?this.accept(em.Colon)&&e.setValue(this._parseExpr(!0))?this.accept(em.Exclamation)&&(this.hasWhitespace()||!this.acceptIdent("default"))?this.finish(e,rt.UnknownKeyword):this.finish(e):this.finish(e,rt.VariableValueExpected,[],[em.Comma,em.ParenthesisR]):null;}_parseForward(){if(!this.peekKeyword("@forward"))return null;let e=this.create(iS);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,rt.StringLiteralExpected);if(this.acceptIdent("as")){let t=this._parseIdent([e_.Forward]);if(!e.setIdentifier(t))return this.finish(e,rt.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(e,rt.WildcardExpected);}if(this.acceptIdent("with")){if(!this.accept(em.ParenthesisL))return this.finish(e,rt.LeftParenthesisExpected,[em.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,rt.VariableNameExpected);for(;this.accept(em.Comma)&&!this.peek(em.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,rt.VariableNameExpected);if(!this.accept(em.ParenthesisR))return this.finish(e,rt.RightParenthesisExpected);}else if((this.peekIdent("hide")||this.peekIdent("show"))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,rt.IdentifierOrVariableExpected);return this.accept(em.SemiColon)||this.accept(em.EOF)?this.finish(e):this.finish(e,rt.SemiColonExpected);}_parseForwardVisibility(){let e=this.create(iw);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(em.Comma);return e.getChildren().length>1?e:null;}_parseSupportsCondition(){return this._parseInterpolation()||super._parseSupportsCondition();}constructor(){super(new n2());}}let n6=i8("Sass documentation");class n7 extends nr{isImportPathParent(e){return e===eg.Forward||e===eg.Use||super.isImportPathParent(e);}getCompletionForImportPath(e,t){let i=e.getParent().type;if(i===eg.Forward||i===eg.Use)for(let i of n7.scssModuleBuiltIns){let r={label:i.label,documentation:i.documentation,textEdit:eV.replace(this.getCompletionRange(e),`'${i.label}'`),kind:eY.Module};t.items.push(r);}return super.getCompletionForImportPath(e,t);}createReplaceFunction(){let e=1;return(t,i)=>"\\"+i+": ${"+e+++":"+(n7.variableDefaults[i]||"")+"}";}createFunctionProposals(e,t,i,r){for(let n of e){let e=n.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),s={label:n.func.substr(0,n.func.indexOf("(")),detail:n.func,documentation:n.desc,textEdit:eV.replace(this.getCompletionRange(t),e),insertTextFormat:e0.Snippet,kind:eY.Function};i&&(s.sortText="z"),r.items.push(s);}return r;}getCompletionsForSelector(e,t,i){return this.createFunctionProposals(n7.selectorFuncs,null,!0,i),super.getCompletionsForSelector(e,t,i);}getTermProposals(e,t,i){let r=n7.builtInFuncs;return e&&(r=r.filter(t=>!t.type||!e.restrictions||-1!==e.restrictions.indexOf(t.type))),this.createFunctionProposals(r,t,!0,i),super.getTermProposals(e,t,i);}getColorProposals(e,t,i){return this.createFunctionProposals(n7.colorProposals,t,!1,i),super.getColorProposals(e,t,i);}getCompletionsForDeclarationProperty(e,t){return this.getCompletionForAtDirectives(t),this.getCompletionsForSelector(null,!0,t),super.getCompletionsForDeclarationProperty(e,t);}getCompletionsForExtendsReference(e,t,i){for(let e of this.getSymbolContext().findSymbolsAtOffset(this.offset,e_.Rule)){let r={label:e.name,textEdit:eV.replace(this.getCompletionRange(t),e.name),kind:eY.Function};i.items.push(r);}return i;}getCompletionForAtDirectives(e){return e.items.push(...n7.scssAtDirectives),e;}getCompletionForTopLevel(e){return this.getCompletionForAtDirectives(e),this.getCompletionForModuleLoaders(e),super.getCompletionForTopLevel(e),e;}getCompletionForModuleLoaders(e){return e.items.push(...n7.scssModuleLoaders),e;}constructor(e,t){super("$",e,t),n8(n7.scssModuleLoaders),n8(n7.scssModuleBuiltIns);}}function n8(e){e.forEach(e=>{if(e.documentation&&e.references&&e.references.length>0){let t="string"==typeof e.documentation?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};t.value+="\n\n",t.value+=e.references.map(e=>`[${e.name}](${e.url})`).join(" | "),e.documentation=t;}});}n7.variableDefaults={$red:"1",$green:"2",$blue:"3",$alpha:"1.0",$color:"#000000",$weight:"0.5",$hue:"0",$saturation:"0%",$lightness:"0%",$degrees:"0",$amount:"0",$string:'""',$substring:'"s"',$number:"0",$limit:"1"},n7.colorProposals=[{func:"red($color)",desc:i8("Gets the red component of a color.")},{func:"green($color)",desc:i8("Gets the green component of a color.")},{func:"blue($color)",desc:i8("Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:i8("Mixes two colors together.")},{func:"hue($color)",desc:i8("Gets the hue component of a color.")},{func:"saturation($color)",desc:i8("Gets the saturation component of a color.")},{func:"lightness($color)",desc:i8("Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:i8("Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:i8("Makes a color lighter.")},{func:"darken($color, $amount)",desc:i8("Makes a color darker.")},{func:"saturate($color, $amount)",desc:i8("Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:i8("Makes a color less saturated.")},{func:"grayscale($color)",desc:i8("Converts a color to grayscale.")},{func:"complement($color)",desc:i8("Returns the complement of a color.")},{func:"invert($color)",desc:i8("Returns the inverse of a color.")},{func:"alpha($color)",desc:i8("Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:i8("Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:i8("Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:i8("Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:i8("Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:i8("Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:i8("Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:i8("Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:i8("Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:i8("Converts a color into the format understood by IE filters.")}],n7.selectorFuncs=[{func:"selector-nest($selectors…)",desc:i8("Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors…)",desc:i8("Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:i8("Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:i8("Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:i8("Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:i8("Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:i8("Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:i8("Parses a selector into the format returned by &.")}],n7.builtInFuncs=[{func:"unquote($string)",desc:i8("Removes quotes from a string.")},{func:"quote($string)",desc:i8("Adds quotes to a string.")},{func:"str-length($string)",desc:i8("Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:i8("Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:i8("Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:i8("Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:i8("Converts a string to upper case.")},{func:"to-lower-case($string)",desc:i8("Converts a string to lower case.")},{func:"percentage($number)",desc:i8("Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:i8("Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:i8("Rounds a number up to the next whole number.")},{func:"floor($number)",desc:i8("Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:i8("Returns the absolute value of a number.")},{func:"min($numbers)",desc:i8("Finds the minimum of several numbers.")},{func:"max($numbers)",desc:i8("Finds the maximum of several numbers.")},{func:"random([$limit])",desc:i8("Returns a random number.")},{func:"length($list)",desc:i8("Returns the length of a list.")},{func:"nth($list, $n)",desc:i8("Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:i8("Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:i8("Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:i8("Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:i8("Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:i8("Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:i8("Returns the separator of a list.")},{func:"map-get($map, $key)",desc:i8("Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:i8("Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:i8("Returns a new map with keys removed.")},{func:"map-keys($map)",desc:i8("Returns a list of all keys in a map.")},{func:"map-values($map)",desc:i8("Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:i8("Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:i8("Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:i8("Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:i8("Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:i8("Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:i8("Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:i8("Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:i8("Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:i8("Returns the type of a value.")},{func:"unit($number)",desc:i8("Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:i8("Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:i8("Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args…)",desc:i8("Dynamically calls a Sass function.")}],n7.scssAtDirectives=[{label:"@extend",documentation:i8("Inherits the styles of another selector."),kind:eY.Keyword},{label:"@at-root",documentation:i8("Causes one or more rules to be emitted at the root of the document."),kind:eY.Keyword},{label:"@debug",documentation:i8("Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:eY.Keyword},{label:"@warn",documentation:i8("Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),kind:eY.Keyword},{label:"@error",documentation:i8("Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:eY.Keyword},{label:"@if",documentation:i8("Includes the body if the expression does not evaluate to `false` or `null`."),insertText:"@if ${1:expr} {\n $0\n}",insertTextFormat:e0.Snippet,kind:eY.Keyword},{label:"@for",documentation:i8("For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."),insertText:"@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n $0\n}",insertTextFormat:e0.Snippet,kind:eY.Keyword},{label:"@each",documentation:i8("Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."),insertText:"@each \\$${1:var} in ${2:list} {\n $0\n}",insertTextFormat:e0.Snippet,kind:eY.Keyword},{label:"@while",documentation:i8("While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),insertText:"@while ${1:condition} {\n $0\n}",insertTextFormat:e0.Snippet,kind:eY.Keyword},{label:"@mixin",documentation:i8("Defines styles that can be re-used throughout the stylesheet with `@include`."),insertText:"@mixin ${1:name} {\n $0\n}",insertTextFormat:e0.Snippet,kind:eY.Keyword},{label:"@include",documentation:i8("Includes the styles defined by another mixin into the current rule."),kind:eY.Keyword},{label:"@function",documentation:i8("Defines complex operations that can be re-used throughout stylesheets."),kind:eY.Keyword}],n7.scssModuleLoaders=[{label:"@use",documentation:i8("Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:n6,url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use $0;",insertTextFormat:e0.Snippet,kind:eY.Keyword},{label:"@forward",documentation:i8("Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:n6,url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward $0;",insertTextFormat:e0.Snippet,kind:eY.Keyword}],n7.scssModuleBuiltIns=[{label:"sass:math",documentation:i8("Provides functions that operate on numbers."),references:[{name:n6,url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:i8("Makes it easy to combine, search, or split apart strings."),references:[{name:n6,url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:i8("Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:n6,url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:i8("Lets you access and modify values in lists."),references:[{name:n6,url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:i8("Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:n6,url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:i8("Provides access to Sass’s powerful selector engine."),references:[{name:n6,url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:i8("Exposes the details of Sass’s inner workings."),references:[{name:n6,url:"https://sass-lang.com/documentation/modules/meta"}]}];let n9=em.CustomToken,se=n9++;class st extends tq{scanNext(e){let t=this.escapedJavaScript();return null!==t?this.finishToken(e,t):this.stream.advanceIfChars([46,46,46])?this.finishToken(e,se):super.scanNext(e);}comment(){return!!super.comment()||!!(!this.inURL&&this.stream.advanceIfChars([47,47]))&&(this.stream.advanceWhileChar(e=>{switch(e){case 10:case 13:case 12:return!1;default:return!0;}}),!0);}escapedJavaScript(){return 96===this.stream.peekChar()?(this.stream.advance(1),this.stream.advanceWhileChar(e=>96!==e),this.stream.advanceIfChar(96)?em.EscapedJavaScript:em.BadEscapedJavaScript):null;}}class si extends rV{_parseStylesheetStatement(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.peek(em.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||super._parseStylesheetAtStatement(e):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0);}_parseImport(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;let e=this.create(iC);if(this.consumeToken(),this.accept(em.ParenthesisL)){if(!this.accept(em.Ident))return this.finish(e,rt.IdentifierExpected,[em.SemiColon]);do if(!this.accept(em.Comma))break;while(this.accept(em.Ident));if(!this.accept(em.ParenthesisR))return this.finish(e,rt.RightParenthesisExpected,[em.SemiColon]);}return e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())?(this.peek(em.SemiColon)||this.peek(em.EOF)||e.setMedialist(this._parseMediaQueryList()),this._completeParseImport(e)):this.finish(e,rt.URIOrStringExpected,[em.SemiColon]);}_parsePlugin(){if(!this.peekKeyword("@plugin"))return null;let e=this.createNode(eg.Plugin);return(this.consumeToken(),e.addChild(this._parseStringLiteral()))?this.accept(em.SemiColon)?this.finish(e):this.finish(e,rt.SemiColonExpected):this.finish(e,rt.StringLiteralExpected);}_parseMediaQuery(){let e=super._parseMediaQuery();if(!e){let e=this.create(iM);return e.addChild(this._parseVariable())?this.finish(e):null;}return e;}_parseMediaDeclaration(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._tryParseRuleset(e)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(e);}_parseMediaFeatureName(){return this._parseIdent()||this._parseVariable();}_parseVariableDeclaration(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.create(iH),i=this.mark();if(!t.setVariable(this._parseVariable(!0)))return null;if(!this.accept(em.Colon))return this.restoreAtMark(i),null;if(this.prevToken&&(t.colonPosition=this.prevToken.offset),t.setValue(this._parseDetachedRuleSet()))t.needsSemicolon=!1;else if(!t.setValue(this._parseExpr()))return this.finish(t,rt.VariableValueExpected,[],e);return t.addChild(this._parsePrio()),this.peek(em.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t);}_parseDetachedRuleSet(){let e=this.mark();if(this.peekDelim("#")||this.peekDelim(".")){if(this.consumeToken(),!(!this.hasWhitespace()&&this.accept(em.ParenthesisL)))return this.restoreAtMark(e),null;{let t=this.create(i0);if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(em.Comma)||this.accept(em.SemiColon))&&!this.peek(em.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,rt.IdentifierExpected,[],[em.ParenthesisR]);if(!this.accept(em.ParenthesisR))return this.restoreAtMark(e),null;}}if(!this.peek(em.CurlyL))return null;let t=this.create(t3);return this._parseBody(t,this._parseDetachedRuleSetBody.bind(this)),this.finish(t);}_parseDetachedRuleSetBody(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration();}_addLookupChildren(e){if(!e.addChild(this._parseLookupValue()))return!1;let t=!1;for(;this.peek(em.BracketL)&&(t=!0),e.addChild(this._parseLookupValue());)t=!1;return!t;}_parseLookupValue(){let e=this.create(tY),t=this.mark();return this.accept(em.BracketL)&&((e.addChild(this._parseVariable(!1,!0))||e.addChild(this._parsePropertyIdentifier()))&&this.accept(em.BracketR)||this.accept(em.BracketR))?e:(this.restoreAtMark(t),null);}_parseVariable(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!e&&this.peekDelim("$");if(!this.peekDelim("@")&&!i&&!this.peek(em.AtKeyword))return null;let r=this.create(iG),n=this.mark();for(;this.acceptDelim("@")||!e&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(n),null;return!this.accept(em.AtKeyword)&&!this.accept(em.Ident)||!t&&this.peek(em.BracketL)&&!this._addLookupChildren(r)?(this.restoreAtMark(n),null):r;}_parseTermExpression(){return this._parseVariable()||this._parseEscaped()||super._parseTermExpression()||this._tryParseMixinReference(!1);}_parseEscaped(){if(this.peek(em.EscapedJavaScript)||this.peek(em.BadEscapedJavaScript)){let e=this.createNode(eg.EscapedValue);return this.consumeToken(),this.finish(e);}if(this.peekDelim("~")){let e=this.createNode(eg.EscapedValue);return(this.consumeToken(),this.accept(em.String)||this.accept(em.EscapedJavaScript))?this.finish(e):this.finish(e,rt.TermExpected);}return null;}_parseOperator(){let e=this._parseGuardOperator();return e||super._parseOperator();}_parseGuardOperator(){if(this.peekDelim(">")){let e=this.createNode(eg.Operator);return this.consumeToken(),this.acceptDelim("="),e;}if(this.peekDelim("=")){let e=this.createNode(eg.Operator);return this.consumeToken(),this.acceptDelim("<"),e;}if(this.peekDelim("<")){let e=this.createNode(eg.Operator);return this.consumeToken(),this.acceptDelim("="),e;}return null;}_parseRuleSetDeclaration(){return this.peek(em.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||this._parseRuleSetDeclarationAtStatement():this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||this._parseDeclaration();}_parseKeyframeIdent(){return this._parseIdent([e_.Keyframe])||this._parseVariable();}_parseKeyframeSelector(){return this._parseDetachedRuleSetMixin()||super._parseKeyframeSelector();}_parseSelector(e){let t=this.create(t7),i=!1;for(e&&(i=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());){i=!0;let e=this.mark();if(t.addChild(this._parseGuard())&&this.peek(em.CurlyL))break;this.restoreAtMark(e),t.addChild(this._parseCombinator());}return i?this.finish(t):null;}_parseNestingSelector(){if(this.peekDelim("&")){let e=this.createNode(eg.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(em.Num)||this.accept(em.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e);}return null;}_parseSelectorIdent(){if(!this.peekInterpolatedIdent())return null;let e=this.createNode(eg.SelectorInterpolation);return this._acceptInterpolatedIdent(e)?this.finish(e):null;}_parsePropertyIdentifier(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,t))return null;let i=this.mark(),r=this.create(t2);r.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");return(e?r.isCustomProperty?r.addChild(this._parseIdent()):r.addChild(this._parseRegexp(t)):r.isCustomProperty?this._acceptInterpolatedIdent(r):this._acceptInterpolatedIdent(r,t))?(e||this.hasWhitespace()||(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(r)):(this.restoreAtMark(i),null);}peekInterpolatedIdent(){return this.peek(em.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-");}_acceptInterpolatedIdent(e,t){let i=!1,r=()=>{let e=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(e),null):this._parseInterpolation();},n=t?()=>this.acceptRegexp(t):()=>this.accept(em.Ident);for(;(n()||e.addChild(this._parseInterpolation()||this.try(r)))&&(i=!0,!this.hasWhitespace()););return i;}_parseInterpolation(){let e=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){let t=this.createNode(eg.Interpolation);return(this.consumeToken(),this.hasWhitespace()||!this.accept(em.CurlyL))?(this.restoreAtMark(e),null):t.addChild(this._parseIdent())?this.accept(em.CurlyR)?this.finish(t):this.finish(t,rt.RightCurlyExpected):this.finish(t,rt.IdentifierExpected);}return null;}_tryParseMixinDeclaration(){let e=this.mark(),t=this.create(i0);if(!t.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(em.ParenthesisL))return this.restoreAtMark(e),null;if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(em.Comma)||this.accept(em.SemiColon))&&!this.peek(em.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,rt.IdentifierExpected,[],[em.ParenthesisR]);return this.accept(em.ParenthesisR)&&(t.setGuard(this._parseGuard()),this.peek(em.CurlyL))?this._parseBody(t,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(e),null);}_parseMixInBodyDeclaration(){return this._parseFontFace()||this._parseRuleSetDeclaration();}_parseMixinDeclarationIdentifier(){let e;if(this.peekDelim("#")||this.peekDelim(".")){if(e=this.create(t2),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseIdent()))return null;}else{if(!this.peek(em.Hash))return null;e=this.create(t2),this.consumeToken();}return e.referenceTypes=[e_.Mixin],this.finish(e);}_parsePseudo(){if(!this.peek(em.Colon))return null;let e=this.mark(),t=this.create(iJ);return(this.consumeToken(),this.acceptIdent("extend"))?this._completeExtends(t):(this.restoreAtMark(e),super._parsePseudo());}_parseExtend(){if(!this.peekDelim("&"))return null;let e=this.mark(),t=this.create(iJ);return(this.consumeToken(),!this.hasWhitespace()&&this.accept(em.Colon)&&this.acceptIdent("extend"))?this._completeExtends(t):(this.restoreAtMark(e),null);}_completeExtends(e){if(!this.accept(em.ParenthesisL))return this.finish(e,rt.LeftParenthesisExpected);let t=e.getSelectors();if(!t.addChild(this._parseSelector(!0)))return this.finish(e,rt.SelectorExpected);for(;this.accept(em.Comma);)if(!t.addChild(this._parseSelector(!0)))return this.finish(e,rt.SelectorExpected);return this.accept(em.ParenthesisR)?this.finish(e):this.finish(e,rt.RightParenthesisExpected);}_parseDetachedRuleSetMixin(){if(!this.peek(em.AtKeyword))return null;let e=this.mark(),t=this.create(iY);return t.addChild(this._parseVariable(!0))&&(this.hasWhitespace()||!this.accept(em.ParenthesisL))?(this.restoreAtMark(e),null):this.accept(em.ParenthesisR)?this.finish(t):this.finish(t,rt.RightParenthesisExpected);}_tryParseMixinReference(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=this.mark(),i=this.create(iY),r=this._parseMixinDeclarationIdentifier();for(;r;){this.acceptDelim(">");let e=this._parseMixinDeclarationIdentifier();if(e)i.getNamespaces().addChild(r),r=e;else break;}if(!i.setIdentifier(r))return this.restoreAtMark(t),null;let n=!1;if(this.accept(em.ParenthesisL)){if(n=!0,i.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(em.Comma)||this.accept(em.SemiColon))&&!this.peek(em.ParenthesisR);)if(!i.getArguments().addChild(this._parseMixinArgument()))return this.finish(i,rt.ExpressionExpected);}if(!this.accept(em.ParenthesisR))return this.finish(i,rt.RightParenthesisExpected);r.referenceTypes=[e_.Mixin];}else r.referenceTypes=[e_.Mixin,e_.Rule];return(this.peek(em.BracketL)?e||this._addLookupChildren(i):i.addChild(this._parsePrio()),n||this.peek(em.SemiColon)||this.peek(em.CurlyR)||this.peek(em.EOF))?this.finish(i):(this.restoreAtMark(t),null);}_parseMixinArgument(){let e=this.create(il),t=this.mark(),i=this._parseVariable();return(i&&(this.accept(em.Colon)?e.setIdentifier(i):this.restoreAtMark(t)),e.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0)))?this.finish(e):(this.restoreAtMark(t),null);}_parseMixinParameter(){let e=this.create(io);if(this.peekKeyword("@rest")){let t=this.create(tY);return(this.consumeToken(),this.accept(se))?(e.setIdentifier(this.finish(t)),this.finish(e)):this.finish(e,rt.DotExpected,[],[em.Comma,em.ParenthesisR]);}if(this.peek(se)){let t=this.create(tY);return this.consumeToken(),e.setIdentifier(this.finish(t)),this.finish(e);}let t=!1;return(e.setIdentifier(this._parseVariable())&&(this.accept(em.Colon),t=!0),e.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))||t)?this.finish(e):null;}_parseGuard(){if(!this.peekIdent("when"))return null;let e=this.create(i5);if(this.consumeToken(),!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,rt.ConditionExpected);for(;this.acceptIdent("and")||this.accept(em.Comma);)if(!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,rt.ConditionExpected);return this.finish(e);}_parseGuardCondition(){let e=this.create(i4);return(e.isNegated=this.acceptIdent("not"),this.accept(em.ParenthesisL))?(!e.addChild(this._parseExpr()),this.accept(em.ParenthesisR))?this.finish(e):this.finish(e,rt.RightParenthesisExpected):e.isNegated?this.finish(e,rt.LeftParenthesisExpected):null;}_parseFunction(){let e=this.mark(),t=this.create(ia);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(em.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseMixinArgument())){for(;(this.accept(em.Comma)||this.accept(em.SemiColon))&&!this.peek(em.ParenthesisR);)if(!t.getArguments().addChild(this._parseMixinArgument()))return this.finish(t,rt.ExpressionExpected);}return this.accept(em.ParenthesisR)?this.finish(t):this.finish(t,rt.RightParenthesisExpected);}_parseFunctionIdentifier(){if(this.peekDelim("%")){let e=this.create(t2);return e.referenceTypes=[e_.Function],this.consumeToken(),this.finish(e);}return super._parseFunctionIdentifier();}_parseURLArgument(){let e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(em.ParenthesisR)){this.restoreAtMark(e);let t=this.create(tY);return t.addChild(this._parseBinaryExpr()),this.finish(t);}return t;}constructor(){super(new st());}}class sr extends nr{createFunctionProposals(e,t,i,r){for(let n of e){let e={label:n.name,detail:n.example,documentation:n.description,textEdit:eV.replace(this.getCompletionRange(t),n.name+"($0)"),insertTextFormat:e0.Snippet,kind:eY.Function};i&&(e.sortText="z"),r.items.push(e);}return r;}getTermProposals(e,t,i){let r=sr.builtInProposals;return e&&(r=r.filter(t=>!t.type||!e.restrictions||-1!==e.restrictions.indexOf(t.type))),this.createFunctionProposals(r,t,!0,i),super.getTermProposals(e,t,i);}getColorProposals(e,t,i){return this.createFunctionProposals(sr.colorProposals,t,!1,i),super.getColorProposals(e,t,i);}getCompletionsForDeclarationProperty(e,t){return this.getCompletionsForSelector(null,!0,t),super.getCompletionsForDeclarationProperty(e,t);}constructor(e,t){super("@",e,t);}}function sn(e,t){var i,r;let n,s,a,o;return i=function(e){function t(t){return e.positionAt(t.offset).line;}function i(t){return e.positionAt(t.offset+t.len).line;}let r=[],n=[],s=function(){switch(e.languageId){case"scss":return new n2();case"less":return new st();default:return new tq();}}();s.ignoreComment=!1,s.setSource(e.getText());let a=s.scan(),o=null;for(;a.type!==em.EOF;){switch(a.type){case em.CurlyL:case nJ:n.push({line:t(a),type:"brace",isStart:!0});break;case em.CurlyR:if(0!==n.length){let e=ss(n,"brace");if(!e)break;let t=i(a);"brace"===e.type&&(o&&i(o)!==t&&t--,e.line!==t&&r.push({startLine:e.line,endLine:t,kind:void 0}));}break;case em.Comment:{let s=e=>"#region"===e?{line:t(a),type:"comment",isStart:!0}:{line:i(a),type:"comment",isStart:!1},o=(t=>{let i=t.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(i)return s(i[1]);if("scss"===e.languageId||"less"===e.languageId){let e=t.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(e)return s(e[1]);}return null;})(a);if(o){if(o.isStart)n.push(o);else{let e=ss(n,"comment");if(!e)break;"comment"===e.type&&e.line!==o.line&&r.push({startLine:e.line,endLine:o.line,kind:"region"});}}else{let e=function(e,r){let n=t(e),s=i(e);return n!==s?{startLine:n,endLine:s,kind:r}:null;}(a,"comment");e&&r.push(e);}}}o=a,a=s.scan();}return r;}(e),n=(r=t)&&r.rangeLimit||Number.MAX_VALUE,s=i.sort((e,t)=>{let i=e.startLine-t.startLine;return 0===i&&(i=e.endLine-t.endLine),i;}),a=[],o=-1,(s.forEach(e=>{e.startLine<o&&o<e.endLine||(a.push(e),o=e.endLine);}),a.length<n)?a:a.slice(0,n);}function ss(e,t){if(0===e.length)return null;for(let i=e.length-1;i>=0;i--)if(e[i].type===t&&e[i].isStart)return e.splice(i,1)[0];return null;}sr.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:i8("returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:i8('"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:i8("returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:i8("returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:i8("generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:i8("bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:i8("URL encodes a string")},{name:"e",example:"e(@string);",description:i8("escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:i8("string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:i8("remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:i8("parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:i8("converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:i8("inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:i8("absolute value of a number"),example:"abs(number);"},{name:"acos",description:i8("arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:i8("arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:i8("rounds up to an integer")},{name:"cos",description:i8("cosine function"),example:"cos(number);"},{name:"floor",description:i8("rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:i8("converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:i8("rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:i8("calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:i8("sine function"),example:"sin(number);"},{name:"tan",description:i8("tangent function"),example:"tan(number);"},{name:"atan",description:i8("arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:i8("returns pi"),example:"pi();"},{name:"pow",description:i8("first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:i8("first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:i8("returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:i8("returns the lowest of one or more values"),example:"max(@x, @y);"}],sr.colorProposals=[{name:"argb",example:"argb(@color);",description:i8("creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:i8("creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:i8("creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:i8("creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:i8("creates a color")},{name:"hue",example:"hue(@color);",description:i8("returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:i8("returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:i8("returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:i8("returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:i8("returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:i8("returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:i8("returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:i8("returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:i8("returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:i8("returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:i8("returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:i8("return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:i8("return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:i8("return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:i8("return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:i8("return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:i8("return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:i8("return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:i8("return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:i8("return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:i8("returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:i8("return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],ed=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[];}function i(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length;}function r(e,r){this.__indent_cache=new i(e,r),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline();}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e;},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e];},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1;},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count));},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count);},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count;},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0;}return!1;},t.prototype.is_empty=function(){return 0===this.__items.length;},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1];},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length;},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e;},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size);},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1);},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1;},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count)+this.__items.join(""),e;},i.prototype.get_indent_size=function(e,t){var i=this.__base_string_length;return t=t||0,e<0&&(i=0),i+=e*this.__indent_size,i+=t;},i.prototype.get_indent_string=function(e,t){var i=this.__base_string;return e<0&&(e=0,i=""),t=(t||0)+e*this.__indent_size,this.__ensure_cache(t),i+=this.__cache[t];},i.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column();},i.prototype.__add_column=function(){var e=this.__cache.length,t=0,i="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,i=Array(t+1).join(this.__indent_string)),e&&(i+=Array(e+1).join(" ")),this.__cache.push(i);},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line);},r.prototype.get_line_number=function(){return this.__lines.length;},r.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t);},r.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t);},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty();},r.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0);},r.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join("\n");return"\n"!==e&&(i=i.replace(/[\n]/g,e)),i;},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point();},r.prototype.set_indent=function(e,t){return(e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1)?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1);},r.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1;},r.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap();},r.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "));},r.prototype.remove_indent=function(e){for(var t=this.__lines.length;e<t;)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent();},r.prototype.trim=function(e){for(e=void 0!==e&&e,this.current_line.trim();e&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null;},r.prototype.just_added_newline=function(){return this.current_line.is_empty();},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty();},r.prototype.ensure_empty_line_above=function(e,i){for(var r=this.__lines.length-2;r>=0;){var n=this.__lines[r];if(n.is_empty())break;if(0!==n.item(0).indexOf(e)&&n.item(-1)!==i){this.__lines.splice(r+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break;}r--;}},e.exports.Output=r;},,,,function(e){function t(e,t){this.raw_options=i(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs"," "===this.indent_char),this.indent_with_tabs&&(this.indent_char=" ",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"]);}function i(e,t){var i,n={};for(i in e=r(e))i!==t&&(n[i]=e[i]);if(t&&e[t])for(i in e[t])n[i]=e[t][i];return n;}function r(e){var t,i={};for(t in e)i[t.replace(/-/g,"_")]=e[t];return i;}t.prototype._get_array=function(e,t){var i=this.raw_options[e],r=t||[];return"object"==typeof i?null!==i&&"function"==typeof i.concat&&(r=i.concat()):"string"==typeof i&&(r=i.split(/[^a-zA-Z0-9_\/\-]+/)),r;},t.prototype._get_boolean=function(e,t){var i=this.raw_options[e];return void 0===i?!!t:!!i;},t.prototype._get_characters=function(e,t){var i=this.raw_options[e],r=t||"";return"string"==typeof i&&(r=i.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/," ")),r;},t.prototype._get_number=function(e,t){var i=this.raw_options[e];isNaN(t=parseInt(t,10))&&(t=0);var r=parseInt(i,10);return isNaN(r)&&(r=t),r;},t.prototype._get_selection=function(e,t,i){var r=this._get_selection_list(e,t,i);if(1!==r.length)throw Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r[0];},t.prototype._get_selection_list=function(e,t,i){if(!t||0===t.length)throw Error("Selection list cannot be empty.");if(i=i||[t[0]],!this._is_valid_selection(i,t))throw Error("Invalid Default Value!");var r=this._get_array(e,i);if(!this._is_valid_selection(r,t))throw Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r;},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(e){return-1===t.indexOf(e);});},e.exports.Options=t,e.exports.normalizeOpts=r,e.exports.mergeOpts=i;},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function i(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0;}i.prototype.restart=function(){this.__position=0;},i.prototype.back=function(){this.__position>0&&(this.__position-=1);},i.prototype.hasNext=function(){return this.__position<this.__input_length;},i.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e;},i.prototype.peek=function(e){var t=null;return(e=(e||0)+this.__position)>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t;},i.prototype.__match=function(e,i){e.lastIndex=i;var r=e.exec(this.__input);return r&&!(t&&e.sticky)&&r.index!==i&&(r=null),r;},i.prototype.test=function(e,t){return(t=(t||0)+this.__position)>=0&&t<this.__input_length&&!!this.__match(e,t);},i.prototype.testChar=function(e,t){var i=this.peek(t);return e.lastIndex=0,null!==i&&e.test(i);},i.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t;},i.prototype.read=function(e,t,i){var r,n="";return e&&(r=this.match(e))&&(n+=r[0]),t&&(r||!e)&&(n+=this.readUntil(t,i)),n;},i.prototype.readUntil=function(e,t){var i="",r=this.__position;e.lastIndex=this.__position;var n=e.exec(this.__input);return n?(r=n.index,t&&(r+=n[0].length)):r=this.__input_length,i=this.__input.substring(this.__position,r),this.__position=r,i;},i.prototype.readUntilAfter=function(e){return this.readUntil(e,!0);},i.prototype.get_regexp=function(e,i){var r=null,n="g";return i&&t&&(n="y"),"string"==typeof e&&""!==e?r=new RegExp(e,n):e&&(r=new RegExp(e.source,n)),r;},i.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));},i.prototype.peekUntilAfter=function(e){var t=this.__position,i=this.readUntilAfter(e);return this.__position=t,i;},i.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e;},e.exports.InputScanner=i;},,,,,function(e){function t(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=RegExp(e+/\sbeautify\signore:end\s/.source+t,"g");}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var i=this.__directive_pattern.exec(e);i;)t[i[1]]=i[2],i=this.__directive_pattern.exec(e);return t;},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern);},e.exports.Directives=t;},,function(e,t,i){var r=i(16).Beautifier,n=i(17).Options;e.exports=function(e,t){return new r(e,t).beautify();},e.exports.defaultOptions=function(){return new n();};},function(e,t,i){var r=i(17).Options,n=i(2).Output,s=i(8).InputScanner,a=new(i(13).Directives)(/\/\*/,/\*\//),o=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,h=/\s/,c=/(?:\s|\n)+/g,u=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,p=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function d(e,t){this._source_text=e||"",this._options=new r(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"];}d.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next();}return t;},d.prototype.eatWhitespace=function(e){for(var t=h.test(this._input.peek()),i=0;h.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===i||i<this._options.max_preserve_newlines)&&(i++,this._output.add_new_line(!0));return t;},d.prototype.foundNestedPseudoClass=function(){for(var e=0,t=1,i=this._input.peek(t);i;){if("{"===i)return!0;if("("===i)e+=1;else if(")"===i){if(0===e)return!1;e-=1;}else if(";"===i||"}"===i)break;t++,i=this._input.peek(t);}return!1;},d.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e);},d.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0);},d.prototype.indent=function(){this._indentLevel++;},d.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--;},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e,t,i=this._source_text,r=this._options.eol;"auto"===r&&(r="\n",i&&o.test(i||"")&&(r=i.match(o)[0]));var d=(i=i.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new n(this._options,d),this._input=new s(i),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var f=0,m=!1,g=!1,_=!1,y=!1,b=!1,x=this._ch,C=!1;;)if(e=""!==this._input.read(c),t=x,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),x=this._ch,this._ch){if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var k=this._input.read(u),v=a.get_directives(k);v&&"start"===v.ignore&&(k+=a.readIgnored(this._input)),this.print_string(k),this.eatWhitespace(!0),this._output.add_new_line();}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(p)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(e),this.print_string(this._ch);var S=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);S.match(/[ :]$/)&&(S=this.eatString(": ").replace(/\s+$/,""),this.print_string(S),this._output.space_before_token=!0),0===f&&-1!==S.indexOf(":")&&(g=!0,this.indent());}else if("@"===this._ch){if(this.preserveSingleSpace(e),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var w=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);w.match(/[ :]$/)&&(w=this.eatString(": ").replace(/\s+$/,""),this.print_string(w),this._output.space_before_token=!0),0===f&&-1!==w.indexOf(":")?(g=!0,this.indent()):w in this.NESTED_AT_RULE?(this._nestedLevel+=1,w in this.CONDITIONAL_GROUP_RULE&&(_=!0)):0!==f||g||(y=!0);}}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(e),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)g&&(g=!1,this.outdent()),y=!1,_?(_=!1,m=this._indentLevel>=this._nestedLevel):m=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&m&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===t?this._output.space_before_token=!1:","!==t&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===t&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),m=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var P=0;P<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;P++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[P])){C=!0;break;}!m&&!_||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||y||0!==f?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()));}else if('"'===this._ch||"'"===this._ch){var E='"'===t||"'"===t;this.preserveSingleSpace(E||e),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0);}else if(";"===this._ch)C=!1,0===f?(g&&(this.outdent(),g=!1),y=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if("("===this._ch){if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),f++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),f&&(f--,this.outdent()));else{var R=!1;this._input.lookBack("with")&&(R=!0),this.preserveSingleSpace(e||R),this.print_string(this._ch),g&&"$"===t&&this._options.selector_separator_newline?(this._output.add_new_line(),b=!0):(this.eatWhitespace(),f++,this.indent());}}else if(")"===this._ch)f&&(f--,this.outdent()),b&&";"===this._input.peek()&&this._options.selector_separator_newline&&(b=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!g||b)&&0===f&&!y?this._output.add_new_line():this._output.space_before_token=!0;else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==f){if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(e),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),h.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var I='"'===t||"'"===t;this.preserveSingleSpace(I||e),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&C&&this._output.add_new_line();}else this._output.space_before_token=!0,this.print_string(this._ch);}else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&h.test(this._ch)&&(this._ch=""));}else break;return this._output.get_code(r);},e.exports.Beautifier=d;},function(e,t,i){var r=i(6).Options;function n(e){r.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var n=0;n<i.length;n++)"expand"!==i[n]?this.brace_style="collapse":this.brace_style=i[n];}n.prototype=new r(),e.exports.Options=n;}],ef={};var sa=function e(t){var i=ef[t];if(void 0!==i)return i.exports;var r=ef[t]={exports:{}};return ed[t](r,r.exports,e),r.exports;}(15);function so(e,t,i){let r=e.getText(),n=!0,s=0,a=!1,o=i.tabSize||4;if(t){let o=e.offsetAt(t.start),l=o;for(;l>0&&su(r,l-1);)l--;0===l||sc(r,l-1)?o=l:l<o&&(o=l+1);let h=e.offsetAt(t.end),c=h;for(;c<r.length&&su(r,c);)c++;if((c===r.length||sc(r,c))&&(h=c),t=eS.create(e.positionAt(o),e.positionAt(h)),a=function(e,t){for(;t>=0;){let i=e.charCodeAt(t);if(123===i)return!0;if(125===i)break;t--;}return!1;}(r,o),n=h===r.length,r=r.substring(o,h),0!==o){let r=e.offsetAt(ev.create(t.start.line,0));s=function(e,t,i){let r=t,n=0,s=i.tabSize||4;for(;r<e.length;){let t=e.charAt(r);if(" "===t)n++;else if(" "===t)n+=s;else break;r++;}return Math.floor(n/s);}(e.getText(),r,i);}a&&(r=`{
7
+ ${sl(r)}`);}else t=eS.create(ev.create(0,0),e.positionAt(r.length));let l=sa(r,{indent_size:o,indent_char:i.insertSpaces?" ":" ",end_with_newline:n&&sh(i,"insertFinalNewline",!1),selector_separator_newline:sh(i,"newlineBetweenSelectors",!0),newline_between_rules:sh(i,"newlineBetweenRules",!0),space_around_selector_separator:sh(i,"spaceAroundSelectorSeparator",!1),brace_style:sh(i,"braceStyle","collapse"),indent_empty_lines:sh(i,"indentEmptyLines",!1),max_preserve_newlines:sh(i,"maxPreserveNewLines",void 0),preserve_newlines:sh(i,"preserveNewLines",!0),wrap_line_length:sh(i,"wrapLineLength",void 0),eol:"\n"});if(a&&(l=sl(l.substring(2))),s>0){let e=i.insertSpaces?tJ(" ",o*s):tJ(" ",s);l=l.split("\n").join("\n"+e),0===t.start.character&&(l=e+l);}return[{range:t,newText:l}];}function sl(e){return e.replace(/^\s+/,"");}function sh(e,t,i){if(e&&e.hasOwnProperty(t)){let i=e[t];if(null!==i)return i;}return i;}function sc(e,t){return-1!=="\r\n".indexOf(e.charAt(t));}function su(e,t){return-1!==" ".indexOf(e.charAt(t));}var sp=i(45483);class sd{provideProperties(){return this._properties;}provideAtDirectives(){return this._atDirectives;}providePseudoClasses(){return this._pseudoClasses;}providePseudoElements(){return this._pseudoElements;}addData(e){if(Array.isArray(e.properties))for(let t of e.properties)"string"==typeof t.name&&this._properties.push(t);if(Array.isArray(e.atDirectives))for(let t of e.atDirectives)"string"==typeof t.name&&this._atDirectives.push(t);if(Array.isArray(e.pseudoClasses))for(let t of e.pseudoClasses)"string"==typeof t.name&&this._pseudoClasses.push(t);if(Array.isArray(e.pseudoElements))for(let t of e.pseudoElements)"string"==typeof t.name&&this._pseudoElements.push(t);}constructor(e){this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.addData(e);}}class sf{setDataProviders(e,t){this.dataProviders=[],e&&this.dataProviders.push(new sd(sp.U)),this.dataProviders.push(...t),this.collectData();}collectData(){this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this.dataProviders.forEach(e=>{e.provideProperties().forEach(e=>{this._propertySet[e.name]||(this._propertySet[e.name]=e);}),e.provideAtDirectives().forEach(e=>{this._atDirectiveSet[e.name]||(this._atDirectiveSet[e.name]=e);}),e.providePseudoClasses().forEach(e=>{this._pseudoClassSet[e.name]||(this._pseudoClassSet[e.name]=e);}),e.providePseudoElements().forEach(e=>{this._pseudoElementSet[e.name]||(this._pseudoElementSet[e.name]=e);});}),this._properties=rF(this._propertySet),this._atDirectives=rF(this._atDirectiveSet),this._pseudoClasses=rF(this._pseudoClassSet),this._pseudoElements=rF(this._pseudoElementSet);}getProperty(e){return this._propertySet[e];}getAtDirective(e){return this._atDirectiveSet[e];}getPseudoClass(e){return this._pseudoClassSet[e];}getPseudoElement(e){return this._pseudoElementSet[e];}getProperties(){return this._properties;}getAtDirectives(){return this._atDirectives;}getPseudoClasses(){return this._pseudoClasses;}getPseudoElements(){return this._pseudoElements;}isKnownProperty(e){return e.toLowerCase()in this._propertySet;}isStandardProperty(e){return this.isKnownProperty(e)&&(!this._propertySet[e.toLowerCase()].status||"standard"===this._propertySet[e.toLowerCase()].status);}constructor(e){this.dataProviders=[],this._propertySet={},this._atDirectiveSet={},this._pseudoClassSet={},this._pseudoElementSet={},this._properties=[],this._atDirectives=[],this._pseudoClasses=[],this._pseudoElements=[],this.setDataProviders((null==e?void 0:e.useDefaultDataProvider)!==!1,(null==e?void 0:e.customDataProviders)||[]);}}function sm(e,t,i){return t.map(function(t){let r,n=function(t){let r=e.offsetAt(t),n=i.findChildAtOffset(r,!0);if(!n)return[];let s=[];for(;n;){if(n.parent&&n.offset===n.parent.offset&&n.end===n.parent.end){n=n.parent;continue;}n.type===eg.Declarations&&r>n.offset&&r<n.end&&s.push([n.offset+1,n.end-1]),s.push([n.offset,n.end]),n=n.parent;}return s;}(t);for(let t=n.length-1;t>=0;t--)r=tm.create(eS.create(e.positionAt(n[t][0]),e.positionAt(n[t][1])),r);return r||(r=tm.create(eS.create(t,t))),r;});}class sg extends nv{isRawStringDocumentLinkNode(e){return super.isRawStringDocumentLinkNode(e)||e.type===eg.Use||e.type===eg.Forward;}async mapReference(e,t){if(this.fileSystemProvider&&e&&t){for(let t of function(e){if(e.endsWith(".css"))return[e];if(e.endsWith("/"))return[e+"index.scss",e+"_index.scss"];let t=r2.parse(e.replace(/\.scss$/,"")),i=r5.basename(t),r=r5.dirname(t);return i.startsWith("_")?[r5.joinPath(r,i+".scss").toString(!0)]:[r5.joinPath(r,i+".scss").toString(!0),r5.joinPath(r,"_"+i+".scss").toString(!0),e+"/index.scss",e+"/_index.scss",r5.joinPath(r,i+".css").toString(!0)];}(e))if(await this.fileExists(t))return t;}return e;}async resolveReference(e,t,i){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!tH(e,"sass:"))return super.resolveReference(e,t,i,r);}constructor(e){super(e,!0);}}function s_(e,t,i,r,n,s,a){return{configure:e=>{s.configure(e),t.configure(null==e?void 0:e.completion),i.configure(null==e?void 0:e.hover),r.configure(null==e?void 0:e.importAliases);},setDataProviders:a.setDataProviders.bind(a),doValidation:s.doValidation.bind(s),parseStylesheet:e.parseStylesheet.bind(e),doComplete:t.doComplete.bind(t),doComplete2:t.doComplete2.bind(t),setCompletionParticipants:t.setCompletionParticipants.bind(t),doHover:i.doHover.bind(i),format:so,findDefinition:r.findDefinition.bind(r),findReferences:r.findReferences.bind(r),findDocumentHighlights:r.findDocumentHighlights.bind(r),findDocumentLinks:r.findDocumentLinks.bind(r),findDocumentLinks2:r.findDocumentLinks2.bind(r),findDocumentSymbols:r.findSymbolInformations.bind(r),findDocumentSymbols2:r.findDocumentSymbols.bind(r),doCodeActions:n.doCodeActions.bind(n),doCodeActions2:n.doCodeActions2.bind(n),findDocumentColors:r.findDocumentColors.bind(r),getColorPresentations:r.getColorPresentations.bind(r),prepareRename:r.prepareRename.bind(r),doRename:r.doRename.bind(r),getFoldingRanges:sn,getSelectionRanges:sm};}let sy={};class sb{async doValidation(e){let t=this._getTextDocument(e);if(t){let e=this._languageService.parseStylesheet(t);return Promise.resolve(this._languageService.doValidation(t,e));}return Promise.resolve([]);}async doComplete(e,t){let i=this._getTextDocument(e);if(!i)return null;let r=this._languageService.parseStylesheet(i);return Promise.resolve(this._languageService.doComplete(i,t,r));}async doHover(e,t){let i=this._getTextDocument(e);if(!i)return null;let r=this._languageService.parseStylesheet(i);return Promise.resolve(this._languageService.doHover(i,t,r));}async findDefinition(e,t){let i=this._getTextDocument(e);if(!i)return null;let r=this._languageService.parseStylesheet(i);return Promise.resolve(this._languageService.findDefinition(i,t,r));}async findReferences(e,t){let i=this._getTextDocument(e);if(!i)return[];let r=this._languageService.parseStylesheet(i);return Promise.resolve(this._languageService.findReferences(i,t,r));}async findDocumentHighlights(e,t){let i=this._getTextDocument(e);if(!i)return[];let r=this._languageService.parseStylesheet(i);return Promise.resolve(this._languageService.findDocumentHighlights(i,t,r));}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let i=this._languageService.parseStylesheet(t);return Promise.resolve(this._languageService.findDocumentSymbols(t,i));}async doCodeActions(e,t,i){let r=this._getTextDocument(e);if(!r)return[];let n=this._languageService.parseStylesheet(r);return Promise.resolve(this._languageService.doCodeActions(r,t,i,n));}async findDocumentColors(e){let t=this._getTextDocument(e);if(!t)return[];let i=this._languageService.parseStylesheet(t);return Promise.resolve(this._languageService.findDocumentColors(t,i));}async getColorPresentations(e,t,i){let r=this._getTextDocument(e);if(!r)return[];let n=this._languageService.parseStylesheet(r);return Promise.resolve(this._languageService.getColorPresentations(r,n,t,i));}async getFoldingRanges(e,t){let i=this._getTextDocument(e);return i?Promise.resolve(this._languageService.getFoldingRanges(i,t)):[];}async getSelectionRanges(e,t){let i=this._getTextDocument(e);if(!i)return[];let r=this._languageService.parseStylesheet(i);return Promise.resolve(this._languageService.getSelectionRanges(i,t,r));}async doRename(e,t,i){let r=this._getTextDocument(e);if(!r)return null;let n=this._languageService.parseStylesheet(r);return Promise.resolve(this._languageService.doRename(r,t,i,n));}async format(e,t,i){let r=this._getTextDocument(e);if(!r)return[];let n={...this._languageSettings.format,...i};return Promise.resolve(this._languageService.format(r,t,n));}_getTextDocument(e){for(let t of this._ctx.getMirrorModels())if(t.uri.toString()===e)return tL.create(e,this._languageId,t.version,t.getValue());return null;}constructor(e,t){this._ctx=e,this._languageSettings=t.options,this._languageId=t.languageId;const i=t.options.data,r=null==i?void 0:i.useDefaultDataProvider,n=[];if(null==i?void 0:i.dataProviders)for(const e in i.dataProviders)n.push(function(e){return new sd(e);}(i.dataProviders[e]));const s={customDataProviders:n,useDefaultDataProvider:r};switch(this._languageId){case"css":this._languageService=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sy,t=new sf(e);return s_(new rV(),new nr(null,e,t),new nx(e&&e.clientCapabilities,t),new nv(e&&e.fileSystemProvider,!1),new nF(t),new nH(t),t);}(s);break;case"less":this._languageService=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sy,t=new sf(e);return s_(new si(),new sr(e,t),new nx(e&&e.clientCapabilities,t),new nv(e&&e.fileSystemProvider,!0),new nF(t),new nH(t),t);}(s);break;case"scss":this._languageService=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sy,t=new sf(e);return s_(new n3(),new n7(e,t),new nx(e&&e.clientCapabilities,t),new sg(e&&e.fileSystemProvider),new nF(t),new nH(t),t);}(s);break;default:throw Error("Invalid language id: "+this._languageId);}this._languageService.configure(this._languageSettings);}}self.onmessage=()=>{var e;e=(e,t)=>new sb(e,t),self.onmessage=t=>{let i,r;r=(0,tU.n)(n=>{let s=tW.M.getChannel(n);return i=(i=>e(i,t.data))({host:new Proxy({},{get(e,t,i){if("then"!==t){if("string"!=typeof t)throw Error("Not supported");return function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return s.$fhr(t,i);};}}}),getMirrorModels:()=>r.requestHandler.getModels()}),new tB.Q(i);});};};}}]);