libre-webui 0.31.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) hide show
  1. package/backend/dist/index.d.ts.map +1 -1
  2. package/backend/dist/index.js +6 -1
  3. package/backend/dist/index.js.map +1 -1
  4. package/backend/dist/middleware/staticAssets.d.ts +29 -0
  5. package/backend/dist/middleware/staticAssets.d.ts.map +1 -0
  6. package/backend/dist/middleware/staticAssets.js +141 -0
  7. package/backend/dist/middleware/staticAssets.js.map +1 -0
  8. package/backend/dist/routes/artifacts.d.ts.map +1 -1
  9. package/backend/dist/routes/artifacts.js +4 -2
  10. package/backend/dist/routes/artifacts.js.map +1 -1
  11. package/backend/dist/routes/plugins.d.ts.map +1 -1
  12. package/backend/dist/routes/plugins.js +13 -2
  13. package/backend/dist/routes/plugins.js.map +1 -1
  14. package/backend/dist/routes/preferences.d.ts.map +1 -1
  15. package/backend/dist/routes/preferences.js +40 -1
  16. package/backend/dist/routes/preferences.js.map +1 -1
  17. package/backend/dist/services/appearanceSettingsService.d.ts +20 -0
  18. package/backend/dist/services/appearanceSettingsService.d.ts.map +1 -0
  19. package/backend/dist/services/appearanceSettingsService.js +91 -0
  20. package/backend/dist/services/appearanceSettingsService.js.map +1 -0
  21. package/backend/dist/services/authService.d.ts +3 -0
  22. package/backend/dist/services/authService.d.ts.map +1 -1
  23. package/backend/dist/services/authService.js +2 -0
  24. package/backend/dist/services/authService.js.map +1 -1
  25. package/backend/dist/services/ollamaSettingsService.d.ts.map +1 -1
  26. package/backend/dist/services/ollamaSettingsService.js +7 -2
  27. package/backend/dist/services/ollamaSettingsService.js.map +1 -1
  28. package/backend/dist/services/preferencesService.d.ts +5 -0
  29. package/backend/dist/services/preferencesService.d.ts.map +1 -1
  30. package/backend/dist/services/preferencesService.js +15 -2
  31. package/backend/dist/services/preferencesService.js.map +1 -1
  32. package/backend/dist/services/workPreviewProxyService.d.ts.map +1 -1
  33. package/backend/dist/services/workPreviewProxyService.js +4 -2
  34. package/backend/dist/services/workPreviewProxyService.js.map +1 -1
  35. package/backend/dist/types/index.d.ts +1 -1
  36. package/backend/dist/types/index.d.ts.map +1 -1
  37. package/backend/package.json +1 -1
  38. package/frontend/dist/artifact-runtime/.build-fingerprint +1 -1
  39. package/frontend/dist/assets/index-DegYzMyw.js +70 -0
  40. package/frontend/dist/assets/index-gKj8Y1JB.css +1 -0
  41. package/frontend/dist/assets/xterm-B8QFf3JU.css +1 -0
  42. package/frontend/dist/index.html +62 -40
  43. package/frontend/dist/js/ArtifactContainer-BB6A8cT5.js +1 -0
  44. package/frontend/dist/js/{ArtifactDemoPage-BLF8Ok-o.js → ArtifactDemoPage-Bf1dW5Z3.js} +1 -1
  45. package/frontend/dist/js/{ArtifactSandboxFrame-Cs1Gu1WB.js → ArtifactSandboxFrame-DsZW0Axy.js} +1 -1
  46. package/frontend/dist/js/ArtifactSlideOutPanel-Cartcixp.js +1 -0
  47. package/frontend/dist/js/AutomationModal-BI_3nFeg.js +1 -0
  48. package/frontend/dist/js/AutomationsPage-ChMXj4UG.js +1 -0
  49. package/frontend/dist/js/AvatarUpload-gfZ9QWR3.js +1 -0
  50. package/frontend/dist/js/Button-BQ5JnUVj.js +1 -0
  51. package/frontend/dist/js/CalendarPage-Ce1ud5St.js +1 -0
  52. package/frontend/dist/js/ChannelsPage-kl8zJ2HA.js +1 -0
  53. package/frontend/dist/js/ChatPage-Bj98c6rc.js +14 -0
  54. package/frontend/dist/js/ConnectModels-CPftHmE3.js +1 -0
  55. package/frontend/dist/js/{EvaluationsPage-DOJLpauA.js → EvaluationsPage-Cydglp6R.js} +2 -2
  56. package/frontend/dist/js/FirstTimeSetup-C5cc-bc9.js +1 -0
  57. package/frontend/dist/js/GalleryPage-Dvq2GVoH.js +1 -0
  58. package/frontend/dist/js/HomePage-zVjADRoX.js +1 -0
  59. package/frontend/dist/js/LibreClawPage-x0Qmtcnc.js +1 -0
  60. package/frontend/dist/js/Logo-BlcOFpac.js +1 -0
  61. package/frontend/dist/js/LogoMark-CNeQ6eO9.js +1 -0
  62. package/frontend/dist/js/ModelManagerModals-K1oiXMTv.js +1 -0
  63. package/frontend/dist/js/NotesPage-BnqBv-n1.js +3 -0
  64. package/frontend/dist/js/OptimizedSyntaxHighlighter-CtQ_FGCX.js +2 -0
  65. package/frontend/dist/js/OptimizedSyntaxHighlighter-SkJc7ZMe.js +1 -0
  66. package/frontend/dist/js/PasswordStrengthMeter-DVFLKG_-.js +1 -0
  67. package/frontend/dist/js/{PersonasPage-C3D_6lIx.js → PersonasPage-DK9-SDZQ.js} +2 -2
  68. package/frontend/dist/js/PluginUsagePage-DX9uxdRr.js +1 -0
  69. package/frontend/dist/js/RichMessageContent-BzfhfzQ4.js +1 -0
  70. package/frontend/dist/js/RichMessageContent-XMkRvBen.js +3 -0
  71. package/frontend/dist/js/SettingsModal-CMOwEhkG.js +19 -0
  72. package/frontend/dist/js/SettingsToggle-B7UynBmZ.js +1 -0
  73. package/frontend/dist/js/ShareDialog-CZpU1itx.js +1 -0
  74. package/frontend/dist/js/SystemPage-BVaaKTRs.js +1 -0
  75. package/frontend/dist/js/TurnstileWidget-CEJst9eS.js +1 -0
  76. package/frontend/dist/js/UserManagementPage-DdpcN4-Q.js +1 -0
  77. package/frontend/dist/js/UserManagementPanel-BxAvybHj.js +1 -0
  78. package/frontend/dist/js/WhatsNewModal-CoFCdUpf.js +1 -0
  79. package/frontend/dist/js/WorkPage-Du6llCSU.js +7 -0
  80. package/frontend/dist/js/api-CatP45JH.js +1 -0
  81. package/frontend/dist/js/api-DQdJeQjd.js +14 -0
  82. package/frontend/dist/js/{appNavigation-DfHbXBey.js → appNavigation-DRM2Jr4r.js} +1 -1
  83. package/frontend/dist/js/appStore-BXbVcTeo.js +2 -0
  84. package/frontend/dist/js/appVersion-BUroqcki.js +1 -0
  85. package/frontend/dist/js/ar-C8Izi_rT.js +2 -0
  86. package/frontend/dist/js/authStore-DkqtNSYP.js +4 -0
  87. package/frontend/dist/js/authStore-bqAN5v4N.js +1 -0
  88. package/frontend/dist/js/axios-CYkJpKn8.js +1 -0
  89. package/frontend/dist/js/babel-CY5KOv-I.js +16 -0
  90. package/frontend/dist/js/bn-BJJgi-6Q.js +2 -0
  91. package/frontend/dist/js/chatStore-8jYk48hC.js +3 -0
  92. package/frontend/dist/js/{config-DJwXAf8i.js → config-D4dduT3C.js} +1 -1
  93. package/frontend/dist/js/cs-DheVrMUl.js +2 -0
  94. package/frontend/dist/js/da-BLszIs3a.js +2 -0
  95. package/frontend/dist/js/de-BvWdcr7T.js +2 -0
  96. package/frontend/dist/js/es-CQ8Yauda.js +2 -0
  97. package/frontend/dist/js/estree-CuT_pB8K.js +44 -0
  98. package/frontend/dist/js/{evaluationsApi-BKY-maUM.js → evaluationsApi-CBKjxZUn.js} +1 -1
  99. package/frontend/dist/js/fr-BD5h-w8z.js +2 -0
  100. package/frontend/dist/js/goober.modern-BaHbaW3_.js +1 -0
  101. package/frontend/dist/js/hi-IlRhC5IE.js +2 -0
  102. package/frontend/dist/js/html-Cdnr2qzU.js +25 -0
  103. package/frontend/dist/js/i18next-ChipS_AK.js +1 -0
  104. package/frontend/dist/js/id-DalGMQEJ.js +2 -0
  105. package/frontend/dist/js/is-DuQqmHeS.js +2 -0
  106. package/frontend/dist/js/it-DDaqAdB1.js +2 -0
  107. package/frontend/dist/js/ja-CYCu9F9Y.js +2 -0
  108. package/frontend/dist/js/ko-P3JZPOXE.js +2 -0
  109. package/frontend/dist/js/logger-DnuT4jgB.js +1 -0
  110. package/frontend/dist/js/markdown-CByV-4CU.js +70 -0
  111. package/frontend/dist/js/markdown-core-D067gSd8.js +31 -0
  112. package/frontend/dist/js/markdown-html-CQM6wA9G.js +2 -0
  113. package/frontend/dist/js/markdown-math-Dg-WB9ui.js +261 -0
  114. package/frontend/dist/js/markdownHtml-Djpz4yB3.js +1 -0
  115. package/frontend/dist/js/markdownMath-CoDj1i7z.js +1 -0
  116. package/frontend/dist/js/{messageCodeStyles-CkxF6yil.js → messageCodeStyles-0_YpQDk4.js} +2 -2
  117. package/frontend/dist/js/ms-B3ZIqlUn.js +2 -0
  118. package/frontend/dist/js/nl-1Qpsmmz1.js +2 -0
  119. package/frontend/dist/js/pl-ErrMri3_.js +2 -0
  120. package/frontend/dist/js/postcss-CifRAFe1.js +62 -0
  121. package/frontend/dist/js/pt-0T0R9AtX.js +2 -0
  122. package/frontend/dist/js/react-vendor-D0Ec-185.js +9 -0
  123. package/frontend/dist/js/rfb-NV_fh9Db.js +5 -0
  124. package/frontend/dist/js/router-vendor-CMbYTGdh.js +1 -0
  125. package/frontend/dist/js/ru-B34INyPg.js +2 -0
  126. package/frontend/dist/js/standalone-6z5x8CWe.js +29 -0
  127. package/frontend/dist/js/sv-BSqDwAur.js +2 -0
  128. package/frontend/dist/js/syntax-highlight-DTWfgxYh.js +7 -0
  129. package/frontend/dist/js/{teamEventStream-DUodK0-C.js → teamEventStream-RoMYo102.js} +1 -1
  130. package/frontend/dist/js/th-DK9M4-Iy.js +2 -0
  131. package/frontend/dist/js/tr-DUrkEwr1.js +2 -0
  132. package/frontend/dist/js/ttsBatching-kFVEE3Ip.js +2 -0
  133. package/frontend/dist/js/typescript-BPrdIZ70.js +22 -0
  134. package/frontend/dist/js/ui-UU79S5lB.js +2 -0
  135. package/frontend/dist/js/ui-vendor-6y6qiSk5.js +177 -0
  136. package/frontend/dist/js/uk-B5DYTi0e.js +2 -0
  137. package/frontend/dist/js/useChat-ImXXcy0q.js +10 -0
  138. package/frontend/dist/js/useDictation-eMIAncoT.js +1 -0
  139. package/frontend/dist/js/useQuery-BKulzCS7.js +1 -0
  140. package/frontend/dist/js/useTranslation-D0mJ4NnO.js +1 -0
  141. package/frontend/dist/js/{utils-nNyg0lfc.js → utils-Bn0RE9_8.js} +1 -1
  142. package/frontend/dist/js/utils-vendor-BbPbaAuC.js +9 -0
  143. package/frontend/dist/js/vi-CrtPQUIM.js +2 -0
  144. package/frontend/dist/js/workApi-BM8qVq_w.js +1 -0
  145. package/frontend/dist/js/workApi-xhF57amo.js +6 -0
  146. package/frontend/dist/js/xterm-C3BHN0de.js +16 -0
  147. package/frontend/dist/js/yaml-9ltHPDNO.js +154 -0
  148. package/frontend/dist/js/zh-gbOKajYe.js +2 -0
  149. package/frontend/dist/sw.js +3 -3
  150. package/package.json +2 -2
  151. package/frontend/dist/assets/index-B6xMZpzA.js +0 -76
  152. package/frontend/dist/assets/index-BjipfsCP.css +0 -1
  153. package/frontend/dist/assets/xterm-DHcfr8qj.css +0 -1
  154. package/frontend/dist/js/ArtifactContainer-Bn6iJtaJ.js +0 -1
  155. package/frontend/dist/js/ArtifactSlideOutPanel-CuKq5cL0.js +0 -1
  156. package/frontend/dist/js/AutomationModal-Dha4KgLI.js +0 -1
  157. package/frontend/dist/js/AutomationsPage-HcMCRV-D.js +0 -1
  158. package/frontend/dist/js/AvatarUpload-CFrlSszY.js +0 -1
  159. package/frontend/dist/js/Button-CgN11mgY.js +0 -1
  160. package/frontend/dist/js/CalendarPage-D_K-XrG9.js +0 -1
  161. package/frontend/dist/js/ChannelsPage-D3CoImOT.js +0 -1
  162. package/frontend/dist/js/ChatPage-C0iBDbOq.js +0 -14
  163. package/frontend/dist/js/ConnectModels-D_ZbZQub.js +0 -1
  164. package/frontend/dist/js/FirstTimeSetup-DDIP_4Dd.js +0 -1
  165. package/frontend/dist/js/GalleryPage-C8U_F7Ns.js +0 -1
  166. package/frontend/dist/js/HomePage-B_aotoDU.js +0 -1
  167. package/frontend/dist/js/LibreClawPage-cr2N6W00.js +0 -1
  168. package/frontend/dist/js/Logo-B7o7eaPU.js +0 -1
  169. package/frontend/dist/js/LogoMark-D9g6ls0h.js +0 -1
  170. package/frontend/dist/js/ModelManagerModals-C-J1d7GL.js +0 -1
  171. package/frontend/dist/js/NotesPage-Bgr7R_Vm.js +0 -3
  172. package/frontend/dist/js/OptimizedSyntaxHighlighter-BwKLuOu-.js +0 -1
  173. package/frontend/dist/js/OptimizedSyntaxHighlighter-oiyvxgDA.js +0 -1
  174. package/frontend/dist/js/PasswordStrengthMeter-DR-mGbLF.js +0 -1
  175. package/frontend/dist/js/PluginUsagePage-DK7MgSiu.js +0 -1
  176. package/frontend/dist/js/RichMessageContent-7FxrZ4A8.js +0 -1
  177. package/frontend/dist/js/RichMessageContent-CQkLI7Dt.js +0 -3
  178. package/frontend/dist/js/SettingsModal-CIV_Bgsf.js +0 -19
  179. package/frontend/dist/js/SettingsToggle-Cw4OhW7B.js +0 -1
  180. package/frontend/dist/js/ShareDialog-BCEVgtbN.js +0 -1
  181. package/frontend/dist/js/SystemPage-BNVZtLe9.js +0 -1
  182. package/frontend/dist/js/TurnstileWidget-lyEp7A0r.js +0 -1
  183. package/frontend/dist/js/UserManagementPage-pPC_Svj9.js +0 -1
  184. package/frontend/dist/js/WorkPage-Q33nIqkM.js +0 -7
  185. package/frontend/dist/js/api-D-5hpGht.js +0 -14
  186. package/frontend/dist/js/api-WR1CTYO5.js +0 -1
  187. package/frontend/dist/js/appStore-B136FGdu.js +0 -2
  188. package/frontend/dist/js/appVersion-Ck7dYiHe.js +0 -1
  189. package/frontend/dist/js/ar-Cq-nC6v9.js +0 -2
  190. package/frontend/dist/js/authStore-6AJLgQsD.js +0 -1
  191. package/frontend/dist/js/authStore-Ckz37pwu.js +0 -4
  192. package/frontend/dist/js/axios-CUerAKcc.js +0 -1
  193. package/frontend/dist/js/babel-8afoxhZ7.js +0 -16
  194. package/frontend/dist/js/bn-BFSKytYs.js +0 -2
  195. package/frontend/dist/js/chatStore-Dpm3g_Ln.js +0 -3
  196. package/frontend/dist/js/classPrivateMethodInitSpec-DE0XIqc_.js +0 -1
  197. package/frontend/dist/js/cs-BKWXa629.js +0 -2
  198. package/frontend/dist/js/da-Cra_DJnV.js +0 -2
  199. package/frontend/dist/js/de-BQa6_UuE.js +0 -2
  200. package/frontend/dist/js/es-BBOHFrx1.js +0 -2
  201. package/frontend/dist/js/estree-qxY7ACbu.js +0 -44
  202. package/frontend/dist/js/fr-C8kXs5c0.js +0 -2
  203. package/frontend/dist/js/hi-BEef4bjU.js +0 -2
  204. package/frontend/dist/js/html-B_cUU1Gi.js +0 -25
  205. package/frontend/dist/js/i18next-ChNMiFef.js +0 -1
  206. package/frontend/dist/js/id-Djipic7Y.js +0 -2
  207. package/frontend/dist/js/is-pazl6RLG.js +0 -2
  208. package/frontend/dist/js/it-DobPbTwl.js +0 -2
  209. package/frontend/dist/js/ja-DwYNaMNX.js +0 -2
  210. package/frontend/dist/js/ko-BQfXE7_o.js +0 -2
  211. package/frontend/dist/js/logger-CpCQz3Vi.js +0 -1
  212. package/frontend/dist/js/markdown-BAF0w-jL.js +0 -70
  213. package/frontend/dist/js/markdown-core-CsTEqgp1.js +0 -32
  214. package/frontend/dist/js/markdown-math-BhUmos36.js +0 -261
  215. package/frontend/dist/js/ms-CkPQoE5T.js +0 -2
  216. package/frontend/dist/js/nl-X_QsDAtu.js +0 -2
  217. package/frontend/dist/js/pl-CK39gUsy.js +0 -2
  218. package/frontend/dist/js/postcss-B2vYq4-H.js +0 -62
  219. package/frontend/dist/js/pt-C0dWyR_I.js +0 -2
  220. package/frontend/dist/js/react-vendor-BsJBHRYW.js +0 -9
  221. package/frontend/dist/js/rfb-BOfFBtVG.js +0 -5
  222. package/frontend/dist/js/router-vendor-CIwPu612.js +0 -1
  223. package/frontend/dist/js/ru-sNJkEz1G.js +0 -2
  224. package/frontend/dist/js/standalone-BqZmfuRy.js +0 -29
  225. package/frontend/dist/js/sv-Bh-uxdF3.js +0 -2
  226. package/frontend/dist/js/syntax-highlight-DY6Hwrri.js +0 -8
  227. package/frontend/dist/js/th-DPVtwZj2.js +0 -2
  228. package/frontend/dist/js/tr-BYNM_Tm7.js +0 -2
  229. package/frontend/dist/js/ttsBatching-7_-p2nxR.js +0 -2
  230. package/frontend/dist/js/typescript-DokwN-5Y.js +0 -22
  231. package/frontend/dist/js/ui-BK53RPmS.js +0 -2
  232. package/frontend/dist/js/ui-vendor-CPdYrKhz.js +0 -177
  233. package/frontend/dist/js/uk-kvNBuYin.js +0 -2
  234. package/frontend/dist/js/useChat-Czg2p4Rr.js +0 -10
  235. package/frontend/dist/js/useDictation-B2lYEYKn.js +0 -1
  236. package/frontend/dist/js/useQuery-ClAiNxQ7.js +0 -1
  237. package/frontend/dist/js/useTranslation-C7GwbUQA.js +0 -1
  238. package/frontend/dist/js/utils-vendor-CeUf_ngc.js +0 -9
  239. package/frontend/dist/js/vi-CmLoaP0K.js +0 -2
  240. package/frontend/dist/js/workApi-BoJb9aVF.js +0 -1
  241. package/frontend/dist/js/workApi-CFH097y5.js +0 -6
  242. package/frontend/dist/js/xterm-CdjKCQM7.js +0 -16
  243. package/frontend/dist/js/yaml-BXEpxPn2.js +0 -154
  244. package/frontend/dist/js/zh-D2zvmvrj.js +0 -2
@@ -1,62 +0,0 @@
1
- import{g as e}from"./router-vendor-CIwPu612.js";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},c=(e,t)=>{for(var r in t)n(e,r,{get:t[r],enumerable:!0})},l=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let c of i(t))!o.call(e,c)&&c!==a&&n(e,c,{get:()=>t[c],enumerable:!(s=r(t,c))||s.enumerable});return e},u=(e,r,i)=>(i=e==null?{}:t(a(e)),l(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),d=s((e,t)=>{var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};t.exports=r(),t.exports.createColors=r}),f=s(()=>{}),p=s((e,t)=>{var n=d(),r=f(),i=class e extends Error{constructor(t,n,r,i,a,o){super(t),this.name=`CssSyntaxError`,this.reason=t,a&&(this.file=a),i&&(this.source=i),o&&(this.plugin=o),typeof n<`u`&&typeof r<`u`&&(typeof n==`number`?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,typeof this.line<`u`&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason}showSourceCode(e){if(!this.source)return``;let t=this.source;e??(e=n.isColorSupported);let i=e=>e,a=e=>e,o=e=>e;if(e){let{bold:e,gray:t,red:s}=n.createColors(!0);a=t=>e(s(t)),i=e=>t(e),r&&(o=e=>r(e))}let s=t.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length;return s.slice(c,l).map((e,t)=>{let n=c+1+t,r=` `+(` `+n).slice(-u)+` | `;if(n===this.line){if(e.length>160){let t=Math.max(0,this.column-20),n=Math.max(this.column+20,this.endColumn+20),s=e.slice(t,n),c=i(r.replace(/\d/g,` `))+e.slice(0,Math.min(this.column-1,19)).replace(/[^\t]/g,` `);return a(`>`)+i(r)+o(s)+`
2
- `+c+a(`^`)}let t=i(r.replace(/\d/g,` `))+e.slice(0,this.column-1).replace(/[^\t]/g,` `);return a(`>`)+i(r)+o(e)+`
3
- `+t+a(`^`)}return` `+i(r)+o(e)}).join(`
4
- `)}toString(){let e=this.showSourceCode();return e&&(e=`
5
-
6
- `+e+`
7
- `),this.name+`: `+this.message+e}};t.exports=i,i.default=i}),m=s((e,t)=>{var n=/(<)(\/?style\b)/gi,r=/(<)(!--)/g;function i(e){return typeof e!=`string`||!e.includes(`<`)?e:e.replace(n,`\\3c $2`).replace(r,`\\3c $2`)}var a={after:`
8
- `,beforeClose:`
9
- `,beforeComment:`
10
- `,beforeDecl:`
11
- `,beforeOpen:` `,beforeRule:`
12
- `,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function o(e){return e[0].toUpperCase()+e.slice(1)}var s=class{constructor(e){this.builder=e}atrule(e,t){let n=e.raws,r=`@`+e.name,a=e.params?this.rawValue(e,`params`):``;if(typeof n.afterName<`u`?r+=n.afterName:a&&(r+=` `),e.nodes)this.block(e,r+a);else{let o=(n.between||``)+(t?`;`:``);this.builder(i(r+a+o),e)}}beforeAfter(e,t){let n;n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`);let r=e.parent,i=0;for(;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
13
- `)){let t=this.raw(e,null,`indent`);if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n=this.raw(e,`between`,`beforeOpen`);this.builder(i(t+n)+`{`,e,`start`);let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,`after`)):r=this.raw(e,`after`,`emptyBody`),r&&this.builder(i(r)),this.builder(`}`,e,`end`)}body(e){let t=e.nodes,n=t.length-1;for(;n>0&&t[n].type===`comment`;)--n;let r=this.raw(e,`semicolon`),a=e.type===`document`;for(let e=0;e<t.length;e++){let o=t[e],s=this.raw(o,`before`);s&&this.builder(a?s:i(s)),this.stringify(o,n!==e||r)}}comment(e){let t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(i(`/*`+t+e.text+n+`*/`),e)}decl(e,t){let n=e.raws,r=this.raw(e,`between`,`colon`),a=e.prop+r+this.rawValue(e,`value`);e.important&&(a+=n.important||` !important`),t&&(a+=`;`),this.builder(i(a),e)}document(e){this.body(e)}raw(e,t,n){let r;if(n||(n=t),t&&(r=e.raws[t],typeof r<`u`))return r;let i=e.parent;if(n===`before`&&(!i||i.type===`root`&&i.first===e||i&&i.type===`document`))return``;if(!i)return a[n];let s=e.root(),c=s.rawCache||(s.rawCache={});if(typeof c[n]<`u`)return c[n];if(n===`before`||n===`after`)return this.beforeAfter(e,n);{let i=`raw`+o(n);this[i]?r=this[i](s,e):s.walk(e=>{if(r=e.raws[t],typeof r<`u`)return!1})}return typeof r>`u`&&(r=a[n]),c[n]=r,r}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&typeof e.raws.after<`u`)return t=e.raws.after,t.includes(`
14
- `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&(t=t.replace(/\S/g,``)),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(typeof e.raws.before<`u`)return n=e.raws.before,n.includes(`
15
- `)&&(n=n.replace(/[^\n]+$/,``)),!1}),typeof n>`u`?n=this.raw(t,null,`beforeDecl`):n&&(n=n.replace(/\S/g,``)),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(typeof e.raws.before<`u`)return n=e.raws.before,n.includes(`
16
- `)&&(n=n.replace(/[^\n]+$/,``)),!1}),typeof n>`u`?n=this.raw(t,null,`beforeRule`):n&&(n=n.replace(/\S/g,``)),n}rawBeforeOpen(e){let t;return e.walk(e=>{if(e.type!==`decl`&&(t=e.raws.between,typeof t<`u`))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<`u`)return t=n.raws.before,t.includes(`
17
- `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&(t=t.replace(/\S/g,``)),t}rawColon(e){let t;return e.walkDecls(e=>{if(typeof e.raws.between<`u`)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,typeof t<`u`))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&typeof n.raws.before<`u`){let e=n.raws.before.split(`
18
- `);return t=e[e.length-1],t=t.replace(/\S/g,``),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,typeof t<`u`))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){if(this.body(e),e.raws.after){let t=e.raws.after,n=e.parent&&e.parent.type===`document`;this.builder(n?t:i(t))}}rule(e){this.block(e,this.rawValue(e,`selector`)),e.raws.ownSemicolon&&this.builder(i(e.raws.ownSemicolon),e,`end`)}stringify(e,t){if(!this[e.type])throw Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)}};t.exports=s,s.default=s}),h=s((e,t)=>{var n=m();function r(e,t){new n(t).stringify(e)}t.exports=r,r.default=r}),g=s((e,t)=>{t.exports.isClean=Symbol(`isClean`),t.exports.my=Symbol(`my`)}),_=s((e,t)=>{var n=p(),r=m(),i=h(),{isClean:a,my:o}=g();function s(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r===`proxyCache`)continue;let i=e[r],a=typeof i;r===`parent`&&a===`object`?t&&(n[r]=t):r===`source`?n[r]=i:Array.isArray(i)?n[r]=i.map(e=>s(e,n)):(a===`object`&&i!==null&&(i=s(i)),n[r]=i)}return n}function c(e,t){if(t&&typeof t.offset<`u`)return t.offset;let n=1,r=1,i=0;for(let a=0;a<e.length;a++){if(r===t.line&&n===t.column){i=a;break}e[a]===`
19
- `?(n=1,r+=1):n+=1}return i}var l=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[a]=!1,this[o]=!0;for(let t in e)if(t===`nodes`){this.nodes=[];for(let n of e[t])typeof n.clone==`function`&&n.parent?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=s(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new n(e)}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:t===`root`?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty()),!0}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let e=this;for(;e=e.parent;)e[a]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=`document`in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)};if(e.index)n=this.positionInside(e.index);else if(e.word){let r=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);r!==-1&&(n=this.positionInside(r))}return n}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r=`document`in this.source.input?this.source.input.document:this.source.input.css,i=c(r,this.source.start),a=i+e;for(let e=i;e<a;e++)r[e]===`
20
- `?(t=1,n+=1):t+=1;return{column:t,line:n,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t=`document`in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset==`number`?this.source.end.offset:c(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);i!==-1&&(n=this.positionInside(i),r=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:c(t,e.start)}:typeof e.index==`number`&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:c(t,e.end)}:typeof e.endIndex==`number`?r=this.positionInside(e.endIndex):typeof e.index==`number`&&(r=this.positionInside(e.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line,offset:n.offset+1}),{end:r,start:n}}raw(e,t){return new r().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!==`document`;)e=e.parent;return e}toJSON(e,t){let n={},r=t==null;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||e===`parent`||e===`proxyCache`)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map(e=>typeof e==`object`&&e.toJSON?e.toJSON(null,t):e);else if(typeof r==`object`&&r.toJSON)n[e]=r.toJSON(null,t);else if(e===`source`){if(r==null)continue;let a=t.get(r.input);a??(a=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:a,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t=``;return e(this,e=>{t+=e}),t}warn(e,t,n={}){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}};t.exports=l,l.default=l}),v=s((e,t)=>{var n=_(),r=class extends n{constructor(e){super(e),this.type=`comment`}};t.exports=r,r.default=r}),y=s((e,t)=>{var n=_(),r=class extends n{get variable(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}constructor(e){e&&typeof e.value<`u`&&typeof e.value!=`string`&&(e={...e,value:String(e.value)}),super(e),this.type=`decl`}};t.exports=r,r.default=r}),b=s((e,t)=>{var n=v(),r=y(),i=_(),{isClean:a,my:o}=g(),s,c,l,u;function d(e){return e.map(e=>(e.nodes&&(e.nodes=d(e.nodes)),delete e.source,e))}function f(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}var p=class e extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?(...n)=>e[t](...n.map(e=>typeof e==`function`?(t,n)=>e(t.toProxy(),n):e)):t===`every`||t===`some`?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):t===`root`?()=>e.root().toProxy():t===`nodes`?e.nodes.map(e=>e.toProxy()):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty()),!0}}}index(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of r)this.proxyOf.nodes.splice(n+1,0,e);let i;for(let e in this.indexes)i=this.indexes[e],n<i&&(this.indexes[e]=i+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0&&`prepend`,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);let a;for(let e in this.indexes)a=this.indexes[e],n<=a&&(this.indexes[e]=a+i.length);return this.markDirty(),this}normalize(t,i){if(typeof t==`string`)t=d(c(t).nodes);else if(typeof t>`u`)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type===`root`&&this.type!==`document`){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type)t=[t];else if(t.prop){if(typeof t.value>`u`)throw Error(`Value field is missed in node creation`);typeof t.value!=`string`&&(t.value=String(t.value)),t=[new r(t)]}else if(t.selector||t.selectors)t=[new u(t)];else if(t.name)t=[new s(t)];else if(t.text)t=[new n(t)];else throw Error(`Unknown node type in node creation`);return t.map(t=>(t[o]||e.rebuild(t),t=t.proxyOf,t.parent&&t.parent.removeChild(t),t[a]&&f(t),t.raws||(t.raws={}),typeof t.raws.before>`u`&&i&&typeof i.raws.before<`u`&&(t.raws.before=i.raws.before.replace(/\S/g,``)),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,`prepend`).reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`atrule`)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if(t.type===`comment`)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`decl`)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`rule`)return t(e,n)}))}};p.registerParse=e=>{c=e},p.registerRule=e=>{u=e},p.registerAtRule=e=>{s=e},p.registerRoot=e=>{l=e},t.exports=p,p.default=p,p.rebuild=e=>{e.type===`atrule`?Object.setPrototypeOf(e,s.prototype):e.type===`rule`?Object.setPrototypeOf(e,u.prototype):e.type===`decl`?Object.setPrototypeOf(e,r.prototype):e.type===`comment`?Object.setPrototypeOf(e,n.prototype):e.type===`root`&&Object.setPrototypeOf(e,l.prototype),e[o]=!0,e.nodes&&e.nodes.forEach(e=>{p.rebuild(e)})}}),x=s((e,t)=>{t.exports={nanoid:(e=21)=>{let t=``,n=e|0;for(;n--;)t+=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`[Math.random()*64|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r=``,i=n|0;for(;i--;)r+=e[Math.random()*e.length|0];return r}}}),S=s(()=>{}),C=s((e,t)=>{t.exports=class{}}),w=s((e,t)=>{var{nanoid:n}=x(),{isAbsolute:r,resolve:i}={},{SourceMapConsumer:a,SourceMapGenerator:o}=S(),{fileURLToPath:s,pathToFileURL:c}={},l=p(),u=C(),d=f(),m=Symbol(`lineToIndexCache`),h=!!(a&&o),g=!!(i&&r);function _(e){if(e[m])return e[m];let t=e.css.split(`
21
- `),n=Array(t.length),r=0;for(let e=0,i=t.length;e<i;e++)n[e]=r,r+=t[e].length+1;return e[m]=n,n}var v=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e>`u`||typeof e==`object`&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===`￾`?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(this.file=!g||/^\w+:\/\//.test(t.from)||r(t.from)?t.from:i(t.from)),g&&h){let e=new u(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=`<input css `+n(6)+`>`),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,a,o,s,u;if(t&&typeof t==`object`){let e=t,r=n;if(typeof e.offset==`number`){s=e.offset;let r=this.fromOffset(s);t=r.line,n=r.col}else t=e.line,n=e.column,s=this.fromLineAndColumn(t,n);if(typeof r.offset==`number`){o=r.offset;let e=this.fromOffset(o);a=e.line,i=e.col}else a=r.line,i=r.column,o=this.fromLineAndColumn(r.line,r.column)}else if(n)s=this.fromLineAndColumn(t,n);else{s=t;let e=this.fromOffset(s);t=e.line,n=e.col}let d=this.origin(t,n,a,i);return u=d?new l(e,d.endLine===void 0?d.line:{column:d.column,line:d.line},d.endLine===void 0?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,r.plugin):new l(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:i,line:a},this.css,this.file,r.plugin),u.input={column:n,endColumn:i,endLine:a,endOffset:o,line:t,offset:s,source:this.css},this.file&&(c&&(u.input.url=c(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return _(this)[e-1]+t-1}fromOffset(e){let t=_(this),n=t[t.length-1],r=0;if(e>=n)r=t.length-1;else{let n=t.length-2,i;for(;r<n;)if(i=r+(n-r>>1),e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||`.`,e)}origin(e,t,n,i){if(!this.map)return!1;let a=this.map.consumer(),o=a.originalPositionFor({column:t-1,line:e});if(!o.source)return!1;let l;typeof n==`number`&&(l=a.originalPositionFor({column:i-1,line:n}));let u;u=r(o.source)?c(o.source):new URL(o.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:o.column+1,endColumn:l&&l.column+1,endLine:l&&l.line,line:o.line,url:u.toString()};if(u.protocol===`file:`){if(s)d.file=s(u);else throw Error(`file: protocol is not available in this PostCSS build`)}let f=a.sourceContentFor(o.source);return f&&(d.source=f),d}toJSON(){let e={};for(let t of[`hasBOM`,`css`,`file`,`id`])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};t.exports=v,v.default=v,d&&d.registerInput&&d.registerInput(v)}),T=s((e,t)=>{var n=b(),r=class extends n{constructor(e){super(e),this.type=`atrule`}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};t.exports=r,r.default=r,n.registerAtRule(r)}),E=s((e,t)=>{var n=b(),r,i,a=class extends n{constructor(e){super(e),this.type=`root`,this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t){if(n===`prepend`)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before}return r}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a,n.registerRoot(a)}),D=s((e,t)=>{var n={comma(e){return n.split(e,[`,`],!0)},space(e){return n.split(e,[` `,`
22
- `,` `])},split(e,t,n){let r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1;for(let n of e)l?l=!1:n===`\\`?l=!0:s?n===c&&(s=!1):n===`"`||n===`'`?(s=!0,c=n):n===`(`?o+=1:n===`)`?o>0&&--o:o===0&&t.includes(n)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=n;return(n||i!==``)&&r.push(i.trim()),r}};t.exports=n,n.default=n}),O=s((e,t)=>{var n=b(),r=D(),i=class extends n{get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}constructor(e){super(e),this.type=`rule`,this.nodes||(this.nodes=[])}};t.exports=i,i.default=i,n.registerRule(i)}),k=s((e,t)=>{var n=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,a=/[\da-f]/i;t.exports=function(e,t={}){let o=e.css.valueOf(),s=t.ignoreErrors,c,l,u,d,f,p,m,h,g,_,v=o.length,y=0,b=[],x=[],S=-1;function C(){return y}function w(t){throw e.error(`Unclosed `+t,y)}function T(){return x.length===0&&y>=v}function E(e){if(x.length)return x.pop();if(y>=v)return;let t=e?e.ignoreUnclosed:!1;switch(c=o.charCodeAt(y),c){case 10:case 32:case 9:case 13:case 12:d=y;do d+=1,c=o.charCodeAt(d);while(c===32||c===10||c===9||c===13||c===12);p=[`space`,o.slice(y,d)],y=d-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(c);p=[e,e,y];break}case 40:if(_=b.length?b.pop()[1]:``,g=o.charCodeAt(y+1),_===`url`&&g!==39&&g!==34&&g!==32&&g!==10&&g!==9&&g!==12&&g!==13){d=y;do{if(m=!1,d=o.indexOf(`)`,d+1),d===-1){if(s||t){d=y;break}w(`bracket`)}for(h=d;o.charCodeAt(h-1)===92;)--h,m=!m}while(m);p=[`brackets`,o.slice(y,d+1),y,d],y=d}else y<=S?p=[`(`,`(`,y]:(d=o.indexOf(`)`,y+1),l=o.slice(y,d+1),d===-1||i.test(l)?(S=d===-1?v:d,p=[`(`,`(`,y]):(p=[`brackets`,l,y,d],y=d));break;case 39:case 34:f=c===39?`'`:`"`,d=y;do{if(m=!1,d=o.indexOf(f,d+1),d===-1){if(s||t){d=y+1;break}w(`string`)}for(h=d;o.charCodeAt(h-1)===92;)--h,m=!m}while(m);p=[`string`,o.slice(y,d+1),y,d],y=d;break;case 64:n.lastIndex=y+1,n.test(o),d=n.lastIndex===0?o.length-1:n.lastIndex-2,p=[`at-word`,o.slice(y,d+1),y,d],y=d;break;case 92:for(d=y,u=!0;o.charCodeAt(d+1)===92;)d+=1,u=!u;if(c=o.charCodeAt(d+1),u&&c!==47&&c!==32&&c!==10&&c!==9&&c!==13&&c!==12&&(d+=1,a.test(o.charAt(d)))){for(;a.test(o.charAt(d+1));)d+=1;o.charCodeAt(d+1)===32&&(d+=1)}p=[`word`,o.slice(y,d+1),y,d],y=d;break;default:c===47&&o.charCodeAt(y+1)===42?(d=o.indexOf(`*/`,y+2)+1,d===0&&(s||t?d=o.length:w(`comment`)),p=[`comment`,o.slice(y,d+1),y,d],y=d):(r.lastIndex=y+1,r.test(o),d=r.lastIndex===0?o.length-1:r.lastIndex-2,p=[`word`,o.slice(y,d+1),y,d],b.push(p),y=d)}return y++,p}function D(e){x.push(e)}return{back:D,endOfFile:T,nextToken:E,position:C}}}),ee=s((e,t)=>{var n=T(),r=v(),i=y(),a=E(),o=O(),s=k(),c={empty:!0,space:!0};function l(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}function u(e,t,n){let r=``;for(let i=t;i<n;i++)r+=e[i][1];return r}t.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new n;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,a,o=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r===`(`||r===`[`?l.push(r===`(`?`)`:`]`):r===`{`&&l.length>0?l.push(`}`):r===l[l.length-1]&&l.pop(),l.length===0){if(r===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}if(r===`{`){s=!0;break}if(r===`}`){if(c.length>0){for(a=c.length-1,i=c[a];i&&i[0]===`space`;)i=c[--a];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}c.push(e)}else c.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(t.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(t,`params`,c),o&&(e=c[c.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),s&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,r;for(let i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}colon(e){let t=0,n,r,i;for(let[a,o]of e.entries()){if(r=o,i=r[0],i===`(`&&(t+=1),i===`)`&&--t,t===0&&i===`:`){if(!n)this.doubleColon(r);else{if(n[0]===`word`&&n[1]===`progid`)continue;return a}}n=r}return!1}comment(e){let t=new r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(!n.trim())t.text=``,t.raws.left=n,t.raws.right=``;else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=s(this.input)}decl(e,t){let n=new i;this.init(n,e[0][2]);let r=e[e.length-1];r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||l(e)),n.source.end.offset++;let a=0;for(;e[a][0]!==`word`;)a===e.length-1&&this.unknownWord([e[a]]),a++;n.raws.before+=u(e,0,a),n.source.start=this.getPosition(e[a][2]);let o=a;for(;a<e.length;){let t=e[a][0];if(t===`:`||t===`space`||t===`comment`)break;a++}n.prop=u(e,o,a);let s=a,c;for(;a<e.length&&(c=e[a],a++,c[0]!==`:`);)c[0]===`word`&&/\w/.test(c[1])&&this.unknownWord([c]);n.raws.between=u(e,s,a),(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let d=a;for(;a<e.length;){let t=e[a][0];if(t!==`space`&&t!==`comment`)break;a++}let f=e.slice(d,a);e=e.slice(a),this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(c=e[t],c[1].toLowerCase()===`!important`){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r,r!==` !important`&&(n.raws.important=r);break}if(c[1].toLowerCase()===`important`){let r=e.slice(0),i=``;for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().startsWith(`!`)&&t!==`space`)break;i=r.pop()[1]+i}i.trim().startsWith(`!`)&&(n.important=!0,n.raws.important=i,e=r)}if(c[0]!==`space`&&c[0]!==`comment`)break}e.some(e=>e[0]!==`space`&&e[0]!==`comment`)&&(n.raws.between+=f.map(e=>e[1]).join(``),f=[]),this.raw(n,`value`,f.concat(e),t),n.value.includes(`:`)&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error(`Double colon`,{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new o;this.init(t,e[2]),t.selector=``,t.raws.between=``,this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.spaces=``,this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type===`rule`&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=``,t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces=``,e.type!==`comment`&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;for(;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||(i=c),a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||(i=c),a.push(`}`);else if(a.length===0){if(n===`;`){if(r){this.decl(s,o);return}break}if(n===`{`){this.rule(s);return}if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}n===`:`&&(r=!0)}else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],c===`space`||c===`comment`);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,a,o=n.length,s=``,l=!0,u,d;for(let e=0;e<o;e+=1)i=n[e],a=i[0],a===`space`&&e===o-1&&!r?l=!1:a===`comment`?(d=n[e-1]?n[e-1][0]:`empty`,u=n[e+1]?n[e+1][0]:`empty`,!c[d]&&!c[u]?s.slice(-1)===`,`?l=!1:s+=i[1]:l=!1):s+=i[1];if(!l){let r=n.reduce((e,t)=>e+t[1],``);e.raws[t]={raw:r,value:s}}e[t]=s}rule(e){e.pop();let t=new o;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t}spacesAndCommentsFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`||t===`comment`);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n=``;for(;e.length&&(t=e[0][0],t===`space`||t===`comment`);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n=``;for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error(`Unclosed block`,e.line,e.column)}unclosedBracket(e){throw this.input.error(`Unclosed bracket`,{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error(`Unexpected }`,{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error(`Unknown word `+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error(`At-rule without name`,{offset:t[2]},{offset:t[2]+t[1].length})}}}),te=s((e,t)=>{var n=b(),r=w(),i=ee();function a(e,t){let n=new i(new r(e,t));try{n.parse()}catch(e){throw e}return n.root}t.exports=a,a.default=a,n.registerParse(a)}),A=s((e,t)=>{var n=k(),r=w();t.exports={isInlineComment(e){if(e[0]===`word`&&e[1].slice(0,2)===`//`){let t=e,i=[],a,o;for(;e;){if(/\r?\n/.test(e[1])){if(/['"].*\r?\n/.test(e[1])){i.push(e[1].substring(0,e[1].indexOf(`
23
- `))),o=e[1].substring(e[1].indexOf(`
24
- `));let t=this.input.css.valueOf().substring(this.tokenizer.position());o+=t,a=e[3]+t.length-o.length}else this.tokenizer.back(e);break}i.push(e[1]),a=e[2],e=this.tokenizer.nextToken({ignoreUnclosed:!0})}let s=[`comment`,i.join(``),t[2],a];return this.inlineComment(s),o&&(this.input=new r(o),this.tokenizer=n(this.input)),!0}if(e[1]===`/`){let n=this.tokenizer.nextToken({ignoreUnclosed:!0});if(n[0]===`comment`&&/^\/\*/.test(n[1]))return n[0]=`word`,n[1]=n[1].slice(1),e[1]=`//`,this.tokenizer.back(n),t.exports.isInlineComment.bind(this)(e)}return!1}}}),ne=s((e,t)=>{t.exports={interpolation(e){let t=[e,this.tokenizer.nextToken()],n=[`word`,`}`];if(t[0][1].length>1||t[1][0]!==`{`)return this.tokenizer.back(t[1]),!1;for(e=this.tokenizer.nextToken();e&&n.includes(e[0]);)t.push(e),e=this.tokenizer.nextToken();let r=t.map(e=>e[1]),[i]=t,a=t.pop(),o=[`word`,r.join(``),i[2],a[2]];return this.tokenizer.back(e),this.tokenizer.back(o),!0}}}),re=s((e,t)=>{var n=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,r=/\.[0-9]/;t.exports={isMixinToken:e=>{let[,t]=e,[i]=t;return(i===`.`||i===`#`)&&n.test(t)===!1&&r.test(t)===!1}}}),ie=s((e,t)=>{var n=k(),r=/^url\((.+)\)/;t.exports=e=>{let{name:t,params:i=``}=e;if(t===`import`&&i.length){e.import=!0;let t=n({css:i});for(e.filename=i.replace(r,`$1`);!t.endOfFile();){let[n,r]=t.nextToken();if(n===`word`&&r===`url`)return;if(n===`brackets`){e.options=r,e.filename=i.replace(r,``).trim();break}}}}}),ae=s((e,t)=>{var n=/:$/,r=/^:(\s+)?/;t.exports=e=>{let{name:t,params:i=``}=e;if(e.name.slice(-1)===`:`){if(n.test(t)){let[r]=t.match(n);e.name=t.replace(r,``),e.raws.afterName=r+(e.raws.afterName||``),e.variable=!0,e.value=e.params}if(r.test(i)){let[t]=i.match(r);e.value=i.replace(t,``),e.raws.afterName=(e.raws.afterName||``)+t,e.variable=!0}}}}),oe=s((e,t)=>{var n=v(),r=ee(),{isInlineComment:i}=A(),{interpolation:a}=ne(),{isMixinToken:o}=re(),s=ie(),c=ae(),l=/(!\s*important)$/i;t.exports=class extends r{constructor(...e){super(...e),this.lastNode=null}atrule(e){a.bind(this)(e)||(super.atrule(e),s(this.lastNode),c(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let t=e.findIndex(e=>e[0]===`(`),n=e.reverse().find(e=>e[0]===`)`),r=e.reverse().indexOf(n),i=e.splice(t,r).map(e=>e[1]).join(``);for(let t of e.reverse())this.tokenizer.back(t);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=i}init(e,t,n){super.init(e,t,n),this.lastNode=e}inlineComment(e){let t=new n,r=e[1].slice(2);if(this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.inline=!0,t.raws.begin=`//`,/^\s*$/.test(r))t.text=``,t.raws.left=r,t.raws.right=``;else{let e=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,t.raws.left,t.text,t.raws.right]=e}}mixin(e){let[t]=e,n=t[1].slice(0,1),r=e.findIndex(e=>e[0]===`brackets`),i=e.findIndex(e=>e[0]===`(`),a=``;if((r<0||r>3)&&i>0){let t=e.reduce((e,t,n)=>t[0]===`)`?n:e),n=e.slice(i,t+i).map(e=>e[1]).join(``),[r]=e.slice(i),a=[r[2],r[3]],[o]=e.slice(t,t+1),s=[o[2],o[3]],c=[`brackets`,n].concat(a,s),l=e.slice(0,i),u=e.slice(t+1);e=l,e.push(c),e=e.concat(u)}let o=[];for(let t of e)if((t[1]===`!`||o.length)&&o.push(t),t[1]===`important`)break;if(o.length){let[t]=o,n=e.indexOf(t),r=o[o.length-1],i=[t[2],t[3]],a=[r[4],r[5]],s=[`word`,o.map(e=>e[1]).join(``)].concat(i,a);e.splice(n,o.length,s)}let s=e.findIndex(e=>l.test(e[1]));s>0&&([,a]=e[s],e.splice(s,1));for(let t of e.reverse())this.tokenizer.back(t);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=n,a&&(this.lastNode.important=!0,this.lastNode.raws.important=a)}other(e){i.bind(this)(e)||super.other(e)}rule(e){let t=e[e.length-1],n=e[e.length-2];if(n[0]===`at-word`&&t[0]===`{`&&(this.tokenizer.back(t),a.bind(this)(n))){let t=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([t]);for(let t of e.reverse())this.tokenizer.back(t);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[t]=e;if(e[0][1]===`each`&&e[1][0]===`(`){this.each(e);return}if(o(t)){this.mixin(e);return}super.unknownWord(e)}}}),se=s((e,t)=>{var n=m();t.exports=class extends n{atrule(e,t){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,t);return}let n=`${e.function?``:e.raws.identifier||`@`}${e.name}`,r=e.params?this.rawValue(e,`params`):``,i=e.raws.important||``;if(e.variable&&(r=e.value),typeof e.raws.afterName<`u`?n+=e.raws.afterName:r&&(n+=` `),e.nodes)this.block(e,n+r+i);else{let a=(e.raws.between||``)+i+(t?`;`:``);this.builder(n+r+a,e)}}comment(e){if(e.inline){let t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`//${t}${e.text}${n}`,e)}else super.comment(e)}}}),ce=s((e,t)=>{var n=w(),r=oe(),i=se();t.exports={parse(e,t){let i=new n(e,t),a=new r(i);return a.parse(),a.root.walk(e=>{let t=i.css.lastIndexOf(e.source.input.css);if(t===0)return;if(t+e.source.input.css.length!==i.css.length)throw Error(`Invalid state detected in postcss-less`);let n=t+e.source.start.offset,r=i.fromOffset(t+e.source.start.offset);if(e.source.start={offset:n,line:r.line,column:r.col},e.source.end){let n=t+e.source.end.offset,r=i.fromOffset(t+e.source.end.offset);e.source.end={offset:n,line:r.line,column:r.col}}}),a.root},stringify(e,t){new i(t).stringify(e)},nodeToString(e){let n=``;return t.exports.stringify(e,e=>{n+=e}),n}}}),j=s((e,t)=>{var n=b(),r,i,a=class extends n{constructor(e){super({type:`document`,...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a}),M=s((e,t)=>{var n=T(),r=v(),i=y(),a=w(),o=C(),s=E(),c=O();function l(e,t){if(Array.isArray(e))return e.map(e=>l(e));let{inputs:u,...d}=e;if(u){t=[];for(let e of u){let n={...e,__proto__:a.prototype};n.map&&(n.map={...n.map,__proto__:o.prototype}),t.push(n)}}let f;if(d.nodes&&(f=e.nodes.map(e=>l(e,t)),delete d.nodes),d.source){let{inputId:e,...n}=d.source;d.source=n,e!=null&&(d.source.input=t[e])}let p;if(d.type===`root`)p=new s(d);else if(d.type===`decl`)p=new i(d);else if(d.type===`rule`)p=new c(d);else if(d.type===`comment`)p=new r(d);else if(d.type===`atrule`)p=new n(d);else throw Error(`Unknown node type: `+e.type);if(f){p.nodes=f;for(let e of f)e.parent=p}return p}t.exports=l,l.default=l}),N=s((e,t)=>{t.exports=class{generate(){}}}),le=s((e,t)=>{var n=class{constructor(e,t={}){if(this.type=`warning`,this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+`: `+this.text:this.text}};t.exports=n,n.default=n}),ue=s((e,t)=>{var n=le(),r=class{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=``,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}};t.exports=r,r.default=r}),de=s((e,t)=>{var n={};t.exports=function(e){n[e]||(n[e]=!0,typeof console<`u`&&console.warn&&console.warn(e))}}),fe=s((e,t)=>{var n=b(),r=j(),i=N(),a=te(),o=ue(),s=E(),c=h(),{isClean:l,my:u}=g();de();var d={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0},m=0;function _(e){return typeof e==`object`&&typeof e.then==`function`}function v(e){let t=!1,n=d[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,m,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,m,n+`Exit`]:[n,n+`Exit`]}function y(e){let t;return t=e.type===`document`?[`Document`,m,`DocumentExit`]:e.type===`root`?[`Root`,m,`RootExit`]:v(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function x(e){return e[l]=!1,e.nodes&&e.nodes.forEach(e=>x(e)),e}var S={},C=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return`LazyResult`}constructor(t,r,i){this.stringified=!1,this.processed=!1;let s;if(typeof r==`object`&&r&&(r.type===`root`||r.type===`document`))s=x(r);else if(r instanceof e||r instanceof o)s=x(r.root),r.map&&(typeof i.map>`u`&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=a;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{s=e(r,i)}catch(e){this.processed=!0,this.error=e}s&&!s[u]&&n.rebuild(s)}this.result=new o(t,s,i),this.helpers={...S,postcss:S,result:this.result},this.plugins=this.processor.plugins.map(e=>typeof e==`object`&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error(`Use process(css).then(cb) to work with async plugins`)}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!f[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[n]){if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(_(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];){e[l]=!0;let t=[y(e)];for(;t.length>0;){let e=this.visitTick(t);if(_(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type===`document`){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==`object`&&e.Once){if(this.result.root.type===`document`){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return _(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=this.result.root.source;if(e.map===void 0&&!(n&&n.input&&n.input.map)){let e=``;return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let r=new i(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(_(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];)e[l]=!0,this.walkSync(e);if(this.listeners.OnceExit){if(e.type===`document`)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(_(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){let r=t.iterator,i;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[l]){i[l]=!0,e.push(y(i));return}t.iterator=0,delete n.indexes[r]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===m){n.nodes&&n.nodes.length&&(n[l]=!0,t.iterator=n.getIterator());return}if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[l]=!0;let t=v(e);for(let n of t)if(n===m)e.nodes&&e.each(e=>{e[l]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}};C.registerPostcss=e=>{S=e},t.exports=C,C.default=C,s.registerLazyResult(C),r.registerLazyResult(C)}),pe=s((e,t)=>{var n=N(),r=te(),i=ue(),a=h();de();var o=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return`NoWorkResult`}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let o=a;this.result=new i(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let c=new n(o,void 0,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};t.exports=o,o.default=o}),me=s((e,t)=>{var n=j(),r=fe(),i=pe(),a=E(),o=class{constructor(e=[]){this.version=`8.5.16`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(!(typeof n==`object`&&(n.parse||n.stringify)))throw Error(n+` is not a PostCSS plugin`);return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new i(this,e,t):new r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=o,o.default=o,a.registerProcessor(o),n.registerProcessor(o)}),he=s((e,t)=>{var n=T(),r=v(),i=b(),a=p(),o=y(),s=j(),c=M(),l=w(),u=fe(),d=D(),f=_(),m=te(),g=me(),x=ue(),S=E(),C=O(),k=h(),ee=le();function A(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new g(e)}A.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
25
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new g().version,i}let i;return Object.defineProperty(r,"postcss",{get(){return i||(i=r()),i}}),r.process=function(e,t,n){return A([r(n)]).process(e,t)},r},A.stringify=k,A.parse=m,A.fromJSON=c,A.list=d,A.comment=e=>new r(e),A.atRule=e=>new n(e),A.decl=e=>new o(e),A.rule=e=>new C(e),A.root=e=>new S(e),A.document=e=>new s(e),A.CssSyntaxError=a,A.Declaration=o,A.Container=i,A.Processor=g,A.Document=s,A.Comment=r,A.Warning=ee,A.AtRule=n,A.Result=x,A.Input=l,A.Rule=C,A.Root=S,A.Node=f,u.registerPostcss(A),t.exports=A,A.default=A}),ge=s((e,t)=>{var{Container:n}=he();t.exports=class extends n{constructor(e){super(e),this.type=`decl`,this.isNested=!0,this.nodes||(this.nodes=[])}}}),_e=s((e,t)=>{var n=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,a=/[\da-f]/i,o=/[\n\f\r]/g;t.exports=function(e,t={}){let s=e.css.valueOf(),c=t.ignoreErrors,l,u,d,f,p,m,h,g,_,v=s.length,y=0,b=[],x=[],S;function C(){return y}function w(t){throw e.error(`Unclosed `+t,y)}function T(){return x.length===0&&y>=v}function E(){let e=1,t=!1,n=!1;for(;e>0;)u+=1,s.length<=u&&w(`interpolation`),l=s.charCodeAt(u),g=s.charCodeAt(u+1),t?!n&&l===t?(t=!1,n=!1):l===92?n=!n:n&&(n=!1):l===39||l===34?t=l:l===125?--e:l===35&&g===123&&(e+=1)}function D(e){if(x.length)return x.pop();if(y>=v)return;let t=e?e.ignoreUnclosed:!1;switch(l=s.charCodeAt(y),l){case 10:case 32:case 9:case 13:case 12:u=y;do u+=1,l=s.charCodeAt(u);while(l===32||l===10||l===9||l===13||l===12);_=[`space`,s.slice(y,u)],y=u-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(l);_=[e,e,y];break}case 44:_=[`word`,`,`,y,y+1];break;case 40:if(h=b.length?b.pop()[1]:``,g=s.charCodeAt(y+1),h===`url`&&g!==39&&g!==34){for(S=1,m=!1,u=y+1;u<=s.length-1;){if(g=s.charCodeAt(u),g===92)m=!m;else if(g===40)S+=1;else if(g===41&&(--S,S===0))break;u+=1}f=s.slice(y,u+1),_=[`brackets`,f,y,u],y=u}else u=s.indexOf(`)`,y+1),f=s.slice(y,u+1),u===-1||i.test(f)?_=[`(`,`(`,y]:(_=[`brackets`,f,y,u],y=u);break;case 39:case 34:for(d=l,u=y,m=!1;u<v&&(u++,u===v&&w(`string`),l=s.charCodeAt(u),g=s.charCodeAt(u+1),!(!m&&l===d));)l===92?m=!m:m?m=!1:l===35&&g===123&&E();_=[`string`,s.slice(y,u+1),y,u],y=u;break;case 64:n.lastIndex=y+1,n.test(s),u=n.lastIndex===0?s.length-1:n.lastIndex-2,_=[`at-word`,s.slice(y,u+1),y,u],y=u;break;case 92:for(u=y,p=!0;s.charCodeAt(u+1)===92;)u+=1,p=!p;if(l=s.charCodeAt(u+1),p&&l!==47&&l!==32&&l!==10&&l!==9&&l!==13&&l!==12&&(u+=1,a.test(s.charAt(u)))){for(;a.test(s.charAt(u+1));)u+=1;s.charCodeAt(u+1)===32&&(u+=1)}_=[`word`,s.slice(y,u+1),y,u],y=u;break;default:g=s.charCodeAt(y+1),l===35&&g===123?(u=y,E(),f=s.slice(y,u+1),_=[`word`,f,y,u],y=u):l===47&&g===42?(u=s.indexOf(`*/`,y+2)+1,u===0&&(c||t?u=s.length:w(`comment`)),_=[`comment`,s.slice(y,u+1),y,u],y=u):l===47&&g===47?(o.lastIndex=y+1,o.test(s),u=o.lastIndex===0?s.length-1:o.lastIndex-2,f=s.slice(y,u+1),_=[`comment`,f,y,u,`inline`],y=u):(r.lastIndex=y+1,r.test(s),u=r.lastIndex===0?s.length-1:r.lastIndex-2,_=[`word`,s.slice(y,u+1),y,u],b.push(_),y=u)}return y++,_}function O(e){x.push(e)}return{back:O,endOfFile:T,nextToken:D,position:C}}}),ve=s((e,t)=>{var{Comment:n}=he(),r=ee(),i=ge(),a=_e();t.exports=class extends r{atrule(e){let t=e[1],n=e;for(;!this.tokenizer.endOfFile();){let e=this.tokenizer.nextToken();if(e[0]===`word`&&e[2]===n[3]+1)t+=e[1],n=e;else{this.tokenizer.back(e);break}}super.atrule([`at-word`,t,e[2],n[3]])}comment(e){if(e[4]===`inline`){let t=new n;this.init(t,e[2]),t.raws.inline=!0;let r=this.input.fromOffset(e[3]);t.source.end={column:r.col,line:r.line,offset:e[3]+1};let i=e[1].slice(2);if(/^\s*$/.test(i))t.text=``,t.raws.left=i,t.raws.right=``;else{let e=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2].replace(/(\*\/|\/\*)/g,`*//*`),t.raws.left=e[1],t.raws.right=e[3],t.raws.text=e[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=a(this.input)}raw(e,t,n,r){if(super.raw(e,t,n,r),e.raws[t]){let r=e.raws[t].raw;e.raws[t].raw=n.reduce((e,t)=>{if(t[0]===`comment`&&t[4]===`inline`){let n=t[1].slice(2).replace(/(\*\/|\/\*)/g,`*//*`);return e+`/*`+n+`*/`}return e+t[1]},``),r!==e.raws[t].raw&&(e.raws[t].scss=r)}}rule(e){let t=!1,n=0,r=``;for(let i of e)if(t)i[0]!==`comment`&&i[0]!==`{`&&(r+=i[1]);else{if(i[0]===`space`&&i[1].includes(`
26
- `))break;i[0]===`(`?n+=1:i[0]===`)`?--n:n===0&&i[0]===`:`&&(t=!0)}if(!t||r.trim()===``||/^[#:A-Za-z-]/.test(r))super.rule(e);else{e.pop();let t=new i;this.init(t,e[0][2]);let n;for(let t=e.length-1;t>=0;t--)if(e[t][0]!==`space`){n=e[t];break}if(n[3]){let e=this.input.fromOffset(n[3]);t.source.end={column:e.col,line:e.line,offset:n[3]+1}}else{let e=this.input.fromOffset(n[2]);t.source.end={column:e.col,line:e.line,offset:n[2]+1}}for(;e[0][0]!==`word`;)t.raws.before+=e.shift()[1];if(e[0][2]){let n=this.input.fromOffset(e[0][2]);t.source.start={column:n.col,line:n.line,offset:e[0][2]}}for(t.prop=``;e.length;){let n=e[0][0];if(n===`:`||n===`space`||n===`comment`)break;t.prop+=e.shift()[1]}t.raws.between=``;let r;for(;e.length;)if(r=e.shift(),r[0]===`:`){t.raws.between+=r[1];break}else t.raws.between+=r[1];(t.prop[0]===`_`||t.prop[0]===`*`)&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let n=e.length-1;n>0;n--){if(r=e[n],r[1]===`!important`){t.important=!0;let r=this.stringFrom(e,n);r=this.spacesFromEnd(e)+r,r!==` !important`&&(t.raws.important=r);break}if(r[1]===`important`){let r=e.slice(0),i=``;for(let e=n;e>0;e--){let t=r[e][0];if(i.trim().indexOf(`!`)===0&&t!==`space`)break;i=r.pop()[1]+i}i.trim().indexOf(`!`)===0&&(t.important=!0,t.raws.important=i,e=r)}if(r[0]!==`space`&&r[0]!==`comment`)break}this.raw(t,`value`,e),t.value.includes(`:`)&&this.checkMissedSemicolon(e),this.current=t}}}}),ye=s((e,t)=>{var{Input:n}=he(),r=ve();t.exports=function(e,t){let i=new r(new n(e,t));return i.parse(),i.root}}),be=s(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){this.after=e.after,this.before=e.before,this.type=e.type,this.value=e.value,this.sourceIndex=e.sourceIndex}e.default=t}),xe=s(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=n(be());function n(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=this;this.constructor(e),this.nodes=e.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:``),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:``),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(e){e.parent=t})}r.prototype=Object.create(t.default.prototype),r.constructor=t.default,r.prototype.walk=function(e,t){for(var n=typeof e==`string`||e instanceof RegExp,r=n?t:e,i=typeof e==`string`?new RegExp(e):e,a=0;a<this.nodes.length;a++){var o=this.nodes[a];if((!n||i.test(o.type))&&r&&r(o,a,this.nodes)===!1||o.nodes&&o.walk(e,t)===!1)return!1}return!0},r.prototype.each=function(){for(var e=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],t=0;t<this.nodes.length;t++){var n=this.nodes[t];if(e(n,t,this.nodes)===!1)return!1}return!0},e.default=r}),Se=s(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseMediaFeature=i,e.parseMediaQuery=a,e.parseMediaList=o;var t=r(be()),n=r(xe());function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=arguments.length<=1||arguments[1]===void 0?0:arguments[1],n=[{mode:`normal`,character:null}],r=[],i=0,a=``,o=null,s=null,c=t,l=e;e[0]===`(`&&e[e.length-1]===`)`&&(l=e.substring(1,e.length-1),c++);for(var u=0;u<l.length;u++){var d=l[u];if((d===`'`||d===`"`)&&(n[i].isCalculationEnabled===!0?(n.push({mode:`string`,isCalculationEnabled:!1,character:d}),i++):n[i].mode===`string`&&n[i].character===d&&l[u-1]!==`\\`&&(n.pop(),i--)),d===`{`?(n.push({mode:`interpolation`,isCalculationEnabled:!0}),i++):d===`}`&&(n.pop(),i--),n[i].mode===`normal`&&d===`:`){var f=l.substring(u+1);s={type:`value`,before:/^(\s*)/.exec(f)[1],after:/(\s*)$/.exec(f)[1],value:f.trim()},s.sourceIndex=s.before.length+u+1+c,o={type:`colon`,sourceIndex:u+c,after:s.before,value:`:`};break}a+=d}return a={type:`media-feature`,before:/^(\s*)/.exec(a)[1],after:/(\s*)$/.exec(a)[1],value:a.trim()},a.sourceIndex=a.before.length+c,r.push(a),o!==null&&(o.before=a.after,r.push(o)),s!==null&&r.push(s),r}function a(e){var r=arguments.length<=1||arguments[1]===void 0?0:arguments[1],a=[],o=0,s=!1,c=void 0;function l(){return{before:``,after:``,value:``}}c=l();for(var u=0;u<e.length;u++){var d=e[u];s?(c.value+=d,(d===`{`||d===`(`)&&o++,(d===`)`||d===`}`)&&o--):d.search(/\s/)===-1?(d===`(`&&(c.type=`media-feature-expression`,o++),c.value=d,c.sourceIndex=r+u,s=!0):c.before+=d,s&&o===0&&(d===`)`||u===e.length-1||e[u+1].search(/\s/)!==-1)&&([`not`,`only`,`and`].indexOf(c.value)!==-1&&(c.type=`keyword`),c.type===`media-feature-expression`&&(c.nodes=i(c.value,c.sourceIndex)),a.push(Array.isArray(c.nodes)?new n.default(c):new t.default(c)),c=l(),s=!1)}for(var f=0;f<a.length;f++)if(c=a[f],f>0&&(a[f-1].after=c.before),c.type===void 0){if(f>0){if(a[f-1].type===`media-feature-expression`){c.type=`keyword`;continue}if(a[f-1].value===`not`||a[f-1].value===`only`){c.type=`media-type`;continue}if(a[f-1].value===`and`){c.type=`media-feature-expression`;continue}a[f-1].type===`media-type`&&(a[f+1]?c.type=a[f+1].type===`media-feature-expression`?`keyword`:`media-feature-expression`:c.type=`media-feature-expression`)}if(f===0){if(!a[f+1]){c.type=`media-type`;continue}if(a[f+1]&&(a[f+1].type===`media-feature-expression`||a[f+1].type===`keyword`)){c.type=`media-type`;continue}if(a[f+2]){if(a[f+2].type===`media-feature-expression`){c.type=`media-type`,a[f+1].type=`keyword`;continue}if(a[f+2].type===`keyword`){c.type=`keyword`,a[f+1].type=`media-type`;continue}}if(a[f+3]&&a[f+3].type===`media-feature-expression`){c.type=`keyword`,a[f+1].type=`media-type`,a[f+2].type=`keyword`;continue}}}return a}function o(e){var r=[],i=0,o=0,s=/^(\s*)url\s*\(/.exec(e);if(s!==null){for(var c=s[0].length,l=1;l>0;){var u=e[c];u===`(`&&l++,u===`)`&&l--,c++}r.unshift(new t.default({type:`url`,value:e.substring(0,c).trim(),sourceIndex:s[1].length,before:s[1],after:/^(\s*)/.exec(e.substring(c))[1]})),i=c}for(var d=i;d<e.length;d++){var f=e[d];if(f===`(`&&o++,f===`)`&&o--,o===0&&f===`,`){var p=e.substring(i,d),m=/^(\s*)/.exec(p)[1];r.push(new n.default({type:`media-query`,value:p.trim(),sourceIndex:i+m.length,nodes:a(p,i),before:m,after:/(\s*)$/.exec(p)[1]})),i=d+1}}var h=e.substring(i),g=/^(\s*)/.exec(h)[1];return r.push(new n.default({type:`media-query`,value:h.trim(),sourceIndex:i+g.length,nodes:a(h,i),before:g,after:/(\s*)$/.exec(h)[1]})),r}}),Ce=s(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=r(xe()),n=Se();function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return new t.default({nodes:(0,n.parseMediaList)(e),type:`media-query-list`,value:e.trim()})}}),we=s((e,t)=>{t.exports=function(e,t){if(t=typeof t==`number`?t:1/0,!t)return Array.isArray(e)?e.map(function(e){return e}):e;return n(e,1);function n(e,r){return e.reduce(function(e,i){return Array.isArray(i)&&r<t?e.concat(n(i,r+1)):e.concat(i)},[])}}}),Te=s((e,t)=>{t.exports=function(e,t){for(var n=-1,r=[];(n=e.indexOf(t,n+1))!==-1;)r.push(n);return r}}),Ee=s((e,t)=>{function n(e,t){for(var n=1,r=e.length,i=e[0],a=e[0],o=1;o<r;++o)if(a=i,i=e[o],t(i,a)){if(o===n){n++;continue}e[n++]=i}return e.length=n,e}function r(e){for(var t=1,n=e.length,r=e[0],i=e[0],a=1;a<n;++a,i=r)if(i=r,r=e[a],r!==i){if(a===t){t++;continue}e[t++]=r}return e.length=t,e}function i(e,t,i){return e.length===0?e:t?(i||e.sort(t),n(e,t)):(i||e.sort(),r(e))}t.exports=i}),De=s((e,t)=>{e.__esModule=!0;var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e};function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var i=function e(t,r){if((typeof t>`u`?`undefined`:n(t))!==`object`)return t;var i=new t.constructor;for(var a in t)if(t.hasOwnProperty(a)){var o=t[a],s=typeof o>`u`?`undefined`:n(o);a===`parent`&&s===`object`?r&&(i[a]=r):i[a]=o instanceof Array?o.map(function(t){return e(t,i)}):e(o,i)}return i};e.default=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var n in r(this,e),t)this[n]=t[n];var i=t.spaces;i=i===void 0?{}:i;var a=i.before,o=a===void 0?``:a,s=i.after,c=s===void 0?``:s;this.spaces={before:o,after:c}}return e.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.prototype.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},e.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},e.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},e.prototype.clone=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=i(this);for(var n in e)t[n]=e[n];return t},e.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join(``)},e})(),t.exports=e.default}),P=s(e=>{e.__esModule=!0,e.TAG=`tag`,e.STRING=`string`,e.SELECTOR=`selector`,e.ROOT=`root`,e.PSEUDO=`pseudo`,e.NESTING=`nesting`,e.ID=`id`,e.COMMENT=`comment`,e.COMBINATOR=`combinator`,e.CLASS=`class`,e.ATTRIBUTE=`attribute`,e.UNIVERSAL=`universal`}),Oe=s((e,t)=>{e.__esModule=!0;var n=(function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),r=o(De()),i=a(P());function a(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function c(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function l(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){l(t,e);function t(n){s(this,t);var r=c(this,e.call(this,n));return r.nodes||(r.nodes=[]),r}return t.prototype.append=function(e){return e.parent=this,this.nodes.push(e),this},t.prototype.prepend=function(e){return e.parent=this,this.nodes.unshift(e),this},t.prototype.at=function(e){return this.nodes[e]},t.prototype.index=function(e){return typeof e==`number`?e:this.nodes.indexOf(e)},t.prototype.removeChild=function(e){e=this.index(e),this.at(e).parent=void 0,this.nodes.splice(e,1);var t=void 0;for(var n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this},t.prototype.removeAll=function(){for(var e=this.nodes,t=Array.isArray(e),n=0,e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if(n=e.next(),n.done)break;r=n.value}var i=r;i.parent=void 0}return this.nodes=[],this},t.prototype.empty=function(){return this.removeAll()},t.prototype.insertAfter=function(e,t){var n=this.index(e);this.nodes.splice(n+1,0,t);var r=void 0;for(var i in this.indexes)r=this.indexes[i],n<=r&&(this.indexes[i]=r+this.nodes.length);return this},t.prototype.insertBefore=function(e,t){var n=this.index(e);this.nodes.splice(n,0,t);var r=void 0;for(var i in this.indexes)r=this.indexes[i],n<=r&&(this.indexes[i]=r+this.nodes.length);return this},t.prototype.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var n=void 0,r=void 0;this.indexes[t]<this.length&&(n=this.indexes[t],r=e(this.at(n),n),r!==!1);)this.indexes[t]+=1;if(delete this.indexes[t],r===!1)return!1}},t.prototype.walk=function(e){return this.each(function(t,n){var r=e(t,n);if(r!==!1&&t.length&&(r=t.walk(e)),r===!1)return!1})},t.prototype.walkAttributes=function(e){var t=this;return this.walk(function(n){if(n.type===i.ATTRIBUTE)return e.call(t,n)})},t.prototype.walkClasses=function(e){var t=this;return this.walk(function(n){if(n.type===i.CLASS)return e.call(t,n)})},t.prototype.walkCombinators=function(e){var t=this;return this.walk(function(n){if(n.type===i.COMBINATOR)return e.call(t,n)})},t.prototype.walkComments=function(e){var t=this;return this.walk(function(n){if(n.type===i.COMMENT)return e.call(t,n)})},t.prototype.walkIds=function(e){var t=this;return this.walk(function(n){if(n.type===i.ID)return e.call(t,n)})},t.prototype.walkNesting=function(e){var t=this;return this.walk(function(n){if(n.type===i.NESTING)return e.call(t,n)})},t.prototype.walkPseudos=function(e){var t=this;return this.walk(function(n){if(n.type===i.PSEUDO)return e.call(t,n)})},t.prototype.walkTags=function(e){var t=this;return this.walk(function(n){if(n.type===i.TAG)return e.call(t,n)})},t.prototype.walkUniversals=function(e){var t=this;return this.walk(function(n){if(n.type===i.UNIVERSAL)return e.call(t,n)})},t.prototype.split=function(e){var t=this,n=[];return this.reduce(function(r,i,a){var o=e.call(t,i);return n.push(i),o?(r.push(n),n=[]):a===t.length-1&&r.push(n),r},[])},t.prototype.map=function(e){return this.nodes.map(e)},t.prototype.reduce=function(e,t){return this.nodes.reduce(e,t)},t.prototype.every=function(e){return this.nodes.every(e)},t.prototype.some=function(e){return this.nodes.some(e)},t.prototype.filter=function(e){return this.nodes.filter(e)},t.prototype.sort=function(e){return this.nodes.sort(e)},t.prototype.toString=function(){return this.map(String).join(``)},n(t,[{key:`first`,get:function(){return this.at(0)}},{key:`last`,get:function(){return this.at(this.length-1)}},{key:`length`,get:function(){return this.nodes.length}}]),t})(r.default),t.exports=e.default}),ke=s((e,t)=>{e.__esModule=!0;var n=i(Oe()),r=P();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.ROOT,i}return t.prototype.toString=function(){var e=this.reduce(function(e,t){var n=String(t);return n?e+n+`,`:``},``).slice(0,-1);return this.trailingComma?e+`,`:e},t})(n.default),t.exports=e.default}),Ae=s((e,t)=>{e.__esModule=!0;var n=i(Oe()),r=P();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.SELECTOR,i}return t})(n.default),t.exports=e.default}),je=s((e,t)=>{e.__esModule=!0;var n=(function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),r=i(De());function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(){return a(this,t),o(this,e.apply(this,arguments))}return t.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join(``)},n(t,[{key:`ns`,get:function(){var e=this.namespace;return e?(typeof e==`string`?e:``)+`|`:``}}]),t})(r.default),t.exports=e.default}),Me=s((e,t)=>{e.__esModule=!0;var n=i(je()),r=P();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.CLASS,i}return t.prototype.toString=function(){return[this.spaces.before,this.ns,`.`+this.value,this.spaces.after].join(``)},t})(n.default),t.exports=e.default}),Ne=s((e,t)=>{e.__esModule=!0;var n=i(De()),r=P();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.COMMENT,i}return t})(n.default),t.exports=e.default}),Pe=s((e,t)=>{e.__esModule=!0;var n=i(je()),r=P();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.ID,i}return t.prototype.toString=function(){return[this.spaces.before,this.ns,`#`+this.value,this.spaces.after].join(``)},t})(n.default),t.exports=e.default}),Fe=s((e,t)=>{e.__esModule=!0;var n=i(je()),r=P();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.TAG,i}return t})(n.default),t.exports=e.default}),Ie=s((e,t)=>{e.__esModule=!0;var n=i(De()),r=P();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.STRING,i}return t})(n.default),t.exports=e.default}),Le=s((e,t)=>{e.__esModule=!0;var n=i(Oe()),r=P();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.PSEUDO,i}return t.prototype.toString=function(){var e=this.length?`(`+this.map(String).join(`,`)+`)`:``;return[this.spaces.before,String(this.value),e,this.spaces.after].join(``)},t})(n.default),t.exports=e.default}),Re=s((e,t)=>{e.__esModule=!0;var n=i(je()),r=P();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.ATTRIBUTE,i.raws={},i}return t.prototype.toString=function(){var e=[this.spaces.before,`[`,this.ns,this.attribute];return this.operator&&e.push(this.operator),this.value&&e.push(this.value),this.raws.insensitive?e.push(this.raws.insensitive):this.insensitive&&e.push(` i`),e.push(`]`),e.concat(this.spaces.after).join(``)},t})(n.default),t.exports=e.default}),ze=s((e,t)=>{e.__esModule=!0;var n=i(je()),r=P();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.UNIVERSAL,i.value=`*`,i}return t})(n.default),t.exports=e.default}),Be=s((e,t)=>{e.__esModule=!0;var n=i(De()),r=P();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.COMBINATOR,i}return t})(n.default),t.exports=e.default}),Ve=s((e,t)=>{e.__esModule=!0;var n=i(De()),r=P();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=(function(e){s(t,e);function t(n){a(this,t);var i=o(this,e.call(this,n));return i.type=r.NESTING,i.value=`&`,i}return t})(n.default),t.exports=e.default}),He=s((e,t)=>{e.__esModule=!0,e.default=n;function n(e){return e.sort(function(e,t){return e-t})}t.exports=e.default}),Ue=s((e,t)=>{e.__esModule=!0,e.default=D;var n=39,r=34,i=92,a=47,o=10,s=32,c=12,l=9,u=13,d=43,f=62,p=126,m=124,h=44,g=40,_=41,v=91,y=93,b=59,x=42,S=58,C=38,w=64,T=/[ \n\t\r\{\(\)'"\\;/]/g,E=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function D(e){for(var t=[],D=e.css.valueOf(),O=void 0,k=void 0,ee=void 0,te=void 0,A=void 0,ne=void 0,re=void 0,ie=void 0,ae=void 0,oe=void 0,se=void 0,ce=D.length,j=-1,M=1,N=0,le=function(t,n){if(e.safe)D+=n,k=D.length-1;else throw e.error(`Unclosed `+t,M,N-j,N)};N<ce;){switch(O=D.charCodeAt(N),O===o&&(j=N,M+=1),O){case o:case s:case l:case u:case c:k=N;do k+=1,O=D.charCodeAt(k),O===o&&(j=k,M+=1);while(O===s||O===o||O===l||O===u||O===c);t.push([`space`,D.slice(N,k),M,N-j,N]),N=k-1;break;case d:case f:case p:case m:k=N;do k+=1,O=D.charCodeAt(k);while(O===d||O===f||O===p||O===m);t.push([`combinator`,D.slice(N,k),M,N-j,N]),N=k-1;break;case x:t.push([`*`,`*`,M,N-j,N]);break;case C:t.push([`&`,`&`,M,N-j,N]);break;case h:t.push([`,`,`,`,M,N-j,N]);break;case v:t.push([`[`,`[`,M,N-j,N]);break;case y:t.push([`]`,`]`,M,N-j,N]);break;case S:t.push([`:`,`:`,M,N-j,N]);break;case b:t.push([`;`,`;`,M,N-j,N]);break;case g:t.push([`(`,`(`,M,N-j,N]);break;case _:t.push([`)`,`)`,M,N-j,N]);break;case n:case r:ee=O===n?`'`:`"`,k=N;do for(oe=!1,k=D.indexOf(ee,k+1),k===-1&&le(`quote`,ee),se=k;D.charCodeAt(se-1)===i;)--se,oe=!oe;while(oe);t.push([`string`,D.slice(N,k+1),M,N-j,M,k-j,N]),N=k;break;case w:T.lastIndex=N+1,T.test(D),k=T.lastIndex===0?D.length-1:T.lastIndex-2,t.push([`at-word`,D.slice(N,k+1),M,N-j,M,k-j,N]),N=k;break;case i:for(k=N,re=!0;D.charCodeAt(k+1)===i;)k+=1,re=!re;O=D.charCodeAt(k+1),re&&O!==a&&O!==s&&O!==o&&O!==l&&O!==u&&O!==c&&(k+=1),t.push([`word`,D.slice(N,k+1),M,N-j,M,k-j,N]),N=k;break;default:O===a&&D.charCodeAt(N+1)===x?(k=D.indexOf(`*/`,N+2)+1,k===0&&le(`comment`,`*/`),ne=D.slice(N,k+1),te=ne.split(`
27
- `),A=te.length-1,A>0?(ie=M+A,ae=k-te[A].length):(ie=M,ae=j),t.push([`comment`,ne,M,N-j,ie,k-ae,N]),j=ae,M=ie,N=k):(E.lastIndex=N+1,E.test(D),k=E.lastIndex===0?D.length-1:E.lastIndex-2,t.push([`word`,D.slice(N,k+1),M,N-j,M,k-j,N]),N=k)}N++}return t}t.exports=e.default}),We=s((e,t)=>{e.__esModule=!0;var n=(function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),r=S(we()),i=S(Te()),a=S(Ee()),o=S(ke()),s=S(Ae()),c=S(Me()),l=S(Ne()),u=S(Pe()),d=S(Fe()),f=S(Ie()),p=S(Le()),m=S(Re()),h=S(ze()),g=S(Be()),_=S(Ve()),v=S(He()),y=S(Ue()),b=x(P());function x(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function C(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}e.default=(function(){function e(t){C(this,e),this.input=t,this.lossy=t.options.lossless===!1,this.position=0,this.root=new o.default;var n=new s.default;return this.root.append(n),this.current=n,this.tokens=this.lossy?(0,y.default)({safe:t.safe,css:t.css.trim()}):(0,y.default)(t),this.loop()}return e.prototype.attribute=function(){var e=``,t=void 0,n=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!==`]`;)e+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~e.indexOf(`]`)&&this.error(`Expected a closing square bracket.`);var r=e.split(/((?:[*~^$|]?=))([^]*)/),i=r[0].split(/(\|)/g),a={operator:r[1],value:r[2],source:{start:{line:n[2],column:n[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:n[4]};if(i.length>1?(i[0]===``&&(i[0]=!0),a.attribute=this.parseValue(i[2]),a.namespace=this.parseNamespace(i[0])):a.attribute=this.parseValue(r[0]),t=new m.default(a),r[2]){var o=r[2].split(/(\s+i\s*?)$/),s=o[0].trim();t.value=this.lossy?s:o[0],o[1]&&(t.insensitive=!0,this.lossy||(t.raws.insensitive=o[1])),t.quoted=s[0]===`'`||s[0]===`"`,t.raws.unquoted=t.quoted?s.slice(1,-1):s}this.newNode(t),this.position++},e.prototype.combinator=function(){if(this.currToken[1]===`|`)return this.namespace();for(var e=new g.default({value:``,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]===`space`||this.currToken[0]===`combinator`);)this.nextToken&&this.nextToken[0]===`combinator`?(e.spaces.before=this.parseSpace(this.currToken[1]),e.source.start.line=this.nextToken[2],e.source.start.column=this.nextToken[3],e.source.end.column=this.nextToken[3],e.source.end.line=this.nextToken[2],e.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]===`combinator`?e.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]===`combinator`?e.value=this.currToken[1]:this.currToken[0]===`space`&&(e.value=this.parseSpace(this.currToken[1],` `)),this.position++;return this.newNode(e)},e.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var e=new s.default;this.current.parent.append(e),this.current=e,this.position++},e.prototype.comment=function(){var e=new l.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(e),this.position++},e.prototype.error=function(e){throw new this.input.error(e)},e.prototype.missingBackslash=function(){return this.error(`Expected a backslash preceding the semicolon.`)},e.prototype.missingParenthesis=function(){return this.error(`Expected opening parenthesis.`)},e.prototype.missingSquareBracket=function(){return this.error(`Expected opening square bracket.`)},e.prototype.namespace=function(){var e=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]===`word`)return this.position++,this.word(e);if(this.nextToken[0]===`*`)return this.position++,this.universal(e)},e.prototype.nesting=function(){this.newNode(new _.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},e.prototype.parentheses=function(){var e=this.current.last;if(e&&e.type===b.PSEUDO){var t=new s.default,n=this.current;e.append(t),this.current=t;var r=1;for(this.position++;this.position<this.tokens.length&&r;)this.currToken[0]===`(`&&r++,this.currToken[0]===`)`&&r--,r?this.parse():(t.parent.source.end.line=this.currToken[2],t.parent.source.end.column=this.currToken[3],this.position++);r&&this.error(`Expected closing parenthesis.`),this.current=n}else{var i=1;for(this.position++,e.value+=`(`;this.position<this.tokens.length&&i;)this.currToken[0]===`(`&&i++,this.currToken[0]===`)`&&i--,e.value+=this.parseParenthesisToken(this.currToken),this.position++;i&&this.error(`Expected closing parenthesis.`)}},e.prototype.pseudo=function(){for(var e=this,t=``,n=this.currToken;this.currToken&&this.currToken[0]===`:`;)t+=this.currToken[1],this.position++;if(!this.currToken)return this.error(`Expected pseudo-class or pseudo-element`);if(this.currToken[0]===`word`){var r=void 0;this.splitWord(!1,function(i,a){t+=i,r=new p.default({value:t,source:{start:{line:n[2],column:n[3]},end:{line:e.currToken[4],column:e.currToken[5]}},sourceIndex:n[4]}),e.newNode(r),a>1&&e.nextToken&&e.nextToken[0]===`(`&&e.error(`Misplaced parenthesis.`)})}else this.error(`Unexpected "`+this.currToken[0]+`" found.`)},e.prototype.space=function(){var e=this.currToken;this.position===0||this.prevToken[0]===`,`||this.prevToken[0]===`(`?(this.spaces=this.parseSpace(e[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===`,`||this.nextToken[0]===`)`?(this.current.last.spaces.after=this.parseSpace(e[1]),this.position++):this.combinator()},e.prototype.string=function(){var e=this.currToken;this.newNode(new f.default({value:this.currToken[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++},e.prototype.universal=function(e){var t=this.nextToken;if(t&&t[1]===`|`)return this.position++,this.namespace();this.newNode(new h.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),e),this.position++},e.prototype.splitWord=function(e,t){for(var n=this,o=this.nextToken,s=this.currToken[1];o&&o[0]===`word`;){this.position++;var l=this.currToken[1];if(s+=l,l.lastIndexOf(`\\`)===l.length-1){var f=this.nextToken;f&&f[0]===`space`&&(s+=this.parseSpace(f[1],` `),this.position++)}o=this.nextToken}var p=(0,i.default)(s,`.`),m=(0,i.default)(s,`#`),h=(0,i.default)(s,`#{`);h.length&&(m=m.filter(function(e){return!~h.indexOf(e)}));var g=(0,v.default)((0,a.default)((0,r.default)([[0],p,m])));g.forEach(function(r,i){var a=g[i+1]||s.length,o=s.slice(r,a);if(i===0&&t)return t.call(n,o,g.length);var l=void 0;l=~p.indexOf(r)?new c.default({value:o.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+r},end:{line:n.currToken[4],column:n.currToken[3]+(a-1)}},sourceIndex:n.currToken[6]+g[i]}):~m.indexOf(r)?new u.default({value:o.slice(1),source:{start:{line:n.currToken[2],column:n.currToken[3]+r},end:{line:n.currToken[4],column:n.currToken[3]+(a-1)}},sourceIndex:n.currToken[6]+g[i]}):new d.default({value:o,source:{start:{line:n.currToken[2],column:n.currToken[3]+r},end:{line:n.currToken[4],column:n.currToken[3]+(a-1)}},sourceIndex:n.currToken[6]+g[i]}),n.newNode(l,e)}),this.position++},e.prototype.word=function(e){var t=this.nextToken;return t&&t[1]===`|`?(this.position++,this.namespace()):this.splitWord(e)},e.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},e.prototype.parse=function(e){switch(this.currToken[0]){case`space`:this.space();break;case`comment`:this.comment();break;case`(`:this.parentheses();break;case`)`:e&&this.missingParenthesis();break;case`[`:this.attribute();break;case`]`:this.missingSquareBracket();break;case`at-word`:case`word`:this.word();break;case`:`:this.pseudo();break;case`;`:this.missingBackslash();break;case`,`:this.comma();break;case`*`:this.universal();break;case`&`:this.nesting();break;case`combinator`:this.combinator();break;case`string`:this.string()}},e.prototype.parseNamespace=function(e){if(this.lossy&&typeof e==`string`){var t=e.trim();return!t.length||t}return e},e.prototype.parseSpace=function(e,t){return this.lossy?t||``:e},e.prototype.parseValue=function(e){return this.lossy&&e&&typeof e==`string`?e.trim():e},e.prototype.parseParenthesisToken=function(e){return this.lossy?e[0]===`space`?this.parseSpace(e[1],` `):this.parseValue(e[1]):e[1]},e.prototype.newNode=function(e,t){return t&&(e.namespace=this.parseNamespace(t)),this.spaces&&(e.spaces.before=this.spaces,this.spaces=``),this.current.append(e)},n(e,[{key:`currToken`,get:function(){return this.tokens[this.position]}},{key:`nextToken`,get:function(){return this.tokens[this.position+1]}},{key:`prevToken`,get:function(){return this.tokens[this.position-1]}}]),e})(),t.exports=e.default}),Ge=s((e,t)=>{e.__esModule=!0;var n=(function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}})(),r=i(We());function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}e.default=(function(){function e(t){return a(this,e),this.func=t||function(){},this}return e.prototype.process=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new r.default({css:e,error:function(e){throw Error(e)},options:t});return this.res=n,this.func(n),this},n(e,[{key:`result`,get:function(){return String(this.res)}}]),e})(),t.exports=e.default}),F=s((e,t)=>{var n=function(e,t){let r=new e.constructor;for(let i in e){if(!e.hasOwnProperty(i))continue;let a=e[i],o=typeof a;i===`parent`&&o===`object`?t&&(r[i]=t):i===`source`?r[i]=a:a instanceof Array?r[i]=a.map(e=>n(e,r)):i!==`before`&&i!==`after`&&i!==`between`&&i!==`semicolon`&&(o===`object`&&a!==null&&(a=n(a)),r[i]=a)}return r};t.exports=class{constructor(e){e=e||{},this.raws={before:``,after:``};for(let t in e)this[t]=e[t]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join(``)}clone(e){e=e||{};let t=n(this);for(let n in e)t[n]=e[n];return t}cloneBefore(e){e=e||{};let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e){e=e||{};let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(){let e=Array.prototype.slice.call(arguments);if(this.parent){for(let t of e)this.parent.insertBefore(this,t);this.remove()}return this}moveTo(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this}moveBefore(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this}moveAfter(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this}next(){let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){let e=this.parent.index(this);return this.parent.nodes[e-1]}toJSON(){let e={};for(let t in this){if(!this.hasOwnProperty(t)||t===`parent`)continue;let n=this[t];e[t]=n instanceof Array?n.map(e=>typeof e==`object`&&e.toJSON?e.toJSON():e):typeof n==`object`&&n.toJSON?n.toJSON():n}return e}root(){let e=this;for(;e.parent;)e=e.parent;return e}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}positionInside(e){let t=this.toString(),n=this.source.start.column,r=this.source.start.line;for(let i=0;i<e;i++)t[i]===`
28
- `?(n=1,r+=1):n+=1;return{line:r,column:n}}positionBy(e){let t=this.source.start;if(Object(e).index)t=this.positionInside(e.index);else if(Object(e).word){let n=this.toString().indexOf(e.word);n!==-1&&(t=this.positionInside(n))}return t}}}),I=s((e,t)=>{var n=F(),r=class extends n{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let t=this.lastEach,n,r;if(this.indexes[t]=0,this.nodes){for(;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],r=e(this.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}}walk(e){return this.each((t,n)=>{let r=e(t,n);return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkType(e,t){if(!e||!t)throw Error(`Parameters {type} and {callback} are required.`);let n=typeof e==`function`;return this.walk((r,i)=>{if(n&&r instanceof e||!n&&r.type===e)return t.call(this,r,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertAfter(e,t){let n=this.index(e),r;this.nodes.splice(n+1,0,t);for(let e in this.indexes)r=this.indexes[e],n<=r&&(this.indexes[e]=r+this.nodes.length);return this}insertBefore(e,t){let n=this.index(e),r;this.nodes.splice(n,0,t);for(let e in this.indexes)r=this.indexes[e],n<=r&&(this.indexes[e]=r+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e==`number`?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join(``);return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};r.registerWalker=e=>{let t=`walk`+e.name;t.lastIndexOf(`s`)!==t.length-1&&(t+=`s`),!r.prototype[t]&&(r.prototype[t]=function(t){return this.walkType(e,t)})},t.exports=r}),Ke=s((e,t)=>{var n=I();t.exports=class extends n{constructor(e){super(e),this.type=`root`}}}),qe=s((e,t)=>{var n=I();t.exports=class extends n{constructor(e){super(e),this.type=`value`,this.unbalanced=0}}}),Je=s((e,t)=>{var n=I(),r=class extends n{constructor(e){super(e),this.type=`atword`}toString(){return this.quoted&&this.raws.quote,[this.raws.before,`@`,String.prototype.toString.call(this.value),this.raws.after].join(``)}};n.registerWalker(r),t.exports=r}),Ye=s((e,t)=>{var n=I(),r=F(),i=class extends r{constructor(e){super(e),this.type=`colon`}};n.registerWalker(i),t.exports=i}),Xe=s((e,t)=>{var n=I(),r=F(),i=class extends r{constructor(e){super(e),this.type=`comma`}};n.registerWalker(i),t.exports=i}),Ze=s((e,t)=>{var n=I(),r=F(),i=class extends r{constructor(e){super(e),this.type=`comment`,this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?`//`:`/*`,String(this.value),this.inline?``:`*/`,this.raws.after].join(``)}};n.registerWalker(i),t.exports=i}),Qe=s((e,t)=>{var n=I(),r=class extends n{constructor(e){super(e),this.type=`func`,this.unbalanced=-1}};n.registerWalker(r),t.exports=r}),$e=s((e,t)=>{var n=I(),r=F(),i=class extends r{constructor(e){super(e),this.type=`number`,this.unit=Object(e).unit||``}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join(``)}};n.registerWalker(i),t.exports=i}),et=s((e,t)=>{var n=I(),r=F(),i=class extends r{constructor(e){super(e),this.type=`operator`}};n.registerWalker(i),t.exports=i}),tt=s((e,t)=>{var n=I(),r=F(),i=class extends r{constructor(e){super(e),this.type=`paren`,this.parenType=``}};n.registerWalker(i),t.exports=i}),nt=s((e,t)=>{var n=I(),r=F(),i=class extends r{constructor(e){super(e),this.type=`string`}toString(){let e=this.quoted?this.raws.quote:``;return[this.raws.before,e,this.value+``,e,this.raws.after].join(``)}};n.registerWalker(i),t.exports=i}),rt=s((e,t)=>{var n=I(),r=F(),i=class extends r{constructor(e){super(e),this.type=`word`}};n.registerWalker(i),t.exports=i}),it=s((e,t)=>{var n=I(),r=F(),i=class extends r{constructor(e){super(e),this.type=`unicode-range`}};n.registerWalker(i),t.exports=i}),at=s((e,t)=>{t.exports=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||`An error ocurred while tokzenizing.`,typeof Error.captureStackTrace==`function`?Error.captureStackTrace(this,this.constructor):this.stack=Error(e).stack}}}),ot=s((e,t)=>{var n=/[ \n\t\r\{\(\)'"\\;,/]/g,r=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,i=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,a=/^[a-z0-9]/i,o=/^[a-f0-9?\-]/i,s=at();t.exports=function(e,t){t=t||{};let c=[],l=e.valueOf(),u=l.length,d=-1,f=1,p=0,m=0,h=null,g,_,v,y,b,x,S,C,w,T,E;function D(e){throw new s(`Unclosed ${e} at line: ${f}, column: ${p-d}, token: ${p}`)}for(;p<u;){switch(g=l.charCodeAt(p),g===10&&(d=p,f+=1),g){case 10:case 32:case 9:case 13:case 12:_=p;do _+=1,g=l.charCodeAt(_),g===10&&(d=_,f+=1);while(g===32||g===10||g===9||g===13||g===12);c.push([`space`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;break;case 58:_=p+1,c.push([`colon`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;break;case 44:_=p+1,c.push([`comma`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;break;case 123:c.push([`{`,`{`,f,p-d,f,_-d,p]);break;case 125:c.push([`}`,`}`,f,p-d,f,_-d,p]);break;case 40:m++,h=!h&&m===1&&c.length>0&&c[c.length-1][0]===`word`&&c[c.length-1][1]===`url`,c.push([`(`,`(`,f,p-d,f,_-d,p]);break;case 41:m--,h=h&&m>0,c.push([`)`,`)`,f,p-d,f,_-d,p]);break;case 39:case 34:v=g===39?`'`:`"`,_=p;do for(w=!1,_=l.indexOf(v,_+1),_===-1&&D(`quote`,v),T=_;l.charCodeAt(T-1)===92;)--T,w=!w;while(w);c.push([`string`,l.slice(p,_+1),f,p-d,f,_-d,p]),p=_;break;case 64:n.lastIndex=p+1,n.test(l),_=n.lastIndex===0?l.length-1:n.lastIndex-2,c.push([`atword`,l.slice(p,_+1),f,p-d,f,_-d,p]),p=_;break;case 92:_=p,g=l.charCodeAt(_+1),c.push([`word`,l.slice(p,_+1),f,p-d,f,_-d,p]),p=_;break;case 43:case 45:case 42:if(_=p+1,E=l.slice(p+1,_+1),l.slice(p-1,p),g===45&&E.charCodeAt(0)===45){_++,c.push([`word`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;break}c.push([`operator`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;break;default:if(g===47&&(l.charCodeAt(p+1)===42||t.loose&&!h&&l.charCodeAt(p+1)===47)){if(l.charCodeAt(p+1)===42)_=l.indexOf(`*/`,p+2)+1,_===0&&D(`comment`,`*/`);else{let e=l.indexOf(`
29
- `,p+2);_=e===-1?u:e-1}x=l.slice(p,_+1),y=x.split(`
30
- `),b=y.length-1,b>0?(S=f+b,C=_-y[b].length):(S=f,C=d),c.push([`comment`,x,f,p-d,S,_-C,p]),d=C,f=S,p=_}else if(g===35&&!a.test(l.slice(p+1,p+2)))_=p+1,c.push([`#`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;else if((g===117||g===85)&&l.charCodeAt(p+1)===43){_=p+2;do _+=1,g=l.charCodeAt(_);while(_<u&&o.test(l.slice(_,_+1)));c.push([`unicoderange`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1}else if(g===47)_=p+1,c.push([`operator`,l.slice(p,_),f,p-d,f,_-d,p]),p=_-1;else{let e=r;if(g>=48&&g<=57&&(e=i),e.lastIndex=p+1,e.test(l),_=e.lastIndex===0?l.length-1:e.lastIndex-2,e===i||g===46){let e=l.charCodeAt(_),t=l.charCodeAt(_+1),n=l.charCodeAt(_+2);(e===101||e===69)&&(t===45||t===43)&&n>=48&&n<=57&&(i.lastIndex=_+2,i.test(l),_=i.lastIndex===0?l.length-1:i.lastIndex-2)}c.push([`word`,l.slice(p,_+1),f,p-d,f,_-d,p]),p=_}}p++}return c}}),st=s((e,t)=>{t.exports=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||`An error ocurred while parsing.`,typeof Error.captureStackTrace==`function`?Error.captureStackTrace(this,this.constructor):this.stack=Error(e).stack}}}),ct=s((e,t)=>{var n=Ke(),r=qe(),i=Je(),a=Ye(),o=Xe(),s=Ze(),c=Qe(),l=$e(),u=et(),d=tt(),f=nt(),p=rt(),m=it(),h=ot(),g=we(),_=Te(),v=Ee(),y=st();function b(e){return e.sort((e,t)=>e-t)}t.exports=class{constructor(e,t){let i={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},i,t),this.position=0,this.unbalanced=0,this.root=new n;let a=new r;this.root.append(a),this.current=a,this.tokens=h(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new a({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new o({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,t=this.currToken[1].replace(/\/\*|\*\//g,``),n;this.options.loose&&t.startsWith(`//`)&&(t=t.substring(2),e=!0),n=new s({value:t,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(n),this.position++}error(e,t){throw new y(e+` at line: ${t[2]}, column ${t[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces=``,this.root}operator(){let e=this.currToken[1],t;if(e===`+`||e===`-`){if(this.options.loose||this.position>0&&(this.current.type===`func`&&this.current.value===`calc`?(this.prevToken[0]!==`space`&&this.prevToken[0]!==`(`||this.nextToken[0]!==`space`&&this.nextToken[0]!==`word`||this.nextToken[0]===`word`&&this.current.last.type!==`operator`&&this.current.last.value!==`(`)&&this.error(`Syntax Error`,this.currToken):(this.nextToken[0]===`space`||this.nextToken[0]===`operator`||this.prevToken[0]===`operator`)&&this.error(`Syntax Error`,this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type===`operator`)&&this.nextToken[0]===`word`)return this.word()}else if(this.nextToken[0]===`word`)return this.word()}return t=new u({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(t)}parseTokens(){switch(this.currToken[0]){case`space`:this.space();break;case`colon`:this.colon();break;case`comma`:this.comma();break;case`comment`:this.comment();break;case`(`:this.parenOpen();break;case`)`:this.parenClose();break;case`atword`:case`word`:this.word();break;case`operator`:this.operator();break;case`string`:this.string();break;case`unicoderange`:this.unicodeRange();break;default:this.word()}}parenOpen(){let e=1,t=this.position+1,n=this.currToken,r;for(;t<this.tokens.length&&e;){let n=this.tokens[t];n[0]===`(`&&e++,n[0]===`)`&&e--,t++}if(e&&this.error(`Expected closing parenthesis`,n),r=this.current.last,r&&r.type===`func`&&r.unbalanced<0&&(r.unbalanced=0,this.current=r),this.current.unbalanced++,this.newNode(new d({value:n[1],source:{start:{line:n[2],column:n[3]},end:{line:n[4],column:n[5]}},sourceIndex:n[6]})),this.position++,this.current.type===`func`&&this.current.unbalanced&&this.current.value===`url`&&this.currToken[0]!==`string`&&this.currToken[0]!==`)`&&!this.options.loose){let e=this.nextToken,t=this.currToken[1],n={line:this.currToken[2],column:this.currToken[3]};for(;e&&e[0]!==`)`&&this.current.unbalanced;)this.position++,t+=this.currToken[1],e=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new p({value:t,source:{start:n,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let e=this.currToken;this.newNode(new d({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error(`Expected opening parenthesis`,e),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let e=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===`,`||this.nextToken[0]===`)`?(this.current.last.raws.after+=e[1],this.position++):(this.spaces=e[1],this.position++)}unicodeRange(){let e=this.currToken;this.newNode(new m({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}splitWord(){let e=this.nextToken,t=this.currToken[1],n=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,r=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,a,o;if(!r.test(t))for(;e&&e[0]===`word`;){this.position++;let n=this.currToken[1];t+=n,e=this.nextToken}a=_(t,`@`),o=b(v(g([[0],a]))),o.forEach((r,s)=>{let u=o[s+1]||t.length,d=t.slice(r,u),f;if(~a.indexOf(r))f=new i({value:d.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+r},end:{line:this.currToken[4],column:this.currToken[3]+(u-1)}},sourceIndex:this.currToken[6]+o[s]});else if(n.test(this.currToken[1])){let e=d.replace(n,``);f=new l({value:d.replace(e,``),source:{start:{line:this.currToken[2],column:this.currToken[3]+r},end:{line:this.currToken[4],column:this.currToken[3]+(u-1)}},sourceIndex:this.currToken[6]+o[s],unit:e})}else f=new(e&&e[0]===`(`?c:p)({value:d,source:{start:{line:this.currToken[2],column:this.currToken[3]+r},end:{line:this.currToken[4],column:this.currToken[3]+(u-1)}},sourceIndex:this.currToken[6]+o[s]}),f.type===`word`?(f.isHex=/^#(.+)/.test(d),f.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(d)):this.cache.push(this.current);this.newNode(f)}),this.position++}string(){let e=this.currToken,t=this.currToken[1],n=/^(\"|\')/,r=n.test(t),i=``,a;r&&(i=t.match(n)[0],t=t.slice(1,t.length-1)),a=new f({value:t,source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6],quoted:r}),a.raws.quote=i,this.newNode(a),this.position++}word(){return this.splitWord()}newNode(e){return this.spaces&&(e.raws.before+=this.spaces,this.spaces=``),this.current.append(e)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),lt={};c(lt,{languages:()=>ea,options:()=>ta,parsers:()=>na,printers:()=>Xa});var ut=(e,t)=>(n,r,...i)=>n|1&&r==null?void 0:(t.call(r)??r[e]).apply(r,i),dt=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},L=ut(`replaceAll`,function(){if(typeof this==`string`)return dt});function ft(e){return this[e<0?this.length+e:e]}var R=ut(`at`,function(){if(Array.isArray(this)||typeof this==`string`)return ft}),pt=()=>{},mt=`string`,ht=`array`,gt=`cursor`,_t=`indent`,vt=`align`,yt=`trim`,bt=`group`,xt=`fill`,St=`if-break`,Ct=`indent-if-break`,wt=`line-suffix`,Tt=`line-suffix-boundary`,z=`line`,Et=`label`,Dt=`break-parent`,Ot=new Set([gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,z,Et,Dt]);function kt(e,t,n){if(!e.has(t)){let r=n(t);e.set(t,r)}return e.get(t)}function At(e){if(typeof e==`string`)return mt;if(Array.isArray(e))return ht;if(!e)return;let{type:t}=e;if(Ot.has(t))return t}var jt=At,Mt=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function Nt(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
31
- Expected it to be 'string' or 'object'.`;if(jt(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=Mt([...Ot].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
32
- Expected it to be ${r}.`}var Pt=class extends Error{constructor(t){((...t)=>(super(...t),e(this,`name`,`InvalidDocError`),this))(Nt(t)),this.doc=t}};function Ft(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){return kt(n,e,i)}function i(e){switch(jt(e)){case ht:return t(e.map(r));case xt:return t({...e,parts:e.parts.map(r)});case St:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case bt:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case vt:case _t:case Ct:case Et:case wt:return t({...e,contents:r(e.contents)});case mt:case gt:case yt:case Tt:case z:case Dt:return t(e);default:throw new Pt(e)}}}function It(e){return e.type===z&&!e.hard?e.soft?``:` `:e.type===St?e.flatContents:e}function Lt(e){return Ft(e,It)}function Rt(e,t=Jt){return Ft(e,e=>typeof e==`string`?U(t,e.split(`
33
- `)):e)}var B=pt,zt=pt,Bt=pt,Vt=pt;function V(e){return B(e),{type:_t,contents:e}}function Ht(e,t){return Vt(e),B(t),{type:vt,contents:t,n:e}}function Ut(e){return Ht(-1,e)}var Wt={type:Dt};function Gt(e){return Bt(e),{type:xt,parts:e}}function H(e,t={}){return B(e),zt(t.expandedStates,!0),{type:bt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Kt(e,t=``,n={}){return B(e),t!==``&&B(t),{type:St,breakContents:e,flatContents:t,groupId:n.groupId}}function U(e,t){B(e),zt(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}var W={type:z},G={type:z,soft:!0},K=[{type:z,hard:!0},Wt],qt={type:z,hard:!0,literal:!0},Jt=[qt,Wt];function Yt(e){return B(e),{type:wt,contents:e}}var Xt={type:Tt};function Zt(e){return Array.isArray(e)&&e.length>0}var Qt=Zt,$t=Object.freeze({character:`'`,codePoint:39}),en=Object.freeze({character:`"`,codePoint:34}),tn=Object.freeze({preferred:$t,alternate:en}),nn=Object.freeze({preferred:en,alternate:$t});function rn(e,t){let{preferred:n,alternate:r}=t===!0||t===`'`?tn:nn,{length:i}=e,a=0,o=0;for(let t=0;t<i;t++){let i=e.charCodeAt(t);i===n.codePoint?a++:i===r.codePoint&&o++}return(a>o?r:n).character}var an=/\\(["'\\])|(["'])/g;function on(e,t){let n=t===`"`?`'`:`"`;return t+L(0,e,an,(e,r,i)=>r?r===n?n:e:i===t?`\\`+i:i)+t}var sn=on;function cn(e,t){/^(?<quote>["']).*\k<quote>$/s.test(e);let n=e.slice(1,-1),r;return r=t.parser===`json`||t.parser===`jsonc`||t.parser===`json-stringify`||t.parser===`json5`&&t.quoteProps===`preserve`&&!t.singleQuote?`"`:t.__isInHtmlAttribute?`'`:rn(n,t.singleQuote),e.charAt(0)===r?e:sn(n,r)}var ln=cn,un=class extends Error{constructor(t,n,r=`type`){((...t)=>(super(...t),e(this,`name`,`UnexpectedNodeError`),this))(`Unexpected ${n} node ${r}: ${JSON.stringify(t[r])}.`),this.node=t}};function dn(){}dn.getVisitorKeys=e=>e.type===`css-root`?[`frontMatter`]:[];var fn=dn,pn=null;function mn(e){if(pn!==null&&typeof pn.property){let e=pn;return pn=mn.prototype=null,e}return pn=mn.prototype=e??Object.create(null),new mn}var hn=10;for(let e=0;e<=hn;e++)mn();function gn(e){return mn(e)}function _n(e,t=`type`){gn(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var vn=_n,q=[[`nodes`],[`group`]],yn=vn({"css-root":[`frontMatter`,`nodes`],"css-comment":[],"css-rule":[`selector`,`nodes`],"css-decl":[`value`,`selector`,`nodes`],"css-atrule":[`selector`,`params`,`value`,`nodes`],"media-query-list":q[0],"media-query":q[0],"media-type":[],"media-feature-expression":q[0],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":q[0],"selector-selector":q[0],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":q[0],"selector-universal":[],"selector-pseudo":q[0],"selector-nesting":[],"selector-unknown":[],"value-value":q[1],"value-root":q[1],"value-comment":[],"value-comma_group":[`groups`],"value-paren_group":[`open`,`groups`,`close`],"value-func":q[1],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]});function bn(e,t){let n=0;for(let r=0;r<e.line-1;++r)n=t.indexOf(`
34
- `,n)+1;return n+e.column}var xn=bn;function Sn(e){return(t,n,r)=>{if(n===!1)return!1;let i=!!r?.backwards,{length:a}=t,o=n;for(;o>=0&&o<a;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return o===-1||o===a?o:!1}}var Cn=Sn(` `),wn=Sn(`,; `),Tn=Sn(/[^\n\r]/);function En(e,t){let{value:n}=e;return n===`-`||n===`--`||n.charAt(0)!==`-`?t:t-(n.charAt(1)===`-`?2:1)}function Dn(e,t){if(typeof e.source?.start?.offset==`number`)return e.source.start.offset;if(typeof e.sourceIndex==`number`)return e.type===`value-word`?En(e,e.sourceIndex):e.sourceIndex;if(e.source?.start)return xn(e.source.start,t);throw Object.assign(Error(`Can not locate node.`),{node:e})}function On(e,t){if(e.type===`css-comment`&&e.inline)return Tn(t,e.source.startOffset);if(e.type===`value-paren`&&typeof e.sourceIndex==`number`)return e.sourceIndex+(e.value===`)`?e.value.length:0);if(typeof e.source?.end?.offset==`number`)return e.source.end.offset;if(e.source){if(e.source.end){let n=xn(e.source.end,t);return e.type===`value-word`?En(e,n):n}if(Qt(e.nodes))return On(R(0,e.nodes,-1),t);if(e.type===`css-atrule`&&typeof e.name==`string`)return Dn(e,t)+1+e.name.length+e.raws.afterName.length+e.raws.params.length}return typeof e.sourceIndex==`number`&&typeof e.value==`string`?e.sourceIndex+e.value.length:null}function kn(e,t){An(e,t,0,!1)}function An(e,t,n,r){if(r&&typeof e.type==`string`)e.source??(e.source={}),e.source.startOffset=n,e.source.endOffset=n+t.length;else if((typeof e.source?.startOffset!=`number`||typeof e.source?.endOffset!=`number`)&&(e.source||typeof e.sourceIndex==`number`)){e.source??(e.source={});let r=n+t.length;e.source.startOffset=Math.min(Dn(e,t)+n,r);let i=On(e,t);e.source.endOffset=typeof i==`number`?Math.min(i+n,r):i}for(let r in e){let i=e[r];if(r===`source`||!i||typeof i!=`object`)continue;let a=Array.isArray(i)?i:[i];for(let r of a){if(!r||typeof r!=`object`)continue;let i=jn(e,r,n);i?An(r,i.text,i.rootOffset,!0):An(r,t,n,!1),Rn(r,e)}}Ln(e),zn(e)}function jn(e,t,n){if(t.type===`value-root`||t.type===`value-unknown`)return{rootOffset:Mn(e),text:t.text||t.value||``};if(t.type===`media-query-list`||e.params===t)return{rootOffset:Nn(e),text:e.raws?.params||t.value||``};if(t.type?.startsWith(`selector-`)){let r=Pn(e,t);if(typeof r==`string`)return{rootOffset:Fn(e,t,r,n),text:r}}}function Mn(e){let t=e.source.startOffset;return typeof e.prop==`string`&&(t+=e.prop.length),e.type===`css-atrule`&&typeof e.name==`string`&&(t+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),e.type!==`css-atrule`&&typeof e.raws?.between==`string`&&(t+=e.raws.between.length),t}function Nn(e){let t=e.source.startOffset;return e.type===`css-atrule`&&typeof e.name==`string`&&(t+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),t}function Pn(e,t){if(typeof t.raws?.selector==`string`)return t.raws.selector;if(e.selector===t){if(e.mixin)return e.raws.identifier+e.name+e.raws.afterName+e.raws.params;if(typeof e.raws?.selector==`string`)return e.raws.selector;if(e.customSelector&&typeof e.raws?.params==`string`)return e.raws.params.slice(e.customSelector.length).trim();if(typeof e.raws?.params==`string`)return e.raws.params;if(e.type===`css-decl`&&typeof e.raws?.value==`string`){let{value:t}=e.raws;return e.extend&&t.startsWith(`extend(`)?t.slice(7,-1):t}}}function Fn(e,t,n,r){return typeof t.sourceIndex==`number`&&typeof t.raws?.selector==`string`?r+t.sourceIndex:e.mixin?e.source.startOffset:typeof e.raws?.selector==`string`?e.source.startOffset+In(e.raws.selector,n):typeof e.raws?.params==`string`?Nn(e)+In(e.raws.params,n):e.type===`css-decl`&&typeof e.raws?.value==`string`?Mn(e)+In(e.raws.value,n):r}function In(e,t){let n=e.indexOf(t);return n===-1?0:n}function Ln(e){var t,n;if(typeof e.type!=`string`)return;let r=typeof e.source?.startOffset==`number`&&typeof e.source?.endOffset==`number`,i=e.source?.start&&e.source.end;if(r&&i)return;let a=1/0,o=-1/0,s,c;for(let t in e){if(t===`source`||t===`raws`||t===`spaces`)continue;let n=e[t],r=Array.isArray(n)?n:[n];for(let e of r)!e||typeof e!=`object`||typeof e.source?.startOffset!=`number`||typeof e.source?.endOffset!=`number`||(e.source.startOffset<a&&(a=e.source.startOffset,s=e.source.start),e.source.endOffset>o&&(o=e.source.endOffset,c=e.source.end))}a!==1/0&&(e.source??(e.source={}),r||(e.source.startOffset=a,e.source.endOffset=o),(t=e.source).start??(t.start=s),(n=e.source).end??(n.end=c))}function Rn(e,t){typeof e.type!=`string`||e.source||typeof t.source?.startOffset!=`number`||typeof t.source?.endOffset!=`number`||!Bn(e)||(e.source={startOffset:t.source.startOffset,endOffset:t.source.startOffset,start:t.source.start,end:t.source.start})}function zn(e){if(typeof e.source?.startOffset==`number`&&typeof e.source?.endOffset==`number`)for(let t in e){if(t===`source`||t===`raws`||t===`spaces`)continue;let n=e[t],r=Array.isArray(n)?n:[n];for(let t of r)t&&typeof t==`object`&&Rn(t,e)}}function Bn(e){return Array.isArray(e.nodes)&&e.nodes.length===0||Array.isArray(e.groups)&&e.groups.length===0}function Vn(e){let t=`initial`,n=`initial`,r,i=!1,a=[];for(let o=0;o<e.length;o++){let s=e[o];switch(t){case`initial`:if(s===`'`){t=`single-quotes`;continue}if(s===`"`){t=`double-quotes`;continue}if((s===`u`||s===`U`)&&e.slice(o,o+4).toLowerCase()===`url(`){t=`url`,o+=3;continue}if(s===`/`){let n=e[o+1];n===`*`?(t=`comment-block`,o++):n===`/`&&(t=`comment-inline`,r=o,o++);continue}continue;case`single-quotes`:if(s===`'`&&e[o-1]!==`\\`&&(t=n,n=`initial`),s===`
35
- `||s===`\r`)return e;continue;case`double-quotes`:if(s===`"`&&e[o-1]!==`\\`&&(t=n,n=`initial`),s===`
36
- `||s===`\r`)return e;continue;case`url`:if(s===`)`)t=`initial`;else if(s===`
37
- `||s===`\r`)return e;if(s===`'`){t=`single-quotes`,n=`url`;continue}if(s===`"`){t=`double-quotes`,n=`url`;continue}continue;case`comment-block`:s===`/`&&e[o-1]===`*`&&(t=`initial`);continue;case`comment-inline`:s===`"`||s===`'`||s===`*`?i=!0:(s===`
38
- `||s===`\r`)&&(i&&a.push([r,o]),t=`initial`,i=!1);continue}}for(let[t,n]of a)e=e.slice(0,t)+L(0,e.slice(t,n),/["'*]/g,` `)+e.slice(n);return e}var J=e=>e.source.startOffset,Y=e=>e.source.endOffset,Hn=Symbol.for(`PRETTIER_IS_FRONT_MATTER`);function Un(e){return!!e?.[Hn]}var Wn=Un;function Gn(e){return L(0,e,/[^\n]/g,` `)}var Kn=Gn,qn=3;function Jn(e){let t=e.slice(0,qn);if(t!==`---`&&t!==`+++`)return;let n=e.indexOf(`
39
- `,qn);if(n===-1)return;let r=e.slice(qn,n).trim(),i=e.indexOf(`
40
- ${t}`,n),a=r;if(a||(a=t===`+++`?`toml`:`yaml`),i===-1&&t===`---`&&a===`yaml`&&(i=e.indexOf(`
41
- ...`,n)),i===-1)return;let o=i+1+qn,s=e.charAt(o+1);if(!/\s?/.test(s))return;let c=e.slice(0,o),l;return{language:a,explicitLanguage:r||null,value:e.slice(n+1,i),startDelimiter:t,endDelimiter:c.slice(-qn),raw:c,start:{line:1,column:0,index:0},end:{index:c.length,get line(){return l??(l=c.split(`
42
- `)),l.length},get column(){return l??(l=c.split(`
43
- `)),R(0,l,-1).length}},[Hn]:!0}}function Yn(e){let t=Jn(e);return t?{frontMatter:t,get content(){let{raw:n}=t;return Kn(n)+e.slice(n.length)}}:{content:e}}var Xn=Yn,Zn=new Set([`raw`,`raws`,`sourceIndex`,`source`,`before`,`after`,`trailingComma`,`spaces`]);function Qn(e,t,n){if(e.type===`css-comment`&&n.type===`css-root`&&n.nodes.length>0&&((n.nodes[0]===e||Wn(n.nodes[0])&&n.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text))||n.type===`css-root`&&R(0,n.nodes,-1)===e))return null;if(e.type===`value-root`&&delete t.text,(e.type===`media-query`||e.type===`media-query-list`||e.type===`media-feature-expression`)&&delete t.value,e.type===`css-rule`&&(delete t.params,e.extend&&er(e.selector)&&delete t.extend),(e.type===`media-feature`||e.type===`media-keyword`||e.type===`media-type`||e.type===`media-unknown`||e.type===`media-url`||e.type===`media-value`||e.type===`selector-attribute`||e.type===`selector-string`||e.type===`selector-class`||e.type===`selector-combinator`||e.type===`value-string`)&&e.value&&(t.value=$n(e.value)),e.type===`selector-combinator`&&(t.value=L(0,t.value,/\s+/g,` `)),e.type===`media-feature`&&(t.value=L(0,t.value,` `,``)),(e.type===`value-word`&&(e.isColor&&e.isHex||[`initial`,`inherit`,`unset`,`revert`].includes(e.value.toLowerCase()))||e.type===`media-feature`||e.type===`selector-root-invalid`||e.type===`selector-pseudo`)&&(t.value=t.value.toLowerCase()),e.type===`css-decl`&&(t.prop=e.prop.toLowerCase()),(e.type===`css-atrule`||e.type===`css-import`)&&(t.name=e.name.toLowerCase()),e.type===`value-number`&&(t.unit=e.unit.toLowerCase()),e.type===`value-unknown`&&(t.value=L(0,t.value,/;$/g,``)),e.type===`selector-attribute`&&(t.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace==`string`&&(t.namespace=e.namespace.trim()||!0),e.value)){let{value:e}=t;/\s[a-z]$/i.test(e)&&(t.__prettier_attribute_selector_flag=R(0,e,-1),e=e.slice(0,-1)),e=e.trim(),e=e.replace(/^(?<quote>["'])(?<value>.*?)\k<quote>$/,`$<value>`),t.value=e,delete t.quoted}if((e.type===`media-value`||e.type===`media-type`||e.type===`value-number`||e.type===`selector-root-invalid`||e.type===`selector-class`||e.type===`selector-combinator`||e.type===`selector-tag`)&&e.value&&(t.value=L(0,t.value,/([\d+.e-]+)([a-z]*)/gi,(e,t,n)=>{let r=Number(t);return Number.isNaN(r)?e:r+n.toLowerCase()})),e.type===`selector-tag`){let e=t.value.toLowerCase();[`from`,`to`].includes(e)&&(t.value=e)}if(e.type===`css-atrule`&&e.name.toLowerCase()===`supports`&&delete t.value,e.type===`selector-unknown`&&delete t.value,e.type===`value-comma_group`){let n=e.groups.findIndex(e=>e.type===`value-number`&&e.unit===`...`);n!==-1&&(t.groups[n].unit=``,t.groups.splice(n+1,0,{type:`value-word`,value:`...`,isColor:!1,isHex:!1}))}if(e.type===`value-comma_group`&&e.groups.some(e=>e.type===`value-atword`&&(e.value.endsWith(`[`)||e.value.endsWith(`]`))||e.type===`value-word`&&(e.value.startsWith(`]`)||e.value.startsWith(`[`))))return{type:`value-atword`,value:e.groups.map(e=>e.value).join(``)};if(e.type===`value-func`&&e.value===`if`&&e.group.type===`value-paren_group`&&e.group.groups.length===1&&e.group.groups[0].type===`value-comma_group`){let n=e.group.groups[0].groups,r=t.group.groups[0].groups;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t.type===`value-word`&&typeof t.value==`string`&&t.value.endsWith(`;`)){if(t.value===`;`){n[e-1]?.type===`value-number`&&r.splice(e-1,2,{type:`#node-placeholder`});continue}r[e]={type:`#node-placeholder`}}}}}Qn.ignoredProperties=Zn;function $n(e){return L(0,L(0,e,`'`,`"`),/\\([^\da-f])/gi,`$1`)}function er(e){return e?.nodes?.some(e=>e.nodes?.some(e=>e.type===`selector-pseudo`&&e.value===`:extend`))}var tr=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),nr=/\*\/$/,rr=/^\/\*\*?/,ir=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,ar=/(^|\s+)\/\/([^\n\r]*)/g,or=/^(\r?\n)+/,sr=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,cr=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,lr=/(\r?\n|^) *\* ?/g,ur=[];function dr(e){let t=e.match(ir);return t?t[0].trimStart():``}function fr(e){let t=e.match(ir)?.[0];return t==null?e:e.slice(t.length)}function pr(e){e=L(0,e.replace(rr,``).replace(nr,``),lr,`$1`);let t=``;for(;t!==e;)t=e,e=L(0,e,sr,`
44
- $1 $2
45
- `);e=e.replace(or,``).trimEnd();let n=Object.create(null),r=L(0,e,cr,``).replace(or,``).trimEnd(),i;for(;i=cr.exec(e);){let e=L(0,i[2],ar,``);if(typeof n[i[1]]==`string`||Array.isArray(n[i[1]])){let t=n[i[1]];n[i[1]]=[...ur,...Array.isArray(t)?t:[t],e]}else n[i[1]]=e}return{comments:r,pragmas:n}}function mr({comments:e=``,pragmas:t={}}){let n=Object.keys(t),r=n.flatMap(e=>hr(e,t[e])).map(e=>` * ${e}
46
- `).join(``);if(!e){if(n.length===0)return``;if(n.length===1&&!Array.isArray(t[n[0]])){let e=t[n[0]];return`/** ${hr(n[0],e)[0]} */`}}let i=e.split(`
47
- `).map(e=>` * ${e}`).join(`
48
- `)+`
49
- `;return`/**
50
- `+(e?i:``)+(e&&n.length>0?` *
51
- `:``)+r+` */`}function hr(e,t){return[...ur,...Array.isArray(t)?t:[t]].map(t=>`@${e} ${t}`.trim())}var gr=[`noformat`,`noprettier`],_r=[`format`,`prettier`],vr=`format`;function yr(e){if(!e.startsWith(`#!`))return``;let t=e.indexOf(`
52
- `);return t===-1?e:e.slice(0,t)}var br=yr;function xr(e){let t=br(e);t&&(e=e.slice(t.length+1));let{pragmas:n,comments:r}=pr(dr(e));return{shebang:t,text:e,pragmas:n,comments:r}}function Sr(e){let{pragmas:t}=xr(e);return _r.some(e=>tr(t,e))}function Cr(e){let{pragmas:t}=xr(e);return gr.some(e=>tr(t,e))}function wr(e){let{shebang:t,text:n,pragmas:r,comments:i}=xr(e),a=fr(n),o=mr({pragmas:{[vr]:``,...r},comments:i.trimStart()});return(t?`${t}
53
- `:``)+o+(a.startsWith(`
54
- `)?`
55
- `:`
56
-
57
- `)+a}var Tr=e=>Sr(Xn(e).content),Er=e=>Cr(Xn(e).content),Dr=e=>{let{frontMatter:t,content:n}=Xn(e);return(t?t.raw+`
58
-
59
- `:``)+wr(n)},Or=new Set([`red`,`green`,`blue`,`alpha`,`a`,`rgb`,`hue`,`h`,`saturation`,`s`,`lightness`,`l`,`whiteness`,`w`,`blackness`,`b`,`tint`,`shade`,`blend`,`blenda`,`contrast`,`hsl`,`hsla`,`hwb`,`hwba`]);function kr(e){return e.findAncestor(e=>e.type===`css-decl`)?.prop?.toLowerCase()}var Ar=new Set([`initial`,`inherit`,`unset`,`revert`]);function jr(e){return Ar.has(e.toLowerCase())}function Mr(e,t){return e.findAncestor(e=>e.type===`css-atrule`)?.name?.toLowerCase().endsWith(`keyframes`)&&[`from`,`to`].includes(t.toLowerCase())}function Nr(e){return e.includes(`$`)||e.includes(`@`)||e.includes(`#`)||e.startsWith(`%`)||e.startsWith(`--`)||e.startsWith(`:--`)||e.includes(`(`)&&e.includes(`)`)?e:e.toLowerCase()}function Pr(e,t){return e.findAncestor(e=>e.type===`value-func`)?.value?.toLowerCase()===t}function Fr(e){return e.hasAncestor(e=>{if(e.type!==`css-rule`)return!1;let t=e.raws?.selector;return t&&(t.startsWith(`:import`)||t.startsWith(`:export`))})}function Ir(e,t){let n=Array.isArray(t)?t:[t],r=e.findAncestor(e=>e.type===`css-atrule`);return r&&n.includes(r.name.toLowerCase())}function Lr(e){let{node:t}=e;return t.groups[0]?.value===`url`&&t.groups.length===2&&e.findAncestor(e=>e.type===`css-atrule`)?.name===`import`}function Rr(e){return e.type===`value-func`&&e.value.toLowerCase()===`url`}function zr(e){return e.type===`value-func`&&e.value.toLowerCase()===`var`}function Br(e){let{selector:t}=e;return t?typeof t==`string`&&/^@.+:.*$/.test(t)||t.value&&/^@.+:.*$/.test(t.value):!1}function Vr(e){return e.type===`value-word`&&[`from`,`through`,`end`].includes(e.value)}function Hr(e){return e.type===`value-word`&&[`and`,`or`,`not`].includes(e.value)}function Ur(e){return e.type===`value-word`&&e.value===`in`}function Wr(e){return e.type===`value-operator`&&e.value===`*`}function Gr(e){return e?.type===`value-operator`&&e.value===`/`}function X(e){return e.type===`value-operator`&&e.value===`+`}function Kr(e){return e.type===`value-operator`&&e.value===`-`}function qr(e){return e.type===`value-operator`&&e.value===`%`}function Jr(e){return Wr(e)||Gr(e)||X(e)||Kr(e)||qr(e)}function Yr(e){return e.type===`value-word`&&[`==`,`!=`].includes(e.value)}function Xr(e){return e.type===`value-word`&&[`<`,`>`,`<=`,`>=`].includes(e.value)}function Zr(e,t){return t.parser===`scss`&&e.type===`css-atrule`&&[`if`,`else`,`for`,`each`,`while`].includes(e.name)}function Qr(e){return e.raws?.params&&/^\(\s*\)$/.test(e.raws.params)}function $r(e){return e.name.startsWith(`prettier-placeholder`)}function ei(e){return e.prop.startsWith(`@prettier-placeholder`)}function ti(e,t){return e.value===`$$`&&e.type===`value-func`&&t?.type===`value-word`&&!t.raws.before}function ni(e){return e.value?.type===`value-root`&&e.value.group?.type===`value-value`&&e.prop.toLowerCase()===`composes`}function ri(e){return e.value?.group?.group?.type===`value-paren_group`&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function Z(e){return e?.raws?.before===``}function ii(e){return e.type===`value-comma_group`&&e.groups?.[1]?.type===`value-colon`}function ai(e){return e.type===`value-paren_group`&&e.groups?.[0]&&ii(e.groups[0])}function oi(e,t){if(t.parser!==`scss`)return!1;let{node:n}=e;if(n.groups.length===0||n.type===`value-paren_group`&&n.open&&n.close&&n.groups.length===1&&n.groups[0].type!==`value-comma_group`)return!1;let r=e.parent;if(r&&r.type===`value-func`&&r.value===`if`)return!1;let i=e.grandparent;return!ai(n)&&!(i&&ai(i))?!1:e.findAncestor(e=>e.type===`css-decl`)?.prop?.startsWith(`$`)?!0:ai(i)?!r.groups.some(e=>Jr(e)):i.type===`value-func`}function si(e){return e.type===`value-comment`&&e.inline}function ci(e){return e.type===`value-word`&&e.value===`#`}function li(e){return e.type===`value-word`&&e.value===`{`}function ui(e){return e.type===`value-word`&&e.value===`}`}function di(e){return[`value-word`,`value-atword`].includes(e.type)}function fi(e){return e?.type===`value-colon`}function pi(e,t){if(!ii(t))return!1;let{groups:n}=t,r=n.indexOf(e);return r!==-1&&fi(n[r+1])}function mi(e){return e.value&&[`not`,`and`,`or`].includes(e.value.toLowerCase())}function hi(e){return e.type===`value-func`&&Or.has(e.value.toLowerCase())}function gi(e){return/\/\//.test(e.split(/[\n\r]/).pop())}function _i(e){return e?.type===`value-atword`&&e.value.startsWith(`prettier-placeholder-`)}function vi(e,t){if(e.open?.value!==`(`||e.close?.value!==`)`||e.groups.some(e=>e.type!==`value-comma_group`))return!1;if(t.type===`value-comma_group`){let n=t.groups.indexOf(e)-1,r=t.groups[n];if(r?.type===`value-word`&&r.value===`with`)return!0}return!1}function yi(e){return e.type===`value-paren_group`&&e.open?.value===`(`&&e.close?.value===`)`}function bi(e,t,n){let{node:r}=e,i=e.parent,a=e.grandparent,o=kr(e),s=o&&i.type===`value-value`&&(o===`grid`||o.startsWith(`grid-template`)),c=e.findAncestor(e=>e.type===`css-atrule`),l=c&&Zr(c,t),u=r.groups.some(e=>si(e)),d=e.map(n,`groups`),f=[``],p=Pr(e,`url`),m=!1,h=!1;for(let n=0;n<r.groups.length;++n){let u=r.groups[n-1],g=r.groups[n],_=r.groups[n+1];if(si(g)&&!_){f.push([f.pop(),Yt([` `,d[n]])]);continue}if(f.push([f.pop(),d[n]]),p){(_&&X(_)||X(g))&&f.push([f.pop(),` `]);continue}if(Ir(e,`forward`)&&g.type===`value-word`&&g.value&&u!==void 0&&u.type===`value-word`&&u.value===`as`&&_.type===`value-operator`&&_.value===`*`||Ir(e,`utility`)&&g.type===`value-word`&&_&&_.type===`value-operator`&&_.value===`*`||!_||t.parser===`scss`&&_.type===`value-word`&&_.value===`;`&&e.match(void 0,(e,t)=>t===`groups`&&e.type===`value-paren_group`,(e,t)=>t===`group`&&e.type===`value-func`&&e.value===`if`)||g.type===`value-word`&&_i(_)&&Y(g)===J(_))continue;if(g.type===`value-string`&&g.quoted){let e=g.value.lastIndexOf(`#{`),t=g.value.lastIndexOf(`}`);e!==-1&&t!==-1?m=e>t:e===-1?t!==-1&&(m=!1):m=!0}if(m||fi(g)||fi(_)||g.type===`value-atword`&&(g.value===``||g.value.endsWith(`[`))||_.type===`value-word`&&_.value.startsWith(`]`)||g.value===`~`)continue;if(t.parser===`less`){if(_?.type===`value-word`&&_.value===`[`)continue;if(g.type===`value-word`&&g.value.endsWith(`[`)&&(_?.type===`value-atword`||_?.type===`value-word`)){r.groups.some((e,t)=>t>n&&(e.value?.startsWith(`]`)||e.value?.endsWith(`]`)));continue}}if(g.type!==`value-string`&&g.value&&g.value.includes(`\\`)&&_&&_.type!==`value-comment`||u?.value&&u.value.indexOf(`\\`)===u.value.length-1&&g.type===`value-operator`&&g.value===`/`||g.value===`\\`||ti(g,_)||ci(g)||li(g)||ui(_)||li(_)&&Z(_)||ui(g)&&Z(_)||g.value===`--`&&ci(_))continue;let v=Jr(g),y=Jr(_);if((v&&ci(_)||y&&ui(g))&&Z(_)||X(_)&&Pr(e,`type`)&&Z(_)||!u&&Gr(g)||Pr(e,`calc`)&&(X(g)||X(_)||Kr(g)||Kr(_))&&Z(_))continue;if(t.parser===`scss`&&v&&g.value===`-`&&_.type===`value-func`&&Y(g)!==J(_)){f.push([f.pop(),` `]);continue}let b=r.groups[n+2],x=(X(g)||Kr(g))&&n===0&&(_.type===`value-number`||_.isHex)&&a&&hi(a)&&!Z(_),S=b?.type===`value-func`||b&&di(b)||g.type===`value-func`||di(g),C=_.type===`value-func`||di(_)||u?.type===`value-func`||u&&di(u);if(!(!(Wr(_)||Wr(g))&&!Pr(e,`calc`)&&!x&&(Gr(_)&&!S||Gr(g)&&!C||X(_)&&!S||X(g)&&!C||Kr(_)||Kr(g))&&(Z(_)||v&&(!u||u&&Jr(u))))&&!((t.parser===`scss`||t.parser===`less`)&&v&&g.value===`-`&&yi(_)&&Y(g)===J(_.open)&&_.open.value===`(`)){if(si(g)){if(i.type===`value-paren_group`){f.push(Ut(K),``);continue}f.push(K,``);continue}if(l&&(Yr(_)||Xr(_)||Hr(_)||Ur(g)||Vr(g))){f.push([f.pop(),` `]);continue}if(c&&c.name.toLowerCase()===`namespace`){f.push([f.pop(),` `]);continue}if(s){g.source&&_.source&&g.source.start.line!==_.source.start.line?(f.push(K,``),h=!0):f.push([f.pop(),` `]);continue}if(!(o&&(o===`font`||o.startsWith(`--`))&&(Gr(_)&&Z(_)&&xi(g)||Gr(g)&&Z(g)&&xi(u)))){if(y){f.push([f.pop(),` `]);continue}if(_?.value!==`...`&&!(_i(g)&&_i(_)&&Y(g)===J(_))){if(_i(g)&&yi(_)&&Y(g)===J(_.open)){f.push(G,``);continue}if(g.value===`with`&&yi(_)){f=[[Gt(f),` `]];continue}if(!(g.value?.endsWith(`#`)&&_.value===`{`&&yi(_.group))&&!(si(_)&&!b)){if(!c&&g.type===`value-comment`&&!g.inline&&r.groups.slice(0,n).every(e=>e.type===`value-comment`)){f.push(Ut(W),``);continue}f.push(W,``)}}}}}return u&&f.push([f.pop(),Wt]),h&&f.unshift(``,K),l?H(V(f)):Lr(e)?H(Gt(f)):H(V(Gt(f)))}function xi(e){if(e?.type===`value-number`)return!0;if(e?.type!==`value-func`)return!1;let t=e.value.toLowerCase();return t===`var`||t===`calc`||t===`min`||t===`max`||t===`clamp`||t.startsWith(`--`)}var Si=bi;function Ci(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,`$1$2`).replace(/^([+-]?[\d.]+)e[+-]?0+$/,`$1`).replace(/^([+-])?\./,`$10.`).replace(/(\.\d+?)0+(?=e|$)/,`$1`).replace(/\.(?=e|$)/,``)}var wi=Ci,Ti=new Map([[`em`,`em`],[`rem`,`rem`],[`ex`,`ex`],[`rex`,`rex`],[`cap`,`cap`],[`rcap`,`rcap`],[`ch`,`ch`],[`rch`,`rch`],[`ic`,`ic`],[`ric`,`ric`],[`lh`,`lh`],[`rlh`,`rlh`],[`vw`,`vw`],[`svw`,`svw`],[`lvw`,`lvw`],[`dvw`,`dvw`],[`vh`,`vh`],[`svh`,`svh`],[`lvh`,`lvh`],[`dvh`,`dvh`],[`vi`,`vi`],[`svi`,`svi`],[`lvi`,`lvi`],[`dvi`,`dvi`],[`vb`,`vb`],[`svb`,`svb`],[`lvb`,`lvb`],[`dvb`,`dvb`],[`vmin`,`vmin`],[`svmin`,`svmin`],[`lvmin`,`lvmin`],[`dvmin`,`dvmin`],[`vmax`,`vmax`],[`svmax`,`svmax`],[`lvmax`,`lvmax`],[`dvmax`,`dvmax`],[`cm`,`cm`],[`mm`,`mm`],[`q`,`Q`],[`in`,`in`],[`pt`,`pt`],[`pc`,`pc`],[`px`,`px`],[`deg`,`deg`],[`grad`,`grad`],[`rad`,`rad`],[`turn`,`turn`],[`s`,`s`],[`ms`,`ms`],[`hz`,`Hz`],[`khz`,`kHz`],[`dpi`,`dpi`],[`dpcm`,`dpcm`],[`dppx`,`dppx`],[`x`,`x`],[`cqw`,`cqw`],[`cqh`,`cqh`],[`cqi`,`cqi`],[`cqb`,`cqb`],[`cqmin`,`cqmin`],[`cqmax`,`cqmax`],[`fr`,`fr`]]);function Ei(e){let t=e.toLowerCase();return Ti.has(t)?Ti.get(t):e}var Di=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,Oi=RegExp(Di.source+`|([$@]?[_a-z\\u0080-\\uFFFF][\\w\\u0080-\\uFFFF-]*)?((?:\\d*\\.\\d+|\\d+\\.?)(?:e[+-]?\\d+)?)([a-z]+)?`,`gi`);function Q(e,t){return L(0,e,Di,e=>ln(e,t))}function ki(e,t){let n=t.singleQuote?`'`:`"`,r=``,i=e.match(/^(?<value>.+?)\s+(?<flag>[a-z])$/i);return i&&({value:e,flag:r}=i.groups),(e.includes(`"`)||e.includes(`'`)?e:n+e+n)+(r?` ${r}`:``)}function Ai(e){return L(0,e,Oi,(e,t,n,r,i)=>!n&&r&&(i??(i=``),i=i.toLowerCase(),!i||i===`n`||Ti.has(i))?ji(r)+(i?Ei(i):``):e)}function ji(e){return wi(e).replace(/\.0(?=$|e)/,``)}function Mi(e){return e.trailingComma===`es5`||e.trailingComma===`all`}var Ni=e=>e===`
60
- `||e===`\r`||e===`\u2028`||e===`\u2029`;function Pi(e,t,n){if(t===!1)return!1;let r=!!n?.backwards,i=e.charAt(t);if(r){if(e.charAt(t-1)===`\r`&&i===`
61
- `)return t-2;if(Ni(i))return t-1}else{if(i===`\r`&&e.charAt(t+1)===`
62
- `)return t+2;if(Ni(i))return t+1}return t}var Fi=Pi;function Ii(e,t,n={}){let r=Cn(e,n.backwards?t-1:t,n);return r!==Fi(e,r,n)}var Li=Ii;function Ri(e,t){if(t===!1)return!1;if(e.charAt(t)===`/`&&e.charAt(t+1)===`*`){for(let n=t+2;n<e.length;++n)if(e.charAt(n)===`*`&&e.charAt(n+1)===`/`)return n+2}return t}var zi=Ri;function Bi(e,t){return t===!1?!1:e.charAt(t)===`/`&&e.charAt(t+1)===`/`?Tn(e,t):t}var Vi=Bi;function Hi(e,t){let n=null,r=t;for(;r!==n;)n=r,r=wn(e,r),r=zi(e,r),r=Cn(e,r);return r=Vi(e,r),r=Fi(e,r),r!==!1&&Li(e,r)}var Ui=Hi;function Wi({node:e,parent:t},n){return!!(e.source&&n.originalText.slice(J(e),J(t.close)).trimEnd().endsWith(`,`))}function Gi(e,t){return zr(e.grandparent)&&Wi(e,t)?`,`:e.node.type!==`value-comment`&&!(e.node.type===`value-comma_group`&&e.node.groups.every(e=>e.type===`value-comment`))&&Mi(t)&&e.callParent(()=>oi(e,t))?Kt(`,`):``}function Ki(e,t,n){let{node:r,parent:i}=e,a=e.map(({node:e})=>typeof e==`string`?e:n(),`groups`);if(i&&Rr(i)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type===`value-comma_group`&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type===`value-word`&&r.groups[0].groups[0].value.startsWith(`data:`)))return[r.open?n(`open`):``,U(`,`,a),r.close?n(`close`):``];if(!r.open){let t=qi(e);zt(a);let n=Yi(U(`,`,a),2),r=U(t?K:W,n);return V(t?[K,r]:H([Ji(e)?G:``,Gt(r)]))}let o=e.map(({node:n,isLast:r,index:i})=>{let o=a[i];ii(n)&&n.type===`value-comma_group`&&n.groups&&n.groups[0].type!==`value-paren_group`&&n.groups[2]?.type===`value-paren_group`&&jt(o)===bt&&jt(o.contents)===_t&&jt(o.contents.contents)===xt&&(o=H(Ut(o)));let s=[o,r?Gi(e,t):`,`];if(!r&&n.type===`value-comma_group`&&Qt(n.groups)){let e=R(0,n.groups,-1);!e.source&&e.close&&(e=e.close),e.source&&Ui(t.originalText,Y(e))&&s.push(K)}return s},`groups`),s=pi(r,i),c=vi(r,i),l=oi(e,t),u=c||l&&!s,d=c||s,f=H([r.open?n(`open`):``,V([G,U(W,o)]),G,Xt,r.close?n(`close`):``],{shouldBreak:u});return d?Ut(f):f}function qi(e){return e.match(e=>e.type===`value-paren_group`&&!e.open&&e.groups.some(e=>e.type===`value-comma_group`),(e,t)=>t===`group`&&e.type===`value-value`,(e,t)=>t===`group`&&e.type===`value-root`,(e,t)=>t===`value`&&(e.type===`css-decl`&&!e.prop.startsWith(`--`)||e.type===`css-atrule`&&e.variable))}function Ji(e){return e.match(e=>e.type===`value-paren_group`&&!e.open,(e,t)=>t===`group`&&e.type===`value-value`,(e,t)=>t===`group`&&e.type===`value-root`,(e,t)=>t===`value`&&e.type===`css-decl`)}function Yi(e,t){let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function Xi(e,t,n){let r=[];return e.each(()=>{let{node:i,previous:a}=e;if(a?.type===`css-comment`&&a.text.trim()===`prettier-ignore`?r.push(t.originalText.slice(J(i),Y(i))):r.push(n()),e.isLast)return;let{next:o}=e;o.type===`css-comment`&&!Li(t.originalText,J(o),{backwards:!0})&&!Wn(i)||o.type===`css-atrule`&&o.name===`else`&&i.type!==`css-comment`?r.push(` `):(r.push(t.__isHTMLStyleAttribute?W:K),Ui(t.originalText,Y(i))&&!Wn(i)&&r.push(K))},`nodes`),r}var Zi=Xi;function Qi(e,t,n){let{node:r}=e;switch(r.type){case`css-root`:{let i=Zi(e,t,n),a=r.raws.after.trim();return a.startsWith(`;`)&&(a=a.slice(1).trim()),[r.frontMatter?[n(`frontMatter`),K,r.nodes.length>0?K:``]:``,i,a?` ${a}`:``,r.nodes.length>0?K:``]}case`css-comment`:{let e=r.inline||r.raws.inline,n=t.originalText.slice(J(r),Y(r));return e?n.trimEnd():n}case`css-rule`:return[n(`selector`),r.important?` !important`:``,r.nodes?[r.selector?.type===`selector-unknown`&&gi(r.selector.value)?W:r.selector?` `:``,`{`,r.nodes.length>0?V([K,Zi(e,t,n)]):``,K,`}`,Br(r)?`;`:``]:`;`];case`css-decl`:{let i=e.parent,{between:a}=r.raws,o=a.trim(),s=o===`:`,c=a.endsWith(` `)&&s,l=typeof r.value==`string`&&/^ *$/.test(r.value),u=typeof r.value==`string`?r.value:n(`value`);return u=ni(r)?Lt(u):u,!s&&gi(o)&&!e.call(()=>qi(e),`value`,`group`,`group`)&&(u=V([K,Ut(u)])),[L(0,r.raws.before,/[\s;]/g,``),i.type===`css-atrule`&&i.variable||Fr(e)?r.prop:Nr(r.prop),o.startsWith(`//`)?` `:``,o,r.extend||l||!c&&r.isNested&&(_i(r.value.group.group)||_i(r.value.group.group.groups?.[0]))?``:` `,t.parser===`less`&&r.extend&&r.selector?r.selector.nodes.length>1?H([`extend(`,V([G,n(`selector`)]),G,`)`]):[`extend(`,n(`selector`),`)`]:``,u,r.raws.important?r.raws.important.replace(/\s*!\s*important/i,` !important`):r.important?` !important`:``,r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i,` !default`):r.scssDefault?` !default`:``,r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i,` !global`):r.scssGlobal?` !global`:``,r.nodes?[` {`,r.nodes.length>0?V([G,Zi(e,t,n)]):``,G,`}`]:ei(r)&&!i.raws.semicolon&&t.originalText[Y(r)-1]!==`;`?``:t.__isHTMLStyleAttribute&&e.isLast?Kt(`;`):`;`]}case`css-atrule`:{let i=e.parent,a=$r(r)&&!i.raws.semicolon&&t.originalText[Y(r)-1]!==`;`;if(t.parser===`less`){if(r.mixin)return[n(`selector`),r.important?` !important`:``,a?``:`;`];if(r.function)return[r.name,typeof r.params==`string`?r.params:n(`params`),a?``:`;`];if(r.variable)return[`@`,r.name,`: `,r.value?[n(`value`),Xt]:``,r.raws.between.trim()?r.raws.between.trim()+` `:``,r.nodes?[`{`,r.nodes.length>0?V([G,Zi(e,t,n)]):``,G,`}`]:``,a?``:`;`]}let o=r.name===`import`&&r.params?.type===`value-unknown`&&r.params.value.endsWith(`;`);return[`@`,Qr(r)||r.name.endsWith(`:`)||$r(r)?r.name:Nr(r.name),r.params?[Qr(r)?``:$r(r)?r.raws.afterName===``?``:r.name.endsWith(`:`)?` `:/^\s*\n\s*\n/.test(r.raws.afterName)?[K,K]:/^\s*\n/.test(r.raws.afterName)?K:` `:` `,typeof r.params==`string`?r.params:n(`params`)]:``,r.selector?V([` `,n(`selector`)]):``,r.value?H([` `,n(`value`),Zr(r,t)?ri(r)?` `:W:``]):r.name===`else`?` `:``,r.nodes?[Zr(r,t)?``:r.selector&&!r.selector.nodes&&typeof r.selector.value==`string`&&gi(r.selector.value)||!r.selector&&typeof r.params==`string`&&gi(r.params)?W:` `,`{`,r.nodes.length>0?V([G,Zi(e,t,n)]):``,G,`}`]:a||o?``:`;`]}case`media-query-list`:{let t=[];return e.each(({node:e})=>{e.type===`media-query`&&e.value===``||t.push(n())},`nodes`),H(V(U(W,t)))}case`media-query`:return[U(` `,e.map(n,`nodes`)),e.isLast?``:`,`];case`media-type`:return Ai(Q(r.value,t));case`media-feature-expression`:return r.nodes?[`(`,...e.map(n,`nodes`),`)`]:r.value;case`media-feature`:return Nr(Q(L(0,r.value,/ +/g,` `),t));case`media-colon`:return[r.value,` `];case`media-value`:return Ai(Q(r.value,t));case`media-keyword`:return Q(r.value,t);case`media-url`:return Q(L(0,L(0,r.value,/^url\(\s+/gi,`url(`),/\s+\)$/g,`)`),t);case`media-unknown`:return r.value;case`selector-root`:return H([Ir(e,`custom-selector`)?[e.findAncestor(e=>e.type===`css-atrule`).customSelector,W]:``,U([`,`,Ir(e,[`extend`,`custom-selector`,`nest`])?W:K],e.map(n,`nodes`))]);case`selector-selector`:return H((r.nodes.length>2?V:e=>e)(e.map(n,`nodes`)));case`selector-comment`:return r.value;case`selector-string`:return Q(r.value,t);case`selector-tag`:return[r.namespace?[r.namespace===!0?``:r.namespace.trim(),`|`]:``,e.previous?.type===`selector-nesting`?r.value:Ai(Mr(e,r.value)?r.value.toLowerCase():r.value)];case`selector-id`:return[`#`,r.value];case`selector-class`:return[`.`,Ai(Q(r.value,t))];case`selector-attribute`:return[`[`,r.namespace?[r.namespace===!0?``:r.namespace.trim(),`|`]:``,r.attribute.trim(),r.operator??``,r.value?Rt(ki(Q(r.value.trim(),t),t),qt):``,r.insensitive?` i`:``,`]`];case`selector-combinator`:if(r.value===`+`||r.value===`>`||r.value===`~`||r.value===`>>>`){let t=e.parent;return[t.type===`selector-selector`&&t.nodes[0]===r?``:W,r.value,e.isLast?``:` `]}return[r.value.trimStart().startsWith(`(`)?W:``,Ai(Q(r.value.trim(),t))||W];case`selector-universal`:return[r.namespace?[r.namespace===!0?``:r.namespace.trim(),`|`]:``,r.value];case`selector-pseudo`:return[Nr(r.value),Qt(r.nodes)?H([`(`,V([G,U([`,`,W],e.map(n,`nodes`))]),G,`)`]):``];case`selector-nesting`:return r.value;case`selector-unknown`:{if(e.findAncestor(e=>e.type===`css-rule`)?.isScssNestedProperty)return Ai(Q(Nr(r.value),t));let n=e.parent;if(n.raws?.selector){let e=J(n),r=e+n.raws.selector.length;return t.originalText.slice(e,r).trim()}let i=e.grandparent;if(n.type===`value-paren_group`&&i?.type===`value-func`&&i.value===`selector`){let e=Y(n.open)+1,r=J(n.close),i=t.originalText.slice(e,r).trim();return gi(i)?[Wt,i]:i}return r.value}case`value-value`:case`value-root`:return n(`group`);case`value-comment`:{let e=t.originalText.slice(J(r),Y(r));return r.inline?Yt(e.trimEnd()):e}case`value-comma_group`:return Si(e,t,n);case`value-paren_group`:return Ki(e,t,n);case`value-func`:return[r.value,Ir(e,`supports`)&&mi(r)?` `:``,n(`group`)];case`value-paren`:return r.value;case`value-number`:return[ji(r.value),Ei(r.unit)];case`value-operator`:return r.value;case`value-word`:return r.isColor&&r.isHex||jr(r.value)?r.value.toLowerCase():r.value;case`value-colon`:{let{previous:t}=e;return H([r.value,typeof t?.value==`string`&&t.value.endsWith(`\\`)||Pr(e,`url`)?``:W])}case`value-string`:return ln(r.raws.quote+r.value+r.raws.quote,t);case`value-atword`:return[`@`,r.value];case`value-unicode-range`:return r.value;case`value-unknown`:return r.value;default:throw new un(r,`PostCSS`)}}var $i={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:Qi,embed:fn,insertPragma:Dr,massageAstNode:Qn,getVisitorKeys:yn},ea=[{name:`CSS`,type:`markup`,aceMode:`css`,extensions:[`.css`,`.wxss`],tmScope:`source.css`,codemirrorMode:`css`,codemirrorMimeType:`text/css`,parsers:[`css`],vscodeLanguageIds:[`css`],linguistLanguageId:50},{name:`PostCSS`,type:`markup`,aceMode:`text`,extensions:[`.pcss`,`.postcss`],tmScope:`source.postcss`,group:`CSS`,parsers:[`css`],vscodeLanguageIds:[`postcss`],linguistLanguageId:262764437},{name:`Less`,type:`markup`,aceMode:`less`,extensions:[`.less`],tmScope:`source.css.less`,aliases:[`less-css`],codemirrorMode:`css`,codemirrorMimeType:`text/x-less`,parsers:[`less`],vscodeLanguageIds:[`less`],linguistLanguageId:198},{name:`SCSS`,type:`markup`,aceMode:`scss`,extensions:[`.scss`],tmScope:`source.css.scss`,codemirrorMode:`css`,codemirrorMimeType:`text/x-scss`,parsers:[`scss`],vscodeLanguageIds:[`scss`],linguistLanguageId:329}],ta={singleQuote:{bracketSpacing:{category:`Common`,type:`boolean`,default:!0,description:`Print spaces between brackets.`,oppositeDescription:`Do not print spaces between brackets.`},objectWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap object literals.`,choices:[{value:`preserve`,description:`Keep as multi-line, if there is a newline between the opening brace and first property.`},{value:`collapse`,description:`Fit to a single line when possible.`}]},singleQuote:{category:`Common`,type:`boolean`,default:!1,description:`Use single quotes instead of double quotes.`},proseWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap prose.`,choices:[{value:`always`,description:`Wrap prose if it exceeds the print width.`},{value:`never`,description:`Do not wrap prose.`},{value:`preserve`,description:`Wrap prose as-is.`}]},bracketSameLine:{category:`Common`,type:`boolean`,default:!1,description:`Put > of opening tags on the last line instead of on a new line.`},singleAttributePerLine:{category:`Common`,type:`boolean`,default:!1,description:`Enforce single attribute per line in HTML, Vue and JSX.`}}.singleQuote},na={};c(na,{css:()=>qa,less:()=>Ja,scss:()=>Ya});var ra=u(te(),1),ia=u(ce(),1),aa=u(ye(),1);function oa(e,t){let n=SyntaxError(e+` (`+t.loc.start.line+`:`+t.loc.start.column+`)`);return Object.assign(n,t)}var sa=oa;function ca(e){return typeof e==`object`&&!!e}var la=ca,ua=u(Ce(),1);function da(e,t,n){if(la(e)){delete e.parent;for(let r in e)da(e[r],t,n),r===`type`&&typeof e[r]==`string`&&!e[r].startsWith(t)&&(!n||!n.test(e[r]))&&(e[r]=t+e[r])}return e}function fa(e){if(la(e)){delete e.parent;for(let t in e)fa(e[t]);!Array.isArray(e)&&e.value&&!e.type&&(e.type=`unknown`)}return e}var pa=ua.default.default;function ma(e){let t;try{t=pa(e)}catch{return{type:`selector-unknown`,value:e}}return da(fa(t),`media-`)}var ha=ma,ga=u(Ge(),1);function _a(e){if(/\/[/*]/.test(L(0,e,/"[^"]+"|'[^']+'/g,``)))return{type:`selector-unknown`,value:e.trim()};let t;try{new ga.default(e=>{t=e}).process(e)}catch{return{type:`selector-unknown`,value:e}}return da(t,`selector-`)}var va=_a,ya=u(ct(),1),ba=e=>{for(;e.parent;)e=e.parent;return e};function xa(e){return ba(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()}var Sa=xa;function Ca(e){if(Qt(e)){for(let t=e.length-1;t>0;t--)if(e[t].type===`word`&&e[t].value===`{`&&e[t-1].type===`word`&&e[t-1].value.endsWith(`#`))return!0}return!1}var wa=Ca;function Ta(e){return e.some(e=>e.type===`string`||e.type===`func`&&!e.value.endsWith(`\\`))}var Ea=Ta;function Da(e,t){return!!(t.parser===`scss`&&e?.type===`word`&&e.value.startsWith(`$`))}var Oa=Da,ka=e=>e.type===`paren`&&e.value===`)`;function Aa(e,t){let{nodes:n}=e,r={open:null,close:null,groups:[],type:`paren_group`},i=[r],a=r,o={groups:[],type:`comma_group`},s=[o];for(let a=0;a<n.length;++a){let c=n[a];if(t.parser===`scss`&&c.type===`number`&&c.unit===`..`&&c.value.endsWith(`.`)&&(c.value=c.value.slice(0,-1),c.unit=`...`),c.type===`func`&&c.value===`selector`){let t=ba(e).text.slice(c.group.open.sourceIndex+1,c.group.close.sourceIndex),n=va(t);n.sourceIndex=c.group.open.sourceIndex+1,n.raws??(n.raws={}),n.raws.selector=t,c.group.groups=[n]}if(c.type===`func`&&c.value===`url`){let e=c.group?.groups??[],n=[];for(let t=0;t<e.length;t++){let r=e[t];r.type===`comma_group`?n=[...n,...r.groups]:n.push(r)}(wa(n)||!Ea(n)&&!Oa(n[0],t))&&(c.group.groups=[Sa(c)])}if(c.type===`paren`&&c.value===`(`)r={open:c,close:null,groups:[],type:`paren_group`},i.push(r),o={groups:[],type:`comma_group`},s.push(o);else if(ka(c)){if(o.groups.length>0&&r.groups.push(o),r.close=c,s.length===1)throw Error(`Unbalanced parenthesis`);s.pop(),o=R(0,s,-1),o.groups.push(r),i.pop(),r=R(0,i,-1)}else if(c.type===`comma`){if(a===n.length-3&&n[a+1].type===`comment`&&ka(n[a+2]))continue;r.groups.push(o),o={groups:[],type:`comma_group`},s[s.length-1]=o}else o.groups.push(c)}return o.groups.length>0&&r.groups.push(o),a}function ja(e){return e.type===`paren_group`&&!e.open&&!e.close&&e.groups.length===1||e.type===`comma_group`&&e.groups.length===1?ja(e.groups[0]):e.type===`paren_group`||e.type===`comma_group`?{...e,groups:e.groups.map(ja)}:e}function Ma(e,t){if(la(e))for(let n in e)n!==`parent`&&(Ma(e[n],t),n===`nodes`&&(e.type===`atword`&&e.nodes.length===0||(e.group=ja(Aa(e,t))),delete e[n]));return e}function Na(e,t){if(t.parser===`less`&&e.startsWith("~`"))return{type:`value-unknown`,value:e};let n;try{n=new ya.default(e,{loose:!0}).parse()}catch{return{type:`value-unknown`,value:e}}return n.text=e,da(Ma(n,t),`value-`,/^selector-/)}var $=Na,Pa=new Set([`import`,`use`,`forward`]);function Fa(e){return Pa.has(e)}var Ia=Fa;function La(e,t){return t.parser!==`scss`||!e.selector?!1:e.selector.replace(/\/\*.*?\*\//,``).replace(/\/\/.*\n/,``).trimEnd().endsWith(`:`)}var Ra=La,za=/(\s*)(!default).*$/,Ba=/(\s*)(!global).*$/;function Va(e,t){if(la(e)){delete e.parent;for(let n in e)Va(e[n],t);if(!e.type)return e;if(e.raws??(e.raws={}),e.type===`css-decl`&&typeof e.prop==`string`&&e.prop.startsWith(`--`)&&typeof e.value==`string`&&e.value.startsWith(`{`)){let n;if(e.value.trimEnd().endsWith(`}`)){let r=t.originalText.slice(0,e.source.start.offset),i=`a`.repeat(e.prop.length)+t.originalText.slice(e.source.start.offset+e.prop.length,e.source.end.offset),a=Kn(r)+i,o;o=t.parser===`scss`?Ga:t.parser===`less`?Wa:Ua;let s;try{s=o(a,{...t})}catch{}s?.nodes?.length===1&&s.nodes[0].type===`css-rule`&&(n=s.nodes[0].nodes)}return e.value=n?{type:`css-rule`,nodes:n}:{type:`value-unknown`,value:e.raws.value.raw},e}let n=``;typeof e.selector==`string`&&(n=e.raws.selector?e.raws.selector.scss??e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(n+=e.raws.between),e.raws.selector=n);let r=``;typeof e.value==`string`&&(r=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,e.raws.value=r.trim());let i=``;if(typeof e.params==`string`&&(i=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(i=e.raws.afterName+i),e.raws.between&&e.raws.between.trim().length>0&&(i+=e.raws.between),i=i.trim(),e.raws.params=i),n.trim().length>0)return n.startsWith(`@`)&&n.endsWith(`:`)?e:e.mixin?(e.selector=$(n,t),e):(Ra(e,t)&&(e.isScssNestedProperty=!0),e.selector=va(n),e);if(r.trim().length>0){let n=r.match(za);n&&(r=r.slice(0,n.index),e.scssDefault=!0,n[0].trim()!==`!default`&&(e.raws.scssDefault=n[0]));let i=r.match(Ba);if(i&&(r=r.slice(0,i.index),e.scssGlobal=!0,i[0].trim()!==`!global`&&(e.raws.scssGlobal=i[0])),r.startsWith(`progid:`))return{type:`value-unknown`,value:r};e.value=$(r,t)}if(t.parser===`less`&&e.type===`css-decl`&&typeof e.prop==`string`&&/^\s*\+\s*:/.test(e.raws.between)&&(e.prop+=`+`,e.raws.between=e.raws.between.replace(`+`,``)),t.parser===`less`&&e.type===`css-decl`&&r.startsWith(`extend(`)&&(e.extend||(e.extend=e.raws.between===`:`),e.extend&&!e.selector&&(delete e.value,e.selector=va(r.slice(7,-1)))),e.type===`css-atrule`){if(t.parser===`less`){if(e.mixin)return e.selector=va(e.raws.identifier+e.name+e.raws.afterName+e.raws.params),delete e.params,e;if(e.function)return e}if(t.parser===`css`&&e.name===`custom-selector`){let t=e.params.match(/:--\S+\s+/)[0].trim();return e.customSelector=t,e.selector=va(e.params.slice(t.length).trim()),delete e.params,e}if(t.parser===`less`){if(e.name.includes(`:`)){e.variable=!0;let n=e.name.split(`:`);e.name=n[0];let r=n.slice(1).join(`:`);e.params&&(r+=e.params),e.value=$(r,t)}if(![`page`,`nest`,`keyframes`].includes(e.name)&&e.params?.[0]===`:`){e.variable=!0;let n=e.params.slice(1);n&&(e.value=$(n,t)),e.raws.afterName+=`:`}if(e.variable)return delete e.params,e.value||delete e.value,e}}if(e.type===`css-atrule`&&i.length>0){let{name:n}=e;if(n===`warn`||n===`error`)return e.params={type:`media-unknown`,value:i},e;if(n===`extend`||n===`nest`)return e.selector=va(i),delete e.params,e;if(n===`at-root`)return/^\(\s*(?:without|with)\s*:.+\)$/s.test(i)?e.params=$(i,t):(e.selector=va(i),delete e.params),e;let r=n.toLowerCase();return Ia(r)?(e.import=!0,delete e.filename,e.params=$(i,t),e):[`namespace`,`supports`,`if`,`else`,`for`,`each`,`while`,`debug`,`mixin`,`include`,`function`,`return`,`define-mixin`,`add-mixin`].includes(n)?(i=i.replace(/(\$\S+?)(\s+)?\.{3}/,`$1...$2`),i=i.replace(/^(?!if)([^"'\s(]+)(\s+)\(/,`$1($2`),e.value=$(i,t),delete e.params,e):[`media`,`custom-media`].includes(r)?i.includes(`#{`)?{type:`media-unknown`,value:i}:(e.params=ha(i),e):(e.params=i,e)}}return e}function Ha(e,t,n){let{frontMatter:r,content:i}=Xn(t),a;try{a=e(i,{map:!1})}catch(e){let{name:t,reason:n,line:r,column:i}=e;throw typeof r==`number`?sa(`${t}: ${n}`,{loc:{start:{line:r,column:i}},cause:e}):e}return n.originalText=t,a=Va(da(a,`css-`),n),kn(a,t),r&&(a.frontMatter={...r,type:`front-matter`,source:{startOffset:r.start.index,endOffset:r.end.index}}),a}function Ua(e,t={}){return Ha(ra.default.default,e,t)}function Wa(e,t={}){return Ha(e=>ia.default.parse(Vn(e)),e,t)}function Ga(e,t={}){return Ha(aa.default,e,t)}var Ka={astFormat:`postcss`,hasPragma:Tr,hasIgnorePragma:Er,locStart:J,locEnd:Y},qa={...Ka,parse:Ua},Ja={...Ka,parse:Wa},Ya={...Ka,parse:Ga},Xa={postcss:$i};export{lt as default,ea as languages,ta as options,na as parsers,Xa as printers};