comp-hub 0.42.8 → 0.43.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.
- package/README.md +13 -2
- package/README.zh-CN.md +144 -0
- package/README.zh-Hant.md +144 -0
- package/dist/cli.js +44 -0
- package/dist/index.js +14 -33
- package/dist/master.js +19 -19
- package/package.json +16 -18
- package/bin/cli.js +0 -59
- package/bin/lib/commands.js +0 -173
- package/bin/lib/constants.js +0 -22
- package/bin/lib/http.js +0 -130
- package/bin/lib/startup.js +0 -254
- package/bin/lib/utils.js +0 -112
- package/dist/website/container/assets/index-BmW7jge6.css +0 -1
- package/dist/website/container/assets/index-E15UfKFM.js +0 -33
- package/dist/website/container/favicon.ico +0 -0
- package/dist/website/container/index.html +0 -39
- package/dist/website/container/js/less-compiler.js +0 -41
- package/dist/website/container/js/react-jsx-loader.js +0 -233
- package/dist/website/container/js/sass-compiler.js +0 -418
- package/dist/website/container/js/vue2-sfc-loader.js +0 -261
- package/dist/website/container/js/vue3-sfc-loader.js +0 -290
- package/dist/website/item/assets/index-CfkvQ31V.css +0 -1
- package/dist/website/item/assets/index-CwtVkGPL.js +0 -62
- package/dist/website/item/favicon.ico +0 -0
- package/dist/website/item/index.html +0 -34
- package/dist/website/main/assets/AuthCodeSendBtn.vue_vue_type_script_setup_true_lang-D-jhE3yA.js +0 -1
- package/dist/website/main/assets/BaseBadge-BReHrAqs.js +0 -1
- package/dist/website/main/assets/BaseBadge-ledSuDnX.css +0 -1
- package/dist/website/main/assets/BaseDialog.vue_vue_type_script_setup_true_lang-BK7dbjCA.js +0 -1
- package/dist/website/main/assets/BaseSegmented.vue_vue_type_script_setup_true_lang-CcSntY2B.js +0 -1
- package/dist/website/main/assets/CanvasAnimation.vue_vue_type_script_setup_true_lang-T5vn0JFD.js +0 -1
- package/dist/website/main/assets/CodeMirrorEditor-Cqow8ROO-DYjlZgX9.js +0 -12
- package/dist/website/main/assets/EmptyStatusContainer.vue_vue_type_script_setup_true_lang-CNOUTt3S.js +0 -1
- package/dist/website/main/assets/GithubCallback-UUNSnoh7.js +0 -1
- package/dist/website/main/assets/LoadingWrapper.vue_vue_type_script_setup_true_lang-BYA4gUOI.js +0 -1
- package/dist/website/main/assets/ReplyForm.vue_vue_type_script_setup_true_lang-CEqkWYsv.js +0 -1
- package/dist/website/main/assets/SiteLogo-Bpm2Ah9F.js +0 -1
- package/dist/website/main/assets/SiteLogo-CszHjM2d.css +0 -1
- package/dist/website/main/assets/apl-B4CMkyY2.js +0 -1
- package/dist/website/main/assets/asciiarmor-Df11BRmG.js +0 -1
- package/dist/website/main/assets/asn1-EdZsLKOL.js +0 -1
- package/dist/website/main/assets/asterisk-B-8jnY81.js +0 -1
- package/dist/website/main/assets/brainfuck-C4LP7Hcl.js +0 -1
- package/dist/website/main/assets/clike-B9uivgTg.js +0 -1
- package/dist/website/main/assets/clojure-BMjYHr_A.js +0 -1
- package/dist/website/main/assets/cloud-upload-BqJFdj_J.js +0 -1
- package/dist/website/main/assets/cloud-upload-j3Y0taC9.css +0 -1
- package/dist/website/main/assets/cmake-BQqOBYOt.js +0 -1
- package/dist/website/main/assets/cobol-CWcv1MsR.js +0 -1
- package/dist/website/main/assets/coffeescript-S37ZYGWr.js +0 -1
- package/dist/website/main/assets/commonlisp-DBKNyK5s.js +0 -1
- package/dist/website/main/assets/crystal-SjHAIU92.js +0 -1
- package/dist/website/main/assets/css-BnMrqG3P.js +0 -1
- package/dist/website/main/assets/cypher-C_CwsFkJ.js +0 -1
- package/dist/website/main/assets/d-pRatUO7H.js +0 -1
- package/dist/website/main/assets/diff-DbItnlRl.js +0 -1
- package/dist/website/main/assets/dockerfile-BKs6k2Af.js +0 -1
- package/dist/website/main/assets/dtd-DF_7sFjM.js +0 -1
- package/dist/website/main/assets/dylan-DwRh75JA.js +0 -1
- package/dist/website/main/assets/ebnf-CDyGwa7X.js +0 -1
- package/dist/website/main/assets/ecl-Cabwm37j.js +0 -1
- package/dist/website/main/assets/eiffel-CnydiIhH.js +0 -1
- package/dist/website/main/assets/el-card-BAyktVMS.css +0 -1
- package/dist/website/main/assets/el-dropdown-item-BeIfAqTO.css +0 -1
- package/dist/website/main/assets/el-empty-S7fQQ3B8.css +0 -1
- package/dist/website/main/assets/el-link-CPQZ-olG.css +0 -1
- package/dist/website/main/assets/el-table-column-B3ZEEuPD.css +0 -1
- package/dist/website/main/assets/el-table-column-C2GQUl4R.js +0 -1
- package/dist/website/main/assets/elm-vLlmbW-K.js +0 -1
- package/dist/website/main/assets/en-DJCBTPEu.js +0 -1
- package/dist/website/main/assets/erlang-BNw1qcRV.js +0 -1
- package/dist/website/main/assets/factor-kuTfRLto.js +0 -1
- package/dist/website/main/assets/fcl-Kvtd6kyn.js +0 -1
- package/dist/website/main/assets/forth-Ffai-XNe.js +0 -1
- package/dist/website/main/assets/fortran-DYz_wnZ1.js +0 -1
- package/dist/website/main/assets/gas-Bneqetm1.js +0 -1
- package/dist/website/main/assets/gherkin-heZmZLOM.js +0 -1
- package/dist/website/main/assets/groovy-D9Dt4D0W.js +0 -1
- package/dist/website/main/assets/haskell-Cw1EW3IL.js +0 -1
- package/dist/website/main/assets/haxe-H-WmDvRZ.js +0 -1
- package/dist/website/main/assets/home-rounded-B4KVwSYb.css +0 -1
- package/dist/website/main/assets/home-rounded-CN0qCDnE.js +0 -1
- package/dist/website/main/assets/http-DBlCnlav.js +0 -1
- package/dist/website/main/assets/idl-BEugSyMb.js +0 -1
- package/dist/website/main/assets/index-4S2NYemE.js +0 -1
- package/dist/website/main/assets/index-6zg8j_nT.js +0 -1
- package/dist/website/main/assets/index-72rReQ2I-C_aIAupr.js +0 -6
- package/dist/website/main/assets/index-8dCw6Y2Z.css +0 -1
- package/dist/website/main/assets/index-B1K6cAvN.js +0 -1
- package/dist/website/main/assets/index-B2qulmRp.js +0 -1
- package/dist/website/main/assets/index-B5rd6Qgm.js +0 -1
- package/dist/website/main/assets/index-B6JeEo9g.js +0 -1
- package/dist/website/main/assets/index-B6Oo99Ej.js +0 -1
- package/dist/website/main/assets/index-BA02DjBI.js +0 -3
- package/dist/website/main/assets/index-BD8DwKlG.js +0 -1
- package/dist/website/main/assets/index-BF2ETnQh.js +0 -1
- package/dist/website/main/assets/index-BNwWVTCF.js +0 -1
- package/dist/website/main/assets/index-BPdEkCOx.js +0 -1
- package/dist/website/main/assets/index-BTmh_pkn.js +0 -1
- package/dist/website/main/assets/index-BWh3R1jI.js +0 -6
- package/dist/website/main/assets/index-BX3Tl9jb.js +0 -1
- package/dist/website/main/assets/index-Bn5vi5XZ.css +0 -1
- package/dist/website/main/assets/index-BvmEG8Qn.css +0 -1
- package/dist/website/main/assets/index-By_sRNiP.js +0 -1
- package/dist/website/main/assets/index-C0WquRMM.css +0 -1
- package/dist/website/main/assets/index-C1zFaUVE.js +0 -1
- package/dist/website/main/assets/index-CCJiyDal.js +0 -1
- package/dist/website/main/assets/index-CLT68CCM.css +0 -1
- package/dist/website/main/assets/index-CMiBqyhH.js +0 -1
- package/dist/website/main/assets/index-CaoAcCMA.js +0 -2
- package/dist/website/main/assets/index-CbOKlsZn.js +0 -2
- package/dist/website/main/assets/index-CdWXO9ks.css +0 -1
- package/dist/website/main/assets/index-CeiBBtdW.js +0 -1
- package/dist/website/main/assets/index-ChFpxx4T.css +0 -1
- package/dist/website/main/assets/index-CioMG7I6.css +0 -1
- package/dist/website/main/assets/index-CtNrOkJr.js +0 -1
- package/dist/website/main/assets/index-CuCbuNEj.js +0 -1
- package/dist/website/main/assets/index-D-25wqLa.js +0 -1
- package/dist/website/main/assets/index-D-HOLV6Z.js +0 -1
- package/dist/website/main/assets/index-D-zBzPPy.css +0 -1
- package/dist/website/main/assets/index-D6zFRika.js +0 -1
- package/dist/website/main/assets/index-D76eWsZ1-a1NwqrGS.js +0 -1
- package/dist/website/main/assets/index-DFsl7Pen.css +0 -1
- package/dist/website/main/assets/index-DOlF0Z_P.css +0 -1
- package/dist/website/main/assets/index-DR4j8Ql1.js +0 -1
- package/dist/website/main/assets/index-DRsSRfwD.js +0 -1
- package/dist/website/main/assets/index-DS44gjNL.js +0 -2
- package/dist/website/main/assets/index-D_NvG8ob.js +0 -1
- package/dist/website/main/assets/index-Dblv7zZt.js +0 -1
- package/dist/website/main/assets/index-Dcp6qLr1.js +0 -1
- package/dist/website/main/assets/index-DdIWt0oE.js +0 -1
- package/dist/website/main/assets/index-DdqWCLvd.js +0 -1
- package/dist/website/main/assets/index-DgQa2ZqK.js +0 -4
- package/dist/website/main/assets/index-DgrizPPB.js +0 -50
- package/dist/website/main/assets/index-DlkXaOkE.css +0 -1
- package/dist/website/main/assets/index-Dms7ZQ2h-DZe32-4Q.js +0 -1
- package/dist/website/main/assets/index-DpUmZw4S.js +0 -1
- package/dist/website/main/assets/index-DqiFCfGx-Be_VzFT8.js +0 -1
- package/dist/website/main/assets/index-DvFQxOj2.js +0 -1
- package/dist/website/main/assets/index-DxypSQ0K-DZ74HfZS.js +0 -1
- package/dist/website/main/assets/index-Dy0c-ddP.js +0 -1
- package/dist/website/main/assets/index-DyFpWAJM.js +0 -1
- package/dist/website/main/assets/index-Ji2WmMDE.css +0 -1
- package/dist/website/main/assets/index-KhSB9wFh.js +0 -84
- package/dist/website/main/assets/index-Mnu1wKgu.css +0 -1
- package/dist/website/main/assets/index-RrkKKQjp.js +0 -1
- package/dist/website/main/assets/index-S0EB9acK.js +0 -7
- package/dist/website/main/assets/index-T76vWLBU-iHnxnk3E.js +0 -13
- package/dist/website/main/assets/index-VpAGAhRh.js +0 -1
- package/dist/website/main/assets/index-VyPJ3PyN.js +0 -1
- package/dist/website/main/assets/index-Zt46lwNk.js +0 -1
- package/dist/website/main/assets/index-ex5YI_gC.js +0 -1
- package/dist/website/main/assets/index-fZBcgzqR-CqMOhDrG.js +0 -1
- package/dist/website/main/assets/index-mqeGrL6B-C5oP0065.js +0 -1
- package/dist/website/main/assets/index-wd7ZswFD.js +0 -1
- package/dist/website/main/assets/index-z8BnmFXm.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-Ap8wTvsB.js +0 -2
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-B05SHLQS.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-BOkD4Vs3.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-Bs4fbZK8.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-ByHasmxS.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_script_setup_true_lang-Dsu1eY0B.js +0 -1
- package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-66fUtqSq.js +0 -6
- package/dist/website/main/assets/index.vue_vue_type_style_index_0_lang-CUQ5yd-1.js +0 -1
- package/dist/website/main/assets/index3-BiHnTK1Z.js +0 -1
- package/dist/website/main/assets/javascript-iXu5QeM3.js +0 -1
- package/dist/website/main/assets/julia-DuME0IfC.js +0 -1
- package/dist/website/main/assets/kid-star-CiMfD7Sa.js +0 -1
- package/dist/website/main/assets/kid-star-D1M-aC1C.css +0 -1
- package/dist/website/main/assets/livescript-BwQOo05w.js +0 -1
- package/dist/website/main/assets/lua-VAEuO923.js +0 -1
- package/dist/website/main/assets/mathematica-DTrFuWx2.js +0 -1
- package/dist/website/main/assets/mbox-CNhZ1qSd.js +0 -1
- package/dist/website/main/assets/md5-Dkj6ZNQB.js +0 -1
- package/dist/website/main/assets/mirc-CjQqDB4T.js +0 -1
- package/dist/website/main/assets/mllike-CXdrOF99.js +0 -1
- package/dist/website/main/assets/modelica-Dc1JOy9r.js +0 -1
- package/dist/website/main/assets/moment-B-YVwB4U.js +0 -4
- package/dist/website/main/assets/mscgen-BA5vi2Kp.js +0 -1
- package/dist/website/main/assets/mumps-BT43cFF4.js +0 -1
- package/dist/website/main/assets/nginx-DdIZxoE0.js +0 -1
- package/dist/website/main/assets/nsis-LdVXkNf5.js +0 -1
- package/dist/website/main/assets/ntriples-BfvgReVJ.js +0 -1
- package/dist/website/main/assets/octave-Ck1zUtKM.js +0 -1
- package/dist/website/main/assets/oz-BzwKVEFT.js +0 -1
- package/dist/website/main/assets/papaparse.min-Brc8PWCw-BsyFjD51.js +0 -10
- package/dist/website/main/assets/pascal--L3eBynH.js +0 -1
- package/dist/website/main/assets/perl-CdXCOZ3F.js +0 -1
- package/dist/website/main/assets/pig-CevX1Tat.js +0 -1
- package/dist/website/main/assets/powershell-CFHJl5sT.js +0 -1
- package/dist/website/main/assets/properties-C78fOPTZ.js +0 -1
- package/dist/website/main/assets/protobuf-ChK-085T.js +0 -1
- package/dist/website/main/assets/pug-DeIclll2.js +0 -1
- package/dist/website/main/assets/puppet-DMA9R1ak.js +0 -1
- package/dist/website/main/assets/python-BuPzkPfP.js +0 -1
- package/dist/website/main/assets/q-pXgVlZs6.js +0 -1
- package/dist/website/main/assets/r-B6wPVr8A.js +0 -1
- package/dist/website/main/assets/rpm-CTu-6PCP.js +0 -1
- package/dist/website/main/assets/ruby-B2Rjki9n.js +0 -1
- package/dist/website/main/assets/sas-B4kiWyti.js +0 -1
- package/dist/website/main/assets/scheme-C41bIUwD.js +0 -1
- package/dist/website/main/assets/settings-BhagQj3w.css +0 -1
- package/dist/website/main/assets/settings-CSr4nQM1.js +0 -1
- package/dist/website/main/assets/shell-CjFT_Tl9.js +0 -1
- package/dist/website/main/assets/sieve-C3Gn_uJK.js +0 -1
- package/dist/website/main/assets/simple-mode-GW_nhZxv.js +0 -1
- package/dist/website/main/assets/smalltalk-CnHTOXQT.js +0 -1
- package/dist/website/main/assets/solr-DehyRSwq.js +0 -1
- package/dist/website/main/assets/sparql-DkYu6x3z.js +0 -1
- package/dist/website/main/assets/spreadsheet-BCZA_wO0.js +0 -1
- package/dist/website/main/assets/sql-D0XecflT.js +0 -1
- package/dist/website/main/assets/stex-C3f8Ysf7.js +0 -1
- package/dist/website/main/assets/stylus-B533Al4x.js +0 -1
- package/dist/website/main/assets/supervised-user-circle-BwUSx6w_.js +0 -1
- package/dist/website/main/assets/supervised-user-circle-CZYpyCV4.css +0 -1
- package/dist/website/main/assets/swift-BzpIVaGY.js +0 -1
- package/dist/website/main/assets/sync-saved-locally-rounded-DyESI323.js +0 -1
- package/dist/website/main/assets/sync-saved-locally-rounded-wbwASI26.css +0 -1
- package/dist/website/main/assets/tcl-DVfN8rqt.js +0 -1
- package/dist/website/main/assets/terminal-DAZ0JqKA.js +0 -1
- package/dist/website/main/assets/terminal-DFt3N_TH.css +0 -1
- package/dist/website/main/assets/textile-CnDTJFAw.js +0 -1
- package/dist/website/main/assets/tiddlywiki-DO-Gjzrf.js +0 -1
- package/dist/website/main/assets/tiki-DGYXhP31.js +0 -1
- package/dist/website/main/assets/toml-Bm5Em-hy.js +0 -1
- package/dist/website/main/assets/troff-wAsdV37c.js +0 -1
- package/dist/website/main/assets/ttcn-CfJYG6tj.js +0 -1
- package/dist/website/main/assets/ttcn-cfg-B9xdYoR4.js +0 -1
- package/dist/website/main/assets/turtle-B1tBg_DP.js +0 -1
- package/dist/website/main/assets/useCacheOssStore-C6-kY3lP.js +0 -1
- package/dist/website/main/assets/useCompEditStore-B7__tBPJ.js +0 -70
- package/dist/website/main/assets/useCompEditStore-C2cDxPfw.css +0 -1
- package/dist/website/main/assets/useCompMetaLocalStore-DUMtt_yz.js +0 -1
- package/dist/website/main/assets/useKeyword-O-wdQuD_.js +0 -1
- package/dist/website/main/assets/useMessage-yR4W8KDP.js +0 -1
- package/dist/website/main/assets/useTeamHeaders-BMHQzwDq.css +0 -1
- package/dist/website/main/assets/useTeamHeaders-BbJQSrjN.js +0 -380
- package/dist/website/main/assets/useUnreadStore-COt1XJEP.js +0 -1
- package/dist/website/main/assets/useVscodeOpen-CCvngYEV.js +0 -1
- package/dist/website/main/assets/v4-EwEgHOG0.js +0 -1
- package/dist/website/main/assets/vb-CmGdzxic.js +0 -1
- package/dist/website/main/assets/vbscript-BuJXcnF6.js +0 -1
- package/dist/website/main/assets/velocity-D8B20fx6.js +0 -1
- package/dist/website/main/assets/vendor-core-CNXB6kVe.js +0 -3
- package/dist/website/main/assets/vendor-ui-Cvgmewma.js +0 -50
- package/dist/website/main/assets/vendor-xterm-mNFjEaKn.js +0 -9
- package/dist/website/main/assets/verilog-C6RDOZhf.js +0 -1
- package/dist/website/main/assets/vhdl-lSbBsy5d.js +0 -1
- package/dist/website/main/assets/webidl-ZXfAyPTL.js +0 -1
- package/dist/website/main/assets/xquery-DzFWVndE.js +0 -1
- package/dist/website/main/assets/yacas-BJ4BC0dw.js +0 -1
- package/dist/website/main/assets/z80-Hz9HOZM7.js +0 -1
- package/dist/website/main/assets/zhCN-VSAW5gZn.js +0 -1
- package/dist/website/main/favicon.ico +0 -0
- package/dist/website/main/index.html +0 -111
- package/dist/website/main/md/COMP_REPEAT.en.md +0 -20
- package/dist/website/main/md/COMP_REPEAT.zh.md +0 -20
- package/dist/website/main/md/PUT_TREATY.en.md +0 -68
- package/dist/website/main/md/PUT_TREATY.zh.md +0 -68
|
Binary file
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="" name="container">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" href="/container/favicon.ico" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<style>
|
|
8
|
-
html.dark {
|
|
9
|
-
color-scheme: dark;
|
|
10
|
-
}
|
|
11
|
-
</style>
|
|
12
|
-
<script>
|
|
13
|
-
try {
|
|
14
|
-
const urlParams = new URLSearchParams(window.location.search);
|
|
15
|
-
const isDark = urlParams.get("isDark") === "true";
|
|
16
|
-
if (isDark) {
|
|
17
|
-
document.documentElement.classList.add("dark");
|
|
18
|
-
}
|
|
19
|
-
} catch (error) {
|
|
20
|
-
console.error("解析window.name失败", error);
|
|
21
|
-
}
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<script src="/container/js/vue2-sfc-loader.js" async></script>
|
|
25
|
-
<script src="/container/js/vue3-sfc-loader.js" async></script>
|
|
26
|
-
<script src="/container/js/react-jsx-loader.js" async></script>
|
|
27
|
-
<script src="/container/js/sass-compiler.js" async></script>
|
|
28
|
-
<script src="/container/js/less-compiler.js" async></script>
|
|
29
|
-
<script type="module" crossorigin src="/container/assets/index-E15UfKFM.js"></script>
|
|
30
|
-
<link rel="stylesheet" crossorigin href="/container/assets/index-BmW7jge6.css">
|
|
31
|
-
</head>
|
|
32
|
-
|
|
33
|
-
<body>
|
|
34
|
-
<div id="app"></div>
|
|
35
|
-
|
|
36
|
-
<!-- 勿要删除,全局配置替换字符串 -->
|
|
37
|
-
<!--GLOBAL_CONFIG-->
|
|
38
|
-
</body>
|
|
39
|
-
</html>
|
|
@@ -1,41 +0,0 @@
|
|
|
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(`
|
|
4
|
-
`)+u("","reset")}
|
|
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?"{":` {
|
|
16
|
-
`)+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
|
-
${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(`
|
|
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}:
|
|
25
|
-
${v.join(`
|
|
26
|
-
`)}`),a.stack&&(a.extract||t.logLevel>=4)&&(k+=`
|
|
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;})();
|
|
29
|
-
/*! Bundled license information:
|
|
30
|
-
|
|
31
|
-
less/dist/less.cjs:
|
|
32
|
-
(**
|
|
33
|
-
* Less - Leaner CSS v4.7.0
|
|
34
|
-
* http://lesscss.org
|
|
35
|
-
*
|
|
36
|
-
* Copyright (c) 2009-2026, Alexis Sellier <self@cloudhead.net>
|
|
37
|
-
* Licensed under the Apache-2.0 License.
|
|
38
|
-
*
|
|
39
|
-
* @license Apache-2.0
|
|
40
|
-
*)
|
|
41
|
-
*/
|