comp-hub 0.42.8 → 0.42.9

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 (157) hide show
  1. package/dist/index.js +6 -6
  2. package/dist/website/container/assets/index-6TGp-7st.css +1 -0
  3. package/dist/website/container/assets/index-BKC7DzZV.js +33 -0
  4. package/dist/website/container/index.html +2 -2
  5. package/dist/website/container/js/less-compiler.js +22 -22
  6. package/dist/website/container/js/sass-compiler.js +94 -94
  7. package/dist/website/item/assets/index-Pkb33-i2.css +1 -0
  8. package/dist/website/item/assets/{index-CwtVkGPL.js → index-kBvGmplc.js} +2 -2
  9. package/dist/website/item/index.html +2 -2
  10. package/dist/website/main/assets/AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-CH79cQAu.js +1 -0
  11. package/dist/website/main/assets/{BaseBadge-BReHrAqs.js → BaseBadge-D53B9edx.js} +1 -1
  12. package/dist/website/main/assets/BaseDialog.vue_vue_type_script_setup_true_lang-Bcc7UYpp.js +1 -0
  13. package/dist/website/main/assets/BaseSegmented.vue_vue_type_script_setup_true_lang-RYuIoPF7.js +1 -0
  14. package/dist/website/main/assets/CanvasAnimation.vue_vue_type_script_setup_true_lang-BNlJ1yyx.js +1 -0
  15. package/dist/website/main/assets/{CodeMirrorEditor-Cqow8ROO-DYjlZgX9.js → CodeMirrorEditor-Cqow8ROO-AryRubtp.js} +3 -3
  16. package/dist/website/main/assets/{EmptyStatusContainer.vue_vue_type_script_setup_true_lang-CNOUTt3S.js → EmptyStatusContainer.vue_vue_type_script_setup_true_lang-kK4W-ekr.js} +1 -1
  17. package/dist/website/main/assets/GithubCallback-BjmPqH_L.js +1 -0
  18. package/dist/website/main/assets/{LoadingWrapper.vue_vue_type_script_setup_true_lang-BYA4gUOI.js → LoadingWrapper.vue_vue_type_script_setup_true_lang-BPfuSpto.js} +1 -1
  19. package/dist/website/main/assets/ReplyForm.vue_vue_type_script_setup_true_lang-BiETILOo.js +1 -0
  20. package/dist/website/main/assets/{SiteLogo-Bpm2Ah9F.js → SiteLogo-DEIcFHUB.js} +1 -1
  21. package/dist/website/main/assets/SiteLogo-DbJD21Ac.css +1 -0
  22. package/dist/website/main/assets/{cloud-upload-BqJFdj_J.js → cloud-upload-DVf0ki5J.js} +1 -1
  23. package/dist/website/main/assets/el-table-column-BqpEDPpl.js +1 -0
  24. package/dist/website/main/assets/{home-rounded-CN0qCDnE.js → home-rounded-DcB333c-.js} +1 -1
  25. package/dist/website/main/assets/{index-DS44gjNL.js → index-0jhSi0Id.js} +1 -1
  26. package/dist/website/main/assets/{index-DdIWt0oE.js → index-6e_pcD2g.js} +1 -1
  27. package/dist/website/main/assets/{index-72rReQ2I-C_aIAupr.js → index-72rReQ2I-Dls_4Kw0.js} +1 -1
  28. package/dist/website/main/assets/index-B-o-geOz.js +1 -0
  29. package/dist/website/main/assets/{index-DvFQxOj2.js → index-B6DlcvMU.js} +1 -1
  30. package/dist/website/main/assets/index-BNYhon33.js +1 -0
  31. package/dist/website/main/assets/index-BOUkLBc8.js +1 -0
  32. package/dist/website/main/assets/index-BPiRmvZl.js +1 -0
  33. package/dist/website/main/assets/{index-DgQa2ZqK.js → index-BWSpWNwa.js} +1 -1
  34. package/dist/website/main/assets/index-BhaaT_GF.js +1 -0
  35. package/dist/website/main/assets/index-BqUqA7W4.js +1 -0
  36. package/dist/website/main/assets/{index-CMiBqyhH.js → index-Bqhbsn_n.js} +1 -1
  37. package/dist/website/main/assets/{index-Zt46lwNk.js → index-BrpXOHl6.js} +1 -1
  38. package/dist/website/main/assets/index-BxmgEr3S.js +1 -0
  39. package/dist/website/main/assets/index-C1Hw6vXQ.js +1 -0
  40. package/dist/website/main/assets/index-C42i82mF.js +2 -0
  41. package/dist/website/main/assets/{index-CeiBBtdW.js → index-C81i40Gx.js} +1 -1
  42. package/dist/website/main/assets/index-C9BP4kWZ.js +6 -0
  43. package/dist/website/main/assets/{index-DlkXaOkE.css → index-CFTT7hu0.css} +1 -1
  44. package/dist/website/main/assets/{index-B1K6cAvN.js → index-CIVzXolG.js} +1 -1
  45. package/dist/website/main/assets/index-CPc1AP3H.js +1 -0
  46. package/dist/website/main/assets/index-CWMIyyC3.js +1 -0
  47. package/dist/website/main/assets/{index-VyPJ3PyN.js → index-CglP2y1M.js} +1 -1
  48. package/dist/website/main/assets/index-CiPfzZM4.js +1 -0
  49. package/dist/website/main/assets/{index-BPdEkCOx.js → index-Cs-jTkU_.js} +1 -1
  50. package/dist/website/main/assets/{index-CtNrOkJr.js → index-CuvsliuR.js} +1 -1
  51. package/dist/website/main/assets/index-Cv6z_Edq.js +1 -0
  52. package/dist/website/main/assets/index-CxHPM7Fg.js +1 -0
  53. package/dist/website/main/assets/index-CytdBEyB.js +1 -0
  54. package/dist/website/main/assets/{index-S0EB9acK.js → index-D1_g-khQ.js} +1 -1
  55. package/dist/website/main/assets/index-D2eSTfJw.js +1 -0
  56. package/dist/website/main/assets/{index-KhSB9wFh.js → index-D3HuxiUJ.js} +1 -1
  57. package/dist/website/main/assets/{index-D76eWsZ1-a1NwqrGS.js → index-D76eWsZ1-Z0x-dydi.js} +1 -1
  58. package/dist/website/main/assets/index-DH0rbH_2.js +1 -0
  59. package/dist/website/main/assets/index-DPBASOD1.js +1 -0
  60. package/dist/website/main/assets/index-DQfTUb4g.js +1 -0
  61. package/dist/website/main/assets/{index-CuCbuNEj.js → index-DS0KGu0h.js} +1 -1
  62. package/dist/website/main/assets/index-DVxz8FkV.js +2 -0
  63. package/dist/website/main/assets/{index-DgrizPPB.js → index-DgXgHraR.js} +4 -4
  64. package/dist/website/main/assets/{index-B2qulmRp.js → index-DjWcnHPR.js} +1 -1
  65. package/dist/website/main/assets/{index-Dms7ZQ2h-DZe32-4Q.js → index-Dms7ZQ2h-B_6qoSW-.js} +1 -1
  66. package/dist/website/main/assets/index-Dnz1UQnr.js +1 -0
  67. package/dist/website/main/assets/index-DpYJK6hB.js +1 -0
  68. package/dist/website/main/assets/{index-DqiFCfGx-Be_VzFT8.js → index-DqiFCfGx-uaEe5kQB.js} +1 -1
  69. package/dist/website/main/assets/index-Dr-xg5xd.js +1 -0
  70. package/dist/website/main/assets/index-DtBE21vT.js +1 -0
  71. package/dist/website/main/assets/{index-DdqWCLvd.js → index-DxdtqQU6.js} +1 -1
  72. package/dist/website/main/assets/{index-DxypSQ0K-DZ74HfZS.js → index-DxypSQ0K-zR2L90gm.js} +1 -1
  73. package/dist/website/main/assets/{index-BA02DjBI.js → index-DzxzRGrk.js} +1 -1
  74. package/dist/website/main/assets/index-NYRLx08d.js +1 -0
  75. package/dist/website/main/assets/{index-B5rd6Qgm.js → index-PMqboCW5.js} +1 -1
  76. package/dist/website/main/assets/index-R79ZeMZV.js +1 -0
  77. package/dist/website/main/assets/{index-T76vWLBU-iHnxnk3E.js → index-T76vWLBU-B_wdWDQF.js} +1 -1
  78. package/dist/website/main/assets/{index-DyFpWAJM.js → index-XhJP7gYm.js} +1 -1
  79. package/dist/website/main/assets/{index-fZBcgzqR-CqMOhDrG.js → index-fZBcgzqR-CZSkQJVN.js} +1 -1
  80. package/dist/website/main/assets/index-kE41pQo6.js +1 -0
  81. package/dist/website/main/assets/{index-mqeGrL6B-C5oP0065.js → index-mqeGrL6B-Dup8h8xb.js} +1 -1
  82. package/dist/website/main/assets/{index-CLT68CCM.css → index-rRr1TSL-.css} +1 -1
  83. package/dist/website/main/assets/{index-BX3Tl9jb.js → index-tMz4-DEB.js} +1 -1
  84. package/dist/website/main/assets/{index-Dblv7zZt.js → index-ywM9Y30i.js} +1 -1
  85. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-B8gjIiIt.js +2 -0
  86. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-Bs4fbZK8.js → index.vue_vue_type_script_setup_true_lang-BdH7Nx9p.js} +1 -1
  87. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-Dsu1eY0B.js → index.vue_vue_type_script_setup_true_lang-Bphion84.js} +1 -1
  88. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-C8D789jG.js +1 -0
  89. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-B05SHLQS.js → index.vue_vue_type_script_setup_true_lang-CfvoANZj.js} +1 -1
  90. package/dist/website/main/assets/{index.vue_vue_type_script_setup_true_lang-BOkD4Vs3.js → index.vue_vue_type_script_setup_true_lang-uwxiML83.js} +1 -1
  91. package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-DDVUKgQ8.js +1 -0
  92. package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-DiN6WUUw.js +6 -0
  93. package/dist/website/main/assets/index3-BB6QcGH6.js +1 -0
  94. package/dist/website/main/assets/{kid-star-CiMfD7Sa.js → kid-star-0b7jegzF.js} +1 -1
  95. package/dist/website/main/assets/{md5-Dkj6ZNQB.js → md5-BqUl3L9Y.js} +1 -1
  96. package/dist/website/main/assets/{settings-CSr4nQM1.js → settings-DpNeh4hy.js} +1 -1
  97. package/dist/website/main/assets/{supervised-user-circle-BwUSx6w_.js → supervised-user-circle-B5yCz5Oo.js} +1 -1
  98. package/dist/website/main/assets/{sync-saved-locally-rounded-DyESI323.js → sync-saved-locally-rounded-BX8GcRCO.js} +1 -1
  99. package/dist/website/main/assets/{terminal-DAZ0JqKA.js → terminal-DXqN9Hoj.js} +1 -1
  100. package/dist/website/main/assets/{useCacheOssStore-C6-kY3lP.js → useCacheOssStore-DRfQruRw.js} +1 -1
  101. package/dist/website/main/assets/{useCompEditStore-B7__tBPJ.js → useCompEditStore-DpFLk9bE.js} +3 -3
  102. package/dist/website/main/assets/{useCompMetaLocalStore-DUMtt_yz.js → useCompMetaLocalStore-Dko7Z-qO.js} +1 -1
  103. package/dist/website/main/assets/{useKeyword-O-wdQuD_.js → useKeyword-Dh8n_REW.js} +1 -1
  104. package/dist/website/main/assets/useMessage-DeFP0yQy.js +1 -0
  105. package/dist/website/main/assets/{useTeamHeaders-BMHQzwDq.css → useTeamHeaders-BSofrH8c.css} +1 -1
  106. package/dist/website/main/assets/{useTeamHeaders-BbJQSrjN.js → useTeamHeaders-Bl2nRtJe.js} +1 -1
  107. package/dist/website/main/assets/{useUnreadStore-COt1XJEP.js → useUnreadStore-C1fMXHK-.js} +1 -1
  108. package/dist/website/main/assets/{useVscodeOpen-CCvngYEV.js → useVscodeOpen-CcI7l8e8.js} +1 -1
  109. package/dist/website/main/assets/{vendor-core-CNXB6kVe.js → vendor-core-CfnvwQzw.js} +3 -3
  110. package/dist/website/main/assets/{vendor-ui-Cvgmewma.js → vendor-ui-g5RNTRAc.js} +15 -15
  111. package/dist/website/main/index.html +4 -4
  112. package/package.json +3 -10
  113. package/dist/website/container/assets/index-BmW7jge6.css +0 -1
  114. package/dist/website/container/assets/index-E15UfKFM.js +0 -33
  115. package/dist/website/item/assets/index-CfkvQ31V.css +0 -1
  116. package/dist/website/main/assets/AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-D-jhE3yA.js +0 -1
  117. package/dist/website/main/assets/BaseDialog.vue_vue_type_script_setup_true_lang-BK7dbjCA.js +0 -1
  118. package/dist/website/main/assets/BaseSegmented.vue_vue_type_script_setup_true_lang-CcSntY2B.js +0 -1
  119. package/dist/website/main/assets/CanvasAnimation.vue_vue_type_script_setup_true_lang-T5vn0JFD.js +0 -1
  120. package/dist/website/main/assets/GithubCallback-UUNSnoh7.js +0 -1
  121. package/dist/website/main/assets/ReplyForm.vue_vue_type_script_setup_true_lang-CEqkWYsv.js +0 -1
  122. package/dist/website/main/assets/SiteLogo-CszHjM2d.css +0 -1
  123. package/dist/website/main/assets/el-table-column-C2GQUl4R.js +0 -1
  124. package/dist/website/main/assets/index-4S2NYemE.js +0 -1
  125. package/dist/website/main/assets/index-6zg8j_nT.js +0 -1
  126. package/dist/website/main/assets/index-B6JeEo9g.js +0 -1
  127. package/dist/website/main/assets/index-B6Oo99Ej.js +0 -1
  128. package/dist/website/main/assets/index-BD8DwKlG.js +0 -1
  129. package/dist/website/main/assets/index-BF2ETnQh.js +0 -1
  130. package/dist/website/main/assets/index-BNwWVTCF.js +0 -1
  131. package/dist/website/main/assets/index-BTmh_pkn.js +0 -1
  132. package/dist/website/main/assets/index-BWh3R1jI.js +0 -6
  133. package/dist/website/main/assets/index-By_sRNiP.js +0 -1
  134. package/dist/website/main/assets/index-C1zFaUVE.js +0 -1
  135. package/dist/website/main/assets/index-CCJiyDal.js +0 -1
  136. package/dist/website/main/assets/index-CaoAcCMA.js +0 -2
  137. package/dist/website/main/assets/index-CbOKlsZn.js +0 -2
  138. package/dist/website/main/assets/index-D-25wqLa.js +0 -1
  139. package/dist/website/main/assets/index-D-HOLV6Z.js +0 -1
  140. package/dist/website/main/assets/index-D6zFRika.js +0 -1
  141. package/dist/website/main/assets/index-DR4j8Ql1.js +0 -1
  142. package/dist/website/main/assets/index-DRsSRfwD.js +0 -1
  143. package/dist/website/main/assets/index-D_NvG8ob.js +0 -1
  144. package/dist/website/main/assets/index-Dcp6qLr1.js +0 -1
  145. package/dist/website/main/assets/index-DpUmZw4S.js +0 -1
  146. package/dist/website/main/assets/index-Dy0c-ddP.js +0 -1
  147. package/dist/website/main/assets/index-RrkKKQjp.js +0 -1
  148. package/dist/website/main/assets/index-VpAGAhRh.js +0 -1
  149. package/dist/website/main/assets/index-ex5YI_gC.js +0 -1
  150. package/dist/website/main/assets/index-wd7ZswFD.js +0 -1
  151. package/dist/website/main/assets/index-z8BnmFXm.js +0 -1
  152. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-Ap8wTvsB.js +0 -2
  153. package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-ByHasmxS.js +0 -1
  154. package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-66fUtqSq.js +0 -6
  155. package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-CUQ5yd-1.js +0 -1
  156. package/dist/website/main/assets/index3-BiHnTK1Z.js +0 -1
  157. package/dist/website/main/assets/useMessage-yR4W8KDP.js +0 -1
@@ -1,36 +1,36 @@
1
- (()=>{var Ps=Object.create;var Wt=Object.defineProperty;var Fs=Object.getOwnPropertyDescriptor;var Os=Object.getOwnPropertyNames;var Ls=Object.getPrototypeOf,Vs=Object.prototype.hasOwnProperty;var Ds=(H,U)=>()=>{try{return U||H((U={exports:{}}).exports,U),U.exports}catch(te){throw U=0,te}};var Bs=(H,U,te,he)=>{if(U&&typeof U=="object"||typeof U=="function")for(let pe of Os(U))!Vs.call(H,pe)&&pe!==te&&Wt(H,pe,{get:()=>U[pe],enumerable:!(he=Fs(U,pe))||he.enumerable});return H};var js=(H,U,te)=>(te=H!=null?Ps(Ls(H)):{},Bs(U||!H||!H.__esModule?Wt(te,"default",{value:H,enumerable:!0}):te,H));var Gt=Ds((ft,ht)=>{(function(H,U){typeof ft=="object"&&typeof ht<"u"?ht.exports=U():typeof define=="function"&&define.amd?define(U):(H=typeof globalThis<"u"?globalThis:H||self,H.less=U())})(ft,(function(){"use strict";function H(){return{javascriptEnabled:!1,depends:!1,compress:!1,lint:!1,paths:[],color:!0,strictImports:!1,insecure:!1,rootpath:"",rewriteUrls:!1,math:1,strictUnits:!1,globalVars:null,modifyVars:null,urlArgs:""}}function U(r){return r.replace(/^[a-z-]+:\/+?[^/]+/,"").replace(/[?&]livereload=\w+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^.\w-]+/g,"-").replace(/\./g,":")}function te(r,e){if(e){for(let t in e.dataset)if(Object.prototype.hasOwnProperty.call(e.dataset,t))if(t==="env"||t==="dumpLineNumbers"||t==="rootpath"||t==="errorReporting")r[t]=e.dataset[t];else try{r[t]=JSON.parse(e.dataset[t])}catch{}}}var he={createCSS:function(r,e,t){let i=t.href||"",n=`less:${t.title||U(i)}`,l=r.getElementById(n),s=!1,u=r.createElement("style");u.setAttribute("type","text/css"),t.media&&u.setAttribute("media",t.media),u.id=n,u.styleSheet||(u.appendChild(r.createTextNode(e)),s=l!==null&&l.childNodes.length>0&&u.childNodes.length>0&&l.firstChild.nodeValue===u.firstChild.nodeValue);let a=r.getElementsByTagName("head")[0];if(l===null||s===!1){let p=t&&t.nextSibling||null;p?p.parentNode.insertBefore(u,p):a.appendChild(u)}if(l&&s===!1&&l.parentNode.removeChild(l),u.styleSheet)try{u.styleSheet.cssText=e}catch{throw new Error("Couldn't reassign styleSheet.cssText.")}},currentScript:function(r){let e=r.document;return e.currentScript||(()=>{let t=e.getElementsByTagName("script");return t[t.length-1]})()}},pe=(r,e)=>{te(e,he.currentScript(r)),e.isFileProtocol===void 0&&(e.isFileProtocol=/^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(r.location.protocol)),e.async=e.async||!1,e.fileAsync=e.fileAsync||!1,e.poll=e.poll||(e.isFileProtocol?1e3:1500),e.env=e.env||(r.location.hostname=="127.0.0.1"||r.location.hostname=="0.0.0.0"||r.location.hostname=="localhost"||r.location.port&&r.location.port.length>0||e.isFileProtocol?"development":"production");let t=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(r.location.hash);t&&(e.dumpLineNumbers=t[1]),e.useFileCache===void 0&&(e.useFileCache=!0),e.onReady===void 0&&(e.onReady=!0),e.relativeUrls&&(e.rewriteUrls="all")},ue={error:function(r){this._fireEvent("error",r)},warn:function(r){this._fireEvent("warn",r)},info:function(r){this._fireEvent("info",r)},debug:function(r){this._fireEvent("debug",r)},addListener:function(r){this._listeners.push(r)},removeListener:function(r){for(let e=0;e<this._listeners.length;e++)if(this._listeners[e]===r){this._listeners.splice(e,1);return}},_fireEvent:function(r,e){for(let t=0;t<this._listeners.length;t++){let i=this._listeners[t][r];i&&i(e)}},_listeners:[]};class pt{constructor(e,t){this.fileManagers=t||[],e=e||{};let i=["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"],n=[],l=n.concat(i);for(let s=0;s<l.length;s++){let u=l[s],a=e[u];a?this[u]=a.bind(e):s<n.length&&this.warn(`missing required function in environment - ${u}`)}}getFileManager(e,t,i,n,l){e||ue.warn("getFileManager called with no filename.. Please report this issue. continuing."),t===void 0&&ue.warn("getFileManager called with null directory.. Please report this issue. continuing.");let s=this.fileManagers;i.pluginManager&&(s=[].concat(s).concat(i.pluginManager.getFileManagers()));for(let u=s.length-1;u>=0;u--){let a=s[u];if(a[l?"supportsSync":"supports"](e,t,i,n))return a}return null}addFileManager(e){this.fileManagers.push(e)}clearFileManagers(){this.fileManagers=[]}}var Ge={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},de={length:{m:1,cm:.01,mm:.001,in:.0254,px:.0254/96,pt:.0254/72,pc:.0254/72*12},duration:{s:1,ms:.001},angle:{rad:1/(2*Math.PI),deg:1/360,grad:1/400,turn:1}},Jt={colors:Ge,unitConversions:de};class R{get type(){return""}constructor(){this.parent=null,this.visibilityBlocks=void 0,this.nodeVisible=void 0,this.rootNode=null,this.parsed=null,this.value=void 0,this._index=void 0,this._fileInfo=void 0}get currentFileInfo(){return this.fileInfo()}get index(){return this.getIndex()}setParent(e,t){function i(n){n&&n instanceof R&&(n.parent=t)}Array.isArray(e)?e.forEach(i):i(e)}getIndex(){return this._index||this.parent&&this.parent.getIndex()||0}fileInfo(){return this._fileInfo||this.parent&&this.parent.fileInfo()||{}}isRulesetLike(){return!1}toCSS(e){let t=[];return this.genCSS(e,{add:function(i,n,l){t.push(i)},isEmpty:function(){return t.length===0}}),t.join("")}genCSS(e,t){t.add(this.value)}accept(e){this.value=e.visit(this.value)}eval(e){return this}_operate(e,t,i,n){switch(t){case"+":return i+n;case"-":return i-n;case"*":return i*n;case"/":return i/n}}fround(e,t){let i=e&&e.numPrecision;return i?Number((t+2e-16).toFixed(i)):t}static compare(e,t){if(e.compare&&!(t.type==="Quoted"||t.type==="Anonymous"))return e.compare(t);if(t.compare)return-t.compare(e);if(e.type!==t.type)return;let i=e.value,n=t.value;if(!Array.isArray(i))return i===n?0:void 0;if(Array.isArray(n)&&i.length===n.length){for(let l=0;l<i.length;l++)if(R.compare(i[l],n[l])!==0)return;return 0}}static numericCompare(e,t){return e<t?-1:e===t?0:e>t?1:void 0}blocksVisibility(){return this.visibilityBlocks===void 0&&(this.visibilityBlocks=0),this.visibilityBlocks!==0}addVisibilityBlock(){this.visibilityBlocks===void 0&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1}removeVisibilityBlock(){this.visibilityBlocks===void 0&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1}ensureVisibility(){this.nodeVisible=!0}ensureInvisibility(){this.nodeVisible=!1}isVisible(){return this.nodeVisible}visibilityInfo(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}}copyVisibilityInfo(e){e&&(this.visibilityBlocks=e.visibilityBlocks,this.nodeVisible=e.nodeVisible)}}R.prototype.parse=void 0;class T extends R{get type(){return"Color"}constructor(e,t,i){super();let n=this;Array.isArray(e)?this.rgb=e:e.length>=6?(this.rgb=[],e.match(/.{2}/g).map(function(l,s){s<3?n.rgb.push(parseInt(l,16)):n.alpha=parseInt(l,16)/255})):(this.rgb=[],e.split("").map(function(l,s){s<3?n.rgb.push(parseInt(l+l,16)):n.alpha=parseInt(l+l,16)/255})),typeof this.alpha>"u"&&(this.alpha=typeof t=="number"?t:1),typeof i<"u"&&(this.value=i)}luma(){let e=this.rgb[0]/255,t=this.rgb[1]/255,i=this.rgb[2]/255;return e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4),i=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),.2126*e+.7152*t+.0722*i}genCSS(e,t){t.add(this.toCSS(e))}toCSS(e,t){let i=e&&e.compress&&!t,n,l,s,u=[];if(l=this.fround(e,this.alpha),this.value)if(this.value.indexOf("rgb")===0)l<1&&(s="rgba");else if(this.value.indexOf("hsl")===0)l<1?s="hsla":s="hsl";else return this.value;else l<1&&(s="rgba");switch(s){case"rgba":u=this.rgb.map(function(a){return Oe(Math.round(a),255)}).concat(Oe(l,1));break;case"hsla":u.push(Oe(l,1));case"hsl":n=this.toHSL(),u=[this.fround(e,n.h),`${this.fround(e,n.s*100)}%`,`${this.fround(e,n.l*100)}%`].concat(u)}if(s)return`${s}(${u.join(`,${i?"":" "}`)})`;if(n=this.toRGB(),i){let a=n.split("");a[1]===a[2]&&a[3]===a[4]&&a[5]===a[6]&&(n=`#${a[1]}${a[3]}${a[5]}`)}return n}operate(e,t,i){let n=new Array(3),l=this.alpha*(1-i.alpha)+i.alpha;for(let s=0;s<3;s++)n[s]=this._operate(e,t,this.rgb[s],i.rgb[s]);return new T(n,l)}toRGB(){return dt(this.rgb)}toHSL(){let e=this.rgb[0]/255,t=this.rgb[1]/255,i=this.rgb[2]/255,n=this.alpha,l=Math.max(e,t,i),s=Math.min(e,t,i),u,a,p=(l+s)/2,d=l-s;if(l===s)u=a=0;else{switch(a=p>.5?d/(2-l-s):d/(l+s),l){case e:u=(t-i)/d+(t<i?6:0);break;case t:u=(i-e)/d+2;break;case i:u=(e-t)/d+4;break}u/=6}return{h:u*360,s:a,l:p,a:n}}toHSV(){let e=this.rgb[0]/255,t=this.rgb[1]/255,i=this.rgb[2]/255,n=this.alpha,l=Math.max(e,t,i),s=Math.min(e,t,i),u,a,p=l,d=l-s;if(l===0?a=0:a=d/l,l===s)u=0;else{switch(l){case e:u=(t-i)/d+(t<i?6:0);break;case t:u=(i-e)/d+2;break;case i:u=(e-t)/d+4;break}u/=6}return{h:u*360,s:a,v:p,a:n}}toARGB(){return dt([this.alpha*255].concat(this.rgb))}compare(e){return e.rgb&&e.rgb[0]===this.rgb[0]&&e.rgb[1]===this.rgb[1]&&e.rgb[2]===this.rgb[2]&&e.alpha===this.alpha?0:void 0}static fromKeyword(e){let t,i=e.toLowerCase();if(Ge.hasOwnProperty(i)?t=new T(Ge[i].slice(1)):i==="transparent"&&(t=new T([0,0,0],0)),t)return t.value=e,t}}function Oe(r,e){return Math.min(Math.max(r,0),e)}function dt(r){return`#${r.map(function(e){return e=Oe(Math.round(e),255),(e<16?"0":"")+e.toString(16)}).join("")}`}class ce extends R{get type(){return"Paren"}constructor(e){super(),this.value=e,this.noSpacing=void 0}genCSS(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")}eval(e){let t=new ce(this.value.eval(e));return this.noSpacing&&(t.noSpacing=!0),t}}let Zt={"":!0," ":!0,"|":!0};class Ke extends R{get type(){return"Combinator"}constructor(e){super(),e===" "?(this.value=" ",this.emptyOrWhitespace=!0):(this.value=e?e.trim():"",this.emptyOrWhitespace=this.value==="")}genCSS(e,t){let i=e.compress||Zt[this.value]?"":" ";t.add(i+this.value+i)}}class Y extends R{get type(){return"Element"}constructor(e,t,i,n,l,s){super(),this.combinator=e instanceof Ke?e:new Ke(e),typeof t=="string"?this.value=t.trim():t?this.value=t:this.value="",this.isVariable=i,this._index=n,this._fileInfo=l,this.copyVisibilityInfo(s),this.setParent(this.combinator,this)}accept(e){let t=this.value;this.combinator=e.visit(this.combinator),typeof t=="object"&&(this.value=e.visit(t))}eval(e){return new Y(this.combinator,this.value.eval?this.value.eval(e):this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())}clone(){return new Y(this.combinator,this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())}genCSS(e,t){t.add(this.toCSS(e),this.fileInfo(),this.getIndex())}toCSS(e){let t=e||{},i=this.value,n=t.firstSelector;return i instanceof ce&&(t.firstSelector=!0),i=i.toCSS?i.toCSS(t):i,t.firstSelector=n,i===""&&this.combinator.value.charAt(0)==="&"?"":this.combinator.toCSS(t)+i}}let le={ALWAYS:0,PARENS_DIVISION:1,PARENS:2},Me={OFF:0,LOCAL:1,ALL:2};function mt(r){return Object.prototype.toString.call(r).slice(8,-1)}function gt(r){return mt(r)==="Array"}function Qt(r){if(mt(r)!=="Object")return!1;let e=Object.getPrototypeOf(r);return!!e&&e.constructor===Object&&e===Object.prototype}function Xt(r,e,t,i,n){let l={}.propertyIsEnumerable.call(i,e)?"enumerable":"nonenumerable";l==="enumerable"&&(r[e]=t),n&&l==="nonenumerable"&&Object.defineProperty(r,e,{value:t,enumerable:!1,writable:!0,configurable:!0})}function Le(r,e={}){if(gt(r))return r.map(n=>Le(n,e));if(!Qt(r))return r;let t=Object.getOwnPropertyNames(r),i=Object.getOwnPropertySymbols(r);return[...t,...i].reduce((n,l)=>{if(gt(e.props)&&!e.props.includes(l))return n;let s=r[l],u=Le(s,e);return Xt(n,l,u,r,e.nonenumerable),n},{})}function Ve(r,e){let t=r+1,i=null,n=-1;for(;--t>=0&&e.charAt(t)!==`
2
- `;)n++;return typeof r=="number"&&(i=(e.slice(0,r).match(/\n/g)||"").length),{line:i,column:n}}function W(r){let e,t=r.length,i=new Array(t);for(e=0;e<t;e++)i[e]=r[e];return i}function Je(r){let e={};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e}function vt(r,e){let t=e||{};if(!e._defaults){t={};let i=Le(r);t._defaults=i;let n=e?Le(e):{};Object.assign(t,i,n)}return t}function _e(r,e){if(e&&e._defaults)return e;let t=vt(r,e);if(t.strictMath&&(t.math=le.PARENS),t.relativeUrls&&(t.rewriteUrls=Me.ALL),typeof t.math=="string")switch(t.math.toLowerCase()){case"always":t.math=le.ALWAYS;break;case"parens-division":t.math=le.PARENS_DIVISION;break;case"strict":case"parens":t.math=le.PARENS;break;default:t.math=le.PARENS}if(typeof t.rewriteUrls=="string")switch(t.rewriteUrls.toLowerCase()){case"off":t.rewriteUrls=Me.OFF;break;case"local":t.rewriteUrls=Me.LOCAL;break;case"all":t.rewriteUrls=Me.ALL;break}return t}function Yt(r,e){for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r}function Ze(r,e=[]){for(let t=0,i=r.length;t<i;t++){let n=r[t];Array.isArray(n)?Ze(n,e):n!==void 0&&e.push(n)}return e}function Qe(r){return r==null}var ei=Object.freeze({__proto__:null,getLocation:Ve,copyArray:W,clone:Je,defaults:vt,copyOptions:_e,merge:Yt,flattenArray:Ze,isNullOrUndefined:Qe});let yt=/(<anonymous>|Function):(\d+):(\d+)/,O=function(r,e,t){Error.call(this);let i=r.filename||t;if(this.message=r.message,this.stack=r.stack,this.type=r.type||"Syntax",e&&i){let l=e.contents[i],s=Ve(r.index,l);var n=s.line;let u=s.column,a=r.call&&Ve(r.call,l).line,p=l?l.split(`
3
- `):"";if(this.filename=i,this.index=r.index,this.line=typeof n=="number"?n+1:null,this.column=u,!this.line&&this.stack){let d=this.stack.match(yt),g=new Function("a","throw new Error()"),v=0;try{g()}catch(k){let A=k.stack.match(yt);v=1-parseInt(A[2])}d&&(d[2]&&(this.line=parseInt(d[2])+v),d[3]&&(this.column=parseInt(d[3])))}this.callLine=a+1,this.callExtract=p[a],this.extract=[p[this.line-2],p[this.line-1],p[this.line]]}};if(typeof Object.create>"u"){let r=function(){};r.prototype=Error.prototype,O.prototype=new r}else O.prototype=Object.create(Error.prototype);O.prototype.constructor=O,O.prototype.toString=function(r){r=r||{};let e=(this.type??"").toLowerCase().includes("warning"),t=e?this.type:`${this.type}Error`,i=e?"yellow":"red",n="",l=this.extract||[],s=[],u=function(a){return a};if(r.stylize){let a=typeof r.stylize;if(a!=="function")throw Error(`options.stylize should be a function, got a ${a}!`);u=r.stylize}if(this.line!==null){if(!e&&typeof l[0]=="string"&&s.push(u(`${this.line-1} ${l[0]}`,"grey")),typeof l[1]=="string"){let a=`${this.line} `;l[1]&&(a+=l[1].slice(0,this.column)+u(u(u(l[1].slice(this.column,this.column+1),"bold")+l[1].slice(this.column+1),"red"),"inverse")),s.push(a)}!e&&typeof l[2]=="string"&&s.push(u(`${this.line+1} ${l[2]}`,"grey")),s=`${s.join(`
1
+ (()=>{var Ws=Object.create;var si=Object.defineProperty;var Gs=Object.getOwnPropertyDescriptor;var Ks=Object.getOwnPropertyNames;var Js=Object.getPrototypeOf,Zs=Object.prototype.hasOwnProperty;var Qs=(G,N)=>()=>(N||G((N={exports:{}}).exports,N),N.exports);var Ys=(G,N,ue,de)=>{if(N&&typeof N=="object"||typeof N=="function")for(let me of Ks(N))!Zs.call(G,me)&&me!==ue&&si(G,me,{get:()=>N[me],enumerable:!(de=Gs(N,me))||de.enumerable});return G};var Xs=(G,N,ue)=>(ue=G!=null?Ws(Js(G)):{},Ys(N||!G||!G.__esModule?si(ue,"default",{value:G,enumerable:!0}):ue,G));var ni=Qs((vt,yt)=>{(function(G,N){typeof vt=="object"&&typeof yt<"u"?yt.exports=N():typeof define=="function"&&define.amd?define(N):(G=typeof globalThis<"u"?globalThis:G||self,G.less=N())})(vt,(function(){"use strict";function G(){return{javascriptEnabled:!1,depends:!1,compress:!1,lint:!1,paths:[],color:!0,strictImports:!1,insecure:!1,rootpath:"",rewriteUrls:!1,math:1,strictUnits:!1,globalVars:null,modifyVars:null,urlArgs:""}}function N(r){return r.replace(/^[a-z-]+:\/+?[^/]+/,"").replace(/[?&]livereload=\w+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^.\w-]+/g,"-").replace(/\./g,":")}function ue(r,e){if(e){for(let t in e.dataset)if(Object.prototype.hasOwnProperty.call(e.dataset,t))if(t==="env"||t==="dumpLineNumbers"||t==="rootpath"||t==="errorReporting")r[t]=e.dataset[t];else try{r[t]=JSON.parse(e.dataset[t])}catch{}}}var de={createCSS:function(r,e,t){let i=t.href||"",n=`less:${t.title||N(i)}`,l=r.getElementById(n),s=!1,u=r.createElement("style");u.setAttribute("type","text/css"),t.media&&u.setAttribute("media",t.media),u.id=n,u.styleSheet||(u.appendChild(r.createTextNode(e)),s=l!==null&&l.childNodes.length>0&&u.childNodes.length>0&&l.firstChild.nodeValue===u.firstChild.nodeValue);let a=r.getElementsByTagName("head")[0];if(l===null||s===!1){let h=t&&t.nextSibling||null;h?h.parentNode.insertBefore(u,h):a.appendChild(u)}if(l&&s===!1&&l.parentNode.removeChild(l),u.styleSheet)try{u.styleSheet.cssText=e}catch{throw new Error("Couldn't reassign styleSheet.cssText.")}},currentScript:function(r){let e=r.document;return e.currentScript||(()=>{let t=e.getElementsByTagName("script");return t[t.length-1]})()}},me=(r,e)=>{ue(e,de.currentScript(r)),e.isFileProtocol===void 0&&(e.isFileProtocol=/^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(r.location.protocol)),e.async=e.async||!1,e.fileAsync=e.fileAsync||!1,e.poll=e.poll||(e.isFileProtocol?1e3:1500),e.env=e.env||(r.location.hostname=="127.0.0.1"||r.location.hostname=="0.0.0.0"||r.location.hostname=="localhost"||r.location.port&&r.location.port.length>0||e.isFileProtocol?"development":"production");let t=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(r.location.hash);t&&(e.dumpLineNumbers=t[1]),e.useFileCache===void 0&&(e.useFileCache=!0),e.onReady===void 0&&(e.onReady=!0),e.relativeUrls&&(e.rewriteUrls="all")},ce={error:function(r){this._fireEvent("error",r)},warn:function(r){this._fireEvent("warn",r)},info:function(r){this._fireEvent("info",r)},debug:function(r){this._fireEvent("debug",r)},addListener:function(r){this._listeners.push(r)},removeListener:function(r){for(let e=0;e<this._listeners.length;e++)if(this._listeners[e]===r){this._listeners.splice(e,1);return}},_fireEvent:function(r,e){for(let t=0;t<this._listeners.length;t++){let i=this._listeners[t][r];i&&i(e)}},_listeners:[]};class bt{constructor(e,t){this.fileManagers=t||[],e=e||{};let i=["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"],n=[],l=n.concat(i);for(let s=0;s<l.length;s++){let u=l[s],a=e[u];a?this[u]=a.bind(e):s<n.length&&this.warn(`missing required function in environment - ${u}`)}}getFileManager(e,t,i,n,l){e||ce.warn("getFileManager called with no filename.. Please report this issue. continuing."),t===void 0&&ce.warn("getFileManager called with null directory.. Please report this issue. continuing.");let s=this.fileManagers;i.pluginManager&&(s=[].concat(s).concat(i.pluginManager.getFileManagers()));for(let u=s.length-1;u>=0;u--){let a=s[u];if(a[l?"supportsSync":"supports"](e,t,i,n))return a}return null}addFileManager(e){this.fileManagers.push(e)}clearFileManagers(){this.fileManagers=[]}}var Ze={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},ge={length:{m:1,cm:.01,mm:.001,in:.0254,px:.0254/96,pt:.0254/72,pc:.0254/72*12},duration:{s:1,ms:.001},angle:{rad:1/(2*Math.PI),deg:1/360,grad:1/400,turn:1}},li={colors:Ze,unitConversions:ge};class L{get type(){return""}constructor(){this.parent=null,this.visibilityBlocks=void 0,this.nodeVisible=void 0,this.rootNode=null,this.parsed=null,this.value=void 0,this._index=void 0,this._fileInfo=void 0}get currentFileInfo(){return this.fileInfo()}get index(){return this.getIndex()}setParent(e,t){function i(n){n&&n instanceof L&&(n.parent=t)}Array.isArray(e)?e.forEach(i):i(e)}getIndex(){return this._index||this.parent&&this.parent.getIndex()||0}fileInfo(){return this._fileInfo||this.parent&&this.parent.fileInfo()||{}}isRulesetLike(){return!1}toCSS(e){let t=[];return this.genCSS(e,{add:function(i,n,l){t.push(i)},isEmpty:function(){return t.length===0}}),t.join("")}genCSS(e,t){t.add(this.value)}accept(e){this.value=e.visit(this.value)}eval(e){return this}_operate(e,t,i,n){switch(t){case"+":return i+n;case"-":return i-n;case"*":return i*n;case"/":return i/n}}fround(e,t){let i=e&&e.numPrecision;return i?Number((t+2e-16).toFixed(i)):t}static compare(e,t){if(e.compare&&!(t.type==="Quoted"||t.type==="Anonymous"))return e.compare(t);if(t.compare)return-t.compare(e);if(e.type!==t.type)return;let i=e.value,n=t.value;if(!Array.isArray(i))return i===n?0:void 0;if(Array.isArray(n)&&i.length===n.length){for(let l=0;l<i.length;l++)if(L.compare(i[l],n[l])!==0)return;return 0}}static numericCompare(e,t){return e<t?-1:e===t?0:e>t?1:void 0}blocksVisibility(){return this.visibilityBlocks===void 0&&(this.visibilityBlocks=0),this.visibilityBlocks!==0}addVisibilityBlock(){this.visibilityBlocks===void 0&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1}removeVisibilityBlock(){this.visibilityBlocks===void 0&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1}ensureVisibility(){this.nodeVisible=!0}ensureInvisibility(){this.nodeVisible=!1}isVisible(){return this.nodeVisible}visibilityInfo(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}}copyVisibilityInfo(e){e&&(this.visibilityBlocks=e.visibilityBlocks,this.nodeVisible=e.nodeVisible)}}L.prototype.parse=void 0;class H extends L{get type(){return"Color"}constructor(e,t,i){super();let n=this;Array.isArray(e)?this.rgb=e:e.length>=6?(this.rgb=[],e.match(/.{2}/g).map(function(l,s){s<3?n.rgb.push(parseInt(l,16)):n.alpha=parseInt(l,16)/255})):(this.rgb=[],e.split("").map(function(l,s){s<3?n.rgb.push(parseInt(l+l,16)):n.alpha=parseInt(l+l,16)/255})),typeof this.alpha>"u"&&(this.alpha=typeof t=="number"?t:1),typeof i<"u"&&(this.value=i)}luma(){let e=this.rgb[0]/255,t=this.rgb[1]/255,i=this.rgb[2]/255;return e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4),i=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),.2126*e+.7152*t+.0722*i}genCSS(e,t){t.add(this.toCSS(e))}toCSS(e,t){let i=e&&e.compress&&!t,n,l,s,u=[];if(l=this.fround(e,this.alpha),this.value)if(this.value.indexOf("rgb")===0)l<1&&(s="rgba");else if(this.value.indexOf("hsl")===0)l<1?s="hsla":s="hsl";else return this.value;else l<1&&(s="rgba");switch(s){case"rgba":u=this.rgb.map(function(a){return Le(Math.round(a),255)}).concat(Le(l,1));break;case"hsla":u.push(Le(l,1));case"hsl":n=this.toHSL(),u=[this.fround(e,n.h),`${this.fround(e,n.s*100)}%`,`${this.fround(e,n.l*100)}%`].concat(u)}if(s)return`${s}(${u.join(`,${i?"":" "}`)})`;if(n=this.toRGB(),i){let a=n.split("");a[1]===a[2]&&a[3]===a[4]&&a[5]===a[6]&&(n=`#${a[1]}${a[3]}${a[5]}`)}return n}operate(e,t,i){let n=new Array(3),l=this.alpha*(1-i.alpha)+i.alpha;for(let s=0;s<3;s++)n[s]=this._operate(e,t,this.rgb[s],i.rgb[s]);return new H(n,l)}toRGB(){return wt(this.rgb)}toHSL(){let e=this.rgb[0]/255,t=this.rgb[1]/255,i=this.rgb[2]/255,n=this.alpha,l=Math.max(e,t,i),s=Math.min(e,t,i),u,a,h=(l+s)/2,d=l-s;if(l===s)u=a=0;else{switch(a=h>.5?d/(2-l-s):d/(l+s),l){case e:u=(t-i)/d+(t<i?6:0);break;case t:u=(i-e)/d+2;break;case i:u=(e-t)/d+4;break}u/=6}return{h:u*360,s:a,l:h,a:n}}toHSV(){let e=this.rgb[0]/255,t=this.rgb[1]/255,i=this.rgb[2]/255,n=this.alpha,l=Math.max(e,t,i),s=Math.min(e,t,i),u,a,h=l,d=l-s;if(l===0?a=0:a=d/l,l===s)u=0;else{switch(l){case e:u=(t-i)/d+(t<i?6:0);break;case t:u=(i-e)/d+2;break;case i:u=(e-t)/d+4;break}u/=6}return{h:u*360,s:a,v:h,a:n}}toARGB(){return wt([this.alpha*255].concat(this.rgb))}compare(e){return e.rgb&&e.rgb[0]===this.rgb[0]&&e.rgb[1]===this.rgb[1]&&e.rgb[2]===this.rgb[2]&&e.alpha===this.alpha?0:void 0}static fromKeyword(e){let t,i=e.toLowerCase();if(Ze.hasOwnProperty(i)?t=new H(Ze[i].slice(1)):i==="transparent"&&(t=new H([0,0,0],0)),t)return t.value=e,t}}function Le(r,e){return Math.min(Math.max(r,0),e)}function wt(r){return`#${r.map(function(e){return e=Le(Math.round(e),255),(e<16?"0":"")+e.toString(16)}).join("")}`}class fe extends L{get type(){return"Paren"}constructor(e){super(),this.value=e,this.noSpacing=void 0}genCSS(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")}eval(e){let t=new fe(this.value.eval(e));return this.noSpacing&&(t.noSpacing=!0),t}}let ai={"":!0," ":!0,"|":!0};class Qe extends L{get type(){return"Combinator"}constructor(e){super(),e===" "?(this.value=" ",this.emptyOrWhitespace=!0):(this.value=e?e.trim():"",this.emptyOrWhitespace=this.value==="")}genCSS(e,t){let i=e.compress||ai[this.value]?"":" ";t.add(i+this.value+i)}}class ie extends L{get type(){return"Element"}constructor(e,t,i,n,l,s){super(),this.combinator=e instanceof Qe?e:new Qe(e),typeof t=="string"?this.value=t.trim():t?this.value=t:this.value="",this.isVariable=i,this._index=n,this._fileInfo=l,this.copyVisibilityInfo(s),this.setParent(this.combinator,this)}accept(e){let t=this.value;this.combinator=e.visit(this.combinator),typeof t=="object"&&(this.value=e.visit(t))}eval(e){return new ie(this.combinator,this.value.eval?this.value.eval(e):this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())}clone(){return new ie(this.combinator,this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())}genCSS(e,t){t.add(this.toCSS(e),this.fileInfo(),this.getIndex())}toCSS(e){let t=e||{},i=this.value,n=t.firstSelector;return i instanceof fe&&(t.firstSelector=!0),i=i.toCSS?i.toCSS(t):i,t.firstSelector=n,i===""&&this.combinator.value.charAt(0)==="&"?"":this.combinator.toCSS(t)+i}}let oe={ALWAYS:0,PARENS_DIVISION:1,PARENS:2},Me={OFF:0,LOCAL:1,ALL:2};function St(r){return Object.prototype.toString.call(r).slice(8,-1)}function Ct(r){return St(r)==="Array"}function oi(r){if(St(r)!=="Object")return!1;let e=Object.getPrototypeOf(r);return!!e&&e.constructor===Object&&e===Object.prototype}function ui(r,e,t,i,n){let l={}.propertyIsEnumerable.call(i,e)?"enumerable":"nonenumerable";l==="enumerable"&&(r[e]=t),n&&l==="nonenumerable"&&Object.defineProperty(r,e,{value:t,enumerable:!1,writable:!0,configurable:!0})}function Ve(r,e={}){if(Ct(r))return r.map(n=>Ve(n,e));if(!oi(r))return r;let t=Object.getOwnPropertyNames(r),i=Object.getOwnPropertySymbols(r);return[...t,...i].reduce((n,l)=>{if(Ct(e.props)&&!e.props.includes(l))return n;let s=r[l],u=Ve(s,e);return ui(n,l,u,r,e.nonenumerable),n},{})}function De(r,e){let t=r+1,i=null,n=-1;for(;--t>=0&&e.charAt(t)!==`
2
+ `;)n++;return typeof r=="number"&&(i=(e.slice(0,r).match(/\n/g)||"").length),{line:i,column:n}}function K(r){let e,t=r.length,i=new Array(t);for(e=0;e<t;e++)i[e]=r[e];return i}function Ye(r){let e={};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e}function xt(r,e){let t=e||{};if(!e._defaults){t={};let i=Ve(r);t._defaults=i;let n=e?Ve(e):{};Object.assign(t,i,n)}return t}function Pe(r,e){if(e&&e._defaults)return e;let t=xt(r,e);if(t.strictMath&&(t.math=oe.PARENS),t.relativeUrls&&(t.rewriteUrls=Me.ALL),typeof t.math=="string")switch(t.math.toLowerCase()){case"always":t.math=oe.ALWAYS;break;case"parens-division":t.math=oe.PARENS_DIVISION;break;case"strict":case"parens":t.math=oe.PARENS;break;default:t.math=oe.PARENS}if(typeof t.rewriteUrls=="string")switch(t.rewriteUrls.toLowerCase()){case"off":t.rewriteUrls=Me.OFF;break;case"local":t.rewriteUrls=Me.LOCAL;break;case"all":t.rewriteUrls=Me.ALL;break}return t}function ci(r,e){for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r}function Xe(r,e=[]){for(let t=0,i=r.length;t<i;t++){let n=r[t];Array.isArray(n)?Xe(n,e):n!==void 0&&e.push(n)}return e}function et(r){return r==null}var fi=Object.freeze({__proto__:null,getLocation:De,copyArray:K,clone:Ye,defaults:xt,copyOptions:Pe,merge:ci,flattenArray:Xe,isNullOrUndefined:et});let At=/(<anonymous>|Function):(\d+):(\d+)/,V=function(r,e,t){Error.call(this);let i=r.filename||t;if(this.message=r.message,this.stack=r.stack,this.type=r.type||"Syntax",e&&i){let l=e.contents[i],s=De(r.index,l);var n=s.line;let u=s.column,a=r.call&&De(r.call,l).line,h=l?l.split(`
3
+ `):"";if(this.filename=i,this.index=r.index,this.line=typeof n=="number"?n+1:null,this.column=u,!this.line&&this.stack){let d=this.stack.match(At),m=new Function("a","throw new Error()"),v=0;try{m()}catch(R){let A=R.stack.match(At);v=1-parseInt(A[2])}d&&(d[2]&&(this.line=parseInt(d[2])+v),d[3]&&(this.column=parseInt(d[3])))}this.callLine=a+1,this.callExtract=h[a],this.extract=[h[this.line-2],h[this.line-1],h[this.line]]}};if(typeof Object.create>"u"){let r=function(){};r.prototype=Error.prototype,V.prototype=new r}else V.prototype=Object.create(Error.prototype);V.prototype.constructor=V,V.prototype.toString=function(r){r=r||{};let e=(this.type??"").toLowerCase().includes("warning"),t=e?this.type:`${this.type}Error`,i=e?"yellow":"red",n="",l=this.extract||[],s=[],u=function(a){return a};if(r.stylize){let a=typeof r.stylize;if(a!=="function")throw Error(`options.stylize should be a function, got a ${a}!`);u=r.stylize}if(this.line!==null){if(!e&&typeof l[0]=="string"&&s.push(u(`${this.line-1} ${l[0]}`,"grey")),typeof l[1]=="string"){let a=`${this.line} `;l[1]&&(a+=l[1].slice(0,this.column)+u(u(u(l[1].slice(this.column,this.column+1),"bold")+l[1].slice(this.column+1),"red"),"inverse")),s.push(a)}!e&&typeof l[2]=="string"&&s.push(u(`${this.line+1} ${l[2]}`,"grey")),s=`${s.join(`
4
4
  `)+u("","reset")}
5
5
  `}return n+=u(`${t}: ${this.message}`,i),this.filename&&(n+=u(" in ",i)+this.filename),this.line&&(n+=u(` on line ${this.line}, column ${this.column+1}:`,"grey")),n+=`
6
- ${s}`,this.callLine&&(n+=`${u("from ",i)+(this.filename||"")}/n`,n+=`${u(this.callLine,"grey")} ${this.callExtract}/n`),n};let ti={visitDeeper:!0},bt=!1;function De(r){return r}function wt(r,e){let t,i;for(t in r)switch(i=r[t],typeof i){case"function":i.prototype&&i.prototype.type&&(i.prototype.typeIndex=e++);break;case"object":e=wt(i,e);break}return e}class me{constructor(e){this._implementation=e,this._visitInCache={},this._visitOutCache={},bt||(wt(S,1),bt=!0)}visit(e){if(!e)return e;let t=e.typeIndex;if(!t)return e.value&&e.value.typeIndex&&this.visit(e.value),e;let i=this._implementation,n=this._visitInCache[t],l=this._visitOutCache[t],s=ti,u;if(s.visitDeeper=!0,n||(u=`visit${e.type}`,n=i[u]||De,l=i[`${u}Out`]||De,this._visitInCache[t]=n,this._visitOutCache[t]=l),n!==De){let a=n.call(i,e,s);e&&i.isReplacing&&(e=a)}if(s.visitDeeper&&e)if(e.length)for(let a=0,p=e.length;a<p;a++)e[a].accept&&e[a].accept(this);else e.accept&&e.accept(this);return l!=De&&l.call(i,e),e}visitArray(e,t){if(!e)return e;let i=e.length,n;if(t||!this._implementation.isReplacing){for(n=0;n<i;n++)this.visit(e[n]);return e}let l=[];for(n=0;n<i;n++){let s=this.visit(e[n]);s!==void 0&&(s.splice?s.length&&this.flatten(s,l):l.push(s))}return l}flatten(e,t){t||(t=[]);let i,n,l,s,u,a;for(n=0,i=e.length;n<i;n++)if(l=e[n],l!==void 0){if(!l.splice){t.push(l);continue}for(u=0,s=l.length;u<s;u++)a=l[u],a!==void 0&&(a.splice?a.length&&this.flatten(a,t):t.push(a))}return t}}let V={},St=function(e,t,i){if(e)for(let n=0;n<i.length;n++)Object.prototype.hasOwnProperty.call(e,i[n])&&(t[i[n]]=e[i[n]])},ii=["paths","rewriteUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","mime","useFileCache","processImports","pluginManager","quiet","quietDeprecations"];V.Parse=function(r){St(r,this,ii),typeof this.paths=="string"&&(this.paths=[this.paths])};let si=["paths","compress","math","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope","rewriteUrls"];V.Eval=function(r,e){St(r,this,si),typeof this.paths=="string"&&(this.paths=[this.paths]),this.frames=e||[],this.importantScope=this.importantScope||[]},V.Eval.prototype.enterCalc=function(){this.calcStack||(this.calcStack=[]),this.calcStack.push(!0),this.inCalc=!0},V.Eval.prototype.exitCalc=function(){this.calcStack.pop(),this.calcStack.length||(this.inCalc=!1)},V.Eval.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},V.Eval.prototype.outOfParenthesis=function(){this.parensStack.pop()},V.Eval.prototype.inCalc=!1,V.Eval.prototype.mathOn=!0,V.Eval.prototype.isMathOn=function(r){return!this.mathOn||r==="/"&&this.math!==le.ALWAYS&&(!this.parensStack||!this.parensStack.length)?!1:this.math>le.PARENS_DIVISION?this.parensStack&&this.parensStack.length:!0},V.Eval.prototype.pathRequiresRewrite=function(r){return(this.rewriteUrls===Me.LOCAL?Xe:Ct)(r)},V.Eval.prototype.rewritePath=function(r,e){let t;return e=e||"",t=this.normalizePath(e+r),Xe(r)&&Ct(e)&&Xe(t)===!1&&(t=`./${t}`),t},V.Eval.prototype.normalizePath=function(r){let e=r.split("/").reverse(),t;for(r=[];e.length!==0;)switch(t=e.pop(),t){case".":break;case"..":r.length===0||r[r.length-1]===".."?r.push(t):r.pop();break;default:r.push(t);break}return r.join("/")};function Ct(r){return!/^(?:[a-z-]+:|\/|#)/i.test(r)}function Xe(r){return r.charAt(0)==="."}class ni{constructor(e){this.imports=[],this.variableImports=[],this._onSequencerEmpty=e,this._currentDepth=0}addImport(e){let t=this,i={callback:e,args:null,isReady:!1};return this.imports.push(i),function(){i.args=Array.prototype.slice.call(arguments,0),i.isReady=!0,t.tryRun()}}addVariableImport(e){this.variableImports.push(e)}tryRun(){this._currentDepth++;try{for(;;){for(;this.imports.length>0;){let t=this.imports[0];if(!t.isReady)return;this.imports=this.imports.slice(1),t.callback.apply(null,t.args)}if(this.variableImports.length===0)break;let e=this.variableImports[0];this.variableImports=this.variableImports.slice(1),e()}}finally{this._currentDepth--}this._currentDepth===0&&this._onSequencerEmpty&&this._onSequencerEmpty()}}let xt=function(r,e){this._visitor=new me(this),this._importer=r,this._finish=e,this.context=new V.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new ni(this._onSequencerEmpty.bind(this))};xt.prototype={isReplacing:!1,run:function(r){try{this._visitor.visit(r)}catch(e){this.error=e}this.isFinished=!0,this._sequencer.tryRun()},_onSequencerEmpty:function(){this.isFinished&&this._finish(this.error)},visitImport:function(r,e){let t=r.options.inline;if(!r.css||t){let i=new V.Eval(this.context,W(this.context.frames)),n=i.frames[0];this.importCount++,r.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,r,i,n)):this.processImportNode(r,i,n)}e.visitDeeper=!1},processImportNode:function(r,e,t){let i,n=r.options.inline;try{i=r.evalForImport(e)}catch(l){l.filename||(l.index=r.getIndex(),l.filename=r.fileInfo().filename),r.css=!0,r.error=l}if(i&&(!i.css||n)){i.options.multiple&&(e.importMultiple=!0);let l=i.css===void 0;for(let a=0;a<t.rules.length;a++)if(t.rules[a]===r){t.rules[a]=i;break}let s=this.onImported.bind(this,i,e),u=this._sequencer.addImport(s);this._importer.push(i.getPath(),l,i.fileInfo(),i.options,u)}else this.importCount--,this.isFinished&&this._sequencer.tryRun()},onImported:function(r,e,t,i,n,l){t&&(t.filename||(t.index=r.getIndex(),t.filename=r.fileInfo().filename),this.error=t);let s=this,u=r.options.inline,a=r.options.isPlugin,p=r.options.optional,d=n||l in s.recursionDetector;if(e.importMultiple||(d?r.skip=!0:r.skip=function(){return l in s.onceFileDetectionMap?!0:(s.onceFileDetectionMap[l]=!0,!1)}),!l&&p&&(r.skip=!0),i&&(r.root=i,r.importedFilename=l,!u&&!a&&(e.importMultiple||!d))){s.recursionDetector[l]=!0;let g=this.context;this.context=e;try{this._visitor.visit(i)}catch(v){this.error=v}this.context=g}s.importCount--,s.isFinished&&s._sequencer.tryRun()},visitDeclaration:function(r,e){r.value.type==="DetachedRuleset"?this.context.frames.unshift(r):e.visitDeeper=!1},visitDeclarationOut:function(r){r.value.type==="DetachedRuleset"&&this.context.frames.shift()},visitAtRule:function(r,e){r.value?this.context.frames.unshift(r):r.declarations&&r.declarations.length?r.isRooted?this.context.frames.unshift(r):this.context.frames.unshift(r.declarations[0]):r.rules&&r.rules.length&&this.context.frames.unshift(r)},visitAtRuleOut:function(r){this.context.frames.shift()},visitMixinDefinition:function(r,e){this.context.frames.unshift(r)},visitMixinDefinitionOut:function(r){this.context.frames.shift()},visitRuleset:function(r,e){this.context.frames.unshift(r)},visitRulesetOut:function(r){this.context.frames.shift()},visitMedia:function(r,e){this.context.frames.unshift(r.rules[0])},visitMediaOut:function(r){this.context.frames.shift()}};class ri{constructor(e){this.visible=e}run(e){this.visit(e)}visitArray(e){if(!e)return e;let t=e.length,i;for(i=0;i<t;i++)this.visit(e[i]);return e}visit(e){return e&&(e.constructor===Array?this.visitArray(e):(!e.blocksVisibility||e.blocksVisibility()||(this.visible?e.ensureVisibility():e.ensureInvisibility(),e.accept(this)),e))}}class li{constructor(){this._visitor=new me(this),this.contexts=[],this.allExtendsStack=[[]]}run(e){return e=this._visitor.visit(e),e.allExtends=this.allExtendsStack[0],e}visitDeclaration(e,t){t.visitDeeper=!1}visitMixinDefinition(e,t){t.visitDeeper=!1}visitRuleset(e,t){if(e.root)return;let i,n,l,s=[],u,a=e.rules,p=a?a.length:0;for(i=0;i<p;i++)e.rules[i]instanceof S.Extend&&(s.push(a[i]),e.extendOnEveryPath=!0);let d=e.paths;for(i=0;i<d.length;i++){let g=d[i],v=g[g.length-1],k=v.extendList;for(u=k?W(k).concat(s):s,u&&(u=u.map(function(A){return A.clone()})),n=0;n<u.length;n++)this.foundExtends=!0,l=u[n],l.findSelfSelectors(g),l.ruleset=e,n===0&&(l.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(l)}this.contexts.push(e.selectors)}visitRulesetOut(e){e.root||(this.contexts.length=this.contexts.length-1)}visitMedia(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)}visitMediaOut(e){this.allExtendsStack.length=this.allExtendsStack.length-1}visitAtRule(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)}visitAtRuleOut(e){this.allExtendsStack.length=this.allExtendsStack.length-1}}class ai{constructor(){this._visitor=new me(this)}run(e){let t=new li;if(this.extendIndices={},t.run(e),!t.foundExtends)return e;e.allExtends=e.allExtends.concat(this.doExtendChaining(e.allExtends,e.allExtends)),this.allExtendsStack=[e.allExtends];let i=this._visitor.visit(e);return this.checkExtendsForNonMatched(e.allExtends),i}checkExtendsForNonMatched(e){let t=this.extendIndices;e.filter(function(i){return!i.hasFoundMatches&&i.parent_ids.length==1}).forEach(function(i){let n="_unknown_";try{n=i.selector.toCSS({})}catch{}t[`${i.index} ${n}`]||(t[`${i.index} ${n}`]=!0,ue.warn(`WARNING: extend '${n}' has no matches`))})}doExtendChaining(e,t,i){let n,l,s,u=[],a,p=this,d,g,v,k;for(i=i||0,n=0;n<e.length;n++)for(l=0;l<t.length;l++)g=e[n],v=t[l],!(g.parent_ids.indexOf(v.object_id)>=0)&&(d=[v.selfSelectors[0]],s=p.findMatch(g,d),s.length&&(g.hasFoundMatches=!0,g.selfSelectors.forEach(function(A){let y=v.visibilityInfo();a=p.extendSelector(s,d,A,g.isVisible()),k=new S.Extend(v.selector,v.option,0,v.fileInfo(),y),k.selfSelectors=a,a[a.length-1].extendList=[k],u.push(k),k.ruleset=v.ruleset,k.parent_ids=k.parent_ids.concat(v.parent_ids,g.parent_ids),v.firstExtendOnThisSelectorPath&&(k.firstExtendOnThisSelectorPath=!0,v.ruleset.paths.push(a))})));if(u.length){if(this.extendChainCount++,i>100){let A="{unable to calculate}",y="{unable to calculate}";try{A=u[0].selfSelectors[0].toCSS(),y=u[0].selector.toCSS()}catch{}throw{message:`extend circular reference detected. One of the circular extends is currently:${A}:extend(${y})`}}return u.concat(p.doExtendChaining(u,t,i+1))}else return u}visitDeclaration(e,t){t.visitDeeper=!1}visitMixinDefinition(e,t){t.visitDeeper=!1}visitSelector(e,t){t.visitDeeper=!1}visitRuleset(e,t){if(e.root)return;let i,n=this.allExtendsStack[this.allExtendsStack.length-1],l=[],s=e.paths,u=s.length;for(let a=0;a<n.length;a++){let p=n[a];for(let d=0;d<u;d++){let g=s[d];if(e.extendOnEveryPath)continue;let v=g[g.length-1].extendList;if(!(v&&v.length)&&(i=this.findMatch(p,g),i.length)){p.hasFoundMatches=!0;let k=p.selfSelectors,A=p.isVisible();for(let y=0;y<k.length;y++)l.push(this.extendSelector(i,g,k[y],A))}}}e.paths=s.concat(l)}findMatch(e,t){let i,n,l,s,u,a,p=e.selector.elements,d=[],g,v=[];for(i=0;i<t.length;i++)for(n=t[i],l=0;l<n.elements.length;l++)for(s=n.elements[l],(e.allowBefore||i===0&&l===0)&&d.push({pathIndex:i,index:l,matched:0,initialCombinator:s.combinator}),a=0;a<d.length;a++)g=d[a],u=s.combinator.value,u===""&&l===0&&(u=" "),!this.isElementValuesEqual(p[g.matched].value,s.value)||g.matched>0&&p[g.matched].combinator.value!==u?g=null:g.matched++,g&&(g.finished=g.matched===p.length,g.finished&&!e.allowAfter&&(l+1<n.elements.length||i+1<t.length)&&(g=null)),g?g.finished&&(g.length=p.length,g.endPathIndex=i,g.endPathElementIndex=l+1,d.length=0,v.push(g)):(d.splice(a,1),a--);return v}isElementValuesEqual(e,t){if(typeof e=="string"||typeof t=="string")return e===t;if(e instanceof S.Attribute)return e.op!==t.op||e.key!==t.key?!1:!e.value||!t.value?!(e.value||t.value):(e=e.value.value||e.value,t=t.value.value||t.value,e===t);if(e=e.value,t=t.value,e instanceof S.Selector){if(!(t instanceof S.Selector)||e.elements.length!==t.elements.length)return!1;for(let i=0;i<e.elements.length;i++)if(e.elements[i].combinator.value!==t.elements[i].combinator.value&&(i!==0||(e.elements[i].combinator.value||" ")!==(t.elements[i].combinator.value||" "))||!this.isElementValuesEqual(e.elements[i].value,t.elements[i].value))return!1;return!0}return!1}extendSelector(e,t,i,n){let l=0,s=0,u=[],a,p,d,g,v;for(a=0;a<e.length;a++)g=e[a],p=t[g.pathIndex],d=new S.Element(g.initialCombinator,i.elements[0].value,i.elements[0].isVariable,i.elements[0].getIndex(),i.elements[0].fileInfo()),g.pathIndex>l&&s>0&&(u[u.length-1].elements=u[u.length-1].elements.concat(t[l].elements.slice(s)),s=0,l++),v=p.elements.slice(s,g.index).concat([d]).concat(i.elements.slice(1)),l===g.pathIndex&&a>0?u[u.length-1].elements=u[u.length-1].elements.concat(v):(u=u.concat(t.slice(l,g.pathIndex)),u.push(new S.Selector(v))),l=g.endPathIndex,s=g.endPathElementIndex,s>=t[l].elements.length&&(s=0,l++);return l<t.length&&s>0&&(u[u.length-1].elements=u[u.length-1].elements.concat(t[l].elements.slice(s)),l++),u=u.concat(t.slice(l,t.length)),u=u.map(function(k){let A=k.createDerived(k.elements);return n?A.ensureVisibility():A.ensureInvisibility(),A}),u}visitMedia(e,t){let i=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);i=i.concat(this.doExtendChaining(i,e.allExtends)),this.allExtendsStack.push(i)}visitMediaOut(e){let t=this.allExtendsStack.length-1;this.allExtendsStack.length=t}visitAtRule(e,t){let i=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);i=i.concat(this.doExtendChaining(i,e.allExtends)),this.allExtendsStack.push(i)}visitAtRuleOut(e){let t=this.allExtendsStack.length-1;this.allExtendsStack.length=t}}class oi{constructor(){this.contexts=[[]],this._visitor=new me(this)}run(e){return this._visitor.visit(e)}visitDeclaration(e,t){t.visitDeeper=!1}visitMixinDefinition(e,t){t.visitDeeper=!1}visitRuleset(e,t){let i=this.contexts[this.contexts.length-1],n=[],l;this.contexts.push(n),e.root||(l=e.selectors,l&&(l=l.filter(function(s){return s.getIsOutput()}),e.selectors=l.length?l:l=null,l&&e.joinSelectors(n,i,l)),l||(e.rules=null),e.paths=n)}visitRulesetOut(e){this.contexts.length=this.contexts.length-1}visitMedia(e,t){let i=this.contexts[this.contexts.length-1];e.rules[0].root=i.length===0||i[0].multiMedia}visitAtRule(e,t){let i=this.contexts[this.contexts.length-1];e.declarations&&e.declarations.length?e.declarations[0].root=i.length===0||i[0].multiMedia:e.rules&&e.rules.length&&(e.rules[0].root=e.isRooted||i.length===0||null)}}function At(r){return`/* line ${r.debugInfo.lineNumber}, ${r.debugInfo.fileName} */
7
- `}function It(r){let e=r.debugInfo.fileName;return/^[a-z]+:\/\//i.test(e)||(e=`file://${e}`),`@media -sass-debug-info{filename{font-family:${e.replace(/([.:/\\])/g,function(t){return t=="\\"&&(t="/"),`\\${t}`})}}line{font-family:\\00003${r.debugInfo.lineNumber}}}
8
- `}function kt(r,e,t){let i="";if(r.dumpLineNumbers&&!r.compress&&e.debugInfo)switch(r.dumpLineNumbers){case"comments":i=At(e);break;case"mediaquery":i=It(e);break;case"all":i=At(e)+(t||"")+It(e);break}return i}class Be extends R{get type(){return"Comment"}constructor(e,t,i,n){super(),this.value=e,this.isLineComment=t,this._index=i,this._fileInfo=n,this.allowRoot=!0,this.debugInfo=void 0}genCSS(e,t){this.debugInfo&&t.add(kt(e,this),this.fileInfo(),this.getIndex()),t.add(this.value)}isSilent(e){let t=e.compress&&this.value[2]!=="!";return this.isLineComment||t}}class Pe extends R{get type(){return"Unit"}constructor(e,t,i){super(),this.numerator=e?W(e).sort():[],this.denominator=t?W(t).sort():[],i?this.backupUnit=i:e&&e.length&&(this.backupUnit=e[0])}clone(){return new Pe(W(this.numerator),W(this.denominator),this.backupUnit)}genCSS(e,t){let i=e&&e.strictUnits;this.numerator.length===1?t.add(this.numerator[0]):!i&&this.backupUnit?t.add(this.backupUnit):!i&&this.denominator.length&&t.add(this.denominator[0])}toString(){let e,t=this.numerator.join("*");for(e=0;e<this.denominator.length;e++)t+=`/${this.denominator[e]}`;return t}compare(e){return this.is(e.toString())?0:void 0}is(e){return this.toString().toUpperCase()===e.toUpperCase()}isLength(){return RegExp("^(px|em|ex|ch|rem|in|cm|mm|pc|pt|ex|vw|vh|vmin|vmax)$","gi").test(this.toCSS({}))}isEmpty(){return this.numerator.length===0&&this.denominator.length===0}isSingular(){return this.numerator.length<=1&&this.denominator.length===0}map(e){let t;for(t=0;t<this.numerator.length;t++)this.numerator[t]=e(this.numerator[t],!1);for(t=0;t<this.denominator.length;t++)this.denominator[t]=e(this.denominator[t],!0)}usedUnits(){let e,t={},i,n;i=function(l){return e.hasOwnProperty(l)&&!t[n]&&(t[n]=l),l};for(n in de)de.hasOwnProperty(n)&&(e=de[n],this.map(i));return t}cancel(){let e={},t,i;for(i=0;i<this.numerator.length;i++)t=this.numerator[i],e[t]=(e[t]||0)+1;for(i=0;i<this.denominator.length;i++)t=this.denominator[i],e[t]=(e[t]||0)-1;this.numerator=[],this.denominator=[];for(t in e)if(e.hasOwnProperty(t)){let n=e[t];if(n>0)for(i=0;i<n;i++)this.numerator.push(t);else if(n<0)for(i=0;i<-n;i++)this.denominator.push(t)}this.numerator.sort(),this.denominator.sort()}}class E extends R{get type(){return"Dimension"}constructor(e,t){if(super(),this.value=parseFloat(e),isNaN(this.value))throw new Error("Dimension is not a number.");this.unit=t&&t instanceof Pe?t:new Pe(t?[t]:void 0),this.setParent(this.unit,this)}accept(e){this.unit=e.visit(this.unit)}eval(e){return this}toColor(){let e=this.value;return new T([e,e,e])}genCSS(e,t){if(e&&e.strictUnits&&!this.unit.isSingular())throw new Error(`Multiple units in dimension. Correct the units or use the unit function. Bad unit: ${this.unit.toString()}`);let i=this.fround(e,this.value),n=String(i);if(i!==0&&i<1e-6&&i>-1e-6&&(n=i.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(i===0&&this.unit.isLength()){t.add(n);return}i>0&&i<1&&(n=n.slice(1))}t.add(n),this.unit.genCSS(e,t)}operate(e,t,i){let n=this._operate(e,t,this.value,i.value),l=this.unit.clone();if(t==="+"||t==="-"){if(l.numerator.length===0&&l.denominator.length===0)l=i.unit.clone(),this.unit.backupUnit&&(l.backupUnit=this.unit.backupUnit);else if(!(i.unit.numerator.length===0&&l.denominator.length===0)){if(i=i.convertTo(this.unit.usedUnits()),e.strictUnits&&i.unit.toString()!==l.toString())throw new Error(`Incompatible units. Change the units or use the unit function. Bad units: '${l.toString()}' and '${i.unit.toString()}'.`);n=this._operate(e,t,this.value,i.value)}}else t==="*"?(l.numerator=l.numerator.concat(i.unit.numerator).sort(),l.denominator=l.denominator.concat(i.unit.denominator).sort(),l.cancel()):t==="/"&&(l.numerator=l.numerator.concat(i.unit.denominator).sort(),l.denominator=l.denominator.concat(i.unit.numerator).sort(),l.cancel());return new E(n,l)}compare(e){let t,i;if(e instanceof E){if(this.unit.isEmpty()||e.unit.isEmpty())t=this,i=e;else if(t=this.unify(),i=e.unify(),t.unit.compare(i.unit)!==0)return;return R.numericCompare(t.value,i.value)}}unify(){return this.convertTo({length:"px",duration:"s",angle:"rad"})}convertTo(e){let t=this.value,i=this.unit.clone(),n,l,s,u,a={},p;if(typeof e=="string"){for(n in de)de[n].hasOwnProperty(e)&&(a={},a[n]=e);e=a}p=function(d,g){return s.hasOwnProperty(d)?(g?t=t/(s[d]/s[u]):t=t*(s[d]/s[u]),u):d};for(l in e)e.hasOwnProperty(l)&&(u=e[l],s=de[l],i.map(p));return i.cancel(),new E(t,i)}}class B extends R{get type(){return"Anonymous"}constructor(e,t,i,n,l,s){super(),this.value=e,this._index=t,this._fileInfo=i,this.mapLines=n,this.rulesetLike=typeof l>"u"?!1:l,this.allowRoot=!0,this.copyVisibilityInfo(s)}eval(){return new B(this.value,this._index,this._fileInfo,this.mapLines,this.rulesetLike,this.visibilityInfo())}compare(e){return e.toCSS&&this.toCSS({})===e.toCSS({})?0:void 0}isRulesetLike(){return this.rulesetLike}genCSS(e,t){this.nodeVisible=!!this.value,this.nodeVisible&&t.add(this.value,this._fileInfo,this._index,this.mapLines)}}class K extends R{get type(){return"Expression"}constructor(e,t){if(super(),this.value=e,this.noSpacing=t,this.parens=void 0,this.parensInOp=void 0,!e)throw new Error("Expression requires an array parameter")}accept(e){this.value=e.visitArray(this.value)}eval(e){let t=this.noSpacing,i,n=e.isMathOn(),l=this.parens,s=!1;l&&e.inParenthesis();let u=this.value;if(u.length>1)i=new K(u.map(function(a){return a.eval?a.eval(e):a}),this.noSpacing);else if(u.length===1){let a=u[0];a.parens&&!a.parensInOp&&!e.inCalc&&(s=!0),i=u[0].eval(e)}else i=this;return l&&e.outOfParenthesis(),this.parens&&this.parensInOp&&!n&&!s&&!(i instanceof E)&&(i=new ce(i)),i.noSpacing=i.noSpacing||t,i}genCSS(e,t){let i=this.value;for(let n=0;n<i.length;n++)i[n].genCSS(e,t),!this.noSpacing&&n+1<i.length&&(!(i[n+1]instanceof B)||i[n+1]instanceof B&&i[n+1].value!==",")&&t.add(" ")}throwAwayComments(){this.value=this.value.filter(function(e){return!(e instanceof Be)})}}class ie extends R{get type(){return"Value"}constructor(e){if(super(),!e)throw new Error("Value requires an array argument");Array.isArray(e)?this.value=e:this.value=[e]}accept(e){this.value&&(this.value=e.visitArray(this.value))}eval(e){let t=this.value;return t.length===1?t[0].eval(e):new ie(t.map(function(i){return i.eval(e)}))}genCSS(e,t){let i=this.value,n;for(n=0;n<i.length;n++)i[n].genCSS(e,t),n+1<i.length&&t.add(e&&e.compress?",":", ")}}function $t(r){if(!r)return;let e={},t=[];for(let i=0;i<r.length;i++){let n=r[i];if(n.merge){let l=n.name;e[l]?r.splice(i--,1):t.push(e[l]=[]),e[l].push(n)}}t.forEach(i=>{if(i.length>0){let n=i[0],l=[],s=[new K(l)];i.forEach(u=>{u.merge==="+"&&l.length>0&&s.push(new K(l=[])),l.push(u.value),n.important=n.important||u.important}),n.value=new ie(s)}})}class ui{constructor(e){this._visitor=new me(this),this._context=e}containsSilentNonBlockedChild(e){let t;if(!e)return!1;for(let i=0;i<e.length;i++)if(t=e[i],t.isSilent&&t.isSilent(this._context)&&!t.blocksVisibility())return!0;return!1}keepOnlyVisibleChilds(e){e&&e.rules&&(e.rules=e.rules.filter(t=>t.isVisible()))}isEmpty(e){return e&&e.rules?e.rules.length===0:!0}hasVisibleSelector(e){return e&&e.paths?e.paths.length>0:!1}resolveVisibility(e){if(!e.blocksVisibility())return this.isEmpty(e)?void 0:e;let t=e.rules[0];if(this.keepOnlyVisibleChilds(t),!this.isEmpty(t))return e.ensureVisibility(),e.removeVisibilityBlock(),e}isVisibleRuleset(e){return e.firstRoot?!0:!(this.isEmpty(e)||!e.root&&!this.hasVisibleSelector(e))}}let Et=function(r){this._visitor=new me(this),this._context=r,this.utils=new ui(r)};Et.prototype={isReplacing:!0,run:function(r){return this._visitor.visit(r)},visitDeclaration:function(r,e){if(!(r.blocksVisibility()||r.variable))return r},visitMixinDefinition:function(r,e){r.frames=[]},visitExtend:function(r,e){},visitComment:function(r,e){if(!(r.blocksVisibility()||r.isSilent(this._context)))return r},visitMedia:function(r,e){let t=r.rules[0].rules;return r.accept(this._visitor),e.visitDeeper=!1,this.utils.resolveVisibility(r,t)},visitImport:function(r,e){if(!r.blocksVisibility())return r},visitAtRule:function(r,e){return r.rules&&r.rules.length?this.visitAtRuleWithBody(r,e):this.visitAtRuleWithoutBody(r,e)},visitAnonymous:function(r,e){if(!r.blocksVisibility())return r.accept(this._visitor),r},visitAtRuleWithBody:function(r,e){function t(l){let s=l.rules;return s.length===1&&(!s[0].paths||s[0].paths.length===0)}function i(l){let s=l.rules;return t(l)?s[0].rules:s}let n=i(r);return r.accept(this._visitor),e.visitDeeper=!1,this.utils.isEmpty(r)||this._mergeRules(r.rules[0].rules),this.utils.resolveVisibility(r,n)},visitAtRuleWithoutBody:function(r,e){if(!r.blocksVisibility()){if(r.name==="@charset"){if(this.charset){if(r.debugInfo){let t=new S.Comment(`/* ${r.toCSS(this._context).replace(/\n/g,"")} */
9
- `);return t.debugInfo=r.debugInfo,this._visitor.visit(t)}return}this.charset=!0}return r}},checkValidNodes:function(r,e){if(r)for(let t=0;t<r.length;t++){let i=r[t];if(e&&i instanceof S.Declaration&&!i.variable)throw{message:"Properties must be inside selector blocks. They cannot be in the root",index:i.getIndex(),filename:i.fileInfo()&&i.fileInfo().filename};if(i instanceof S.Call)throw{message:`Function '${i.name}' did not return a root node`,index:i.getIndex(),filename:i.fileInfo()&&i.fileInfo().filename};if(i.type&&!i.allowRoot)throw{message:`${i.type} node returned by a function is not valid here`,index:i.getIndex(),filename:i.fileInfo()&&i.fileInfo().filename}}},visitRuleset:function(r,e){let t,i=[];if(this.checkValidNodes(r.rules,r.firstRoot),r.root)r.accept(this._visitor),e.visitDeeper=!1;else{this._compileRulesetPaths(r);let n=r.rules,l=n?n.length:0;for(let s=0;s<l;){if(t=n[s],t&&t.rules){i.push(this._visitor.visit(t)),n.splice(s,1),l--;continue}s++}l>0?r.accept(this._visitor):r.rules=null,e.visitDeeper=!1}return r.rules&&(this._mergeRules(r.rules),this._removeDuplicateRules(r.rules)),this.utils.isVisibleRuleset(r)&&(r.ensureVisibility(),i.splice(0,0,r)),i.length===1?i[0]:i},_compileRulesetPaths:function(r){r.paths&&(r.paths=r.paths.filter(e=>{let t;for(e[0].elements[0].combinator.value===" "&&(e[0].elements[0].combinator=new S.Combinator("")),t=0;t<e.length;t++)if(e[t].isVisible()&&e[t].getIsOutput())return!0;return!1}))},_removeDuplicateRules:function(r){if(!r)return;let e={};for(let t=r.length-1;t>=0;t--){let i=r[t];if(i instanceof S.Declaration)if(!Object.prototype.hasOwnProperty.call(e,i.name))e[i.name]=i;else{let n=e[i.name];if(!Array.isArray(n)){let s=n.toCSS(this._context);n=e[i.name]=[s]}let l=i.toCSS(this._context);n.indexOf(l)!==-1?r.splice(t,1):n.push(l)}}},_mergeRules:$t};var Se={Visitor:me,ImportVisitor:xt,MarkVisibleSelectorsVisitor:ri,ExtendVisitor:ai,JoinSelectorVisitor:oi,ToCSSVisitor:Et},ci=()=>{let r,e,t=[],i,n,l,s,u,a={};function c(f){let h=a.i,m=e,b=a.i-u,w=a.i+s.length-b,I=a.i+=f,x=r,$,M,C;for(;a.i<w;a.i++){if($=x.charCodeAt(a.i),a.autoCommentAbsorb&&$===47){if(M=x.charAt(a.i+1),M==="/"){C={index:a.i,isLineComment:!0};let _=x.indexOf(`
10
- `,a.i+2);_<0&&(_=w),a.i=_,C.text=x.slice(C.index,a.i),a.commentStore.push(C);continue}else if(M==="*"){let _=x.indexOf("*/",a.i+2);if(_>=0){C={index:a.i,text:x.slice(a.i,_+2),isLineComment:!1},a.i+=C.text.length-1,a.commentStore.push(C);continue}}break}if($!==32&&$!==10&&$!==9&&$!==13)break}if(s=s.slice(f+a.i-I+b),u=a.i,!s.length){if(e<l.length-1)return s=l[++e],c(0),!0;a.finished=!0}return h!==a.i||m!==e}return a.save=()=>{u=a.i,t.push({current:s,i:a.i,j:e})},a.restore=f=>{(a.i>i||a.i===i&&f&&!n)&&(i=a.i,n=f);let h=t.pop();s=h.current,u=a.i=h.i,e=h.j},a.forget=()=>{t.pop()},a.isWhitespace=f=>{let h=a.i+(f||0),m=r.charCodeAt(h);return m===32||m===13||m===9||m===10},a.$re=f=>{a.i>u&&(s=s.slice(a.i-u),u=a.i);let h=f.exec(s);return h?(c(h[0].length),typeof h=="string"?h:h.length===1?h[0]:h):null},a.$char=f=>r.charAt(a.i)!==f?null:(c(1),f),a.$peekChar=f=>r.charAt(a.i)!==f?null:f,a.$str=f=>{let h=f.length;for(let m=0;m<h;m++)if(r.charAt(a.i+m)!==f.charAt(m))return null;return c(h),f},a.$quoted=f=>{let h=f||a.i,m=r.charAt(h);if(m!=="'"&&m!=='"')return;let b=r.length,w=h;for(let I=1;I+w<b;I++)switch(r.charAt(I+w)){case"\\":I++;continue;case"\r":case`
11
- `:break;case m:{let $=r.slice(w,w+I+1);return!f&&f!==0?(c(I+1),$):[m,$]}}return null},a.$parseUntil=(f,h)=>{let m="",b=null,w=!1,I=0,x=0,$=null,M=[],C=[],_=r.length,F=a.i,L=a.i,P=a.i,oe=!0,ze;typeof f=="string"?ze=q=>q===f:ze=q=>f.test(q);do{let q=r.charAt(P);if(I===0&&ze(q))b=r.slice(L,P),b?C.push(b):C.push(" "),b=C,c(P-F),oe=!1;else{if(w){q==="*"&&r.charAt(P+1)==="/"&&(P++,I--,w=!1),P++;continue}if(h&&$===null&&q==="@"&&x===0){let we=r.charAt(P+1);we&&/[-\w]/.test(we)&&($=P)}switch(q){case"\\":P++,q=r.charAt(P),C.push(r.slice(L,P+1)),L=P+1;break;case"/":r.charAt(P+1)==="*"&&(P++,w=!0,I++);break;case"'":case'"':m=a.$quoted(P),m?(C.push(r.slice(L,P),m),P+=m[1].length-1,L=P+1):(c(P-F),b=q,oe=!1);break;case"{":M.push("}"),I++;break;case"(":M.push(")"),I++,x++;break;case"[":M.push("]"),I++;break;case"}":case")":case"]":{let we=M.pop();q===we?(I--,q===")"&&x>0&&x--):(c(P-F),b=we,oe=!1)}}P++,P>_&&(oe=!1)}}while(oe);return Array.isArray(b)&&(b.bareVarIndex=$),b||null},a.autoCommentAbsorb=!0,a.commentStore=[],a.finished=!1,a.peek=f=>{if(typeof f=="string"){for(let h=0;h<f.length;h++)if(r.charAt(a.i+h)!==f.charAt(h))return!1;return!0}else return f.test(s)},a.peekChar=f=>r.charAt(a.i)===f,a.currentChar=()=>r.charAt(a.i),a.prevChar=()=>r.charAt(a.i-1),a.getInput=()=>r,a.peekNotNumeric=()=>{let f=r.charCodeAt(a.i);return f>57||f<43||f===47||f===44},a.start=f=>{r=f,a.i=e=u=i=0,l=[f],s=l[0],c(0)},a.end=()=>{let f,h=a.i>=r.length;return a.i<i&&(f=n,a.i=i),{isFinished:h,furthest:a.i,furthestPossibleErrorMessage:f,furthestReachedEnd:a.i>=r.length-1,furthestChar:r[a.i]}},a};function Ye(r){return{_data:{},add:function(e,t){e=e.toLowerCase(),this._data.hasOwnProperty(e),this._data[e]=t},addMultiple:function(e){Object.keys(e).forEach(t=>{this.add(t,e[t])})},get:function(e){return this._data[e]||r&&r.get(e)},getLocalFunctions:function(){return this._data},inherit:function(){return Ye(this)},create:function(e){return Ye(e)}}}var G=Ye(null);let fi={queryInParens:!0},hi={queryInParens:!0},Rt=5;class pi{constructor(){this._counts={}}shouldWarn(e){if(!e)return!0;let t=(this._counts[e]||0)+1;return this._counts[e]=t,t<=Rt}summarize(e){for(let t of Object.keys(this._counts)){let i=this._counts[t]-Rt;i>0&&e.warn(`${i} repetitive "${t}" deprecation warning(s) omitted.`)}}}let ge=function r(e,t,i,n){n=n||0;let l,s=ci();function u(o,c){throw new O({index:s.i,filename:i.filename,type:c||"Syntax",message:o},t)}let a=new pi,p=new Set;function d(o,c,f,h){if(!e.quiet&&!(h&&e.quietDeprecations)){if(h){let m=`${h}@${c??s.i}`;if(p.has(m))return;p.add(m)}h&&!a.shouldWarn(h)||ue.warn(new O({index:c??s.i,filename:i.filename,type:f?`${f.toUpperCase()} WARNING`:"WARNING",message:o},t).toString())}}function g(o){d("A bare @variable in an at-rule prelude is deprecated. Use @{variable} interpolation instead.",o,"DEPRECATED","variable-in-at-rule-prelude")}function v(o,c){let f=o instanceof Function?o.call(l):s.$re(o);if(f)return f;u(c||(typeof o=="string"?`expected '${o}' got '${s.currentChar()}'`:"unexpected token"))}function k(o,c){if(s.$char(o))return o;u(c||`expected '${o}' got '${s.currentChar()}'`)}function A(o){let c=i.filename;return{lineNumber:Ve(o,s.getInput()).line+1,fileName:c}}function y(o,c,f){let h,m=[],b=s;try{b.start(o);for(let I=0,x;x=c[I];I++)h=l[x](),m.push(h||null);b.end().isFinished?f(null,m):f(!0,null)}catch(w){throw new O({index:w.index+n,message:w.message},t,i.filename)}}return{parserInput:s,imports:t,fileInfo:i,parseNode:y,parse:function(o,c,f){let h,m=null,b,w,I,x="";if(f&&f.disablePluginRule&&(l.plugin=function(){var C=s.$re(/^@plugin?\s+/);C&&u("@plugin statements are not allowed when disablePluginRule is set to true")}),b=f&&f.globalVars?`${r.serializeVars(f.globalVars)}
12
- `:"",w=f&&f.modifyVars?`
13
- ${r.serializeVars(f.modifyVars)}`:"",e.pluginManager){let C=e.pluginManager.getPreProcessors();for(let _=0;_<C.length;_++)o=C[_].process(o,{context:e,imports:t,fileInfo:i})}(b||f&&f.banner)&&(x=(f&&f.banner?f.banner:"")+b,I=t.contentsIgnoredChars,I[i.filename]=I[i.filename]||0,I[i.filename]+=x.length),o=o.replace(/\r\n?/g,`
14
- `),o=x+o.replace(/^\uFEFF/,"")+w,t.contents[i.filename]=o;try{s.start(o),S.Node.prototype.parse=this,h=new S.Ruleset(null,this.parsers.primary()),S.Node.prototype.rootNode=h,h.root=!0,h.firstRoot=!0,h.functionRegistry=G.inherit()}catch(C){return c(new O(C,t,i.filename))}let $=s.end();if(!$.isFinished){let C=$.furthestPossibleErrorMessage;C||(C="Unrecognised input",$.furthestChar==="}"?C+=". Possibly missing opening '{'":$.furthestChar===")"?C+=". Possibly missing opening '('":$.furthestReachedEnd&&(C+=". Possibly missing something")),m=new O({type:"Parse",message:C,index:$.furthest,filename:i.filename},t)}let M=C=>(C=m||C||t.error,C?(C instanceof O||(C=new O(C,t,i.filename)),c(C)):c(null,h));if(e.processImports!==!1)new Se.ImportVisitor(t,M).run(h);else return M()},parsers:l={primary:function(){let o=this.mixin,c=[],f;for(;;){for(;f=this.comment(),!!f;)c.push(f);if(s.finished||s.peek("}"))break;if(f=this.extendRule(),f){c=c.concat(f);continue}if(f=o.definition()||this.declaration()||o.call(!1,!1)||this.ruleset()||this.variableCall()||this.entities.call()||this.atrule(),f)c.push(f);else{let h=!1;for(;s.$char(";");)h=!0;if(!h)break}}return c},comment:function(){if(s.commentStore.length){let o=s.commentStore.shift();return new S.Comment(o.text,o.isLineComment,o.index+n,i)}},entities:{mixinLookup:function(){return l.mixin.call(!0,!0)},quoted:function(o){let c,f=s.i,h=!1;if(s.save(),s.$char("~"))h=!0;else if(o){s.restore();return}if(c=s.$quoted(),!c){s.restore();return}return s.forget(),new S.Quoted(c.charAt(0),c.slice(1,-1),h,f+n,i)},keyword:function(){let o=s.$char("%")||s.$re(/^\[?(?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+\]?/);if(o)return S.Color.fromKeyword(o)||new S.Keyword(o)},call:function(){let o,c,f,h=s.i;if(!s.peek(/^url\(/i)){if(s.save(),o=s.$re(/^([\w-]+|%|~|progid:[\w.]+)\(/),!o){s.forget();return}if(o=o[1],f=this.customFuncCall(o),f&&(c=f.parse(),c&&f.stop))return s.forget(),c;if(c=this.arguments(c),!s.$char(")")){s.restore("Could not parse call arguments or missing ')'");return}return s.forget(),new S.Call(o,c,h+n,i)}},declarationCall:function(){let o,c,f=s.i;if(s.save(),o=s.$re(/^[\w]+\(/),!o){s.forget();return}if(o=o.substring(0,o.length-1),/^(and|or|not|only|layer)$/i.test(o)){s.restore();return}let h=this.ruleProperty(),m;if(h&&(m=this.value()),h&&m&&(c=[new S.Declaration(h,m,null,null,s.i+n,i,!0)]),!s.$char(")")){s.restore("Could not parse call arguments or missing ')'");return}return s.forget(),new S.Call(o,c,f+n,i)},customFuncCall:function(o){return{alpha:c(l.ieAlpha,!0),boolean:c(f),if:c(f)}[o.toLowerCase()];function c(h,m){return{parse:h,stop:m}}function f(){return[v(l.condition,"expected condition")]}},arguments:function(o){let c=o||[],f=[],h,m;for(s.save();;){if(o)o=!1;else{if(m=l.detachedRuleset()||this.assignment()||l.expression(),!m)break;m.value&&m.value.length==1&&(m=m.value[0]),c.push(m)}s.$char(",")||(s.$char(";")||h)&&(h=!0,m=c.length<1?c[0]:new S.Value(c),f.push(m),c=[])}return s.forget(),h?f:c},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){let o,c;if(s.save(),o=s.$re(/^\w+(?=\s?=)/i),!o){s.restore();return}if(!s.$char("=")){s.restore();return}if(c=l.entity(),c)return s.forget(),new S.Assignment(o,c);s.restore()},url:function(){let o,c=s.i;if(s.autoCommentAbsorb=!1,!s.$str("url(")){s.autoCommentAbsorb=!0;return}return o=this.quoted()||this.variable()||this.property()||s.$re(/^(?:(?:\\[()'"])|[^()'"])+/)||"",s.autoCommentAbsorb=!0,k(")"),new S.URL(o.value!==void 0||o instanceof S.Variable||o instanceof S.Property?o:new S.Anonymous(o,c),c+n,i)},variable:function(){let o,c,f=s.i;if(s.save(),s.currentChar()==="@"&&(c=s.$re(/^@@?[\w-]+/))){if(o=s.currentChar(),o==="("&&!s.prevChar().match(/^\s/)||o==="["&&!s.prevChar().match(/^\s/)){let h=l.variableCall(c);if(h)return s.forget(),h}return s.forget(),new S.Variable(c,f+n,i)}s.restore()},variableCurly:function(){let o,c=s.i;if(s.currentChar()==="@"&&(o=s.$re(/^@\{([\w-]+)\}/)))return new S.Variable(`@${o[1]}`,c+n,i)},property:function(){let o,c=s.i;if(s.currentChar()==="$"&&(o=s.$re(/^\$[\w-]+/)))return new S.Property(o,c+n,i)},color:function(){let o;if(s.save(),s.currentChar()==="#"&&(o=s.$re(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})([\w.#[])?/))&&!o[2])return s.forget(),new S.Color(o[1],void 0,o[0]);s.restore()},colorKeyword:function(){s.save();let o=s.autoCommentAbsorb;s.autoCommentAbsorb=!1;let c=s.$re(/^[_A-Za-z-][_A-Za-z0-9-]+/);if(s.autoCommentAbsorb=o,!c){s.forget();return}s.restore();let f=S.Color.fromKeyword(c);if(f)return s.$str(c),f},dimension:function(){if(s.peekNotNumeric())return;let o=s.$re(/^([+-]?\d*\.?\d+)(%|[a-z_]+)?/i);if(o)return new S.Dimension(o[1],o[2])},unicodeDescriptor:function(){let o;if(o=s.$re(/^U\+[0-9a-fA-F?]+(-[0-9a-fA-F?]+)?/),o)return new S.UnicodeDescriptor(o[0])},javascript:function(){let o,c=s.i;s.save();let f=s.$char("~");if(!s.$char("`")){s.restore();return}if(o=s.$re(/^[^`]*`/),o)return d("Inline JavaScript evaluation (backtick expressions) is deprecated and will be removed in Less 5.x. Use Less functions or custom plugins instead.",c,"DEPRECATED","js-eval"),s.forget(),new S.JavaScript(o.slice(0,-1),!!f,c+n,i);s.restore("invalid javascript definition")}},variable:function(){let o;if(s.currentChar()==="@"&&(o=s.$re(/^(@[\w-]+)\s*:/)))return o[1]},variableCall:function(o){let c,f=s.i,h=!!o,m=o;if(s.save(),m||s.currentChar()==="@"&&(m=s.$re(/^(@[\w-]+)(\(\s*\))?/))){if(c=this.mixin.ruleLookups(),!c&&(h&&s.$str("()")!=="()"||m[2]!=="()")){s.restore("Missing '[...]' lookup in variable call");return}h||(m=m[1]);let b=new S.VariableCall(m,f,i);return!h&&l.end()?(s.forget(),b):(s.forget(),new S.NamespaceValue(b,c,f,i))}s.restore()},extend:function(o){let c,f,h=s.i,m,b,w;if(s.$str(o?"&:extend(":":extend(")){do{m=null,c=null;let I=!0;for(;!(m=s.$re(/^(!?all)(?=\s*(\)|,))/))&&(f=this.element(),!!f);)!I&&f.combinator.value&&d("Targeting complex selectors can have unexpected behavior, and this behavior may change in the future.",h),I=!1,c?c.push(f):c=[f];m=m&&m[1],c||u("Missing target selector for :extend()."),w=new S.Extend(new S.Selector(c),m,h+n,i),b?b.push(w):b=[w]}while(s.$char(","));return v(/^\)/),o&&v(/^;/),b}},extendRule:function(){return this.extend(!0)},mixin:{call:function(o,c){let f=s.currentChar(),h=!1,m,b=s.i,w,I,x,$,M=!1;if(!(f!=="."&&f!=="#")){if(s.save(),w=this.elements(),w){if($=s.i,M=s.isWhitespace(-1),s.$char("(")&&(I=this.args(!0).args,k(")"),x=!0,M&&d("Whitespace between a mixin name and parentheses for a mixin call is deprecated",$,"DEPRECATED","mixin-call-whitespace")),c!==!1&&(m=this.ruleLookups()),c===!0&&!m){s.restore();return}if(o&&!m&&!x){s.restore();return}if(!o&&l.important()&&(h=!0),o||l.end()){s.forget();let C=new S.mixin.Call(w,I,b+n,i,!m&&h);return m?new S.NamespaceValue(C,m):(x||d("Calling a mixin without parentheses is deprecated",$,"DEPRECATED","mixin-call-no-parens"),C)}}s.restore()}},elements:function(){let o,c,f,h,m,b=/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/;for(;m=s.i,c=s.$re(b),!!c;)h=new S.Element(f,c,!1,m+n,i),o?o.push(h):o=[h],f=s.$char(">");return o},args:function(o){let c=l.entities,f={args:null,variadic:!1},h=[],m=[],b=[],w,I,x,$,M,C,_,F=!0;for(s.save();;){if(o)C=l.detachedRuleset()||l.expression();else{if(s.commentStore.length=0,s.$str("...")){f.variadic=!0,s.$char(";")&&!w&&(w=!0),(w?m:b).push({variadic:!0});break}C=c.variable()||c.property()||c.literal()||c.keyword()||this.call(!0)}if(!C||!F)break;$=null,C.throwAwayComments&&C.throwAwayComments(),M=C;let L=null;if(o?C.value&&C.value.length==1&&(L=C.value[0]):L=C,L&&(L instanceof S.Variable||L instanceof S.Property))if(s.$char(":")){if(h.length>0&&(w&&u("Cannot mix ; and , as delimiter types"),I=!0),M=l.detachedRuleset()||l.expression(),!M)if(o)u("could not understand value for named argument");else return s.restore(),f.args=[],f;$=x=L.name}else if(s.$str("..."))if(o)_=!0;else{f.variadic=!0,s.$char(";")&&!w&&(w=!0),(w?m:b).push({name:C.name,variadic:!0});break}else o||(x=$=L.name,M=null);if(M&&h.push(M),b.push({name:$,value:M,expand:_}),s.$char(",")){F=!0;continue}F=s.$char(";")===";",(F||w)&&(I&&u("Cannot mix ; and , as delimiter types"),w=!0,h.length>1&&(M=new S.Value(h)),m.push({name:x,value:M,expand:_}),x=null,h=[],I=!1)}return s.forget(),f.args=w?m:b,f},definition:function(){let o,c=[],f,h,m,b=!1;if(!(s.currentChar()!=="."&&s.currentChar()!=="#"||s.peek(/^[^{]*\}/)))if(s.save(),f=s.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/),f){o=f[1];let w=this.args(!1);if(c=w.args,b=w.variadic,!s.$char(")")){s.restore("Missing closing ')'");return}if(s.commentStore.length=0,s.$str("when")&&(m=v(l.conditions,"expected condition")),h=l.block(),h)return s.forget(),new S.mixin.Definition(o,c,h,m,b);s.restore()}else s.restore()},ruleLookups:function(){let o,c=[];if(s.currentChar()==="["){for(;;){if(s.save(),o=this.lookupValue(),!o&&o!==""){s.restore();break}c.push(o),s.forget()}if(c.length>0)return c}},lookupValue:function(){if(s.save(),!s.$char("[")){s.restore();return}let o=s.$re(/^(?:[@$]{0,2})[_a-zA-Z0-9-]*/);if(!s.$char("]")){s.restore();return}if(o||o==="")return s.forget(),o;s.restore()}},entity:function(){let o=this.entities;return this.comment()||o.literal()||o.variable()||o.url()||o.property()||o.call()||o.keyword()||this.mixin.call(!0)||o.javascript()},end:function(){return s.$char(";")||s.peek("}")},ieAlpha:function(){let o;if(s.$re(/^opacity=/i))return o=s.$re(/^\d+/),o||(o=v(l.entities.variable,"Could not parse alpha"),o=`@{${o.name.slice(1)}}`),k(")"),new S.Quoted("",`alpha(opacity=${o})`)},element:function(){let o,c,f,h=s.i;if(c=this.combinator(),o=s.$re(/^(?:\d+\.\d+|\d+)%/)||s.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||s.$char("*")||s.$char("&")||this.attribute()||s.$re(/^\([^&()@]+\)/)||s.$re(/^[.#:](?=@)/)||this.entities.variableCurly(),!o)if(s.save(),s.$char("("))if(f=this.selector(!1)){let m=[];for(;s.$char(",");)m.push(f),m.push(new B(",")),f=this.selector(!1);m.push(f),s.$char(")")?(m.length>1?o=new S.Paren(new D(m)):o=new S.Paren(f),s.forget()):s.restore("Missing closing ')'")}else s.restore("Missing closing ')'");else s.forget();if(o)return new S.Element(c,o,o instanceof S.Variable,h+n,i)},combinator:function(){let o=s.currentChar();if(o==="/"){s.save();let c=s.$re(/^\/[a-z]+\//i);if(c)return s.forget(),new S.Combinator(c);s.restore()}if(o===">"||o==="+"||o==="~"||o==="|"||o==="^"){for(s.i++,o==="^"&&s.currentChar()==="^"&&(o="^^",s.i++);s.isWhitespace();)s.i++;return new S.Combinator(o)}else return s.isWhitespace(-1)?new S.Combinator(" "):new S.Combinator(null)},selector:function(o){let c=s.i,f,h,m,b,w,I,x;for(o=o!==!1;(o&&(h=this.extend())||o&&(I=s.$str("when"))||(b=this.element()))&&(I?x=v(this.conditions,"expected condition"):x?u("CSS guard can only be used at the end of selector"):h?w?w=w.concat(h):w=h:(w&&u("Extend can only be used at the end of selector"),m=s.currentChar(),Array.isArray(b)&&b.forEach($=>f.push($)),f?f.push(b):f=[b],b=null),!(m==="{"||m==="}"||m===";"||m===","||m===")")););if(f)return new S.Selector(f,w,x,c+n,i);w&&u("Extend must be used to extend a selector, it cannot be used on its own")},selectors:function(){let o,c;for(;o=this.selector(),!(!o||(c?c.push(o):c=[o],s.commentStore.length=0,o.condition&&c.length>1&&u("Guards are only currently allowed on a single selector."),!s.$char(",")));)o.condition&&u("Guards are only currently allowed on a single selector."),s.commentStore.length=0;return c},attribute:function(){if(!s.$char("["))return;let o=this.entities,c,f,h,m;return(c=o.variableCurly())||(c=v(/^(?:[_A-Za-z0-9-*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),h=s.$re(/^[|~*$^]?=/),h&&(f=o.quoted()||s.$re(/^[0-9]+%/)||s.$re(/^[\w-]+/)||o.variableCurly(),f&&(m=s.$re(/^[iIsS]/))),k("]"),new S.Attribute(c,h,f,m)},block:function(){let o;if(s.$char("{")&&(o=this.primary())&&s.$char("}"))return o},blockRuleset:function(){let o=this.block();if(o)return new S.Ruleset(null,o)},detachedRuleset:function(){let o,c,f;if(s.save(),s.$re(/^[.#]\(/)&&(o=this.mixin.args(!1),c=o.args,f=o.variadic,!s.$char(")"))){s.restore();return}let h=this.blockRuleset();if(h)return s.forget(),c?new S.mixin.Definition(null,c,h,null,f):new S.DetachedRuleset(h);s.restore()},ruleset:function(){let o,c,f;if(s.save(),e.dumpLineNumbers&&(f=A(s.i)),o=this.selectors(),o&&(c=this.block())){s.forget();let h=new S.Ruleset(o,c,e.strictImports);return e.dumpLineNumbers&&(h.debugInfo=f),h}else s.restore()},declaration:function(){let o,c,f=s.i,h,m=s.currentChar(),b,w,I;if(!(m==="."||m==="#"||m==="&"||m===":"))if(s.save(),o=this.variable()||this.ruleProperty(),o){if(I=typeof o=="string",I&&(c=this.detachedRuleset(),c&&(h=!0)),s.commentStore.length=0,!c){if(w=!I&&o.length>1&&o.pop().value,o[0].value&&o[0].value.slice(0,2)==="--"?s.$char(";")?c=new B(""):c=this.permissiveValue(/[;}]/):c=this.anonymousValue(),c)return s.forget(),new S.Declaration(o,c,!1,w,f+n,i);c||(c=this.value()),c?b=this.important():I&&(c=this.permissiveValue())}if(c&&(this.end()||h))return s.forget(),new S.Declaration(o,c,b,w,f+n,i);s.restore()}else s.restore()},anonymousValue:function(){let o=s.i,c=s.$re(/^([^.#@$+/'"*`(;{}-]*);/);if(c)return new S.Anonymous(c[1],o+n)},permissiveValue:function(o,c){let f=this.entities,h,m,b,w,I=o||";",x=s.i,$=[];function M(){let C=s.currentChar();return typeof I=="string"?C===I:I.test(C)}if(!M()){w=[];do{if(m=this.comment(),m){w.push(m);continue}if(c){if(m=f.variableCurly(),!m){let C=s.i;m=this.entity(),m&&m.type==="Variable"&&g(C)}}else m=this.entity();m&&w.push(m),s.peek(",")&&(w.push(new S.Anonymous(",",s.i)),s.$char(","))}while(m);if(b=M(),w.length>0){if(w=new S.Expression(w),b)return w;$.push(w),s.prevChar()===" "&&$.push(new S.Anonymous(" ",x))}if(s.save(),w=s.$parseUntil(I,c),w){if(typeof w=="string"&&u(`Expected '${w}'`,"Parse"),w.length===1&&w[0]===" ")return s.forget(),new S.Anonymous("",x);c&&w.bareVarIndex!==null&&w.bareVarIndex!==void 0&&g(w.bareVarIndex);let C;for(h=0;h<w.length;h++)if(C=w[h],Array.isArray(C))$.push(new S.Quoted(C[0],C[1],!0,x,i));else{h===w.length-1&&(C=C.trim());let _=new S.Quoted("'",C,!0,x,i),F=/@([\w-]+)/g,L=/\$([\w-]+)/g;!c&&F.test(C)&&d("@variable in unknown values will not be evaluated as variables in the future. Use @{variable}",x,"DEPRECATED","variable-in-unknown-value"),L.test(C)&&d("$property in unknown values will not be evaluated as property references in the future. Use ${property}",x,"DEPRECATED","property-in-unknown-value"),_.variableRegex=/@([\w-]+)|@{([\w-]+)}/g,_.propRegex=/\$([\w-]+)|\${([\w-]+)}/g,$.push(_)}return s.forget(),new S.Expression($,!0)}s.restore()}},import:function(){let o,c,f=s.i,h=s.$re(/^@import\s+/);if(h){let m=(h?this.importOptions():null)||{};if(o=this.entities.quoted()||this.entities.url())return c=this.mediaFeatures({}),s.$char(";")||(s.i=f,u("missing semi-colon or unrecognised media features on import")),c=c&&new S.Value(c),new S.Import(o,c,m,f+n,i);s.i=f,u("malformed import statement")}},importOptions:function(){let o,c={},f,h;if(!s.$char("("))return null;do if(o=this.importOption(),o){switch(f=o,h=!0,f){case"css":f="less",h=!1;break;case"once":f="multiple",h=!1;break}if(c[f]=h,!s.$char(","))break}while(o);return k(")"),c},importOption:function(){let o=s.$re(/^(less|css|multiple|once|inline|reference|optional)/);if(o)return o[1]},mediaFeature:function(o){let c=this.entities,f=[],h,m,b,w=!1,I=()=>{let x=s.$re(/^(?:--|-?(?:[_a-zA-Z0-9]|[^\0-\x7F]|\\[0-9a-fA-F]{1,6}\s?|\\[^\n\r\f0-9a-fA-F]))(?:[-_a-zA-Z0-9]|[^\0-\x7F]|\\[0-9a-fA-F]{1,6}\s?|\\[^\n\r\f0-9a-fA-F])*/);if(x)return S.Color.fromKeyword(x)||new S.Keyword(x)};s.save();do{if(s.save(),s.$re(/^(?:--|-?(?:[_a-zA-Z0-9]|[^\0-\x7F]|\\[0-9a-fA-F]{1,6}\s?|\\[^\n\r\f0-9a-fA-F]))(?:[-_a-zA-Z0-9]|[^\0-\x7F]|\\[0-9a-fA-F]{1,6}\s?|\\[^\n\r\f0-9a-fA-F])*\s+\(/)&&(w=!0),s.restore(),h=c.declarationCall.bind(this)()||I()||c.keyword()||c.variableCurly(),!h){let x=s.i,$=c.variable();$?(g(x),h=$):h=c.mixinLookup()}if(h)f.push(h),(h.type==="Variable"||h.type==="Keyword"&&/^(and|or|not|only)$/i.test(h.value))&&(w=!0);else if(s.$char("(")){let x=!1;if(m=this.property(),s.save(),!m&&o.queryInParens&&s.$re(/^(?:[^()]|\([^()]*\))*\s*([<>]=|<=|>=|[<>]|=)/)?(s.restore(),m=this.condition(),s.save(),b=this.atomicCondition(null,m.rvalue),b||s.restore()):(s.restore(),s.save(),h=this.value(),h&&s.$char(")")?(x=!0,s.forget()):(s.restore(),h=this.mediaFeature(o))),!x&&s.$char(")")&&(x=!0),x)if(m&&!h){let $=new S.Paren(new S.QueryInParens(m.op,m.lvalue,m.rvalue,b?b.op:null,b?b.rvalue:null,m._index));w||($.noSpacing=!0),f.push($),h=m}else if(m&&h)f.push(new S.Paren(new S.Declaration(m,h,null,null,s.i+n,i,!0))),w||(f[f.length-1].noSpacing=!0),w=!1;else if(h){let $=new S.Paren(h);w||($.noSpacing=!0),f.push($),w=!1}else u("badly formed media feature definition");else u("Missing closing ')'","Parse")}}while(h);if(s.forget(),f.length>0){let x=new S.Expression(f);return f.length===2&&(f[0].type==="Keyword"||f[0].type==="Variable")&&f[1].type==="Paren"&&f[1].noSpacing&&(x.noSpacing=!0),x}},mediaFeatures:function(o){let c=this.entities,f=[],h;do if(h=this.mediaFeature(o),h)if(f.push(h),s.$char(","))f[f.length-1].noSpacing||(f[f.length-1].noSpacing=!1);else break;else{if(h=c.variableCurly(),!h){let m=s.i,b=c.variable();b?(g(m),h=b):h=c.mixinLookup()}if(h)if(f.push(h),s.$char(","))f[f.length-1].noSpacing||(f[f.length-1].noSpacing=!1);else break}while(h);return f.length>0?f:null},prepareAndGetNestableAtRule:function(o,c,f,h){let m=this.mediaFeatures(h),b=this.block();b||u("media definitions require block statements after any features"),s.forget();let w=new o(b,m,c+n,i);return e.dumpLineNumbers&&(w.debugInfo=f),w},nestableAtRule:function(){let o,c=s.i;if(e.dumpLineNumbers&&(o=A(c)),s.save(),s.$peekChar("@")){if(s.$str("@media"))return this.prepareAndGetNestableAtRule(S.Media,c,o,fi);if(s.$str("@container"))return this.prepareAndGetNestableAtRule(S.Container,c,o,hi)}s.restore()},plugin:function(){let o,c,f,h=s.i;if(s.$re(/^@plugin\s+/)){if(d("The @plugin directive is deprecated and will be replaced in Less 5.x. Use --plugin CLI option or the programmatic plugin API instead.",h,"DEPRECATED","at-plugin"),c=this.pluginArgs(),c?f={pluginArgs:c,isPlugin:!0}:f={isPlugin:!0},o=this.entities.quoted()||this.entities.url())return s.$char(";")||(s.i=h,u("missing semi-colon on @plugin")),new S.Import(o,null,f,h+n,i);s.i=h,u("malformed @plugin statement")}},pluginArgs:function(){if(s.save(),!s.$char("("))return s.restore(),null;let o=s.$re(/^\s*([^);]+)\)\s*/);return o[1]?(s.forget(),o[1].trim()):(s.restore(),null)},atRuleEntity:function(){let o=this.entities.variableCurly();if(o)return o;let c=s.i,f=this.entity();return f&&f.type==="Variable"&&g(c),f},atruleUnknown:function(o,c,f){return o=this.permissiveValue(/^[{;]/,!0),f=s.currentChar()==="{",o?o.value||(o=null):!f&&s.currentChar()!==";"&&u("".concat(c," rule is missing block or ending semi-colon")),[o,f]},atruleBlock:function(o,c,f,h){if(o=this.blockRuleset(),s.save(),!o&&!f&&(c=this.atRuleEntity(),o=this.blockRuleset()),!o&&!f){s.restore();var m=[];for(c=this.atRuleEntity();s.$char(",");)m.push(c),c=this.atRuleEntity();c&&m.length>0?(m.push(c),c=m,h=!0):o=this.blockRuleset()}else s.forget();return[o,c,h]},atrule:function(){let o=s.i,c,f,h,m,b,w,I,x=!0,$=!0,M=!1;if(s.currentChar()==="@"){if(f=this.import()||this.plugin()||this.nestableAtRule(),f)return f;if(s.save(),c=s.$re(/^@[a-z-]+/),!!c){switch(m=c,c.charAt(1)=="-"&&c.indexOf("-",2)>0&&(m=`@${c.slice(c.indexOf("-",2)+1)}`),m){case"@charset":b=!0,x=!1;break;case"@namespace":w=!0,x=!1;break;case"@keyframes":case"@counter-style":b=!0;break;case"@document":case"@supports":I=!0,$=!1;break;case"@starting-style":$=!1;break;case"@layer":$=!1;break;default:I=!0;break}if(s.commentStore.length=0,b)f=this.atRuleEntity(),f||u(`expected ${c} identifier`);else if(w){let C=this.entities.variableCurly();if(!C&&s.peek(/^@@?[\w-]/)){let _=s.i;C=this.entities.variable(),C&&g(_)}f=this.expression(),C&&(f=f?new S.Expression([C,...f.value]):C),f||u(`expected ${c} expression`)}else if(I){let C=this.atruleUnknown(f,c,x);f=C[0],x=C[1]}if(x){let C=this.atruleBlock(h,f,$,M);if(h=C[0],f=C[1],M=C[2],!h&&!I){s.restore(),c=s.$re(/^@[a-z-]+/);let _=this.atruleUnknown(f,c,x);f=_[0],x=_[1],x&&(C=this.atruleBlock(h,f,$,M),h=C[0],f=C[1],M=C[2])}}if(h||M||!x&&f&&s.$char(";"))return s.forget(),new S.AtRule(c,f,h,o+n,i,e.dumpLineNumbers?A(o):null,$);s.restore("at-rule options not recognised")}}},value:function(){let o,c=[],f=s.i;do if(o=this.expression(),o&&(c.push(o),!s.$char(",")))break;while(o);if(c.length>0)return new S.Value(c,f+n)},important:function(){if(s.currentChar()==="!")return s.$re(/^! *important/)},sub:function(){let o,c;if(s.save(),s.$char("(")){if(o=this.addition(),o&&s.$char(")"))return s.forget(),c=new S.Expression([o]),c.parens=!0,c;s.restore("Expected ')'");return}s.restore()},colorOperand:function(){s.save();let o=s.$re(/^([lchrgbs])(?=\s|[,/*)]|$)/);if(o)return s.forget(),new S.Keyword(o[1]);s.restore()},multiplication:function(){let o,c,f,h,m;if(o=this.operand(),o){for(m=s.isWhitespace(-1);!s.peek(/^\/[*/]/);){if(s.save(),f=s.$char("/")||s.$char("*"),!f){let b=s.i;f=s.$str("./"),f&&d("./ operator is deprecated",b,"DEPRECATED","dot-slash-operator")}if(!f){s.forget();break}if(c=this.operand(),!c){s.restore();break}s.forget(),o.parensInOp=!0,c.parensInOp=!0,h=new S.Operation(f,[h||o,c],m),m=s.isWhitespace(-1)}return h||o}},addition:function(){let o,c,f,h,m;if(o=this.multiplication(),o){for(m=s.isWhitespace(-1);f=s.$re(/^[-+]\s+/)||!m&&(s.$char("+")||s.$char("-")),!(!f||(c=this.multiplication(),!c));)o.parensInOp=!0,c.parensInOp=!0,h=new S.Operation(f,[h||o,c],m),m=s.isWhitespace(-1);return h||o}},conditions:function(){let o,c,f=s.i,h;if(o=this.condition(!0),o){for(;!(!s.peek(/^,\s*(not\s*)?\(/)||!s.$char(",")||(c=this.condition(!0),!c));)h=new S.Condition("or",h||o,c,f+n);return h||o}},condition:function(o){let c,f,h;function m(){return s.$str("or")}if(c=this.conditionAnd(o),!!c){if(f=m(),f)if(h=this.condition(o),h)c=new S.Condition(f,c,h);else return;return c}},conditionAnd:function(o){let c,f,h,m=this;function b(){let I=m.negatedCondition(o)||m.parenthesisCondition(o);return!I&&!o?m.atomicCondition(o):I}function w(){return s.$str("and")}if(c=b(),!!c){if(f=w(),f)if(h=this.conditionAnd(o),h)c=new S.Condition(f,c,h);else return;return c}},negatedCondition:function(o){if(s.$str("not")){let c=this.parenthesisCondition(o);if(c)return c.negate=!c.negate,c;let f=this.entities,h=s.i,m=f.keyword()||f.variable()||f.quoted()||f.mixinLookup();if(m)return new S.Condition("=",m,new S.Keyword("true"),h+n,!0)}},parenthesisCondition:function(o){function c(h){let m;if(s.save(),m=h.condition(o),!m){s.restore();return}if(!s.$char(")")){s.restore();return}return s.forget(),m}let f;if(s.save(),!s.$str("(")){s.restore();return}if(f=c(this),f)return s.forget(),f;if(f=this.atomicCondition(o),!f){s.restore();return}if(!s.$char(")")){s.restore(`expected ')' got '${s.currentChar()}'`);return}return s.forget(),f},atomicCondition:function(o,c){let f=this.entities,h=s.i,m,b,w,I,x=(function(){return this.addition()||f.keyword()||f.quoted()||f.mixinLookup()}).bind(this);if(c?m=c:m=x(),m)return s.$char(">")?s.$char("=")?I=">=":I=">":s.$char("<")?s.$char("=")?I="<=":I="<":s.$char("=")&&(s.$char(">")?I="=>":s.$char("<")?I="=<":I="="),I?(b=x(),b?w=new S.Condition(I,m,b,h+n,!1):u("expected expression")):c||(w=new S.Condition("=",m,new S.Keyword("true"),h+n,!1)),w},operand:function(){let o=this.entities,c;s.peek(/^-[@$(]/)&&(c=s.$char("-"));let f=this.sub()||o.dimension()||o.color()||o.variable()||o.property()||o.call()||o.quoted(!0)||o.colorKeyword()||this.colorOperand()||o.mixinLookup();return c&&(f.parensInOp=!0,f=new S.Negative(f)),f},expression:function(){let o=[],c,f,h=s.i;do{if(c=this.comment(),c&&!c.isLineComment){o.push(c);continue}c=this.addition()||this.entity(),c instanceof S.Comment&&(c=null),c&&(o.push(c),s.peek(/^\/[/*]/)||(f=s.$char("/"),f&&o.push(new S.Anonymous(f,h+n))))}while(c);if(o.length>0)return new S.Expression(o)},property:function(){let o=s.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(o)return o[1]},ruleProperty:function(){let o=[],c=[],f,h;s.save();let m=s.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(m)return o=[new S.Keyword(m[1])],s.forget(),o;function b(w){let I=s.i,x=s.$re(w);if(x)return c.push(I),o.push(x[1])}for(b(/^(\*?)/);b(/^((?:[\w-]+)|(?:[@$]\{[\w-]+\}))/););if(o.length>1&&b(/^((?:\+_|\+)?)\s*:/)){for(s.forget(),o[0]===""&&(o.shift(),c.shift()),h=0;h<o.length;h++)f=o[h],o[h]=f.charAt(0)!=="@"&&f.charAt(0)!=="$"?new S.Keyword(f):f.charAt(0)==="@"?new S.Variable(`@${f.slice(2,-1)}`,c[h]+n,i):new S.Property(`$${f.slice(2,-1)}`,c[h]+n,i);return o}s.restore()}}}};ge.serializeVars=r=>{let e="";for(let t in r)if(Object.hasOwnProperty.call(r,t)){let i=r[t];e+=`${(t[0]==="@"?"":"@")+t}: ${i}${String(i).slice(-1)===";"?"":";"}`}return e};class D extends R{get type(){return"Selector"}constructor(e,t,i,n,l,s){super(),this.extendList=t,this.condition=i,this.evaldCondition=!i,this._index=n,this._fileInfo=l,this.elements=this.getElements(e),this.mixinElements_=void 0,this.mediaEmpty=void 0,this.copyVisibilityInfo(s),this.setParent(this.elements,this)}accept(e){this.elements&&(this.elements=e.visitArray(this.elements)),this.extendList&&(this.extendList=e.visitArray(this.extendList)),this.condition&&(this.condition=e.visit(this.condition))}createDerived(e,t,i){e=this.getElements(e);let n=new D(e,t||this.extendList,null,this.getIndex(),this.fileInfo(),this.visibilityInfo());return n.evaldCondition=Qe(i)?this.evaldCondition:i,n.mediaEmpty=this.mediaEmpty,n}getElements(e){if(!e)return[new Y("","&",!1,this._index,this._fileInfo)];if(typeof e=="string"){let t=this._fileInfo,i=this.parse;new ge(i.context,i.importManager,t,this._index).parseNode(e,["selector"],function(n,l){if(n)throw new O({index:n.index,message:n.message},i.imports,t.filename);e=l[0].elements})}return e}createEmptySelectors(){let e=new Y("","&",!1,this._index,this._fileInfo),t=[new D([e],null,null,this._index,this._fileInfo)];return t[0].mediaEmpty=!0,t}match(e){let t=this.elements,i=t.length,n,l,s=e.mixinElements();if(n=s.length,n===0||i<n)return 0;for(l=0;l<n;l++)if(t[l].value!==s[l])return 0;return n}mixinElements(){if(this.mixinElements_)return this.mixinElements_;let e=this.elements.map(function(t){return t.combinator.value+(t.value.value||t.value)}).join("").match(/[,&#*.\w-]([\w-]|(\\.))*/g);return e?e[0]==="&"&&e.shift():e=[],this.mixinElements_=e}isJustParentSelector(){return!this.mediaEmpty&&this.elements.length===1&&this.elements[0].value==="&"&&(this.elements[0].combinator.value===" "||this.elements[0].combinator.value==="")}eval(e){let t=this.condition&&this.condition.eval(e),i=this.elements,n=this.extendList;if(i){let l=new Array(i.length);for(let s=0;s<i.length;s++)l[s]=i[s].eval(e);i=l}if(n){let l=new Array(n.length);for(let s=0;s<n.length;s++)l[s]=n[s].eval(e);n=l}return this.createDerived(i,n,t)}genCSS(e,t){let i,n;for((!e||!e.firstSelector)&&this.elements[0].combinator.value===""&&t.add(" ",this.fileInfo(),this.getIndex()),i=0;i<this.elements.length;i++)n=this.elements[i],n.genCSS(e,t)}getIsOutput(){return this.evaldCondition}}class N extends R{get type(){return"Keyword"}constructor(e){super(),this.value=e}genCSS(e,t){if(this.value==="%")throw{type:"Syntax",message:"Invalid % without number"};t.add(this.value)}}N.True=new N("true"),N.False=new N("false");let Mt=le;function di(r,e){let t="",i,n=e.length,l={add:function(s){t+=s},isEmpty:function(){return t===""}};for(i=0;i<n;i++)e[i].eval(r).genCSS(r,l);return t}class z extends R{get type(){return"Declaration"}constructor(e,t,i,n,l,s,u,a){super(),this.name=e,this.value=t instanceof R?t:new ie([t?new B(t):null]),this.important=i?` ${i.trim()}`:"",this.merge=n,this._index=l,this._fileInfo=s,this.inline=u||!1,this.variable=a!==void 0?a:typeof e=="string"&&e.charAt(0)==="@",this.allowRoot=!0,this.setParent(this.value,this)}genCSS(e,t){t.add(this.name+(e.compress?":":": "),this.fileInfo(),this.getIndex());try{this.value.genCSS(e,t)}catch(i){let n=i;throw n.index=this._index,n.filename=this._fileInfo&&this._fileInfo.filename,i}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this._fileInfo,this._index)}eval(e){let t=!1,i,n=this.name,l,s=this.variable;typeof n!="string"&&(n=n.length===1&&n[0]instanceof N?n[0].value:di(e,n),s=!1),n==="font"&&e.math===Mt.ALWAYS&&(t=!0,i=e.math,e.math=Mt.PARENS_DIVISION);try{if(e.importantScope.push({}),l=this.value.eval(e),!this.variable&&l.type==="DetachedRuleset")throw{message:"Rulesets cannot be evaluated on a property.",index:this.getIndex(),filename:this.fileInfo().filename};let u=this.important,a=e.importantScope.pop();return!u&&a&&a.important&&(u=a.important),new z(n,l,u,this.merge,this.getIndex(),this.fileInfo(),this.inline,s)}catch(u){let a=u;throw typeof a.index!="number"&&(a.index=this.getIndex(),a.filename=this.fileInfo().filename),u}finally{t&&(e.math=i)}}makeImportant(){return new z(this.name,this.value,"!important",this.merge,this.getIndex(),this.fileInfo(),this.inline)}}let Ce={eval:function(){let r=this.value_,e=this.error_;if(e)throw e;if(!Qe(r))return r?N.True:N.False},value:function(r){this.value_=r},error:function(r){this.error_=r},reset:function(){this.value_=this.error_=null}};class j extends R{get type(){return"Ruleset"}constructor(e,t,i,n){super(),this.selectors=e,this.rules=t,this._lookups={},this._variables=null,this._properties=null,this.strictImports=i,this.copyVisibilityInfo(n),this.allowRoot=!0,this.isRuleset=!0,this.root=void 0,this.firstRoot=void 0,this.allowImports=void 0,this.functionRegistry=void 0,this.originalRuleset=void 0,this.debugInfo=void 0,this.paths=void 0,this._rulesets=void 0,this.evalFirst=void 0,this.setParent(this.selectors,this),this.setParent(this.rules,this)}isRulesetLike(){return!0}accept(e){this.paths?this.paths=e.visitArray(this.paths,!0):this.selectors&&(this.selectors=e.visitArray(this.selectors)),this.rules&&this.rules.length&&(this.rules=e.visitArray(this.rules))}eval(e){let t,i,n,l,s,u=!1;if(this.selectors&&(i=this.selectors.length)){for(t=new Array(i),Ce.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),l=0;l<i;l++){n=this.selectors[l].eval(e);for(let c=0;c<n.elements.length;c++)if(n.elements[c].isVariable){s=!0;break}t[l]=n,n.evaldCondition&&(u=!0)}if(s){let c=new Array(i);for(l=0;l<i;l++)n=t[l],c[l]=n.toCSS(e);let f=t[0].getIndex(),h=t[0].fileInfo();new ge(e,this.parse.importManager,h,f).parseNode(c.join(","),["selectors"],function(m,b){b&&(t=Ze(b))})}Ce.reset()}else u=!0;let a=this.rules?W(this.rules):null,p=new j(t,a,this.strictImports,this.visibilityInfo()),d,g;p.originalRuleset=this,p.root=this.root,p.firstRoot=this.firstRoot,p.allowImports=this.allowImports,this.debugInfo&&(p.debugInfo=this.debugInfo),u||(a.length=0);let v=e.frames,k;for(let c=0,f=v.length;c!==f&&(k=v[c].functionRegistry,!k);++c);p.functionRegistry=(k||G).inherit(),v.unshift(p);let A=e.selectors;A||(e.selectors=A=[]),A.unshift(this.selectors),(p.root||p.allowImports||!p.strictImports)&&p.evalImports(e);let y=p.rules;for(l=0;d=y[l];l++)d.evalFirst&&(y[l]=d.eval(e));let o=e.mediaBlocks&&e.mediaBlocks.length||0;for(l=0;d=y[l];l++)d.type==="MixinCall"?(a=d.eval(e).filter(function(c){return c instanceof z&&c.variable?!p.variable(c.name):!0}),y.splice.apply(y,[l,1].concat(a)),l+=a.length-1,p.resetCache()):d.type==="VariableCall"&&(a=d.eval(e).rules.filter(function(c){return!(c instanceof z&&c.variable)}),y.splice.apply(y,[l,1].concat(a)),l+=a.length-1,p.resetCache());for(l=0;d=y[l];l++)d.evalFirst||(y[l]=d=d.eval?d.eval(e):d);for(l=0;d=y[l];l++)if(d instanceof j&&d.selectors&&d.selectors.length===1&&d.selectors[0]&&d.selectors[0].isJustParentSelector()){y.splice(l--,1);for(let c=0;g=d.rules[c];c++)g instanceof R&&(g.copyVisibilityInfo(d.visibilityInfo()),(!(g instanceof z)||!g.variable)&&y.splice(++l,0,g))}if(v.shift(),A.shift(),e.mediaBlocks)for(l=o;l<e.mediaBlocks.length;l++)e.mediaBlocks[l].bubbleSelectors(t);return p}evalImports(e){let t=this.rules,i,n;if(t){for(i=0;i<t.length;i++)if(t[i].type==="Import"){if(n=t[i].eval(e),n&&(n.length||n.length===0)){let l=n;t.splice(i,1,...l),i+=l.length-1}else t.splice(i,1,n);this.resetCache()}}}makeImportant(){return new j(this.selectors,this.rules.map(function(t){return t.makeImportant?t.makeImportant():t}),this.strictImports,this.visibilityInfo())}matchArgs(e){return!e||e.length===0}matchCondition(e,t){let i=this.selectors[this.selectors.length-1];return!(!i.evaldCondition||i.condition&&!i.condition.eval(new V.Eval(t,t.frames)))}resetCache(){this._rulesets=null,this._variables=null,this._properties=null,this._lookups={}}variables(){return this._variables||(this._variables=this.rules?this.rules.reduce(function(e,t){if(t instanceof z&&t.variable===!0&&(e[t.name]=t),t.type==="Import"&&t.root&&t.root.variables){let i=t.root.variables();for(let n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=t.root.variable(n))}return e},{}):{}),this._variables}properties(){return this._properties||(this._properties=this.rules?this.rules.reduce(function(e,t){if(t instanceof z&&t.variable!==!0){let i=t.name.length===1&&t.name[0]instanceof N?t.name[0].value:t.name;e[`$${i}`]?e[`$${i}`].push(t):e[`$${i}`]=[t]}return e},{}):{}),this._properties}variable(e){let t=this.variables()[e];if(t)return this.parseValue(t)}property(e){let t=this.properties()[e];if(t)return this.parseValue(t)}lastDeclaration(){for(let e=this.rules.length;e>0;e--){let t=this.rules[e-1];if(t instanceof z)return this.parseValue(t)}}parseValue(e){let t=this;function i(n){return n.value instanceof B&&!n.parsed&&(typeof n.value.value=="string"?new ge(this.parse.context,this.parse.importManager,n.fileInfo(),n.value.getIndex()).parseNode(n.value.value,["value","important"],function(l,s){l&&(n.parsed=!0),s&&(n.value=s[0],n.important=s[1]||"",n.parsed=!0)}):n.parsed=!0),n}if(Array.isArray(e)){let n=[];for(let l=0;l<e.length;l++)n.push(i.call(t,e[l]));return n}else return i.call(t,e)}rulesets(){if(!this.rules)return[];let e=[],t=this.rules,i,n;for(i=0;n=t[i];i++)n.isRuleset&&e.push(n);return e}prependRule(e){let t=this.rules;t?t.unshift(e):this.rules=[e],this.setParent(e,this)}find(e,t,i){t=t||this;let n=[],l,s,u=e.toCSS({});return u in this._lookups?this._lookups[u]:(this.rulesets().forEach(function(a){if(a!==t){for(let p=0;p<a.selectors.length;p++)if(l=e.match(a.selectors[p]),l){if(e.elements.length>l){if(!i||i(a)){s=a.find(new D(e.elements.slice(l)),t,i);for(let d=0;d<s.length;++d)s[d].path.push(a);Array.prototype.push.apply(n,s)}}else n.push({rule:a,path:[]});break}}}),this._lookups[u]=n,n)}genCSS(e,t){let i,n,l=[],s=[],u,a,p;e.tabLevel=e.tabLevel||0,this.root||e.tabLevel++;let d=e.compress?"":Array(e.tabLevel+1).join(" "),g=e.compress?"":Array(e.tabLevel).join(" "),v,k=0,A=0;for(i=0;a=this.rules[i];i++)a instanceof Be?(A===i&&A++,s.push(a)):a.isCharset&&a.isCharset()?(s.splice(k,0,a),k++,A++):a.type==="Import"?(s.splice(A,0,a),A++):s.push(a);if(s=l.concat(s),!this.root){u=kt(e,this,g),u&&(t.add(u),t.add(g));let y=this.paths,o=y.length,c;for(v=e.compress?",":`,
15
- ${g}`,i=0;i<o;i++)if(p=y[i],!!(c=p.length))for(i>0&&t.add(v),e.firstSelector=!0,p[0].genCSS(e,t),e.firstSelector=!1,n=1;n<c;n++)p[n].genCSS(e,t);t.add((e.compress?"{":` {
6
+ ${s}`,this.callLine&&(n+=`${u("from ",i)+(this.filename||"")}/n`,n+=`${u(this.callLine,"grey")} ${this.callExtract}/n`),n};let hi={visitDeeper:!0},It=!1;function Be(r){return r}function kt(r,e){let t,i;for(t in r)switch(i=r[t],typeof i){case"function":i.prototype&&i.prototype.type&&(i.prototype.typeIndex=e++);break;case"object":e=kt(i,e);break}return e}class ve{constructor(e){this._implementation=e,this._visitInCache={},this._visitOutCache={},It||(kt(S,1),It=!0)}visit(e){if(!e)return e;let t=e.typeIndex;if(!t)return e.value&&e.value.typeIndex&&this.visit(e.value),e;let i=this._implementation,n=this._visitInCache[t],l=this._visitOutCache[t],s=hi,u;if(s.visitDeeper=!0,n||(u=`visit${e.type}`,n=i[u]||Be,l=i[`${u}Out`]||Be,this._visitInCache[t]=n,this._visitOutCache[t]=l),n!==Be){let a=n.call(i,e,s);e&&i.isReplacing&&(e=a)}if(s.visitDeeper&&e)if(e.length)for(let a=0,h=e.length;a<h;a++)e[a].accept&&e[a].accept(this);else e.accept&&e.accept(this);return l!=Be&&l.call(i,e),e}visitArray(e,t){if(!e)return e;let i=e.length,n;if(t||!this._implementation.isReplacing){for(n=0;n<i;n++)this.visit(e[n]);return e}let l=[];for(n=0;n<i;n++){let s=this.visit(e[n]);s!==void 0&&(s.splice?s.length&&this.flatten(s,l):l.push(s))}return l}flatten(e,t){t||(t=[]);let i,n,l,s,u,a;for(n=0,i=e.length;n<i;n++)if(l=e[n],l!==void 0){if(!l.splice){t.push(l);continue}for(u=0,s=l.length;u<s;u++)a=l[u],a!==void 0&&(a.splice?a.length&&this.flatten(a,t):t.push(a))}return t}}let B={},$t=function(e,t,i){if(e)for(let n=0;n<i.length;n++)Object.prototype.hasOwnProperty.call(e,i[n])&&(t[i[n]]=e[i[n]])},pi=["paths","rewriteUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","mime","useFileCache","processImports","pluginManager","quiet","quietDeprecations"];B.Parse=function(r){$t(r,this,pi),typeof this.paths=="string"&&(this.paths=[this.paths])};let di=["paths","compress","math","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope","rewriteUrls"];B.Eval=function(r,e){$t(r,this,di),typeof this.paths=="string"&&(this.paths=[this.paths]),this.frames=e||[],this.importantScope=this.importantScope||[]},B.Eval.prototype.enterCalc=function(){this.calcStack||(this.calcStack=[]),this.calcStack.push(!0),this.inCalc=!0},B.Eval.prototype.exitCalc=function(){this.calcStack.pop(),this.calcStack.length||(this.inCalc=!1)},B.Eval.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},B.Eval.prototype.outOfParenthesis=function(){this.parensStack.pop()},B.Eval.prototype.inCalc=!1,B.Eval.prototype.mathOn=!0,B.Eval.prototype.isMathOn=function(r){return!this.mathOn||r==="/"&&this.math!==oe.ALWAYS&&(!this.parensStack||!this.parensStack.length)?!1:this.math>oe.PARENS_DIVISION?this.parensStack&&this.parensStack.length:!0},B.Eval.prototype.pathRequiresRewrite=function(r){return(this.rewriteUrls===Me.LOCAL?tt:Et)(r)},B.Eval.prototype.rewritePath=function(r,e){let t;return e=e||"",t=this.normalizePath(e+r),tt(r)&&Et(e)&&tt(t)===!1&&(t=`./${t}`),t},B.Eval.prototype.normalizePath=function(r){let e=r.split("/").reverse(),t;for(r=[];e.length!==0;)switch(t=e.pop(),t){case".":break;case"..":r.length===0||r[r.length-1]===".."?r.push(t):r.pop();break;default:r.push(t);break}return r.join("/")};function Et(r){return!/^(?:[a-z-]+:|\/|#)/i.test(r)}function tt(r){return r.charAt(0)==="."}class mi{constructor(e){this.imports=[],this.variableImports=[],this._onSequencerEmpty=e,this._currentDepth=0}addImport(e){let t=this,i={callback:e,args:null,isReady:!1};return this.imports.push(i),function(){i.args=Array.prototype.slice.call(arguments,0),i.isReady=!0,t.tryRun()}}addVariableImport(e){this.variableImports.push(e)}tryRun(){this._currentDepth++;try{for(;;){for(;this.imports.length>0;){let t=this.imports[0];if(!t.isReady)return;this.imports=this.imports.slice(1),t.callback.apply(null,t.args)}if(this.variableImports.length===0)break;let e=this.variableImports[0];this.variableImports=this.variableImports.slice(1),e()}}finally{this._currentDepth--}this._currentDepth===0&&this._onSequencerEmpty&&this._onSequencerEmpty()}}let Rt=function(r,e){this._visitor=new ve(this),this._importer=r,this._finish=e,this.context=new B.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new mi(this._onSequencerEmpty.bind(this))};Rt.prototype={isReplacing:!1,run:function(r){try{this._visitor.visit(r)}catch(e){this.error=e}this.isFinished=!0,this._sequencer.tryRun()},_onSequencerEmpty:function(){this.isFinished&&this._finish(this.error)},visitImport:function(r,e){let t=r.options.inline;if(!r.css||t){let i=new B.Eval(this.context,K(this.context.frames)),n=i.frames[0];this.importCount++,r.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,r,i,n)):this.processImportNode(r,i,n)}e.visitDeeper=!1},processImportNode:function(r,e,t){let i,n=r.options.inline;try{i=r.evalForImport(e)}catch(l){l.filename||(l.index=r.getIndex(),l.filename=r.fileInfo().filename),r.css=!0,r.error=l}if(i&&(!i.css||n)){i.options.multiple&&(e.importMultiple=!0);let l=i.css===void 0;for(let a=0;a<t.rules.length;a++)if(t.rules[a]===r){t.rules[a]=i;break}let s=this.onImported.bind(this,i,e),u=this._sequencer.addImport(s);this._importer.push(i.getPath(),l,i.fileInfo(),i.options,u)}else this.importCount--,this.isFinished&&this._sequencer.tryRun()},onImported:function(r,e,t,i,n,l){t&&(t.filename||(t.index=r.getIndex(),t.filename=r.fileInfo().filename),this.error=t);let s=this,u=r.options.inline,a=r.options.isPlugin,h=r.options.optional,d=n||l in s.recursionDetector;if(e.importMultiple||(d?r.skip=!0:r.skip=function(){return l in s.onceFileDetectionMap?!0:(s.onceFileDetectionMap[l]=!0,!1)}),!l&&h&&(r.skip=!0),i&&(r.root=i,r.importedFilename=l,!u&&!a&&(e.importMultiple||!d))){s.recursionDetector[l]=!0;let m=this.context;this.context=e;try{this._visitor.visit(i)}catch(v){this.error=v}this.context=m}s.importCount--,s.isFinished&&s._sequencer.tryRun()},visitDeclaration:function(r,e){r.value.type==="DetachedRuleset"?this.context.frames.unshift(r):e.visitDeeper=!1},visitDeclarationOut:function(r){r.value.type==="DetachedRuleset"&&this.context.frames.shift()},visitAtRule:function(r,e){r.value?this.context.frames.unshift(r):r.declarations&&r.declarations.length?r.isRooted?this.context.frames.unshift(r):this.context.frames.unshift(r.declarations[0]):r.rules&&r.rules.length&&this.context.frames.unshift(r)},visitAtRuleOut:function(r){this.context.frames.shift()},visitMixinDefinition:function(r,e){this.context.frames.unshift(r)},visitMixinDefinitionOut:function(r){this.context.frames.shift()},visitRuleset:function(r,e){this.context.frames.unshift(r)},visitRulesetOut:function(r){this.context.frames.shift()},visitMedia:function(r,e){this.context.frames.unshift(r.rules[0])},visitMediaOut:function(r){this.context.frames.shift()}};class gi{constructor(e){this.visible=e}run(e){this.visit(e)}visitArray(e){if(!e)return e;let t=e.length,i;for(i=0;i<t;i++)this.visit(e[i]);return e}visit(e){return e&&(e.constructor===Array?this.visitArray(e):(!e.blocksVisibility||e.blocksVisibility()||(this.visible?e.ensureVisibility():e.ensureInvisibility(),e.accept(this)),e))}}class vi{constructor(){this._visitor=new ve(this),this.contexts=[],this.allExtendsStack=[[]]}run(e){return e=this._visitor.visit(e),e.allExtends=this.allExtendsStack[0],e}visitDeclaration(e,t){t.visitDeeper=!1}visitMixinDefinition(e,t){t.visitDeeper=!1}visitRuleset(e,t){if(e.root)return;let i,n,l,s=[],u,a=e.rules,h=a?a.length:0;for(i=0;i<h;i++)e.rules[i]instanceof S.Extend&&(s.push(a[i]),e.extendOnEveryPath=!0);let d=e.paths;for(i=0;i<d.length;i++){let m=d[i],v=m[m.length-1],R=v.extendList;for(u=R?K(R).concat(s):s,u&&(u=u.map(function(A){return A.clone()})),n=0;n<u.length;n++)this.foundExtends=!0,l=u[n],l.findSelfSelectors(m),l.ruleset=e,n===0&&(l.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(l)}this.contexts.push(e.selectors)}visitRulesetOut(e){e.root||(this.contexts.length=this.contexts.length-1)}visitMedia(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)}visitMediaOut(e){this.allExtendsStack.length=this.allExtendsStack.length-1}visitAtRule(e,t){e.allExtends=[],this.allExtendsStack.push(e.allExtends)}visitAtRuleOut(e){this.allExtendsStack.length=this.allExtendsStack.length-1}}class yi{constructor(){this._visitor=new ve(this)}run(e){let t=new vi;if(this.extendIndices={},t.run(e),!t.foundExtends)return e;e.allExtends=e.allExtends.concat(this.doExtendChaining(e.allExtends,e.allExtends)),this.allExtendsStack=[e.allExtends];let i=this._visitor.visit(e);return this.checkExtendsForNonMatched(e.allExtends),i}checkExtendsForNonMatched(e){let t=this.extendIndices;e.filter(function(i){return!i.hasFoundMatches&&i.parent_ids.length==1}).forEach(function(i){let n="_unknown_";try{n=i.selector.toCSS({})}catch{}t[`${i.index} ${n}`]||(t[`${i.index} ${n}`]=!0,ce.warn(`WARNING: extend '${n}' has no matches`))})}doExtendChaining(e,t,i){let n,l,s,u=[],a,h=this,d,m,v,R;for(i=i||0,n=0;n<e.length;n++)for(l=0;l<t.length;l++)m=e[n],v=t[l],!(m.parent_ids.indexOf(v.object_id)>=0)&&(d=[v.selfSelectors[0]],s=h.findMatch(m,d),s.length&&(m.hasFoundMatches=!0,m.selfSelectors.forEach(function(A){let y=v.visibilityInfo();a=h.extendSelector(s,d,A,m.isVisible()),R=new S.Extend(v.selector,v.option,0,v.fileInfo(),y),R.selfSelectors=a,a[a.length-1].extendList=[R],u.push(R),R.ruleset=v.ruleset,R.parent_ids=R.parent_ids.concat(v.parent_ids,m.parent_ids),v.firstExtendOnThisSelectorPath&&(R.firstExtendOnThisSelectorPath=!0,v.ruleset.paths.push(a))})));if(u.length){if(this.extendChainCount++,i>100){let A="{unable to calculate}",y="{unable to calculate}";try{A=u[0].selfSelectors[0].toCSS(),y=u[0].selector.toCSS()}catch{}throw{message:`extend circular reference detected. One of the circular extends is currently:${A}:extend(${y})`}}return u.concat(h.doExtendChaining(u,t,i+1))}else return u}visitDeclaration(e,t){t.visitDeeper=!1}visitMixinDefinition(e,t){t.visitDeeper=!1}visitSelector(e,t){t.visitDeeper=!1}visitRuleset(e,t){if(e.root)return;let i,n=this.allExtendsStack[this.allExtendsStack.length-1],l=[],s=e.paths,u=s.length;for(let a=0;a<n.length;a++){let h=n[a];for(let d=0;d<u;d++){let m=s[d];if(e.extendOnEveryPath)continue;let v=m[m.length-1].extendList;if(!(v&&v.length)&&(i=this.findMatch(h,m),i.length)){h.hasFoundMatches=!0;let R=h.selfSelectors,A=h.isVisible();for(let y=0;y<R.length;y++)l.push(this.extendSelector(i,m,R[y],A))}}}e.paths=s.concat(l)}findMatch(e,t){let i,n,l,s,u,a,h=e.selector.elements,d=[],m,v=[];for(i=0;i<t.length;i++)for(n=t[i],l=0;l<n.elements.length;l++)for(s=n.elements[l],(e.allowBefore||i===0&&l===0)&&d.push({pathIndex:i,index:l,matched:0,initialCombinator:s.combinator}),a=0;a<d.length;a++)m=d[a],u=s.combinator.value,u===""&&l===0&&(u=" "),!this.isElementValuesEqual(h[m.matched].value,s.value)||m.matched>0&&h[m.matched].combinator.value!==u?m=null:m.matched++,m&&(m.finished=m.matched===h.length,m.finished&&!e.allowAfter&&(l+1<n.elements.length||i+1<t.length)&&(m=null)),m?m.finished&&(m.length=h.length,m.endPathIndex=i,m.endPathElementIndex=l+1,d.length=0,v.push(m)):(d.splice(a,1),a--);return v}isElementValuesEqual(e,t){if(typeof e=="string"||typeof t=="string")return e===t;if(e instanceof S.Attribute)return e.op!==t.op||e.key!==t.key?!1:!e.value||!t.value?!(e.value||t.value):(e=e.value.value||e.value,t=t.value.value||t.value,e===t);if(e=e.value,t=t.value,e instanceof S.Selector){if(!(t instanceof S.Selector)||e.elements.length!==t.elements.length)return!1;for(let i=0;i<e.elements.length;i++)if(e.elements[i].combinator.value!==t.elements[i].combinator.value&&(i!==0||(e.elements[i].combinator.value||" ")!==(t.elements[i].combinator.value||" "))||!this.isElementValuesEqual(e.elements[i].value,t.elements[i].value))return!1;return!0}return!1}extendSelector(e,t,i,n){let l=0,s=0,u=[],a,h,d,m,v;for(a=0;a<e.length;a++)m=e[a],h=t[m.pathIndex],d=new S.Element(m.initialCombinator,i.elements[0].value,i.elements[0].isVariable,i.elements[0].getIndex(),i.elements[0].fileInfo()),m.pathIndex>l&&s>0&&(u[u.length-1].elements=u[u.length-1].elements.concat(t[l].elements.slice(s)),s=0,l++),v=h.elements.slice(s,m.index).concat([d]).concat(i.elements.slice(1)),l===m.pathIndex&&a>0?u[u.length-1].elements=u[u.length-1].elements.concat(v):(u=u.concat(t.slice(l,m.pathIndex)),u.push(new S.Selector(v))),l=m.endPathIndex,s=m.endPathElementIndex,s>=t[l].elements.length&&(s=0,l++);return l<t.length&&s>0&&(u[u.length-1].elements=u[u.length-1].elements.concat(t[l].elements.slice(s)),l++),u=u.concat(t.slice(l,t.length)),u=u.map(function(R){let A=R.createDerived(R.elements);return n?A.ensureVisibility():A.ensureInvisibility(),A}),u}visitMedia(e,t){let i=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);i=i.concat(this.doExtendChaining(i,e.allExtends)),this.allExtendsStack.push(i)}visitMediaOut(e){let t=this.allExtendsStack.length-1;this.allExtendsStack.length=t}visitAtRule(e,t){let i=e.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);i=i.concat(this.doExtendChaining(i,e.allExtends)),this.allExtendsStack.push(i)}visitAtRuleOut(e){let t=this.allExtendsStack.length-1;this.allExtendsStack.length=t}}class bi{constructor(){this.contexts=[[]],this._visitor=new ve(this)}run(e){return this._visitor.visit(e)}visitDeclaration(e,t){t.visitDeeper=!1}visitMixinDefinition(e,t){t.visitDeeper=!1}visitRuleset(e,t){let i=this.contexts[this.contexts.length-1],n=[],l;this.contexts.push(n),e.root||(l=e.selectors,l&&(l=l.filter(function(s){return s.getIsOutput()}),e.selectors=l.length?l:l=null,l&&e.joinSelectors(n,i,l)),l||(e.rules=null),e.paths=n)}visitRulesetOut(e){this.contexts.length=this.contexts.length-1}visitMedia(e,t){let i=this.contexts[this.contexts.length-1];e.rules[0].root=i.length===0||i[0].multiMedia}visitAtRule(e,t){let i=this.contexts[this.contexts.length-1];e.declarations&&e.declarations.length?e.declarations[0].root=i.length===0||i[0].multiMedia:e.rules&&e.rules.length&&(e.rules[0].root=e.isRooted||i.length===0||null)}}function _t(r){return`/* line ${r.debugInfo.lineNumber}, ${r.debugInfo.fileName} */
7
+ `}function Mt(r){let e=r.debugInfo.fileName;return/^[a-z]+:\/\//i.test(e)||(e=`file://${e}`),`@media -sass-debug-info{filename{font-family:${e.replace(/([.:/\\])/g,function(t){return t=="\\"&&(t="/"),`\\${t}`})}}line{font-family:\\00003${r.debugInfo.lineNumber}}}
8
+ `}function Pt(r,e,t){let i="";if(r.dumpLineNumbers&&!r.compress&&e.debugInfo)switch(r.dumpLineNumbers){case"comments":i=_t(e);break;case"mediaquery":i=Mt(e);break;case"all":i=_t(e)+(t||"")+Mt(e);break}return i}class je extends L{get type(){return"Comment"}constructor(e,t,i,n){super(),this.value=e,this.isLineComment=t,this._index=i,this._fileInfo=n,this.allowRoot=!0,this.debugInfo=void 0}genCSS(e,t){this.debugInfo&&t.add(Pt(e,this),this.fileInfo(),this.getIndex()),t.add(this.value)}isSilent(e){let t=e.compress&&this.value[2]!=="!";return this.isLineComment||t}}class Oe extends L{get type(){return"Unit"}constructor(e,t,i){super(),this.numerator=e?K(e).sort():[],this.denominator=t?K(t).sort():[],i?this.backupUnit=i:e&&e.length&&(this.backupUnit=e[0])}clone(){return new Oe(K(this.numerator),K(this.denominator),this.backupUnit)}genCSS(e,t){let i=e&&e.strictUnits;this.numerator.length===1?t.add(this.numerator[0]):!i&&this.backupUnit?t.add(this.backupUnit):!i&&this.denominator.length&&t.add(this.denominator[0])}toString(){let e,t=this.numerator.join("*");for(e=0;e<this.denominator.length;e++)t+=`/${this.denominator[e]}`;return t}compare(e){return this.is(e.toString())?0:void 0}is(e){return this.toString().toUpperCase()===e.toUpperCase()}isLength(){return RegExp("^(px|em|ex|ch|rem|in|cm|mm|pc|pt|ex|vw|vh|vmin|vmax)$","gi").test(this.toCSS({}))}isEmpty(){return this.numerator.length===0&&this.denominator.length===0}isSingular(){return this.numerator.length<=1&&this.denominator.length===0}map(e){let t;for(t=0;t<this.numerator.length;t++)this.numerator[t]=e(this.numerator[t],!1);for(t=0;t<this.denominator.length;t++)this.denominator[t]=e(this.denominator[t],!0)}usedUnits(){let e,t={},i,n;i=function(l){return e.hasOwnProperty(l)&&!t[n]&&(t[n]=l),l};for(n in ge)ge.hasOwnProperty(n)&&(e=ge[n],this.map(i));return t}cancel(){let e={},t,i;for(i=0;i<this.numerator.length;i++)t=this.numerator[i],e[t]=(e[t]||0)+1;for(i=0;i<this.denominator.length;i++)t=this.denominator[i],e[t]=(e[t]||0)-1;this.numerator=[],this.denominator=[];for(t in e)if(e.hasOwnProperty(t)){let n=e[t];if(n>0)for(i=0;i<n;i++)this.numerator.push(t);else if(n<0)for(i=0;i<-n;i++)this.denominator.push(t)}this.numerator.sort(),this.denominator.sort()}}class F extends L{get type(){return"Dimension"}constructor(e,t){if(super(),this.value=parseFloat(e),isNaN(this.value))throw new Error("Dimension is not a number.");this.unit=t&&t instanceof Oe?t:new Oe(t?[t]:void 0),this.setParent(this.unit,this)}accept(e){this.unit=e.visit(this.unit)}eval(e){return this}toColor(){let e=this.value;return new H([e,e,e])}genCSS(e,t){if(e&&e.strictUnits&&!this.unit.isSingular())throw new Error(`Multiple units in dimension. Correct the units or use the unit function. Bad unit: ${this.unit.toString()}`);let i=this.fround(e,this.value),n=String(i);if(i!==0&&i<1e-6&&i>-1e-6&&(n=i.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(i===0&&this.unit.isLength()){t.add(n);return}i>0&&i<1&&(n=n.slice(1))}t.add(n),this.unit.genCSS(e,t)}operate(e,t,i){let n=this._operate(e,t,this.value,i.value),l=this.unit.clone();if(t==="+"||t==="-"){if(l.numerator.length===0&&l.denominator.length===0)l=i.unit.clone(),this.unit.backupUnit&&(l.backupUnit=this.unit.backupUnit);else if(!(i.unit.numerator.length===0&&l.denominator.length===0)){if(i=i.convertTo(this.unit.usedUnits()),e.strictUnits&&i.unit.toString()!==l.toString())throw new Error(`Incompatible units. Change the units or use the unit function. Bad units: '${l.toString()}' and '${i.unit.toString()}'.`);n=this._operate(e,t,this.value,i.value)}}else t==="*"?(l.numerator=l.numerator.concat(i.unit.numerator).sort(),l.denominator=l.denominator.concat(i.unit.denominator).sort(),l.cancel()):t==="/"&&(l.numerator=l.numerator.concat(i.unit.denominator).sort(),l.denominator=l.denominator.concat(i.unit.numerator).sort(),l.cancel());return new F(n,l)}compare(e){let t,i;if(e instanceof F){if(this.unit.isEmpty()||e.unit.isEmpty())t=this,i=e;else if(t=this.unify(),i=e.unify(),t.unit.compare(i.unit)!==0)return;return L.numericCompare(t.value,i.value)}}unify(){return this.convertTo({length:"px",duration:"s",angle:"rad"})}convertTo(e){let t=this.value,i=this.unit.clone(),n,l,s,u,a={},h;if(typeof e=="string"){for(n in ge)ge[n].hasOwnProperty(e)&&(a={},a[n]=e);e=a}h=function(d,m){return s.hasOwnProperty(d)?(m?t=t/(s[d]/s[u]):t=t*(s[d]/s[u]),u):d};for(l in e)e.hasOwnProperty(l)&&(u=e[l],s=ge[l],i.map(h));return i.cancel(),new F(t,i)}}class T extends L{get type(){return"Anonymous"}constructor(e,t,i,n,l,s){super(),this.value=e,this._index=t,this._fileInfo=i,this.mapLines=n,this.rulesetLike=typeof l>"u"?!1:l,this._preventReparse=!1,this.allowRoot=!0,this.copyVisibilityInfo(s)}eval(){let e=new T(this.value,this._index,this._fileInfo,this.mapLines,this.rulesetLike,this.visibilityInfo());return e._preventReparse=this._preventReparse,e}compare(e){return e.toCSS&&this.toCSS({})===e.toCSS({})?0:void 0}isRulesetLike(){return this.rulesetLike}genCSS(e,t){this.nodeVisible=!!this.value,this.nodeVisible&&t.add(this.value,this._fileInfo,this._index,this.mapLines)}}class Q extends L{get type(){return"Expression"}constructor(e,t){if(super(),this.value=e,this.noSpacing=t,this.parens=void 0,this.parensInOp=void 0,!e)throw new Error("Expression requires an array parameter")}accept(e){this.value=e.visitArray(this.value)}eval(e){let t=this.noSpacing,i,n=e.isMathOn(),l=this.parens,s=!1;l&&e.inParenthesis();let u=this.value;if(u.length>1)i=new Q(u.map(function(a){return a.eval?a.eval(e):a}),this.noSpacing);else if(u.length===1){let a=u[0];a.parens&&!a.parensInOp&&!e.inCalc&&(s=!0),i=u[0].eval(e)}else i=this;return l&&e.outOfParenthesis(),this.parens&&this.parensInOp&&!n&&!s&&!(i instanceof F)&&(i=new fe(i)),i.noSpacing=i.noSpacing||t,i}genCSS(e,t){let i=this.value;for(let n=0;n<i.length;n++)i[n].genCSS(e,t),!this.noSpacing&&n+1<i.length&&(!(i[n+1]instanceof T)||i[n+1]instanceof T&&i[n+1].value!==",")&&t.add(" ")}throwAwayComments(){this.value=this.value.filter(function(e){return!(e instanceof je)})}}class ne extends L{get type(){return"Value"}constructor(e){if(super(),!e)throw new Error("Value requires an array argument");Array.isArray(e)?this.value=e:this.value=[e]}accept(e){this.value&&(this.value=e.visitArray(this.value))}eval(e){let t=this.value;return t.length===1?t[0].eval(e):new ne(t.map(function(i){return i.eval(e)}))}genCSS(e,t){let i=this.value,n;for(n=0;n<i.length;n++)i[n].genCSS(e,t),n+1<i.length&&t.add(e&&e.compress?",":", ")}}function Ot(r){if(!r)return;let e={},t=[];for(let i=0;i<r.length;i++){let n=r[i];if(n.merge){let l=n.name;e[l]?r.splice(i--,1):t.push(e[l]=[]),e[l].push(n)}}t.forEach(i=>{if(i.length>0){let n=i[0],l=[],s=[new Q(l)];i.forEach(u=>{u.merge==="+"&&l.length>0&&s.push(new Q(l=[])),l.push(u.value),n.important=n.important||u.important}),n.value=new ne(s)}})}class wi{constructor(e){this._visitor=new ve(this),this._context=e}containsSilentNonBlockedChild(e){let t;if(!e)return!1;for(let i=0;i<e.length;i++)if(t=e[i],t.isSilent&&t.isSilent(this._context)&&!t.blocksVisibility())return!0;return!1}keepOnlyVisibleChilds(e){e&&e.rules&&(e.rules=e.rules.filter(t=>t.isVisible()))}isEmpty(e){return e&&e.rules?e.rules.length===0:!0}hasVisibleSelector(e){return e&&e.paths?e.paths.length>0:!1}resolveVisibility(e){if(!e.blocksVisibility())return this.isEmpty(e)?void 0:e;let t=e.rules[0];if(this.keepOnlyVisibleChilds(t),!this.isEmpty(t))return e.ensureVisibility(),e.removeVisibilityBlock(),e}isVisibleRuleset(e){return e.firstRoot?!0:!(this.isEmpty(e)||!e.root&&!this.hasVisibleSelector(e))}}let Ft=function(r){this._visitor=new ve(this),this._context=r,this.utils=new wi(r)};Ft.prototype={isReplacing:!0,run:function(r){return this._visitor.visit(r)},visitDeclaration:function(r,e){if(!(r.blocksVisibility()||r.variable))return r},visitMixinDefinition:function(r,e){r.frames=[]},visitExtend:function(r,e){},visitComment:function(r,e){if(!(r.blocksVisibility()||r.isSilent(this._context)))return r},visitMedia:function(r,e){let t=r.rules[0].rules;return r.accept(this._visitor),e.visitDeeper=!1,this.utils.resolveVisibility(r,t)},visitImport:function(r,e){if(!r.blocksVisibility())return r},visitAtRule:function(r,e){return r.rules&&r.rules.length?this.visitAtRuleWithBody(r,e):this.visitAtRuleWithoutBody(r,e)},visitAnonymous:function(r,e){if(!r.blocksVisibility())return r.accept(this._visitor),r},visitAtRuleWithBody:function(r,e){function t(l){let s=l.rules;return s.length===1&&(!s[0].paths||s[0].paths.length===0)}function i(l){let s=l.rules;return t(l)?s[0].rules:s}let n=i(r);return r.accept(this._visitor),e.visitDeeper=!1,this.utils.isEmpty(r)||this._mergeRules(r.rules[0].rules),this.utils.resolveVisibility(r,n)},visitAtRuleWithoutBody:function(r,e){if(!r.blocksVisibility()){if(r.name==="@charset"){if(this.charset){if(r.debugInfo){let t=new S.Comment(`/* ${r.toCSS(this._context).replace(/\n/g,"")} */
9
+ `);return t.debugInfo=r.debugInfo,this._visitor.visit(t)}return}this.charset=!0}return r}},checkValidNodes:function(r,e){if(r)for(let t=0;t<r.length;t++){let i=r[t];if(e&&i instanceof S.Declaration&&!i.variable)throw{message:"Properties must be inside selector blocks. They cannot be in the root",index:i.getIndex(),filename:i.fileInfo()&&i.fileInfo().filename};if(i instanceof S.Call)throw{message:`Function '${i.name}' did not return a root node`,index:i.getIndex(),filename:i.fileInfo()&&i.fileInfo().filename};if(i.type&&!i.allowRoot)throw{message:`${i.type} node returned by a function is not valid here`,index:i.getIndex(),filename:i.fileInfo()&&i.fileInfo().filename}}},visitRuleset:function(r,e){let t,i=[];if(this.checkValidNodes(r.rules,r.firstRoot),r.root)r.accept(this._visitor),e.visitDeeper=!1;else{this._compileRulesetPaths(r);let n=r.rules,l=n?n.length:0;for(let s=0;s<l;){if(t=n[s],t&&t.rules){i.push(this._visitor.visit(t)),n.splice(s,1),l--;continue}s++}l>0?r.accept(this._visitor):r.rules=null,e.visitDeeper=!1}return r.rules&&(this._mergeRules(r.rules),this._removeDuplicateRules(r.rules)),this.utils.isVisibleRuleset(r)&&(r.ensureVisibility(),i.splice(0,0,r)),i.length===1?i[0]:i},_compileRulesetPaths:function(r){r.paths&&(r.paths=r.paths.filter(e=>{let t;for(e[0].elements[0].combinator.value===" "&&(e[0].elements[0].combinator=new S.Combinator("")),t=0;t<e.length;t++)if(e[t].isVisible()&&e[t].getIsOutput())return!0;return!1}))},_removeDuplicateRules:function(r){if(!r)return;let e={};for(let t=r.length-1;t>=0;t--){let i=r[t];if(i instanceof S.Declaration)if(!Object.prototype.hasOwnProperty.call(e,i.name))e[i.name]=i;else{let n=e[i.name];if(!Array.isArray(n)){let s=n.toCSS(this._context);n=e[i.name]=[s]}let l=i.toCSS(this._context);n.indexOf(l)!==-1?r.splice(t,1):n.push(l)}}},_mergeRules:Ot};var Ce={Visitor:ve,ImportVisitor:Rt,MarkVisibleSelectorsVisitor:gi,ExtendVisitor:yi,JoinSelectorVisitor:bi,ToCSSVisitor:Ft},Si=()=>{let r,e,t=[],i,n,l,s,u,a={};function w(C){let k=a.i,E=e,o=a.i-u,c=a.i+s.length-o,f=a.i+=C,p=r,g,x,b;for(;a.i<c;a.i++){if(g=p.charCodeAt(a.i),a.autoCommentAbsorb&&g===47){if(x=p.charAt(a.i+1),x==="/"){b={index:a.i,isLineComment:!0};let M=p.indexOf(`
10
+ `,a.i+2);M<0&&(M=c),a.i=M,b.text=p.slice(b.index,a.i),a.commentStore.push(b);continue}else if(x==="*"){let M=p.indexOf("*/",a.i+2);if(M>=0){b={index:a.i,text:p.slice(a.i,M+2),isLineComment:!1},a.i+=b.text.length-1,a.commentStore.push(b);continue}}break}if(g!==32&&g!==10&&g!==9&&g!==13)break}if(s=s.slice(C+a.i-f+o),u=a.i,!s.length){if(e<l.length-1)return s=l[++e],w(0),!0;a.finished=!0}return k!==a.i||E!==e}return a.save=()=>{u=a.i,t.push({current:s,i:a.i,j:e})},a.restore=C=>{(a.i>i||a.i===i&&C&&!n)&&(i=a.i,n=C);let k=t.pop();s=k.current,u=a.i=k.i,e=k.j},a.forget=()=>{t.pop()},a.isWhitespace=C=>{let k=a.i+(C||0),E=r.charCodeAt(k);return E===32||E===13||E===9||E===10},a.$re=C=>{a.i>u&&(s=s.slice(a.i-u),u=a.i);let k=C.exec(s);return k?(w(k[0].length),typeof k=="string"?k:k.length===1?k[0]:k):null},a.$char=C=>r.charAt(a.i)!==C?null:(w(1),C),a.$peekChar=C=>r.charAt(a.i)!==C?null:C,a.$str=C=>{let k=C.length;for(let E=0;E<k;E++)if(r.charAt(a.i+E)!==C.charAt(E))return null;return w(k),C},a.$quoted=C=>{let k=C||a.i,E=r.charAt(k);if(E!=="'"&&E!=='"')return;let o=r.length,c=k;for(let f=1;f+c<o;f++)switch(r.charAt(f+c)){case"\\":f++;continue;case"\r":case`
11
+ `:break;case E:{let g=r.slice(c,c+f+1);return!C&&C!==0?(w(f+1),g):[E,g]}}return null},a.$parseUntil=(C,k)=>{let E="",o=null,c=!1,f=0,p=0,g=null,x=[],b=[],M=r.length,I=a.i,P=a.i,O=a.i,_=!0,U;typeof C=="string"?U=D=>D===C:U=D=>C.test(D);do{let D=r.charAt(O);if(f===0&&U(D))o=r.slice(P,O),o?b.push(o):b.push(" "),o=b,w(O-I),_=!1;else{if(c){D==="*"&&r.charAt(O+1)==="/"&&(O++,f--,c=!1),O++;continue}if(k&&g===null&&D==="@"&&p===0){let Z=r.charAt(O+1);Z&&/[-\w]/.test(Z)&&(g=O)}switch(D){case"\\":O++,D=r.charAt(O),b.push(r.slice(P,O+1)),P=O+1;break;case"/":r.charAt(O+1)==="*"&&(O++,c=!0,f++);break;case"'":case'"':E=a.$quoted(O),E?(b.push(r.slice(P,O),E),O+=E[1].length-1,P=O+1):(w(O-I),o=D,_=!1);break;case"{":x.push("}"),f++;break;case"(":x.push(")"),f++,p++;break;case"[":x.push("]"),f++;break;case"}":case")":case"]":{let Z=x.pop();D===Z?(f--,D===")"&&p>0&&p--):(w(O-I),o=Z,_=!1)}}O++,O>M&&(_=!1)}}while(_);return Array.isArray(o)&&(o.bareVarIndex=g),o||null},a.autoCommentAbsorb=!0,a.commentStore=[],a.finished=!1,a.peek=C=>{if(typeof C=="string"){for(let k=0;k<C.length;k++)if(r.charAt(a.i+k)!==C.charAt(k))return!1;return!0}else return C.test(s)},a.peekChar=C=>r.charAt(a.i)===C,a.currentChar=()=>r.charAt(a.i),a.prevChar=()=>r.charAt(a.i-1),a.getInput=()=>r,a.peekNotNumeric=()=>{let C=r.charCodeAt(a.i);return C>57||C<43||C===47||C===44},a.start=C=>{r=C,a.i=e=u=i=0,l=[C],s=l[0],w(0)},a.end=()=>{let C,k=a.i>=r.length;return a.i<i&&(C=n,a.i=i),{isFinished:k,furthest:a.i,furthestPossibleErrorMessage:C,furthestReachedEnd:a.i>=r.length-1,furthestChar:r[a.i]}},a};function it(r){return{_data:{},add:function(e,t){e=e.toLowerCase(),this._data.hasOwnProperty(e),this._data[e]=t},addMultiple:function(e){Object.keys(e).forEach(t=>{this.add(t,e[t])})},get:function(e){return this._data[e]||r&&r.get(e)},getLocalFunctions:function(){return this._data},inherit:function(){return it(this)},create:function(e){return it(e)}}}var J=it(null);let Ci={queryInParens:!0},xi={queryInParens:!0},Lt=5;class Ai{constructor(){this._counts={}}shouldWarn(e){if(!e)return!0;let t=(this._counts[e]||0)+1;return this._counts[e]=t,t<=Lt}summarize(e){for(let t of Object.keys(this._counts)){let i=this._counts[t]-Lt;i>0&&e.warn(`${i} repetitive "${t}" deprecation warning(s) omitted.`)}}}let Vt="(?:[@$]{0,2})[_a-zA-Z0-9-]*",Ue=`[\\w-]+${`(?:\\[${Vt}\\])*`}`;class Dt{constructor(e,t,i,n){this.name=e.toLowerCase(),this.index=i,this.context=t,this.currentFileInfo=n,this.func=t.frames[0].functionRegistry.get(this.name)}isValid(){return!!this.func}call(e){Array.isArray(e)||(e=[e]);let t=this.func.evalArgs;t!==!1&&(e=e.map(n=>n.eval(this.context)));let i=n=>n.type!=="Comment";return e=e.filter(i).map(n=>{if(n.type==="Expression"){let l=n.value.filter(i);return l.length===1?n.parens&&l[0].op==="/"?n:l[0]:new Q(l)}return n}),t===!1?this.func(this.context,...e):this.func(...e)}}class Te extends L{get type(){return"Call"}constructor(e,t,i,n){super(),this.name=e,this.args=t,this.calc=e==="calc",this._index=i,this._fileInfo=n}accept(e){this.args&&(this.args=e.visitArray(this.args))}eval(e){let t=e.mathOn;e.mathOn=!this.calc,(this.calc||e.inCalc)&&e.enterCalc();let i=()=>{(this.calc||e.inCalc)&&e.exitCalc(),e.mathOn=t},n,l=new Dt(this.name,e,this.getIndex(),this.fileInfo());if(l.isValid())try{n=l.call(this.args),i()}catch(u){throw u.hasOwnProperty("line")&&u.hasOwnProperty("column")?u:{type:u.type||"Runtime",message:`Error evaluating function \`${this.name}\`${u.message?`: ${u.message}`:""}`,index:this.getIndex(),filename:this.fileInfo().filename,line:u.lineNumber,column:u.columnNumber}}if(n!=null)return n instanceof L||(!n||n===!0?n=new T(null):n=new T(n.toString())),n._index=this._index,n._fileInfo=this._fileInfo,n;let s=this.args.map(u=>u.eval(e));return i(),new Te(this.name,s,this.getIndex(),this.fileInfo())}genCSS(e,t){t.add(`${this.name}(`,this.fileInfo(),this.getIndex());for(let i=0;i<this.args.length;i++)this.args[i].genCSS(e,t),i+1<this.args.length&&t.add(", ");t.add(")")}}class z extends L{get type(){return"Keyword"}constructor(e){super(),this.value=e}genCSS(e,t){if(this.value==="%")throw{type:"Syntax",message:"Invalid % without number"};t.add(this.value)}}z.True=new z("true"),z.False=new z("false");let Bt=oe;function Ii(r,e){let t="",i,n=e.length,l={add:function(s){t+=s},isEmpty:function(){return t===""}};for(i=0;i<n;i++)e[i].eval(r).genCSS(r,l);return t}class W extends L{get type(){return"Declaration"}constructor(e,t,i,n,l,s,u,a){super(),this.name=e,this.value=t instanceof L?t:new ne([t?new T(t):null]),this.important=i?` ${i.trim()}`:"",this.merge=n,this._index=l,this._fileInfo=s,this.inline=u||!1,this.variable=a!==void 0?a:typeof e=="string"&&e.charAt(0)==="@",this.allowRoot=!0,this.setParent(this.value,this)}genCSS(e,t){t.add(this.name+(e.compress?":":": "),this.fileInfo(),this.getIndex());try{this.value.genCSS(e,t)}catch(i){let n=i;throw n.index=this._index,n.filename=this._fileInfo&&this._fileInfo.filename,i}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this._fileInfo,this._index)}eval(e){let t=!1,i,n=this.name,l,s=this.variable;typeof n!="string"&&(n=n.length===1&&n[0]instanceof z?n[0].value:Ii(e,n),s=!1),n==="font"&&e.math===Bt.ALWAYS&&(t=!0,i=e.math,e.math=Bt.PARENS_DIVISION);try{if(e.importantScope.push({}),l=this.value.eval(e),!this.variable&&l.type==="DetachedRuleset")throw{message:"Rulesets cannot be evaluated on a property.",index:this.getIndex(),filename:this.fileInfo().filename};let u=this.important,a=e.importantScope.pop();return!u&&a&&a.important&&(u=a.important),new W(n,l,u,this.merge,this.getIndex(),this.fileInfo(),this.inline,s)}catch(u){let a=u;throw typeof a.index!="number"&&(a.index=this.getIndex(),a.filename=this.fileInfo().filename),u}finally{t&&(e.math=i)}}makeImportant(){return new W(this.name,this.value,"!important",this.merge,this.getIndex(),this.fileInfo(),this.inline)}}let xe={eval:function(){let r=this.value_,e=this.error_;if(e)throw e;if(!et(r))return r?z.True:z.False},value:function(r){this.value_=r},error:function(r){this.error_=r},reset:function(){this.value_=this.error_=null}};class q extends L{get type(){return"Ruleset"}constructor(e,t,i,n){super(),this.selectors=e,this.rules=t,this._lookups={},this._variables=null,this._properties=null,this.strictImports=i,this.copyVisibilityInfo(n),this.allowRoot=!0,this.isRuleset=!0,this.root=void 0,this.firstRoot=void 0,this.allowImports=void 0,this.functionRegistry=void 0,this.originalRuleset=void 0,this.debugInfo=void 0,this.paths=void 0,this._rulesets=void 0,this.evalFirst=void 0,this.setParent(this.selectors,this),this.setParent(this.rules,this)}isRulesetLike(){return!0}accept(e){this.paths?this.paths=e.visitArray(this.paths,!0):this.selectors&&(this.selectors=e.visitArray(this.selectors)),this.rules&&this.rules.length&&(this.rules=e.visitArray(this.rules))}eval(e){let t,i,n,l,s,u=!1;if(this.selectors&&(i=this.selectors.length)){for(t=new Array(i),xe.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),l=0;l<i;l++){n=this.selectors[l].eval(e);for(let w=0;w<n.elements.length;w++)if(n.elements[w].isVariable){s=!0;break}t[l]=n,n.evaldCondition&&(u=!0)}if(s){let w=new Array(i);for(l=0;l<i;l++)n=t[l],w[l]=n.toCSS(e);let C=t[0].getIndex(),k=t[0].fileInfo();new ye(e,this.parse.importManager,k,C).parseNode(w.join(","),["selectors"],function(E,o){o&&(t=Xe(o))})}xe.reset()}else u=!0;let a=this.rules?K(this.rules):null,h=new q(t,a,this.strictImports,this.visibilityInfo()),d,m;h.originalRuleset=this,h.root=this.root,h.firstRoot=this.firstRoot,h.allowImports=this.allowImports,this.debugInfo&&(h.debugInfo=this.debugInfo),u||(a.length=0);let v=e.frames,R;for(let w=0,C=v.length;w!==C&&(R=v[w].functionRegistry,!R);++w);h.functionRegistry=(R||J).inherit(),v.unshift(h);let A=e.selectors;A||(e.selectors=A=[]),A.unshift(this.selectors),(h.root||h.allowImports||!h.strictImports)&&h.evalImports(e);let y=h.rules;for(l=0;d=y[l];l++)d.evalFirst&&(y[l]=d.eval(e));let $=e.mediaBlocks&&e.mediaBlocks.length||0;for(l=0;d=y[l];l++)d.type==="MixinCall"?(a=d.eval(e).filter(function(w){return w instanceof W&&w.variable?!h.variable(w.name):!0}),y.splice.apply(y,[l,1].concat(a)),l+=a.length-1,h.resetCache()):d.type==="VariableCall"&&(a=d.eval(e).rules.filter(function(w){return!(w instanceof W&&w.variable)}),y.splice.apply(y,[l,1].concat(a)),l+=a.length-1,h.resetCache());for(l=0;d=y[l];l++)d.evalFirst||(y[l]=d=d.eval?d.eval(e):d);for(l=0;d=y[l];l++)if(d instanceof q&&d.selectors&&d.selectors.length===1&&d.selectors[0]&&d.selectors[0].isJustParentSelector()){y.splice(l--,1);for(let w=0;m=d.rules[w];w++)m instanceof L&&(m.copyVisibilityInfo(d.visibilityInfo()),(!(m instanceof W)||!m.variable)&&y.splice(++l,0,m))}if(v.shift(),A.shift(),e.mediaBlocks)for(l=$;l<e.mediaBlocks.length;l++)e.mediaBlocks[l].bubbleSelectors(t);return h}evalImports(e){let t=this.rules,i,n;if(t){for(i=0;i<t.length;i++)if(t[i].type==="Import"){if(n=t[i].eval(e),n&&(n.length||n.length===0)){let l=n;t.splice(i,1,...l),i+=l.length-1}else t.splice(i,1,n);this.resetCache()}}}makeImportant(){return new q(this.selectors,this.rules.map(function(t){return t.makeImportant?t.makeImportant():t}),this.strictImports,this.visibilityInfo())}matchArgs(e){return!e||e.length===0}matchCondition(e,t){let i=this.selectors[this.selectors.length-1];return!(!i.evaldCondition||i.condition&&!i.condition.eval(new B.Eval(t,t.frames)))}resetCache(){this._rulesets=null,this._variables=null,this._properties=null,this._lookups={}}variables(){return this._variables||(this._variables=this.rules?this.rules.reduce(function(e,t){if(t instanceof W&&t.variable===!0&&(e[t.name]=t),t.type==="Import"&&t.root&&t.root.variables){let i=t.root.variables();for(let n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=t.root.variable(n))}return e},{}):{}),this._variables}properties(){return this._properties||(this._properties=this.rules?this.rules.reduce(function(e,t){if(t instanceof W&&t.variable!==!0){let i=t.name.length===1&&t.name[0]instanceof z?t.name[0].value:t.name;e[`$${i}`]?e[`$${i}`].push(t):e[`$${i}`]=[t]}return e},{}):{}),this._properties}variable(e){let t=this.variables()[e];if(t)return this.parseValue(t)}property(e){let t=this.properties()[e];if(t)return this.parseValue(t)}lastDeclaration(){for(let e=this.rules.length;e>0;e--){let t=this.rules[e-1];if(t instanceof W)return this.parseValue(t)}}parseValue(e){let t=this;function i(n){return n.value instanceof T&&!n.value._preventReparse&&!n.parsed&&(typeof n.value.value=="string"?new ye(this.parse.context,this.parse.importManager,n.fileInfo(),n.value.getIndex()).parseNode(n.value.value,["value","important"],function(l,s){l&&(n.parsed=!0),s&&(n.value=s[0],n.important=s[1]||"",n.parsed=!0)}):n.parsed=!0),n}if(Array.isArray(e)){let n=[];for(let l=0;l<e.length;l++)n.push(i.call(t,e[l]));return n}else return i.call(t,e)}rulesets(){if(!this.rules)return[];let e=[],t=this.rules,i,n;for(i=0;n=t[i];i++)n.isRuleset&&e.push(n);return e}prependRule(e){let t=this.rules;t?t.unshift(e):this.rules=[e],this.setParent(e,this)}find(e,t,i){t=t||this;let n=[],l,s,u=e.toCSS({});return u in this._lookups?this._lookups[u]:(this.rulesets().forEach(function(a){if(a!==t){for(let h=0;h<a.selectors.length;h++)if(l=e.match(a.selectors[h]),l){if(e.elements.length>l){if(!i||i(a)){s=a.find(new j(e.elements.slice(l)),t,i);for(let d=0;d<s.length;++d)s[d].path.push(a);Array.prototype.push.apply(n,s)}}else n.push({rule:a,path:[]});break}}}),this._lookups[u]=n,n)}genCSS(e,t){let i,n,l=[],s=[],u,a,h;e.tabLevel=e.tabLevel||0,this.root||e.tabLevel++;let d=e.compress?"":Array(e.tabLevel+1).join(" "),m=e.compress?"":Array(e.tabLevel).join(" "),v,R=0,A=0;for(i=0;a=this.rules[i];i++)a instanceof je?(A===i&&A++,s.push(a)):a.isCharset&&a.isCharset()?(s.splice(R,0,a),R++,A++):a.type==="Import"?(s.splice(A,0,a),A++):s.push(a);if(s=l.concat(s),!this.root){u=Pt(e,this,m),u&&(t.add(u),t.add(m));let y=this.paths,$=y.length,w;for(v=e.compress?",":`,
12
+ ${m}`,i=0;i<$;i++)if(h=y[i],!!(w=h.length))for(i>0&&t.add(v),e.firstSelector=!0,h[0].genCSS(e,t),e.firstSelector=!1,n=1;n<w;n++)h[n].genCSS(e,t);t.add((e.compress?"{":` {
16
13
  `)+d)}for(i=0;a=s[i];i++){i+1===s.length&&(e.lastRule=!0);let y=e.lastRule;a.isRulesetLike()&&(e.lastRule=!1),a.genCSS?a.genCSS(e,t):a.value&&t.add(a.value.toString()),e.lastRule=y,!e.lastRule&&a.isVisible()?t.add(e.compress?"":`
17
14
  ${d}`):e.lastRule=!1}this.root||(t.add(e.compress?"}":`
18
- ${g}}`),e.tabLevel--),!t.isEmpty()&&!e.compress&&this.firstRoot&&t.add(`
19
- `)}joinSelectors(e,t,i){for(let n=0;n<i.length;n++)this.joinSelector(e,t,i[n])}joinSelector(e,t,i){function n(A,y){let o,c;if(A.length===0)o=new ce(A[0]);else{let f=new Array(A.length);for(c=0;c<A.length;c++)f[c]=new Y(null,A[c],y.isVariable,y._index,y._fileInfo);o=new ce(new D(f))}return o}function l(A,y){let o,c;return o=new Y(null,A,y.isVariable,y._index,y._fileInfo),c=new D([o]),c}function s(A,y,o,c){let f,h,m;if(f=[],A.length>0?(f=W(A),h=f.pop(),m=c.createDerived(W(h.elements))):m=c.createDerived([]),y.length>0){let b=o.combinator,w=y[0].elements[0];b.emptyOrWhitespace&&!w.combinator.emptyOrWhitespace&&(b=w.combinator),m.elements.push(new Y(b,w.value,o.isVariable,o._index,o._fileInfo)),m.elements=m.elements.concat(y[0].elements.slice(1))}if(m.elements.length!==0&&f.push(m),y.length>1){let b=y.slice(1);b=b.map(function(w){return w.createDerived(w.elements,[])}),f=f.concat(b)}return f}function u(A,y,o,c,f){let h;for(h=0;h<A.length;h++){let m=s(A[h],y,o,c);f.push(m)}return f}function a(A,y){let o,c;if(A.length!==0){if(y.length===0){y.push([new D(A)]);return}for(o=0;c=y[o];o++)c.length>0?c[c.length-1]=c[c.length-1].createDerived(c[c.length-1].elements.concat(A)):c.push(new D(A))}}function p(A,y,o){let c,f,h,m,b,w,I,x,$=!1,M,C;function _(F){let L;return!(F.value instanceof ce)||(L=F.value.value,!(L instanceof D))?null:L}for(m=[],b=[[]],c=0;x=o.elements[c];c++)if(x.value!=="&"){let F=_(x);if(F!==null){a(m,b);let L=[],P,oe=[];if(F.elements.some(q=>q instanceof D)){let q=[];for(let He of F.elements)if(He instanceof D){let We=[],_s=p(We,y,He);P=P||_s,We.length>0&&We[0].length>0?q.push(We[0][0]):q.push(He)}else q.push(He);$=$||P;let we=new D(q),Ms=l(n([we],x),x);u(b,[Ms],x,o,oe)}else for(P=p(L,y,F),$=$||P,h=0;h<L.length;h++){let q=l(n(L[h],x),x);u(b,[q],x,o,oe)}b=oe,m=[]}else m.push(x)}else{for($=!0,w=[],a(m,b),f=0;f<b.length;f++)if(I=b[f],y.length===0)I.length>0&&I[0].elements.push(new Y(x.combinator,"",x.isVariable,x._index,x._fileInfo)),w.push(I);else for(h=0;h<y.length;h++){let F=s(I,y[h],x,o);w.push(F)}b=w,m=[]}for(a(m,b),c=0;c<b.length;c++)M=b[c].length,M>0&&(A.push(b[c]),C=b[c][M-1],b[c][M-1]=C.createDerived(C.elements,o.extendList));return $}function d(A,y){let o=y.createDerived(y.elements,y.extendList,y.evaldCondition);return o.copyVisibilityInfo(A),o}let g,v,k;if(v=[],k=p(v,t,i),!k)if(t.length>0)for(v=[],g=0;g<t.length;g++){let A=t[g].map(d.bind(this,i.visibilityInfo()));A.push(i),v.push(A)}else v=[[i]];for(g=0;g<v.length;g++)e.push(v[g])}}let et={isRulesetLike(){return!0},accept(r){let e=this;e.features&&(e.features=r.visit(e.features)),e.rules&&(e.rules=r.visitArray(e.rules))},evalFunction:function(){let r=this;if(!r.features||!Array.isArray(r.features.value)||r.features.value.length<1)return;let e=r.features.value,t,i;for(let n=0;n<e.length;++n)t=e[n],(t.type==="Keyword"||t.type==="Variable")&&n+1<e.length&&(t.noSpacing||t.noSpacing==null)&&(i=e[n+1],i.type==="Paren"&&i.noSpacing&&(e[n]=new K([t,i]),e.splice(n+1,1),e[n].noSpacing=!0))},evalTop(r){let e=this;e.evalFunction();let t=e;if(r.mediaBlocks.length>1){let i=new D([],null,null,e.getIndex(),e.fileInfo()).createEmptySelectors();t=new j(i,r.mediaBlocks),t.multiMedia=!0,t.copyVisibilityInfo(e.visibilityInfo()),e.setParent(t,e)}return delete r.mediaBlocks,delete r.mediaPath,t},evalNested(r){let e=this;e.evalFunction();let t,i,n=r.mediaPath.concat([e]);for(t=0;t<n.length;t++){if(n[t].type!==e.type){let l=r.mediaBlocks.indexOf(e);return l>-1&&r.mediaBlocks.splice(l,1),e}i=n[t].features instanceof ie?n[t].features.value:n[t].features,n[t]=Array.isArray(i)?i:[i]}return e.features=new ie(e.permute(n).map(l=>{for(l=l.map(s=>s.toCSS?s:new B(s)),t=l.length-1;t>0;t--)l.splice(t,0,new B("and"));return new K(l)})),e.setParent(e.features,e),new j([],[])},permute(r){if(r.length===0)return[];if(r.length===1)return r[0];{let e=[],t=this.permute(r.slice(1));for(let i=0;i<t.length;i++)for(let n=0;n<r[0].length;n++)e.push([r[0][n]].concat(t[i]));return e}},bubbleSelectors(r){let e=this;r&&(e.rules=[new j(W(r),[e.rules[0]])],e.setParent(e.rules,e))}};class xe extends R{get type(){return"AtRule"}constructor(e,t,i,n,l,s,u,a){super();let p;if(new D([],null,null,n,l).createEmptySelectors(),this.name=e,this.value=t instanceof R?t:t&&new B(t),this.simpleBlock=void 0,this.declarations=void 0,this.rules=void 0,i){if(Array.isArray(i)){let d=this.declarationsBlock(i),g=!0;i.forEach(v=>{v.type==="Ruleset"&&v.rules&&(g=g&&this.declarationsBlock(v.rules,!0))}),d&&!u?(this.simpleBlock=!0,this.declarations=i):g&&i.length===1&&!u&&!t?(this.simpleBlock=!0,this.declarations=i[0].rules?i[0].rules:i):this.rules=i}else this.declarationsBlock(i.rules)&&!u&&!t?(this.simpleBlock=!0,this.declarations=i.rules):(this.rules=[i],this.rules[0].selectors=new D([],null,null,n,l).createEmptySelectors());if(!this.simpleBlock)for(p=0;p<this.rules.length;p++)this.rules[p].allowImports=!0;this.declarations&&this.setParent(this.declarations,this),this.rules&&this.setParent(this.rules,this)}this._index=n,this._fileInfo=l,this.debugInfo=s,this.isRooted=u||!1,this.copyVisibilityInfo(a),this.allowRoot=!0}declarationsBlock(e,t=!1){return t?e.filter(function(i){return i.type==="Declaration"||i.type==="Comment"}).length===e.length:e.filter(function(i){return(i.type==="Declaration"||i.type==="Comment")&&!i.merge}).length===e.length}keywordList(e){return Array.isArray(e)?e.filter(function(t){return t.type==="Keyword"||t.type==="Comment"}).length===e.length:!1}accept(e){let t=this.value,i=this.rules,n=this.declarations;i?this.rules=e.visitArray(i):n&&(this.declarations=e.visitArray(n)),t&&(this.value=e.visit(t))}isRulesetLike(){return this.rules||!this.isCharset()}isCharset(){return this.name==="@charset"}genCSS(e,t){let i=this.value,n=this.rules||this.declarations;t.add(this.name,this.fileInfo(),this.getIndex()),i&&(t.add(" "),i.genCSS(e,t)),this.simpleBlock?this.outputRuleset(e,t,this.declarations):n?this.outputRuleset(e,t,n):t.add(";")}eval(e){let t,i,n=this.value,l=this.rules||this.declarations;return t=e.mediaPath,i=e.mediaBlocks,e.mediaPath=[],e.mediaBlocks=[],n&&(n=n.eval(e)),l&&(l=this.evalRoot(e,l)),Array.isArray(l)&&l[0].rules&&Array.isArray(l[0].rules)&&l[0].rules.length&&this.declarationsBlock(l[0].rules,!0)&&!this.isRooted&&!n&&($t(l[0].rules),l=l[0].rules,l.forEach(u=>{u.merge=!1})),this.simpleBlock&&l&&(l[0].functionRegistry=e.frames[0].functionRegistry.inherit(),l=l.map(function(s){return s.eval(e)})),e.mediaPath=t,e.mediaBlocks=i,new xe(this.name,n,l,this.getIndex(),this.fileInfo(),this.debugInfo,this.isRooted,this.visibilityInfo())}evalRoot(e,t){let i=0,n=0,l=!0;this.simpleBlock||(t=[t[0].eval(e)]);let s=[];if(e.frames.length>0)for(let a=0;a<e.frames.length;a++){let p=e.frames[a];p.type==="Ruleset"&&p.rules&&p.rules.length>0&&p&&!p.root&&p.selectors&&p.selectors.length>0&&(s=s.concat(p.selectors)),s.length>0&&(s.every(g=>g.elements&&g.elements.length>0&&g.elements.every(v=>v.value==="&"))?(l=!1,n++):i++)}let u=i>0&&n>0&&!l;return(this.isRooted&&i>0&&n===0&&l||!u)&&(t[0].root=!0),t}variable(e){if(this.rules)return j.prototype.variable.call(this.rules[0],e)}find(){if(this.rules)return j.prototype.find.apply(this.rules[0],arguments)}rulesets(){if(this.rules)return j.prototype.rulesets.apply(this.rules[0])}outputRuleset(e,t,i){let n=i.length,l;if(e.tabLevel=(e.tabLevel|0)+1,e.compress){for(t.add("{"),l=0;l<n;l++)i[l].genCSS(e,t);t.add("}"),e.tabLevel--;return}let s=`
20
- ${Array(e.tabLevel).join(" ")}`,u=`${s} `;if(!n)t.add(` {${s}}`);else{for(t.add(` {${u}`),i[0].genCSS(e,t),l=1;l<n;l++)t.add(u),i[l].genCSS(e,t);t.add(`${s}}`)}e.tabLevel--}}let{evalFunction:mi,evalTop:gi,evalNested:vi,permute:yi,bubbleSelectors:bi}=et;Object.assign(xe.prototype,{evalFunction:mi,evalTop:gi,evalNested:vi,permute:yi,bubbleSelectors:bi});class Ae extends R{get type(){return"DetachedRuleset"}constructor(e,t){super(),this.ruleset=e,this.frames=t,this.evalFirst=!0,this.setParent(this.ruleset,this)}accept(e){this.ruleset=e.visit(this.ruleset)}eval(e){let t=this.frames||W(e.frames);return new Ae(this.ruleset,t)}callEval(e){return this.ruleset.eval(this.frames?new V.Eval(e,this.frames.concat(e.frames)):e)}}let wi=le;class se extends R{get type(){return"Operation"}constructor(e,t,i){super(),this.op=e.trim(),this.operands=t,this.isSpaced=i}accept(e){this.operands=e.visitArray(this.operands)}eval(e){let t=this.operands[0].eval(e),i=this.operands[1].eval(e),n;if(e.isMathOn(this.op)){if(n=this.op==="./"?"/":this.op,t instanceof E&&i instanceof T&&(t=t.toColor()),i instanceof E&&t instanceof T&&(i=i.toColor()),!t.operate||!i.operate){if((t instanceof se||i instanceof se)&&t.op==="/"&&e.math===wi.PARENS_DIVISION)return new se(this.op,[t,i],this.isSpaced);throw{type:"Operation",message:"Operation on an invalid type"}}return t instanceof E,t.operate(e,n,i)}else return new se(this.op,[t,i],this.isSpaced)}genCSS(e,t){this.operands[0].genCSS(e,t),this.isSpaced&&t.add(" "),t.add(this.op),this.isSpaced&&t.add(" "),this.operands[1].genCSS(e,t)}}class _t{constructor(e,t,i,n){this.name=e.toLowerCase(),this.index=i,this.context=t,this.currentFileInfo=n,this.func=t.frames[0].functionRegistry.get(this.name)}isValid(){return!!this.func}call(e){Array.isArray(e)||(e=[e]);let t=this.func.evalArgs;t!==!1&&(e=e.map(n=>n.eval(this.context)));let i=n=>n.type!=="Comment";return e=e.filter(i).map(n=>{if(n.type==="Expression"){let l=n.value.filter(i);return l.length===1?n.parens&&l[0].op==="/"?n:l[0]:new K(l)}return n}),t===!1?this.func(this.context,...e):this.func(...e)}}class je extends R{get type(){return"Call"}constructor(e,t,i,n){super(),this.name=e,this.args=t,this.calc=e==="calc",this._index=i,this._fileInfo=n}accept(e){this.args&&(this.args=e.visitArray(this.args))}eval(e){let t=e.mathOn;e.mathOn=!this.calc,(this.calc||e.inCalc)&&e.enterCalc();let i=()=>{(this.calc||e.inCalc)&&e.exitCalc(),e.mathOn=t},n,l=new _t(this.name,e,this.getIndex(),this.fileInfo());if(l.isValid())try{n=l.call(this.args),i()}catch(u){throw u.hasOwnProperty("line")&&u.hasOwnProperty("column")?u:{type:u.type||"Runtime",message:`Error evaluating function \`${this.name}\`${u.message?`: ${u.message}`:""}`,index:this.getIndex(),filename:this.fileInfo().filename,line:u.lineNumber,column:u.columnNumber}}if(n!=null)return n instanceof R||(!n||n===!0?n=new B(null):n=new B(n.toString())),n._index=this._index,n._fileInfo=this._fileInfo,n;let s=this.args.map(u=>u.eval(e));return i(),new je(this.name,s,this.getIndex(),this.fileInfo())}genCSS(e,t){t.add(`${this.name}(`,this.fileInfo(),this.getIndex());for(let i=0;i<this.args.length;i++)this.args[i].genCSS(e,t),i+1<this.args.length&&t.add(", ");t.add(")")}}class ae extends R{get type(){return"Variable"}constructor(e,t,i){super(),this.name=e,this._index=t,this._fileInfo=i,this.evaluating=void 0}eval(e){let t,i=this.name;if(i.indexOf("@@")===0&&(i=`@${new ae(i.slice(1),this.getIndex(),this.fileInfo()).eval(e).value}`),this.evaluating)throw{type:"Name",message:`Recursive variable definition for ${i}`,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,function(n){let l=n.variable(i);if(l){if(l.important){let s=e.importantScope[e.importantScope.length-1];s.important=l.important}return e.inCalc?new je("_SELF",[l.value],0,void 0).eval(e):l.value.eval(e)}}),t)return this.evaluating=!1,t;throw{type:"Name",message:`variable ${i} is undefined`,filename:this.fileInfo().filename,index:this.getIndex()}}find(e,t){for(let i=0,n;i<e.length;i++)if(n=t.call(e,e[i]),n)return n;return null}}class Pt extends R{get type(){return"Property"}constructor(e,t,i){super(),this.name=e,this._index=t,this._fileInfo=i,this.evaluating=void 0}eval(e){let t,i=this.name,n=e.pluginManager.less.visitors.ToCSSVisitor.prototype._mergeRules;if(this.evaluating)throw{type:"Name",message:`Recursive property reference for ${i}`,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,function(l){let s,u=l.property(i);if(u){for(let a=0;a<u.length;a++)s=u[a],u[a]=new z(s.name,s.value,s.important,s.merge,s.index,s.currentFileInfo,s.inline,s.variable);if(n(u),s=u[u.length-1],s.important){let a=e.importantScope[e.importantScope.length-1];a.important=s.important}return s=s.value.eval(e),s}}),t)return this.evaluating=!1,t;throw{type:"Name",message:`Property '${i}' is undefined`,filename:this.currentFileInfo.filename,index:this.index}}find(e,t){for(let i=0,n;i<e.length;i++)if(n=t.call(e,e[i]),n)return n;return null}}class tt extends R{get type(){return"Attribute"}constructor(e,t,i,n){super(),this.key=e,this.op=t,this.value=i,this.cif=n}eval(e){return new tt(this.key.eval?this.key.eval(e):this.key,this.op,this.value&&this.value.eval?this.value.eval(e):this.value,this.cif)}genCSS(e,t){t.add(this.toCSS(e))}toCSS(e){let t=this.key.toCSS?this.key.toCSS(e):this.key;return this.op&&(t+=this.op,t+=this.value.toCSS?this.value.toCSS(e):this.value),this.cif&&(t=t+" "+this.cif),`[${t}]`}}class J extends R{get type(){return"Quoted"}constructor(e,t,i,n,l){super(),this.escaped=i===void 0?!0:i,this.value=t||"",this.quote=e.charAt(0),this._index=n,this._fileInfo=l,this.variableRegex=/@\{([\w-]+)\}/g,this.propRegex=/\$\{([\w-]+)\}/g,this.allowRoot=i}genCSS(e,t){this.escaped||t.add(this.quote,this.fileInfo(),this.getIndex()),t.add(this.value),this.escaped||t.add(this.quote)}containsVariables(){return this.value.match(this.variableRegex)}eval(e){let t=this,i=this.value,n=function(u,a,p){let d=new ae(`@${a??p}`,t.getIndex(),t.fileInfo()).eval(e);return d instanceof J?d.value:d.toCSS(e)},l=function(u,a,p){let d=new Pt(`$${a??p}`,t.getIndex(),t.fileInfo()).eval(e);return d instanceof J?d.value:d.toCSS(e)};function s(u,a,p){let d=u;do u=d.toString(),d=u.replace(a,p);while(u!==d);return d}return i=s(i,this.variableRegex,n),i=s(i,this.propRegex,l),new J(this.quote+i+this.quote,i,this.escaped,this.getIndex(),this.fileInfo())}compare(e){return e.type==="Quoted"&&!this.escaped&&!e.escaped?R.numericCompare(this.value,e.value):e.toCSS&&this.toCSS({})===e.toCSS({})?0:void 0}}function Si(r){return r.replace(/[()'"\s]/g,function(e){return`\\${e}`})}class ee extends R{get type(){return"Url"}constructor(e,t,i,n){super(),this.value=e,this._index=t,this._fileInfo=i,this.isEvald=n}accept(e){this.value=e.visit(this.value)}genCSS(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")}eval(e){let t=this.value.eval(e),i;if(!this.isEvald&&(i=this.fileInfo()&&this.fileInfo().rootpath,typeof i=="string"&&typeof t.value=="string"&&e.pathRequiresRewrite(t.value)?(t.quote||(i=Si(i)),t.value=e.rewritePath(t.value,i)):t.value=e.normalizePath(t.value),e.urlArgs&&!t.value.match(/^\s*data:/))){let l=(t.value.indexOf("?")===-1?"?":"&")+e.urlArgs;t.value.indexOf("#")!==-1?t.value=t.value.replace("#",`${l}#`):t.value+=l}return new ee(t,this.getIndex(),this.fileInfo(),!0)}}class Ie extends xe{get type(){return"Media"}constructor(e,t,i,n,l){super(),this._index=i,this._fileInfo=n;let s=new D([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new ie(t),this.rules=[new j(s,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(l),this.allowRoot=!0,this.setParent(s,this),this.setParent(this.features,this),this.setParent(this.rules,this)}genCSS(e,t){t.add("@media ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)}eval(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);let t=new Ie(null,[],this._index,this._fileInfo,this.visibilityInfo());this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo),t.features=this.features.eval(e),e.mediaPath.push(t),e.mediaBlocks.push(t);let i=e.frames[0].functionRegistry;return i&&(this.rules[0].functionRegistry=i.inherit()),e.frames.unshift(this.rules[0]),t.rules=[this.rules[0].eval(e)],e.frames.shift(),e.mediaPath.pop(),e.mediaPath.length===0?t.evalTop(e):t.evalNested(e)}}Object.assign(Ie.prototype,et);class Ue extends R{get type(){return"Import"}constructor(e,t,i,n,l,s){if(super(),this.options=i,this._index=n,this._fileInfo=l,this.path=e,this.features=t,this.allowRoot=!0,this.css=void 0,this.layerCss=void 0,this.root=void 0,this.importedFilename=void 0,this.skip=void 0,this.error=void 0,this.options.less!==void 0||this.options.inline)this.css=!this.options.less||this.options.inline;else{let u=this.getPath();u&&/[#.&?]css([?;].*)?$/.test(u)&&(this.css=!0)}this.copyVisibilityInfo(s),this.features&&this.setParent(this.features,this),this.setParent(this.path,this)}accept(e){this.features&&(this.features=e.visit(this.features)),this.path=e.visit(this.path),!this.options.isPlugin&&!this.options.inline&&this.root&&(this.root=e.visit(this.root))}genCSS(e,t){this.css&&this.path._fileInfo.reference===void 0&&(t.add("@import ",this._fileInfo,this._index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))}getPath(){return this.path instanceof ee?this.path.value.value:this.path.value}isVariableImport(){let e=this.path;return e instanceof ee&&(e=e.value),e instanceof J?e.containsVariables():!0}evalForImport(e){let t=this.path;return t instanceof ee&&(t=t.value),new Ue(t.eval(e),this.features,this.options,this._index||0,this._fileInfo,this.visibilityInfo())}evalPath(e){let t=this.path.eval(e),i=this._fileInfo;if(!(t instanceof ee)){let n=t.value;i&&n&&e.pathRequiresRewrite(n)?t.value=e.rewritePath(n,i.rootpath):t.value=e.normalizePath(t.value)}return t}eval(e){let t=this.doEval(e);return(this.options.reference||this.blocksVisibility())&&(Array.isArray(t)?t.forEach(function(i){i.addVisibilityBlock()}):t.addVisibilityBlock()),t}doEval(e){let t,i=this.features&&this.features.eval(e);if(this.options.isPlugin){if(this.root&&this.root.eval)try{this.root.eval(e)}catch(s){let u=s;throw u.message="Plugin error during evaluation",new O(s,this.root.imports,this.root.filename)}let n=e.frames[0],l=n&&n.functionRegistry;return l&&this.root&&this.root.functions&&l.addMultiple(this.root.functions),[]}if(this.skip&&(typeof this.skip=="function"&&(this.skip=this.skip()),this.skip))return[];if(this.features){let n=this.features.value;if(Array.isArray(n)&&n.length>=1){let l=n[0];l.type==="Expression"&&Array.isArray(l.value)&&l.value.length>=2&&(n=l.value,n[0].type==="Keyword"&&n[0].value==="layer"&&n[1].type==="Paren"&&(this.css=!1))}}if(this.options.inline){let n=new B(this.root,0,{filename:this.importedFilename,reference:this.path._fileInfo&&this.path._fileInfo.reference},!0,!0);return this.features?new Ie([n],this.features.value):[n]}else if(this.css||this.layerCss){let n=new Ue(this.evalPath(e),i,this.options,this._index||0);if(this.layerCss&&(n.css=this.layerCss,n.path._fileInfo=this._fileInfo),!n.css&&this.error)throw this.error;return n}else if(this.root){if(this.features){let n=this.features.value;if(Array.isArray(n)&&n.length===1){let l=n[0];if(l.type==="Expression"&&Array.isArray(l.value)&&l.value.length>=2&&(n=l.value,n[0].type==="Keyword"&&n[0].value==="layer"&&n[1].type==="Paren"))return this.layerCss=!0,n[0]=new K(n.slice(0,2)),n.splice(1,1),n[0].noSpacing=!0,this}}return t=new j(null,W(this.root.rules)),t.evalImports(e),this.features?new Ie(t.rules,this.features.value):t.rules}else{if(this.features){let n=this.features.value;if(Array.isArray(n)&&n.length>=1&&(n=n[0].value,Array.isArray(n)&&n.length>=2&&n[0].type==="Keyword"&&n[0].value==="layer"&&n[1].type==="Paren"))return this.css=!0,n[0]=new K(n.slice(0,2)),n.splice(1,1),n[0].noSpacing=!0,this}return[]}}}class Ci extends R{evaluateJavaScript(e,t){let i,n=this,l={};if(!t.javascriptEnabled)throw{message:"Inline JavaScript is not enabled. Is it set in your options?",filename:this.fileInfo().filename,index:this.getIndex()};e=e.replace(/@\{([\w-]+)\}/g,function(a,p){return n.jsify(new ae(`@${p}`,n.getIndex(),n.fileInfo()).eval(t))});let s;try{s=new Function(`return (${e})`)}catch(a){throw{message:`JavaScript evaluation error: ${a.message} from \`${e}\``,filename:this.fileInfo().filename,index:this.getIndex()}}let u=t.frames[0].variables();for(let a in u)u.hasOwnProperty(a)&&(l[a.slice(1)]={value:u[a].value,toJS:function(){return this.value.eval(t).toCSS(t)}});try{i=s.call(l)}catch(a){throw{message:`JavaScript evaluation error: '${a.name}: ${a.message.replace(/["]/g,"'")}'`,filename:this.fileInfo().filename,index:this.getIndex()}}return i}jsify(e){return Array.isArray(e.value)&&e.value.length>1?`[${e.value.map(function(t){return t.toCSS(void 0)}).join(", ")}]`:e.toCSS(void 0)}}class Ft extends Ci{get type(){return"JavaScript"}constructor(e,t,i,n){super(),this.escaped=t,this.expression=e,this._index=i,this._fileInfo=n}eval(e){let t=this.evaluateJavaScript(this.expression,e),i=typeof t;return i==="number"&&!isNaN(t)?new E(t):i==="string"?new J(`"${t}"`,t,this.escaped,this._index):Array.isArray(t)?new B(t.join(", ")):new B(t)}}class it extends R{get type(){return"Assignment"}constructor(e,t){super(),this.key=e,this.value=t}accept(e){this.value=e.visit(this.value)}eval(e){return this.value.eval?new it(this.key,this.value.eval(e)):this}genCSS(e,t){t.add(`${this.key}=`),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)}}class xi extends R{get type(){return"Condition"}constructor(e,t,i,n,l){super(),this.op=e.trim(),this.lvalue=t,this.rvalue=i,this._index=n,this.negate=l}accept(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)}eval(e){let t=this.lvalue.eval(e),i=this.rvalue.eval(e),n;switch(this.op){case"and":n=!!(t&&i);break;case"or":n=!!(t||i);break;default:switch(R.compare(t,i)){case-1:n=this.op==="<"||this.op==="=<"||this.op==="<=";break;case 0:n=this.op==="="||this.op===">="||this.op==="=<"||this.op==="<=";break;case 1:n=this.op===">"||this.op===">=";break;default:n=!1}}return this.negate?!n:n}}class st extends R{get type(){return"QueryInParens"}constructor(e,t,i,n,l,s){super(),this.op=e.trim(),this.lvalue=t,this.mvalue=i,this.op2=n?n.trim():null,this.rvalue=l,this._index=s}accept(e){this.lvalue=e.visit(this.lvalue),this.mvalue=e.visit(this.mvalue),this.rvalue&&(this.rvalue=e.visit(this.rvalue))}eval(e){return new st(this.op,this.lvalue.eval(e),this.mvalue.eval(e),this.op2,this.rvalue?this.rvalue.eval(e):null,this._index||0)}genCSS(e,t){this.lvalue.genCSS(e,t),t.add(" "+this.op+" "),this.mvalue.genCSS(e,t),this.rvalue&&(t.add(" "+this.op2+" "),this.rvalue.genCSS(e,t))}}class Te extends xe{get type(){return"Container"}constructor(e,t,i,n,l){super(),this._index=i,this._fileInfo=n;let s=new D([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new ie(t),this.rules=[new j(s,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(l),this.allowRoot=!0,this.setParent(s,this),this.setParent(this.features,this),this.setParent(this.rules,this),this._evaluated=void 0}genCSS(e,t){t.add("@container ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)}eval(e){if(this._evaluated)return this;e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);let t=new Te(null,[],this._index,this._fileInfo,this.visibilityInfo());t._evaluated=!0,this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo),t.features=this.features.eval(e),e.mediaPath.push(t),e.mediaBlocks.push(t);let i=e.frames[0].functionRegistry;return i&&(this.rules[0].functionRegistry=i.inherit()),e.frames.unshift(this.rules[0]),t.rules=[this.rules[0].eval(e)],e.frames.shift(),e.mediaPath.pop(),e.mediaPath.length===0?t.evalTop(e):t.evalNested(e)}}Object.assign(Te.prototype,et);class Ai extends R{get type(){return"UnicodeDescriptor"}constructor(e){super(),this.value=e}}class nt extends R{get type(){return"Negative"}constructor(e){super(),this.value=e}genCSS(e,t){t.add("-"),this.value.genCSS(e,t)}eval(e){return e.isMathOn("*")?new se("*",[new E(-1),this.value],!1).eval(e):new nt(this.value.eval(e))}}class ke extends R{get type(){return"Extend"}constructor(e,t,i,n,l){switch(super(),this.selector=e,this.option=t,this.object_id=ke.next_id++,this.parent_ids=[this.object_id],this._index=i,this._fileInfo=n,this.copyVisibilityInfo(l),this.allowRoot=!0,this.allowBefore=!1,this.allowAfter=!1,t){case"!all":case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1;break}this.setParent(this.selector,this)}accept(e){this.selector=e.visit(this.selector)}eval(e){return new ke(this.selector.eval(e),this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())}clone(e){return new ke(this.selector,this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())}findSelfSelectors(e){let t=[],i,n;for(i=0;i<e.length;i++)n=e[i].elements,i>0&&n.length&&n[0].combinator.value===""&&(n[0].combinator.value=" "),t=t.concat(e[i].elements);this.selfSelectors=[new D(t)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())}}ke.next_id=0;class Ii extends R{get type(){return"VariableCall"}constructor(e,t,i){super(),this.variable=e,this._index=t,this._fileInfo=i,this.allowRoot=!0}eval(e){let t,i=new ae(this.variable,this.getIndex(),this.fileInfo()).eval(e),n=new O({message:`Could not evaluate variable call ${this.variable}`});if(!i.ruleset){if(i.rules)t=i;else if(Array.isArray(i))t=new j(null,i);else if(Array.isArray(i.value))t=new j(null,i.value);else throw n;i=new Ae(t)}let l=i;if(l.ruleset)return l.callEval(e);throw n}}class ki extends R{get type(){return"NamespaceValue"}constructor(e,t,i,n){super(),this.value=e,this.lookups=t,this._index=i,this._fileInfo=n}eval(e){let t,i,n=this.value.eval(e);for(t=0;t<this.lookups.length;t++){i=this.lookups[t],Array.isArray(n)&&(n=new j([new D],n));let l=n;if(i==="")n=l.lastDeclaration();else if(i.charAt(0)==="@"){if(i.charAt(1)==="@"&&(i=`@${new ae(i.slice(1)).eval(e).value}`),l.variables&&(n=l.variable(i)),!n)throw{type:"Name",message:`variable ${i} not found`,filename:this.fileInfo().filename,index:this.getIndex()}}else{if(i.substring(0,2)==="$@"?i=`$${new ae(i.slice(1)).eval(e).value}`:i=i.charAt(0)==="$"?i:`$${i}`,l.properties&&(n=l.property(i)),!n)throw{type:"Name",message:`property "${i.slice(1)}" not found`,filename:this.fileInfo().filename,index:this.getIndex()};let a=n;n=a[a.length-1]}let s=n;s.value&&(n=s.eval(e).value);let u=n;u.ruleset&&(n=u.ruleset.eval(e))}return n}}class ve extends j{get type(){return"MixinDefinition"}constructor(e,t,i,n,l,s,u){super(null,null),this.name=e||"anonymous mixin",this.selectors=[new D([new Y(null,e,!1,this._index,this._fileInfo)])],this.params=t,this.condition=n,this.variadic=l,this.arity=t.length,this.rules=i,this._lookups={};let a=[];this.required=t.reduce(function(p,d){return!d.name||d.name&&!d.value?p+1:(a.push(d.name),p)},0),this.optionalParameters=a,this.frames=s,this.copyVisibilityInfo(u),this.allowRoot=!0,this.evalFirst=!0}accept(e){this.params&&this.params.length&&(this.params=e.visitArray(this.params)),this.rules=e.visitArray(this.rules),this.condition&&(this.condition=e.visit(this.condition))}evalParams(e,t,i,n){let l=new j(null,null),s,u,a=W(this.params),p,d,g,v,k,A,y=0;if(t.frames&&t.frames[0]&&t.frames[0].functionRegistry&&(l.functionRegistry=t.frames[0].functionRegistry.inherit()),t=new V.Eval(t,[l].concat(t.frames)),i){for(i=W(i),y=i.length,p=0;p<y;p++)if(u=i[p],v=u&&u.name){for(k=!1,d=0;d<a.length;d++)if(!n[d]&&v===a[d].name){n[d]=u.value.eval(e),l.prependRule(new z(v,u.value.eval(e))),k=!0;break}if(k){i.splice(p,1),p--;continue}else throw{type:"Runtime",message:`Named argument for ${this.name} ${i[p].name} not found`}}}for(A=0,p=0;p<a.length;p++)if(!n[p]){if(u=i&&i[A],v=a[p].name)if(a[p].variadic){for(s=[],d=A;d<y;d++)s.push(i[d].value.eval(e));l.prependRule(new z(v,new K(s).eval(e)))}else{if(g=u&&u.value,g)Array.isArray(g)?g=new Ae(new j(null,g)):g=g.eval(e);else if(a[p].value)g=a[p].value.eval(t),l.resetCache();else throw{type:"Runtime",message:`wrong number of arguments for ${this.name} (${y} for ${this.arity})`};l.prependRule(new z(v,g)),n[p]=g}if(a[p].variadic&&i)for(d=A;d<y;d++)n[d]=i[d].value.eval(e);A++}return l}makeImportant(){let e=this.rules?this.rules.map(function(i){return i.makeImportant?i.makeImportant(!0):i}):this.rules;return new ve(this.name,this.params,e,this.condition,this.variadic,this.frames)}eval(e){return new ve(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||W(e.frames))}evalCall(e,t,i){let n=[],l=this.frames?this.frames.concat(e.frames):e.frames,s=this.evalParams(e,new V.Eval(e,l),t,n),u,a;return s.prependRule(new z("@arguments",new K(n).eval(e))),u=W(this.rules),a=new j(null,u),a.originalRuleset=this,a=a.eval(new V.Eval(e,[this,s].concat(l))),i&&(a=a.makeImportant()),a}matchCondition(e,t){return!(this.condition&&!this.condition.eval(new V.Eval(t,[this.evalParams(t,new V.Eval(t,this.frames?this.frames.concat(t.frames):t.frames),e,[])].concat(this.frames||[]).concat(t.frames))))}matchArgs(e,t){let i=e&&e.length||0,n,l=this.optionalParameters,s=e?e.reduce(function(u,a){return l.indexOf(a.name)<0?u+1:u},0):0;if(this.variadic){if(s<this.required-1)return!1}else if(s<this.required||i>this.params.length)return!1;n=Math.min(s,this.arity);for(let u=0;u<n;u++)if(!this.params[u].name&&!this.params[u].variadic&&e[u].value.eval(t).toCSS({})!=this.params[u].value.eval(t).toCSS({}))return!1;return!0}}class $i extends R{get type(){return"MixinCall"}constructor(e,t,i,n,l){super(),this.selector=new D(e),this.arguments=t||[],this._index=i,this._fileInfo=n,this.important=l,this.allowRoot=!0,this.setParent(this.selector,this)}accept(e){this.selector&&(this.selector=e.visit(this.selector)),this.arguments.length&&(this.arguments=e.visitArray(this.arguments))}eval(e){let t,i,n,l=[],s,u,a=[],p=!1,d,g,v,k,A,y=[],o,c=[],f,h=-1,m=0,b=1,w=2,I,x,$;this.selector=this.selector.eval(e);function M(C,_){let F,L,P;for(F=0;F<2;F++){for(c[F]=!0,Ce.value(F),L=0;L<_.length&&c[F];L++)P=_[L],P.matchCondition&&(c[F]=c[F]&&P.matchCondition(null,e));C.matchCondition&&(c[F]=c[F]&&C.matchCondition(l,e))}return c[0]||c[1]?c[0]!=c[1]?c[1]?b:w:m:h}for(d=0;d<this.arguments.length;d++)if(s=this.arguments[d],u=s.value.eval(e),s.expand&&Array.isArray(u.value)){let C=u.value;for(g=0;g<C.length;g++)l.push({value:C[g]})}else l.push({name:s.name,value:u});for($=function(C){return C.matchArgs(null,e)},d=0;d<e.frames.length;d++)if((t=e.frames[d].find(this.selector,null,$)).length>0){for(A=!0,g=0;g<t.length;g++){for(i=t[g].rule,n=t[g].path,k=!1,v=0;v<e.frames.length;v++)if(!(i instanceof ve)&&i===(e.frames[v].originalRuleset||e.frames[v])){k=!0;break}k||i.matchArgs(l,e)&&(o={mixin:i,group:M(i,n)},o.group!==h&&y.push(o),p=!0)}for(Ce.reset(),I=[0,0,0],g=0;g<y.length;g++)I[y[g].group]++;if(I[m]>0)f=w;else if(f=b,I[b]+I[w]>1)throw{type:"Runtime",message:`Ambiguous use of \`default()\` found when matching for \`${this.format(l)}\``,index:this.getIndex(),filename:this.fileInfo().filename};for(g=0;g<y.length;g++)if(o=y[g].group,o===m||o===f)try{i=y[g].mixin,i instanceof ve||(x=i.originalRuleset||i,i=new ve("",[],i.rules,null,!1,null,x.visibilityInfo()),i.originalRuleset=x);let C=i.evalCall(e,l,this.important).rules;this._setVisibilityToReplacement(C),Array.prototype.push.apply(a,C)}catch(C){throw{...C,index:this.getIndex(),filename:this.fileInfo().filename}}if(p)return a}throw A?{type:"Runtime",message:`No matching definition was found for \`${this.format(l)}\``,index:this.getIndex(),filename:this.fileInfo().filename}:{type:"Name",message:`${this.selector.toCSS({}).trim()} is undefined`,index:this.getIndex(),filename:this.fileInfo().filename}}_setVisibilityToReplacement(e){let t,i;if(this.blocksVisibility())for(t=0;t<e.length;t++)i=e[t],i.addVisibilityBlock()}format(e){return`${this.selector.toCSS({}).trim()}(${e?e.map(function(t){let i="";return t.name&&(i+=`${t.name}:`),t.value.toCSS?i+=t.value.toCSS({}):i+="???",i}).join(", "):""})`}}var S={Node:R,Color:T,AtRule:xe,DetachedRuleset:Ae,Operation:se,Dimension:E,Unit:Pe,Keyword:N,Variable:ae,Property:Pt,Ruleset:j,Element:Y,Attribute:tt,Combinator:Ke,Selector:D,Quoted:J,Expression:K,Declaration:z,Call:je,URL:ee,Import:Ue,Comment:Be,Anonymous:B,Value:ie,JavaScript:Ft,Assignment:it,Condition:xi,Paren:ce,Media:Ie,Container:Te,QueryInParens:st,UnicodeDescriptor:Ai,Negative:nt,Extend:ke,VariableCall:Ii,NamespaceValue:ki,mixin:{Call:$i,Definition:ve}};class Ot{getPath(e){let t=e.lastIndexOf("?");return t>0&&(e=e.slice(0,t)),t=e.lastIndexOf("/"),t<0&&(t=e.lastIndexOf("\\")),t<0?"":e.slice(0,t+1)}tryAppendExtension(e,t){return/(\.[a-z]*$)|([?;].*)$/.test(e)?e:e+t}tryAppendLessExtension(e){return this.tryAppendExtension(e,".less")}supportsSync(){return!1}alwaysMakePathsAbsolute(){return!1}isPathAbsolute(e){return/^(?:[a-z-]+:|\/|\\|#)/i.test(e)}join(e,t){return e?e+t:t}pathDiff(e,t){let i=this.extractUrlParts(e),n=this.extractUrlParts(t),l,s,u,a,p="";if(i.hostPart!==n.hostPart)return"";for(s=Math.max(n.directories.length,i.directories.length),l=0;l<s&&n.directories[l]===i.directories[l];l++);for(a=n.directories.slice(l),u=i.directories.slice(l),l=0;l<a.length-1;l++)p+="../";for(l=0;l<u.length-1;l++)p+=`${u[l]}/`;return p}extractUrlParts(e,t){let i=/^((?:[a-z-]+:)?\/{2}(?:[^/?#]*\/)|([/\\]))?((?:[^/\\?#]*[/\\])*)([^/\\?#]*)([#?].*)?$/i,n=e.match(i),l={},s=[],u=[],a,p;if(!n)throw new Error(`Could not parse sheet href - '${e}'`);if(t&&(!n[1]||n[2])){if(p=t.match(i),!p)throw new Error(`Could not parse page url - '${t}'`);n[1]=n[1]||p[1]||"",n[2]||(n[3]=p[3]+n[3])}if(n[3])for(s=n[3].replace(/\\/g,"/").split("/"),a=0;a<s.length;a++)s[a]===".."?u.pop():s[a]!=="."&&u.push(s[a]);return l.hostPart=n[1],l.directories=u,l.rawPath=(n[1]||"")+s.join("/"),l.path=(n[1]||"")+u.join("/"),l.filename=n[4],l.fileUrl=l.path+(n[4]||""),l.url=l.fileUrl+(n[5]||""),l}}class Lt{constructor(){this.require=function(){return null}}evalPlugin(e,t,i,n,l){let s,u,a,p,d,g,v;d=t.pluginManager,l&&(typeof l=="string"?g=l:g=l.filename);let k=new this.less.FileManager().extractUrlParts(g).filename;if(g&&(a=d.get(g),a)){if(v=this.trySetOptions(a,g,k,n),v)return v;try{a.use&&a.use.call(this.context,a)}catch(y){return y.message=y.message||"Error during @plugin call",new O(y,i,g)}return a}p={exports:{},pluginManager:d,fileInfo:l},u=G.create();let A=function(y){a=y};try{s=new Function("module","require","registerPlugin","functions","tree","less","fileInfo",e),s(p,this.require(g),A,u,this.less.tree,this.less,l)}catch(y){return new O(y,i,g)}if(a||(a=p.exports),a=this.validatePlugin(a,g,k),a instanceof O)return a;if(a){if(a.imports=i,a.filename=g,(!a.minVersion||this.compareVersion("3.0.0",a.minVersion)<0)&&(v=this.trySetOptions(a,g,k,n),v)||(d.addPlugin(a,l.filename,u),a.functions=u.getLocalFunctions(),v=this.trySetOptions(a,g,k,n),v))return v;try{a.use&&a.use.call(this.context,a)}catch(y){return y.message=y.message||"Error during @plugin call",new O(y,i,g)}}else return new O({message:"Not a valid plugin"},i,g);return a}trySetOptions(e,t,i,n){if(n&&!e.setOptions)return new O({message:`Options have been provided but the plugin ${i} does not support any options.`});try{e.setOptions&&e.setOptions(n)}catch(l){return new O(l)}}validatePlugin(e,t,i){return e?(typeof e=="function"&&(e=new e),e.minVersion&&this.compareVersion(e.minVersion,this.less.version)<0?new O({message:`Plugin ${i} requires version ${this.versionToString(e.minVersion)}`}):e):null}compareVersion(e,t){typeof e=="string"&&(e=e.match(/^(\d+)\.?(\d+)?\.?(\d+)?/),e.shift());for(let i=0;i<e.length;i++)if(e[i]!==t[i])return parseInt(e[i])>parseInt(t[i])?-1:1;return 0}versionToString(e){let t="";for(let i=0;i<e.length;i++)t+=(t?".":"")+e[i];return t}printUsage(e){for(let t=0;t<e.length;t++){let i=e[t];i.printUsage&&i.printUsage()}}}function Ei(r){return r?N.True:N.False}function Vt(r,e,t,i){return e.eval(r)?t.eval(r):i?i.eval(r):new B}Vt.evalArgs=!1;function Dt(r,e){try{return e.eval(r),N.True}catch{return N.False}}Dt.evalArgs=!1;var Ri={isdefined:Dt,boolean:Ei,if:Vt};let Z;function ne(r){return Math.min(1,Math.max(0,r))}function fe(r,e){let t=Z.hsla(e.h,e.s,e.l,e.a);if(t)return r.value&&/^(rgb|hsl)/.test(r.value)?t.value=r.value:t.value="rgb",t}function Q(r){if(r.toHSL)return r.toHSL();throw new Error("Argument cannot be evaluated to a color")}function rt(r){if(r.toHSV)return r.toHSV();throw new Error("Argument cannot be evaluated to a color")}function X(r){if(r instanceof E)return parseFloat(r.unit.is("%")?r.value/100:r.value);if(typeof r=="number")return r;throw{type:"Argument",message:"color functions take numbers as parameters"}}function Mi(r,e){return r instanceof E&&r.unit.is("%")?parseFloat(r.value*e/100):X(r)}Z={rgb:function(r,e,t){let i=1;if(r instanceof K){let l=r.value;if(r=l[0],e=l[1],t=l[2],t instanceof se){let s=t;t=s.operands[0],i=s.operands[1]}}let n=Z.rgba(r,e,t,i);if(n)return n.value="rgb",n},rgba:function(r,e,t,i){try{if(r instanceof T)return e?i=X(e):i=r.alpha,new T(r.rgb,i,"rgba");let n=[r,e,t].map(l=>Mi(l,255));return i=X(i),new T(n,i,"rgba")}catch{}},hsl:function(r,e,t){let i=1;if(r instanceof K){let l=r.value;if(r=l[0],e=l[1],t=l[2],t instanceof se){let s=t;t=s.operands[0],i=s.operands[1]}}let n=Z.hsla(r,e,t,i);if(n)return n.value="hsl",n},hsla:function(r,e,t,i){let n,l;function s(u){return u=u<0?u+1:u>1?u-1:u,u*6<1?n+(l-n)*u*6:u*2<1?l:u*3<2?n+(l-n)*(2/3-u)*6:n}try{if(r instanceof T)return e?i=X(e):i=r.alpha,new T(r.rgb,i,"hsla");r=X(r)%360/360,e=ne(X(e)),t=ne(X(t)),i=ne(X(i)),l=t<=.5?t*(e+1):t+e-t*e,n=t*2-l;let u=[s(r+1/3)*255,s(r)*255,s(r-1/3)*255];return i=X(i),new T(u,i,"hsla")}catch{}},hsv:function(r,e,t){return Z.hsva(r,e,t,1)},hsva:function(r,e,t,i){r=X(r)%360/360*360,e=X(e),t=X(t),i=X(i);let n,l;n=Math.floor(r/60%6),l=r/60-n;let s=[t,t*(1-e),t*(1-l*e),t*(1-(1-l)*e)],u=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return Z.rgba(s[u[n][0]]*255,s[u[n][1]]*255,s[u[n][2]]*255,i)},hue:function(r){return new E(Q(r).h)},saturation:function(r){return new E(Q(r).s*100,"%")},lightness:function(r){return new E(Q(r).l*100,"%")},hsvhue:function(r){return new E(rt(r).h)},hsvsaturation:function(r){return new E(rt(r).s*100,"%")},hsvvalue:function(r){return new E(rt(r).v*100,"%")},red:function(r){return new E(r.rgb[0])},green:function(r){return new E(r.rgb[1])},blue:function(r){return new E(r.rgb[2])},alpha:function(r){return new E(Q(r).a)},luma:function(r){return new E(r.luma()*r.alpha*100,"%")},luminance:function(r){let e=.2126*r.rgb[0]/255+.7152*r.rgb[1]/255+.0722*r.rgb[2]/255;return new E(e*r.alpha*100,"%")},saturate:function(r,e,t){if(!r.rgb)return null;let i=Q(r);return typeof t<"u"&&t.value==="relative"?i.s+=i.s*e.value/100:i.s+=e.value/100,i.s=ne(i.s),fe(r,i)},desaturate:function(r,e,t){let i=Q(r);return typeof t<"u"&&t.value==="relative"?i.s-=i.s*e.value/100:i.s-=e.value/100,i.s=ne(i.s),fe(r,i)},lighten:function(r,e,t){let i=Q(r);return typeof t<"u"&&t.value==="relative"?i.l+=i.l*e.value/100:i.l+=e.value/100,i.l=ne(i.l),fe(r,i)},darken:function(r,e,t){let i=Q(r);return typeof t<"u"&&t.value==="relative"?i.l-=i.l*e.value/100:i.l-=e.value/100,i.l=ne(i.l),fe(r,i)},fadein:function(r,e,t){let i=Q(r);return typeof t<"u"&&t.value==="relative"?i.a+=i.a*e.value/100:i.a+=e.value/100,i.a=ne(i.a),fe(r,i)},fadeout:function(r,e,t){let i=Q(r);return typeof t<"u"&&t.value==="relative"?i.a-=i.a*e.value/100:i.a-=e.value/100,i.a=ne(i.a),fe(r,i)},fade:function(r,e){let t=Q(r);return t.a=e.value/100,t.a=ne(t.a),fe(r,t)},spin:function(r,e){let t=Q(r),i=(t.h+e.value)%360;return t.h=i<0?360+i:i,fe(r,t)},mix:function(r,e,t){t||(t=new E(50));let i=t.value/100,n=i*2-1,l=Q(r).a-Q(e).a,s=((n*l==-1?n:(n+l)/(1+n*l))+1)/2,u=1-s,a=[r.rgb[0]*s+e.rgb[0]*u,r.rgb[1]*s+e.rgb[1]*u,r.rgb[2]*s+e.rgb[2]*u],p=r.alpha*i+e.alpha*(1-i);return new T(a,p)},greyscale:function(r){return Z.desaturate(r,new E(100))},contrast:function(r,e,t,i){if(!r.rgb)return null;if(typeof t>"u"&&(t=Z.rgba(255,255,255,1)),typeof e>"u"&&(e=Z.rgba(0,0,0,1)),e.luma()>t.luma()){let n=t;t=e,e=n}return typeof i>"u"?i=.43:i=X(i),r.luma()<i?t:e},argb:function(r){return new B(r.toARGB())},color:function(r){if(r instanceof J&&/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})$/i.test(r.value)){let e=r.value.slice(1);return new T(e,void 0,`#${e}`)}if(r instanceof T||(r=T.fromKeyword(r.value)))return r.value=void 0,r;throw{type:"Argument",message:"argument must be a color keyword or 3|4|6|8 digit hex e.g. #FFF"}},tint:function(r,e){return Z.mix(Z.rgb(255,255,255),r,e)},shade:function(r,e){return Z.mix(Z.rgb(0,0,0),r,e)}};var _i=Z;function lt(r,e,t){let i=e.alpha,n,l=t.alpha,s,u,a,p=[];u=l+i*(1-l);for(let d=0;d<3;d++)n=e.rgb[d]/255,s=t.rgb[d]/255,a=r(n,s),u&&(a=(l*s+i*(n-l*(n+s-a)))/u),p[d]=a*255;return new T(p,u)}let $e={multiply:function(r,e){return r*e},screen:function(r,e){return r+e-r*e},overlay:function(r,e){return r*=2,r<=1?$e.multiply(r,e):$e.screen(r-1,e)},softlight:function(r,e){let t=1,i=r;return e>.5&&(i=1,t=r>.25?Math.sqrt(r):((16*r-12)*r+4)*r),r-(1-2*e)*i*(t-r)},hardlight:function(r,e){return $e.overlay(e,r)},difference:function(r,e){return Math.abs(r-e)},exclusion:function(r,e){return r+e-2*r*e},average:function(r,e){return(r+e)/2},negation:function(r,e){return 1-Math.abs(r+e-1)}};for(let r in $e)$e.hasOwnProperty(r)&&(lt[r]=lt.bind(null,$e[r]));var Pi=r=>{let e=(t,i)=>new ee(i,t.index,t.currentFileInfo).eval(t.context);return{"data-uri":function(t,i){i||(i=t,t=null);let n=t&&t.value,l=i.value,s=this.currentFileInfo,u=s.rewriteUrls?s.currentDirectory:s.entryPath,a=l.indexOf("#"),p="";a!==-1&&(p=l.slice(a),l=l.slice(0,a));let d=Je(this.context);d.rawBuffer=!0;let g=r.getFileManager(l,u,d,r,!0);if(!g)return e(this,i);let v=!1;if(t)v=/;base64$/.test(n);else{if(n=r.mimeLookup(l),n==="image/svg+xml")v=!1;else{let o=r.charsetLookup(n);v=["US-ASCII","UTF-8"].indexOf(o)<0}v&&(n+=";base64")}let k=g.loadFileSync(l,u,d,r);if(!k.contents)return ue.warn(`Skipped data-uri embedding of ${l} because file not found`),e(this,i||t);let A=k.contents;if(v&&!r.encodeBase64)return e(this,i);A=v?r.encodeBase64(A):encodeURIComponent(A);let y=`data:${n},${A}${p}`;return new ee(new J(`"${y}"`,y,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}};let Bt=r=>Array.isArray(r.value)?r.value:Array(r);var Fi={_SELF:function(r){return r},"~":function(...r){return r.length===1?r[0]:new ie(r)},extract:function(r,e){return e=e.value-1,Bt(r)[e]},length:function(r){return new E(Bt(r).length)},range:function(r,e,t){let i,n,l=1,s=[];e?(n=e,i=r.value,t&&(l=t.value)):(i=1,n=r);for(let u=i;u<=n.value;u+=l)s.push(new E(u,n.unit));return new K(s)},each:function(r,e){let t=[],i,n,l=p=>p instanceof R?p.eval(this.context):p;r.value&&!(r instanceof J)?Array.isArray(r.value)?n=r.value.map(l):n=[l(r.value)]:r.ruleset?n=l(r.ruleset).rules:r.rules?n=r.rules.map(l):Array.isArray(r)?n=r.map(l):n=[l(r)];let s="@value",u="@key",a="@index";e.params?(s=e.params[0]&&e.params[0].name,u=e.params[1]&&e.params[1].name,a=e.params[2]&&e.params[2].name,e=e.rules):e=e.ruleset;for(let p=0;p<n.length;p++){let d,g,v=n[p];v instanceof z?(d=typeof v.name=="string"?v.name:v.name[0].value,g=v.value):(d=new E(p+1),g=v),!(v instanceof Be)&&(i=e.rules.slice(0),s&&i.push(new z(s,g,!1,!1,this.index,this.currentFileInfo)),a&&i.push(new z(a,new E(p+1),!1,!1,this.index,this.currentFileInfo)),u&&i.push(new z(u,d,!1,!1,this.index,this.currentFileInfo)),t.push(new j([new D([new Y("","&")])],i,e.strictImports,e.visibilityInfo())))}return new j([new D([new Y("","&")])],t,e.strictImports,e.visibilityInfo()).eval(this.context)}};let at=(r,e,t)=>{if(!(t instanceof E))throw{type:"Argument",message:"argument must be a number"};return e===null?e=t.unit:t=t.unify(),new E(r(parseFloat(t.value)),e)},Ee={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};for(let r in Ee)Ee.hasOwnProperty(r)&&(Ee[r]=at.bind(null,Math[r],Ee[r]));Ee.round=(r,e)=>{let t=typeof e>"u"?0:e.value;return at(i=>i.toFixed(t),null,r)};let jt=function(r,e){if(e=Array.prototype.slice.call(e),e.length===0)throw{type:"Argument",message:"one or more arguments required"};let t,i,n,l,s,u,a,p,d=[],g={};for(t=0;t<e.length;t++){if(n=e[t],!(n instanceof E))if(Array.isArray(e[t].value)){Array.prototype.push.apply(e,Array.prototype.slice.call(e[t].value));continue}else throw{type:"Argument",message:"incompatible types"};if(l=n.unit.toString()===""&&p!==void 0?new E(n.value,p).unify():n.unify(),u=l.unit.toString()===""&&a!==void 0?a:l.unit.toString(),a=u!==""&&a===void 0||u!==""&&d[0].unify().unit.toString()===""?u:a,p=u!==""&&p===void 0?n.unit.toString():p,i=g[""]!==void 0&&u!==""&&u===a?g[""]:g[u],i===void 0){if(a!==void 0&&u!==a)throw{type:"Argument",message:"incompatible types"};g[u]=d.length,d.push(n);continue}s=d[i].unit.toString()===""&&p!==void 0?new E(d[i].value,p).unify():d[i].unify(),(r&&l.value<s.value||!r&&l.value>s.value)&&(d[i]=n)}return d.length==1?d[0]:(e=d.map(v=>v.toCSS(this.context)).join(this.context.compress?",":", "),new B(`${r?"min":"max"}(${e})`))};var Oi={min:function(...r){try{return jt.call(this,!0,r)}catch{}},max:function(...r){try{return jt.call(this,!1,r)}catch{}},convert:function(r,e){return r.convertTo(e.value)},pi:function(){return new E(Math.PI)},mod:function(r,e){return new E(r.value%e.value,r.unit)},pow:function(r,e){if(typeof r=="number"&&typeof e=="number")r=new E(r),e=new E(e);else if(!(r instanceof E)||!(e instanceof E))throw{type:"Argument",message:"arguments must be numbers"};return new E(Math.pow(r.value,e.value),r.unit)},percentage:function(r){return at(t=>t*100,"%",r)}},Li={e:function(r){return new J('"',r instanceof Ft?r.evaluated:r.value,!0)},escape:function(r){return new B(encodeURI(r.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},replace:function(r,e,t,i){let n=r.value;return t=t.type==="Quoted"?t.value:t.toCSS(),n=n.replace(new RegExp(e.value,i?i.value:""),t),new J(r.quote||"",n,r.escaped)},"%":function(r){let e=Array.prototype.slice.call(arguments,1),t=r.value;for(let i=0;i<e.length;i++)t=t.replace(/%[sda]/i,n=>{let l=e[i].type==="Quoted"&&n.match(/s/i)?e[i].value:e[i].toCSS();return n.match(/[A-Z]$/)?encodeURIComponent(l):l});return t=t.replace(/%%/g,"%"),new J(r.quote||"",t,r.escaped)}},Vi=()=>({"svg-gradient":function(r){let e,t,i="linear",n='x="0" y="0" width="1" height="1"',l={compress:!1},s,u=r.toCSS(l),a,p,d,g,v;function k(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list"}}switch(arguments.length==2?(arguments[1].value.length<2&&k(),e=arguments[1].value):arguments.length<3?k():e=Array.prototype.slice.call(arguments,1),u){case"to bottom":t='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":t='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":t='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":t='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":i="radial",t='cx="50%" cy="50%" r="75%"',n='x="-50" y="-50" width="101" height="101"';break;default:throw{type:"Argument",message:"svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center'"}}for(s=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><${i}Gradient id="g" ${t}>`,a=0;a<e.length;a+=1)e[a]instanceof K?(p=e[a].value[0],d=e[a].value[1]):(p=e[a],d=void 0),(!(p instanceof T)||!((a===0||a+1===e.length)&&d===void 0)&&!(d instanceof E))&&k(),g=d?d.toCSS(l):a===0?"0%":"100%",v=p.alpha,s+=`<stop offset="${g}" stop-color="${p.toRGB()}"${v<1?` stop-opacity="${v}"`:""}/>`;return s+=`</${i}Gradient><rect ${n} fill="url(#g)" /></svg>`,s=encodeURIComponent(s),s=`data:image/svg+xml,${s}`,new ee(new J(`'${s}'`,s,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}});let Re=(r,e)=>r instanceof e?N.True:N.False,qe=(r,e)=>{if(e===void 0)throw{type:"Argument",message:"missing the required second argument to isunit."};if(e=typeof e.value=="string"?e.value:e,typeof e!="string")throw{type:"Argument",message:"Second argument to isunit should be a unit or a string."};return r instanceof E&&r.unit.is(e)?N.True:N.False};var Di={isruleset:function(r){return Re(r,Ae)},iscolor:function(r){return Re(r,T)},isnumber:function(r){return Re(r,E)},isstring:function(r){return Re(r,J)},iskeyword:function(r){return Re(r,N)},isurl:function(r){return Re(r,ee)},ispixel:function(r){return qe(r,"px")},ispercentage:function(r){return qe(r,"%")},isem:function(r){return qe(r,"em")},isunit:qe,unit:function(r,e){if(!(r instanceof E))throw{type:"Argument",message:`the first argument to unit must be a number${r instanceof se?". Have you forgotten parenthesis?":""}`};return e?e instanceof N?e=e.value:e=e.toCSS():e="",new E(r.value,e)},"get-unit":function(r){return new B(r.unit)}};let Bi=function(r){if(r=Array.prototype.slice.call(r),r.length===0)throw{type:"Argument",message:"one or more arguments required"};let t=[new ae(r[0].value,this.index,this.currentFileInfo).eval(this.context)].map(i=>i.toCSS(this.context)).join(this.context.compress?",":", ");return new B(`style(${t})`)};var ji={style:function(...r){try{return Bi.call(this,r)}catch{}}},Ui=r=>{let e={functionRegistry:G,functionCaller:_t};return G.addMultiple(Ri),G.add("default",Ce.eval.bind(Ce)),G.addMultiple(_i),G.addMultiple(lt),G.addMultiple(Pi(r)),G.addMultiple(Fi),G.addMultiple(Ee),G.addMultiple(Oi),G.addMultiple(Li),G.addMultiple(Vi()),G.addMultiple(Di),G.addMultiple(ji),e};function Ut(r,e){e=e||{};let t,i=e.variables,n=new V.Eval(e);typeof i=="object"&&!Array.isArray(i)&&(i=Object.keys(i).map(function(p){let d=i[p];return d instanceof S.Value||(d instanceof S.Expression||(d=new S.Expression([d])),d=new S.Value([d])),new S.Declaration(`@${p}`,d,!1,null,0)}),n.frames=[new S.Ruleset(null,i)]);let l=[new Se.JoinSelectorVisitor,new Se.MarkVisibleSelectorsVisitor(!0),new Se.ExtendVisitor,new Se.ToCSSVisitor({compress:!!e.compress})],s=[],u,a;if(e.pluginManager){a=e.pluginManager.visitor();for(let p=0;p<2;p++)for(a.first();u=a.get();)u.isPreEvalVisitor?(p===0||s.indexOf(u)===-1)&&(s.push(u),u.run(r)):(p===0||l.indexOf(u)===-1)&&(u.isPreVisitor?l.unshift(u):l.push(u))}t=r.eval(n);for(let p=0;p<l.length;p++)l[p].run(t);if(e.pluginManager)for(a.first();u=a.get();)l.indexOf(u)===-1&&s.indexOf(u)===-1&&u.run(t);return t}class Ti{constructor(e){this.less=e,this.visitors=[],this.preProcessors=[],this.postProcessors=[],this.installedPlugins=[],this.fileManagers=[],this.iterator=-1,this.pluginCache={},this.Loader=new e.PluginLoader(e)}addPlugins(e){if(e)for(let t=0;t<e.length;t++)this.addPlugin(e[t])}addPlugin(e,t,i){this.installedPlugins.push(e),t&&(this.pluginCache[t]=e),e.install&&e.install(this.less,this,i||this.less.functions.functionRegistry)}get(e){return this.pluginCache[e]}addVisitor(e){this.visitors.push(e)}addPreProcessor(e,t){let i;for(i=0;i<this.preProcessors.length&&!(this.preProcessors[i].priority>=t);i++);this.preProcessors.splice(i,0,{preProcessor:e,priority:t})}addPostProcessor(e,t){let i;for(i=0;i<this.postProcessors.length&&!(this.postProcessors[i].priority>=t);i++);this.postProcessors.splice(i,0,{postProcessor:e,priority:t})}addFileManager(e){this.fileManagers.push(e)}getPreProcessors(){let e=[];for(let t=0;t<this.preProcessors.length;t++)e.push(this.preProcessors[t].preProcessor);return e}getPostProcessors(){let e=[];for(let t=0;t<this.postProcessors.length;t++)e.push(this.postProcessors[t].postProcessor);return e}getVisitors(){return this.visitors}visitor(){let e=this;return{first:function(){return e.iterator=-1,e.visitors[e.iterator]},get:function(){return e.iterator+=1,e.visitors[e.iterator]}}}getFileManagers(){return this.fileManagers}}let ot,Tt=function(r,e){return(e||!ot)&&(ot=new Ti(r)),ot};function qi(r){class e{constructor(i){this._css=[],this._rootNode=i.rootNode,this._contentsMap=i.contentsMap,this._contentsIgnoredCharsMap=i.contentsIgnoredCharsMap,i.sourceMapFilename&&(this._sourceMapFilename=i.sourceMapFilename.replace(/\\/g,"/")),this._outputFilename=i.outputFilename?i.outputFilename.replace(/\\/g,"/"):i.outputFilename,this.sourceMapURL=i.sourceMapURL,i.sourceMapBasepath&&(this._sourceMapBasepath=i.sourceMapBasepath.replace(/\\/g,"/")),i.sourceMapRootpath?(this._sourceMapRootpath=i.sourceMapRootpath.replace(/\\/g,"/"),this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)!=="/"&&(this._sourceMapRootpath+="/")):this._sourceMapRootpath="",this._outputSourceFiles=i.outputSourceFiles,this._sourceMapGeneratorConstructor=r.getSourceMapGenerator(),this._lineNumber=0,this._column=0}removeBasepath(i){return this._sourceMapBasepath&&i.indexOf(this._sourceMapBasepath)===0&&(i=i.substring(this._sourceMapBasepath.length),(i.charAt(0)==="\\"||i.charAt(0)==="/")&&(i=i.substring(1))),i}normalizeFilename(i){return i=i.replace(/\\/g,"/"),i=this.removeBasepath(i),(this._sourceMapRootpath||"")+i}add(i,n,l,s){if(!i)return;let u,a,p,d,g;if(n&&n.filename){let v=this._contentsMap[n.filename];if(this._contentsIgnoredCharsMap[n.filename]&&(l-=this._contentsIgnoredCharsMap[n.filename],l<0&&(l=0),v=v.slice(this._contentsIgnoredCharsMap[n.filename])),v===void 0){this._css.push(i);return}v=v.substring(0,l),a=v.split(`
15
+ ${m}}`),e.tabLevel--),!t.isEmpty()&&!e.compress&&this.firstRoot&&t.add(`
16
+ `)}joinSelectors(e,t,i){for(let n=0;n<i.length;n++)this.joinSelector(e,t,i[n])}joinSelector(e,t,i){function n(A,y){let $,w;if(A.length===0)$=new fe(A[0]);else{let C=new Array(A.length);for(w=0;w<A.length;w++)C[w]=new ie(null,A[w],y.isVariable,y._index,y._fileInfo);$=new fe(new j(C))}return $}function l(A,y){let $,w;return $=new ie(null,A,y.isVariable,y._index,y._fileInfo),w=new j([$]),w}function s(A,y,$,w){let C,k,E;if(C=[],A.length>0?(C=K(A),k=C.pop(),E=w.createDerived(K(k.elements))):E=w.createDerived([]),y.length>0){let o=$.combinator,c=y[0].elements[0];o.emptyOrWhitespace&&!c.combinator.emptyOrWhitespace&&(o=c.combinator),E.elements.push(new ie(o,c.value,$.isVariable,$._index,$._fileInfo)),E.elements=E.elements.concat(y[0].elements.slice(1))}if(E.elements.length!==0&&C.push(E),y.length>1){let o=y.slice(1);o=o.map(function(c){return c.createDerived(c.elements,[])}),C=C.concat(o)}return C}function u(A,y,$,w,C){let k;for(k=0;k<A.length;k++){let E=s(A[k],y,$,w);C.push(E)}return C}function a(A,y){let $,w;if(A.length!==0){if(y.length===0){y.push([new j(A)]);return}for($=0;w=y[$];$++)w.length>0?w[w.length-1]=w[w.length-1].createDerived(w[w.length-1].elements.concat(A)):w.push(new j(A))}}function h(A,y,$){let w,C,k,E,o,c,f,p,g=!1,x,b;function M(I){let P;return!(I.value instanceof fe)||(P=I.value.value,!(P instanceof j))?null:P}for(E=[],o=[[]],w=0;p=$.elements[w];w++)if(p.value!=="&"){let I=M(p);if(I!==null){a(E,o);let P=[],O,_=[];if(I.elements.some(D=>D instanceof j)){let D=[];for(let Ke of I.elements)if(Ke instanceof j){let Je=[],zs=h(Je,y,Ke);O=O||zs,Je.length>0&&Je[0].length>0?D.push(Je[0][0]):D.push(Ke)}else D.push(Ke);g=g||O;let Z=new j(D),Ge=l(n([Z],p),p);u(o,[Ge],p,$,_)}else for(O=h(P,y,I),g=g||O,k=0;k<P.length;k++){let D=l(n(P[k],p),p);u(o,[D],p,$,_)}o=_,E=[]}else E.push(p)}else{for(g=!0,c=[],a(E,o),C=0;C<o.length;C++)if(f=o[C],y.length===0)f.length>0&&f[0].elements.push(new ie(p.combinator,"",p.isVariable,p._index,p._fileInfo)),c.push(f);else for(k=0;k<y.length;k++){let I=s(f,y[k],p,$);c.push(I)}o=c,E=[]}for(a(E,o),w=0;w<o.length;w++)x=o[w].length,x>0&&(A.push(o[w]),b=o[w][x-1],o[w][x-1]=b.createDerived(b.elements,$.extendList));return g}function d(A,y){let $=y.createDerived(y.elements,y.extendList,y.evaldCondition);return $.copyVisibilityInfo(A),$}let m,v,R;if(v=[],R=h(v,t,i),!R)if(t.length>0)for(v=[],m=0;m<t.length;m++){let A=t[m].map(d.bind(this,i.visibilityInfo()));A.push(i),v.push(A)}else v=[[i]];for(m=0;m<v.length;m++)e.push(v[m])}}class he extends L{get type(){return"Variable"}constructor(e,t,i){super(),this.name=e,this._index=t,this._fileInfo=i,this.evaluating=void 0}eval(e){let t,i=this.name;if(i.indexOf("@@")===0&&(i=`@${new he(i.slice(1),this.getIndex(),this.fileInfo()).eval(e).value}`),this.evaluating)throw{type:"Name",message:`Recursive variable definition for ${i}`,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,function(n){let l=n.variable(i);if(l){if(l.important){let s=e.importantScope[e.importantScope.length-1];s.important=l.important}return e.inCalc?new Te("_SELF",[l.value],0,void 0).eval(e):l.value.eval(e)}}),t)return this.evaluating=!1,t;throw{type:"Name",message:`variable ${i} is undefined`,filename:this.fileInfo().filename,index:this.getIndex()}}find(e,t){for(let i=0,n;i<e.length;i++)if(n=t.call(e,e[i]),n)return n;return null}}class jt extends L{get type(){return"Property"}constructor(e,t,i){super(),this.name=e,this._index=t,this._fileInfo=i,this.evaluating=void 0}eval(e){let t,i=this.name,n=e.pluginManager.less.visitors.ToCSSVisitor.prototype._mergeRules;if(this.evaluating)throw{type:"Name",message:`Recursive property reference for ${i}`,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,function(l){let s,u=l.property(i);if(u){for(let a=0;a<u.length;a++)s=u[a],u[a]=new W(s.name,s.value,s.important,s.merge,s.index,s.currentFileInfo,s.inline,s.variable);if(n(u),s=u[u.length-1],s.important){let a=e.importantScope[e.importantScope.length-1];a.important=s.important}return s=s.value.eval(e),s}}),t)return this.evaluating=!1,t;throw{type:"Name",message:`Property '${i}' is undefined`,filename:this.currentFileInfo.filename,index:this.index}}find(e,t){for(let i=0,n;i<e.length;i++)if(n=t.call(e,e[i]),n)return n;return null}}class Ae extends L{get type(){return"DetachedRuleset"}constructor(e,t){super(),this.ruleset=e,this.frames=t,this.evalFirst=!0,this.setParent(this.ruleset,this)}accept(e){this.ruleset=e.visit(this.ruleset)}eval(e){let t=this.frames||K(e.frames);return new Ae(this.ruleset,t)}callEval(e){return this.ruleset.eval(this.frames?new B.Eval(e,this.frames.concat(e.frames)):e)}}class Ut extends L{get type(){return"VariableCall"}constructor(e,t,i){super(),this.variable=e,this._index=t,this._fileInfo=i,this.allowRoot=!0}eval(e){let t,i=new he(this.variable,this.getIndex(),this.fileInfo()).eval(e),n=new V({message:`Could not evaluate variable call ${this.variable}`});if(!i.ruleset){if(i.rules)t=i;else if(Array.isArray(i))t=new q(null,i);else if(Array.isArray(i.value))t=new q(null,i.value);else throw n;i=new Ae(t)}let l=i;if(l.ruleset)return l.callEval(e);throw n}}class Tt extends L{get type(){return"NamespaceValue"}constructor(e,t,i,n){super(),this.value=e,this.lookups=t,this._index=i,this._fileInfo=n}eval(e){let t,i,n=this.value.eval(e);for(t=0;t<this.lookups.length;t++){i=this.lookups[t],Array.isArray(n)&&(n=new q([new j],n));let l=n;if(i==="")n=l.lastDeclaration();else if(i.charAt(0)==="@"){if(i.charAt(1)==="@"&&(i=`@${new he(i.slice(1)).eval(e).value}`),l.variables&&(n=l.variable(i)),!n)throw{type:"Name",message:`variable ${i} not found`,filename:this.fileInfo().filename,index:this.getIndex()}}else{if(i.substring(0,2)==="$@"?i=`$${new he(i.slice(1)).eval(e).value}`:i=i.charAt(0)==="$"?i:`$${i}`,l.properties&&(n=l.property(i)),!n)throw{type:"Name",message:`property "${i.slice(1)}" not found`,filename:this.fileInfo().filename,index:this.getIndex()};let a=n;n=a[a.length-1]}let s=n;s.value&&(n=s.eval(e).value);let u=n;u.ruleset&&(n=u.ruleset.eval(e))}return n}}let qe=new RegExp(`@\\{(${Ue})\\}`,"g"),st=/\$\{([\w-]+)\}/g,ki=new RegExp(`\\[(${Vt})\\]`,"g"),$i=new RegExp(qe.source),Ei=new RegExp(st.source);function Ri(r){return $i.test(r)||Ei.test(r)}function nt(r){let e=r.indexOf("[");if(e===-1)return{name:r,lookups:null};let t=[],i=new RegExp(ki.source,"g"),n;for(;(n=i.exec(r))!==null;)t.push(n[1]);return{name:r.slice(0,e),lookups:t}}function rt(r,e,t){let{name:i,lookups:n}=nt(r);return n?new Tt(new Ut(`@${i}`,e,t),n,e,t):new he(`@${i}`,e,t)}function qt(r,e,t){return new jt(`$${r}`,e,t)}let _i=new RegExp(`^((?:[\\w-]+)|(?:@\\{${Ue}\\})|(?:\\$\\{[\\w-]+\\}))`),ye=function r(e,t,i,n){n=n||0;let l,s=Si();function u(o,c){throw new V({index:s.i,filename:i.filename,type:c||"Syntax",message:o},t)}let a=new Ai,h=new Set;function d(o,c,f,p){if(!e.quiet&&!(p&&e.quietDeprecations)){if(p){let g=`${p}@${c??s.i}`;if(h.has(g))return;h.add(g)}p&&!a.shouldWarn(p)||ce.warn(new V({index:c??s.i,filename:i.filename,type:f?`${f.toUpperCase()} WARNING`:"WARNING",message:o},t).toString())}}function m(o){d("A bare @variable in an at-rule prelude is deprecated. Use @{variable} interpolation instead.",o,"DEPRECATED","variable-in-at-rule-prelude")}function v(o){return o?o.type==="Variable"||o.type==="VariableCall"||o.type==="NamespaceValue":!1}function R(o,c){/^(?:@@?)?[0-9]/.test(o)&&d("Variable names beginning with a number are deprecated and will be removed in Less 5.x. Rename the variable to start with a valid identifier character.",c,"DEPRECATED","numeric-variable-name")}function A(o,c){o.replace(/^@@?/,"")==="-"&&d("The dash-only variable names @- and @{-} are deprecated and will be removed in Less 5.x. Rename the variable to use a valid identifier.",c,"DEPRECATED","dash-only-variable-name")}function y(o,c){(o===".-"||o==="#-")&&d("The dash-only mixin names .-() and #-() are deprecated and will be removed in Less 5.x. Rename the mixin to use a valid CSS identifier.",c,"DEPRECATED","dash-only-mixin-name")}function $(o,c){(o instanceof S.Variable||o instanceof S.Quoted&&(o.containsVariables()||o.value.match(o.propRegex)))&&d("Dynamic @charset interpolation is deprecated and will be removed in Less 5.x. Use a static quoted encoding declaration instead.",c,"DEPRECATED","dynamic-charset")}function w(o,c){let f=o instanceof Function?o.call(l):s.$re(o);if(f)return f;u(c||(typeof o=="string"?`expected '${o}' got '${s.currentChar()}'`:"unexpected token"))}function C(o,c){if(s.$char(o))return o;u(c||`expected '${o}' got '${s.currentChar()}'`)}function k(o){let c=i.filename;return{lineNumber:De(o,s.getInput()).line+1,fileName:c}}function E(o,c,f){let p,g=[],x=s;try{x.start(o);for(let M=0,I;I=c[M];M++)p=l[I](),g.push(p||null);x.end().isFinished?f(null,g):f(!0,null)}catch(b){throw new V({index:b.index+n,message:b.message},t,i.filename)}}return{parserInput:s,imports:t,fileInfo:i,parseNode:E,parse:function(o,c,f){let p,g=null,x,b,M,I="";if(f&&f.disablePluginRule&&(l.plugin=function(){var _=s.$re(/^@plugin?\s+/);_&&u("@plugin statements are not allowed when disablePluginRule is set to true")}),x=f&&f.globalVars?`${r.serializeVars(f.globalVars)}
17
+ `:"",b=f&&f.modifyVars?`
18
+ ${r.serializeVars(f.modifyVars)}`:"",e.pluginManager){let _=e.pluginManager.getPreProcessors();for(let U=0;U<_.length;U++)o=_[U].process(o,{context:e,imports:t,fileInfo:i})}(x||f&&f.banner)&&(I=(f&&f.banner?f.banner:"")+x,M=t.contentsIgnoredChars,M[i.filename]=M[i.filename]||0,M[i.filename]+=I.length),o=o.replace(/\r\n?/g,`
19
+ `),o=I+o.replace(/^\uFEFF/,"")+b,t.contents[i.filename]=o;try{s.start(o),S.Node.prototype.parse=this,p=new S.Ruleset(null,this.parsers.primary()),S.Node.prototype.rootNode=p,p.root=!0,p.firstRoot=!0,p.functionRegistry=J.inherit()}catch(_){return c(new V(_,t,i.filename))}let P=s.end();if(!P.isFinished){let _=P.furthestPossibleErrorMessage;_||(_="Unrecognised input",P.furthestChar==="}"?_+=". Possibly missing opening '{'":P.furthestChar===")"?_+=". Possibly missing opening '('":P.furthestReachedEnd&&(_+=". Possibly missing something")),g=new V({type:"Parse",message:_,index:P.furthest,filename:i.filename},t)}let O=_=>(_=g||_||t.error,_?(_ instanceof V||(_=new V(_,t,i.filename)),c(_)):c(null,p));if(e.processImports!==!1)new Ce.ImportVisitor(t,O).run(p);else return O()},parsers:l={primary:function(){let o=this.mixin,c=[],f;for(;;){for(;f=this.comment(),!!f;)c.push(f);if(s.finished||s.peek("}"))break;if(f=this.extendRule(),f){c=c.concat(f);continue}if(f=o.definition()||this.declaration()||o.call(!1,!1)||this.ruleset()||this.variableCall()||this.entities.call()||this.atrule(),f)c.push(f);else{let p=!1;for(;s.$char(";");)p=!0;if(!p)break}}return c},comment:function(){if(s.commentStore.length){let o=s.commentStore.shift();return new S.Comment(o.text,o.isLineComment,o.index+n,i)}},entities:{mixinLookup:function(){return l.mixin.call(!0,!0)},quoted:function(o){let c,f=s.i,p=!1;if(s.save(),s.$char("~"))p=!0;else if(o){s.restore();return}if(c=s.$quoted(),!c){s.restore();return}return s.forget(),new S.Quoted(c.charAt(0),c.slice(1,-1),p,f+n,i)},keyword:function(){let o=s.$char("%")||s.$re(/^\[?(?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+\]?/);if(o)return S.Color.fromKeyword(o)||new S.Keyword(o)},call:function(){let o,c,f,p=s.i;if(!s.peek(/^url\(/i)){if(s.save(),o=s.$re(/^([\w-]+|%|~|progid:[\w.]+)\(/),!o){s.forget();return}if(o=o[1],f=this.customFuncCall(o),f&&(c=f.parse(),c&&f.stop))return s.forget(),c;if(c=this.arguments(c),!s.$char(")")){s.restore("Could not parse call arguments or missing ')'");return}return s.forget(),new S.Call(o,c,p+n,i)}},declarationCall:function(){let o,c,f=s.i;if(s.save(),o=s.$re(/^[\w]+\(/),!o){s.forget();return}if(o=o.substring(0,o.length-1),/^(and|or|not|only|layer)$/i.test(o)){s.restore();return}let p=this.ruleProperty(),g;if(p&&(g=this.value()),p&&g&&(c=[new S.Declaration(p,g,null,null,s.i+n,i,!0)]),!s.$char(")")){s.restore("Could not parse call arguments or missing ')'");return}return s.forget(),new S.Call(o,c,f+n,i)},customFuncCall:function(o){return{alpha:c(l.ieAlpha,!0),boolean:c(f),if:c(f)}[o.toLowerCase()];function c(p,g){return{parse:p,stop:g}}function f(){return[w(()=>l.condition(!1,!0),"expected condition")]}},arguments:function(o){let c=o||[],f=[],p,g;for(s.save();;){if(o)o=!1;else{if(g=l.detachedRuleset()||this.assignment()||l.expression(),!g)break;g.value&&g.value.length==1&&(g=g.value[0]),c.push(g)}s.$char(",")||(s.$char(";")||p)&&(p=!0,g=c.length<1?c[0]:new S.Value(c),f.push(g),c=[])}return s.forget(),p?f:c},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){let o,c;if(s.save(),o=s.$re(/^\w+(?=\s?=)/i),!o){s.restore();return}if(!s.$char("=")){s.restore();return}if(c=l.entity(),c)return s.forget(),new S.Assignment(o,c);s.restore()},url:function(){let o,c=s.i;if(s.autoCommentAbsorb=!1,!s.$str("url(")){s.autoCommentAbsorb=!0;return}return o=this.quoted()||this.variable()||this.property()||s.$re(/^(?:(?:\\[()'"])|[^()'"])+/)||"",typeof o=="string"&&Ri(o)&&(o=new S.Quoted("",o,!0,c+n,i)),s.autoCommentAbsorb=!0,C(")"),new S.URL(o.value!==void 0||o instanceof S.Variable||o instanceof S.Property?o:new S.Anonymous(o,c),c+n,i)},variable:function(){let o,c,f=s.i;if(s.save(),s.currentChar()==="@"&&(c=s.$re(/^@@?[\w-]+/))){if(R(c,f),A(c,f),o=s.currentChar(),o==="("&&!s.prevChar().match(/^\s/)||o==="["&&!s.prevChar().match(/^\s/)){let p=l.variableCall(c);if(p)return s.forget(),p}return s.forget(),new S.Variable(c,f+n,i)}s.restore()},variableCurly:function(){let o,c=s.i;if(s.currentChar()!=="@")return;if(s.save(),!(o=s.$re(/^@\{([\w-]+)/))){s.restore();return}let f=o[1],p=l.mixin.ruleLookups();if(!s.$char("}")){s.restore();return}if(s.forget(),R(f,c),A(f,c),!p)return new S.Variable(`@${f}`,c+n,i);let g=new S.VariableCall(`@${f}`,c+n,i);return new S.NamespaceValue(g,p,c+n,i)},property:function(){let o,c=s.i;if(s.currentChar()==="$"&&(o=s.$re(/^\$[\w-]+/)))return new S.Property(o,c+n,i)},color:function(){let o;if(s.save(),s.currentChar()==="#"&&(o=s.$re(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})([\w.#[])?/))&&!o[2])return s.forget(),new S.Color(o[1],void 0,o[0]);s.restore()},colorKeyword:function(){s.save();let o=s.autoCommentAbsorb;s.autoCommentAbsorb=!1;let c=s.$re(/^[_A-Za-z-][_A-Za-z0-9-]+/);if(s.autoCommentAbsorb=o,!c){s.forget();return}s.restore();let f=S.Color.fromKeyword(c);if(f)return s.$str(c),f},dimension:function(){if(s.peekNotNumeric())return;let o=s.$re(/^([+-]?\d*\.?\d+)(%|[a-z_]+)?/i);if(o)return new S.Dimension(o[1],o[2])},unicodeDescriptor:function(){let o;if(o=s.$re(/^U\+[0-9a-fA-F?]+(-[0-9a-fA-F?]+)?/),o)return new S.UnicodeDescriptor(o[0])},javascript:function(){let o,c=s.i;s.save();let f=s.$char("~");if(!s.$char("`")){s.restore();return}if(o=s.$re(/^[^`]*`/),o)return d("Inline JavaScript evaluation (backtick expressions) is deprecated and will be removed in Less 5.x. Use Less functions or custom plugins instead.",c,"DEPRECATED","js-eval"),s.forget(),new S.JavaScript(o.slice(0,-1),!!f,c+n,i);s.restore("invalid javascript definition")}},variable:function(){let o;if(s.currentChar()==="@"&&(o=s.$re(/^(@[\w-]+)\s*:/)))return R(o[1],s.i-o[0].length),A(o[1],s.i-o[0].length),o[1]},variableCall:function(o){let c,f=s.i,p=!!o,g=o;if(s.save(),g||s.currentChar()==="@"&&(g=s.$re(/^(@[\w-]+)(\(\s*\))?/))){if(c=this.mixin.ruleLookups(),!c&&(p&&s.$str("()")!=="()"||g[2]!=="()")){s.restore("Missing '[...]' lookup in variable call");return}p||(R(g[1],f),A(g[1],f),g=g[1]);let x=new S.VariableCall(g,f,i);return!p&&l.end()?(s.forget(),x):(s.forget(),new S.NamespaceValue(x,c,f,i))}s.restore()},extend:function(o){let c,f,p=s.i,g,x,b;if(s.$str(o?"&:extend(":":extend(")){do{g=null,c=null;let M=!0;for(;!(g=s.$re(/^(!?all)(?=\s*(\)|,))/))&&(f=this.element(),!!f);)!M&&f.combinator.value&&d("Targeting complex selectors can have unexpected behavior, and this behavior may change in the future.",p),M=!1,c?c.push(f):c=[f];g=g&&g[1],c||u("Missing target selector for :extend()."),b=new S.Extend(new S.Selector(c),g,p+n,i),x?x.push(b):x=[b]}while(s.$char(","));return w(/^\)/),o&&w(/^;/),x}},extendRule:function(){return this.extend(!0)},mixin:{call:function(o,c){let f=s.currentChar(),p=!1,g,x=s.i,b,M,I,P,O=!1;if(!(f!=="."&&f!=="#")){if(s.save(),b=this.elements(),b){if(P=s.i,O=s.isWhitespace(-1),s.$char("(")&&(M=this.args(!0).args,C(")"),I=!0,O&&d("Whitespace between a mixin name and parentheses for a mixin call is deprecated",P,"DEPRECATED","mixin-call-whitespace")),c!==!1&&(g=this.ruleLookups()),c===!0&&!g){s.restore();return}if(o&&!g&&!I){s.restore();return}if(!o&&l.important()&&(p=!0),o||l.end()){s.forget();let _=new S.mixin.Call(b,M,x+n,i,!g&&p);for(let U of b)y(U.value,U._index-n);return g?new S.NamespaceValue(_,g):(I||d("Calling a mixin without parentheses is deprecated",P,"DEPRECATED","mixin-call-no-parens"),_)}}s.restore()}},elements:function(){let o,c,f,p,g,x=/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/;for(;g=s.i,c=s.$re(x),!!c;)p=new S.Element(f,c,!1,g+n,i),o?o.push(p):o=[p],f=s.$char(">");return o},args:function(o){let c=l.entities,f={args:null,variadic:!1},p=[],g=[],x=[],b,M,I,P,O,_,U,D=!0;for(s.save();;){if(o)_=l.detachedRuleset()||l.expression();else{if(s.commentStore.length=0,s.$str("...")){f.variadic=!0,s.$char(";")&&!b&&(b=!0),(b?g:x).push({variadic:!0});break}_=c.variable()||c.property()||c.literal()||c.keyword()||this.call(!0)}if(!_||!D)break;P=null,_.throwAwayComments&&_.throwAwayComments(),O=_;let Z=null;if(o?_.value&&_.value.length==1&&(Z=_.value[0]):Z=_,Z&&(Z instanceof S.Variable||Z instanceof S.Property))if(s.$char(":")){if(p.length>0&&(b&&u("Cannot mix ; and , as delimiter types"),M=!0),O=l.detachedRuleset()||l.expression(),!O)if(o)u("could not understand value for named argument");else return s.restore(),f.args=[],f;P=I=Z.name}else if(s.$str("..."))if(o)U=!0;else{f.variadic=!0,s.$char(";")&&!b&&(b=!0),(b?g:x).push({name:_.name,variadic:!0});break}else o||(I=P=Z.name,O=null);if(O&&p.push(O),x.push({name:P,value:O,expand:U}),s.$char(",")){D=!0;continue}D=s.$char(";")===";",(D||b)&&(M&&u("Cannot mix ; and , as delimiter types"),b=!0,p.length>1&&(O=new S.Value(p)),g.push({name:I,value:O,expand:U}),I=null,p=[],M=!1)}return s.forget(),f.args=b?g:x,f},definition:function(){let o,c=[],f,p,g,x=!1,b=s.i;if(!(s.currentChar()!=="."&&s.currentChar()!=="#"||s.peek(/^[^{]*\}/)))if(s.save(),f=s.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/),f){o=f[1];let M=this.args(!1);if(c=M.args,x=M.variadic,!s.$char(")")){s.restore("Missing closing ')'");return}if(s.commentStore.length=0,s.$str("when")&&(g=w(l.conditions,"expected condition")),p=l.block(),p)return s.forget(),y(o,b),new S.mixin.Definition(o,c,p,g,x);s.restore()}else s.restore()},ruleLookups:function(){let o,c=[];if(s.currentChar()==="["){for(;;){if(s.save(),o=this.lookupValue(),!o&&o!==""){s.restore();break}c.push(o),s.forget()}if(c.length>0)return c}},lookupValue:function(){if(s.save(),!s.$char("[")){s.restore();return}let o=s.$re(/^(?:[@$]{0,2})[_a-zA-Z0-9-]*/);if(!s.$char("]")){s.restore();return}if(o||o==="")return s.forget(),o;s.restore()}},entity:function(){let o=this.entities;return this.comment()||o.literal()||o.variable()||o.url()||o.property()||o.call()||o.keyword()||this.mixin.call(!0)||o.javascript()},end:function(){return s.$char(";")||s.peek("}")},ieAlpha:function(){let o;if(s.$re(/^opacity=/i))return o=s.$re(/^\d+/),o||(o=w(l.entities.variable,"Could not parse alpha"),o=`@{${o.name.slice(1)}}`),C(")"),new S.Quoted("",`alpha(opacity=${o})`)},element:function(){let o,c,f,p=s.i;if(c=this.combinator(),o=s.$re(/^(?:\d+\.\d+|\d+)%/)||s.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||s.$char("*")||s.$char("&")||this.attribute()||s.$re(/^\([^&()@]+\)/)||s.$re(/^[.#:](?=@)/)||this.entities.variableCurly(),!o)if(s.save(),s.$char("("))if(f=this.selector(!1)){let g=[];for(;s.$char(",");)g.push(f),g.push(new T(",")),f=this.selector(!1);g.push(f),s.$char(")")?(g.length>1?o=new S.Paren(new j(g)):o=new S.Paren(f),s.forget()):s.restore("Missing closing ')'")}else s.restore("Missing closing ')'");else s.forget();if(o)return new S.Element(c,o,o instanceof S.Variable,p+n,i)},combinator:function(){let o=s.currentChar();if(o==="/"){s.save();let c=s.$re(/^\/[a-z]+\//i);if(c)return s.forget(),new S.Combinator(c);s.restore()}if(o===">"||o==="+"||o==="~"||o==="|"||o==="^"){for(s.i++,o==="^"&&s.currentChar()==="^"&&(o="^^",s.i++);s.isWhitespace();)s.i++;return new S.Combinator(o)}else return s.isWhitespace(-1)?new S.Combinator(" "):new S.Combinator(null)},selector:function(o){let c=s.i,f,p,g,x,b,M,I;for(o=o!==!1;(o&&(p=this.extend())||o&&(M=s.$str("when"))||(x=this.element()))&&(M?I=w(this.conditions,"expected condition"):I?u("CSS guard can only be used at the end of selector"):p?b?b=b.concat(p):b=p:(b&&u("Extend can only be used at the end of selector"),g=s.currentChar(),Array.isArray(x)&&x.forEach(P=>f.push(P)),f?f.push(x):f=[x],x=null),!(g==="{"||g==="}"||g===";"||g===","||g===")")););if(f)return new S.Selector(f,b,I,c+n,i);b&&u("Extend must be used to extend a selector, it cannot be used on its own")},selectors:function(){let o,c;for(;o=this.selector(),!(!o||(c?c.push(o):c=[o],s.commentStore.length=0,o.condition&&c.length>1&&u("Guards are only currently allowed on a single selector."),!s.$char(",")));)o.condition&&u("Guards are only currently allowed on a single selector."),s.commentStore.length=0;return c},attribute:function(){if(!s.$char("["))return;let o=this.entities,c,f,p,g;return(c=o.variableCurly())||(c=w(/^(?:[_A-Za-z0-9-*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),p=s.$re(/^[|~*$^]?=/),p&&(f=o.quoted()||s.$re(/^[0-9]+%/)||s.$re(/^[\w-]+/)||o.variableCurly(),f&&(g=s.$re(/^[iIsS]/))),C("]"),new S.Attribute(c,p,f,g)},block:function(){let o;if(s.$char("{")&&(o=this.primary())&&s.$char("}"))return o},blockRuleset:function(){let o=this.block();if(o)return new S.Ruleset(null,o)},detachedRuleset:function(){let o,c,f;if(s.save(),s.$re(/^[.#]\(/)&&(o=this.mixin.args(!1),c=o.args,f=o.variadic,!s.$char(")"))){s.restore();return}let p=this.blockRuleset();if(p)return s.forget(),c?new S.mixin.Definition(null,c,p,null,f):new S.DetachedRuleset(p);s.restore()},ruleset:function(){let o,c,f;if(s.save(),e.dumpLineNumbers&&(f=k(s.i)),o=this.selectors(),o&&(c=this.block())){s.forget();let p=new S.Ruleset(o,c,e.strictImports);return e.dumpLineNumbers&&(p.debugInfo=f),p}else s.restore()},declaration:function(){let o,c,f=s.i,p,g=s.currentChar(),x,b,M;if(!(g==="."||g==="#"||g==="&"||g===":"))if(s.save(),o=this.variable()||this.ruleProperty(),o){if(M=typeof o=="string",M&&(c=this.detachedRuleset(),c&&(p=!0)),s.commentStore.length=0,!c){if(b=!M&&o.length>1&&o.pop().value,typeof o[0].value=="string"&&o[0].value.slice(0,2)==="--"?s.$char(";")?c=new T(""):c=this.permissiveValue(/[;}]/):c=this.anonymousValue(),c)return s.forget(),new S.Declaration(o,c,!1,b,f+n,i);c||(c=this.value()),c?x=this.important():M&&(c=this.permissiveValue())}if(c&&(this.end()||p))return s.forget(),new S.Declaration(o,c,x,b,f+n,i);s.restore()}else s.restore()},anonymousValue:function(){let o=s.i,c=s.$re(/^([^.#@$+/'"*`(;{}-]*);/);if(c)return new S.Anonymous(c[1],o+n)},permissiveValue:function(o,c){let f=this.entities,p,g,x,b,M=o||";",I=s.i,P=[];function O(){let _=s.currentChar();return typeof M=="string"?_===M:M.test(_)}if(!O()){b=[];do{if(g=this.comment(),g){b.push(g);continue}if(c){if(g=f.variableCurly(),!g){let _=s.i;g=this.entity(),v(g)&&m(_)}}else g=this.entity();g&&b.push(g),s.peek(",")&&(b.push(new S.Anonymous(",",s.i)),s.$char(","))}while(g);if(x=O(),b.length>0){if(b=new S.Expression(b),x)return b;P.push(b),s.prevChar()===" "&&P.push(new S.Anonymous(" ",I))}if(s.save(),b=s.$parseUntil(M,c),b){if(typeof b=="string"&&u(`Expected '${b}'`,"Parse"),b.length===1&&b[0]===" ")return s.forget(),new S.Anonymous("",I);c&&b.bareVarIndex!==null&&b.bareVarIndex!==void 0&&m(b.bareVarIndex);let _;for(p=0;p<b.length;p++)if(_=b[p],Array.isArray(_))P.push(new S.Quoted(_[0],_[1],!0,I,i));else{p===b.length-1&&(_=_.trim());let U=new S.Quoted("'",_,!0,I,i),D=/@([\w-]+)/g,Z=/\$([\w-]+)/g,Ge=_.replace(qe,"").replace(st,"");!c&&D.test(Ge)&&d("@variable in unknown values will not be evaluated as variables in the future. Use @{variable}",I,"DEPRECATED","variable-in-unknown-value"),Z.test(Ge)&&d("$property in unknown values will not be evaluated as property references in the future. Use ${property}",I,"DEPRECATED","property-in-unknown-value"),U.variableRegex=new RegExp(`@(${Ue})|@\\{(${Ue})\\}`,"g"),U.propRegex=/\$([\w-]+)|\$\{([\w-]+)\}/g,P.push(U)}return s.forget(),new S.Expression(P,!0)}s.restore()}},import:function(){let o,c,f=s.i,p=s.$re(/^@import\s+/);if(p){let g=(p?this.importOptions():null)||{};if(o=this.entities.quoted()||this.entities.url())return c=this.mediaFeatures({}),s.$char(";")||(s.i=f,u("missing semi-colon or unrecognised media features on import")),c=c&&new S.Value(c),new S.Import(o,c,g,f+n,i);s.i=f,u("malformed import statement")}},importOptions:function(){let o,c={},f,p;if(!s.$char("("))return null;do if(o=this.importOption(),o){switch(f=o,p=!0,f){case"css":f="less",p=!1;break;case"once":f="multiple",p=!1;break}if(c[f]=p,!s.$char(","))break}while(o);return C(")"),c},importOption:function(){let o=s.$re(/^(less|css|multiple|once|inline|reference|optional)/);if(o)return o[1]},mediaFeature:function(o){let c=this.entities,f=[],p,g,x,b=!1,M=()=>{let I=s.$re(/^(?:--|-?(?:[_a-zA-Z0-9]|[^\0-\x7F]|\\[0-9a-fA-F]{1,6}\s?|\\[^\n\r\f0-9a-fA-F]))(?:[-_a-zA-Z0-9]|[^\0-\x7F]|\\[0-9a-fA-F]{1,6}\s?|\\[^\n\r\f0-9a-fA-F])*/);if(I)return S.Color.fromKeyword(I)||new S.Keyword(I)};s.save();do{if(s.save(),s.$re(/^(?:--|-?(?:[_a-zA-Z0-9]|[^\0-\x7F]|\\[0-9a-fA-F]{1,6}\s?|\\[^\n\r\f0-9a-fA-F]))(?:[-_a-zA-Z0-9]|[^\0-\x7F]|\\[0-9a-fA-F]{1,6}\s?|\\[^\n\r\f0-9a-fA-F])*\s+\(/)&&(b=!0),s.restore(),p=c.declarationCall.bind(this)()||M()||c.keyword()||c.variableCurly(),!p){let I=s.i,P=c.variable();P?(m(I),p=P):p=c.mixinLookup()}if(p)f.push(p),(p.type==="Variable"||p.type==="Keyword"&&/^(and|or|not|only)$/i.test(p.value))&&(b=!0);else if(s.$char("(")){let I=!1;if(g=this.property(),s.save(),!g&&o.queryInParens&&s.$re(/^(?:[^()]|\([^()]*\))*\s*([<>]=|<=|>=|[<>]|=)/)?(s.restore(),g=this.condition(),s.save(),x=this.atomicCondition(null,g.rvalue),x||s.restore()):(s.restore(),s.save(),p=this.value(),p&&s.$char(")")?(I=!0,s.forget()):(s.restore(),p=this.mediaFeature(o))),!I&&s.$char(")")&&(I=!0),I)if(g&&!p){let P=new S.Paren(new S.QueryInParens(g.op,g.lvalue,g.rvalue,x?x.op:null,x?x.rvalue:null,g._index));b||(P.noSpacing=!0),f.push(P),p=g}else if(g&&p)f.push(new S.Paren(new S.Declaration(g,p,null,null,s.i+n,i,!0))),b||(f[f.length-1].noSpacing=!0),b=!1;else if(p){let P=new S.Paren(p);b||(P.noSpacing=!0),f.push(P),b=!1}else u("badly formed media feature definition");else u("Missing closing ')'","Parse")}}while(p);if(s.forget(),f.length>0){let I=new S.Expression(f);return f.length===2&&(f[0].type==="Keyword"||f[0].type==="Variable")&&f[1].type==="Paren"&&f[1].noSpacing&&(I.noSpacing=!0),I}},mediaFeatures:function(o){let c=this.entities,f=[],p;do if(p=this.mediaFeature(o),p)if(f.push(p),s.$char(","))f[f.length-1].noSpacing||(f[f.length-1].noSpacing=!1);else break;else{if(p=c.variableCurly(),!p){let g=s.i,x=c.variable();x?(m(g),p=x):p=c.mixinLookup()}if(p)if(f.push(p),s.$char(","))f[f.length-1].noSpacing||(f[f.length-1].noSpacing=!1);else break}while(p);return f.length>0?f:null},prepareAndGetNestableAtRule:function(o,c,f,p){let g=this.mediaFeatures(p),x=this.block();x||u("media definitions require block statements after any features"),s.forget();let b=new o(x,g,c+n,i);return e.dumpLineNumbers&&(b.debugInfo=f),b},nestableAtRule:function(){let o,c=s.i;if(e.dumpLineNumbers&&(o=k(c)),s.save(),s.$peekChar("@")){if(s.$str("@media"))return this.prepareAndGetNestableAtRule(S.Media,c,o,Ci);if(s.$str("@container"))return this.prepareAndGetNestableAtRule(S.Container,c,o,xi)}s.restore()},plugin:function(){let o,c,f,p=s.i;if(s.$re(/^@plugin\s+/)){if(d("The @plugin directive is deprecated and will be replaced in Less 5.x. Use --plugin CLI option or the programmatic plugin API instead.",p,"DEPRECATED","at-plugin"),c=this.pluginArgs(),c?f={pluginArgs:c,isPlugin:!0}:f={isPlugin:!0},o=this.entities.quoted()||this.entities.url())return s.$char(";")||(s.i=p,u("missing semi-colon on @plugin")),new S.Import(o,null,f,p+n,i);s.i=p,u("malformed @plugin statement")}},pluginArgs:function(){if(s.save(),!s.$char("("))return s.restore(),null;let o=s.$re(/^\s*([^);]+)\)\s*/);return o[1]?(s.forget(),o[1].trim()):(s.restore(),null)},atRuleEntity:function(){let o=this.entities.variableCurly();if(o)return o;let c=s.i,f=this.entity();return v(f)&&m(c),f},atruleUnknown:function(o,c,f){return o=this.permissiveValue(/^[{;]/,!0),f=s.currentChar()==="{",o?o.value||(o=null):!f&&s.currentChar()!==";"&&u("".concat(c," rule is missing block or ending semi-colon")),[o,f]},atruleBlock:function(o,c,f,p){if(o=this.blockRuleset(),s.save(),!o&&!f&&(c=this.atRuleEntity(),o=this.blockRuleset()),!o&&!f){s.restore();var g=[];for(c=this.atRuleEntity();s.$char(",");)g.push(c),c=this.atRuleEntity();c&&g.length>0?(g.push(c),c=g,p=!0):o=this.blockRuleset()}else s.forget();return[o,c,p]},atrule:function(){let o=s.i,c,f,p,g,x,b,M,I=!0,P=!0,O=!1;if(s.currentChar()==="@"){if(f=this.import()||this.plugin()||this.nestableAtRule(),f)return f;if(s.save(),c=s.$re(/^@[a-z-]+/),!!c){switch(g=c,c.charAt(1)=="-"&&c.indexOf("-",2)>0&&(g=`@${c.slice(c.indexOf("-",2)+1)}`),g){case"@charset":x=!0,I=!1;break;case"@namespace":b=!0,I=!1;break;case"@keyframes":case"@counter-style":x=!0;break;case"@document":case"@supports":M=!0,P=!1;break;case"@starting-style":P=!1;break;case"@layer":P=!1;break;default:M=!0;break}if(s.commentStore.length=0,x)f=this.atRuleEntity(),f||u(`expected ${c} identifier`),g==="@charset"&&$(f,o);else if(b){let _=this.entities.variableCurly();if(!_&&s.peek(/^@@?[\w-]/)){let U=s.i;_=this.entities.variable(),_&&m(U)}f=this.expression(),_&&(f=f?new S.Expression([_,...f.value]):_),f||u(`expected ${c} expression`)}else if(M){let _=this.atruleUnknown(f,c,I);f=_[0],I=_[1]}if(I){let _=this.atruleBlock(p,f,P,O);if(p=_[0],f=_[1],O=_[2],!p&&!M){s.restore(),c=s.$re(/^@[a-z-]+/);let U=this.atruleUnknown(f,c,I);f=U[0],I=U[1],I&&(_=this.atruleBlock(p,f,P,O),p=_[0],f=_[1],O=_[2])}}if(p||O||!I&&f&&s.$char(";"))return s.forget(),new S.AtRule(c,f,p,o+n,i,e.dumpLineNumbers?k(o):null,P);s.restore("at-rule options not recognised")}}},value:function(){let o,c=[],f=s.i;do if(o=this.expression(),o&&(c.push(o),!s.$char(",")))break;while(o);if(c.length>0)return new S.Value(c,f+n)},important:function(){if(s.currentChar()==="!")return s.$re(/^! *important/)},sub:function(){let o,c;if(s.save(),s.$char("(")){if(o=this.addition(),o&&s.$char(")"))return s.forget(),c=new S.Expression([o]),c.parens=!0,c;s.restore("Expected ')'");return}s.restore()},colorOperand:function(){s.save();let o=s.$re(/^([lchrgbs])(?=\s|[,/*)]|$)/);if(o)return s.forget(),new S.Keyword(o[1]);s.restore()},multiplication:function(){let o,c,f,p,g;if(o=this.operand(),o){for(g=s.isWhitespace(-1);!s.peek(/^\/[*/]/);){if(s.save(),f=s.$char("/")||s.$char("*"),!f){let x=s.i;f=s.$str("./"),f&&d("./ operator is deprecated",x,"DEPRECATED","dot-slash-operator")}if(!f){s.forget();break}if(c=this.operand(),!c){s.restore();break}s.forget(),o.parensInOp=!0,c.parensInOp=!0,p=new S.Operation(f,[p||o,c],g),g=s.isWhitespace(-1)}return p||o}},addition:function(){let o,c,f,p,g;if(o=this.multiplication(),o){for(g=s.isWhitespace(-1);f=s.$re(/^[-+]\s+/)||!g&&(s.$char("+")||s.$char("-")),!(!f||(c=this.multiplication(),!c));)o.parensInOp=!0,c.parensInOp=!0,p=new S.Operation(f,[p||o,c],g),g=s.isWhitespace(-1);return p||o}},conditions:function(){let o,c,f=s.i,p;if(o=this.condition(!0),o){for(;!(!s.peek(/^,\s*(not\s*)?\(/)||!s.$char(",")||(c=this.condition(!0),!c));)p=new S.Condition("or",p||o,c,f+n);return p||o}},condition:function(o,c){let f,p,g;function x(){return s.$str("or")}if(f=this.conditionAnd(o,c),!!f){if(p=x(),p)if(g=this.condition(o,c),g)f=new S.Condition(p,f,g);else return;return f}},conditionAnd:function(o,c){let f,p,g,x=this;function b(){let I=x.negatedCondition(o,c)||x.parenthesisCondition(o,c);return!I&&!o?x.atomicCondition(o):I}function M(){return s.$str("and")}if(f=b(),!!f){if(c&&(f=this.atomicCondition(o,f,c)||f),p=M(),p)if(g=this.conditionAnd(o,c),g)f=new S.Condition(p,f,g);else return;return f}},negatedCondition:function(o,c){if(s.$str("not")){let f=this.parenthesisCondition(o,c);if(f)return f.negate=!f.negate,f;let p=this.entities,g=s.i,x=p.keyword()||p.variable()||p.quoted()||p.mixinLookup();if(x)return new S.Condition("=",x,new S.Keyword("true"),g+n,!0)}},parenthesisCondition:function(o,c){function f(g){let x;if(s.save(),x=g.condition(o,c),!x){s.restore();return}if(!s.$char(")")){s.restore();return}return s.forget(),x}let p;if(s.save(),!s.$str("(")){s.restore();return}if(p=f(this),p)return s.forget(),p;if(p=this.atomicCondition(o),!p){s.restore();return}if(!s.$char(")")){s.restore(`expected ')' got '${s.currentChar()}'`);return}return s.forget(),p},atomicCondition:function(o,c,f){let p=this.entities,g=s.i,x,b,M,I,P=(function(){return f&&this.parenthesisCondition(o)||this.addition()||p.keyword()||p.quoted()||p.mixinLookup()}).bind(this);if(c?x=c:x=P(),x)return s.$char(">")?s.$char("=")?I=">=":I=">":s.$char("<")?s.$char("=")?I="<=":I="<":s.$char("=")&&(s.$char(">")?I="=>":s.$char("<")?I="=<":I="="),I?(b=P(),b?M=new S.Condition(I,x,b,g+n,!1):u("expected expression")):c||(M=new S.Condition("=",x,new S.Keyword("true"),g+n,!1)),M},operand:function(){let o=this.entities,c;s.peek(/^-[@$(]/)&&(c=s.$char("-"));let f=this.sub()||o.dimension()||o.color()||o.variable()||o.property()||o.call()||o.quoted(!0)||o.colorKeyword()||this.colorOperand()||o.mixinLookup();return c&&(f.parensInOp=!0,f=new S.Negative(f)),f},expression:function(){let o=[],c,f,p=s.i;do{if(c=this.comment(),c&&!c.isLineComment){o.push(c);continue}c=this.addition()||this.entity(),c instanceof S.Comment&&(c=null),c&&(o.push(c),s.peek(/^\/[/*]/)||(f=s.$char("/"),f&&o.push(new S.Anonymous(f,p+n))))}while(c);if(o.length>0)return new S.Expression(o)},property:function(){let o=s.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(o)return o[1]},ruleProperty:function(){let o=[],c=[],f,p;s.save();let g=s.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(g)return o=[new S.Keyword(g[1])],s.forget(),o;function x(b){let M=s.i,I=s.$re(b);if(I)return c.push(M),o.push(I[1])}for(x(/^(\*?)/);x(_i););if(o.length>1&&x(/^((?:\+_|\+)?)\s*:/)){for(s.forget(),o[0]===""&&(o.shift(),c.shift()),p=0;p<o.length;p++){f=o[p];let b=f.charAt(0);if(b!=="@"&&b!=="$"){o[p]=new S.Keyword(f);continue}let M=f.slice(2,-1);b==="@"?(R(nt(M).name,c[p]),A(nt(M).name,c[p]),o[p]=rt(M,c[p]+n,i)):o[p]=qt(M,c[p]+n,i)}return o}s.restore()}}}};ye.serializeVars=r=>{let e="";for(let t in r)if(Object.hasOwnProperty.call(r,t)){let i=r[t];e+=`${(t[0]==="@"?"":"@")+t}: ${i}${String(i).slice(-1)===";"?"":";"}`}return e};class j extends L{get type(){return"Selector"}constructor(e,t,i,n,l,s){super(),this.extendList=t,this.condition=i,this.evaldCondition=!i,this._index=n,this._fileInfo=l,this.elements=this.getElements(e),this.mixinElements_=void 0,this.mediaEmpty=void 0,this.copyVisibilityInfo(s),this.setParent(this.elements,this)}accept(e){this.elements&&(this.elements=e.visitArray(this.elements)),this.extendList&&(this.extendList=e.visitArray(this.extendList)),this.condition&&(this.condition=e.visit(this.condition))}createDerived(e,t,i){e=this.getElements(e);let n=new j(e,t||this.extendList,null,this.getIndex(),this.fileInfo(),this.visibilityInfo());return n.evaldCondition=et(i)?this.evaldCondition:i,n.mediaEmpty=this.mediaEmpty,n}getElements(e){if(!e)return[new ie("","&",!1,this._index,this._fileInfo)];if(typeof e=="string"){let t=this._fileInfo,i=this.parse;new ye(i.context,i.importManager,t,this._index).parseNode(e,["selector"],function(n,l){if(n)throw new V({index:n.index,message:n.message},i.imports,t.filename);e=l[0].elements})}return e}createEmptySelectors(){let e=new ie("","&",!1,this._index,this._fileInfo),t=[new j([e],null,null,this._index,this._fileInfo)];return t[0].mediaEmpty=!0,t}match(e){let t=this.elements,i=t.length,n,l,s=e.mixinElements();if(n=s.length,n===0||i<n)return 0;for(l=0;l<n;l++)if(t[l].value!==s[l])return 0;return n}mixinElements(){if(this.mixinElements_)return this.mixinElements_;let e=this.elements.map(function(t){return t.combinator.value+(t.value.value||t.value)}).join("").match(/[,&#*.\w-]([\w-]|(\\.))*/g);return e?e[0]==="&"&&e.shift():e=[],this.mixinElements_=e}isJustParentSelector(){return!this.mediaEmpty&&this.elements.length===1&&this.elements[0].value==="&"&&(this.elements[0].combinator.value===" "||this.elements[0].combinator.value==="")}eval(e){let t=this.condition&&this.condition.eval(e),i=this.elements,n=this.extendList;if(i){let l=new Array(i.length);for(let s=0;s<i.length;s++)l[s]=i[s].eval(e);i=l}if(n){let l=new Array(n.length);for(let s=0;s<n.length;s++)l[s]=n[s].eval(e);n=l}return this.createDerived(i,n,t)}genCSS(e,t){let i,n;for((!e||!e.firstSelector)&&this.elements[0].combinator.value===""&&t.add(" ",this.fileInfo(),this.getIndex()),i=0;i<this.elements.length;i++)n=this.elements[i],n.genCSS(e,t)}getIsOutput(){return this.evaldCondition}}let Mi=["and","or"];function Nt(r){let e;if(r.type==="Keyword"||r.type==="Anonymous")e=r.value;else if(r.type==="Expression"&&Array.isArray(r.value)){let i=r.value.filter(s=>s&&s.value!==void 0),n=0,l=i[n]&&String(i[n].value).toLowerCase();(l==="not"||l==="only")&&n++,e=i[n]&&i[n].value}if(typeof e!="string"||e==="")return!1;let t=e.trim().split(/[\s(]/)[0];return t!==""&&Mi.indexOf(t.toLowerCase())<0}let lt={isRulesetLike(){return!0},accept(r){let e=this;e.features&&(e.features=r.visit(e.features)),e.rules&&(e.rules=r.visitArray(e.rules))},evalFunction:function(){let r=this;if(!r.features||!Array.isArray(r.features.value)||r.features.value.length<1)return;let e=r.features.value,t,i;for(let n=0;n<e.length;++n)t=e[n],(t.type==="Keyword"||t.type==="Variable")&&n+1<e.length&&(t.noSpacing||t.noSpacing==null)&&(i=e[n+1],i.type==="Paren"&&i.noSpacing&&(e[n]=new Q([t,i]),e.splice(n+1,1),e[n].noSpacing=!0))},evalTop(r){let e=this;e.evalFunction();let t=e;if(r.mediaBlocks.length>1){let i=new j([],null,null,e.getIndex(),e.fileInfo()).createEmptySelectors();t=new q(i,r.mediaBlocks),t.multiMedia=!0,t.copyVisibilityInfo(e.visibilityInfo()),e.setParent(t,e)}return delete r.mediaBlocks,delete r.mediaPath,t},evalNested(r){let e=this;e.evalFunction();let t,i,n=r.mediaPath.concat([e]);for(t=0;t<n.length;t++){if(n[t].type!==e.type){let l=r.mediaBlocks.indexOf(e);return l>-1&&r.mediaBlocks.splice(l,1),e}i=n[t].features instanceof ne?n[t].features.value:n[t].features,n[t]=Array.isArray(i)?i:[i]}return e.features=new ne(e.permute(n).map(l=>{l=l.map(u=>u.toCSS?u:new T(u));let s=l.filter(Nt);for(s.length&&s.length<l.length&&(l=s.concat(l.filter(u=>!Nt(u)))),t=l.length-1;t>0;t--)l.splice(t,0,new T("and"));return new Q(l)})),e.setParent(e.features,e),new q([],[])},permute(r){if(r.length===0)return[];if(r.length===1)return r[0];{let e=[],t=this.permute(r.slice(1));for(let i=0;i<t.length;i++)for(let n=0;n<r[0].length;n++)e.push([r[0][n]].concat(t[i]));return e}},bubbleSelectors(r){let e=this;r&&(e.rules=[new q(K(r),[e.rules[0]])],e.setParent(e.rules,e))}};class Ie extends L{get type(){return"AtRule"}constructor(e,t,i,n,l,s,u,a){super();let h;if(new j([],null,null,n,l).createEmptySelectors(),this.name=e,this.value=t instanceof L?t:t&&new T(t),this.simpleBlock=void 0,this.declarations=void 0,this.rules=void 0,i){if(Array.isArray(i)){let d=this.declarationsBlock(i),m=!0;i.forEach(v=>{v.type==="Ruleset"&&v.rules&&(m=m&&this.declarationsBlock(v.rules,!0))}),d&&!u?(this.simpleBlock=!0,this.declarations=i):m&&i.length===1&&!u&&!t?(this.simpleBlock=!0,this.declarations=i[0].rules?i[0].rules:i):this.rules=i}else this.declarationsBlock(i.rules)&&!u&&!t?(this.simpleBlock=!0,this.declarations=i.rules):(this.rules=[i],this.rules[0].selectors=new j([],null,null,n,l).createEmptySelectors());if(!this.simpleBlock)for(h=0;h<this.rules.length;h++)this.rules[h].allowImports=!0;this.declarations&&this.setParent(this.declarations,this),this.rules&&this.setParent(this.rules,this)}this._index=n,this._fileInfo=l,this.debugInfo=s,this.isRooted=u||!1,this.copyVisibilityInfo(a),this.allowRoot=!0}declarationsBlock(e,t=!1){return t?e.filter(function(i){return i.type==="Declaration"||i.type==="Comment"}).length===e.length:e.filter(function(i){return(i.type==="Declaration"||i.type==="Comment")&&!i.merge}).length===e.length}keywordList(e){return Array.isArray(e)?e.filter(function(t){return t.type==="Keyword"||t.type==="Comment"}).length===e.length:!1}accept(e){let t=this.value,i=this.rules,n=this.declarations;i?this.rules=e.visitArray(i):n&&(this.declarations=e.visitArray(n)),t&&(this.value=e.visit(t))}isRulesetLike(){return this.rules||!this.isCharset()}isCharset(){return this.name==="@charset"}genCSS(e,t){let i=this.value,n=this.rules||this.declarations;t.add(this.name,this.fileInfo(),this.getIndex()),i&&(t.add(" "),i.genCSS(e,t)),this.simpleBlock?this.outputRuleset(e,t,this.declarations):n?this.outputRuleset(e,t,n):t.add(";")}eval(e){let t,i,n=this.value,l=this.rules||this.declarations;return t=e.mediaPath,i=e.mediaBlocks,e.mediaPath=[],e.mediaBlocks=[],n&&(n=n.eval(e)),l&&(l=this.evalRoot(e,l)),Array.isArray(l)&&l[0].rules&&Array.isArray(l[0].rules)&&l[0].rules.length&&this.declarationsBlock(l[0].rules,!0)&&!this.isRooted&&!n&&(Ot(l[0].rules),l=l[0].rules,l.forEach(u=>{u.merge=!1})),this.simpleBlock&&l&&(l[0].functionRegistry=e.frames[0].functionRegistry.inherit(),l=l.map(function(s){return s.eval(e)})),e.mediaPath=t,e.mediaBlocks=i,new Ie(this.name,n,l,this.getIndex(),this.fileInfo(),this.debugInfo,this.isRooted,this.visibilityInfo())}evalRoot(e,t){let i=0,n=0,l=!0;this.simpleBlock||(t=[t[0].eval(e)]);let s=[];if(e.frames.length>0)for(let a=0;a<e.frames.length;a++){let h=e.frames[a];h.type==="Ruleset"&&h.rules&&h.rules.length>0&&h&&!h.root&&h.selectors&&h.selectors.length>0&&(s=s.concat(h.selectors)),s.length>0&&(s.every(m=>m.elements&&m.elements.length>0&&m.elements.every(v=>v.value==="&"))?(l=!1,n++):i++)}let u=i>0&&n>0&&!l;return(this.isRooted&&i>0&&n===0&&l||!u)&&(t[0].root=!0),t}variable(e){if(this.rules)return q.prototype.variable.call(this.rules[0],e)}find(){if(this.rules)return q.prototype.find.apply(this.rules[0],arguments)}rulesets(){if(this.rules)return q.prototype.rulesets.apply(this.rules[0])}outputRuleset(e,t,i){let n=i.length,l;if(e.tabLevel=(e.tabLevel|0)+1,e.compress){for(t.add("{"),l=0;l<n;l++)i[l].genCSS(e,t);t.add("}"),e.tabLevel--;return}let s=`
20
+ ${Array(e.tabLevel).join(" ")}`,u=`${s} `;if(!n)t.add(` {${s}}`);else{for(t.add(` {${u}`),i[0].genCSS(e,t),l=1;l<n;l++)t.add(u),i[l].genCSS(e,t);t.add(`${s}}`)}e.tabLevel--}}let{evalFunction:Pi,evalTop:Oi,evalNested:Fi,permute:Li,bubbleSelectors:Vi}=lt;Object.assign(Ie.prototype,{evalFunction:Pi,evalTop:Oi,evalNested:Fi,permute:Li,bubbleSelectors:Vi});let Di=oe;class re extends L{get type(){return"Operation"}constructor(e,t,i){super(),this.op=e.trim(),this.operands=t,this.isSpaced=i}accept(e){this.operands=e.visitArray(this.operands)}eval(e){let t=this.operands[0].eval(e),i=this.operands[1].eval(e),n;if(e.isMathOn(this.op)){if(n=this.op==="./"?"/":this.op,t instanceof F&&i instanceof H&&(t=t.toColor()),i instanceof F&&t instanceof H&&(i=i.toColor()),!t.operate||!i.operate){if((t instanceof re||i instanceof re)&&t.op==="/"&&e.math===Di.PARENS_DIVISION)return new re(this.op,[t,i],this.isSpaced);throw{type:"Operation",message:"Operation on an invalid type"}}return t instanceof F,t.operate(e,n,i)}else return new re(this.op,[t,i],this.isSpaced)}genCSS(e,t){this.operands[0].genCSS(e,t),this.isSpaced&&t.add(" "),t.add(this.op),this.isSpaced&&t.add(" "),this.operands[1].genCSS(e,t)}}class at extends L{get type(){return"Attribute"}constructor(e,t,i,n){super(),this.key=e,this.op=t,this.value=i,this.cif=n}eval(e){return new at(this.key.eval?this.key.eval(e):this.key,this.op,this.value&&this.value.eval?this.value.eval(e):this.value,this.cif)}genCSS(e,t){t.add(this.toCSS(e))}toCSS(e){let t=this.key.toCSS?this.key.toCSS(e):this.key;return this.op&&(t+=this.op,t+=this.value.toCSS?this.value.toCSS(e):this.value),this.cif&&(t=t+" "+this.cif),`[${t}]`}}class Y extends L{get type(){return"Quoted"}constructor(e,t,i,n,l){super(),this.escaped=i===void 0?!0:i,this.value=t||"",this.quote=e.charAt(0),this._index=n,this._fileInfo=l,this.variableRegex=new RegExp(qe.source,"g"),this.propRegex=new RegExp(st.source,"g"),this.allowRoot=i}genCSS(e,t){this.escaped||t.add(this.quote,this.fileInfo(),this.getIndex()),t.add(this.value),this.escaped||t.add(this.quote)}containsVariables(){return this.value.match(this.variableRegex)}eval(e){let t=this,i=this.value,n=function(a,h,d){let m=rt(h??d,t.getIndex(),t.fileInfo()).eval(e);return m instanceof Y?m.value:m.toCSS(e)},l=function(a,h,d){let m=qt(h??d,t.getIndex(),t.fileInfo()).eval(e);return m instanceof Y?m.value:m.toCSS(e)};function s(a,h,d){let m=a;do a=m.toString(),m=a.replace(h,d);while(a!==m);return m}i=s(i,this.variableRegex,n),i=s(i,this.propRegex,l);let u=new Y(this.quote+i+this.quote,i,this.escaped,this.getIndex(),this.fileInfo());return u.quote=this.quote,u}compare(e){return e.type==="Quoted"&&!this.escaped&&!e.escaped?L.numericCompare(this.value,e.value):e.toCSS&&this.toCSS({})===e.toCSS({})?0:void 0}}function Bi(r){return r.replace(/[()'"\s]/g,function(e){return`\\${e}`})}class se extends L{get type(){return"Url"}constructor(e,t,i,n){super(),this.value=e,this._index=t,this._fileInfo=i,this.isEvald=n}accept(e){this.value=e.visit(this.value)}genCSS(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")}eval(e){let t=this.value.eval(e),i;if(!this.isEvald&&(i=this.fileInfo()&&this.fileInfo().rootpath,typeof i=="string"&&typeof t.value=="string"&&e.pathRequiresRewrite(t.value)?(t.quote||(i=Bi(i)),t.value=e.rewritePath(t.value,i)):t.value=e.normalizePath(t.value),e.urlArgs&&!t.value.match(/^\s*data:/))){let l=(t.value.indexOf("?")===-1?"?":"&")+e.urlArgs;t.value.indexOf("#")!==-1?t.value=t.value.replace("#",`${l}#`):t.value+=l}return new se(t,this.getIndex(),this.fileInfo(),!0)}}class ke extends Ie{get type(){return"Media"}constructor(e,t,i,n,l){super(),this._index=i,this._fileInfo=n;let s=new j([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new ne(t),this.rules=[new q(s,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(l),this.allowRoot=!0,this.setParent(s,this),this.setParent(this.features,this),this.setParent(this.rules,this)}genCSS(e,t){t.add("@media ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)}eval(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);let t=new ke(null,[],this._index,this._fileInfo,this.visibilityInfo());this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo),t.features=this.features.eval(e),e.mediaPath.push(t),e.mediaBlocks.push(t);let i=e.frames[0].functionRegistry;return i&&(this.rules[0].functionRegistry=i.inherit()),e.frames.unshift(this.rules[0]),t.rules=[this.rules[0].eval(e)],e.frames.shift(),e.mediaPath.pop(),e.mediaPath.length===0?t.evalTop(e):t.evalNested(e)}}Object.assign(ke.prototype,lt);class Ne extends L{get type(){return"Import"}constructor(e,t,i,n,l,s){if(super(),this.options=i,this._index=n,this._fileInfo=l,this.path=e,this.features=t,this.allowRoot=!0,this.css=void 0,this.layerCss=void 0,this.root=void 0,this.importedFilename=void 0,this.skip=void 0,this.error=void 0,this.options.less!==void 0||this.options.inline)this.css=!this.options.less||this.options.inline;else{let u=this.getPath();u&&/[#.&?]css([?;].*)?$/.test(u)&&(this.css=!0)}this.copyVisibilityInfo(s),this.features&&this.setParent(this.features,this),this.setParent(this.path,this)}accept(e){this.features&&(this.features=e.visit(this.features)),this.path=e.visit(this.path),!this.options.isPlugin&&!this.options.inline&&this.root&&(this.root=e.visit(this.root))}genCSS(e,t){this.css&&this.path._fileInfo.reference===void 0&&(t.add("@import ",this._fileInfo,this._index),this.path.genCSS(e,t),this.features&&(t.add(" "),this.features.genCSS(e,t)),t.add(";"))}getPath(){return this.path instanceof se?this.path.value.value:this.path.value}isVariableImport(){let e=this.path;return e instanceof se&&(e=e.value),e instanceof Y?e.containsVariables():!0}evalForImport(e){let t=this.path;return t instanceof se&&(t=t.value),new Ne(t.eval(e),this.features,this.options,this._index||0,this._fileInfo,this.visibilityInfo())}evalPath(e){let t=this.path.eval(e),i=this._fileInfo;if(!(t instanceof se)){let n=t.value;i&&n&&e.pathRequiresRewrite(n)?t.value=e.rewritePath(n,i.rootpath):t.value=e.normalizePath(t.value)}return t}eval(e){let t=this.doEval(e);return(this.options.reference||this.blocksVisibility())&&(Array.isArray(t)?t.forEach(function(i){i.addVisibilityBlock()}):t.addVisibilityBlock()),t}doEval(e){let t,i=this.features&&this.features.eval(e);if(this.options.isPlugin){if(this.root&&this.root.eval)try{this.root.eval(e)}catch(s){let u=s;throw u.message="Plugin error during evaluation",new V(s,this.root.imports,this.root.filename)}let n=e.frames[0],l=n&&n.functionRegistry;return l&&this.root&&this.root.functions&&l.addMultiple(this.root.functions),[]}if(this.skip&&(typeof this.skip=="function"&&(this.skip=this.skip()),this.skip))return[];if(this.features){let n=this.features.value;if(Array.isArray(n)&&n.length>=1){let l=n[0];l.type==="Expression"&&Array.isArray(l.value)&&l.value.length>=2&&(n=l.value,n[0].type==="Keyword"&&n[0].value==="layer"&&n[1].type==="Paren"&&(this.css=!1))}}if(this.options.inline){let n=new T(this.root,0,{filename:this.importedFilename,reference:this.path._fileInfo&&this.path._fileInfo.reference},!0,!0);return this.features?new ke([n],this.features.value):[n]}else if(this.css||this.layerCss){let n=new Ne(this.evalPath(e),i,this.options,this._index||0);if(this.layerCss&&(n.css=this.layerCss,n.path._fileInfo=this._fileInfo),!n.css&&this.error)throw this.error;return n}else if(this.root){if(this.features){let n=this.features.value;if(Array.isArray(n)&&n.length===1){let l=n[0];if(l.type==="Expression"&&Array.isArray(l.value)&&l.value.length>=2&&(n=l.value,n[0].type==="Keyword"&&n[0].value==="layer"&&n[1].type==="Paren"))return this.layerCss=!0,n[0]=new Q(n.slice(0,2)),n.splice(1,1),n[0].noSpacing=!0,this}}return t=new q(null,K(this.root.rules)),t.evalImports(e),this.features?new ke(t.rules,this.features.value):t.rules}else{if(this.features){let n=this.features.value;if(Array.isArray(n)&&n.length>=1&&(n=n[0].value,Array.isArray(n)&&n.length>=2&&n[0].type==="Keyword"&&n[0].value==="layer"&&n[1].type==="Paren"))return this.css=!0,n[0]=new Q(n.slice(0,2)),n.splice(1,1),n[0].noSpacing=!0,this}return[]}}}class ji extends L{evaluateJavaScript(e,t){let i,n=this,l={};if(!t.javascriptEnabled)throw{message:"Inline JavaScript is not enabled. Is it set in your options?",filename:this.fileInfo().filename,index:this.getIndex()};e=e.replace(qe,function(a,h){return n.jsify(rt(h,n.getIndex(),n.fileInfo()).eval(t))});let s;try{s=new Function(`return (${e})`)}catch(a){throw{message:`JavaScript evaluation error: ${a.message} from \`${e}\``,filename:this.fileInfo().filename,index:this.getIndex()}}let u=t.frames[0].variables();for(let a in u)u.hasOwnProperty(a)&&(l[a.slice(1)]={value:u[a].value,toJS:function(){return this.value.eval(t).toCSS(t)}});try{i=s.call(l)}catch(a){throw{message:`JavaScript evaluation error: '${a.name}: ${a.message.replace(/["]/g,"'")}'`,filename:this.fileInfo().filename,index:this.getIndex()}}return i}jsify(e){return Array.isArray(e.value)&&e.value.length>1?`[${e.value.map(function(t){return t.toCSS(void 0)}).join(", ")}]`:e.toCSS(void 0)}}class Ht extends ji{get type(){return"JavaScript"}constructor(e,t,i,n){super(),this.escaped=t,this.expression=e,this._index=i,this._fileInfo=n}eval(e){let t=this.evaluateJavaScript(this.expression,e),i=typeof t;return i==="number"&&!isNaN(t)?new F(t):i==="string"?new Y(`"${t}"`,t,this.escaped,this._index):Array.isArray(t)?new T(t.join(", ")):new T(t)}}class ot extends L{get type(){return"Assignment"}constructor(e,t){super(),this.key=e,this.value=t}accept(e){this.value=e.visit(this.value)}eval(e){return this.value.eval?new ot(this.key,this.value.eval(e)):this}genCSS(e,t){t.add(`${this.key}=`),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)}}class Ui extends L{get type(){return"Condition"}constructor(e,t,i,n,l){super(),this.op=e.trim(),this.lvalue=t,this.rvalue=i,this._index=n,this.negate=l}accept(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)}eval(e){let t=this.lvalue.eval(e),i=this.rvalue.eval(e),n;switch(this.op){case"and":n=!!(t&&i);break;case"or":n=!!(t||i);break;default:switch(L.compare(t,i)){case-1:n=this.op==="<"||this.op==="=<"||this.op==="<=";break;case 0:n=this.op==="="||this.op===">="||this.op==="=<"||this.op==="<=";break;case 1:n=this.op===">"||this.op===">=";break;default:n=!1}}return this.negate?!n:n}}class ut extends L{get type(){return"QueryInParens"}constructor(e,t,i,n,l,s){super(),this.op=e.trim(),this.lvalue=t,this.mvalue=i,this.op2=n?n.trim():null,this.rvalue=l,this._index=s}accept(e){this.lvalue=e.visit(this.lvalue),this.mvalue=e.visit(this.mvalue),this.rvalue&&(this.rvalue=e.visit(this.rvalue))}eval(e){return new ut(this.op,this.lvalue.eval(e),this.mvalue.eval(e),this.op2,this.rvalue?this.rvalue.eval(e):null,this._index||0)}genCSS(e,t){this.lvalue.genCSS(e,t),t.add(" "+this.op+" "),this.mvalue.genCSS(e,t),this.rvalue&&(t.add(" "+this.op2+" "),this.rvalue.genCSS(e,t))}}class He extends Ie{get type(){return"Container"}constructor(e,t,i,n,l){super(),this._index=i,this._fileInfo=n;let s=new j([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new ne(t),this.rules=[new q(s,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(l),this.allowRoot=!0,this.setParent(s,this),this.setParent(this.features,this),this.setParent(this.rules,this),this._evaluated=void 0}genCSS(e,t){t.add("@container ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)}eval(e){if(this._evaluated)return this;e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);let t=new He(null,[],this._index,this._fileInfo,this.visibilityInfo());t._evaluated=!0,this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,t.debugInfo=this.debugInfo),t.features=this.features.eval(e),e.mediaPath.push(t),e.mediaBlocks.push(t);let i=e.frames[0].functionRegistry;return i&&(this.rules[0].functionRegistry=i.inherit()),e.frames.unshift(this.rules[0]),t.rules=[this.rules[0].eval(e)],e.frames.shift(),e.mediaPath.pop(),e.mediaPath.length===0?t.evalTop(e):t.evalNested(e)}}Object.assign(He.prototype,lt);class Ti extends L{get type(){return"UnicodeDescriptor"}constructor(e){super(),this.value=e}}class ct extends L{get type(){return"Negative"}constructor(e){super(),this.value=e}genCSS(e,t){t.add("-"),this.value.genCSS(e,t)}eval(e){return e.isMathOn("*")?new re("*",[new F(-1),this.value],!1).eval(e):new ct(this.value.eval(e))}}class $e extends L{get type(){return"Extend"}constructor(e,t,i,n,l){switch(super(),this.selector=e,this.option=t,this.object_id=$e.next_id++,this.parent_ids=[this.object_id],this._index=i,this._fileInfo=n,this.copyVisibilityInfo(l),this.allowRoot=!0,this.allowBefore=!1,this.allowAfter=!1,t){case"!all":case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1;break}this.setParent(this.selector,this)}accept(e){this.selector=e.visit(this.selector)}eval(e){return new $e(this.selector.eval(e),this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())}clone(e){return new $e(this.selector,this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())}findSelfSelectors(e){let t=[],i,n;for(i=0;i<e.length;i++)n=e[i].elements,i>0&&n.length&&n[0].combinator.value===""&&(n[0].combinator.value=" "),t=t.concat(e[i].elements);this.selfSelectors=[new j(t)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())}}$e.next_id=0;class be extends q{get type(){return"MixinDefinition"}constructor(e,t,i,n,l,s,u){super(null,null),this.name=e||"anonymous mixin",this.selectors=[new j([new ie(null,e,!1,this._index,this._fileInfo)])],this.params=t,this.condition=n,this.variadic=l,this.arity=t.length,this.rules=i,this._lookups={};let a=[];this.required=t.reduce(function(h,d){return!d.name||d.name&&!d.value?h+1:(a.push(d.name),h)},0),this.optionalParameters=a,this.frames=s,this.copyVisibilityInfo(u),this.allowRoot=!0,this.evalFirst=!0}accept(e){this.params&&this.params.length&&(this.params=e.visitArray(this.params)),this.rules=e.visitArray(this.rules),this.condition&&(this.condition=e.visit(this.condition))}evalParams(e,t,i,n){let l=new q(null,null),s,u,a=K(this.params),h,d,m,v,R,A,y=0;if(t.frames&&t.frames[0]&&t.frames[0].functionRegistry&&(l.functionRegistry=t.frames[0].functionRegistry.inherit()),t=new B.Eval(t,[l].concat(t.frames)),i){for(i=K(i),y=i.length,h=0;h<y;h++)if(u=i[h],v=u&&u.name){for(R=!1,d=0;d<a.length;d++)if(!n[d]&&v===a[d].name){n[d]=u.value.eval(e),l.prependRule(new W(v,u.value.eval(e))),R=!0;break}if(R){i.splice(h,1),h--;continue}else throw{type:"Runtime",message:`Named argument for ${this.name} ${i[h].name} not found`}}}for(A=0,h=0;h<a.length;h++)if(!n[h]){if(u=i&&i[A],v=a[h].name)if(a[h].variadic){for(s=[],d=A;d<y;d++)s.push(i[d].value.eval(e));l.prependRule(new W(v,new Q(s).eval(e)))}else{if(m=u&&u.value,m)Array.isArray(m)?m=new Ae(new q(null,m)):m=m.eval(e);else if(a[h].value)m=a[h].value.eval(t),l.resetCache();else throw{type:"Runtime",message:`wrong number of arguments for ${this.name} (${y} for ${this.arity})`};l.prependRule(new W(v,m)),n[h]=m}if(a[h].variadic&&i)for(d=A;d<y;d++)n[d]=i[d].value.eval(e);A++}return l}makeImportant(){let e=this.rules?this.rules.map(function(i){return i.makeImportant?i.makeImportant(!0):i}):this.rules;return new be(this.name,this.params,e,this.condition,this.variadic,this.frames)}eval(e){return new be(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||K(e.frames))}evalCall(e,t,i){let n=[],l=this.frames?this.frames.concat(e.frames):e.frames,s=this.evalParams(e,new B.Eval(e,l),t,n),u,a;return s.prependRule(new W("@arguments",new Q(n).eval(e))),u=K(this.rules),a=new q(null,u),a.originalRuleset=this,a=a.eval(new B.Eval(e,[this,s].concat(l))),i&&(a=a.makeImportant()),a}matchCondition(e,t){return!(this.condition&&!this.condition.eval(new B.Eval(t,[this.evalParams(t,new B.Eval(t,this.frames?this.frames.concat(t.frames):t.frames),e,[])].concat(this.frames||[]).concat(t.frames))))}matchArgs(e,t){let i=e&&e.length||0,n=new Array(this.params.length),l=[],s=0;for(let u=0;u<i;u++){let a=e[u];if(!a.name){l.push(a);continue}let h=this.params.findIndex((d,m)=>d.name===a.name&&!n[m]);if(h<0)return!1;n[h]=a}for(let u=0;u<this.params.length;u++)if(!n[u]){if(this.params[u].variadic){s=l.length;continue}if(s<l.length)n[u]=l[s++];else if(!this.params[u].name||!this.params[u].value)return!1}if(s<l.length)return!1;for(let u=0;u<this.arity;u++)if(!this.params[u].name&&!this.params[u].variadic&&n[u].value.eval(t).toCSS({})!=this.params[u].value.eval(t).toCSS({}))return!1;return!0}}class qi extends L{get type(){return"MixinCall"}constructor(e,t,i,n,l){super(),this.selector=new j(e),this.arguments=t||[],this._index=i,this._fileInfo=n,this.important=l,this.allowRoot=!0,this.setParent(this.selector,this)}accept(e){this.selector&&(this.selector=e.visit(this.selector)),this.arguments.length&&(this.arguments=e.visitArray(this.arguments))}eval(e){let t,i,n,l=[],s,u,a=[],h=!1,d,m,v,R,A,y=[],$,w=[],C,k=-1,E=0,o=1,c=2,f,p,g;this.selector=this.selector.eval(e);function x(b,M){let I,P,O;for(I=0;I<2;I++){for(w[I]=!0,xe.value(I),P=0;P<M.length&&w[I];P++)O=M[P],O.matchCondition&&(w[I]=w[I]&&O.matchCondition(null,e));b.matchCondition&&(w[I]=w[I]&&b.matchCondition(l,e))}return w[0]||w[1]?w[0]!=w[1]?w[1]?o:c:E:k}for(d=0;d<this.arguments.length;d++)if(s=this.arguments[d],u=s.value.eval(e),s.expand&&Array.isArray(u.value)){let b=u.value;for(m=0;m<b.length;m++)l.push({value:b[m]})}else u.type==="Expression"&&Array.isArray(u.value)&&u.value.length===0||l.push({name:s.name,value:u});for(g=function(b){return b.matchArgs(null,e)},d=0;d<e.frames.length;d++)if((t=e.frames[d].find(this.selector,null,g)).length>0){for(A=!0,m=0;m<t.length;m++){for(i=t[m].rule,n=t[m].path,R=!1,v=0;v<e.frames.length;v++)if(!(i instanceof be)&&i===(e.frames[v].originalRuleset||e.frames[v])){R=!0;break}R||i.matchArgs(l,e)&&($={mixin:i,group:x(i,n)},$.group!==k&&y.push($),h=!0)}for(xe.reset(),f=[0,0,0],m=0;m<y.length;m++)f[y[m].group]++;if(f[E]>0)C=c;else if(C=o,f[o]+f[c]>1)throw{type:"Runtime",message:`Ambiguous use of \`default()\` found when matching for \`${this.format(l)}\``,index:this.getIndex(),filename:this.fileInfo().filename};for(m=0;m<y.length;m++)if($=y[m].group,$===E||$===C)try{i=y[m].mixin,i instanceof be||(p=i.originalRuleset||i,i=new be("",[],i.rules,null,!1,null,p.visibilityInfo()),i.originalRuleset=p);let b=i.evalCall(e,l,this.important).rules;this._setVisibilityToReplacement(b),Array.prototype.push.apply(a,b)}catch(b){throw{...b,index:this.getIndex(),filename:this.fileInfo().filename}}if(h)return a}throw A?{type:"Runtime",message:`No matching definition was found for \`${this.format(l)}\``,index:this.getIndex(),filename:this.fileInfo().filename}:{type:"Name",message:`${this.selector.toCSS({}).trim()} is undefined`,index:this.getIndex(),filename:this.fileInfo().filename}}_setVisibilityToReplacement(e){let t,i;if(this.blocksVisibility())for(t=0;t<e.length;t++)i=e[t],i.addVisibilityBlock()}format(e){return`${this.selector.toCSS({}).trim()}(${e?e.map(function(t){let i="";return t.name&&(i+=`${t.name}:`),t.value.toCSS?i+=t.value.toCSS({}):i+="???",i}).join(", "):""})`}}var S={Node:L,Color:H,AtRule:Ie,DetachedRuleset:Ae,Operation:re,Dimension:F,Unit:Oe,Keyword:z,Variable:he,Property:jt,Ruleset:q,Element:ie,Attribute:at,Combinator:Qe,Selector:j,Quoted:Y,Expression:Q,Declaration:W,Call:Te,URL:se,Import:Ne,Comment:je,Anonymous:T,Value:ne,JavaScript:Ht,Assignment:ot,Condition:Ui,Paren:fe,Media:ke,Container:He,QueryInParens:ut,UnicodeDescriptor:Ti,Negative:ct,Extend:$e,VariableCall:Ut,NamespaceValue:Tt,mixin:{Call:qi,Definition:be}};class zt{getPath(e){let t=e.lastIndexOf("?");return t>0&&(e=e.slice(0,t)),t=e.lastIndexOf("/"),t<0&&(t=e.lastIndexOf("\\")),t<0?"":e.slice(0,t+1)}tryAppendExtension(e,t){return/(\.[a-z]*$)|([?;].*)$/.test(e)?e:e+t}tryAppendLessExtension(e){return this.tryAppendExtension(e,".less")}supportsSync(){return!1}alwaysMakePathsAbsolute(){return!1}isPathAbsolute(e){return/^(?:[a-z-]+:|\/|\\|#)/i.test(e)}join(e,t){return e?e+t:t}pathDiff(e,t){let i=this.extractUrlParts(e),n=this.extractUrlParts(t),l,s,u,a,h="";if(i.hostPart!==n.hostPart)return"";for(s=Math.max(n.directories.length,i.directories.length),l=0;l<s&&n.directories[l]===i.directories[l];l++);for(a=n.directories.slice(l),u=i.directories.slice(l),l=0;l<a.length-1;l++)h+="../";for(l=0;l<u.length-1;l++)h+=`${u[l]}/`;return h}extractUrlParts(e,t){let i=/^((?:[a-z-]+:)?\/{2}(?:[^/?#]*\/)|([/\\]))?((?:[^/\\?#]*[/\\])*)([^/\\?#]*)([#?].*)?$/i,n=e.match(i),l={},s=[],u=[],a,h;if(!n)throw new Error(`Could not parse sheet href - '${e}'`);if(t&&(!n[1]||n[2])){if(h=t.match(i),!h)throw new Error(`Could not parse page url - '${t}'`);n[1]=n[1]||h[1]||"",n[2]||(n[3]=h[3]+n[3])}if(n[3])for(s=n[3].replace(/\\/g,"/").split("/"),a=0;a<s.length;a++)s[a]===".."?u.pop():s[a]!=="."&&u.push(s[a]);return l.hostPart=n[1],l.directories=u,l.rawPath=(n[1]||"")+s.join("/"),l.path=(n[1]||"")+u.join("/"),l.filename=n[4],l.fileUrl=l.path+(n[4]||""),l.url=l.fileUrl+(n[5]||""),l}}class Wt{constructor(){this.require=function(){return null}}evalPlugin(e,t,i,n,l){let s,u,a,h,d,m,v;d=t.pluginManager,l&&(typeof l=="string"?m=l:m=l.filename);let R=new this.less.FileManager().extractUrlParts(m).filename;if(m&&(a=d.get(m),a)){if(v=this.trySetOptions(a,m,R,n),v)return v;try{a.use&&a.use.call(this.context,a)}catch(y){return y.message=y.message||"Error during @plugin call",new V(y,i,m)}return a}h={exports:{},pluginManager:d,fileInfo:l},u=J.create();let A=function(y){a=y};try{s=new Function("module","require","registerPlugin","functions","tree","less","fileInfo",e),s(h,this.require(m),A,u,this.less.tree,this.less,l)}catch(y){return new V(y,i,m)}if(a||(a=h.exports),a=this.validatePlugin(a,m,R),a instanceof V)return a;if(a){if(a.imports=i,a.filename=m,(!a.minVersion||this.compareVersion("3.0.0",a.minVersion)<0)&&(v=this.trySetOptions(a,m,R,n),v)||(d.addPlugin(a,l.filename,u),a.functions=u.getLocalFunctions(),v=this.trySetOptions(a,m,R,n),v))return v;try{a.use&&a.use.call(this.context,a)}catch(y){return y.message=y.message||"Error during @plugin call",new V(y,i,m)}}else return new V({message:"Not a valid plugin"},i,m);return a}trySetOptions(e,t,i,n){if(n&&!e.setOptions)return new V({message:`Options have been provided but the plugin ${i} does not support any options.`});try{e.setOptions&&e.setOptions(n)}catch(l){return new V(l)}}validatePlugin(e,t,i){return e?(typeof e=="function"&&(e=new e),e.minVersion&&this.compareVersion(e.minVersion,this.less.version)<0?new V({message:`Plugin ${i} requires version ${this.versionToString(e.minVersion)}`}):e):null}compareVersion(e,t){typeof e=="string"&&(e=e.match(/^(\d+)\.?(\d+)?\.?(\d+)?/),e.shift());for(let i=0;i<e.length;i++)if(e[i]!==t[i])return parseInt(e[i])>parseInt(t[i])?-1:1;return 0}versionToString(e){let t="";for(let i=0;i<e.length;i++)t+=(t?".":"")+e[i];return t}printUsage(e){for(let t=0;t<e.length;t++){let i=e[t];i.printUsage&&i.printUsage()}}}function Ni(r){return r?z.True:z.False}function Gt(r,e,t,i){return e.eval(r)?t.eval(r):i?i.eval(r):new T}Gt.evalArgs=!1;function Kt(r,e){try{return e.eval(r),z.True}catch{return z.False}}Kt.evalArgs=!1;var Hi={isdefined:Kt,boolean:Ni,if:Gt};let X;function le(r){return Math.min(1,Math.max(0,r))}function pe(r,e){let t=X.hsla(e.h,e.s,e.l,e.a);if(t)return r.value&&/^(rgb|hsl)/.test(r.value)?t.value=r.value:t.value="rgb",t}function ee(r){if(r.toHSL)return r.toHSL();throw new Error("Argument cannot be evaluated to a color")}function ft(r){if(r.toHSV)return r.toHSV();throw new Error("Argument cannot be evaluated to a color")}function te(r){if(r instanceof F)return parseFloat(r.unit.is("%")?r.value/100:r.value);if(typeof r=="number")return r;throw{type:"Argument",message:"color functions take numbers as parameters"}}function zi(r,e){return r instanceof F&&r.unit.is("%")?parseFloat(r.value*e/100):te(r)}X={rgb:function(r,e,t){let i=1;if(r instanceof Q){let l=r.value;if(r=l[0],e=l[1],t=l[2],t instanceof re){let s=t;t=s.operands[0],i=s.operands[1]}}let n=X.rgba(r,e,t,i);if(n)return n.value="rgb",n},rgba:function(r,e,t,i){try{if(r instanceof H)return e?i=te(e):i=r.alpha,new H(r.rgb,i,"rgba");let n=[r,e,t].map(l=>zi(l,255));return i=te(i),new H(n,i,"rgba")}catch{}},hsl:function(r,e,t){let i=1;if(r instanceof Q){let l=r.value;if(r=l[0],e=l[1],t=l[2],t instanceof re){let s=t;t=s.operands[0],i=s.operands[1]}}let n=X.hsla(r,e,t,i);if(n)return n.value="hsl",n},hsla:function(r,e,t,i){let n,l;function s(u){return u=u<0?u+1:u>1?u-1:u,u*6<1?n+(l-n)*u*6:u*2<1?l:u*3<2?n+(l-n)*(2/3-u)*6:n}try{if(r instanceof H)return e?i=te(e):i=r.alpha,new H(r.rgb,i,"hsla");r=te(r)%360/360,e=le(te(e)),t=le(te(t)),i=le(te(i)),l=t<=.5?t*(e+1):t+e-t*e,n=t*2-l;let u=[s(r+1/3)*255,s(r)*255,s(r-1/3)*255];return i=te(i),new H(u,i,"hsla")}catch{}},hsv:function(r,e,t){return X.hsva(r,e,t,1)},hsva:function(r,e,t,i){r=te(r)%360/360*360,e=te(e),t=te(t),i=te(i);let n,l;n=Math.floor(r/60%6),l=r/60-n;let s=[t,t*(1-e),t*(1-l*e),t*(1-(1-l)*e)],u=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return X.rgba(s[u[n][0]]*255,s[u[n][1]]*255,s[u[n][2]]*255,i)},hue:function(r){return new F(ee(r).h)},saturation:function(r){return new F(ee(r).s*100,"%")},lightness:function(r){return new F(ee(r).l*100,"%")},hsvhue:function(r){return new F(ft(r).h)},hsvsaturation:function(r){return new F(ft(r).s*100,"%")},hsvvalue:function(r){return new F(ft(r).v*100,"%")},red:function(r){return new F(r.rgb[0])},green:function(r){return new F(r.rgb[1])},blue:function(r){return new F(r.rgb[2])},alpha:function(r){return new F(ee(r).a)},luma:function(r){return new F(r.luma()*r.alpha*100,"%")},luminance:function(r){let e=.2126*r.rgb[0]/255+.7152*r.rgb[1]/255+.0722*r.rgb[2]/255;return new F(e*r.alpha*100,"%")},saturate:function(r,e,t){if(!r.rgb)return null;let i=ee(r);return typeof t<"u"&&t.value==="relative"?i.s+=i.s*e.value/100:i.s+=e.value/100,i.s=le(i.s),pe(r,i)},desaturate:function(r,e,t){let i=ee(r);return typeof t<"u"&&t.value==="relative"?i.s-=i.s*e.value/100:i.s-=e.value/100,i.s=le(i.s),pe(r,i)},lighten:function(r,e,t){let i=ee(r);return typeof t<"u"&&t.value==="relative"?i.l+=i.l*e.value/100:i.l+=e.value/100,i.l=le(i.l),pe(r,i)},darken:function(r,e,t){let i=ee(r);return typeof t<"u"&&t.value==="relative"?i.l-=i.l*e.value/100:i.l-=e.value/100,i.l=le(i.l),pe(r,i)},fadein:function(r,e,t){let i=ee(r);return typeof t<"u"&&t.value==="relative"?i.a+=i.a*e.value/100:i.a+=e.value/100,i.a=le(i.a),pe(r,i)},fadeout:function(r,e,t){let i=ee(r);return typeof t<"u"&&t.value==="relative"?i.a-=i.a*e.value/100:i.a-=e.value/100,i.a=le(i.a),pe(r,i)},fade:function(r,e){let t=ee(r);return t.a=e.value/100,t.a=le(t.a),pe(r,t)},spin:function(r,e){let t=ee(r),i=(t.h+e.value)%360;return t.h=i<0?360+i:i,pe(r,t)},mix:function(r,e,t){t||(t=new F(50));let i=t.value/100,n=i*2-1,l=ee(r).a-ee(e).a,s=((n*l==-1?n:(n+l)/(1+n*l))+1)/2,u=1-s,a=[r.rgb[0]*s+e.rgb[0]*u,r.rgb[1]*s+e.rgb[1]*u,r.rgb[2]*s+e.rgb[2]*u],h=r.alpha*i+e.alpha*(1-i);return new H(a,h)},greyscale:function(r){return X.desaturate(r,new F(100))},contrast:function(r,e,t,i){if(!r.rgb)return null;if(typeof t>"u"&&(t=X.rgba(255,255,255,1)),typeof e>"u"&&(e=X.rgba(0,0,0,1)),e.luma()>t.luma()){let n=t;t=e,e=n}return typeof i>"u"?i=.43:i=te(i),r.luma()<i?t:e},argb:function(r){return new T(r.toARGB())},color:function(r){if(r instanceof Y&&/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})$/i.test(r.value)){let e=r.value.slice(1);return new H(e,void 0,`#${e}`)}if(r instanceof H||(r=H.fromKeyword(r.value)))return r.value=void 0,r;throw{type:"Argument",message:"argument must be a color keyword or 3|4|6|8 digit hex e.g. #FFF"}},tint:function(r,e){return X.mix(X.rgb(255,255,255),r,e)},shade:function(r,e){return X.mix(X.rgb(0,0,0),r,e)}};var Wi=X;function ht(r,e,t){let i=e.alpha,n,l=t.alpha,s,u,a,h=[];u=l+i*(1-l);for(let d=0;d<3;d++)n=e.rgb[d]/255,s=t.rgb[d]/255,a=r(n,s),u&&(a=(l*s+i*(n-l*(n+s-a)))/u),h[d]=a*255;return new H(h,u)}let Ee={multiply:function(r,e){return r*e},screen:function(r,e){return r+e-r*e},overlay:function(r,e){return r*=2,r<=1?Ee.multiply(r,e):Ee.screen(r-1,e)},softlight:function(r,e){let t=1,i=r;return e>.5&&(i=1,t=r>.25?Math.sqrt(r):((16*r-12)*r+4)*r),r-(1-2*e)*i*(t-r)},hardlight:function(r,e){return Ee.overlay(e,r)},difference:function(r,e){return Math.abs(r-e)},exclusion:function(r,e){return r+e-2*r*e},average:function(r,e){return(r+e)/2},negation:function(r,e){return 1-Math.abs(r+e-1)}};for(let r in Ee)Ee.hasOwnProperty(r)&&(ht[r]=ht.bind(null,Ee[r]));var Gi=r=>{let e=(t,i)=>new se(i,t.index,t.currentFileInfo).eval(t.context);return{"data-uri":function(t,i){i||(i=t,t=null);let n=t&&t.value,l=i.value,s=this.currentFileInfo,u=s.rewriteUrls?s.currentDirectory:s.entryPath,a=l.indexOf("#"),h="";a!==-1&&(h=l.slice(a),l=l.slice(0,a));let d=Ye(this.context);d.rawBuffer=!0;let m=r.getFileManager(l,u,d,r,!0);if(!m)return e(this,i);let v=!1;if(t)v=/;base64$/.test(n);else{if(n=r.mimeLookup(l),n==="image/svg+xml")v=!1;else{let $=r.charsetLookup(n);v=["US-ASCII","UTF-8"].indexOf($)<0}v&&(n+=";base64")}let R=m.loadFileSync(l,u,d,r);if(!R.contents)return ce.warn(`Skipped data-uri embedding of ${l} because file not found`),e(this,i||t);let A=R.contents;if(v&&!r.encodeBase64)return e(this,i);A=v?r.encodeBase64(A):encodeURIComponent(A);let y=`data:${n},${A}${h}`;return new se(new Y(`"${y}"`,y,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}};let Jt=r=>Array.isArray(r.value)?r.value:Array(r);var Ki={_SELF:function(r){return r},"~":function(...r){return r.length===1?r[0]:new ne(r)},extract:function(r,e){return e=e.value-1,Jt(r)[e]},length:function(r){return new F(Jt(r).length)},range:function(r,e,t){let i,n,l=1,s=[];e?(n=e,i=r.value,t&&(l=t.value)):(i=1,n=r);for(let u=i;u<=n.value;u+=l)s.push(new F(u,n.unit));return new Q(s)},each:function(r,e){let t=[],i,n,l=h=>h instanceof L?h.eval(this.context):h;r.value&&!(r instanceof Y)?Array.isArray(r.value)?n=r.value.map(l):n=[l(r.value)]:r.ruleset?n=l(r.ruleset).rules:r.rules?n=r.rules.map(l):Array.isArray(r)?n=r.map(l):n=[l(r)];let s="@value",u="@key",a="@index";e.params?(s=e.params[0]&&e.params[0].name,u=e.params[1]&&e.params[1].name,a=e.params[2]&&e.params[2].name,e=e.rules):e=e.ruleset;for(let h=0;h<n.length;h++){let d,m,v=n[h];v instanceof W?(d=typeof v.name=="string"?v.name:v.name[0].value,m=v.value):(d=new F(h+1),m=v),!(v instanceof je)&&(i=e.rules.slice(0),s&&i.push(new W(s,m,!1,!1,this.index,this.currentFileInfo)),a&&i.push(new W(a,new F(h+1),!1,!1,this.index,this.currentFileInfo)),u&&i.push(new W(u,d,!1,!1,this.index,this.currentFileInfo)),t.push(new q([new j([new ie("","&")])],i,e.strictImports,e.visibilityInfo())))}return new q([new j([new ie("","&")])],t,e.strictImports,e.visibilityInfo()).eval(this.context)}};let pt=(r,e,t,i)=>{if(!(i instanceof F)){if(t&&i&&i.type==="Call")return;throw{type:"Argument",message:"argument must be a number"}}return e===null?e=i.unit:i=i.unify(),new F(r(parseFloat(i.value)),e)},Re={ceil:[null,!1],floor:[null,!1],sqrt:[null,!0],abs:[null,!0],tan:["",!0],sin:["",!0],cos:["",!0],atan:["rad",!0],asin:["rad",!0],acos:["rad",!0]};for(let r in Re)if(Re.hasOwnProperty(r)){let[e,t]=Re[r];Re[r]=pt.bind(null,Math[r],e,t)}Re.round=(r,e)=>{let t=typeof e>"u"?0:e.value;return pt(i=>i.toFixed(t),null,!1,r)};let Zt=function(r,e){switch(e=Array.prototype.slice.call(e),e.length){case 0:throw{type:"Argument",message:"one or more arguments required"}}let t,i,n,l,s,u,a,h,d=[],m={};for(t=0;t<e.length;t++){if(n=e[t],!(n instanceof F))if(Array.isArray(e[t].value)){Array.prototype.push.apply(e,Array.prototype.slice.call(e[t].value));continue}else throw{type:"Argument",message:"incompatible types"};if(l=n.unit.toString()===""&&h!==void 0?new F(n.value,h).unify():n.unify(),u=l.unit.toString()===""&&a!==void 0?a:l.unit.toString(),a=u!==""&&a===void 0||u!==""&&d[0].unify().unit.toString()===""?u:a,h=u!==""&&h===void 0?n.unit.toString():h,i=m[""]!==void 0&&u!==""&&u===a?m[""]:m[u],i===void 0){if(a!==void 0&&u!==a)throw{type:"Argument",message:"incompatible types"};m[u]=d.length,d.push(n);continue}s=d[i].unit.toString()===""&&h!==void 0?new F(d[i].value,h).unify():d[i].unify(),(r&&l.value<s.value||!r&&l.value>s.value)&&(d[i]=n)}return d.length==1?d[0]:(e=d.map(v=>v.toCSS(this.context)).join(this.context.compress?",":", "),new T(`${r?"min":"max"}(${e})`))};var Ji={min:function(...r){try{return Zt.call(this,!0,r)}catch{}},max:function(...r){try{return Zt.call(this,!1,r)}catch{}},convert:function(r,e){return r.convertTo(e.value)},pi:function(){return new F(Math.PI)},mod:function(r,e){return new F(r.value%e.value,r.unit)},pow:function(r,e){if(typeof r=="number"&&typeof e=="number")r=new F(r),e=new F(e);else if(!(r instanceof F)||!(e instanceof F))throw{type:"Argument",message:"arguments must be numbers"};return new F(Math.pow(r.value,e.value),r.unit)},percentage:function(r){return pt(t=>t*100,"%",!1,r)}},Zi={e:function(r){return new Y('"',r instanceof Ht?r.evaluated:r.value,!0)},escape:function(r){let e=encodeURI(r.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"),t=new T(e);return t._preventReparse=e.includes("%"),t},replace:function(r,e,t,i){let n=r.value;return t=t.type==="Quoted"?t.value:t.toCSS(),n=n.replace(new RegExp(e.value,i?i.value:""),t),new Y(r.quote||"",n,r.escaped)},"%":function(r){let e=Array.prototype.slice.call(arguments,1),t=r.value;for(let i=0;i<e.length;i++)t=t.replace(/%[sda]/i,n=>{let l=e[i].type==="Quoted"&&n.match(/s/i)?e[i].value:e[i].toCSS();return n.match(/[A-Z]$/)?encodeURIComponent(l):l});return t=t.replace(/%%/g,"%"),new Y(r.quote||"",t,r.escaped)}},Qi=()=>({"svg-gradient":function(r){let e,t,i="linear",n='x="0" y="0" width="1" height="1"',l={compress:!1},s,u=r.toCSS(l),a,h,d,m,v;function R(){throw{type:"Argument",message:"svg-gradient expects direction, start_color [start_position], [color position,]..., end_color [end_position] or direction, color list"}}switch(arguments.length==2?(arguments[1].value.length<2&&R(),e=arguments[1].value):arguments.length<3?R():e=Array.prototype.slice.call(arguments,1),u){case"to bottom":t='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":t='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":t='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":t='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":i="radial",t='cx="50%" cy="50%" r="75%"',n='x="-50" y="-50" width="101" height="101"';break;default:throw{type:"Argument",message:"svg-gradient direction must be 'to bottom', 'to right', 'to bottom right', 'to top right' or 'ellipse at center'"}}for(s=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><${i}Gradient id="g" ${t}>`,a=0;a<e.length;a+=1)e[a]instanceof Q?(h=e[a].value[0],d=e[a].value[1]):(h=e[a],d=void 0),(!(h instanceof H)||!((a===0||a+1===e.length)&&d===void 0)&&!(d instanceof F))&&R(),m=d?d.toCSS(l):a===0?"0%":"100%",v=h.alpha,s+=`<stop offset="${m}" stop-color="${h.toRGB()}"${v<1?` stop-opacity="${v}"`:""}/>`;return s+=`</${i}Gradient><rect ${n} fill="url(#g)" /></svg>`,s=encodeURIComponent(s),s=`data:image/svg+xml,${s}`,new se(new Y(`'${s}'`,s,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}});let _e=(r,e)=>r instanceof e?z.True:z.False,ze=(r,e)=>{if(e===void 0)throw{type:"Argument",message:"missing the required second argument to isunit."};if(e=typeof e.value=="string"?e.value:e,typeof e!="string")throw{type:"Argument",message:"Second argument to isunit should be a unit or a string."};return r instanceof F&&r.unit.is(e)?z.True:z.False};var Yi={isruleset:function(r){return _e(r,Ae)},iscolor:function(r){return _e(r,H)},isnumber:function(r){return _e(r,F)},isstring:function(r){return _e(r,Y)},iskeyword:function(r){return _e(r,z)},isurl:function(r){return _e(r,se)},ispixel:function(r){return ze(r,"px")},ispercentage:function(r){return ze(r,"%")},isem:function(r){return ze(r,"em")},isunit:ze,unit:function(r,e){if(!(r instanceof F))throw{type:"Argument",message:`the first argument to unit must be a number${r instanceof re?". Have you forgotten parenthesis?":""}`};return e?e instanceof z?e=e.value:e=e.toCSS():e="",new F(r.value,e)},"get-unit":function(r){return new T(r.unit)}};let Xi=function(r){if(r=Array.prototype.slice.call(r),r.length===0)throw{type:"Argument",message:"one or more arguments required"};let t=[new he(r[0].value,this.index,this.currentFileInfo).eval(this.context)].map(i=>i.toCSS(this.context)).join(this.context.compress?",":", ");return new T(`style(${t})`)};var es={style:function(...r){try{return Xi.call(this,r)}catch{}}},ts=r=>{let e={functionRegistry:J,functionCaller:Dt};return J.addMultiple(Hi),J.add("default",xe.eval.bind(xe)),J.addMultiple(Wi),J.addMultiple(ht),J.addMultiple(Gi(r)),J.addMultiple(Ki),J.addMultiple(Re),J.addMultiple(Ji),J.addMultiple(Zi),J.addMultiple(Qi()),J.addMultiple(Yi),J.addMultiple(es),e};function Qt(r,e){e=e||{};let t,i=e.variables,n=new B.Eval(e);typeof i=="object"&&!Array.isArray(i)&&(i=Object.keys(i).map(function(h){let d=i[h];return d instanceof S.Value||(d instanceof S.Expression||(d=new S.Expression([d])),d=new S.Value([d])),new S.Declaration(`@${h}`,d,!1,null,0)}),n.frames=[new S.Ruleset(null,i)]);let l=[new Ce.JoinSelectorVisitor,new Ce.MarkVisibleSelectorsVisitor(!0),new Ce.ExtendVisitor,new Ce.ToCSSVisitor({compress:!!e.compress})],s=[],u,a;if(e.pluginManager){a=e.pluginManager.visitor();for(let h=0;h<2;h++)for(a.first();u=a.get();)u.isPreEvalVisitor?(h===0||s.indexOf(u)===-1)&&(s.push(u),u.run(r)):(h===0||l.indexOf(u)===-1)&&(u.isPreVisitor?l.unshift(u):l.push(u))}t=r.eval(n);for(let h=0;h<l.length;h++)l[h].run(t);if(e.pluginManager)for(a.first();u=a.get();)l.indexOf(u)===-1&&s.indexOf(u)===-1&&u.run(t);return t}class is{constructor(e){this.less=e,this.visitors=[],this.preProcessors=[],this.postProcessors=[],this.installedPlugins=[],this.fileManagers=[],this.iterator=-1,this.pluginCache={},this.Loader=new e.PluginLoader(e)}addPlugins(e){if(e)for(let t=0;t<e.length;t++)this.addPlugin(e[t])}addPlugin(e,t,i){this.installedPlugins.push(e),t&&(this.pluginCache[t]=e),e.install&&e.install(this.less,this,i||this.less.functions.functionRegistry)}get(e){return this.pluginCache[e]}addVisitor(e){this.visitors.push(e)}addPreProcessor(e,t){let i;for(i=0;i<this.preProcessors.length&&!(this.preProcessors[i].priority>=t);i++);this.preProcessors.splice(i,0,{preProcessor:e,priority:t})}addPostProcessor(e,t){let i;for(i=0;i<this.postProcessors.length&&!(this.postProcessors[i].priority>=t);i++);this.postProcessors.splice(i,0,{postProcessor:e,priority:t})}addFileManager(e){this.fileManagers.push(e)}getPreProcessors(){let e=[];for(let t=0;t<this.preProcessors.length;t++)e.push(this.preProcessors[t].preProcessor);return e}getPostProcessors(){let e=[];for(let t=0;t<this.postProcessors.length;t++)e.push(this.postProcessors[t].postProcessor);return e}getVisitors(){return this.visitors}visitor(){let e=this;return{first:function(){return e.iterator=-1,e.visitors[e.iterator]},get:function(){return e.iterator+=1,e.visitors[e.iterator]}}}getFileManagers(){return this.fileManagers}}let dt,Yt=function(r,e){return(e||!dt)&&(dt=new is(r)),dt};function ss(r){class e{constructor(i){this._css=[],this._rootNode=i.rootNode,this._contentsMap=i.contentsMap,this._contentsIgnoredCharsMap=i.contentsIgnoredCharsMap,i.sourceMapFilename&&(this._sourceMapFilename=i.sourceMapFilename.replace(/\\/g,"/")),this._outputFilename=i.outputFilename?i.outputFilename.replace(/\\/g,"/"):i.outputFilename,this.sourceMapURL=i.sourceMapURL,i.sourceMapBasepath&&(this._sourceMapBasepath=i.sourceMapBasepath.replace(/\\/g,"/")),i.sourceMapRootpath?(this._sourceMapRootpath=i.sourceMapRootpath.replace(/\\/g,"/"),this._sourceMapRootpath.charAt(this._sourceMapRootpath.length-1)!=="/"&&(this._sourceMapRootpath+="/")):this._sourceMapRootpath="",this._outputSourceFiles=i.outputSourceFiles,this._sourceMapGeneratorConstructor=r.getSourceMapGenerator(),this._lineNumber=0,this._column=0}removeBasepath(i){return this._sourceMapBasepath&&i.indexOf(this._sourceMapBasepath)===0&&(i=i.substring(this._sourceMapBasepath.length),(i.charAt(0)==="\\"||i.charAt(0)==="/")&&(i=i.substring(1))),i}normalizeFilename(i){return i=i.replace(/\\/g,"/"),i=this.removeBasepath(i),(this._sourceMapRootpath||"")+i}add(i,n,l,s){if(!i)return;let u,a,h,d,m;if(n&&n.filename){let v=this._contentsMap[n.filename];if(this._contentsIgnoredCharsMap[n.filename]&&(l-=this._contentsIgnoredCharsMap[n.filename],l<0&&(l=0),v=v.slice(this._contentsIgnoredCharsMap[n.filename])),v===void 0){this._css.push(i);return}v=v.substring(0,l),a=v.split(`
21
21
  `),d=a[a.length-1]}if(u=i.split(`
22
- `),p=u[u.length-1],n&&n.filename)if(!s)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+1,column:this._column},original:{line:a.length,column:d.length},source:this.normalizeFilename(n.filename)});else for(g=0;g<u.length;g++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+g+1,column:g===0?this._column:0},original:{line:a.length+g,column:g===0?d.length:0},source:this.normalizeFilename(n.filename)});u.length===1?this._column+=p.length:(this._lineNumber+=u.length-1,this._column=p.length),this._css.push(i)}isEmpty(){return this._css.length===0}toCSS(i){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles){for(let n in this._contentsMap)if(this._contentsMap.hasOwnProperty(n)){let l=this._contentsMap[n];this._contentsIgnoredCharsMap[n]&&(l=l.slice(this._contentsIgnoredCharsMap[n])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(n),l)}}if(this._rootNode.genCSS(i,this),this._css.length>0){let n,l=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?n=this.sourceMapURL:this._sourceMapFilename&&(n=this._sourceMapFilename),this.sourceMapURL=n,this.sourceMap=l}return this._css.join("")}}return e}function Ni(r,e){class t{constructor(n){this.options=n}toCSS(n,l,s){let u=new r({contentsIgnoredCharsMap:s.contentsIgnoredChars,rootNode:n,contentsMap:s.contents,sourceMapFilename:this.options.sourceMapFilename,sourceMapURL:this.options.sourceMapURL,outputFilename:this.options.sourceMapOutputFilename,sourceMapBasepath:this.options.sourceMapBasepath,sourceMapRootpath:this.options.sourceMapRootpath,outputSourceFiles:this.options.outputSourceFiles,sourceMapGenerator:this.options.sourceMapGenerator,sourceMapFileInline:this.options.sourceMapFileInline,disableSourcemapAnnotation:this.options.disableSourcemapAnnotation}),a=u.toCSS(l);return this.sourceMap=u.sourceMap,this.sourceMapURL=u.sourceMapURL,this.options.sourceMapInputFilename&&(this.sourceMapInputFilename=u.normalizeFilename(this.options.sourceMapInputFilename)),this.options.sourceMapBasepath!==void 0&&this.sourceMapURL!==void 0&&(this.sourceMapURL=u.removeBasepath(this.sourceMapURL)),a+this.getCSSAppendage()}getCSSAppendage(){let n=this.sourceMapURL;if(this.options.sourceMapFileInline){if(this.sourceMap===void 0)return"";n=`data:application/json;base64,${e.encodeBase64(this.sourceMap)}`}return this.options.disableSourcemapAnnotation?"":n?`/*# sourceMappingURL=${n} */`:""}getExternalSourceMap(){return this.sourceMap}setExternalSourceMap(n){this.sourceMap=n}isInline(){return this.options.sourceMapFileInline}getSourceMapURL(){return this.sourceMapURL}getOutputFilename(){return this.options.sourceMapOutputFilename}getInputFilename(){return this.sourceMapInputFilename}}return t}function zi(r){class e{constructor(i,n){this.root=i,this.imports=n}toCSS(i){let n,l={},s;try{n=Ut(this.root,i)}catch(u){throw new O(u,this.imports)}try{let u=!!i.compress;u&&ue.warn("The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.");let a={compress:u,dumpLineNumbers:i.dumpLineNumbers,strictUnits:!!i.strictUnits,numPrecision:8};if(i.sourceMap){i.sourceMap===!0&&(i.sourceMap={});let p=i.sourceMap;if(!p.sourceMapInputFilename&&i.filename&&(p.sourceMapInputFilename=i.filename),p.sourceMapBasepath===void 0&&i.filename){let d=Math.max(i.filename.lastIndexOf("/"),i.filename.lastIndexOf("\\"));d>=0?p.sourceMapBasepath=i.filename.substring(0,d):p.sourceMapBasepath="."}if(p.sourceMapFullFilename&&!p.sourceMapFileInline){if(!p.sourceMapFilename&&!p.sourceMapURL){let d=p.sourceMapFullFilename.split(/[/\\]/).pop();p.sourceMapFilename=d}}else if(!p.sourceMapFilename&&!p.sourceMapURL){if(p.sourceMapOutputFilename)p.sourceMapFilename=p.sourceMapOutputFilename+".map";else if(i.filename){let d=i.filename.split(/[/\\]/).pop().replace(/\.[^/.]+$/,"");p.sourceMapFilename=d+".css.map"}}if(!p.sourceMapOutputFilename)if(i.filename){let d=i.filename.split(/[/\\]/).pop().replace(/\.[^/.]+$/,"");p.sourceMapOutputFilename=d+".css"}else p.sourceMapOutputFilename="output.css";s=new r(p),l.css=s.toCSS(n,a,this.imports)}else l.css=n.toCSS(a)}catch(u){throw new O(u,this.imports)}if(i.pluginManager){let u=i.pluginManager.getPostProcessors();for(let a=0;a<u.length;a++)l.css=u[a].process(l.css,{sourceMap:s,options:i,imports:this.imports})}i.sourceMap&&(l.map=s.getExternalSourceMap()),l.imports=[];for(let u in this.imports.files)Object.prototype.hasOwnProperty.call(this.imports.files,u)&&u!==this.imports.rootFilename&&l.imports.push(u);return l}}return e}function Hi(r){class e{constructor(i,n,l){this.less=i,this.rootFilename=l.filename,this.paths=n.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=n.mime,this.error=null,this.context=n,this.queue=[],this.files={}}push(i,n,l,s,u){let a=this,p=this.context.pluginManager.Loader;this.queue.push(i);let d=function(c,f,h){a.queue.splice(a.queue.indexOf(i),1);let m=h===a.rootFilename;s.optional&&c?(u(null,{rules:[]},!1,null),ue.info(`The file ${h} was skipped because it was not found and the import was marked optional.`)):(!a.files[h]&&!s.inline&&(a.files[h]={root:f,options:s}),c&&!a.error&&(a.error=c),u(c,f,m,h))},g={rewriteUrls:this.context.rewriteUrls,entryPath:l.entryPath,rootpath:l.rootpath,rootFilename:l.rootFilename},v=r.getFileManager(i,l.currentDirectory,this.context,r);if(!v){d({message:`Could not find a file-manager for ${i}`});return}let k=function(c){let f,h=c.filename,m=c.contents.replace(/^\uFEFF/,"");g.currentDirectory=v.getPath(h),g.rewriteUrls&&(g.rootpath=v.join(a.context.rootpath||"",v.pathDiff(g.currentDirectory,g.entryPath)),!v.isPathAbsolute(g.rootpath)&&v.alwaysMakePathsAbsolute()&&(g.rootpath=v.join(g.entryPath,g.rootpath))),g.filename=h;let b=new V.Parse(a.context);b.processImports=!1,a.contents[h]=m,(l.reference||s.reference)&&(g.reference=!0),s.isPlugin?(f=p.evalPlugin(m,b,a,s.pluginArgs,g),f instanceof O?d(f,null,h):d(null,f,h)):s.inline?d(null,m,h):a.files[h]&&!a.files[h].options.multiple&&!s.multiple?d(null,a.files[h].root,h):new ge(b,a,g).parse(m,function(w,I){d(w,I,h)})},A,y,o=Je(this.context);n&&(o.ext=s.isPlugin?".js":".less"),s.isPlugin?(o.mime="application/javascript",o.syncImport?A=p.loadPluginSync(i,l.currentDirectory,o,r,v):y=p.loadPlugin(i,l.currentDirectory,o,r,v)):o.syncImport?A=v.loadFileSync(i,l.currentDirectory,o,r):y=v.loadFile(i,l.currentDirectory,o,r,(c,f)=>{c?d(c):k(f)}),A?A.filename?k(A):d(A):y&&y.then(k,d)}}return e}function Wi(r,e,t){let i=function(n,l,s){if(typeof l=="function"?(s=l,l=_e(this.options,{})):l=_e(this.options,l||{}),s){let u,a,p=new Tt(this,!l.reUsePluginManager);if(l.pluginManager=p,u=new V.Parse(l),l.rootFileInfo)a=l.rootFileInfo;else{let g=l.filename||"input",v=g.replace(/[^/\\]*$/,"");a={filename:g,rewriteUrls:u.rewriteUrls,rootpath:u.rootpath||"",currentDirectory:v,entryPath:v,rootFilename:g},a.rootpath&&a.rootpath.slice(-1)!=="/"&&(a.rootpath+="/")}let d=new t(this,u,a);this.importManager=d,l.plugins&&l.plugins.forEach(function(g){let v,k;if(g.fileContent){if(k=g.fileContent.replace(/^\uFEFF/,""),v=p.Loader.evalPlugin(k,u,d,g.options,g.filename),v instanceof O)return s(v)}else p.addPlugin(g)}),new ge(u,d,a).parse(n,function(g,v){if(g)return s(g);s(null,v,d,l)},l)}else{let u=this;return new Promise(function(a,p){i.call(u,n,l,function(d,g){d?p(d):a(g)})})}};return i}function Gi(r,e){let t=function(i,n,l){if(typeof n=="function"?(l=n,n=_e(this.options,{})):n=_e(this.options,n||{}),l)this.parse(i,n,function(s,u,a,p){if(s)return l(s);let d;try{d=new e(u,a).toCSS(p)}catch(g){return l(g)}l(null,d)});else{let s=this;return new Promise(function(u,a){t.call(s,i,n,function(p,d){p?a(p):u(d)})})}};return t}function Ki(r){var e=r.match(/^v(\d{1,2})\.(\d{1,2})\.(\d{1,2})(?:-([0-9A-Za-z-.]+))?(?:\+([0-9A-Za-z-.]+))?$/);if(!e)throw new Error("Unable to parse: "+r);var t={major:parseInt(e[1],10),minor:parseInt(e[2],10),patch:parseInt(e[3],10),pre:e[4]||"",build:e[5]||""};return t}var Ji=Ki;function Zi(r,e,t="0.0.0"){let i,n,l,s;r=new pt(r,e),i=qi(r),n=Ni(i,r),l=zi(n),s=Hi(r);let u=Gi(r,l),a=Wi(r,l,s),p=Ji(`v${t}`),d={version:[p.major,p.minor,p.patch],data:Jt,tree:S,Environment:pt,AbstractFileManager:Ot,AbstractPluginLoader:Lt,environment:r,visitors:Se,Parser:ge,functions:Ui(r),contexts:V,SourceMapOutput:i,SourceMapBuilder:n,ParseTree:l,ImportManager:s,render:u,parse:a,LessError:O,transformTree:Ut,utils:ei,PluginManager:Tt,logger:ue},g=function(A){return function(...y){return new A(...y)}},v,k=Object.create(d);for(let A in d.tree)if(v=d.tree[A],typeof v=="function")k[A.toLowerCase()]=g(v);else{k[A]=Object.create(null);for(let y in v)k[A][y.toLowerCase()]=g(v[y])}return d.parse=d.parse.bind(k),d.render=d.render.bind(k),k}let Fe,qt,Ne={},Nt=function(){};Nt.prototype=Object.assign(new Ot,{alwaysMakePathsAbsolute(){return!0},join(r,e){return r?this.extractUrlParts(e,r).path:e},doXHR(r,e,t,i){let n=new XMLHttpRequest,l=Fe.isFileProtocol?Fe.fileAsync:!0;typeof n.overrideMimeType=="function"&&n.overrideMimeType("text/css"),qt.debug(`XHR: Getting '${r}'`),n.open("GET",r,l),n.setRequestHeader("Accept",e||"text/x-less, text/css; q=0.9, */*; q=0.5"),n.send(null);function s(u,a,p){u.status>=200&&u.status<300?a(u.responseText,u.getResponseHeader("Last-Modified")):typeof p=="function"&&p(u.status,r)}Fe.isFileProtocol&&!Fe.fileAsync?n.status===0||n.status>=200&&n.status<300?t(n.responseText):i(n.status,r):l?n.onreadystatechange=()=>{n.readyState==4&&s(n,t,i)}:s(n,t,i)},supports(){return!0},clearFileCache(){Ne={}},loadFile(r,e,t){e&&!this.isPathAbsolute(r)&&(r=e+r),r=t.ext?this.tryAppendExtension(r,t.ext):r,t=t||{};let n=this.extractUrlParts(r,window.location.href).url,l=this;return new Promise((s,u)=>{if(t.useFileCache&&Ne[n])try{let a=Ne[n];return s({contents:a,filename:n,webInfo:{lastModified:new Date}})}catch(a){return u({filename:n,message:`Error loading file ${n} error was ${a.message}`})}l.doXHR(n,t.mime,function(p,d){Ne[n]=p,s({contents:p,filename:n,webInfo:{lastModified:d}})},function(p,d){u({type:"File",message:`'${d}' wasn't found (${p})`,href:n})})})}});var Qi=(r,e)=>(Fe=r,qt=e,Nt);let zt=function(r){this.less=r};zt.prototype=Object.assign(new Lt,{loadPlugin(r,e,t,i,n){return new Promise((l,s)=>{n.loadFile(r,e,t,i).then(l).catch(s)})}});var Xi=(r,e)=>{e.logLevel=typeof e.logLevel<"u"?e.logLevel:e.env==="development"?3:1,e.loggers||(e.loggers=[{debug:function(s){e.logLevel>=4&&console.log(s)},info:function(s){e.logLevel>=3&&console.log(s)},warn:function(s){e.logLevel>=2&&console.warn(s)},error:function(s){e.logLevel>=1&&console.error(s)}}]);for(let s=0;s<e.loggers.length;s++)r.logger.addListener(e.loggers[s])},Yi=(r,e,t)=>{function i(a,p){let d=`less-error-message:${U(p||"")}`,g='<li><label>{line}</label><pre class="{class}">{content}</pre></li>',v=r.document.createElement("div"),k,A,y=[],o=a.filename||p,c=o.match(/([^/]+(\?.*)?)$/)[1];v.id=d,v.className="less-error-message",A=`<h3>${a.type||"Syntax"}Error: ${a.message||"There is an error in your .less file"}</h3><p>in <a href="${o}">${c}</a> `;let f=(h,m,b)=>{h.extract[m]!==void 0&&y.push(g.replace(/\{line\}/,(parseInt(h.line,10)||0)+(m-1)).replace(/\{class\}/,b).replace(/\{content\}/,h.extract[m]))};a.line&&(f(a,0,""),f(a,1,"line"),f(a,2,""),A+=`on line ${a.line}, column ${a.column+1}:</p><ul>${y.join("")}</ul>`),a.stack&&(a.extract||t.logLevel>=4)&&(A+=`<br/>Stack Trace</br />${a.stack.split(`
23
- `).slice(1).join("<br/>")}`),v.innerHTML=A,he.createCSS(r.document,[".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join(`
24
- `),{title:"error-message"}),v.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),t.env==="development"&&(k=setInterval(()=>{let h=r.document,m=h.body;m&&(h.getElementById(d)?m.replaceChild(v,h.getElementById(d)):m.insertBefore(v,m.firstChild),clearInterval(k))},10))}function n(a){let p=r.document.getElementById(`less-error-message:${U(a)}`);p&&p.parentNode.removeChild(p)}function l(a){!t.errorReporting||t.errorReporting==="html"?n(a):t.errorReporting==="console"||typeof t.errorReporting=="function"&&t.errorReporting("remove",a)}function s(a,p){let d="{line} {content}",g=a.filename||p,v=[],k=`${a.type||"Syntax"}Error: ${a.message||"There is an error in your .less file"} in ${g}`,A=(y,o,c)=>{y.extract[o]!==void 0&&v.push(d.replace(/\{line\}/,(parseInt(y.line,10)||0)+(o-1)).replace(/\{class\}/,c).replace(/\{content\}/,y.extract[o]))};a.line&&(A(a,0,""),A(a,1,"line"),A(a,2,""),k+=` on line ${a.line}, column ${a.column+1}:
22
+ `),h=u[u.length-1],n&&n.filename)if(!s)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+1,column:this._column},original:{line:a.length,column:d.length},source:this.normalizeFilename(n.filename)});else for(m=0;m<u.length;m++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+m+1,column:m===0?this._column:0},original:{line:a.length+m,column:m===0?d.length:0},source:this.normalizeFilename(n.filename)});u.length===1?this._column+=h.length:(this._lineNumber+=u.length-1,this._column=h.length),this._css.push(i)}isEmpty(){return this._css.length===0}toCSS(i){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles){for(let n in this._contentsMap)if(this._contentsMap.hasOwnProperty(n)){let l=this._contentsMap[n];this._contentsIgnoredCharsMap[n]&&(l=l.slice(this._contentsIgnoredCharsMap[n])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(n),l)}}if(this._rootNode.genCSS(i,this),this._css.length>0){let n,l=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?n=this.sourceMapURL:this._sourceMapFilename&&(n=this._sourceMapFilename),this.sourceMapURL=n,this.sourceMap=l}return this._css.join("")}}return e}function ns(r,e){class t{constructor(n){this.options=n}toCSS(n,l,s){let u=new r({contentsIgnoredCharsMap:s.contentsIgnoredChars,rootNode:n,contentsMap:s.contents,sourceMapFilename:this.options.sourceMapFilename,sourceMapURL:this.options.sourceMapURL,outputFilename:this.options.sourceMapOutputFilename,sourceMapBasepath:this.options.sourceMapBasepath,sourceMapRootpath:this.options.sourceMapRootpath,outputSourceFiles:this.options.outputSourceFiles,sourceMapGenerator:this.options.sourceMapGenerator,sourceMapFileInline:this.options.sourceMapFileInline,disableSourcemapAnnotation:this.options.disableSourcemapAnnotation}),a=u.toCSS(l);return this.sourceMap=u.sourceMap,this.sourceMapURL=u.sourceMapURL,this.options.sourceMapInputFilename&&(this.sourceMapInputFilename=u.normalizeFilename(this.options.sourceMapInputFilename)),this.options.sourceMapBasepath!==void 0&&this.sourceMapURL!==void 0&&(this.sourceMapURL=u.removeBasepath(this.sourceMapURL)),a+this.getCSSAppendage()}getCSSAppendage(){let n=this.sourceMapURL;if(this.options.sourceMapFileInline){if(this.sourceMap===void 0)return"";n=`data:application/json;base64,${e.encodeBase64(this.sourceMap)}`}return this.options.disableSourcemapAnnotation?"":n?`/*# sourceMappingURL=${n} */`:""}getExternalSourceMap(){return this.sourceMap}setExternalSourceMap(n){this.sourceMap=n}isInline(){return this.options.sourceMapFileInline}getSourceMapURL(){return this.sourceMapURL}getOutputFilename(){return this.options.sourceMapOutputFilename}getInputFilename(){return this.sourceMapInputFilename}}return t}function rs(r){class e{constructor(i,n){this.root=i,this.imports=n}toCSS(i){let n,l={},s;try{n=Qt(this.root,i)}catch(u){throw new V(u,this.imports)}try{let u=!!i.compress;u&&ce.warn("The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.");let a={compress:u,dumpLineNumbers:i.dumpLineNumbers,strictUnits:!!i.strictUnits,numPrecision:8};if(i.sourceMap){i.sourceMap===!0&&(i.sourceMap={});let h=i.sourceMap;if(!h.sourceMapInputFilename&&i.filename&&(h.sourceMapInputFilename=i.filename),h.sourceMapBasepath===void 0&&i.filename){let d=Math.max(i.filename.lastIndexOf("/"),i.filename.lastIndexOf("\\"));d>=0?h.sourceMapBasepath=i.filename.substring(0,d):h.sourceMapBasepath="."}if(h.sourceMapFullFilename&&!h.sourceMapFileInline){if(!h.sourceMapFilename&&!h.sourceMapURL){let d=h.sourceMapFullFilename.split(/[/\\]/).pop();h.sourceMapFilename=d}}else if(!h.sourceMapFilename&&!h.sourceMapURL){if(h.sourceMapOutputFilename)h.sourceMapFilename=h.sourceMapOutputFilename+".map";else if(i.filename){let d=i.filename.split(/[/\\]/).pop().replace(/\.[^/.]+$/,"");h.sourceMapFilename=d+".css.map"}}if(!h.sourceMapOutputFilename)if(i.filename){let d=i.filename.split(/[/\\]/).pop().replace(/\.[^/.]+$/,"");h.sourceMapOutputFilename=d+".css"}else h.sourceMapOutputFilename="output.css";s=new r(h),l.css=s.toCSS(n,a,this.imports)}else l.css=n.toCSS(a)}catch(u){throw new V(u,this.imports)}if(i.pluginManager){let u=i.pluginManager.getPostProcessors();for(let a=0;a<u.length;a++)l.css=u[a].process(l.css,{sourceMap:s,options:i,imports:this.imports})}i.sourceMap&&(l.map=s.getExternalSourceMap()),l.imports=[];for(let u in this.imports.files)Object.prototype.hasOwnProperty.call(this.imports.files,u)&&u!==this.imports.rootFilename&&l.imports.push(u);return l}}return e}function ls(r){class e{constructor(i,n,l){this.less=i,this.rootFilename=l.filename,this.paths=n.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=n.mime,this.error=null,this.context=n,this.queue=[],this.files={}}push(i,n,l,s,u){let a=this,h=this.context.pluginManager.Loader;this.queue.push(i);let d=function(w,C,k){a.queue.splice(a.queue.indexOf(i),1);let E=k===a.rootFilename;s.optional&&w?(u(null,{rules:[]},!1,null),ce.info(`The file ${k} was skipped because it was not found and the import was marked optional.`)):(!a.files[k]&&!s.inline&&(a.files[k]={root:C,options:s}),w&&!a.error&&(a.error=w),u(w,C,E,k))},m={rewriteUrls:this.context.rewriteUrls,entryPath:l.entryPath,rootpath:l.rootpath,rootFilename:l.rootFilename},v=r.getFileManager(i,l.currentDirectory,this.context,r);if(!v){d({message:`Could not find a file-manager for ${i}`});return}let R=function(w){let C,k=w.filename,E=w.contents.replace(/^\uFEFF/,"");m.currentDirectory=v.getPath(k),m.rewriteUrls&&(m.rootpath=v.join(a.context.rootpath||"",v.pathDiff(m.currentDirectory,m.entryPath)),!v.isPathAbsolute(m.rootpath)&&v.alwaysMakePathsAbsolute()&&(m.rootpath=v.join(m.entryPath,m.rootpath))),m.filename=k;let o=new B.Parse(a.context);o.processImports=!1,a.contents[k]=E,(l.reference||s.reference)&&(m.reference=!0),s.isPlugin?(C=h.evalPlugin(E,o,a,s.pluginArgs,m),C instanceof V?d(C,null,k):d(null,C,k)):s.inline?d(null,E,k):a.files[k]&&!a.files[k].options.multiple&&!s.multiple?d(null,a.files[k].root,k):new ye(o,a,m).parse(E,function(c,f){d(c,f,k)})},A,y,$=Ye(this.context);n&&($.ext=s.isPlugin?".js":".less"),s.isPlugin?($.mime="application/javascript",$.syncImport?A=h.loadPluginSync(i,l.currentDirectory,$,r,v):y=h.loadPlugin(i,l.currentDirectory,$,r,v)):$.syncImport?A=v.loadFileSync(i,l.currentDirectory,$,r):y=v.loadFile(i,l.currentDirectory,$,r,(w,C)=>{w?d(w):R(C)}),A?A.filename?R(A):d(A):y&&y.then(R,d)}}return e}function as(r,e,t){let i=function(n,l,s){if(typeof l=="function"?(s=l,l=Pe(this.options,{})):l=Pe(this.options,l||{}),s){let u,a,h=new Yt(this,!l.reUsePluginManager);if(l.pluginManager=h,u=new B.Parse(l),l.rootFileInfo)a=l.rootFileInfo;else{let m=l.filename||"input",v=m.replace(/[^/\\]*$/,"");a={filename:m,rewriteUrls:u.rewriteUrls,rootpath:u.rootpath||"",currentDirectory:v,entryPath:v,rootFilename:m},a.rootpath&&a.rootpath.slice(-1)!=="/"&&(a.rootpath+="/")}let d=new t(this,u,a);this.importManager=d,l.plugins&&l.plugins.forEach(function(m){let v,R;if(m.fileContent){if(R=m.fileContent.replace(/^\uFEFF/,""),v=h.Loader.evalPlugin(R,u,d,m.options,m.filename),v instanceof V)return s(v)}else h.addPlugin(m)}),new ye(u,d,a).parse(n,function(m,v){if(m)return s(m);s(null,v,d,l)},l)}else{let u=this;return new Promise(function(a,h){i.call(u,n,l,function(d,m){d?h(d):a(m)})})}};return i}function os(r,e){let t=function(i,n,l){if(typeof n=="function"?(l=n,n=Pe(this.options,{})):n=Pe(this.options,n||{}),l)this.parse(i,n,function(s,u,a,h){if(s)return l(s);let d;try{d=new e(u,a).toCSS(h)}catch(m){return l(m)}l(null,d)});else{let s=this;return new Promise(function(u,a){t.call(s,i,n,function(h,d){h?a(h):u(d)})})}};return t}function us(r){var e=r.match(/^v(\d{1,2})\.(\d{1,2})\.(\d{1,2})(?:-([0-9A-Za-z-.]+))?(?:\+([0-9A-Za-z-.]+))?$/);if(!e)throw new Error("Unable to parse: "+r);var t={major:parseInt(e[1],10),minor:parseInt(e[2],10),patch:parseInt(e[3],10),pre:e[4]||"",build:e[5]||""};return t}var cs=us;function fs(r,e,t="0.0.0"){let i,n,l,s;r=new bt(r,e),i=ss(r),n=ns(i,r),l=rs(n),s=ls(r);let u=os(r,l),a=as(r,l,s),h=cs(`v${t}`),d={version:[h.major,h.minor,h.patch],data:li,tree:S,Environment:bt,AbstractFileManager:zt,AbstractPluginLoader:Wt,environment:r,visitors:Ce,Parser:ye,functions:ts(r),contexts:B,SourceMapOutput:i,SourceMapBuilder:n,ParseTree:l,ImportManager:s,render:u,parse:a,LessError:V,transformTree:Qt,utils:fi,PluginManager:Yt,logger:ce},m=function(A){return function(...y){return new A(...y)}},v,R=Object.create(d);for(let A in d.tree)if(v=d.tree[A],typeof v=="function")R[A.toLowerCase()]=m(v);else{R[A]=Object.create(null);for(let y in v)R[A][y.toLowerCase()]=m(v[y])}return d.parse=d.parse.bind(R),d.render=d.render.bind(R),R}let Fe,Xt,We={},ei=function(){};ei.prototype=Object.assign(new zt,{alwaysMakePathsAbsolute(){return!0},join(r,e){return r?this.extractUrlParts(e,r).path:e},doXHR(r,e,t,i){let n=new XMLHttpRequest,l=Fe.isFileProtocol?Fe.fileAsync:!0;typeof n.overrideMimeType=="function"&&n.overrideMimeType("text/css"),Xt.debug(`XHR: Getting '${r}'`),n.open("GET",r,l),n.setRequestHeader("Accept",e||"text/x-less, text/css; q=0.9, */*; q=0.5"),n.send(null);function s(u,a,h){u.status>=200&&u.status<300?a(u.responseText,u.getResponseHeader("Last-Modified")):typeof h=="function"&&h(u.status,r)}Fe.isFileProtocol&&!Fe.fileAsync?n.status===0||n.status>=200&&n.status<300?t(n.responseText):i(n.status,r):l?n.onreadystatechange=()=>{n.readyState==4&&s(n,t,i)}:s(n,t,i)},supports(){return!0},clearFileCache(){We={}},loadFile(r,e,t){e&&!this.isPathAbsolute(r)&&(r=e+r),r=t.ext?this.tryAppendExtension(r,t.ext):r,t=t||{};let n=this.extractUrlParts(r,window.location.href).url,l=this;return new Promise((s,u)=>{if(t.useFileCache&&We[n])try{let a=We[n];return s({contents:a,filename:n,webInfo:{lastModified:new Date}})}catch(a){return u({filename:n,message:`Error loading file ${n} error was ${a.message}`})}l.doXHR(n,t.mime,function(h,d){We[n]=h,s({contents:h,filename:n,webInfo:{lastModified:d}})},function(h,d){u({type:"File",message:`'${d}' wasn't found (${h})`,href:n})})})}});var hs=(r,e)=>(Fe=r,Xt=e,ei);let ti=function(r){this.less=r};ti.prototype=Object.assign(new Wt,{loadPlugin(r,e,t,i,n){return new Promise((l,s)=>{n.loadFile(r,e,t,i).then(l).catch(s)})}});var ps=(r,e)=>{e.logLevel=typeof e.logLevel<"u"?e.logLevel:e.env==="development"?3:1,e.loggers||(e.loggers=[{debug:function(s){e.logLevel>=4&&console.log(s)},info:function(s){e.logLevel>=3&&console.log(s)},warn:function(s){e.logLevel>=2&&console.warn(s)},error:function(s){e.logLevel>=1&&console.error(s)}}]);for(let s=0;s<e.loggers.length;s++)r.logger.addListener(e.loggers[s])},ds=(r,e,t)=>{function i(a,h){let d=`less-error-message:${N(h||"")}`,m='<li><label>{line}</label><pre class="{class}">{content}</pre></li>',v=r.document.createElement("div"),R,A,y=[],$=a.filename||h,w=$.match(/([^/]+(\?.*)?)$/)[1];v.id=d,v.className="less-error-message",A=`<h3>${a.type||"Syntax"}Error: ${a.message||"There is an error in your .less file"}</h3><p>in <a href="${$}">${w}</a> `;let C=(k,E,o)=>{k.extract[E]!==void 0&&y.push(m.replace(/\{line\}/,(parseInt(k.line,10)||0)+(E-1)).replace(/\{class\}/,o).replace(/\{content\}/,k.extract[E]))};a.line&&(C(a,0,""),C(a,1,"line"),C(a,2,""),A+=`on line ${a.line}, column ${a.column+1}:</p><ul>${y.join("")}</ul>`),a.stack&&(a.extract||t.logLevel>=4)&&(A+=`<br/>Stack Trace</br />${a.stack.split(`
23
+ `).slice(1).join("<br/>")}`),v.innerHTML=A,de.createCSS(r.document,[".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join(`
24
+ `),{title:"error-message"}),v.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),t.env==="development"&&(R=setInterval(()=>{let k=r.document,E=k.body;E&&(k.getElementById(d)?E.replaceChild(v,k.getElementById(d)):E.insertBefore(v,E.firstChild),clearInterval(R))},10))}function n(a){let h=r.document.getElementById(`less-error-message:${N(a)}`);h&&h.parentNode.removeChild(h)}function l(a){!t.errorReporting||t.errorReporting==="html"?n(a):t.errorReporting==="console"||typeof t.errorReporting=="function"&&t.errorReporting("remove",a)}function s(a,h){let d="{line} {content}",m=a.filename||h,v=[],R=`${a.type||"Syntax"}Error: ${a.message||"There is an error in your .less file"} in ${m}`,A=(y,$,w)=>{y.extract[$]!==void 0&&v.push(d.replace(/\{line\}/,(parseInt(y.line,10)||0)+($-1)).replace(/\{class\}/,w).replace(/\{content\}/,y.extract[$]))};a.line&&(A(a,0,""),A(a,1,"line"),A(a,2,""),R+=` on line ${a.line}, column ${a.column+1}:
25
25
  ${v.join(`
26
- `)}`),a.stack&&(a.extract||t.logLevel>=4)&&(k+=`
26
+ `)}`),a.stack&&(a.extract||t.logLevel>=4)&&(R+=`
27
27
  Stack Trace
28
- ${a.stack}`),e.logger.error(k)}function u(a,p){!t.errorReporting||t.errorReporting==="html"?i(a,p):t.errorReporting==="console"?s(a,p):typeof t.errorReporting=="function"&&t.errorReporting("add",a,p)}return{add:u,remove:l}},es=(r,e,t)=>{let i=null;if(e.env!=="development")try{i=typeof r.localStorage>"u"?null:r.localStorage}catch{}return{setCSS:function(n,l,s,u){if(i){t.info(`saving ${n} to cache.`);try{i.setItem(n,u),i.setItem(`${n}:timestamp`,l),s&&i.setItem(`${n}:vars`,JSON.stringify(s))}catch{t.error(`failed to save "${n}" to local storage for caching.`)}}},getCSS:function(n,l,s){let u=i&&i.getItem(n),a=i&&i.getItem(`${n}:timestamp`),p=i&&i.getItem(`${n}:vars`);if(s=s||{},p=p||"{}",a&&l.lastModified&&new Date(l.lastModified).valueOf()===new Date(a).valueOf()&&JSON.stringify(s)===p)return u}}},ts=()=>{function r(){throw{type:"Runtime",message:"Image size functions are not supported in browser version of less"}}let e={"image-size":function(t){return r(),-1},"image-width":function(t){return r(),-1},"image-height":function(t){return r(),-1}};G.addMultiple(e)},is="less",ss="4.7.0",ns="Leaner CSS",rs="http://lesscss.org",ls={name:"Alexis Sellier",email:"self@cloudhead.net"},as=["The Core Less Team"],os={url:"https://github.com/less/less.js/issues"},us={type:"git",url:"https://github.com/less/less.js.git"},cs={url:"https://github.com/less/less.js/blob/master/",raw:"https://raw.githubusercontent.com/less/less.js/master/"},fs="Apache-2.0",hs="module",ps={lessc:"./bin/lessc"},ds="./dist/less-node.cjs",ms={".":{browser:"./dist/less.cjs",import:"./lib/less-node/index.js",require:"./dist/less-node.cjs",default:"./lib/less-node/index.js"},"./lib/*":"./lib/*","./dist/less-node.cjs":"./dist/less-node.cjs","./dist/less.cjs":"./dist/less.cjs","./dist/less.js":"./dist/less.js","./dist/less.min.js":"./dist/less.min.js"},gs={test:"./test"},vs=["bin","lib","!lib/**/*.map","dist","index.cjs","README.md"],ys="./dist/less.js",bs={node:">=18"},ws={quicktest:"grunt quicktest",test:"grunt test","test:node":"grunt test:node","test:coverage":'c8 -r lcov -r json-summary -r text-summary -r html --include="lib/**/*.js" --include="bin/**/*.js" --exclude="dist/**" --exclude="**/*.test.js" --exclude="**/*.spec.js" --exclude="test/**" --exclude="tmp/**" --exclude="**/abstract-file-manager.js" --exclude="**/abstract-plugin-loader.js" grunt shell:test && node scripts/coverage-report.js && node scripts/coverage-lines.js',grunt:"grunt",lint:"eslint '**/*.{ts,js}'","lint:fix":"eslint '**/*.{ts,js}' --fix",typecheck:"tsc --noEmit",build:"node build/rollup.js --dist",prepublishOnly:"npm run typecheck && grunt dist && grunt test:node"},Ss={errno:"^0.1.1","graceful-fs":"^4.1.2","probe-image-size":"^7.2.3","make-dir":"^5.1.0",mime:"^1.4.1",needle:"^3.1.0","source-map":"~0.6.0"},Cs={"@less/test-data":"workspace:*","@less/test-import-module":"workspace:*","@rollup/plugin-commonjs":"^17.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.0.0","@types/node":"^18","@typescript-eslint/eslint-plugin":"^4.28.0","@typescript-eslint/parser":"^4.28.0",benny:"^3.6.12","bootstrap-less-port":"0.3.0",c8:"^10.1.3",chai:"^4.2.0",chalk:"^4.1.2",cosmiconfig:"~9.0.0","cross-env":"^7.0.3",eslint:"^7.29.0","fs-extra":"^8.1.0","git-rev":"^0.2.1",glob:"~11.0.3",globby:"^10.0.1",grunt:"^1.5.0","grunt-cli":"^1.3.2","grunt-contrib-clean":"^1.0.0","grunt-contrib-connect":"^1.0.2","grunt-eslint":"^23.0.0","grunt-saucelabs":"^9.0.1","grunt-shell":"^1.3.0","html-template-tag":"^3.2.0","jest-diff":"~30.1.2","jit-grunt":"^0.10.0","less-plugin-autoprefix":"^1.5.1","less-plugin-clean-css":"^1.6.0",minimist:"^1.2.0",mocha:"^6.2.1","mocha-teamcity-reporter":"^3.0.0","npm-run-all":"^4.1.5","performance-now":"^0.2.0",phin:"^2.2.3",playwright:"1.50.1",promise:"^7.1.1","read-glob":"^3.0.0",resolve:"^1.17.0",rollup:"^2.52.2","rollup-plugin-terser":"^5.1.1",semver:"^6.3.0",shx:"^0.3.2","time-grunt":"^1.3.0",typescript:"^5.7.0",uikit:"2.27.4",url:"^0.11.4","path-browserify":"^1.0.1",webpack:"^5.64.6","webpack-cli":"^5.1.4"},xs=["compile less","css nesting","css variable","css","gradients css","gradients css3","less compiler","less css","less mixins","less","less.js","lesscss","mixins","nested css","parser","preprocessor","bootstrap css","bootstrap less","style","styles","stylesheet","variables in css","css less"],As="https://raw.github.com/less/less.js/v",Is="https://github.com/less/less.js/archive/v",ks={"copy-anything":"^3.0.5","parse-node-version":"^1.0.1"},$s="1df9072ee9ebdadc791bf35dfb1dbc3ef9f1948f",Es={name:is,version:ss,description:ns,homepage:rs,author:ls,contributors:as,bugs:os,repository:us,master:cs,license:fs,type:hs,bin:ps,main:ds,exports:ms,directories:gs,files:vs,browser:ys,engines:bs,scripts:ws,optionalDependencies:Ss,devDependencies:Cs,keywords:xs,rawcurrent:As,sourcearchive:Is,dependencies:ks,gitHead:$s},Rs=(r,e)=>{let t=r.document,i=Zi(void 0,void 0,Es.version);i.options=e;let n=i.environment,l=Qi(e,i.logger),s=new l;n.addFileManager(s),i.FileManager=l,i.PluginLoader=zt,Xi(i,e);let u=Yi(r,i,e),a=i.cache=e.cache||es(r,e,i.logger);ts(i.environment),e.functions&&i.functions.functionRegistry.addMultiple(e.functions);let p=/^text\/(x-)?less$/;function d(y){let o={};for(let c in y)Object.prototype.hasOwnProperty.call(y,c)&&(o[c]=y[c]);return o}function g(y){let o=t.getElementsByTagName("style");for(let c of o)if(c.type.match(p)){let f={...d(e),modifyVars:y,filename:t.location.href.replace(/#.*$/,"")},h=c.innerHTML||"";i.render(h,f,(m,b)=>{m?u.add(m,"inline"):(c.type="text/css",c.styleSheet?c.styleSheet.cssText=b.css:c.innerHTML=b.css)})}}function v(y,o,c,f,h){let m=d(e);te(m,y),m.mime=y.type,h&&(m.modifyVars=h);function b(w){let I=w.contents,x=w.filename,$=w.webInfo,M={currentDirectory:s.getPath(x),filename:x,rootFilename:x,rewriteUrls:m.rewriteUrls};if(M.entryPath=M.currentDirectory,M.rootpath=m.rootpath||M.currentDirectory,$){$.remaining=f;let C=a.getCSS(x,$,m.modifyVars);if(!c&&C){$.local=!0,o(null,C,I,y,$,x);return}}u.remove(x),m.rootFileInfo=M,i.render(I,m,(C,_)=>{C?(C.href=x,o(C)):(a.setCSS(y.href,$.lastModified,m.modifyVars,_.css),o(null,_.css,I,y,$,x))})}s.loadFile(y.href,null,m,n).then(w=>{b(w)}).catch(w=>{console.log(w),o(w)})}function k(y,o,c){for(let f=0;f<i.sheets.length;f++)v(i.sheets[f],y,o,i.sheets.length-(f+1),c)}function A(){i.env==="development"&&(i.watchTimer=setInterval(()=>{i.watchMode&&(s.clearFileCache(),k((y,o,c,f,h)=>{y?u.add(y,y.href||f.href):o&&he.createCSS(r.document,o,f)}))},e.poll))}return i.watch=function(){return i.watchMode||(i.env="development",A()),this.watchMode=!0,!0},i.unwatch=function(){return clearInterval(i.watchTimer),this.watchMode=!1,!1},i.registerStylesheetsImmediately=()=>{let y=t.getElementsByTagName("link");i.sheets=[];for(let o=0;o<y.length;o++)(y[o].rel==="stylesheet/less"||y[o].rel.match(/stylesheet/)&&y[o].type.match(p))&&i.sheets.push(y[o])},i.registerStylesheets=()=>new Promise(y=>{i.registerStylesheetsImmediately(),y()}),i.modifyVars=y=>i.refresh(!0,y,!1),i.refresh=(y,o,c)=>((y||c)&&c!==!1&&s.clearFileCache(),new Promise((f,h)=>{let m,b,w,I;m=b=new Date,I=i.sheets.length,I===0?(b=new Date,w=b-m,i.logger.info("Less has finished and no sheets were loaded."),f({startTime:m,endTime:b,totalMilliseconds:w,sheets:i.sheets.length})):k((x,$,M,C,_)=>{if(x){u.add(x,x.href||C.href),h(x);return}_.local?i.logger.info(`Loading ${C.href} from cache.`):i.logger.info(`Rendered ${C.href} successfully.`),he.createCSS(r.document,$,C),i.logger.info(`CSS for ${C.href} generated in ${new Date-b}ms`),I--,I===0&&(w=new Date-m,i.logger.info(`Less has finished. CSS generated in ${w}ms`),f({startTime:m,endTime:b,totalMilliseconds:w,sheets:i.sheets.length})),b=new Date},y,o),g(o)})),i.refreshStyles=g,i};let re=H();if(window.less)for(let r in window.less)Object.prototype.hasOwnProperty.call(window.less,r)&&(re[r]=window.less[r]);pe(window,re),re.plugins=re.plugins||[],window.LESS_PLUGINS&&(re.plugins=re.plugins.concat(window.LESS_PLUGINS));let ye=Rs(window,re);window.less=ye;let ut,ct,be;function Ht(r){r.filename&&console.warn(r),re.async||ct.removeChild(be)}return re.onReady&&(/!watch/.test(window.location.hash)&&ye.watch(),re.async||(ut="body { display: none !important }",ct=document.head||document.getElementsByTagName("head")[0],be=document.createElement("style"),be.type="text/css",be.styleSheet?be.styleSheet.cssText=ut:be.appendChild(document.createTextNode(ut)),ct.appendChild(be)),ye.registerStylesheetsImmediately(),ye.pageLoadFinished=ye.refresh(ye.env==="development").then(Ht,Ht)),ye}))});var Kt=js(Gt());globalThis["less-compiler"]=Kt.default;})();
28
+ ${a.stack}`),e.logger.error(R)}function u(a,h){!t.errorReporting||t.errorReporting==="html"?i(a,h):t.errorReporting==="console"?s(a,h):typeof t.errorReporting=="function"&&t.errorReporting("add",a,h)}return{add:u,remove:l}},ms=(r,e,t)=>{let i=null;if(e.env!=="development")try{i=typeof r.localStorage>"u"?null:r.localStorage}catch{}return{setCSS:function(n,l,s,u){if(i){t.info(`saving ${n} to cache.`);try{i.setItem(n,u),i.setItem(`${n}:timestamp`,l),s&&i.setItem(`${n}:vars`,JSON.stringify(s))}catch{t.error(`failed to save "${n}" to local storage for caching.`)}}},getCSS:function(n,l,s){let u=i&&i.getItem(n),a=i&&i.getItem(`${n}:timestamp`),h=i&&i.getItem(`${n}:vars`);if(s=s||{},h=h||"{}",a&&l.lastModified&&new Date(l.lastModified).valueOf()===new Date(a).valueOf()&&JSON.stringify(s)===h)return u}}},gs=()=>{function r(){throw{type:"Runtime",message:"Image size functions are not supported in browser version of less"}}let e={"image-size":function(t){return r(),-1},"image-width":function(t){return r(),-1},"image-height":function(t){return r(),-1}};J.addMultiple(e)},vs="less",ys="4.9.0",bs="Leaner CSS",ws="http://lesscss.org",Ss={name:"Alexis Sellier",email:"self@cloudhead.net"},Cs=["The Core Less Team"],xs={url:"https://github.com/less/less.js/issues"},As={type:"git",url:"https://github.com/less/less.js.git"},Is={url:"https://github.com/less/less.js/blob/master/",raw:"https://raw.githubusercontent.com/less/less.js/master/"},ks="Apache-2.0",$s="module",Es={lessc:"./bin/lessc"},Rs="./dist/less-node.cjs",_s={".":{browser:"./dist/less.cjs",import:"./lib/less-node/index.js",require:"./dist/less-node.cjs",default:"./lib/less-node/index.js"},"./lib/*":"./lib/*","./dist/less-node.cjs":"./dist/less-node.cjs","./dist/less.cjs":"./dist/less.cjs","./dist/less.js":"./dist/less.js","./dist/less.min.js":"./dist/less.min.js"},Ms={test:"./test"},Ps=["bin","lib","!lib/**/*.map","dist","index.cjs","README.md"],Os="./dist/less.js",Fs={node:">=18"},Ls={quicktest:"grunt quicktest",test:"grunt test","test:node":"grunt test:node","test:coverage":'c8 -r lcov -r json-summary -r text-summary -r html --include="lib/**/*.js" --include="bin/**/*.js" --exclude="dist/**" --exclude="**/*.test.js" --exclude="**/*.spec.js" --exclude="test/**" --exclude="tmp/**" --exclude="**/abstract-file-manager.js" --exclude="**/abstract-plugin-loader.js" grunt shell:test && node scripts/coverage-report.js && node scripts/coverage-lines.js',grunt:"grunt",lint:"eslint '**/*.{ts,js}'","lint:fix":"eslint '**/*.{ts,js}' --fix",typecheck:"tsc --noEmit",build:"node build/rollup.js --dist",prepublishOnly:"npm run typecheck && grunt dist && grunt test:node"},Vs={errno:"^0.1.1","graceful-fs":"^4.1.2","probe-image-size":"^7.2.3","make-dir":"^5.1.0",mime:"^1.4.1",needle:"^3.1.0","source-map":"~0.6.0"},Ds={"@less/test-data":"workspace:*","@less/test-import-module":"workspace:*","@rollup/plugin-commonjs":"^17.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.0.0","@types/node":"^18","@typescript-eslint/eslint-plugin":"^4.28.0","@typescript-eslint/parser":"^4.28.0",benny:"^3.6.12","bootstrap-less-port":"0.3.0",c8:"^10.1.3",chai:"^4.2.0",chalk:"^4.1.2",cosmiconfig:"~9.0.0","cross-env":"^7.0.3",eslint:"^7.29.0","fs-extra":"^8.1.0","git-rev":"^0.2.1",glob:"~11.0.3",globby:"^10.0.1",grunt:"^1.5.0","grunt-cli":"^1.3.2","grunt-contrib-clean":"^1.0.0","grunt-contrib-connect":"^1.0.2","grunt-eslint":"^23.0.0","grunt-saucelabs":"^9.0.1","grunt-shell":"^1.3.0","html-template-tag":"^3.2.0","jest-diff":"~30.1.2","jit-grunt":"^0.10.0","less-plugin-autoprefix":"^1.5.1","less-plugin-clean-css":"^1.6.0",minimist:"^1.2.0",mocha:"^6.2.1","mocha-teamcity-reporter":"^3.0.0","npm-run-all":"^4.1.5","performance-now":"^0.2.0",phin:"^2.2.3",playwright:"1.50.1",promise:"^7.1.1","read-glob":"^3.0.0",resolve:"^1.17.0",rollup:"^2.52.2","rollup-plugin-terser":"^5.1.1",shx:"^0.3.2","time-grunt":"^1.3.0",typescript:"^5.7.0",uikit:"2.27.4",url:"^0.11.4","path-browserify":"^1.0.1",webpack:"^5.64.6","webpack-cli":"^5.1.4"},Bs=["compile less","css nesting","css variable","css","gradients css","gradients css3","less compiler","less css","less mixins","less","less.js","lesscss","mixins","nested css","parser","preprocessor","bootstrap css","bootstrap less","style","styles","stylesheet","variables in css","css less"],js="https://raw.github.com/less/less.js/v",Us="https://github.com/less/less.js/archive/v",Ts={"copy-anything":"^3.0.5","parse-node-version":"^1.0.1"},qs="1df9072ee9ebdadc791bf35dfb1dbc3ef9f1948f",Ns={name:vs,version:ys,description:bs,homepage:ws,author:Ss,contributors:Cs,bugs:xs,repository:As,master:Is,license:ks,type:$s,bin:Es,main:Rs,exports:_s,directories:Ms,files:Ps,browser:Os,engines:Fs,scripts:Ls,optionalDependencies:Vs,devDependencies:Ds,keywords:Bs,rawcurrent:js,sourcearchive:Us,dependencies:Ts,gitHead:qs},Hs=(r,e)=>{let t=r.document,i=fs(void 0,void 0,Ns.version);i.options=e;let n=i.environment,l=hs(e,i.logger),s=new l;n.addFileManager(s),i.FileManager=l,i.PluginLoader=ti,ps(i,e);let u=ds(r,i,e),a=i.cache=e.cache||ms(r,e,i.logger);gs(i.environment),e.functions&&i.functions.functionRegistry.addMultiple(e.functions);let h=/^text\/(x-)?less$/;function d(y){let $={};for(let w in y)Object.prototype.hasOwnProperty.call(y,w)&&($[w]=y[w]);return $}function m(y){let $=t.getElementsByTagName("style");for(let w of $)if(w.type.match(h)){let C={...d(e),modifyVars:y,filename:t.location.href.replace(/#.*$/,"")},k=w.innerHTML||"";i.render(k,C,(E,o)=>{E?u.add(E,"inline"):(w.type="text/css",w.styleSheet?w.styleSheet.cssText=o.css:w.innerHTML=o.css)})}}function v(y,$,w,C,k){let E=d(e);ue(E,y),E.mime=y.type,k&&(E.modifyVars=k);function o(c){let f=c.contents,p=c.filename,g=c.webInfo,x={currentDirectory:s.getPath(p),filename:p,rootFilename:p,rewriteUrls:E.rewriteUrls};if(x.entryPath=x.currentDirectory,x.rootpath=E.rootpath||x.currentDirectory,g){g.remaining=C;let b=a.getCSS(p,g,E.modifyVars);if(!w&&b){g.local=!0,$(null,b,f,y,g,p);return}}u.remove(p),E.rootFileInfo=x,i.render(f,E,(b,M)=>{b?(b.href=p,$(b)):(a.setCSS(y.href,g.lastModified,E.modifyVars,M.css),$(null,M.css,f,y,g,p))})}s.loadFile(y.href,null,E,n).then(c=>{o(c)}).catch(c=>{console.log(c),$(c)})}function R(y,$,w){for(let C=0;C<i.sheets.length;C++)v(i.sheets[C],y,$,i.sheets.length-(C+1),w)}function A(){i.env==="development"&&(i.watchTimer=setInterval(()=>{i.watchMode&&(s.clearFileCache(),R((y,$,w,C,k)=>{y?u.add(y,y.href||C.href):$&&de.createCSS(r.document,$,C)}))},e.poll))}return i.watch=function(){return i.watchMode||(i.env="development",A()),this.watchMode=!0,!0},i.unwatch=function(){return clearInterval(i.watchTimer),this.watchMode=!1,!1},i.registerStylesheetsImmediately=()=>{let y=t.getElementsByTagName("link");i.sheets=[];for(let $=0;$<y.length;$++)(y[$].rel==="stylesheet/less"||y[$].rel.match(/stylesheet/)&&y[$].type.match(h))&&i.sheets.push(y[$])},i.registerStylesheets=()=>new Promise(y=>{i.registerStylesheetsImmediately(),y()}),i.modifyVars=y=>i.refresh(!0,y,!1),i.refresh=(y,$,w)=>((y||w)&&w!==!1&&s.clearFileCache(),new Promise((C,k)=>{let E,o,c,f;E=o=new Date,f=i.sheets.length,f===0?(o=new Date,c=o-E,i.logger.info("Less has finished and no sheets were loaded."),C({startTime:E,endTime:o,totalMilliseconds:c,sheets:i.sheets.length})):R((p,g,x,b,M)=>{if(p){u.add(p,p.href||b.href),k(p);return}M.local?i.logger.info(`Loading ${b.href} from cache.`):i.logger.info(`Rendered ${b.href} successfully.`),de.createCSS(r.document,g,b),i.logger.info(`CSS for ${b.href} generated in ${new Date-o}ms`),f--,f===0&&(c=new Date-E,i.logger.info(`Less has finished. CSS generated in ${c}ms`),C({startTime:E,endTime:o,totalMilliseconds:c,sheets:i.sheets.length})),o=new Date},y,$),m($)})),i.refreshStyles=m,i};let ae=G();if(window.less)for(let r in window.less)Object.prototype.hasOwnProperty.call(window.less,r)&&(ae[r]=window.less[r]);me(window,ae),ae.plugins=ae.plugins||[],window.LESS_PLUGINS&&(ae.plugins=ae.plugins.concat(window.LESS_PLUGINS));let we=Hs(window,ae);window.less=we;let mt,gt,Se;function ii(r){r.filename&&console.warn(r),ae.async||gt.removeChild(Se)}return ae.onReady&&(/!watch/.test(window.location.hash)&&we.watch(),ae.async||(mt="body { display: none !important }",gt=document.head||document.getElementsByTagName("head")[0],Se=document.createElement("style"),Se.type="text/css",Se.styleSheet?Se.styleSheet.cssText=mt:Se.appendChild(document.createTextNode(mt)),gt.appendChild(Se)),we.registerStylesheetsImmediately(),we.pageLoadFinished=we.refresh(we.env==="development").then(ii,ii)),we}))});var ri=Xs(ni());globalThis["less-compiler"]=ri.default;})();
29
29
  /*! Bundled license information:
30
30
 
31
31
  less/dist/less.cjs:
32
32
  (**
33
- * Less - Leaner CSS v4.7.0
33
+ * Less - Leaner CSS v4.9.0
34
34
  * http://lesscss.org
35
35
  *
36
36
  * Copyright (c) 2009-2026, Alexis Sellier <self@cloudhead.net>