index-82d1085b.js 179 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import{j as P,a as Q,U as Y,V as N,W as ie,a4 as F,u as S,X as D,H as we,F as Oe,i as Ti,G as qe,a5 as pe,o as gt,a3 as Ce,R as zi,p as Ni,c as Wi,$ as Fe,a1 as Pt,a6 as yt,a7 as bt,x as Hi,a2 as Ne,D as Gr,n as Ur,w as Gi,a0 as Br,E as Ki,f as Ji,h as qr,a8 as Qi,a9 as jr}from"./vue-9763c232.js";import{_ as Zi}from"./LOGO-5fe40572.js";import{m as Zt}from"./md5-4afe8025.js";import{b as Et,A as xe,m as We,c as ft,U as Xi,a as Xe,s as Ze,u as Yt,D as Yi,M as Kr,E as Jr,d as en,C as Qt,e as tn,n as rn}from"./index-55522c1c.js";import{_ as He}from"./_plugin-vue_export-helper-c27b6911.js";import{u as Ye}from"./vue-router-f797b6fe.js";import{w as nn}from"./index-f64cc30d.js";var sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"};const an=sn;function Tr(M){for(var k=1;k<arguments.length;k++){var x=arguments[k]!=null?Object(arguments[k]):{},R=Object.keys(x);typeof Object.getOwnPropertySymbols=="function"&&(R=R.concat(Object.getOwnPropertySymbols(x).filter(function(A){return Object.getOwnPropertyDescriptor(x,A).enumerable}))),R.forEach(function(A){on(M,A,x[A])})}return M}function on(M,k,x){return k in M?Object.defineProperty(M,k,{value:x,enumerable:!0,configurable:!0,writable:!0}):M[k]=x,M}var er=function(k,x){var R=Tr({},k,x.attrs);return P(Et,Tr({},R,{icon:an}),null)};er.displayName="BellOutlined";er.inheritAttrs=!1;const ln=er;var un={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};const fn=un;function zr(M){for(var k=1;k<arguments.length;k++){var x=arguments[k]!=null?Object(arguments[k]):{},R=Object.keys(x);typeof Object.getOwnPropertySymbols=="function"&&(R=R.concat(Object.getOwnPropertySymbols(x).filter(function(A){return Object.getOwnPropertyDescriptor(x,A).enumerable}))),R.forEach(function(A){cn(M,A,x[A])})}return M}function cn(M,k,x){return k in M?Object.defineProperty(M,k,{value:x,enumerable:!0,configurable:!0,writable:!0}):M[k]=x,M}var tr=function(k,x){var R=zr({},k,x.attrs);return P(Et,zr({},R,{icon:fn}),null)};tr.displayName="LogoutOutlined";tr.inheritAttrs=!1;const hn=tr;var vn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const pn=vn;function Nr(M){for(var k=1;k<arguments.length;k++){var x=arguments[k]!=null?Object(arguments[k]):{},R=Object.keys(x);typeof Object.getOwnPropertySymbols=="function"&&(R=R.concat(Object.getOwnPropertySymbols(x).filter(function(A){return Object.getOwnPropertyDescriptor(x,A).enumerable}))),R.forEach(function(A){dn(M,A,x[A])})}return M}function dn(M,k,x){return k in M?Object.defineProperty(M,k,{value:x,enumerable:!0,configurable:!0,writable:!0}):M[k]=x,M}var rr=function(k,x){var R=Nr({},k,x.attrs);return P(Et,Nr({},R,{icon:pn}),null)};rr.displayName="QuestionCircleOutlined";rr.inheritAttrs=!1;const mn=rr;var gn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const yn=gn;function Wr(M){for(var k=1;k<arguments.length;k++){var x=arguments[k]!=null?Object(arguments[k]):{},R=Object.keys(x);typeof Object.getOwnPropertySymbols=="function"&&(R=R.concat(Object.getOwnPropertySymbols(x).filter(function(A){return Object.getOwnPropertyDescriptor(x,A).enumerable}))),R.forEach(function(A){bn(M,A,x[A])})}return M}function bn(M,k,x){return k in M?Object.defineProperty(M,k,{value:x,enumerable:!0,configurable:!0,writable:!0}):M[k]=x,M}var ir=function(k,x){var R=Wr({},k,x.attrs);return P(Et,Wr({},R,{icon:yn}),null)};ir.displayName="UserOutlined";ir.inheritAttrs=!1;const Hr=ir,wn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAACFdJREFUeF7lW81vG0UU39m1nTh21nVRSlNVdeihlRKixPJGLVIlAhJwbEuFxK0tEldazhxoxT/QcgXR9A40XEBCQgSph1TeyI5KIrVVS+ghkeqixp+JY3sH/ZYdM3bseD9mWxeeFOVrd96837zveSaSz5TJZPY1Go3ThJAxsKKUzlos8Tv7W5YQsom/E0IWrOfWFEX5IZlMmn/3i4gfC2cymWnDME4bhnGGEDLthQelNCvL8rwsywAj62WtTu8KAwAnbRjGJUrpBXayjGGtVpPq9br5K/vO/xwIBJp7Yz/jezAYbN/zGiFkTpbl66I0wzMAnOCXJUnahx0bhiExoXd2djwdWigUkhgYsiyztTYJIddSqdRVT4vD5LwsoOv6eUmSrrATh9Db29stp+xl/fZ3AcTg4CCvGWvgr2naTbd8XAEAG6/X6zeYffsteCcgwuGwqRmWw8wGAoGzyWQSgDgixwCk0+lZQsgtqDtUHSderVYdMRX18MDAgKkRlmlsKoryllNH6QiApaWlC5TSGxAAp14ulxHWRMnjah1CiBSJRJpmQQi5mEql5uwuZhsAXdchODy8eepbW1t2eTyX52AS0AaL5jRNu2iHsS0AdF2Hyp/BgpVK5YWpfC+BYBJDQ0PssXlN0872eqcnAOzkoeqlUsk3D99ro3b/D8cYjUaRUeKV65qmITx3pT0B4GyeFotFwicxdjf0Ip4DCMPDwybrXj6hKwCWt/+139W+G8C8OSiKkuwWHToCgDjfaDQg/L5+dHh2tYpzjAiRAGFXntARgHQ6nUGSg1AHu3+ZCf4ANQWKqpmZmWS7LLsAYHaPJKdQKLzwOO8VfDhDVVXNZKmTP2gBwKrdM8jt+zncOQWF8wdrmqa9xr/fAkA6nb5CCPn8v6D67SAhKiA6UEqvzszMoID7J0qwH6zT/wOOr1gs+hrvR0ZGmmGK8QfPZ8+e+caXC41wiK+xfkITAL9PPx6PS0eOHJEg/F6Uy+Wkhw8f+uJ8OYfY1IImALqu4/THRJ8+kJ+ampIAgBNaX1+X7t+/L1QjOC1o+gITACvuZwzDoPl8vmd6bFcQID4xMbFL3e2+j8NYWVkRqg2xWIzKskxYcmQKy9QfdT28vwgC2idPnuQrNFfLIhFbXFwUpgkolhAVCCGfplKpawwAM/FBfe+1h8ekTKVSjtW+G0LQhDt37rgCsP0l9BjRP2CJEclkMmONRgP2b3phETQ6OmqqvkiCKWxsbAhZkvkjRVHihGV+ImP/qVOnPKt+u6Qwhdu3bwsBgEUDZIaE2T86PGDilYAu1N8PWlpaEqKl6ByhUEJSRHRdvyZJ0iVRABw7dsyM937Q48ePzdDolVoASKfTC4SQN0XFf5HOr11Q+ChogVdi+QCl9DeYwP8bAJYBovRtNBpewTXt32nWZ5epDxqQhQ8wG/uiQuDLAADkZYckHADk/b0KHrsn3v4c8gDkAyKIBwB9soQoE/AjCWICi0qGuKJoWbgTxOKzs2wIRMRZ/bvGwsKCkJrA1yiA7SINhiaIJJHq3wKA6EQIQiPRQCXIT354AQMXMqgIRWSqbH/NTFB0KswEFekLlpeXJXSKRFFLJuhHMSQSBFGOjwevpRiymqFmHSwqF+CZISTCJzg1B6j9vXv3hJXA/J5aymH8Q9d1jJ9NiWyI8Awh/PHjx207Rjg8NEZF2Ty/F9YQkSRpWdO0ad9aYp3sFbZ34MABMwsDKOwkWDv8yZMnphb6ITjbT8eWmF9NUeZx3QoEwNy+281hdmyKWmZgZoQiymKcLqJAIpEwT1rXdcedXTgqTdPMxAfmIKIdxmWAf2qaZo7p7roYAUOA4IbAAM0QfPFOr1tTc3x83GSzurrawg7voqhiQw74JzTBKxCdrsfar8agBTE3WoATh6Pr5u0fPXok4YsRhD906JD5Ky5BeBD26ioBCIRGpxGLO/28oihju67GsBGWFDnRAic3P8jmMG8A20bjlCc0PCEcVB9ZZC9CYgQg7I7tqKpKFUUhXS9HwdDKCRASE3aux5md2o3xfEODL5v5PP/EiRO2b5IAWDab7elfuOvxpu0zgPcakKCFQgGIdTwMp8KzRVhmx3ePWbfXbfq8V7ZoDUiY12E9ByTYJllihFsiJEft5FZ45sxgCrB/2DoInV74AZiFXW1q31M3EHALhOSHJT7t73UbksJtEUwh1mlIyomadlIftLcBABMWdgwAvLTTsUZ7uOWGpOD4pm0PSVkOEUPRu8bkjh49KuGrH4kPt57G5Jhw/HA0FseJtXvvfgMCoRYa5nlQkvMHmLw+D2d4+PBh6eDBg/0mc8t+YAp37941P7XieVSWA2E+FAqdnpyc7Gvh2eYQVtfX129qmmZOt+9FtqdB1tbWfkkkEm/3WrAf/l8sFldUVX3dzl5sA0ApJfl8/ltVVd+3JrHtrP9cn7Em2m8NDw+fI4TY+iSHbQCYJE+fPv0sHo9/gcTiuUrXgxnmmwqFwuV4PP6lk325EiKXy32oqurNkJVhOGHox7O1Wm2nVCqd2b9//09O13cFAJhQSiP5fP6boaGhc8FgUHHKWMTz9Xq9US6Xv4vFYh8RQnanrDaYuAaArU0pHczlct/HYrH3QqFQ85ONNni7fqRarRqFQuHHkZGRDwghnsZaPAPApEAlOTo6OheJRN6NRqNh19J1eRFxvVwub1UqlZ83NjYu9M1HZzvt98GDB2+Ew+FPwuHwO9Fo9BW3rgLFWKlU+qtarc5vbm5+PT4+vigaWGEa0G1j0IxIJPLxwMDARDgcflVRlMlgMDgYCoWGAoGAqSn1en1rZ2enUqvVtimlq8VicaNWq/1eLpe/EnXS3fb3NzbF5DdFK/KfAAAAAElFTkSuQmCC";const _n={__name:"PassEdit",setup(M){let k=Q({pass:"",newpass:"",checkpass:""}),x=Q(),R=Q(!1),K=Q({pass:[{required:!0,message:"请输入密码",trigger:"blur"}],newpass:[{required:!0,message:"请输入密码",trigger:"blur"}],checkpass:[{required:!0,message:"请输入密码",trigger:"blur"},{validator:async(z,H)=>k.value.newpass!=k.value.checkpass?Promise.reject("两次输入密码不一致"):Promise.resolve(),trigger:"blur"}]}),U=()=>{R.value=!0,k.value={pass:"",newpass:"",checkpass:""}},q=async()=>{await x.value.validateFields(),xe.requested({classname:"system.usercenter.usercenter",method:"changePassWord",content:{password:Zt(k.value.pass),newpassword:Zt(k.value.checkpass)}}).then(z=>{z.code==1?(We.warning("密码修改成功"),x.value.resetFields(),R.value=!1):(We.warning(z.msg),x.value.resetFields())})};return(z,H)=>{const ne=Y("a-input"),G=Y("a-form-item"),C=Y("a-form"),L=Y("a-modal");return N(),ie(Oe,null,[F("span",{onClick:H[0]||(H[0]=(...B)=>S(U)&&S(U)(...B))},"编辑"),P(L,{visible:S(R),"onUpdate:visible":H[4]||(H[4]=B=>we(R)?R.value=B:R=B),class:"custom-class",title:"修改密码",placement:"right",width:"500px",closable:!1,onOk:S(q)},{default:D(()=>[P(C,{ref_key:"ruleForm",ref:x,rules:S(K),model:S(k),"label-width":"80px"},{default:D(()=>[P(G,{label:"原密码",name:"pass"},{default:D(()=>[P(ne,{value:S(k).pass,"onUpdate:value":H[1]||(H[1]=B=>S(k).pass=B),placeholder:"请输入原密码","auto-complete":"new-password"},null,8,["value"])]),_:1}),P(G,{label:"新密码",name:"newpass"},{default:D(()=>[P(ne,{placeholder:"请输入新密码",value:S(k).newpass,"onUpdate:value":H[2]||(H[2]=B=>S(k).newpass=B),"show-password":"","auto-complete":"new-password"},null,8,["value"])]),_:1}),P(G,{label:"确认密码",name:"checkpass"},{default:D(()=>[P(ne,{value:S(k).checkpass,"onUpdate:value":H[3]||(H[3]=B=>S(k).checkpass=B),placeholder:"请再次输入密码","show-password":"","auto-complete":"new-password"},null,8,["value"])]),_:1})]),_:1},8,["rules","model"])]),_:1},8,["visible","onOk"])],64)}}},Sn=He(_n,[["__scopeId","data-v-b741a2b1"]]);const Cn={__name:"PhoneEdit",emits:["phoneChange"],setup(M,{emit:k}){let x=Q(!1),R=Ti("userInfo")(),A=Q({phonenumber:""}),K=Q(0),U=Q(""),q=Q(),z=Q({phonenumber:[{required:!0,message:"请输入手机号",trigger:"blur"},{pattern:/^1[3-9]\d{9}$/,message:"请输入正确手机号码",trigger:"blur"}]}),H=async()=>{await q.value.validateFields(),ne(),K.value=5;let C=setInterval(()=>{K.value--,K.value==0&&clearInterval(C)},1e3)},ne=async()=>{xe.requested({classname:"system.usercenter.usercenter",method:"updateUserMsg_getPassWord",content:{phonenumber:A.value.phonenumber}}).then(C=>{C.code===1?We.success(`获取验证码成功:${C.msg}`):We.warning(`${C.msg}`)})},G=async()=>{if(U.value==!1)return We.warning("请先获取验证码");let C=await xe.requested({classname:"system.usercenter.usercenter",method:"updateUserMsg",content:{name:R.name,phonenumber:A.value.phonenumber,password:Zt(U.value),email:R.hr.email||""}});ft.message(C,"修改成功",()=>{k("phoneChange",A.value.phonenumber),x.value=!1,U.value="",A.value.phonenumber=""})};return(C,L)=>{const B=Y("a-input"),J=Y("a-form-item"),V=Y("a-button"),ee=Y("a-form"),he=Y("a-modal");return N(),ie(Oe,null,[F("span",{onClick:L[0]||(L[0]=se=>we(x)?x.value=!0:x=!0)},"编辑"),P(he,{visible:S(x),"onUpdate:visible":L[4]||(L[4]=se=>we(x)?x.value=se:x=se),class:"custom-class",title:"修改手机号码",placement:"right",width:"500px",closable:!1,onOk:S(G)},{default:D(()=>[P(ee,{ref_key:"ruleForm",ref:q,rules:S(z),model:S(A),"label-width":"80px"},{default:D(()=>[P(J,{label:"手机号",name:"phonenumber"},{default:D(()=>[P(B,{value:S(A).phonenumber,"onUpdate:value":L[1]||(L[1]=se=>S(A).phonenumber=se),placeholder:"请输入",size:"middle"},null,8,["value"])]),_:1}),P(J,{label:"验证码"},{default:D(()=>[P(B,{value:S(U),"onUpdate:value":L[2]||(L[2]=se=>we(U)?U.value=se:U=se),placeholder:"请输入",size:"middle"},null,8,["value"]),P(V,{type:"primary",disabled:S(K)>0,onClick:L[3]||(L[3]=se=>S(H)()),style:{"margin-top":"10px"},size:"small"},{default:D(()=>[qe(pe(S(K)==0?"获取验证码":S(K)+"s"),1)]),_:1},8,["disabled"])]),_:1})]),_:1},8,["rules","model"])]),_:1},8,["visible","onOk"])],64)}}},xn=He(Cn,[["__scopeId","data-v-4dd16a68"]]),kn={__name:"upload",props:["bindData"],emits:[],setup(M,{emit:k}){const x=M;let R=Q(0),A=G=>{let C=G.name.lastIndexOf("."),L=G.name.substr(C+1);K(G.name,L,G)};const K=async(G,C,L)=>{const B=await xe.requested({classname:"system.attachment.huawei.OBS",method:"getFileName",content:{filename:G,filetype:C,parentid:z.value}});let J=B.data.uploadurl,V=B.data.serialfilename;U(J,L,C,V)},U=async(G,C,L,B)=>{let J={headers:L==="pdf"?{"Content-Type":"application/pdf"}:L==="svg"?{"Content-Type":"image/svg+xml"}:{"Content-Type":"application/octet-stream"},onUploadProgress:function(V){R.value=V.loaded/V.total*100}};await Xi.upload(G,C,J),q(B)},q=async G=>{let C={serialfilename:G};C=Object.assign({},C,x.bindData);let L={classname:"system.attachment.huawei.OBS",method:"uploadSuccess",content:C};const B=await xe.requested(L);console.log(B.code),B.code===1&&k("uploadSuccess",B)};let z=Q(""),H=Q("");const ne=async()=>{const G=await xe.requested({id:20230608103802,content:{}});z.value=G.data.appfolderid,H.value=G.data.salematerialfolderid};return gt(()=>{ne()}),(G,C)=>{const L=Y("a-upload");return N(),Ce(L,{showUploadList:!1,beforeUpload:S(A),customRequest:()=>{}},{default:D(()=>[zi(G.$slots,"default")]),_:3},8,["beforeUpload","customRequest"])}}};const Rt=M=>(yt("data-v-70bd9154"),M=M(),bt(),M),An={class:"account_content"},In=Rt(()=>F("div",{class:"account_content-header"},null,-1)),Mn={class:"account_content-baseinfo"},Pn=Rt(()=>F("div",{class:"title",style:{margin:"10px 0 0 0"}},"头像",-1)),En={class:"avatar"},Rn=["src"],On=Rt(()=>F("div",{class:"bg"},null,-1)),Fn=Rt(()=>F("div",{class:"title",style:{"margin-top":"10px"}},"基本信息",-1)),$n={class:"handle"},Vn={class:"handle"},Ln={class:"handle"},Dn={class:"handle"},Un={__name:"index",emits:["close"],setup(M,{expose:k,emit:x}){let R=Q(!1);Q();let A=Q({name:"",phonenumber:"",password:"******",email:"",accountno:""}),K=Q({classname:"system.usercenter.usercenter",method:"queryUserMsg",content:{}}),U=Q({}),q=Q(),z=Q();Ni("userInfo",()=>U.value);let H=Q({name:[{required:!0,message:"请输入姓名",trigger:"blur"}],phonenumber:[{pattern:/^1[3-9]\d{9}$/,message:"请输入正确手机号码",trigger:"blur"}],email:[{required:!0,message:"请输入邮箱",trigger:"blur"},{pattern:/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,message:"请输入正确邮箱",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),ne=Wi(()=>{if(U.value&&U.value.attinfos&&U.value.attinfos.length>0)return U.value.attinfos[0].url}),G=async()=>{let J=await xe.requested(K.value);U.value=J.data,console.log(U.value),A.value.name=U.value.name,A.value.phonenumber=U.value.phonenumber,A.value.email=U.value.hr.email,A.value.accountno=U.value.accountno},C=async J=>{if(!A.value.phonenumber)return We.warning("请填写手机号");if(await z.value.validateFields(),J=="name"){if(A.value.name==U.value.name)return We.warning("请输入新的名称");let V=await xe.requested({classname:"system.usercenter.usercenter",method:"updateUserMsg",content:A.value});ft.message(V,"修改成功",()=>{q.value=""})}else if(J=="email"){if(A.value.email==U.value.hr.email)return We.warning("请输入新的邮箱");let V=await xe.requested({classname:"system.usercenter.usercenter",method:"updateUserMsg",content:A.value});ft.message(V,"修改成功",()=>{q.value=""})}},L=J=>{U.value.attinfos.length>0?ft.removeFileList(U.value.attinfos).then(V=>{B(J.data.attachmentids[0])}):B(J.data.attachmentids[0])},B=async J=>{let V=await xe.requested({classname:"system.attachment.Attachment",method:"createFileLink",content:{ownertable:"sys_users",ownerid:Xe().nowAccount.userid,usetype:"defaultheadportrait",attachmentids:[J]}});ft.message(V,"修改成功",()=>{let ee=U.value;ee.attinfos=V.data,U.value=ee})};return gt(()=>{G()}),k({visible:R}),(J,V)=>{const ee=Y("a-input"),he=Y("a-form-item"),se=Y("a-form"),te=Y("a-drawer");return N(),Ce(te,{visible:S(R),"onUpdate:visible":V[9]||(V[9]=$=>we(R)?R.value=$:R=$),class:"custom-class",title:"个人中心",placement:"right",width:"700px",closable:!1,onClose:V[10]||(V[10]=$=>S(x)("close"))},{default:D(()=>[F("div",An,[In,F("div",Mn,[P(kn,{onUploadSuccess:S(L),accept:".jpg,.png,.svg,.gif"},{default:D(()=>[Pn,F("div",En,[F("img",{src:S(ne)||S(wn),alt:""},null,8,Rn),On])]),_:1},8,["onUploadSuccess"]),Fn,P(se,{model:S(A),rules:S(H),ref_key:"ruleForm",ref:z,"label-width":"200px","label-position":"right",class:"demo-ruleForm"},{default:D(()=>[P(he,{label:"姓名:",name:"name"},{default:D(()=>[P(ee,{value:S(A).name,"onUpdate:value":V[0]||(V[0]=$=>S(A).name=$),size:"middle",placeholder:S(A).name,disabled:S(q)!="name",ref:"nameEdit"},null,8,["value","placeholder","disabled"]),F("div",$n,[S(q)=="name"?(N(),ie("span",{key:0,onClick:V[1]||(V[1]=$=>S(C)("name"))},"保存")):Fe("",!0),F("span",{style:Pt({display:S(q)!="name"?"inline-16":"none"}),onClick:V[2]||(V[2]=$=>we(q)?q.value="name":q="name"),class:"name"},"编辑",4)])]),_:1}),P(he,{label:"手机号:",name:"phonenumber"},{default:D(()=>[P(ee,{value:S(A).phonenumber,"onUpdate:value":V[3]||(V[3]=$=>S(A).phonenumber=$),size:"middle",placeholder:S(A).phonenumber,disabled:!0},null,8,["value","placeholder"]),F("div",Vn,[P(xn)])]),_:1}),P(he,{label:"登录账号:"},{default:D(()=>[P(ee,{value:S(A).accountno,"onUpdate:value":V[4]||(V[4]=$=>S(A).accountno=$),size:"middle",disabled:!0},null,8,["value"])]),_:1}),P(he,{label:"密码:",name:"password"},{default:D(()=>[P(ee,{value:S(A).password,"onUpdate:value":V[5]||(V[5]=$=>S(A).password=$),size:"middle",placeholder:"******",disabled:!0},null,8,["value"]),F("div",Ln,[P(Sn)])]),_:1}),P(he,{label:"邮箱",name:"email"},{default:D(()=>[P(ee,{value:S(A).email,"onUpdate:value":V[6]||(V[6]=$=>S(A).email=$),size:"middle",placeholder:"请输入邮箱",disabled:S(q)!="email",ref:"email"},null,8,["value","disabled"]),F("div",Dn,[S(q)=="email"?(N(),ie("span",{key:0,onClick:V[7]||(V[7]=$=>S(C)("email"))},"保存")):Fe("",!0),F("span",{style:Pt({display:S(q)!="email"?"inline-16":"none"}),onClick:V[8]||(V[8]=$=>we(q)?q.value="email":q="email")},"编辑",4)])]),_:1})]),_:1},8,["model","rules"])])])]),_:1},8,["visible"])}}},Bn=He(Un,[["__scopeId","data-v-70bd9154"]]);const nr=M=>(yt("data-v-d25ae08b"),M=M(),bt(),M),qn={class:"header"},jn={class:"header_left"},Tn=nr(()=>F("span",{style:{"margin-right":"10px"}},"消息中心",-1)),zn={class:"header_right"},Nn={key:0,class:"message_list"},Wn={class:"list_wapper"},Hn=["onClick"],Gn={class:"item"},Kn={class:"left"},Jn={class:"title"},Qn={class:"message"},Zn={key:0},Xn={key:1},Yn=nr(()=>F("br",null,null,-1)),es={class:"info"},ts={class:"tag"},rs={class:"time"},is={class:"right"},ns={key:0,class:"read"},ss={key:1,class:"no-read"},as={key:0,style:{display:"flex"}},os={class:"message_box"},ls={class:"title"},us={class:"info"},fs={class:"content-txt"},cs={class:"txt"},hs={key:0},vs={key:1},ps=nr(()=>F("br",null,null,-1)),ds={__name:"index",props:["close"],setup(M,{expose:k}){const x=M;let R=Ye(),A=Q(!1),K=Q(!1),U=Q(!1),q=Q({classname:"system.message.Message",method:"queryMessage",content:{nocache:!0,pageNumber:1,pageSize:10,type:"应用"}}),z=Q([]),H=Q(0),ne=Q(0),G=async()=>{U.value=!0;let $=await xe.requested(q.value);setTimeout(()=>{U.value=!1},1500),console.log($.data),$.data.forEach(re=>{B(re)}),z.value=q.value.content.pageNumber==1?$.data:z.value.concat($.data),z.value.forEach(re=>{re.message=re.message.split(";")}),H.value=$.total,ne.value=$.pageTotal},C=Q({}),L=async $=>{let re=await xe.requested({classname:"system.message.Message",method:"readMessage",content:{nocache:!0,messageid:$.messageid}});$.isread=1,re.data.name=$.name,re.data.link=$.link,re.data.modules=$.modules,C.value=re.data,C.value.message=C.value.message.split(";"),K.value=!0,console.log(C.value)},B=$=>{Xe().system.forEach(re=>{re.modules.forEach(ke=>{ke.apps.forEach(Ae=>{if(Ae.systemappid==$.systemappid){$.modules=Ae,$.link={listPath:Ae.path,detail:Ae.path_index};return}})})})},J=()=>{C.value.link.detail&&setTimeout(()=>{R.push({path:C.value.link.detail,query:{id:C.value.objectid,portrait:""}})})},V=()=>{z.value=[],q.value.content.pageNumber=1,G()},ee=Q(!0),he=async()=>{if(!ee.value)return;let $=await xe.requested({classname:"system.message.Message",method:"readAllMessage",content:{nocache:!0}});ft.message($,"操作成功",()=>{z.value.forEach(re=>{re.isread=1}),ee.value=!1,setTimeout(()=>{ee.value=!0},5e3)})},se=()=>{q.value.content.pageNumber==ne.value||U.value==!0||(q.value.content.pageNumber+=1,G())},te={mounted($,re){let ke=$;function Ae(Ee){ke.scrollTop+ke.clientHeight>=ke.scrollHeight&&re.value()}ke.addEventListener("scroll",Ae),$.tableWarp=ke,$.handleFun=Ae},unmounted($){$.tableWarp.removeEventListener("scroll",$.handleFun)}};return gt(()=>{G()}),k({visible:A}),($,re)=>{const ke=Y("a-radio-button"),Ae=Y("a-radio-group"),Ee=Y("a-button"),wt=Y("a-spin"),et=Y("a-empty"),tt=Y("a-drawer"),de=Y("a-modal");return N(),ie(Oe,null,[P(tt,{visible:S(A),"onUpdate:visible":re[1]||(re[1]=ue=>we(A)?A.value=ue:A=ue),class:"custom-class",placement:"right",width:"700px",closable:!1,onClose:re[2]||(re[2]=ue=>S(x)("close")),bodyStyle:{padding:"0"}},{title:D(()=>[F("div",qn,[F("div",jn,[Tn,P(Ae,{size:"small",value:S(q).content.type,"onUpdate:value":re[0]||(re[0]=ue=>S(q).content.type=ue),onChange:S(V)},{default:D(()=>[P(ke,{value:"应用"},{default:D(()=>[qe("应用消息")]),_:1}),P(ke,{value:"系统"},{default:D(()=>[qe("系统消息")]),_:1})]),_:1},8,["value","onChange"])]),F("div",zn,[P(Ee,{type:"primary",size:"small",onClick:S(he)},{default:D(()=>[qe("全部已读")]),_:1},8,["onClick"])])])]),default:D(()=>[S(z).length>=1?Hi((N(),ie("div",Nn,[F("div",Wn,[(N(!0),ie(Oe,null,Ne(S(z),(ue,rt)=>(N(),ie("div",{class:"item-box",key:rt,onClick:Be=>S(L)(ue)},[F("div",Gn,[F("div",Kn,[F("p",Jn,pe(ue.title),1),F("p",Qn,[(N(!0),ie(Oe,null,Ne(ue.message,(Be,Ot)=>(N(),ie("span",null,[Ot===ue.message.length-1?(N(),ie("span",Zn,pe(Be),1)):(N(),ie("span",Xn,[qe(pe(Be+";"),1),Yn]))]))),256))]),F("div",es,[F("div",ts,pe(`${ue.type}消息`),1),F("p",rs,pe(ue.createdate),1)])]),F("div",is,[ue.isread==1?(N(),ie("div",ns,"已读")):(N(),ie("div",ss,"未读"))])])],8,Hn))),128)),S(U)?(N(),ie("div",as,[P(wt,{style:{margin:"0 auto","margin-top":"10px"},tip:"加载中..."})])):Fe("",!0)])])),[[S(te),S(se)]]):(N(),Ce(et,{key:1,style:{"margin-top":"20px"},description:"暂无数据"}))]),_:1},8,["visible"]),S(K)?(N(),Ce(de,{key:0,footer:!1,visible:S(K),"onUpdate:visible":re[4]||(re[4]=ue=>we(K)?K.value=ue:K=ue),title:"消息内容",bodyStyle:{padding:"0 0 0 24px"},width:"600px"},{default:D(()=>[F("div",os,[F("p",ls,pe(S(C).title),1),F("p",us,[F("span",null,"发布于:"+pe(S(C).createdate)+" | "+pe(S(C).name||S(C).type),1)]),F("div",fs,[F("p",cs,[(N(!0),ie(Oe,null,Ne(S(C).message,(ue,rt)=>(N(),ie("span",null,[rt===S(C).message.length-1?(N(),ie("span",hs,pe(ue),1)):(N(),ie("span",vs,[qe(pe(ue+";"),1),ps]))]))),256))]),S(q).content.type=="应用"&&S(C).link?(N(),ie("p",{key:0,class:"link",onClick:re[3]||(re[3]=(...ue)=>S(J)&&S(J)(...ue))},"请前往 "+pe(S(C).title)+">>",1)):Fe("",!0)])])]),_:1},8,["visible"])):Fe("",!0)],64)}}},ms=He(ds,[["__scopeId","data-v-d25ae08b"]]);const sr=M=>(yt("data-v-171c806f"),M=M(),bt(),M),gs={class:"sw-header"},ys=sr(()=>F("div",{style:{width:"216px"}},[F("img",{height:"30",src:Zi,alt:""})],-1)),bs=sr(()=>F("span",null,"操作指南",-1)),ws={target:"_blank",href:"https://www.ibpchina.com.cn/helpdoc2.html#31"},_s=sr(()=>F("span",null,"消息中心",-1)),Ss=["onClick"],Cs={__name:"header",setup(M){const k=Ye();let x=Q(!1),R=Q(!1);const A=Xe(),K=Q(),U=Q();let{accountList:q,nowAccount:z,isRefresh:H}=Ze(A);const ne=Yt();let{historyRoutes:G}=Ze(ne);const C=(V,ee)=>{A.defaultAccount(V,()=>{A.reloadPage()}),ee?k.go(0):k.currentRoute.value.meta.isDetail&&k.go(-1)};let L=()=>{x.value=!0,Ur(()=>{K.value.visible=!0})},B=()=>{R.value=!0,Ur(()=>{U.value.visible=!0})};const J=()=>{Kr.confirm({title:"注意",icon:P(Jr),content:"确定退出当前账号吗?",okText:"确认",cancelText:"取消",onOk(){G.value=[],xe.loginout({}),k.push({path:"/"})}})};return(V,ee)=>{const he=Y("a-space"),se=Y("a-tooltip"),te=Y("a-avatar"),$=Y("a-menu-item"),re=Y("a-menu-divider"),ke=Y("a-menu"),Ae=Y("a-dropdown");return N(),ie("div",gs,[P(he,null,{default:D(()=>[ys,P(nn)]),_:1}),F("div",null,[P(he,null,{default:D(()=>[P(se,{placement:"bottom"},{title:D(()=>[bs]),default:D(()=>[F("a",ws,[P(S(mn),{style:{marginRight:"16px",color:"#fff",fontSize:"16px",cursor:"pointer"}})])]),_:1}),P(se,{placement:"bottom"},{title:D(()=>[_s]),default:D(()=>[P(S(ln),{style:{marginRight:"24px",color:"#fff",fontSize:"16px",cursor:"pointer"},onClick:S(B)},null,8,["onClick"])]),_:1}),P(Ae,{class:"dropdown-link"},{overlay:D(()=>[P(ke,null,{default:D(()=>[P($,null,{default:D(()=>[P(S(Hr)),F("a",{class:"color-red",onClick:ee[1]||(ee[1]=(...Ee)=>S(L)&&S(L)(...Ee))}," 个人中心")]),_:1}),P(re),(N(!0),ie(Oe,null,Ne(S(q),Ee=>(N(),Ce($,{key:Ee.index},{default:D(()=>[F("a",{onClick:wt=>C(Ee,!1)},pe(Ee.sitename+"-"+Ee.name),9,Ss)]),_:2},1024))),128)),P(re),P($,null,{default:D(()=>[P(S(hn)),F("a",{class:"color-red",onClick:J}," 退出登录")]),_:1})]),_:1})]),default:D(()=>[F("a",{class:"ant-dropdown-link",onClick:ee[0]||(ee[0]=Gr(()=>{},["prevent"]))},[P(te,{size:"small"},{icon:D(()=>[P(S(Hr))]),_:1}),qe(" "+pe(S(z).name)+"-"+pe(S(z).sitename)+" ",1),P(S(Yi))])]),_:1})]),_:1})]),S(x)?(N(),Ce(Bn,{key:0,ref_key:"account",ref:K,onClose:ee[2]||(ee[2]=Ee=>we(x)?x.value=!1:x=!1)},null,512)):Fe("",!0),S(R)?(N(),Ce(ms,{key:1,ref_key:"messageEl",ref:U,onClose:ee[3]||(ee[3]=Ee=>we(R)?R.value=!1:R=!1)},null,512)):Fe("",!0)])}}},xs=He(Cs,[["__scopeId","data-v-171c806f"]]),ks=""+new URL("daohangcang-ee45a39b.svg",import.meta.url).href;const Qr=M=>(yt("data-v-ebe3a043"),M=M(),bt(),M),As={class:"asides"},Is={class:"menu-icon"},Ms=Qr(()=>F("span",null," 导航仓 ",-1)),Ps=Qr(()=>F("img",{src:ks,alt:""},null,-1)),Es=["onClick"],Rs={class:"menu-icon"},Os=["src"],Fs={__name:"systemMod",setup(M){const k=Ye(),x=Xe(),R=Yt();let{historyRoutes:A,activeKey:K}=Ze(R),{system:U,mods:q,actSystem:z,menuShow:H,openKeys:ne}=Ze(x);const G=Q({});Q(!0);const C=B=>{H.value||(H.value=!0),z.value=B,x.modulesData(B),A.value=[],ne.value.push(B.modules[0].apps[0].systemmoduleid),k.push({path:B.modules[0].apps[0].path})},L=async()=>{const B=await xe.requested({id:20230608103602,content:{}});G.value=B.data};return gt(()=>{console.log(U.value),L()}),Gi(()=>U.value,()=>{z.value=U.value[0]}),(B,J)=>{const V=Y("a-tooltip");return N(),ie("div",As,[F("div",{class:Br(["aside-item",S(z)=="control"?"onSystem":""]),onClick:J[0]||(J[0]=ee=>S(k).push("/controlPanel"))},[F("div",Is,[P(V,{placement:"right"},{title:D(()=>[Ms]),default:D(()=>[Ps]),_:1})])],2),(N(!0),ie(Oe,null,Ne(S(U),ee=>(N(),ie("div",{class:Br(["aside-item",S(z).systemid==ee.systemid?"onSystem":""]),key:ee.index,onClick:he=>C(ee)},[F("div",Rs,[P(V,{placement:"right"},{title:D(()=>[F("span",null,pe(ee.systemname),1)]),default:D(()=>[F("img",{src:ee.iconurl_mainnav,alt:""},null,8,Os)]),_:2},1024)])],10,Es))),128)),S(H)?Fe("",!0):(N(),ie("i",{key:0,class:"iconfont",onClick:J[1]||(J[1]=ee=>we(H)?H.value=!0:H=!0)},""))])}}},$s=He(Fs,[["__scopeId","data-v-ebe3a043"]]);var Xt={},Vs={get exports(){return Xt},set exports(M){Xt=M}};/**
  2. * Less - Leaner CSS v4.1.3
  3. * http://lesscss.org
  4. *
  5. * Copyright (c) 2009-2022, Alexis Sellier <self@cloudhead.net>
  6. * Licensed under the Apache-2.0 License.
  7. *
  8. * @license Apache-2.0
  9. */(function(M,k){(function(x,R){M.exports=R()})(en,function(){function x(){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 R(e){return e.replace(/^[a-z-]+:\/+?[^\/]+/,"").replace(/[\?\&]livereload=\w+/,"").replace(/^\//,"").replace(/\.[a-zA-Z]+$/,"").replace(/[^\.\w-]+/g,"-").replace(/\./g,":")}function A(e,t){if(t){for(var r in t.dataset)if(t.dataset.hasOwnProperty(r))if(r==="env"||r==="dumpLineNumbers"||r==="rootpath"||r==="errorReporting")e[r]=t.dataset[r];else try{e[r]=JSON.parse(t.dataset[r])}catch{}}}var K={createCSS:function(e,t,r){var i=r.href||"",s="less:"+(r.title||R(i)),n=e.getElementById(s),l=!1,f=e.createElement("style");f.setAttribute("type","text/css"),r.media&&f.setAttribute("media",r.media),f.id=s,f.styleSheet||(f.appendChild(e.createTextNode(t)),l=n!==null&&n.childNodes.length>0&&f.childNodes.length>0&&n.firstChild.nodeValue===f.firstChild.nodeValue);var u=e.getElementsByTagName("head")[0];if(n===null||l===!1){var v=r&&r.nextSibling||null;v?v.parentNode.insertBefore(f,v):u.appendChild(f)}if(n&&l===!1&&n.parentNode.removeChild(n),f.styleSheet)try{f.styleSheet.cssText=t}catch{throw new Error("Couldn't reassign styleSheet.cssText.")}},currentScript:function(e){var t=e.document;return t.currentScript||function(){var r=t.getElementsByTagName("script");return r[r.length-1]}()}},U=function(e,t){A(t,K.currentScript(e)),t.isFileProtocol===void 0&&(t.isFileProtocol=/^(file|(chrome|safari)(-extension)?|resource|qrc|app):/.test(e.location.protocol)),t.async=t.async||!1,t.fileAsync=t.fileAsync||!1,t.poll=t.poll||(t.isFileProtocol?1e3:1500),t.env=t.env||(e.location.hostname=="127.0.0.1"||e.location.hostname=="0.0.0.0"||e.location.hostname=="localhost"||e.location.port&&e.location.port.length>0||t.isFileProtocol?"development":"production");var r=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(e.location.hash);r&&(t.dumpLineNumbers=r[1]),t.useFileCache===void 0&&(t.useFileCache=!0),t.onReady===void 0&&(t.onReady=!0),t.relativeUrls&&(t.rewriteUrls="all")},q={error:function(e){this._fireEvent("error",e)},warn:function(e){this._fireEvent("warn",e)},info:function(e){this._fireEvent("info",e)},debug:function(e){this._fireEvent("debug",e)},addListener:function(e){this._listeners.push(e)},removeListener:function(e){for(var t=0;t<this._listeners.length;t++)if(this._listeners[t]===e){this._listeners.splice(t,1);return}},_fireEvent:function(e,t){for(var r=0;r<this._listeners.length;r++){var i=this._listeners[r][e];i&&i(t)}},_listeners:[]},z=function(){function e(t,r){this.fileManagers=r||[],t=t||{};for(var i=["encodeBase64","mimeLookup","charsetLookup","getSourceMapGenerator"],s=[],n=s.concat(i),l=0;l<n.length;l++){var f=n[l],u=t[f];u?this[f]=u.bind(t):l<s.length&&this.warn("missing required function in environment - "+f)}}return e.prototype.getFileManager=function(t,r,i,s,n){t||q.warn("getFileManager called with no filename.. Please report this issue. continuing."),r==null&&q.warn("getFileManager called with null directory.. Please report this issue. continuing.");var l=this.fileManagers;i.pluginManager&&(l=[].concat(l).concat(i.pluginManager.getFileManagers()));for(var f=l.length-1;f>=0;f--){var u=l[f];if(u[n?"supportsSync":"supports"](t,r,i,s))return u}return null},e.prototype.addFileManager=function(t){this.fileManagers.push(t)},e.prototype.clearFileManagers=function(){this.fileManagers=[]},e}(),H={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"},ne={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}},G={colors:H,unitConversions:ne},C=function(){function e(){this.parent=null,this.visibilityBlocks=void 0,this.nodeVisible=void 0,this.rootNode=null,this.parsed=null}return Object.defineProperty(e.prototype,"currentFileInfo",{get:function(){return this.fileInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.getIndex()},enumerable:!1,configurable:!0}),e.prototype.setParent=function(t,r){function i(s){s&&s instanceof e&&(s.parent=r)}Array.isArray(t)?t.forEach(i):i(t)},e.prototype.getIndex=function(){return this._index||this.parent&&this.parent.getIndex()||0},e.prototype.fileInfo=function(){return this._fileInfo||this.parent&&this.parent.fileInfo()||{}},e.prototype.isRulesetLike=function(){return!1},e.prototype.toCSS=function(t){var r=[];return this.genCSS(t,{add:function(i,s,n){r.push(i)},isEmpty:function(){return r.length===0}}),r.join("")},e.prototype.genCSS=function(t,r){r.add(this.value)},e.prototype.accept=function(t){this.value=t.visit(this.value)},e.prototype.eval=function(){return this},e.prototype._operate=function(t,r,i,s){switch(r){case"+":return i+s;case"-":return i-s;case"*":return i*s;case"/":return i/s}},e.prototype.fround=function(t,r){var i=t&&t.numPrecision;return i?Number((r+2e-16).toFixed(i)):r},e.compare=function(t,r){if(t.compare&&!(r.type==="Quoted"||r.type==="Anonymous"))return t.compare(r);if(r.compare)return-r.compare(t);if(t.type!==r.type)return;if(t=t.value,r=r.value,!Array.isArray(t))return t===r?0:void 0;if(t.length===r.length){for(var i=0;i<t.length;i++)if(e.compare(t[i],r[i])!==0)return;return 0}},e.numericCompare=function(t,r){return t<r?-1:t===r?0:t>r?1:void 0},e.prototype.blocksVisibility=function(){return this.visibilityBlocks==null&&(this.visibilityBlocks=0),this.visibilityBlocks!==0},e.prototype.addVisibilityBlock=function(){this.visibilityBlocks==null&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1},e.prototype.removeVisibilityBlock=function(){this.visibilityBlocks==null&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1},e.prototype.ensureVisibility=function(){this.nodeVisible=!0},e.prototype.ensureInvisibility=function(){this.nodeVisible=!1},e.prototype.isVisible=function(){return this.nodeVisible},e.prototype.visibilityInfo=function(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}},e.prototype.copyVisibilityInfo=function(t){t&&(this.visibilityBlocks=t.visibilityBlocks,this.nodeVisible=t.nodeVisible)},e}(),L=function(e,t,r){var i=this;Array.isArray(e)?this.rgb=e:e.length>=6?(this.rgb=[],e.match(/.{2}/g).map(function(s,n){n<3?i.rgb.push(parseInt(s,16)):i.alpha=parseInt(s,16)/255})):(this.rgb=[],e.split("").map(function(s,n){n<3?i.rgb.push(parseInt(s+s,16)):i.alpha=parseInt(s+s,16)/255})),this.alpha=this.alpha||(typeof t=="number"?t:1),typeof r<"u"&&(this.value=r)};L.prototype=Object.assign(new C,{type:"Color",luma:function(){var e=this.rgb[0]/255,t=this.rgb[1]/255,r=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),r=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4),.2126*e+.7152*t+.0722*r},genCSS:function(e,t){t.add(this.toCSS(e))},toCSS:function(e,t){var r=e&&e.compress&&!t,i,s,n,l=[];if(s=this.fround(e,this.alpha),this.value)if(this.value.indexOf("rgb")===0)s<1&&(n="rgba");else if(this.value.indexOf("hsl")===0)s<1?n="hsla":n="hsl";else return this.value;else s<1&&(n="rgba");switch(n){case"rgba":l=this.rgb.map(function(u){return B(Math.round(u),255)}).concat(B(s,1));break;case"hsla":l.push(B(s,1));case"hsl":i=this.toHSL(),l=[this.fround(e,i.h),this.fround(e,i.s*100)+"%",this.fround(e,i.l*100)+"%"].concat(l)}if(n)return n+"("+l.join(","+(r?"":" "))+")";if(i=this.toRGB(),r){var f=i.split("");f[1]===f[2]&&f[3]===f[4]&&f[5]===f[6]&&(i="#"+f[1]+f[3]+f[5])}return i},operate:function(e,t,r){for(var i=new Array(3),s=this.alpha*(1-r.alpha)+r.alpha,n=0;n<3;n++)i[n]=this._operate(e,t,this.rgb[n],r.rgb[n]);return new L(i,s)},toRGB:function(){return J(this.rgb)},toHSL:function(){var e=this.rgb[0]/255,t=this.rgb[1]/255,r=this.rgb[2]/255,i=this.alpha,s=Math.max(e,t,r),n=Math.min(e,t,r),l,f,u=(s+n)/2,v=s-n;if(s===n)l=f=0;else{switch(f=u>.5?v/(2-s-n):v/(s+n),s){case e:l=(t-r)/v+(t<r?6:0);break;case t:l=(r-e)/v+2;break;case r:l=(e-t)/v+4;break}l/=6}return{h:l*360,s:f,l:u,a:i}},toHSV:function(){var e=this.rgb[0]/255,t=this.rgb[1]/255,r=this.rgb[2]/255,i=this.alpha,s=Math.max(e,t,r),n=Math.min(e,t,r),l,f,u=s,v=s-n;if(s===0?f=0:f=v/s,s===n)l=0;else{switch(s){case e:l=(t-r)/v+(t<r?6:0);break;case t:l=(r-e)/v+2;break;case r:l=(e-t)/v+4;break}l/=6}return{h:l*360,s:f,v:u,a:i}},toARGB:function(){return J([this.alpha*255].concat(this.rgb))},compare:function(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}}),L.fromKeyword=function(e){var t,r=e.toLowerCase();if(H.hasOwnProperty(r)?t=new L(H[r].slice(1)):r==="transparent"&&(t=new L([0,0,0],0)),t)return t.value=e,t};function B(e,t){return Math.min(Math.max(e,0),t)}function J(e){return"#"+e.map(function(t){return t=B(Math.round(t),255),(t<16?"0":"")+t.toString(16)}).join("")}var V=function(e){this.value=e};V.prototype=Object.assign(new C,{type:"Paren",genCSS:function(e,t){t.add("("),this.value.genCSS(e,t),t.add(")")},eval:function(e){return new V(this.value.eval(e))}});var ee={"":!0," ":!0,"|":!0},he=function(e){e===" "?(this.value=" ",this.emptyOrWhitespace=!0):(this.value=e?e.trim():"",this.emptyOrWhitespace=this.value==="")};he.prototype=Object.assign(new C,{type:"Combinator",genCSS:function(e,t){var r=e.compress||ee[this.value]?"":" ";t.add(r+this.value+r)}});var se=function(e,t,r,i,s,n){this.combinator=e instanceof he?e:new he(e),typeof t=="string"?this.value=t.trim():t?this.value=t:this.value="",this.isVariable=r,this._index=i,this._fileInfo=s,this.copyVisibilityInfo(n),this.setParent(this.combinator,this)};se.prototype=Object.assign(new C,{type:"Element",accept:function(e){var t=this.value;this.combinator=e.visit(this.combinator),typeof t=="object"&&(this.value=e.visit(t))},eval:function(e){return new se(this.combinator,this.value.eval?this.value.eval(e):this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},clone:function(){return new se(this.combinator,this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},genCSS:function(e,t){t.add(this.toCSS(e),this.fileInfo(),this.getIndex())},toCSS:function(e){e=e||{};var t=this.value,r=e.firstSelector;return t instanceof V&&(e.firstSelector=!0),t=t.toCSS?t.toCSS(e):t,e.firstSelector=r,t===""&&this.combinator.value.charAt(0)==="&"?"":this.combinator.toCSS(e)+t}});var te={ALWAYS:0,PARENS_DIVISION:1,PARENS:2},$={OFF:0,LOCAL:1,ALL:2};function re(e){return Object.prototype.toString.call(e).slice(8,-1)}function ke(e){return re(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function Ae(e){return re(e)==="Array"}/*! *****************************************************************************
  10. Copyright (c) Microsoft Corporation. All rights reserved.
  11. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  12. this file except in compliance with the License. You may obtain a copy of the
  13. License at http://www.apache.org/licenses/LICENSE-2.0
  14. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  16. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  17. MERCHANTABLITY OR NON-INFRINGEMENT.
  18. See the Apache Version 2.0 License for specific language governing permissions
  19. and limitations under the License.
  20. ***************************************************************************** */function Ee(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var i=Array(e),s=0,t=0;t<r;t++)for(var n=arguments[t],l=0,f=n.length;l<f;l++,s++)i[s]=n[l];return i}function wt(e,t,r,i,s){var n={}.propertyIsEnumerable.call(i,t)?"enumerable":"nonenumerable";n==="enumerable"&&(e[t]=r),s&&n==="nonenumerable"&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}function et(e,t){if(t===void 0&&(t={}),Ae(e))return e.map(function(s){return et(s,t)});if(!ke(e))return e;var r=Object.getOwnPropertyNames(e),i=Object.getOwnPropertySymbols(e);return Ee(r,i).reduce(function(s,n){if(Ae(t.props)&&!t.props.includes(n))return s;var l=e[n],f=et(l,t);return wt(s,n,f,e,t.nonenumerable),s},{})}function tt(e,t){for(var r=e+1,i=null,s=-1;--r>=0&&t.charAt(r)!==`
  21. `;)s++;return typeof e=="number"&&(i=(t.slice(0,e).match(/\n/g)||"").length),{line:i,column:s}}function de(e){var t,r=e.length,i=new Array(r);for(t=0;t<r;t++)i[t]=e[t];return i}function ue(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function rt(e,t){var r=t||{};if(!t._defaults){r={};var i=et(e);r._defaults=i;var s=t?et(t):{};Object.assign(r,i,s)}return r}function Be(e,t){if(t&&t._defaults)return t;var r=rt(e,t);if(r.strictMath&&(r.math=te.PARENS),r.relativeUrls&&(r.rewriteUrls=$.ALL),typeof r.math=="string")switch(r.math.toLowerCase()){case"always":r.math=te.ALWAYS;break;case"parens-division":r.math=te.PARENS_DIVISION;break;case"strict":case"parens":r.math=te.PARENS;break;default:r.math=te.PARENS}if(typeof r.rewriteUrls=="string")switch(r.rewriteUrls.toLowerCase()){case"off":r.rewriteUrls=$.OFF;break;case"local":r.rewriteUrls=$.LOCAL;break;case"all":r.rewriteUrls=$.ALL;break}return r}function Ot(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function Ft(e,t){t===void 0&&(t=[]);for(var r=0,i=e.length;r<i;r++){var s=e[r];Array.isArray(s)?Ft(s,t):s!==void 0&&t.push(s)}return t}var Zr=Object.freeze({__proto__:null,getLocation:tt,copyArray:de,clone:ue,defaults:rt,copyOptions:Be,merge:Ot,flattenArray:Ft}),ar=/(<anonymous>|Function):(\d+):(\d+)/,ae=function(e,t,r){Error.call(this);var i=e.filename||r;if(this.message=e.message,this.stack=e.stack,t&&i){var s=t.contents[i],n=tt(e.index,s),l=n.line,f=n.column,u=e.call&&tt(e.call,s).line,v=s?s.split(`
  22. `):"";if(this.type=e.type||"Syntax",this.filename=i,this.index=e.index,this.line=typeof l=="number"?l+1:null,this.column=f,!this.line&&this.stack){var d=this.stack.match(ar),a=new Function("a","throw new Error()"),o=0;try{a()}catch(h){var c=h.stack.match(ar),l=parseInt(c[2]);o=1-l}d&&(d[2]&&(this.line=parseInt(d[2])+o),d[3]&&(this.column=parseInt(d[3])))}this.callLine=u+1,this.callExtract=v[u],this.extract=[v[this.line-2],v[this.line-1],v[this.line]]}};if(typeof Object.create>"u"){var or=function(){};or.prototype=Error.prototype,ae.prototype=new or}else ae.prototype=Object.create(Error.prototype);ae.prototype.constructor=ae,ae.prototype.toString=function(e){e=e||{};var t="",r=this.extract||[],i=[],s=function(f){return f};if(e.stylize){var n=typeof e.stylize;if(n!=="function")throw Error("options.stylize should be a function, got a "+n+"!");s=e.stylize}if(this.line!==null){if(typeof r[0]=="string"&&i.push(s(this.line-1+" "+r[0],"grey")),typeof r[1]=="string"){var l=this.line+" ";r[1]&&(l+=r[1].slice(0,this.column)+s(s(s(r[1].substr(this.column,1),"bold")+r[1].slice(this.column+1),"red"),"inverse")),i.push(l)}typeof r[2]=="string"&&i.push(s(this.line+1+" "+r[2],"grey")),i=i.join(`
  23. `)+s("","reset")+`
  24. `}return t+=s(this.type+"Error: "+this.message,"red"),this.filename&&(t+=s(" in ","red")+this.filename),this.line&&(t+=s(" on line "+this.line+", column "+(this.column+1)+":","grey")),t+=`
  25. `+i,this.callLine&&(t+=s("from ","red")+(this.filename||"")+"/n",t+=s(this.callLine,"grey")+" "+this.callExtract+"/n"),t};var me=function(e,t,r,i,s,n){this.extendList=t,this.condition=r,this.evaldCondition=!r,this._index=i,this._fileInfo=s,this.elements=this.getElements(e),this.mixinElements_=void 0,this.copyVisibilityInfo(n),this.setParent(this.elements,this)};me.prototype=Object.assign(new C,{type:"Selector",accept:function(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:function(e,t,r){e=this.getElements(e);var i=new me(e,t||this.extendList,null,this.getIndex(),this.fileInfo(),this.visibilityInfo());return i.evaldCondition=r??this.evaldCondition,i.mediaEmpty=this.mediaEmpty,i},getElements:function(e){return e?(typeof e=="string"&&this.parse.parseNode(e,["selector"],this._index,this._fileInfo,function(t,r){if(t)throw new ae({index:t.index,message:t.message},this.parse.imports,this._fileInfo.filename);e=r[0].elements}),e):[new se("","&",!1,this._index,this._fileInfo)]},createEmptySelectors:function(){var e=new se("","&",!1,this._index,this._fileInfo),t=[new me([e],null,null,this._index,this._fileInfo)];return t[0].mediaEmpty=!0,t},match:function(e){var t=this.elements,r=t.length,i,s;if(e=e.mixinElements(),i=e.length,i===0||r<i)return 0;for(s=0;s<i;s++)if(t[s].value!==e[s])return 0;return i},mixinElements:function(){if(this.mixinElements_)return this.mixinElements_;var 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:function(){return!this.mediaEmpty&&this.elements.length===1&&this.elements[0].value==="&"&&(this.elements[0].combinator.value===" "||this.elements[0].combinator.value==="")},eval:function(e){var t=this.condition&&this.condition.eval(e),r=this.elements,i=this.extendList;return r=r&&r.map(function(s){return s.eval(e)}),i=i&&i.map(function(s){return s.eval(e)}),this.createDerived(r,i,t)},genCSS:function(e,t){var r,i;for((!e||!e.firstSelector)&&this.elements[0].combinator.value===""&&t.add(" ",this.fileInfo(),this.getIndex()),r=0;r<this.elements.length;r++)i=this.elements[r],i.genCSS(e,t)},getIsOutput:function(){return this.evaldCondition}});var je=function(e){if(!e)throw new Error("Value requires an array argument");Array.isArray(e)?this.value=e:this.value=[e]};je.prototype=Object.assign(new C,{type:"Value",accept:function(e){this.value&&(this.value=e.visitArray(this.value))},eval:function(e){return this.value.length===1?this.value[0].eval(e):new je(this.value.map(function(t){return t.eval(e)}))},genCSS:function(e,t){var r;for(r=0;r<this.value.length;r++)this.value[r].genCSS(e,t),r+1<this.value.length&&t.add(e&&e.compress?",":", ")}});var ve=function(e){this.value=e};ve.prototype=Object.assign(new C,{type:"Keyword",genCSS:function(e,t){if(this.value==="%")throw{type:"Syntax",message:"Invalid % without number"};t.add(this.value)}}),ve.True=new ve("true"),ve.False=new ve("false");var ye=function(e,t,r,i,s,n){this.value=e,this._index=t,this._fileInfo=r,this.mapLines=i,this.rulesetLike=typeof s>"u"?!1:s,this.allowRoot=!0,this.copyVisibilityInfo(n)};ye.prototype=Object.assign(new C,{type:"Anonymous",eval:function(){return new ye(this.value,this._index,this._fileInfo,this.mapLines,this.rulesetLike,this.visibilityInfo())},compare:function(e){return e.toCSS&&this.toCSS()===e.toCSS()?0:void 0},isRulesetLike:function(){return this.rulesetLike},genCSS:function(e,t){this.nodeVisible=Boolean(this.value),this.nodeVisible&&t.add(this.value,this._fileInfo,this._index,this.mapLines)}});var lr=te;function Xr(e,t){var r="",i,s=t.length,n={add:function(l){r+=l}};for(i=0;i<s;i++)t[i].eval(e).genCSS(e,n);return r}var ge=function(e,t,r,i,s,n,l,f){this.name=e,this.value=t instanceof C?t:new je([t?new ye(t):null]),this.important=r?" "+r.trim():"",this.merge=i,this._index=s,this._fileInfo=n,this.inline=l||!1,this.variable=f!==void 0?f:e.charAt&&e.charAt(0)==="@",this.allowRoot=!0,this.setParent(this.value,this)};ge.prototype=Object.assign(new C,{type:"Declaration",genCSS:function(e,t){t.add(this.name+(e.compress?":":": "),this.fileInfo(),this.getIndex());try{this.value.genCSS(e,t)}catch(r){throw r.index=this._index,r.filename=this._fileInfo.filename,r}t.add(this.important+(this.inline||e.lastRule&&e.compress?"":";"),this._fileInfo,this._index)},eval:function(e){var t=!1,r,i=this.name,s,n=this.variable;typeof i!="string"&&(i=i.length===1&&i[0]instanceof ve?i[0].value:Xr(e,i),n=!1),i==="font"&&e.math===lr.ALWAYS&&(t=!0,r=e.math,e.math=lr.PARENS_DIVISION);try{if(e.importantScope.push({}),s=this.value.eval(e),!this.variable&&s.type==="DetachedRuleset")throw{message:"Rulesets cannot be evaluated on a property.",index:this.getIndex(),filename:this.fileInfo().filename};var l=this.important,f=e.importantScope.pop();return!l&&f.important&&(l=f.important),new ge(i,s,l,this.merge,this.getIndex(),this.fileInfo(),this.inline,n)}catch(u){throw typeof u.index!="number"&&(u.index=this.getIndex(),u.filename=this.fileInfo().filename),u}finally{t&&(e.math=r)}},makeImportant:function(){return new ge(this.name,this.value,"!important",this.merge,this.getIndex(),this.fileInfo(),this.inline)}});function ur(e){return"/* line "+e.debugInfo.lineNumber+", "+e.debugInfo.fileName+` */
  26. `}function fr(e){var t=e.debugInfo.fileName;return/^[a-z]+:\/\//i.test(t)||(t="file://"+t),"@media -sass-debug-info{filename{font-family:"+t.replace(/([.:\/\\])/g,function(r){return r=="\\"&&(r="/"),"\\"+r})+"}line{font-family:\\00003"+e.debugInfo.lineNumber+`}}
  27. `}function cr(e,t,r){var i="";if(e.dumpLineNumbers&&!e.compress)switch(e.dumpLineNumbers){case"comments":i=ur(t);break;case"mediaquery":i=fr(t);break;case"all":i=ur(t)+(r||"")+fr(t);break}return i}var ct=function(e,t,r,i){this.value=e,this.isLineComment=t,this._index=r,this._fileInfo=i,this.allowRoot=!0};ct.prototype=Object.assign(new C,{type:"Comment",genCSS:function(e,t){this.debugInfo&&t.add(cr(e,this),this.fileInfo(),this.getIndex()),t.add(this.value)},isSilent:function(e){var t=e.compress&&this.value[2]!=="!";return this.isLineComment||t}});var fe={},hr=function(t,r,i){if(t)for(var s=0;s<i.length;s++)t.hasOwnProperty(i[s])&&(r[i[s]]=t[i[s]])},Yr=["paths","rewriteUrls","rootpath","strictImports","insecure","dumpLineNumbers","compress","syncImport","chunkInput","mime","useFileCache","processImports","pluginManager"];fe.Parse=function(e){hr(e,this,Yr),typeof this.paths=="string"&&(this.paths=[this.paths])};var ei=["paths","compress","math","strictUnits","sourceMap","importMultiple","urlArgs","javascriptEnabled","pluginManager","importantScope","rewriteUrls"];fe.Eval=function(e,t){hr(e,this,ei),typeof this.paths=="string"&&(this.paths=[this.paths]),this.frames=t||[],this.importantScope=this.importantScope||[]},fe.Eval.prototype.enterCalc=function(){this.calcStack||(this.calcStack=[]),this.calcStack.push(!0),this.inCalc=!0},fe.Eval.prototype.exitCalc=function(){this.calcStack.pop(),this.calcStack.length||(this.inCalc=!1)},fe.Eval.prototype.inParenthesis=function(){this.parensStack||(this.parensStack=[]),this.parensStack.push(!0)},fe.Eval.prototype.outOfParenthesis=function(){this.parensStack.pop()},fe.Eval.prototype.inCalc=!1,fe.Eval.prototype.mathOn=!0,fe.Eval.prototype.isMathOn=function(e){return!this.mathOn||e==="/"&&this.math!==te.ALWAYS&&(!this.parensStack||!this.parensStack.length)?!1:this.math>te.PARENS_DIVISION?this.parensStack&&this.parensStack.length:!0},fe.Eval.prototype.pathRequiresRewrite=function(e){var t=this.rewriteUrls===$.LOCAL?$t:vr;return t(e)},fe.Eval.prototype.rewritePath=function(e,t){var r;return t=t||"",r=this.normalizePath(t+e),$t(e)&&vr(t)&&$t(r)===!1&&(r="./"+r),r},fe.Eval.prototype.normalizePath=function(e){var t=e.split("/").reverse(),r;for(e=[];t.length!==0;)switch(r=t.pop(),r){case".":break;case"..":e.length===0||e[e.length-1]===".."?e.push(r):e.pop();break;default:e.push(r);break}return e.join("/")};function vr(e){return!/^(?:[a-z-]+:|\/|#)/i.test(e)}function $t(e){return e.charAt(0)==="."}function Vt(e){return{_data:{},add:function(t,r){t=t.toLowerCase(),this._data.hasOwnProperty(t),this._data[t]=r},addMultiple:function(t){var r=this;Object.keys(t).forEach(function(i){r.add(i,t[i])})},get:function(t){return this._data[t]||e&&e.get(t)},getLocalFunctions:function(){return this._data},inherit:function(){return Vt(this)},create:function(t){return Vt(t)}}}var be=Vt(null),it={eval:function(){var e=this.value_,t=this.error_;if(t)throw t;if(e!=null)return e?ve.True:ve.False},value:function(e){this.value_=e},error:function(e){this.error_=e},reset:function(){this.value_=this.error_=null}},ce=function(e,t,r,i){this.selectors=e,this.rules=t,this._lookups={},this._variables=null,this._properties=null,this.strictImports=r,this.copyVisibilityInfo(i),this.allowRoot=!0,this.setParent(this.selectors,this),this.setParent(this.rules,this)};ce.prototype=Object.assign(new C,{type:"Ruleset",isRuleset:!0,isRulesetLike:function(){return!0},accept:function(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:function(e){var t,r,i,s,n,l=!1;if(this.selectors&&(r=this.selectors.length)){for(t=new Array(r),it.error({type:"Syntax",message:"it is currently only allowed in parametric mixin guards,"}),s=0;s<r;s++){i=this.selectors[s].eval(e);for(var f=0;f<i.elements.length;f++)if(i.elements[f].isVariable){n=!0;break}t[s]=i,i.evaldCondition&&(l=!0)}if(n){var u=new Array(r);for(s=0;s<r;s++)i=t[s],u[s]=i.toCSS(e);this.parse.parseNode(u.join(","),["selectors"],t[0].getIndex(),t[0].fileInfo(),function(m,y){y&&(t=Ft(y))})}it.reset()}else l=!0;var v=this.rules?de(this.rules):null,d=new ce(t,v,this.strictImports,this.visibilityInfo()),a,o;d.originalRuleset=this,d.root=this.root,d.firstRoot=this.firstRoot,d.allowImports=this.allowImports,this.debugInfo&&(d.debugInfo=this.debugInfo),l||(v.length=0),d.functionRegistry=function(m){for(var y=0,b=m.length,_;y!==b;++y)if(_=m[y].functionRegistry,_)return _;return be}(e.frames).inherit();var c=e.frames;c.unshift(d);var h=e.selectors;h||(e.selectors=h=[]),h.unshift(this.selectors),(d.root||d.allowImports||!d.strictImports)&&d.evalImports(e);var p=d.rules;for(s=0;a=p[s];s++)a.evalFirst&&(p[s]=a.eval(e));var g=e.mediaBlocks&&e.mediaBlocks.length||0;for(s=0;a=p[s];s++)a.type==="MixinCall"?(v=a.eval(e).filter(function(m){return m instanceof ge&&m.variable?!d.variable(m.name):!0}),p.splice.apply(p,[s,1].concat(v)),s+=v.length-1,d.resetCache()):a.type==="VariableCall"&&(v=a.eval(e).rules.filter(function(m){return!(m instanceof ge&&m.variable)}),p.splice.apply(p,[s,1].concat(v)),s+=v.length-1,d.resetCache());for(s=0;a=p[s];s++)a.evalFirst||(p[s]=a=a.eval?a.eval(e):a);for(s=0;a=p[s];s++)if(a instanceof ce&&a.selectors&&a.selectors.length===1&&a.selectors[0]&&a.selectors[0].isJustParentSelector()){p.splice(s--,1);for(var f=0;o=a.rules[f];f++)o instanceof C&&(o.copyVisibilityInfo(a.visibilityInfo()),(!(o instanceof ge)||!o.variable)&&p.splice(++s,0,o))}if(c.shift(),h.shift(),e.mediaBlocks)for(s=g;s<e.mediaBlocks.length;s++)e.mediaBlocks[s].bubbleSelectors(t);return d},evalImports:function(e){var t=this.rules,r,i;if(t)for(r=0;r<t.length;r++)t[r].type==="Import"&&(i=t[r].eval(e),i&&(i.length||i.length===0)?(t.splice.apply(t,[r,1].concat(i)),r+=i.length-1):t.splice(r,1,i),this.resetCache())},makeImportant:function(){var e=new ce(this.selectors,this.rules.map(function(t){return t.makeImportant?t.makeImportant():t}),this.strictImports,this.visibilityInfo());return e},matchArgs:function(e){return!e||e.length===0},matchCondition:function(e,t){var r=this.selectors[this.selectors.length-1];return!(!r.evaldCondition||r.condition&&!r.condition.eval(new fe.Eval(t,t.frames)))},resetCache:function(){this._rulesets=null,this._variables=null,this._properties=null,this._lookups={}},variables:function(){return this._variables||(this._variables=this.rules?this.rules.reduce(function(e,t){if(t instanceof ge&&t.variable===!0&&(e[t.name]=t),t.type==="Import"&&t.root&&t.root.variables){var r=t.root.variables();for(var i in r)r.hasOwnProperty(i)&&(e[i]=t.root.variable(i))}return e},{}):{}),this._variables},properties:function(){return this._properties||(this._properties=this.rules?this.rules.reduce(function(e,t){if(t instanceof ge&&t.variable!==!0){var r=t.name.length===1&&t.name[0]instanceof ve?t.name[0].value:t.name;e["$"+r]?e["$"+r].push(t):e["$"+r]=[t]}return e},{}):{}),this._properties},variable:function(e){var t=this.variables()[e];if(t)return this.parseValue(t)},property:function(e){var t=this.properties()[e];if(t)return this.parseValue(t)},lastDeclaration:function(){for(var e=this.rules.length;e>0;e--){var t=this.rules[e-1];if(t instanceof ge)return this.parseValue(t)}},parseValue:function(e){var t=this;function r(s){return s.value instanceof ye&&!s.parsed&&(typeof s.value.value=="string"?this.parse.parseNode(s.value.value,["value","important"],s.value.getIndex(),s.fileInfo(),function(n,l){n&&(s.parsed=!0),l&&(s.value=l[0],s.important=l[1]||"",s.parsed=!0)}):s.parsed=!0),s}if(Array.isArray(e)){var i=[];return e.forEach(function(s){i.push(r.call(t,s))}),i}else return r.call(t,e)},rulesets:function(){if(!this.rules)return[];var e=[],t=this.rules,r,i;for(r=0;i=t[r];r++)i.isRuleset&&e.push(i);return e},prependRule:function(e){var t=this.rules;t?t.unshift(e):this.rules=[e],this.setParent(e,this)},find:function(e,t,r){t=t||this;var i=[],s,n,l=e.toCSS();return l in this._lookups?this._lookups[l]:(this.rulesets().forEach(function(f){if(f!==t){for(var u=0;u<f.selectors.length;u++)if(s=e.match(f.selectors[u]),s){if(e.elements.length>s){if(!r||r(f)){n=f.find(new me(e.elements.slice(s)),t,r);for(var v=0;v<n.length;++v)n[v].path.push(f);Array.prototype.push.apply(i,n)}}else i.push({rule:f,path:[]});break}}}),this._lookups[l]=i,i)},genCSS:function(e,t){var r,i,s=[],n=[],l,f,u;e.tabLevel=e.tabLevel||0,this.root||e.tabLevel++;var v=e.compress?"":Array(e.tabLevel+1).join(" "),d=e.compress?"":Array(e.tabLevel).join(" "),a,o=0,c=0;for(r=0;f=this.rules[r];r++)f instanceof ct?(c===r&&c++,n.push(f)):f.isCharset&&f.isCharset()?(n.splice(o,0,f),o++,c++):f.type==="Import"?(n.splice(c,0,f),c++):n.push(f);if(n=s.concat(n),!this.root){l=cr(e,this,d),l&&(t.add(l),t.add(d));var h=this.paths,p=h.length,g=void 0;for(a=e.compress?",":`,
  28. `+d,r=0;r<p;r++)if(u=h[r],!!(g=u.length))for(r>0&&t.add(a),e.firstSelector=!0,u[0].genCSS(e,t),e.firstSelector=!1,i=1;i<g;i++)u[i].genCSS(e,t);t.add((e.compress?"{":` {
  29. `)+v)}for(r=0;f=n[r];r++){r+1===n.length&&(e.lastRule=!0);var m=e.lastRule;f.isRulesetLike(f)&&(e.lastRule=!1),f.genCSS?f.genCSS(e,t):f.value&&t.add(f.value.toString()),e.lastRule=m,!e.lastRule&&f.isVisible()?t.add(e.compress?"":`
  30. `+v):e.lastRule=!1}this.root||(t.add(e.compress?"}":`
  31. `+d+"}"),e.tabLevel--),!t.isEmpty()&&!e.compress&&this.firstRoot&&t.add(`
  32. `)},joinSelectors:function(e,t,r){for(var i=0;i<r.length;i++)this.joinSelector(e,t,r[i])},joinSelector:function(e,t,r){function i(h,p){var g,m;if(h.length===0)g=new V(h[0]);else{var y=new Array(h.length);for(m=0;m<h.length;m++)y[m]=new se(null,h[m],p.isVariable,p._index,p._fileInfo);g=new V(new me(y))}return g}function s(h,p){var g,m;return g=new se(null,h,p.isVariable,p._index,p._fileInfo),m=new me([g]),m}function n(h,p,g,m){var y,b,_;if(y=[],h.length>0?(y=de(h),b=y.pop(),_=m.createDerived(de(b.elements))):_=m.createDerived([]),p.length>0){var I=g.combinator,E=p[0].elements[0];I.emptyOrWhitespace&&!E.combinator.emptyOrWhitespace&&(I=E.combinator),_.elements.push(new se(I,E.value,g.isVariable,g._index,g._fileInfo)),_.elements=_.elements.concat(p[0].elements.slice(1))}if(_.elements.length!==0&&y.push(_),p.length>1){var O=p.slice(1);O=O.map(function(j){return j.createDerived(j.elements,[])}),y=y.concat(O)}return y}function l(h,p,g,m,y){var b;for(b=0;b<h.length;b++){var _=n(h[b],p,g,m);y.push(_)}return y}function f(h,p){var g,m;if(h.length!==0){if(p.length===0){p.push([new me(h)]);return}for(g=0;m=p[g];g++)m.length>0?m[m.length-1]=m[m.length-1].createDerived(m[m.length-1].elements.concat(h)):m.push(new me(h))}}function u(h,p,g){var m,y,b,_,I,E,O,j,T=!1,le,Z;function X(Dr){var Jt;return!(Dr.value instanceof V)||(Jt=Dr.value.value,!(Jt instanceof me))?null:Jt}for(_=[],I=[[]],m=0;j=g.elements[m];m++)if(j.value!=="&"){var oe=X(j);if(oe!=null){f(_,I);var Se=[],Re=void 0,dt=[];for(Re=u(Se,p,oe),T=T||Re,b=0;b<Se.length;b++){var mt=s(i(Se[b],j),j);l(I,[mt],j,g,dt)}I=dt,_=[]}else _.push(j)}else{for(T=!0,E=[],f(_,I),y=0;y<I.length;y++)if(O=I[y],p.length===0)O.length>0&&O[0].elements.push(new se(j.combinator,"",j.isVariable,j._index,j._fileInfo)),E.push(O);else for(b=0;b<p.length;b++){var ji=n(O,p[b],j,g);E.push(ji)}I=E,_=[]}for(f(_,I),m=0;m<I.length;m++)le=I[m].length,le>0&&(h.push(I[m]),Z=I[m][le-1],I[m][le-1]=Z.createDerived(Z.elements,g.extendList));return T}function v(h,p){var g=p.createDerived(p.elements,p.extendList,p.evaldCondition);return g.copyVisibilityInfo(h),g}var d,a,o;if(a=[],o=u(a,t,r),!o)if(t.length>0)for(a=[],d=0;d<t.length;d++){var c=t[d].map(v.bind(this,r.visibilityInfo()));c.push(r),a.push(c)}else a=[[r]];for(d=0;d<a.length;d++)e.push(a[d])}});var _t=function(e,t,r,i,s,n,l,f){var u;if(this.name=e,this.value=t instanceof C?t:t&&new ye(t),r){for(Array.isArray(r)?this.rules=r:(this.rules=[r],this.rules[0].selectors=new me([],null,null,i,s).createEmptySelectors()),u=0;u<this.rules.length;u++)this.rules[u].allowImports=!0;this.setParent(this.rules,this)}this._index=i,this._fileInfo=s,this.debugInfo=n,this.isRooted=l||!1,this.copyVisibilityInfo(f),this.allowRoot=!0};_t.prototype=Object.assign(new C,{type:"AtRule",accept:function(e){var t=this.value,r=this.rules;r&&(this.rules=e.visitArray(r)),t&&(this.value=e.visit(t))},isRulesetLike:function(){return this.rules||!this.isCharset()},isCharset:function(){return this.name==="@charset"},genCSS:function(e,t){var r=this.value,i=this.rules;t.add(this.name,this.fileInfo(),this.getIndex()),r&&(t.add(" "),r.genCSS(e,t)),i?this.outputRuleset(e,t,i):t.add(";")},eval:function(e){var t,r,i=this.value,s=this.rules;return t=e.mediaPath,r=e.mediaBlocks,e.mediaPath=[],e.mediaBlocks=[],i&&(i=i.eval(e)),s&&(s=[s[0].eval(e)],s[0].root=!0),e.mediaPath=t,e.mediaBlocks=r,new _t(this.name,i,s,this.getIndex(),this.fileInfo(),this.debugInfo,this.isRooted,this.visibilityInfo())},variable:function(e){if(this.rules)return ce.prototype.variable.call(this.rules[0],e)},find:function(){if(this.rules)return ce.prototype.find.apply(this.rules[0],arguments)},rulesets:function(){if(this.rules)return ce.prototype.rulesets.apply(this.rules[0])},outputRuleset:function(e,t,r){var i=r.length,s;if(e.tabLevel=(e.tabLevel|0)+1,e.compress){for(t.add("{"),s=0;s<i;s++)r[s].genCSS(e,t);t.add("}"),e.tabLevel--;return}var n=`
  33. `+Array(e.tabLevel).join(" "),l=n+" ";if(!i)t.add(" {"+n+"}");else{for(t.add(" {"+l),r[0].genCSS(e,t),s=1;s<i;s++)t.add(l),r[s].genCSS(e,t);t.add(n+"}")}e.tabLevel--}});var nt=function(e,t){this.ruleset=e,this.frames=t,this.setParent(this.ruleset,this)};nt.prototype=Object.assign(new C,{type:"DetachedRuleset",evalFirst:!0,accept:function(e){this.ruleset=e.visit(this.ruleset)},eval:function(e){var t=this.frames||de(e.frames);return new nt(this.ruleset,t)},callEval:function(e){return this.ruleset.eval(this.frames?new fe.Eval(e,this.frames.concat(e.frames)):e)}});var ht=function(e,t,r){this.numerator=e?de(e).sort():[],this.denominator=t?de(t).sort():[],r?this.backupUnit=r:e&&e.length&&(this.backupUnit=e[0])};ht.prototype=Object.assign(new C,{type:"Unit",clone:function(){return new ht(de(this.numerator),de(this.denominator),this.backupUnit)},genCSS:function(e,t){var r=e&&e.strictUnits;this.numerator.length===1?t.add(this.numerator[0]):!r&&this.backupUnit?t.add(this.backupUnit):!r&&this.denominator.length&&t.add(this.denominator[0])},toString:function(){var e,t=this.numerator.join("*");for(e=0;e<this.denominator.length;e++)t+="/"+this.denominator[e];return t},compare:function(e){return this.is(e.toString())?0:void 0},is:function(e){return this.toString().toUpperCase()===e.toUpperCase()},isLength:function(){return RegExp("^(px|em|ex|ch|rem|in|cm|mm|pc|pt|ex|vw|vh|vmin|vmax)$","gi").test(this.toCSS())},isEmpty:function(){return this.numerator.length===0&&this.denominator.length===0},isSingular:function(){return this.numerator.length<=1&&this.denominator.length===0},map:function(e){var 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:function(){var e,t={},r,i;r=function(s){return e.hasOwnProperty(s)&&!t[i]&&(t[i]=s),s};for(i in ne)ne.hasOwnProperty(i)&&(e=ne[i],this.map(r));return t},cancel:function(){var e={},t,r;for(r=0;r<this.numerator.length;r++)t=this.numerator[r],e[t]=(e[t]||0)+1;for(r=0;r<this.denominator.length;r++)t=this.denominator[r],e[t]=(e[t]||0)-1;this.numerator=[],this.denominator=[];for(t in e)if(e.hasOwnProperty(t)){var i=e[t];if(i>0)for(r=0;r<i;r++)this.numerator.push(t);else if(i<0)for(r=0;r<-i;r++)this.denominator.push(t)}this.numerator.sort(),this.denominator.sort()}});var W=function(e,t){if(this.value=parseFloat(e),isNaN(this.value))throw new Error("Dimension is not a number.");this.unit=t&&t instanceof ht?t:new ht(t?[t]:void 0),this.setParent(this.unit,this)};W.prototype=Object.assign(new C,{type:"Dimension",accept:function(e){this.unit=e.visit(this.unit)},eval:function(e){return this},toColor:function(){return new L([this.value,this.value,this.value])},genCSS:function(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());var r=this.fround(e,this.value),i=String(r);if(r!==0&&r<1e-6&&r>-1e-6&&(i=r.toFixed(20).replace(/0+$/,"")),e&&e.compress){if(r===0&&this.unit.isLength()){t.add(i);return}r>0&&r<1&&(i=i.substr(1))}t.add(i),this.unit.genCSS(e,t)},operate:function(e,t,r){var i=this._operate(e,t,this.value,r.value),s=this.unit.clone();if(t==="+"||t==="-"){if(s.numerator.length===0&&s.denominator.length===0)s=r.unit.clone(),this.unit.backupUnit&&(s.backupUnit=this.unit.backupUnit);else if(!(r.unit.numerator.length===0&&s.denominator.length===0)){if(r=r.convertTo(this.unit.usedUnits()),e.strictUnits&&r.unit.toString()!==s.toString())throw new Error("Incompatible units. Change the units or use the unit function. "+("Bad units: '"+s.toString()+"' and '"+r.unit.toString()+"'."));i=this._operate(e,t,this.value,r.value)}}else t==="*"?(s.numerator=s.numerator.concat(r.unit.numerator).sort(),s.denominator=s.denominator.concat(r.unit.denominator).sort(),s.cancel()):t==="/"&&(s.numerator=s.numerator.concat(r.unit.denominator).sort(),s.denominator=s.denominator.concat(r.unit.numerator).sort(),s.cancel());return new W(i,s)},compare:function(e){var t,r;if(e instanceof W){if(this.unit.isEmpty()||e.unit.isEmpty())t=this,r=e;else if(t=this.unify(),r=e.unify(),t.unit.compare(r.unit)!==0)return;return C.numericCompare(t.value,r.value)}},unify:function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},convertTo:function(e){var t=this.value,r=this.unit.clone(),i,s,n,l,f={},u;if(typeof e=="string"){for(i in ne)ne[i].hasOwnProperty(e)&&(f={},f[i]=e);e=f}u=function(v,d){return n.hasOwnProperty(v)?(d?t=t/(n[v]/n[l]):t=t*(n[v]/n[l]),l):v};for(s in e)e.hasOwnProperty(s)&&(l=e[s],n=ne[s],r.map(u));return r.cancel(),new W(t,r)}});var ti=te,Le=function(e,t,r){this.op=e.trim(),this.operands=t,this.isSpaced=r};Le.prototype=Object.assign(new C,{type:"Operation",accept:function(e){this.operands=e.visitArray(this.operands)},eval:function(e){var t=this.operands[0].eval(e),r=this.operands[1].eval(e),i;if(e.isMathOn(this.op)){if(i=this.op==="./"?"/":this.op,t instanceof W&&r instanceof L&&(t=t.toColor()),r instanceof W&&t instanceof L&&(r=r.toColor()),!t.operate||!r.operate){if((t instanceof Le||r instanceof Le)&&t.op==="/"&&e.math===ti.PARENS_DIVISION)return new Le(this.op,[t,r],this.isSpaced);throw{type:"Operation",message:"Operation on an invalid type"}}return t.operate(e,i,r)}else return new Le(this.op,[t,r],this.isSpaced)},genCSS:function(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)}});/*! *****************************************************************************
  34. Copyright (c) Microsoft Corporation.
  35. Permission to use, copy, modify, and/or distribute this software for any
  36. purpose with or without fee is hereby granted.
  37. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  38. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  39. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  40. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  41. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  42. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  43. PERFORMANCE OF THIS SOFTWARE.
  44. ***************************************************************************** */function ri(e,t,r){if(r||arguments.length===2)for(var i=0,s=t.length,n;i<s;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||t)}var $e=function(e,t){if(this.value=e,this.noSpacing=t,!e)throw new Error("Expression requires an array parameter")};$e.prototype=Object.assign(new C,{type:"Expression",accept:function(e){this.value=e.visitArray(this.value)},eval:function(e){var t,r=e.isMathOn(),i=this.parens,s=!1;return i&&e.inParenthesis(),this.value.length>1?t=new $e(this.value.map(function(n){return n.eval?n.eval(e):n}),this.noSpacing):this.value.length===1?(this.value[0].parens&&!this.value[0].parensInOp&&!e.inCalc&&(s=!0),t=this.value[0].eval(e)):t=this,i&&e.outOfParenthesis(),this.parens&&this.parensInOp&&!r&&!s&&!(t instanceof W)&&(t=new V(t)),t},genCSS:function(e,t){for(var r=0;r<this.value.length;r++)this.value[r].genCSS(e,t),!this.noSpacing&&r+1<this.value.length&&t.add(" ")},throwAwayComments:function(){this.value=this.value.filter(function(e){return!(e instanceof ct)})}});var pr=function(){function e(t,r,i,s){this.name=t.toLowerCase(),this.index=i,this.context=r,this.currentFileInfo=s,this.func=r.frames[0].functionRegistry.get(this.name)}return e.prototype.isValid=function(){return Boolean(this.func)},e.prototype.call=function(t){var r=this;Array.isArray(t)||(t=[t]);var i=this.func.evalArgs;i!==!1&&(t=t.map(function(n){return n.eval(r.context)}));var s=function(n){return n.type!=="Comment"};return t=t.filter(s).map(function(n){if(n.type==="Expression"){var l=n.value.filter(s);return l.length===1?n.parens&&l[0].op==="/"?n:l[0]:new $e(l)}return n}),i===!1?this.func.apply(this,ri([this.context],t)):this.func.apply(this,t)},e}(),St=function(e,t,r,i){this.name=e,this.args=t,this.calc=e==="calc",this._index=r,this._fileInfo=i};St.prototype=Object.assign(new C,{type:"Call",accept:function(e){this.args&&(this.args=e.visitArray(this.args))},eval:function(e){var t=this,r=e.mathOn;e.mathOn=!this.calc,(this.calc||e.inCalc)&&e.enterCalc();var i=function(){(t.calc||e.inCalc)&&e.exitCalc(),e.mathOn=r},s,n=new pr(this.name,e,this.getIndex(),this.fileInfo());if(n.isValid())try{s=n.call(this.args),i()}catch(f){throw f.hasOwnProperty("line")&&f.hasOwnProperty("column")?f:{type:f.type||"Runtime",message:"Error evaluating function `"+this.name+"`"+(f.message?": "+f.message:""),index:this.getIndex(),filename:this.fileInfo().filename,line:f.lineNumber,column:f.columnNumber}}if(s!=null)return s instanceof C||(!s||s===!0?s=new ye(null):s=new ye(s.toString())),s._index=this._index,s._fileInfo=this._fileInfo,s;var l=this.args.map(function(f){return f.eval(e)});return i(),new St(this.name,l,this.getIndex(),this.fileInfo())},genCSS:function(e,t){t.add(this.name+"(",this.fileInfo(),this.getIndex());for(var r=0;r<this.args.length;r++)this.args[r].genCSS(e,t),r+1<this.args.length&&t.add(", ");t.add(")")}});var Te=function(e,t,r){this.name=e,this._index=t,this._fileInfo=r};Te.prototype=Object.assign(new C,{type:"Variable",eval:function(e){var t,r=this.name;if(r.indexOf("@@")===0&&(r="@"+new Te(r.slice(1),this.getIndex(),this.fileInfo()).eval(e).value),this.evaluating)throw{type:"Name",message:"Recursive variable definition for "+r,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,function(i){var s=i.variable(r);if(s){if(s.important){var n=e.importantScope[e.importantScope.length-1];n.important=s.important}return e.inCalc?new St("_SELF",[s.value]).eval(e):s.value.eval(e)}}),t)return this.evaluating=!1,t;throw{type:"Name",message:"variable "+r+" is undefined",filename:this.fileInfo().filename,index:this.getIndex()}},find:function(e,t){for(var r=0,i=void 0;r<e.length;r++)if(i=t.call(e,e[r]),i)return i;return null}});var Lt=function(e,t,r){this.name=e,this._index=t,this._fileInfo=r};Lt.prototype=Object.assign(new C,{type:"Property",eval:function(e){var t,r=this.name,i=e.pluginManager.less.visitors.ToCSSVisitor.prototype._mergeRules;if(this.evaluating)throw{type:"Name",message:"Recursive property reference for "+r,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,t=this.find(e.frames,function(s){var n,l=s.property(r);if(l){for(var f=0;f<l.length;f++)n=l[f],l[f]=new ge(n.name,n.value,n.important,n.merge,n.index,n.currentFileInfo,n.inline,n.variable);if(i(l),n=l[l.length-1],n.important){var u=e.importantScope[e.importantScope.length-1];u.important=n.important}return n=n.value.eval(e),n}}),t)return this.evaluating=!1,t;throw{type:"Name",message:"Property '"+r+"' is undefined",filename:this.currentFileInfo.filename,index:this.index}},find:function(e,t){for(var r=0,i=void 0;r<e.length;r++)if(i=t.call(e,e[r]),i)return i;return null}});var Dt=function(e,t,r,i){this.key=e,this.op=t,this.value=r,this.cif=i};Dt.prototype=Object.assign(new C,{type:"Attribute",eval:function(e){return new Dt(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:function(e,t){t.add(this.toCSS(e))},toCSS:function(e){var 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+"]"}});var _e=function(e,t,r,i,s){this.escaped=r??!0,this.value=t||"",this.quote=e.charAt(0),this._index=i,this._fileInfo=s,this.variableRegex=/@\{([\w-]+)\}/g,this.propRegex=/\$\{([\w-]+)\}/g,this.allowRoot=r};_e.prototype=Object.assign(new C,{type:"Quoted",genCSS:function(e,t){this.escaped||t.add(this.quote,this.fileInfo(),this.getIndex()),t.add(this.value),this.escaped||t.add(this.quote)},containsVariables:function(){return this.value.match(this.variableRegex)},eval:function(e){var t=this,r=this.value,i=function(l,f){var u=new Te("@"+f,t.getIndex(),t.fileInfo()).eval(e,!0);return u instanceof _e?u.value:u.toCSS()},s=function(l,f){var u=new Lt("$"+f,t.getIndex(),t.fileInfo()).eval(e,!0);return u instanceof _e?u.value:u.toCSS()};function n(l,f,u){var v=l;do l=v.toString(),v=l.replace(f,u);while(l!==v);return v}return r=n(r,this.variableRegex,i),r=n(r,this.propRegex,s),new _e(this.quote+r+this.quote,r,this.escaped,this.getIndex(),this.fileInfo())},compare:function(e){return e.type==="Quoted"&&!this.escaped&&!e.escaped?C.numericCompare(this.value,e.value):e.toCSS&&this.toCSS()===e.toCSS()?0:void 0}});function ii(e){return e.replace(/[\(\)'"\s]/g,function(t){return"\\"+t})}var Ve=function(e,t,r,i){this.value=e,this._index=t,this._fileInfo=r,this.isEvald=i};Ve.prototype=Object.assign(new C,{type:"Url",accept:function(e){this.value=e.visit(this.value)},genCSS:function(e,t){t.add("url("),this.value.genCSS(e,t),t.add(")")},eval:function(e){var t=this.value.eval(e),r;if(!this.isEvald&&(r=this.fileInfo()&&this.fileInfo().rootpath,typeof r=="string"&&typeof t.value=="string"&&e.pathRequiresRewrite(t.value)?(t.quote||(r=ii(r)),t.value=e.rewritePath(t.value,r)):t.value=e.normalizePath(t.value),e.urlArgs&&!t.value.match(/^\s*data:/))){var i=t.value.indexOf("?")===-1?"?":"&",s=i+e.urlArgs;t.value.indexOf("#")!==-1?t.value=t.value.replace("#",s+"#"):t.value+=s}return new Ve(t,this.getIndex(),this.fileInfo(),!0)}});var vt=function(e,t,r,i,s){this._index=r,this._fileInfo=i;var n=new me([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new je(t),this.rules=[new ce(n,e)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(s),this.allowRoot=!0,this.setParent(n,this),this.setParent(this.features,this),this.setParent(this.rules,this)};vt.prototype=Object.assign(new _t,{type:"Media",isRulesetLike:function(){return!0},accept:function(e){this.features&&(this.features=e.visit(this.features)),this.rules&&(this.rules=e.visitArray(this.rules))},genCSS:function(e,t){t.add("@media ",this._fileInfo,this._index),this.features.genCSS(e,t),this.outputRuleset(e,t,this.rules)},eval:function(e){e.mediaBlocks||(e.mediaBlocks=[],e.mediaPath=[]);var t=new vt(null,[],this._index,this._fileInfo,this.visibilityInfo());return 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),this.rules[0].functionRegistry=e.frames[0].functionRegistry.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)},evalTop:function(e){var t=this;if(e.mediaBlocks.length>1){var r=new me([],null,null,this.getIndex(),this.fileInfo()).createEmptySelectors();t=new ce(r,e.mediaBlocks),t.multiMedia=!0,t.copyVisibilityInfo(this.visibilityInfo()),this.setParent(t,this)}return delete e.mediaBlocks,delete e.mediaPath,t},evalNested:function(e){var t,r,i=e.mediaPath.concat([this]);for(t=0;t<i.length;t++)r=i[t].features instanceof je?i[t].features.value:i[t].features,i[t]=Array.isArray(r)?r:[r];return this.features=new je(this.permute(i).map(function(s){for(s=s.map(function(n){return n.toCSS?n:new ye(n)}),t=s.length-1;t>0;t--)s.splice(t,0,new ye("and"));return new $e(s)})),this.setParent(this.features,this),new ce([],[])},permute:function(e){if(e.length===0)return[];if(e.length===1)return e[0];for(var t=[],r=this.permute(e.slice(1)),i=0;i<r.length;i++)for(var s=0;s<e[0].length;s++)t.push([e[0][s]].concat(r[i]));return t},bubbleSelectors:function(e){e&&(this.rules=[new ce(de(e),[this.rules[0]])],this.setParent(this.rules,this))}});var Ct=function(e,t,r,i,s,n){if(this.options=r,this._index=i,this._fileInfo=s,this.path=e,this.features=t,this.allowRoot=!0,this.options.less!==void 0||this.options.inline)this.css=!this.options.less||this.options.inline;else{var l=this.getPath();l&&/[#\.\&\?]css([\?;].*)?$/.test(l)&&(this.css=!0)}this.copyVisibilityInfo(n),this.setParent(this.features,this),this.setParent(this.path,this)};Ct.prototype=Object.assign(new C,{type:"Import",accept:function(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:function(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:function(){return this.path instanceof Ve?this.path.value.value:this.path.value},isVariableImport:function(){var e=this.path;return e instanceof Ve&&(e=e.value),e instanceof _e?e.containsVariables():!0},evalForImport:function(e){var t=this.path;return t instanceof Ve&&(t=t.value),new Ct(t.eval(e),this.features,this.options,this._index,this._fileInfo,this.visibilityInfo())},evalPath:function(e){var t=this.path.eval(e),r=this._fileInfo;if(!(t instanceof Ve)){var i=t.value;r&&i&&e.pathRequiresRewrite(i)?t.value=e.rewritePath(i,r.rootpath):t.value=e.normalizePath(t.value)}return t},eval:function(e){var t=this.doEval(e);return(this.options.reference||this.blocksVisibility())&&(t.length||t.length===0?t.forEach(function(r){r.addVisibilityBlock()}):t.addVisibilityBlock()),t},doEval:function(e){var t,r,i=this.features&&this.features.eval(e);if(this.options.isPlugin){if(this.root&&this.root.eval)try{this.root.eval(e)}catch(l){throw l.message="Plugin error during evaluation",new ae(l,this.root.imports,this.root.filename)}return r=e.frames[0]&&e.frames[0].functionRegistry,r&&this.root&&this.root.functions&&r.addMultiple(this.root.functions),[]}if(this.skip&&(typeof this.skip=="function"&&(this.skip=this.skip()),this.skip))return[];if(this.options.inline){var s=new ye(this.root,0,{filename:this.importedFilename,reference:this.path._fileInfo&&this.path._fileInfo.reference},!0,!0);return this.features?new vt([s],this.features.value):[s]}else if(this.css){var n=new Ct(this.evalPath(e),i,this.options,this._index);if(!n.css&&this.error)throw this.error;return n}else return this.root?(t=new ce(null,de(this.root.rules)),t.evalImports(e),this.features?new vt(t.rules,this.features.value):t.rules):[]}});var dr=function(){};dr.prototype=Object.assign(new C,{evaluateJavaScript:function(e,t){var r,i=this,s={};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(f,u){return i.jsify(new Te("@"+u,i.getIndex(),i.fileInfo()).eval(t))});try{e=new Function("return ("+e+")")}catch(f){throw{message:"JavaScript evaluation error: "+f.message+" from `"+e+"`",filename:this.fileInfo().filename,index:this.getIndex()}}var n=t.frames[0].variables();for(var l in n)n.hasOwnProperty(l)&&(s[l.slice(1)]={value:n[l].value,toJS:function(){return this.value.eval(t).toCSS()}});try{r=e.call(s)}catch(f){throw{message:"JavaScript evaluation error: '"+f.name+": "+f.message.replace(/["]/g,"'")+"'",filename:this.fileInfo().filename,index:this.getIndex()}}return r},jsify:function(e){return Array.isArray(e.value)&&e.value.length>1?"["+e.value.map(function(t){return t.toCSS()}).join(", ")+"]":e.toCSS()}});var Ut=function(e,t,r,i){this.escaped=t,this.expression=e,this._index=r,this._fileInfo=i};Ut.prototype=Object.assign(new dr,{type:"JavaScript",eval:function(e){var t=this.evaluateJavaScript(this.expression,e),r=typeof t;return r==="number"&&!isNaN(t)?new W(t):r==="string"?new _e('"'+t+'"',t,this.escaped,this._index):Array.isArray(t)?new ye(t.join(", ")):new ye(t)}});var Bt=function(e,t){this.key=e,this.value=t};Bt.prototype=Object.assign(new C,{type:"Assignment",accept:function(e){this.value=e.visit(this.value)},eval:function(e){return this.value.eval?new Bt(this.key,this.value.eval(e)):this},genCSS:function(e,t){t.add(this.key+"="),this.value.genCSS?this.value.genCSS(e,t):t.add(this.value)}});var mr=function(e,t,r,i,s){this.op=e.trim(),this.lvalue=t,this.rvalue=r,this._index=i,this.negate=s};mr.prototype=Object.assign(new C,{type:"Condition",accept:function(e){this.lvalue=e.visit(this.lvalue),this.rvalue=e.visit(this.rvalue)},eval:function(e){var t=function(r,i,s){switch(r){case"and":return i&&s;case"or":return i||s;default:switch(C.compare(i,s)){case-1:return r==="<"||r==="=<"||r==="<=";case 0:return r==="="||r===">="||r==="=<"||r==="<=";case 1:return r===">"||r===">=";default:return!1}}}(this.op,this.lvalue.eval(e),this.rvalue.eval(e));return this.negate?!t:t}});var gr=function(e){this.value=e};gr.prototype=Object.assign(new C,{type:"UnicodeDescriptor"});var qt=function(e){this.value=e};qt.prototype=Object.assign(new C,{type:"Negative",genCSS:function(e,t){t.add("-"),this.value.genCSS(e,t)},eval:function(e){return e.isMathOn()?new Le("*",[new W(-1),this.value]).eval(e):new qt(this.value.eval(e))}});var st=function(e,t,r,i,s){switch(this.selector=e,this.option=t,this.object_id=st.next_id++,this.parent_ids=[this.object_id],this._index=r,this._fileInfo=i,this.copyVisibilityInfo(s),this.allowRoot=!0,t){case"all":this.allowBefore=!0,this.allowAfter=!0;break;default:this.allowBefore=!1,this.allowAfter=!1;break}this.setParent(this.selector,this)};st.prototype=Object.assign(new C,{type:"Extend",accept:function(e){this.selector=e.visit(this.selector)},eval:function(e){return new st(this.selector.eval(e),this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},clone:function(e){return new st(this.selector,this.option,this.getIndex(),this.fileInfo(),this.visibilityInfo())},findSelfSelectors:function(e){var t=[],r,i;for(r=0;r<e.length;r++)i=e[r].elements,r>0&&i.length&&i[0].combinator.value===""&&(i[0].combinator.value=" "),t=t.concat(e[r].elements);this.selfSelectors=[new me(t)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())}}),st.next_id=0;var yr=function(e,t,r){this.variable=e,this._index=t,this._fileInfo=r,this.allowRoot=!0};yr.prototype=Object.assign(new C,{type:"VariableCall",eval:function(e){var t,r=new Te(this.variable,this.getIndex(),this.fileInfo()).eval(e),i=new ae({message:"Could not evaluate variable call "+this.variable});if(!r.ruleset){if(r.rules)t=r;else if(Array.isArray(r))t=new ce("",r);else if(Array.isArray(r.value))t=new ce("",r.value);else throw i;r=new nt(t)}if(r.ruleset)return r.callEval(e);throw i}});var br=function(e,t,r,i){this.value=e,this.lookups=t,this._index=r,this._fileInfo=i};br.prototype=Object.assign(new C,{type:"NamespaceValue",eval:function(e){var t,r,i=this.value.eval(e);for(t=0;t<this.lookups.length;t++){if(r=this.lookups[t],Array.isArray(i)&&(i=new ce([new me],i)),r==="")i=i.lastDeclaration();else if(r.charAt(0)==="@"){if(r.charAt(1)==="@"&&(r="@"+new Te(r.substr(1)).eval(e).value),i.variables&&(i=i.variable(r)),!i)throw{type:"Name",message:"variable "+r+" not found",filename:this.fileInfo().filename,index:this.getIndex()}}else{if(r.substring(0,2)==="$@"?r="$"+new Te(r.substr(1)).eval(e).value:r=r.charAt(0)==="$"?r:"$"+r,i.properties&&(i=i.property(r)),!i)throw{type:"Name",message:'property "'+r.substr(1)+'" not found',filename:this.fileInfo().filename,index:this.getIndex()};i=i[i.length-1]}i.value&&(i=i.eval(e).value),i.ruleset&&(i=i.ruleset.eval(e))}return i}});var Ge=function(e,t,r,i,s,n,l){this.name=e||"anonymous mixin",this.selectors=[new me([new se(null,e,!1,this._index,this._fileInfo)])],this.params=t,this.condition=i,this.variadic=s,this.arity=t.length,this.rules=r,this._lookups={};var f=[];this.required=t.reduce(function(u,v){return!v.name||v.name&&!v.value?u+1:(f.push(v.name),u)},0),this.optionalParameters=f,this.frames=n,this.copyVisibilityInfo(l),this.allowRoot=!0};Ge.prototype=Object.assign(new ce,{type:"MixinDefinition",evalFirst:!0,accept:function(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:function(e,t,r,i){var s=new ce(null,null),n,l,f=de(this.params),u,v,d,a,o,c,h=0;if(t.frames&&t.frames[0]&&t.frames[0].functionRegistry&&(s.functionRegistry=t.frames[0].functionRegistry.inherit()),t=new fe.Eval(t,[s].concat(t.frames)),r){for(r=de(r),h=r.length,u=0;u<h;u++)if(l=r[u],a=l&&l.name){for(o=!1,v=0;v<f.length;v++)if(!i[v]&&a===f[v].name){i[v]=l.value.eval(e),s.prependRule(new ge(a,l.value.eval(e))),o=!0;break}if(o){r.splice(u,1),u--;continue}else throw{type:"Runtime",message:"Named argument for "+this.name+" "+r[u].name+" not found"}}}for(c=0,u=0;u<f.length;u++)if(!i[u]){if(l=r&&r[c],a=f[u].name)if(f[u].variadic){for(n=[],v=c;v<h;v++)n.push(r[v].value.eval(e));s.prependRule(new ge(a,new $e(n).eval(e)))}else{if(d=l&&l.value,d)Array.isArray(d)?d=new nt(new ce("",d)):d=d.eval(e);else if(f[u].value)d=f[u].value.eval(t),s.resetCache();else throw{type:"Runtime",message:"wrong number of arguments for "+this.name+" ("+h+" for "+this.arity+")"};s.prependRule(new ge(a,d)),i[u]=d}if(f[u].variadic&&r)for(v=c;v<h;v++)i[v]=r[v].value.eval(e);c++}return s},makeImportant:function(){var e=this.rules?this.rules.map(function(r){return r.makeImportant?r.makeImportant(!0):r}):this.rules,t=new Ge(this.name,this.params,e,this.condition,this.variadic,this.frames);return t},eval:function(e){return new Ge(this.name,this.params,this.rules,this.condition,this.variadic,this.frames||de(e.frames))},evalCall:function(e,t,r){var i=[],s=this.frames?this.frames.concat(e.frames):e.frames,n=this.evalParams(e,new fe.Eval(e,s),t,i),l,f;return n.prependRule(new ge("@arguments",new $e(i).eval(e))),l=de(this.rules),f=new ce(null,l),f.originalRuleset=this,f=f.eval(new fe.Eval(e,[this,n].concat(s))),r&&(f=f.makeImportant()),f},matchCondition:function(e,t){return!(this.condition&&!this.condition.eval(new fe.Eval(t,[this.evalParams(t,new fe.Eval(t,this.frames?this.frames.concat(t.frames):t.frames),e,[])].concat(this.frames||[]).concat(t.frames))))},matchArgs:function(e,t){var r=e&&e.length||0,i,s=this.optionalParameters,n=e?e.reduce(function(f,u){return s.indexOf(u.name)<0?f+1:f},0):0;if(this.variadic){if(n<this.required-1)return!1}else if(n<this.required||r>this.params.length)return!1;i=Math.min(n,this.arity);for(var l=0;l<i;l++)if(!this.params[l].name&&!this.params[l].variadic&&e[l].value.eval(t).toCSS()!=this.params[l].value.eval(t).toCSS())return!1;return!0}});var wr=function(e,t,r,i,s){this.selector=new me(e),this.arguments=t||[],this._index=r,this._fileInfo=i,this.important=s,this.allowRoot=!0,this.setParent(this.selector,this)};wr.prototype=Object.assign(new C,{type:"MixinCall",accept:function(e){this.selector&&(this.selector=e.visit(this.selector)),this.arguments.length&&(this.arguments=e.visitArray(this.arguments))},eval:function(e){var t,r,i,s=[],n,l,f=[],u=!1,v,d,a,o,c,h=[],p,g=[],m,y=-1,b=0,_=1,I=2,E,O,j;this.selector=this.selector.eval(e);function T(Z,X){var oe,Se,Re;for(oe=0;oe<2;oe++){for(g[oe]=!0,it.value(oe),Se=0;Se<X.length&&g[oe];Se++)Re=X[Se],Re.matchCondition&&(g[oe]=g[oe]&&Re.matchCondition(null,e));Z.matchCondition&&(g[oe]=g[oe]&&Z.matchCondition(s,e))}return g[0]||g[1]?g[0]!=g[1]?g[1]?_:I:b:y}for(v=0;v<this.arguments.length;v++)if(n=this.arguments[v],l=n.value.eval(e),n.expand&&Array.isArray(l.value))for(l=l.value,d=0;d<l.length;d++)s.push({value:l[d]});else s.push({name:n.name,value:l});for(j=function(Z){return Z.matchArgs(null,e)},v=0;v<e.frames.length;v++)if((t=e.frames[v].find(this.selector,null,j)).length>0){for(c=!0,d=0;d<t.length;d++){for(r=t[d].rule,i=t[d].path,o=!1,a=0;a<e.frames.length;a++)if(!(r instanceof Ge)&&r===(e.frames[a].originalRuleset||e.frames[a])){o=!0;break}o||r.matchArgs(s,e)&&(p={mixin:r,group:T(r,i)},p.group!==y&&h.push(p),u=!0)}for(it.reset(),E=[0,0,0],d=0;d<h.length;d++)E[h[d].group]++;if(E[b]>0)m=I;else if(m=_,E[_]+E[I]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `"+this.format(s)+"`",index:this.getIndex(),filename:this.fileInfo().filename};for(d=0;d<h.length;d++)if(p=h[d].group,p===b||p===m)try{r=h[d].mixin,r instanceof Ge||(O=r.originalRuleset||r,r=new Ge("",[],r.rules,null,!1,null,O.visibilityInfo()),r.originalRuleset=O);var le=r.evalCall(e,s,this.important).rules;this._setVisibilityToReplacement(le),Array.prototype.push.apply(f,le)}catch(Z){throw{message:Z.message,index:this.getIndex(),filename:this.fileInfo().filename,stack:Z.stack}}if(u)return f}throw c?{type:"Runtime",message:"No matching definition was found for `"+this.format(s)+"`",index:this.getIndex(),filename:this.fileInfo().filename}:{type:"Name",message:this.selector.toCSS().trim()+" is undefined",index:this.getIndex(),filename:this.fileInfo().filename}},_setVisibilityToReplacement:function(e){var t,r;if(this.blocksVisibility())for(t=0;t<e.length;t++)r=e[t],r.addVisibilityBlock()},format:function(e){return this.selector.toCSS().trim()+"("+(e?e.map(function(t){var r="";return t.name&&(r+=t.name+":"),t.value.toCSS?r+=t.value.toCSS():r+="???",r}).join(", "):"")+")"}});var w={Node:C,Color:L,AtRule:_t,DetachedRuleset:nt,Operation:Le,Dimension:W,Unit:ht,Keyword:ve,Variable:Te,Property:Lt,Ruleset:ce,Element:se,Attribute:Dt,Combinator:he,Selector:me,Quoted:_e,Expression:$e,Declaration:ge,Call:St,URL:Ve,Import:Ct,Comment:ct,Anonymous:ye,Value:je,JavaScript:Ut,Assignment:Bt,Condition:mr,Paren:V,Media:vt,UnicodeDescriptor:gr,Negative:qt,Extend:st,VariableCall:yr,NamespaceValue:br,mixin:{Call:wr,Definition:Ge}},_r=function(){function e(){}return e.prototype.getPath=function(t){var r=t.lastIndexOf("?");return r>0&&(t=t.slice(0,r)),r=t.lastIndexOf("/"),r<0&&(r=t.lastIndexOf("\\")),r<0?"":t.slice(0,r+1)},e.prototype.tryAppendExtension=function(t,r){return/(\.[a-z]*$)|([\?;].*)$/.test(t)?t:t+r},e.prototype.tryAppendLessExtension=function(t){return this.tryAppendExtension(t,".less")},e.prototype.supportsSync=function(){return!1},e.prototype.alwaysMakePathsAbsolute=function(){return!1},e.prototype.isPathAbsolute=function(t){return/^(?:[a-z-]+:|\/|\\|#)/i.test(t)},e.prototype.join=function(t,r){return t?t+r:r},e.prototype.pathDiff=function(t,r){var i=this.extractUrlParts(t),s=this.extractUrlParts(r),n,l,f,u,v="";if(i.hostPart!==s.hostPart)return"";for(l=Math.max(s.directories.length,i.directories.length),n=0;n<l&&s.directories[n]===i.directories[n];n++);for(u=s.directories.slice(n),f=i.directories.slice(n),n=0;n<u.length-1;n++)v+="../";for(n=0;n<f.length-1;n++)v+=f[n]+"/";return v},e.prototype.extractUrlParts=function(t,r){var i=/^((?:[a-z-]+:)?\/{2}(?:[^\/\?#]*\/)|([\/\\]))?((?:[^\/\\\?#]*[\/\\])*)([^\/\\\?#]*)([#\?].*)?$/i,s=t.match(i),n={},l=[],f=[],u,v;if(!s)throw new Error("Could not parse sheet href - '"+t+"'");if(r&&(!s[1]||s[2])){if(v=r.match(i),!v)throw new Error("Could not parse page url - '"+r+"'");s[1]=s[1]||v[1]||"",s[2]||(s[3]=v[3]+s[3])}if(s[3])for(l=s[3].replace(/\\/g,"/").split("/"),u=0;u<l.length;u++)l[u]===".."?f.pop():l[u]!=="."&&f.push(l[u]);return n.hostPart=s[1],n.directories=f,n.rawPath=(s[1]||"")+l.join("/"),n.path=(s[1]||"")+f.join("/"),n.filename=s[4],n.fileUrl=n.path+(s[4]||""),n.url=n.fileUrl+(s[5]||""),n},e}(),Sr=function(){function e(){this.require=function(){return null}}return e.prototype.evalPlugin=function(t,r,i,s,n){var l,f,u,v,d,a,o;d=r.pluginManager,n&&(typeof n=="string"?a=n:a=n.filename);var c=new this.less.FileManager().extractUrlParts(a).filename;if(a&&(u=d.get(a),u)){if(o=this.trySetOptions(u,a,c,s),o)return o;try{u.use&&u.use.call(this.context,u)}catch(p){return p.message=p.message||"Error during @plugin call",new ae(p,i,a)}return u}v={exports:{},pluginManager:d,fileInfo:n},f=be.create();var h=function(p){u=p};try{l=new Function("module","require","registerPlugin","functions","tree","less","fileInfo",t),l(v,this.require(a),h,f,this.less.tree,this.less,n)}catch(p){return new ae(p,i,a)}if(u||(u=v.exports),u=this.validatePlugin(u,a,c),u instanceof ae)return u;if(u){if(u.imports=i,u.filename=a,(!u.minVersion||this.compareVersion("3.0.0",u.minVersion)<0)&&(o=this.trySetOptions(u,a,c,s),o)||(d.addPlugin(u,n.filename,f),u.functions=f.getLocalFunctions(),o=this.trySetOptions(u,a,c,s),o))return o;try{u.use&&u.use.call(this.context,u)}catch(p){return p.message=p.message||"Error during @plugin call",new ae(p,i,a)}}else return new ae({message:"Not a valid plugin"},i,a);return u},e.prototype.trySetOptions=function(t,r,i,s){if(s&&!t.setOptions)return new ae({message:"Options have been provided but the plugin "+i+" does not support any options."});try{t.setOptions&&t.setOptions(s)}catch(n){return new ae(n)}},e.prototype.validatePlugin=function(t,r,i){return t?(typeof t=="function"&&(t=new t),t.minVersion&&this.compareVersion(t.minVersion,this.less.version)<0?new ae({message:"Plugin "+i+" requires version "+this.versionToString(t.minVersion)}):t):null},e.prototype.compareVersion=function(t,r){typeof t=="string"&&(t=t.match(/^(\d+)\.?(\d+)?\.?(\d+)?/),t.shift());for(var i=0;i<t.length;i++)if(t[i]!==r[i])return parseInt(t[i])>parseInt(r[i])?-1:1;return 0},e.prototype.versionToString=function(t){for(var r="",i=0;i<t.length;i++)r+=(r?".":"")+t[i];return r},e.prototype.printUsage=function(t){for(var r=0;r<t.length;r++){var i=t[r];i.printUsage&&i.printUsage()}},e}(),ni={visitDeeper:!0},Cr=!1;function xt(e){return e}function xr(e,t){var r,i;for(r in e)switch(i=e[r],typeof i){case"function":i.prototype&&i.prototype.type&&(i.prototype.typeIndex=t++);break;case"object":t=xr(i,t);break}return t}var Ke=function(){function e(t){this._implementation=t,this._visitInCache={},this._visitOutCache={},Cr||(xr(w,1),Cr=!0)}return e.prototype.visit=function(t){if(!t)return t;var r=t.typeIndex;if(!r)return t.value&&t.value.typeIndex&&this.visit(t.value),t;var i=this._implementation,s=this._visitInCache[r],n=this._visitOutCache[r],l=ni,f;if(l.visitDeeper=!0,s||(f="visit"+t.type,s=i[f]||xt,n=i[f+"Out"]||xt,this._visitInCache[r]=s,this._visitOutCache[r]=n),s!==xt){var u=s.call(i,t,l);t&&i.isReplacing&&(t=u)}if(l.visitDeeper&&t)if(t.length)for(var v=0,d=t.length;v<d;v++)t[v].accept&&t[v].accept(this);else t.accept&&t.accept(this);return n!=xt&&n.call(i,t),t},e.prototype.visitArray=function(t,r){if(!t)return t;var i=t.length,s;if(r||!this._implementation.isReplacing){for(s=0;s<i;s++)this.visit(t[s]);return t}var n=[];for(s=0;s<i;s++){var l=this.visit(t[s]);l!==void 0&&(l.splice?l.length&&this.flatten(l,n):n.push(l))}return n},e.prototype.flatten=function(t,r){r||(r=[]);var i,s,n,l,f,u;for(s=0,i=t.length;s<i;s++)if(n=t[s],n!==void 0){if(!n.splice){r.push(n);continue}for(f=0,l=n.length;f<l;f++)u=n[f],u!==void 0&&(u.splice?u.length&&this.flatten(u,r):r.push(u))}return r},e}(),si=function(){function e(t){this.imports=[],this.variableImports=[],this._onSequencerEmpty=t,this._currentDepth=0}return e.prototype.addImport=function(t){var r=this,i={callback:t,args:null,isReady:!1};return this.imports.push(i),function(){i.args=Array.prototype.slice.call(arguments,0),i.isReady=!0,r.tryRun()}},e.prototype.addVariableImport=function(t){this.variableImports.push(t)},e.prototype.tryRun=function(){this._currentDepth++;try{for(;;){for(;this.imports.length>0;){var 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;var r=this.variableImports[0];this.variableImports=this.variableImports.slice(1),r()}}finally{this._currentDepth--}this._currentDepth===0&&this._onSequencerEmpty&&this._onSequencerEmpty()},e}(),kr=function(e,t){this._visitor=new Ke(this),this._importer=e,this._finish=t,this.context=new fe.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new si(this._onSequencerEmpty.bind(this))};kr.prototype={isReplacing:!1,run:function(e){try{this._visitor.visit(e)}catch(t){this.error=t}this.isFinished=!0,this._sequencer.tryRun()},_onSequencerEmpty:function(){this.isFinished&&this._finish(this.error)},visitImport:function(e,t){var r=e.options.inline;if(!e.css||r){var i=new fe.Eval(this.context,de(this.context.frames)),s=i.frames[0];this.importCount++,e.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,e,i,s)):this.processImportNode(e,i,s)}t.visitDeeper=!1},processImportNode:function(e,t,r){var i,s=e.options.inline;try{i=e.evalForImport(t)}catch(v){v.filename||(v.index=e.getIndex(),v.filename=e.fileInfo().filename),e.css=!0,e.error=v}if(i&&(!i.css||s)){i.options.multiple&&(t.importMultiple=!0);for(var n=i.css===void 0,l=0;l<r.rules.length;l++)if(r.rules[l]===e){r.rules[l]=i;break}var f=this.onImported.bind(this,i,t),u=this._sequencer.addImport(f);this._importer.push(i.getPath(),n,i.fileInfo(),i.options,u)}else this.importCount--,this.isFinished&&this._sequencer.tryRun()},onImported:function(e,t,r,i,s,n){r&&(r.filename||(r.index=e.getIndex(),r.filename=e.fileInfo().filename),this.error=r);var l=this,f=e.options.inline,u=e.options.isPlugin,v=e.options.optional,d=s||n in l.recursionDetector;if(t.importMultiple||(d?e.skip=!0:e.skip=function(){return n in l.onceFileDetectionMap?!0:(l.onceFileDetectionMap[n]=!0,!1)}),!n&&v&&(e.skip=!0),i&&(e.root=i,e.importedFilename=n,!f&&!u&&(t.importMultiple||!d))){l.recursionDetector[n]=!0;var a=this.context;this.context=t;try{this._visitor.visit(i)}catch(o){this.error=o}this.context=a}l.importCount--,l.isFinished&&l._sequencer.tryRun()},visitDeclaration:function(e,t){e.value.type==="DetachedRuleset"?this.context.frames.unshift(e):t.visitDeeper=!1},visitDeclarationOut:function(e){e.value.type==="DetachedRuleset"&&this.context.frames.shift()},visitAtRule:function(e,t){this.context.frames.unshift(e)},visitAtRuleOut:function(e){this.context.frames.shift()},visitMixinDefinition:function(e,t){this.context.frames.unshift(e)},visitMixinDefinitionOut:function(e){this.context.frames.shift()},visitRuleset:function(e,t){this.context.frames.unshift(e)},visitRulesetOut:function(e){this.context.frames.shift()},visitMedia:function(e,t){this.context.frames.unshift(e.rules[0])},visitMediaOut:function(e){this.context.frames.shift()}};var ai=function(){function e(t){this.visible=t}return e.prototype.run=function(t){this.visit(t)},e.prototype.visitArray=function(t){if(!t)return t;var r=t.length,i;for(i=0;i<r;i++)this.visit(t[i]);return t},e.prototype.visit=function(t){return t&&(t.constructor===Array?this.visitArray(t):(!t.blocksVisibility||t.blocksVisibility()||(this.visible?t.ensureVisibility():t.ensureInvisibility(),t.accept(this)),t))},e}(),oi=function(){function e(){this._visitor=new Ke(this),this.contexts=[],this.allExtendsStack=[[]]}return e.prototype.run=function(t){return t=this._visitor.visit(t),t.allExtends=this.allExtendsStack[0],t},e.prototype.visitDeclaration=function(t,r){r.visitDeeper=!1},e.prototype.visitMixinDefinition=function(t,r){r.visitDeeper=!1},e.prototype.visitRuleset=function(t,r){if(!t.root){var i,s,n,l=[],f,u=t.rules,v=u?u.length:0;for(i=0;i<v;i++)t.rules[i]instanceof w.Extend&&(l.push(u[i]),t.extendOnEveryPath=!0);var d=t.paths;for(i=0;i<d.length;i++){var a=d[i],o=a[a.length-1],c=o.extendList;for(f=c?de(c).concat(l):l,f&&(f=f.map(function(h){return h.clone()})),s=0;s<f.length;s++)this.foundExtends=!0,n=f[s],n.findSelfSelectors(a),n.ruleset=t,s===0&&(n.firstExtendOnThisSelectorPath=!0),this.allExtendsStack[this.allExtendsStack.length-1].push(n)}this.contexts.push(t.selectors)}},e.prototype.visitRulesetOut=function(t){t.root||(this.contexts.length=this.contexts.length-1)},e.prototype.visitMedia=function(t,r){t.allExtends=[],this.allExtendsStack.push(t.allExtends)},e.prototype.visitMediaOut=function(t){this.allExtendsStack.length=this.allExtendsStack.length-1},e.prototype.visitAtRule=function(t,r){t.allExtends=[],this.allExtendsStack.push(t.allExtends)},e.prototype.visitAtRuleOut=function(t){this.allExtendsStack.length=this.allExtendsStack.length-1},e}(),li=function(){function e(){this._visitor=new Ke(this)}return e.prototype.run=function(t){var r=new oi;if(this.extendIndices={},r.run(t),!r.foundExtends)return t;t.allExtends=t.allExtends.concat(this.doExtendChaining(t.allExtends,t.allExtends)),this.allExtendsStack=[t.allExtends];var i=this._visitor.visit(t);return this.checkExtendsForNonMatched(t.allExtends),i},e.prototype.checkExtendsForNonMatched=function(t){var r=this.extendIndices;t.filter(function(i){return!i.hasFoundMatches&&i.parent_ids.length==1}).forEach(function(i){var s="_unknown_";try{s=i.selector.toCSS({})}catch{}r[i.index+" "+s]||(r[i.index+" "+s]=!0,q.warn("extend '"+s+"' has no matches"))})},e.prototype.doExtendChaining=function(t,r,i){var s,n,l,f=[],u,v=this,d,a,o,c;for(i=i||0,s=0;s<t.length;s++)for(n=0;n<r.length;n++)a=t[s],o=r[n],!(a.parent_ids.indexOf(o.object_id)>=0)&&(d=[o.selfSelectors[0]],l=v.findMatch(a,d),l.length&&(a.hasFoundMatches=!0,a.selfSelectors.forEach(function(g){var m=o.visibilityInfo();u=v.extendSelector(l,d,g,a.isVisible()),c=new w.Extend(o.selector,o.option,0,o.fileInfo(),m),c.selfSelectors=u,u[u.length-1].extendList=[c],f.push(c),c.ruleset=o.ruleset,c.parent_ids=c.parent_ids.concat(o.parent_ids,a.parent_ids),o.firstExtendOnThisSelectorPath&&(c.firstExtendOnThisSelectorPath=!0,o.ruleset.paths.push(u))})));if(f.length){if(this.extendChainCount++,i>100){var h="{unable to calculate}",p="{unable to calculate}";try{h=f[0].selfSelectors[0].toCSS(),p=f[0].selector.toCSS()}catch{}throw{message:"extend circular reference detected. One of the circular extends is currently:"+h+":extend("+p+")"}}return f.concat(v.doExtendChaining(f,r,i+1))}else return f},e.prototype.visitDeclaration=function(t,r){r.visitDeeper=!1},e.prototype.visitMixinDefinition=function(t,r){r.visitDeeper=!1},e.prototype.visitSelector=function(t,r){r.visitDeeper=!1},e.prototype.visitRuleset=function(t,r){if(!t.root){var i,s,n,l=this.allExtendsStack[this.allExtendsStack.length-1],f=[],u=this,v;for(n=0;n<l.length;n++)for(s=0;s<t.paths.length;s++)if(v=t.paths[s],!t.extendOnEveryPath){var d=v[v.length-1].extendList;d&&d.length||(i=this.findMatch(l[n],v),i.length&&(l[n].hasFoundMatches=!0,l[n].selfSelectors.forEach(function(a){var o;o=u.extendSelector(i,v,a,l[n].isVisible()),f.push(o)})))}t.paths=t.paths.concat(f)}},e.prototype.findMatch=function(t,r){var i,s,n,l,f,u,v=this,d=t.selector.elements,a=[],o,c=[];for(i=0;i<r.length;i++)for(s=r[i],n=0;n<s.elements.length;n++)for(l=s.elements[n],(t.allowBefore||i===0&&n===0)&&a.push({pathIndex:i,index:n,matched:0,initialCombinator:l.combinator}),u=0;u<a.length;u++)o=a[u],f=l.combinator.value,f===""&&n===0&&(f=" "),!v.isElementValuesEqual(d[o.matched].value,l.value)||o.matched>0&&d[o.matched].combinator.value!==f?o=null:o.matched++,o&&(o.finished=o.matched===d.length,o.finished&&!t.allowAfter&&(n+1<s.elements.length||i+1<r.length)&&(o=null)),o?o.finished&&(o.length=d.length,o.endPathIndex=i,o.endPathElementIndex=n+1,a.length=0,c.push(o)):(a.splice(u,1),u--);return c},e.prototype.isElementValuesEqual=function(t,r){if(typeof t=="string"||typeof r=="string")return t===r;if(t instanceof w.Attribute)return t.op!==r.op||t.key!==r.key?!1:!t.value||!r.value?!(t.value||r.value):(t=t.value.value||t.value,r=r.value.value||r.value,t===r);if(t=t.value,r=r.value,t instanceof w.Selector){if(!(r instanceof w.Selector)||t.elements.length!==r.elements.length)return!1;for(var i=0;i<t.elements.length;i++)if(t.elements[i].combinator.value!==r.elements[i].combinator.value&&(i!==0||(t.elements[i].combinator.value||" ")!==(r.elements[i].combinator.value||" "))||!this.isElementValuesEqual(t.elements[i].value,r.elements[i].value))return!1;return!0}return!1},e.prototype.extendSelector=function(t,r,i,s){var n=0,l=0,f=[],u,v,d,a,o;for(u=0;u<t.length;u++)a=t[u],v=r[a.pathIndex],d=new w.Element(a.initialCombinator,i.elements[0].value,i.elements[0].isVariable,i.elements[0].getIndex(),i.elements[0].fileInfo()),a.pathIndex>n&&l>0&&(f[f.length-1].elements=f[f.length-1].elements.concat(r[n].elements.slice(l)),l=0,n++),o=v.elements.slice(l,a.index).concat([d]).concat(i.elements.slice(1)),n===a.pathIndex&&u>0?f[f.length-1].elements=f[f.length-1].elements.concat(o):(f=f.concat(r.slice(n,a.pathIndex)),f.push(new w.Selector(o))),n=a.endPathIndex,l=a.endPathElementIndex,l>=r[n].elements.length&&(l=0,n++);return n<r.length&&l>0&&(f[f.length-1].elements=f[f.length-1].elements.concat(r[n].elements.slice(l)),n++),f=f.concat(r.slice(n,r.length)),f=f.map(function(c){var h=c.createDerived(c.elements);return s?h.ensureVisibility():h.ensureInvisibility(),h}),f},e.prototype.visitMedia=function(t,r){var i=t.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);i=i.concat(this.doExtendChaining(i,t.allExtends)),this.allExtendsStack.push(i)},e.prototype.visitMediaOut=function(t){var r=this.allExtendsStack.length-1;this.allExtendsStack.length=r},e.prototype.visitAtRule=function(t,r){var i=t.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);i=i.concat(this.doExtendChaining(i,t.allExtends)),this.allExtendsStack.push(i)},e.prototype.visitAtRuleOut=function(t){var r=this.allExtendsStack.length-1;this.allExtendsStack.length=r},e}(),ui=function(){function e(){this.contexts=[[]],this._visitor=new Ke(this)}return e.prototype.run=function(t){return this._visitor.visit(t)},e.prototype.visitDeclaration=function(t,r){r.visitDeeper=!1},e.prototype.visitMixinDefinition=function(t,r){r.visitDeeper=!1},e.prototype.visitRuleset=function(t,r){var i=this.contexts[this.contexts.length-1],s=[],n;this.contexts.push(s),t.root||(n=t.selectors,n&&(n=n.filter(function(l){return l.getIsOutput()}),t.selectors=n.length?n:n=null,n&&t.joinSelectors(s,i,n)),n||(t.rules=null),t.paths=s)},e.prototype.visitRulesetOut=function(t){this.contexts.length=this.contexts.length-1},e.prototype.visitMedia=function(t,r){var i=this.contexts[this.contexts.length-1];t.rules[0].root=i.length===0||i[0].multiMedia},e.prototype.visitAtRule=function(t,r){var i=this.contexts[this.contexts.length-1];t.rules&&t.rules.length&&(t.rules[0].root=t.isRooted||i.length===0||null)},e}(),fi=function(){function e(t){this._visitor=new Ke(this),this._context=t}return e.prototype.containsSilentNonBlockedChild=function(t){var r;if(!t)return!1;for(var i=0;i<t.length;i++)if(r=t[i],r.isSilent&&r.isSilent(this._context)&&!r.blocksVisibility())return!0;return!1},e.prototype.keepOnlyVisibleChilds=function(t){t&&t.rules&&(t.rules=t.rules.filter(function(r){return r.isVisible()}))},e.prototype.isEmpty=function(t){return t&&t.rules?t.rules.length===0:!0},e.prototype.hasVisibleSelector=function(t){return t&&t.paths?t.paths.length>0:!1},e.prototype.resolveVisibility=function(t,r){if(!t.blocksVisibility())return this.isEmpty(t)&&!this.containsSilentNonBlockedChild(r)?void 0:t;var i=t.rules[0];if(this.keepOnlyVisibleChilds(i),!this.isEmpty(i))return t.ensureVisibility(),t.removeVisibilityBlock(),t},e.prototype.isVisibleRuleset=function(t){return t.firstRoot?!0:!(this.isEmpty(t)||!t.root&&!this.hasVisibleSelector(t))},e}(),Ar=function(e){this._visitor=new Ke(this),this._context=e,this.utils=new fi(e)};Ar.prototype={isReplacing:!0,run:function(e){return this._visitor.visit(e)},visitDeclaration:function(e,t){if(!(e.blocksVisibility()||e.variable))return e},visitMixinDefinition:function(e,t){e.frames=[]},visitExtend:function(e,t){},visitComment:function(e,t){if(!(e.blocksVisibility()||e.isSilent(this._context)))return e},visitMedia:function(e,t){var r=e.rules[0].rules;return e.accept(this._visitor),t.visitDeeper=!1,this.utils.resolveVisibility(e,r)},visitImport:function(e,t){if(!e.blocksVisibility())return e},visitAtRule:function(e,t){return e.rules&&e.rules.length?this.visitAtRuleWithBody(e,t):this.visitAtRuleWithoutBody(e,t)},visitAnonymous:function(e,t){if(!e.blocksVisibility())return e.accept(this._visitor),e},visitAtRuleWithBody:function(e,t){function r(n){var l=n.rules;return l.length===1&&(!l[0].paths||l[0].paths.length===0)}function i(n){var l=n.rules;return r(n)?l[0].rules:l}var s=i(e);return e.accept(this._visitor),t.visitDeeper=!1,this.utils.isEmpty(e)||this._mergeRules(e.rules[0].rules),this.utils.resolveVisibility(e,s)},visitAtRuleWithoutBody:function(e,t){if(!e.blocksVisibility()){if(e.name==="@charset"){if(this.charset){if(e.debugInfo){var r=new w.Comment("/* "+e.toCSS(this._context).replace(/\n/g,"")+` */
  45. `);return r.debugInfo=e.debugInfo,this._visitor.visit(r)}return}this.charset=!0}return e}},checkValidNodes:function(e,t){if(e)for(var r=0;r<e.length;r++){var i=e[r];if(t&&i instanceof w.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 w.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(e,t){var r,i=[];if(this.checkValidNodes(e.rules,e.firstRoot),e.root)e.accept(this._visitor),t.visitDeeper=!1;else{this._compileRulesetPaths(e);for(var s=e.rules,n=s?s.length:0,l=0;l<n;){if(r=s[l],r&&r.rules){i.push(this._visitor.visit(r)),s.splice(l,1),n--;continue}l++}n>0?e.accept(this._visitor):e.rules=null,t.visitDeeper=!1}return e.rules&&(this._mergeRules(e.rules),this._removeDuplicateRules(e.rules)),this.utils.isVisibleRuleset(e)&&(e.ensureVisibility(),i.splice(0,0,e)),i.length===1?i[0]:i},_compileRulesetPaths:function(e){e.paths&&(e.paths=e.paths.filter(function(t){var r;for(t[0].elements[0].combinator.value===" "&&(t[0].elements[0].combinator=new w.Combinator("")),r=0;r<t.length;r++)if(t[r].isVisible()&&t[r].getIsOutput())return!0;return!1}))},_removeDuplicateRules:function(e){if(e){var t={},r,i,s;for(s=e.length-1;s>=0;s--)if(i=e[s],i instanceof w.Declaration)if(!t[i.name])t[i.name]=i;else{r=t[i.name],r instanceof w.Declaration&&(r=t[i.name]=[t[i.name].toCSS(this._context)]);var n=i.toCSS(this._context);r.indexOf(n)!==-1?e.splice(s,1):r.push(n)}}},_mergeRules:function(e){if(e){for(var t={},r=[],i=0;i<e.length;i++){var s=e[i];if(s.merge){var n=s.name;t[n]?e.splice(i--,1):r.push(t[n]=[]),t[n].push(s)}}r.forEach(function(l){if(l.length>0){var f=l[0],u=[],v=[new w.Expression(u)];l.forEach(function(d){d.merge==="+"&&u.length>0&&v.push(new w.Expression(u=[])),u.push(d.value),f.important=f.important||d.important}),f.value=new w.Value(v)}})}}};var at={Visitor:Ke,ImportVisitor:kr,MarkVisibleSelectorsVisitor:ai,ExtendVisitor:li,JoinSelectorVisitor:ui,ToCSSVisitor:Ar};function ci(e,t){var r=e.length,i=0,s=0,n,l,f,u,v=[],d=0,a,o,c,h,p;function g(m){var y=a-d;y<512&&!m||!y||(v.push(e.slice(d,a+1)),d=a+1)}for(a=0;a<r;a++)if(c=e.charCodeAt(a),!(c>=97&&c<=122||c<34))switch(c){case 40:s++,l=a;continue;case 41:if(--s<0)return t("missing opening `(`",a);continue;case 59:s||g();continue;case 123:i++,n=a;continue;case 125:if(--i<0)return t("missing opening `{`",a);!i&&!s&&g();continue;case 92:if(a<r-1){a++;continue}return t("unescaped `\\`",a);case 34:case 39:case 96:for(p=0,o=a,a=a+1;a<r;a++)if(h=e.charCodeAt(a),!(h>96)){if(h==c){p=1;break}if(h==92){if(a==r-1)return t("unescaped `\\`",a);a++}}if(p)continue;return t("unmatched `"+String.fromCharCode(c)+"`",o);case 47:if(s||a==r-1)continue;if(h=e.charCodeAt(a+1),h==47)for(a=a+2;a<r&&(h=e.charCodeAt(a),!(h<=13&&(h==10||h==13)));a++);else if(h==42){for(f=o=a,a=a+2;a<r-1&&(h=e.charCodeAt(a),h==125&&(u=a),!(h==42&&e.charCodeAt(a+1)==47));a++);if(a==r-1)return t("missing closing `*/`",o);a++}continue;case 42:if(a<r-1&&e.charCodeAt(a+1)==47)return t("unmatched `/*`",a);continue}return i!==0?f>n&&u>f?t("missing closing `}` or `*/`",n):t("missing closing `}`",n):s!==0?t("missing closing `)`",l):(g(!0),v)}var hi=function(){var e,t,r=[],i,s,n,l,f,u={},v=32,d=9,a=10,o=13,c=43,h=44,p=47,g=57;function m(y){for(var b=u.i,_=t,I=u.i-f,E=u.i+l.length-I,O=u.i+=y,j=e,T,le,Z;u.i<E;u.i++){if(T=j.charCodeAt(u.i),u.autoCommentAbsorb&&T===p){if(le=j.charAt(u.i+1),le==="/"){Z={index:u.i,isLineComment:!0};var X=j.indexOf(`
  46. `,u.i+2);X<0&&(X=E),u.i=X,Z.text=j.substr(Z.index,u.i-Z.index),u.commentStore.push(Z);continue}else if(le==="*"){var oe=j.indexOf("*/",u.i+2);if(oe>=0){Z={index:u.i,text:j.substr(u.i,oe+2-u.i),isLineComment:!1},u.i+=Z.text.length-1,u.commentStore.push(Z);continue}}break}if(T!==v&&T!==a&&T!==d&&T!==o)break}if(l=l.slice(y+u.i-O+I),f=u.i,!l.length){if(t<n.length-1)return l=n[++t],m(0),!0;u.finished=!0}return b!==u.i||_!==t}return u.save=function(){f=u.i,r.push({current:l,i:u.i,j:t})},u.restore=function(y){(u.i>i||u.i===i&&y&&!s)&&(i=u.i,s=y);var b=r.pop();l=b.current,f=u.i=b.i,t=b.j},u.forget=function(){r.pop()},u.isWhitespace=function(y){var b=u.i+(y||0),_=e.charCodeAt(b);return _===v||_===o||_===d||_===a},u.$re=function(y){u.i>f&&(l=l.slice(u.i-f),f=u.i);var b=y.exec(l);return b?(m(b[0].length),typeof b=="string"?b:b.length===1?b[0]:b):null},u.$char=function(y){return e.charAt(u.i)!==y?null:(m(1),y)},u.$str=function(y){for(var b=y.length,_=0;_<b;_++)if(e.charAt(u.i+_)!==y.charAt(_))return null;return m(b),y},u.$quoted=function(y){var b=y||u.i,_=e.charAt(b);if(!(_!=="'"&&_!=='"')){for(var I=e.length,E=b,O=1;O+E<I;O++){var j=e.charAt(O+E);switch(j){case"\\":O++;continue;case"\r":case`
  47. `:break;case _:var T=e.substr(E,O+1);return!y&&y!==0?(m(O+1),T):[_,T]}}return null}},u.$parseUntil=function(y){var b="",_=null,I=!1,E=0,O=[],j=[],T=e.length,le=u.i,Z=u.i,X=u.i,oe=!0,Se;typeof y=="string"?Se=function(mt){return mt===y}:Se=function(mt){return y.test(mt)};do{var Re=e.charAt(X);if(E===0&&Se(Re))_=e.substr(Z,X-Z),_?j.push(_):j.push(" "),_=j,m(X-le),oe=!1;else{if(I){Re==="*"&&e.charAt(X+1)==="/"&&(X++,E--,I=!1),X++;continue}switch(Re){case"\\":X++,Re=e.charAt(X),j.push(e.substr(Z,X-Z+1)),Z=X+1;break;case"/":e.charAt(X+1)==="*"&&(X++,I=!0,E++);break;case"'":case'"':b=u.$quoted(X),b?(j.push(e.substr(Z,X-Z),b),X+=b[1].length-1,Z=X+1):(m(X-le),_=Re,oe=!1);break;case"{":O.push("}"),E++;break;case"(":O.push(")"),E++;break;case"[":O.push("]"),E++;break;case"}":case")":case"]":var dt=O.pop();Re===dt?E--:(m(X-le),_=dt,oe=!1)}X++,X>T&&(oe=!1)}}while(oe);return _||null},u.autoCommentAbsorb=!0,u.commentStore=[],u.finished=!1,u.peek=function(y){if(typeof y=="string"){for(var b=0;b<y.length;b++)if(e.charAt(u.i+b)!==y.charAt(b))return!1;return!0}else return y.test(l)},u.peekChar=function(y){return e.charAt(u.i)===y},u.currentChar=function(){return e.charAt(u.i)},u.prevChar=function(){return e.charAt(u.i-1)},u.getInput=function(){return e},u.peekNotNumeric=function(){var y=e.charCodeAt(u.i);return y>g||y<c||y===p||y===h},u.start=function(y,b,_){e=y,u.i=t=f=i=0,b?n=ci(y,_):n=[y],l=n[0],m(0)},u.end=function(){var y,b=u.i>=e.length;return u.i<i&&(y=s,u.i=i),{isFinished:b,furthest:u.i,furthestPossibleErrorMessage:y,furthestReachedEnd:u.i>=e.length-1,furthestChar:e[u.i]}},u},kt=function e(t,r,i){var s,n=hi();function l(a,o){throw new ae({index:n.i,filename:i.filename,type:o||"Syntax",message:a},r)}function f(a,o){var c=a instanceof Function?a.call(s):n.$re(a);if(c)return c;l(o||(typeof a=="string"?"expected '"+a+"' got '"+n.currentChar()+"'":"unexpected token"))}function u(a,o){if(n.$char(a))return a;l(o||"expected '"+a+"' got '"+n.currentChar()+"'")}function v(a){var o=i.filename;return{lineNumber:tt(a,n.getInput()).line+1,fileName:o}}function d(a,o,c,h,p){var g,m=[],y=n;try{y.start(a,!1,function(j,T){p({message:j,index:T+c})});for(var b=0,_=void 0,I=void 0;_=o[b];b++)if(I=y.i,g=s[_](),g){try{g._index=I+c,g._fileInfo=h}catch{}m.push(g)}else m.push(null);var E=y.end();E.isFinished?p(null,m):p(!0,null)}catch(O){throw new ae({index:O.index+c,message:O.message},r,h.filename)}}return{parserInput:n,imports:r,fileInfo:i,parseNode:d,parse:function(a,o,c){var h,p=null,g,m,y,b="";if(c&&c.disablePluginRule&&(s.plugin=function(){var T=n.$re(/^@plugin?\s+/);T&&l("@plugin statements are not allowed when disablePluginRule is set to true")}),g=c&&c.globalVars?e.serializeVars(c.globalVars)+`
  48. `:"",m=c&&c.modifyVars?`
  49. `+e.serializeVars(c.modifyVars):"",t.pluginManager)for(var _=t.pluginManager.getPreProcessors(),I=0;I<_.length;I++)a=_[I].process(a,{context:t,imports:r,fileInfo:i});(g||c&&c.banner)&&(b=(c&&c.banner?c.banner:"")+g,y=r.contentsIgnoredChars,y[i.filename]=y[i.filename]||0,y[i.filename]+=b.length),a=a.replace(/\r\n?/g,`
  50. `),a=b+a.replace(/^\uFEFF/,"")+m,r.contents[i.filename]=a;try{n.start(a,t.chunkInput,function(le,Z){throw new ae({index:Z,type:"Parse",message:le,filename:i.filename},r)}),w.Node.prototype.parse=this,h=new w.Ruleset(null,this.parsers.primary()),w.Node.prototype.rootNode=h,h.root=!0,h.firstRoot=!0,h.functionRegistry=be.inherit()}catch(T){return o(new ae(T,r,i.filename))}var E=n.end();if(!E.isFinished){var O=E.furthestPossibleErrorMessage;O||(O="Unrecognised input",E.furthestChar==="}"?O+=". Possibly missing opening '{'":E.furthestChar===")"?O+=". Possibly missing opening '('":E.furthestReachedEnd&&(O+=". Possibly missing something")),p=new ae({type:"Parse",message:O,index:E.furthest,filename:i.filename},r)}var j=function(T){return T=p||T||r.error,T?(T instanceof ae||(T=new ae(T,r,i.filename)),o(T)):o(null,h)};if(t.processImports!==!1)new at.ImportVisitor(r,j).run(h);else return j()},parsers:s={primary:function(){for(var a=this.mixin,o=[],c;;){for(;c=this.comment(),!!c;)o.push(c);if(n.finished||n.peek("}"))break;if(c=this.extendRule(),c){o=o.concat(c);continue}if(c=a.definition()||this.declaration()||a.call(!1,!1)||this.ruleset()||this.variableCall()||this.entities.call()||this.atrule(),c)o.push(c);else{for(var h=!1;n.$char(";");)h=!0;if(!h)break}}return o},comment:function(){if(n.commentStore.length){var a=n.commentStore.shift();return new w.Comment(a.text,a.isLineComment,a.index,i)}},entities:{mixinLookup:function(){return s.mixin.call(!0,!0)},quoted:function(a){var o,c=n.i,h=!1;if(n.save(),n.$char("~"))h=!0;else if(a){n.restore();return}if(o=n.$quoted(),!o){n.restore();return}return n.forget(),new w.Quoted(o.charAt(0),o.substr(1,o.length-2),h,c,i)},keyword:function(){var a=n.$char("%")||n.$re(/^\[?(?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+\]?/);if(a)return w.Color.fromKeyword(a)||new w.Keyword(a)},call:function(){var a,o,c,h=n.i;if(!n.peek(/^url\(/i)){if(n.save(),a=n.$re(/^([\w-]+|%|~|progid:[\w\.]+)\(/),!a){n.forget();return}if(a=a[1],c=this.customFuncCall(a),c&&(o=c.parse(),o&&c.stop))return n.forget(),o;if(o=this.arguments(o),!n.$char(")")){n.restore("Could not parse call arguments or missing ')'");return}return n.forget(),new w.Call(a,o,h,i)}},customFuncCall:function(a){return{alpha:o(s.ieAlpha,!0),boolean:o(c),if:o(c)}[a.toLowerCase()];function o(h,p){return{parse:h,stop:p}}function c(){return[f(s.condition,"expected condition")]}},arguments:function(a){var o=a||[],c=[],h,p;for(n.save();;){if(a)a=!1;else{if(p=s.detachedRuleset()||this.assignment()||s.expression(),!p)break;p.value&&p.value.length==1&&(p=p.value[0]),o.push(p)}n.$char(",")||(n.$char(";")||h)&&(h=!0,p=o.length<1?o[0]:new w.Value(o),c.push(p),o=[])}return n.forget(),h?c:o},literal:function(){return this.dimension()||this.color()||this.quoted()||this.unicodeDescriptor()},assignment:function(){var a,o;if(n.save(),a=n.$re(/^\w+(?=\s?=)/i),!a){n.restore();return}if(!n.$char("=")){n.restore();return}if(o=s.entity(),o)return n.forget(),new w.Assignment(a,o);n.restore()},url:function(){var a,o=n.i;if(n.autoCommentAbsorb=!1,!n.$str("url(")){n.autoCommentAbsorb=!0;return}return a=this.quoted()||this.variable()||this.property()||n.$re(/^(?:(?:\\[\(\)'"])|[^\(\)'"])+/)||"",n.autoCommentAbsorb=!0,u(")"),new w.URL(a.value!=null||a instanceof w.Variable||a instanceof w.Property?a:new w.Anonymous(a,o),o,i)},variable:function(){var a,o,c=n.i;if(n.save(),n.currentChar()==="@"&&(o=n.$re(/^@@?[\w-]+/))){if(a=n.currentChar(),a==="("||a==="["&&!n.prevChar().match(/^\s/)){var h=s.variableCall(o);if(h)return n.forget(),h}return n.forget(),new w.Variable(o,c,i)}n.restore()},variableCurly:function(){var a,o=n.i;if(n.currentChar()==="@"&&(a=n.$re(/^@\{([\w-]+)\}/)))return new w.Variable("@"+a[1],o,i)},property:function(){var a,o=n.i;if(n.currentChar()==="$"&&(a=n.$re(/^\$[\w-]+/)))return new w.Property(a,o,i)},propertyCurly:function(){var a,o=n.i;if(n.currentChar()==="$"&&(a=n.$re(/^\$\{([\w-]+)\}/)))return new w.Property("$"+a[1],o,i)},color:function(){var a;if(n.save(),n.currentChar()==="#"&&(a=n.$re(/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})([\w.#\[])?/))&&!a[2])return n.forget(),new w.Color(a[1],void 0,a[0]);n.restore()},colorKeyword:function(){n.save();var a=n.autoCommentAbsorb;n.autoCommentAbsorb=!1;var o=n.$re(/^[_A-Za-z-][_A-Za-z0-9-]+/);if(n.autoCommentAbsorb=a,!o){n.forget();return}n.restore();var c=w.Color.fromKeyword(o);if(c)return n.$str(o),c},dimension:function(){if(!n.peekNotNumeric()){var a=n.$re(/^([+-]?\d*\.?\d+)(%|[a-z_]+)?/i);if(a)return new w.Dimension(a[1],a[2])}},unicodeDescriptor:function(){var a;if(a=n.$re(/^U\+[0-9a-fA-F?]+(\-[0-9a-fA-F?]+)?/),a)return new w.UnicodeDescriptor(a[0])},javascript:function(){var a,o=n.i;n.save();var c=n.$char("~"),h=n.$char("`");if(!h){n.restore();return}if(a=n.$re(/^[^`]*`/),a)return n.forget(),new w.JavaScript(a.substr(0,a.length-1),Boolean(c),o,i);n.restore("invalid javascript definition")}},variable:function(){var a;if(n.currentChar()==="@"&&(a=n.$re(/^(@[\w-]+)\s*:/)))return a[1]},variableCall:function(a){var o,c=n.i,h=!!a,p=a;if(n.save(),p||n.currentChar()==="@"&&(p=n.$re(/^(@[\w-]+)(\(\s*\))?/))){if(o=this.mixin.ruleLookups(),!o&&(h&&n.$str("()")!=="()"||p[2]!=="()")){n.restore("Missing '[...]' lookup in variable call");return}h||(p=p[1]);var g=new w.VariableCall(p,c,i);return!h&&s.end()?(n.forget(),g):(n.forget(),new w.NamespaceValue(g,o,c,i))}n.restore()},extend:function(a){var o,c,h=n.i,p,g,m;if(n.$str(a?"&:extend(":":extend(")){do{for(p=null,o=null;!(p=n.$re(/^(all)(?=\s*(\)|,))/))&&(c=this.element(),!!c);)o?o.push(c):o=[c];p=p&&p[1],o||l("Missing target selector for :extend()."),m=new w.Extend(new w.Selector(o),p,h,i),g?g.push(m):g=[m]}while(n.$char(","));return f(/^\)/),a&&f(/^;/),g}},extendRule:function(){return this.extend(!0)},mixin:{call:function(a,o){var c=n.currentChar(),h=!1,p,g=n.i,m,y,b;if(!(c!=="."&&c!=="#")){if(n.save(),m=this.elements(),m){if(n.$char("(")&&(y=this.args(!0).args,u(")"),b=!0),o!==!1&&(p=this.ruleLookups()),o===!0&&!p){n.restore();return}if(a&&!p&&!b){n.restore();return}if(!a&&s.important()&&(h=!0),a||s.end()){n.forget();var _=new w.mixin.Call(m,y,g,i,!p&&h);return p?new w.NamespaceValue(_,p):_}}n.restore()}},elements:function(){for(var a,o,c,h,p,g=/^[#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/;p=n.i,o=n.$re(g),!!o;)h=new w.Element(c,o,!1,p,i),a?a.push(h):a=[h],c=n.$char(">");return a},args:function(a){var o=s.entities,c={args:null,variadic:!1},h=[],p=[],g=[],m,y,b,_,I,E,O,j=!0;for(n.save();;){if(a)E=s.detachedRuleset()||s.expression();else{if(n.commentStore.length=0,n.$str("...")){c.variadic=!0,n.$char(";")&&!m&&(m=!0),(m?p:g).push({variadic:!0});break}E=o.variable()||o.property()||o.literal()||o.keyword()||this.call(!0)}if(!E||!j)break;_=null,E.throwAwayComments&&E.throwAwayComments(),I=E;var T=null;if(a?E.value&&E.value.length==1&&(T=E.value[0]):T=E,T&&(T instanceof w.Variable||T instanceof w.Property))if(n.$char(":")){if(h.length>0&&(m&&l("Cannot mix ; and , as delimiter types"),y=!0),I=s.detachedRuleset()||s.expression(),!I)if(a)l("could not understand value for named argument");else return n.restore(),c.args=[],c;_=b=T.name}else if(n.$str("..."))if(a)O=!0;else{c.variadic=!0,n.$char(";")&&!m&&(m=!0),(m?p:g).push({name:E.name,variadic:!0});break}else a||(b=_=T.name,I=null);if(I&&h.push(I),g.push({name:_,value:I,expand:O}),n.$char(",")){j=!0;continue}j=n.$char(";")===";",(j||m)&&(y&&l("Cannot mix ; and , as delimiter types"),m=!0,h.length>1&&(I=new w.Value(h)),p.push({name:b,value:I,expand:O}),b=null,h=[],y=!1)}return n.forget(),c.args=m?p:g,c},definition:function(){var a,o=[],c,h,p,g=!1;if(!(n.currentChar()!=="."&&n.currentChar()!=="#"||n.peek(/^[^{]*\}/)))if(n.save(),c=n.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/),c){a=c[1];var m=this.args(!1);if(o=m.args,g=m.variadic,!n.$char(")")){n.restore("Missing closing ')'");return}if(n.commentStore.length=0,n.$str("when")&&(p=f(s.conditions,"expected condition")),h=s.block(),h)return n.forget(),new w.mixin.Definition(a,o,h,p,g);n.restore()}else n.restore()},ruleLookups:function(){var a,o=[];if(n.currentChar()==="["){for(;;){if(n.save(),a=this.lookupValue(),!a&&a!==""){n.restore();break}o.push(a),n.forget()}if(o.length>0)return o}},lookupValue:function(){if(n.save(),!n.$char("[")){n.restore();return}var a=n.$re(/^(?:[@$]{0,2})[_a-zA-Z0-9-]*/);if(!n.$char("]")){n.restore();return}if(a||a==="")return n.forget(),a;n.restore()}},entity:function(){var a=this.entities;return this.comment()||a.literal()||a.variable()||a.url()||a.property()||a.call()||a.keyword()||this.mixin.call(!0)||a.javascript()},end:function(){return n.$char(";")||n.peek("}")},ieAlpha:function(){var a;if(n.$re(/^opacity=/i))return a=n.$re(/^\d+/),a||(a=f(s.entities.variable,"Could not parse alpha"),a="@{"+a.name.slice(1)+"}"),u(")"),new w.Quoted("","alpha(opacity="+a+")")},element:function(){var a,o,c,h=n.i;if(o=this.combinator(),a=n.$re(/^(?:\d+\.\d+|\d+)%/)||n.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||n.$char("*")||n.$char("&")||this.attribute()||n.$re(/^\([^&()@]+\)/)||n.$re(/^[\.#:](?=@)/)||this.entities.variableCurly(),a||(n.save(),n.$char("(")?(c=this.selector(!1))&&n.$char(")")?(a=new w.Paren(c),n.forget()):n.restore("Missing closing ')'"):n.forget()),a)return new w.Element(o,a,a instanceof w.Variable,h,i)},combinator:function(){var a=n.currentChar();if(a==="/"){n.save();var o=n.$re(/^\/[a-z]+\//i);if(o)return n.forget(),new w.Combinator(o);n.restore()}if(a===">"||a==="+"||a==="~"||a==="|"||a==="^"){for(n.i++,a==="^"&&n.currentChar()==="^"&&(a="^^",n.i++);n.isWhitespace();)n.i++;return new w.Combinator(a)}else return n.isWhitespace(-1)?new w.Combinator(" "):new w.Combinator(null)},selector:function(a){var o=n.i,c,h,p,g,m,y,b;for(a=a!==!1;(a&&(h=this.extend())||a&&(y=n.$str("when"))||(g=this.element()))&&(y?b=f(this.conditions,"expected condition"):b?l("CSS guard can only be used at the end of selector"):h?m?m=m.concat(h):m=h:(m&&l("Extend can only be used at the end of selector"),p=n.currentChar(),c?c.push(g):c=[g],g=null),!(p==="{"||p==="}"||p===";"||p===","||p===")")););if(c)return new w.Selector(c,m,b,o,i);m&&l("Extend must be used to extend a selector, it cannot be used on its own")},selectors:function(){for(var a,o;a=this.selector(),!(!a||(o?o.push(a):o=[a],n.commentStore.length=0,a.condition&&o.length>1&&l("Guards are only currently allowed on a single selector."),!n.$char(",")));)a.condition&&l("Guards are only currently allowed on a single selector."),n.commentStore.length=0;return o},attribute:function(){if(n.$char("[")){var a=this.entities,o,c,h,p;return(o=a.variableCurly())||(o=f(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),h=n.$re(/^[|~*$^]?=/),h&&(c=a.quoted()||n.$re(/^[0-9]+%/)||n.$re(/^[\w-]+/)||a.variableCurly(),c&&(p=n.$re(/^[iIsS]/))),u("]"),new w.Attribute(o,h,c,p)}},block:function(){var a;if(n.$char("{")&&(a=this.primary())&&n.$char("}"))return a},blockRuleset:function(){var a=this.block();return a&&(a=new w.Ruleset(null,a)),a},detachedRuleset:function(){var a,o,c;if(n.save(),n.$re(/^[.#]\(/)&&(a=this.mixin.args(!1),o=a.args,c=a.variadic,!n.$char(")"))){n.restore();return}var h=this.blockRuleset();if(h)return n.forget(),o?new w.mixin.Definition(null,o,h,null,c):new w.DetachedRuleset(h);n.restore()},ruleset:function(){var a,o,c;if(n.save(),t.dumpLineNumbers&&(c=v(n.i)),a=this.selectors(),a&&(o=this.block())){n.forget();var h=new w.Ruleset(a,o,t.strictImports);return t.dumpLineNumbers&&(h.debugInfo=c),h}else n.restore()},declaration:function(){var a,o,c=n.i,h,p=n.currentChar(),g,m,y;if(!(p==="."||p==="#"||p==="&"||p===":"))if(n.save(),a=this.variable()||this.ruleProperty(),a){if(y=typeof a=="string",y&&(o=this.detachedRuleset(),o&&(h=!0)),n.commentStore.length=0,!o){if(m=!y&&a.length>1&&a.pop().value,a[0].value&&a[0].value.slice(0,2)==="--"?o=this.permissiveValue():o=this.anonymousValue(),o)return n.forget(),new w.Declaration(a,o,!1,m,c,i);o||(o=this.value()),o?g=this.important():y&&(o=this.permissiveValue())}if(o&&(this.end()||h))return n.forget(),new w.Declaration(a,o,g,m,c,i);n.restore()}else n.restore()},anonymousValue:function(){var a=n.i,o=n.$re(/^([^.#@\$+\/'"*`(;{}-]*);/);if(o)return new w.Anonymous(o[1],a)},permissiveValue:function(a){var o,c,h,p,g=a||";",m=n.i,y=[];function b(){var E=n.currentChar();return typeof g=="string"?E===g:g.test(E)}if(!b()){p=[];do{if(c=this.comment(),c){p.push(c);continue}c=this.entity(),c&&p.push(c)}while(c);if(h=b(),p.length>0){if(p=new w.Expression(p),h)return p;y.push(p),n.prevChar()===" "&&y.push(new w.Anonymous(" ",m))}if(n.save(),p=n.$parseUntil(g),p){if(typeof p=="string"&&l("Expected '"+p+"'","Parse"),p.length===1&&p[0]===" ")return n.forget(),new w.Anonymous("",m);var _=void 0;for(o=0;o<p.length;o++)if(_=p[o],Array.isArray(_))y.push(new w.Quoted(_[0],_[1],!0,m,i));else{o===p.length-1&&(_=_.trim());var I=new w.Quoted("'",_,!0,m,i);I.variableRegex=/@([\w-]+)/g,I.propRegex=/\$([\w-]+)/g,y.push(I)}return n.forget(),new w.Expression(y,!0)}n.restore()}},import:function(){var a,o,c=n.i,h=n.$re(/^@import\s+/);if(h){var p=(h?this.importOptions():null)||{};if(a=this.entities.quoted()||this.entities.url())return o=this.mediaFeatures(),n.$char(";")||(n.i=c,l("missing semi-colon or unrecognised media features on import")),o=o&&new w.Value(o),new w.Import(a,o,p,c,i);n.i=c,l("malformed import statement")}},importOptions:function(){var a,o={},c,h;if(!n.$char("("))return null;do if(a=this.importOption(),a){switch(c=a,h=!0,c){case"css":c="less",h=!1;break;case"once":c="multiple",h=!1;break}if(o[c]=h,!n.$char(","))break}while(a);return u(")"),o},importOption:function(){var a=n.$re(/^(less|css|multiple|once|inline|reference|optional)/);if(a)return a[1]},mediaFeature:function(){var a=this.entities,o=[],c,h;n.save();do c=a.keyword()||a.variable()||a.mixinLookup(),c?o.push(c):n.$char("(")&&(h=this.property(),c=this.value(),n.$char(")")?h&&c?o.push(new w.Paren(new w.Declaration(h,c,null,null,n.i,i,!0))):c?o.push(new w.Paren(c)):l("badly formed media feature definition"):l("Missing closing ')'","Parse"));while(c);if(n.forget(),o.length>0)return new w.Expression(o)},mediaFeatures:function(){var a=this.entities,o=[],c;do if(c=this.mediaFeature(),c){if(o.push(c),!n.$char(","))break}else if(c=a.variable()||a.mixinLookup(),c&&(o.push(c),!n.$char(",")))break;while(c);return o.length>0?o:null},media:function(){var a,o,c,h,p=n.i;if(t.dumpLineNumbers&&(h=v(p)),n.save(),n.$str("@media"))return a=this.mediaFeatures(),o=this.block(),o||l("media definitions require block statements after any features"),n.forget(),c=new w.Media(o,a,p,i),t.dumpLineNumbers&&(c.debugInfo=h),c;n.restore()},plugin:function(){var a,o,c,h=n.i,p=n.$re(/^@plugin\s+/);if(p){if(o=this.pluginArgs(),o?c={pluginArgs:o,isPlugin:!0}:c={isPlugin:!0},a=this.entities.quoted()||this.entities.url())return n.$char(";")||(n.i=h,l("missing semi-colon on @plugin")),new w.Import(a,null,c,h,i);n.i=h,l("malformed @plugin statement")}},pluginArgs:function(){if(n.save(),!n.$char("("))return n.restore(),null;var a=n.$re(/^\s*([^\);]+)\)\s*/);return a[1]?(n.forget(),a[1].trim()):(n.restore(),null)},atrule:function(){var a=n.i,o,c,h,p,g,m,y,b=!0,_=!0;if(n.currentChar()==="@"){if(c=this.import()||this.plugin()||this.media(),c)return c;if(n.save(),o=n.$re(/^@[a-z-]+/),!!o){switch(p=o,o.charAt(1)=="-"&&o.indexOf("-",2)>0&&(p="@"+o.slice(o.indexOf("-",2)+1)),p){case"@charset":g=!0,b=!1;break;case"@namespace":m=!0,b=!1;break;case"@keyframes":case"@counter-style":g=!0;break;case"@document":case"@supports":y=!0,_=!1;break;default:y=!0;break}if(n.commentStore.length=0,g?(c=this.entity(),c||l("expected "+o+" identifier")):m?(c=this.expression(),c||l("expected "+o+" expression")):y&&(c=this.permissiveValue(/^[{;]/),b=n.currentChar()==="{",c?c.value||(c=null):!b&&n.currentChar()!==";"&&l(o+" rule is missing block or ending semi-colon")),b&&(h=this.blockRuleset()),h||!b&&c&&n.$char(";"))return n.forget(),new w.AtRule(o,c,h,a,i,t.dumpLineNumbers?v(a):null,_);n.restore("at-rule options not recognised")}}},value:function(){var a,o=[],c=n.i;do if(a=this.expression(),a&&(o.push(a),!n.$char(",")))break;while(a);if(o.length>0)return new w.Value(o,c)},important:function(){if(n.currentChar()==="!")return n.$re(/^! *important/)},sub:function(){var a,o;if(n.save(),n.$char("(")){if(a=this.addition(),a&&n.$char(")"))return n.forget(),o=new w.Expression([a]),o.parens=!0,o;n.restore("Expected ')'");return}n.restore()},multiplication:function(){var a,o,c,h,p;if(a=this.operand(),a){for(p=n.isWhitespace(-1);!n.peek(/^\/[*\/]/);){if(n.save(),c=n.$char("/")||n.$char("*")||n.$str("./"),!c){n.forget();break}if(o=this.operand(),!o){n.restore();break}n.forget(),a.parensInOp=!0,o.parensInOp=!0,h=new w.Operation(c,[h||a,o],p),p=n.isWhitespace(-1)}return h||a}},addition:function(){var a,o,c,h,p;if(a=this.multiplication(),a){for(p=n.isWhitespace(-1);c=n.$re(/^[-+]\s+/)||!p&&(n.$char("+")||n.$char("-")),!(!c||(o=this.multiplication(),!o));)a.parensInOp=!0,o.parensInOp=!0,h=new w.Operation(c,[h||a,o],p),p=n.isWhitespace(-1);return h||a}},conditions:function(){var a,o,c=n.i,h;if(a=this.condition(!0),a){for(;!(!n.peek(/^,\s*(not\s*)?\(/)||!n.$char(",")||(o=this.condition(!0),!o));)h=new w.Condition("or",h||a,o,c);return h||a}},condition:function(a){var o,c,h;function p(){return n.$str("or")}if(o=this.conditionAnd(a),!!o){if(c=p(),c)if(h=this.condition(a),h)o=new w.Condition(c,o,h);else return;return o}},conditionAnd:function(a){var o,c,h,p=this;function g(){var y=p.negatedCondition(a)||p.parenthesisCondition(a);return!y&&!a?p.atomicCondition(a):y}function m(){return n.$str("and")}if(o=g(),!!o){if(c=m(),c)if(h=this.conditionAnd(a),h)o=new w.Condition(c,o,h);else return;return o}},negatedCondition:function(a){if(n.$str("not")){var o=this.parenthesisCondition(a);return o&&(o.negate=!o.negate),o}},parenthesisCondition:function(a){function o(h){var p;if(n.save(),p=h.condition(a),!p){n.restore();return}if(!n.$char(")")){n.restore();return}return n.forget(),p}var c;if(n.save(),!n.$str("(")){n.restore();return}if(c=o(this),c)return n.forget(),c;if(c=this.atomicCondition(a),!c){n.restore();return}if(!n.$char(")")){n.restore("expected ')' got '"+n.currentChar()+"'");return}return n.forget(),c},atomicCondition:function(a){var o=this.entities,c=n.i,h,p,g,m;function y(){return this.addition()||o.keyword()||o.quoted()||o.mixinLookup()}if(y=y.bind(this),h=y(),h)return n.$char(">")?n.$char("=")?m=">=":m=">":n.$char("<")?n.$char("=")?m="<=":m="<":n.$char("=")&&(n.$char(">")?m="=>":n.$char("<")?m="=<":m="="),m?(p=y(),p?g=new w.Condition(m,h,p,c,!1):l("expected expression")):g=new w.Condition("=",h,new w.Keyword("true"),c,!1),g},operand:function(){var a=this.entities,o;n.peek(/^-[@\$\(]/)&&(o=n.$char("-"));var c=this.sub()||a.dimension()||a.color()||a.variable()||a.property()||a.call()||a.quoted(!0)||a.colorKeyword()||a.mixinLookup();return o&&(c.parensInOp=!0,c=new w.Negative(c)),c},expression:function(){var a=[],o,c,h=n.i;do{if(o=this.comment(),o){a.push(o);continue}o=this.addition()||this.entity(),o instanceof w.Comment&&(o=null),o&&(a.push(o),n.peek(/^\/[\/*]/)||(c=n.$char("/"),c&&a.push(new w.Anonymous(c,h))))}while(o);if(a.length>0)return new w.Expression(a)},property:function(){var a=n.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(a)return a[1]},ruleProperty:function(){var a=[],o=[],c,h;n.save();var p=n.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(p)return a=[new w.Keyword(p[1])],n.forget(),a;function g(m){var y=n.i,b=n.$re(m);if(b)return o.push(y),a.push(b[1])}for(g(/^(\*?)/);g(/^((?:[\w-]+)|(?:[@\$]\{[\w-]+\}))/););if(a.length>1&&g(/^((?:\+_|\+)?)\s*:/)){for(n.forget(),a[0]===""&&(a.shift(),o.shift()),h=0;h<a.length;h++)c=a[h],a[h]=c.charAt(0)!=="@"&&c.charAt(0)!=="$"?new w.Keyword(c):c.charAt(0)==="@"?new w.Variable("@"+c.slice(2,-1),o[h],i):new w.Property("$"+c.slice(2,-1),o[h],i);return a}n.restore()}}}};kt.serializeVars=function(e){var t="";for(var r in e)if(Object.hasOwnProperty.call(e,r)){var i=e[r];t+=(r[0]==="@"?"":"@")+r+": "+i+(String(i).slice(-1)===";"?"":";")}return t};function vi(e){return e?ve.True:ve.False}function Ir(e,t,r,i){return t.eval(e)?r.eval(e):i?i.eval(e):new ye}Ir.evalArgs=!1;function Mr(e,t){try{return t.eval(e),ve.True}catch{return ve.False}}Mr.evalArgs=!1;var pi={isdefined:Mr,boolean:vi,if:Ir},Ie;function De(e){return Math.min(1,Math.max(0,e))}function ze(e,t){var r=Ie.hsla(t.h,t.s,t.l,t.a);if(r)return e.value&&/^(rgb|hsl)/.test(e.value)?r.value=e.value:r.value="rgb",r}function Me(e){if(e.toHSL)return e.toHSL();throw new Error("Argument cannot be evaluated to a color")}function jt(e){if(e.toHSV)return e.toHSV();throw new Error("Argument cannot be evaluated to a color")}function Pe(e){if(e instanceof W)return parseFloat(e.unit.is("%")?e.value/100:e.value);if(typeof e=="number")return e;throw{type:"Argument",message:"color functions take numbers as parameters"}}function di(e,t){return e instanceof W&&e.unit.is("%")?parseFloat(e.value*t/100):Pe(e)}Ie={rgb:function(e,t,r){var i=1;if(e instanceof $e){var s=e.value;if(e=s[0],t=s[1],r=s[2],r instanceof Le){var n=r;r=n.operands[0],i=n.operands[1]}}var l=Ie.rgba(e,t,r,i);if(l)return l.value="rgb",l},rgba:function(e,t,r,i){try{if(e instanceof L)return t?i=Pe(t):i=e.alpha,new L(e.rgb,i,"rgba");var s=[e,t,r].map(function(n){return di(n,255)});return i=Pe(i),new L(s,i,"rgba")}catch{}},hsl:function(e,t,r){var i=1;if(e instanceof $e){var s=e.value;if(e=s[0],t=s[1],r=s[2],r instanceof Le){var n=r;r=n.operands[0],i=n.operands[1]}}var l=Ie.hsla(e,t,r,i);if(l)return l.value="hsl",l},hsla:function(e,t,r,i){try{let f=function(u){return u=u<0?u+1:u>1?u-1:u,u*6<1?s+(n-s)*u*6:u*2<1?n:u*3<2?s+(n-s)*(2/3-u)*6:s};if(e instanceof L)return t?i=Pe(t):i=e.alpha,new L(e.rgb,i,"hsla");var s,n;e=Pe(e)%360/360,t=De(Pe(t)),r=De(Pe(r)),i=De(Pe(i)),n=r<=.5?r*(t+1):r+t-r*t,s=r*2-n;var l=[f(e+1/3)*255,f(e)*255,f(e-1/3)*255];return i=Pe(i),new L(l,i,"hsla")}catch{}},hsv:function(e,t,r){return Ie.hsva(e,t,r,1)},hsva:function(e,t,r,i){e=Pe(e)%360/360*360,t=Pe(t),r=Pe(r),i=Pe(i);var s,n;s=Math.floor(e/60%6),n=e/60-s;var l=[r,r*(1-t),r*(1-n*t),r*(1-(1-n)*t)],f=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return Ie.rgba(l[f[s][0]]*255,l[f[s][1]]*255,l[f[s][2]]*255,i)},hue:function(e){return new W(Me(e).h)},saturation:function(e){return new W(Me(e).s*100,"%")},lightness:function(e){return new W(Me(e).l*100,"%")},hsvhue:function(e){return new W(jt(e).h)},hsvsaturation:function(e){return new W(jt(e).s*100,"%")},hsvvalue:function(e){return new W(jt(e).v*100,"%")},red:function(e){return new W(e.rgb[0])},green:function(e){return new W(e.rgb[1])},blue:function(e){return new W(e.rgb[2])},alpha:function(e){return new W(Me(e).a)},luma:function(e){return new W(e.luma()*e.alpha*100,"%")},luminance:function(e){var t=.2126*e.rgb[0]/255+.7152*e.rgb[1]/255+.0722*e.rgb[2]/255;return new W(t*e.alpha*100,"%")},saturate:function(e,t,r){if(!e.rgb)return null;var i=Me(e);return typeof r<"u"&&r.value==="relative"?i.s+=i.s*t.value/100:i.s+=t.value/100,i.s=De(i.s),ze(e,i)},desaturate:function(e,t,r){var i=Me(e);return typeof r<"u"&&r.value==="relative"?i.s-=i.s*t.value/100:i.s-=t.value/100,i.s=De(i.s),ze(e,i)},lighten:function(e,t,r){var i=Me(e);return typeof r<"u"&&r.value==="relative"?i.l+=i.l*t.value/100:i.l+=t.value/100,i.l=De(i.l),ze(e,i)},darken:function(e,t,r){var i=Me(e);return typeof r<"u"&&r.value==="relative"?i.l-=i.l*t.value/100:i.l-=t.value/100,i.l=De(i.l),ze(e,i)},fadein:function(e,t,r){var i=Me(e);return typeof r<"u"&&r.value==="relative"?i.a+=i.a*t.value/100:i.a+=t.value/100,i.a=De(i.a),ze(e,i)},fadeout:function(e,t,r){var i=Me(e);return typeof r<"u"&&r.value==="relative"?i.a-=i.a*t.value/100:i.a-=t.value/100,i.a=De(i.a),ze(e,i)},fade:function(e,t){var r=Me(e);return r.a=t.value/100,r.a=De(r.a),ze(e,r)},spin:function(e,t){var r=Me(e),i=(r.h+t.value)%360;return r.h=i<0?360+i:i,ze(e,r)},mix:function(e,t,r){r||(r=new W(50));var i=r.value/100,s=i*2-1,n=Me(e).a-Me(t).a,l=((s*n==-1?s:(s+n)/(1+s*n))+1)/2,f=1-l,u=[e.rgb[0]*l+t.rgb[0]*f,e.rgb[1]*l+t.rgb[1]*f,e.rgb[2]*l+t.rgb[2]*f],v=e.alpha*i+t.alpha*(1-i);return new L(u,v)},greyscale:function(e){return Ie.desaturate(e,new W(100))},contrast:function(e,t,r,i){if(!e.rgb)return null;if(typeof r>"u"&&(r=Ie.rgba(255,255,255,1)),typeof t>"u"&&(t=Ie.rgba(0,0,0,1)),t.luma()>r.luma()){var s=r;r=t,t=s}return typeof i>"u"?i=.43:i=Pe(i),e.luma()<i?r:t},argb:function(e){return new ye(e.toARGB())},color:function(e){if(e instanceof _e&&/^#([A-Fa-f0-9]{8}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3,4})$/i.test(e.value)){var t=e.value.slice(1);return new L(t,void 0,"#"+t)}if(e instanceof L||(e=L.fromKeyword(e.value)))return e.value=void 0,e;throw{type:"Argument",message:"argument must be a color keyword or 3|4|6|8 digit hex e.g. #FFF"}},tint:function(e,t){return Ie.mix(Ie.rgb(255,255,255),e,t)},shade:function(e,t){return Ie.mix(Ie.rgb(0,0,0),e,t)}};var mi=Ie;function Tt(e,t,r){var i=t.alpha,s,n=r.alpha,l,f,u,v=[];f=n+i*(1-n);for(var d=0;d<3;d++)s=t.rgb[d]/255,l=r.rgb[d]/255,u=e(s,l),f&&(u=(n*l+i*(s-n*(s+l-u)))/f),v[d]=u*255;return new L(v,f)}var ot={multiply:function(e,t){return e*t},screen:function(e,t){return e+t-e*t},overlay:function(e,t){return e*=2,e<=1?ot.multiply(e,t):ot.screen(e-1,t)},softlight:function(e,t){var r=1,i=e;return t>.5&&(i=1,r=e>.25?Math.sqrt(e):((16*e-12)*e+4)*e),e-(1-2*t)*i*(r-e)},hardlight:function(e,t){return ot.overlay(t,e)},difference:function(e,t){return Math.abs(e-t)},exclusion:function(e,t){return e+t-2*e*t},average:function(e,t){return(e+t)/2},negation:function(e,t){return 1-Math.abs(e+t-1)}};for(var zt in ot)ot.hasOwnProperty(zt)&&(Tt[zt]=Tt.bind(null,ot[zt]));var gi=function(e){var t=function(r,i){return new Ve(i,r.index,r.currentFileInfo).eval(r.context)};return{"data-uri":function(r,i){i||(i=r,r=null);var s=r&&r.value,n=i.value,l=this.currentFileInfo,f=l.rewriteUrls?l.currentDirectory:l.entryPath,u=n.indexOf("#"),v="";u!==-1&&(v=n.slice(u),n=n.slice(0,u));var d=ue(this.context);d.rawBuffer=!0;var a=e.getFileManager(n,f,d,e,!0);if(!a)return t(this,i);var o=!1;if(r)o=/;base64$/.test(s);else{if(s=e.mimeLookup(n),s==="image/svg+xml")o=!1;else{var c=e.charsetLookup(s);o=["US-ASCII","UTF-8"].indexOf(c)<0}o&&(s+=";base64")}var h=a.loadFileSync(n,f,d,e);if(!h.contents)return q.warn("Skipped data-uri embedding of "+n+" because file not found"),t(this,i||r);var p=h.contents;if(o&&!e.encodeBase64)return t(this,i);p=o?e.encodeBase64(p):encodeURIComponent(p);var g="data:"+s+","+p+v;return new Ve(new _e('"'+g+'"',g,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}},Pr=function(e){var t=Array.isArray(e.value)?e.value:Array(e);return t},yi={_SELF:function(e){return e},"~":function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===1?e[0]:new je(e)},extract:function(e,t){return t=t.value-1,Pr(e)[t]},length:function(e){return new W(Pr(e).length)},range:function(e,t,r){var i,s,n=1,l=[];t?(s=t,i=e.value,r&&(n=r.value)):(i=1,s=e);for(var f=i;f<=s.value;f+=n)l.push(new W(f,s.unit));return new $e(l)},each:function(e,t){var r=this,i=[],s,n,l=function(h){return h instanceof C?h.eval(r.context):h};e.value&&!(e instanceof _e)?Array.isArray(e.value)?n=e.value.map(l):n=[l(e.value)]:e.ruleset?n=l(e.ruleset).rules:e.rules?n=e.rules.map(l):Array.isArray(e)?n=e.map(l):n=[l(e)];var f="@value",u="@key",v="@index";t.params?(f=t.params[0]&&t.params[0].name,u=t.params[1]&&t.params[1].name,v=t.params[2]&&t.params[2].name,t=t.rules):t=t.ruleset;for(var d=0;d<n.length;d++){var a=void 0,o=void 0,c=n[d];c instanceof ge?(a=typeof c.name=="string"?c.name:c.name[0].value,o=c.value):(a=new W(d+1),o=c),!(c instanceof ct)&&(s=t.rules.slice(0),f&&s.push(new ge(f,o,!1,!1,this.index,this.currentFileInfo)),v&&s.push(new ge(v,new W(d+1),!1,!1,this.index,this.currentFileInfo)),u&&s.push(new ge(u,a,!1,!1,this.index,this.currentFileInfo)),i.push(new ce([new me([new se("","&")])],s,t.strictImports,t.visibilityInfo())))}return new ce([new me([new se("","&")])],i,t.strictImports,t.visibilityInfo()).eval(this.context)}},Nt=function(e,t,r){if(!(r instanceof W))throw{type:"Argument",message:"argument must be a number"};return t==null?t=r.unit:r=r.unify(),new W(e(parseFloat(r.value)),t)},lt={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};for(var At in lt)lt.hasOwnProperty(At)&&(lt[At]=Nt.bind(null,Math[At],lt[At]));lt.round=function(e,t){var r=typeof t>"u"?0:t.value;return Nt(function(i){return i.toFixed(r)},null,e)};var Er=function(e,t){switch(t=Array.prototype.slice.call(t),t.length){case 0:throw{type:"Argument",message:"one or more arguments required"}}var r,i,s,n,l,f,u,v,d=[],a={};for(r=0;r<t.length;r++){if(s=t[r],!(s instanceof W)){Array.isArray(t[r].value)&&Array.prototype.push.apply(t,Array.prototype.slice.call(t[r].value));continue}if(n=s.unit.toString()===""&&v!==void 0?new W(s.value,v).unify():s.unify(),f=n.unit.toString()===""&&u!==void 0?u:n.unit.toString(),u=f!==""&&u===void 0||f!==""&&d[0].unify().unit.toString()===""?f:u,v=f!==""&&v===void 0?s.unit.toString():v,i=a[""]!==void 0&&f!==""&&f===u?a[""]:a[f],i===void 0){if(u!==void 0&&f!==u)throw{type:"Argument",message:"incompatible types"};a[f]=d.length,d.push(s);continue}l=d[i].unit.toString()===""&&v!==void 0?new W(d[i].value,v).unify():d[i].unify(),(e&&n.value<l.value||!e&&n.value>l.value)&&(d[i]=s)}return d.length==1?d[0]:(t=d.map(function(o){return o.toCSS(this.context)}).join(this.context.compress?",":", "),new ye((e?"min":"max")+"("+t+")"))},bi={min:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Er(!0,e)}catch{}},max:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Er(!1,e)}catch{}},convert:function(e,t){return e.convertTo(t.value)},pi:function(){return new W(Math.PI)},mod:function(e,t){return new W(e.value%t.value,e.unit)},pow:function(e,t){if(typeof e=="number"&&typeof t=="number")e=new W(e),t=new W(t);else if(!(e instanceof W)||!(t instanceof W))throw{type:"Argument",message:"arguments must be numbers"};return new W(Math.pow(e.value,t.value),e.unit)},percentage:function(e){var t=Nt(function(r){return r*100},"%",e);return t}},wi={e:function(e){return new _e('"',e instanceof Ut?e.evaluated:e.value,!0)},escape:function(e){return new ye(encodeURI(e.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},replace:function(e,t,r,i){var s=e.value;return r=r.type==="Quoted"?r.value:r.toCSS(),s=s.replace(new RegExp(t.value,i?i.value:""),r),new _e(e.quote||"",s,e.escaped)},"%":function(e){for(var t=Array.prototype.slice.call(arguments,1),r=e.value,i=function(n){r=r.replace(/%[sda]/i,function(l){var f=t[n].type==="Quoted"&&l.match(/s/i)?t[n].value:t[n].toCSS();return l.match(/[A-Z]$/)?encodeURIComponent(f):f})},s=0;s<t.length;s++)i(s);return r=r.replace(/%%/g,"%"),new _e(e.quote||"",r,e.escaped)}},_i=function(e){return{"svg-gradient":function(t){var r,i,s="linear",n='x="0" y="0" width="1" height="1"',l={compress:!1},f,u=t.toCSS(l),v,d,a,o,c;function h(){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&&h(),r=arguments[1].value):arguments.length<3?h():r=Array.prototype.slice.call(arguments,1),u){case"to bottom":i='x1="0%" y1="0%" x2="0%" y2="100%"';break;case"to right":i='x1="0%" y1="0%" x2="100%" y2="0%"';break;case"to bottom right":i='x1="0%" y1="0%" x2="100%" y2="100%"';break;case"to top right":i='x1="0%" y1="100%" x2="100%" y2="0%"';break;case"ellipse":case"ellipse at center":s="radial",i='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(f='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><'+s+'Gradient id="g" '+i+">",v=0;v<r.length;v+=1)r[v]instanceof $e?(d=r[v].value[0],a=r[v].value[1]):(d=r[v],a=void 0),(!(d instanceof L)||!((v===0||v+1===r.length)&&a===void 0)&&!(a instanceof W))&&h(),o=a?a.toCSS(l):v===0?"0%":"100%",c=d.alpha,f+='<stop offset="'+o+'" stop-color="'+d.toRGB()+'"'+(c<1?' stop-opacity="'+c+'"':"")+"/>";return f+="</"+s+"Gradient><rect "+n+' fill="url(#g)" /></svg>',f=encodeURIComponent(f),f="data:image/svg+xml,"+f,new Ve(new _e("'"+f+"'",f,!1,this.index,this.currentFileInfo),this.index,this.currentFileInfo)}}},ut=function(e,t){return e instanceof t?ve.True:ve.False},It=function(e,t){if(t===void 0)throw{type:"Argument",message:"missing the required second argument to isunit."};if(t=typeof t.value=="string"?t.value:t,typeof t!="string")throw{type:"Argument",message:"Second argument to isunit should be a unit or a string."};return e instanceof W&&e.unit.is(t)?ve.True:ve.False},Si={isruleset:function(e){return ut(e,nt)},iscolor:function(e){return ut(e,L)},isnumber:function(e){return ut(e,W)},isstring:function(e){return ut(e,_e)},iskeyword:function(e){return ut(e,ve)},isurl:function(e){return ut(e,Ve)},ispixel:function(e){return It(e,"px")},ispercentage:function(e){return It(e,"%")},isem:function(e){return It(e,"em")},isunit:It,unit:function(e,t){if(!(e instanceof W))throw{type:"Argument",message:"the first argument to unit must be a number"+(e instanceof Le?". Have you forgotten parenthesis?":"")};return t?t instanceof ve?t=t.value:t=t.toCSS():t="",new W(e.value,t)},"get-unit":function(e){return new ye(e.unit)}},Ci=function(e){var t={functionRegistry:be,functionCaller:pr};return be.addMultiple(pi),be.add("default",it.eval.bind(it)),be.addMultiple(mi),be.addMultiple(Tt),be.addMultiple(gi(e)),be.addMultiple(yi),be.addMultiple(lt),be.addMultiple(bi),be.addMultiple(wi),be.addMultiple(_i()),be.addMultiple(Si),t};function Rr(e,t){t=t||{};var r,i=t.variables,s=new fe.Eval(t);typeof i=="object"&&!Array.isArray(i)&&(i=Object.keys(i).map(function(d){var a=i[d];return a instanceof w.Value||(a instanceof w.Expression||(a=new w.Expression([a])),a=new w.Value([a])),new w.Declaration("@"+d,a,!1,null,0)}),s.frames=[new w.Ruleset(null,i)]);var n=[new at.JoinSelectorVisitor,new at.MarkVisibleSelectorsVisitor(!0),new at.ExtendVisitor,new at.ToCSSVisitor({compress:Boolean(t.compress)})],l=[],f,u;if(t.pluginManager){u=t.pluginManager.visitor();for(var v=0;v<2;v++)for(u.first();f=u.get();)f.isPreEvalVisitor?(v===0||l.indexOf(f)===-1)&&(l.push(f),f.run(e)):(v===0||n.indexOf(f)===-1)&&(f.isPreVisitor?n.unshift(f):n.push(f))}r=e.eval(s);for(var v=0;v<n.length;v++)n[v].run(r);if(t.pluginManager)for(u.first();f=u.get();)n.indexOf(f)===-1&&l.indexOf(f)===-1&&f.run(r);return r}var xi=function(){function e(t){this.less=t,this.visitors=[],this.preProcessors=[],this.postProcessors=[],this.installedPlugins=[],this.fileManagers=[],this.iterator=-1,this.pluginCache={},this.Loader=new t.PluginLoader(t)}return e.prototype.addPlugins=function(t){if(t)for(var r=0;r<t.length;r++)this.addPlugin(t[r])},e.prototype.addPlugin=function(t,r,i){this.installedPlugins.push(t),r&&(this.pluginCache[r]=t),t.install&&t.install(this.less,this,i||this.less.functions.functionRegistry)},e.prototype.get=function(t){return this.pluginCache[t]},e.prototype.addVisitor=function(t){this.visitors.push(t)},e.prototype.addPreProcessor=function(t,r){var i;for(i=0;i<this.preProcessors.length&&!(this.preProcessors[i].priority>=r);i++);this.preProcessors.splice(i,0,{preProcessor:t,priority:r})},e.prototype.addPostProcessor=function(t,r){var i;for(i=0;i<this.postProcessors.length&&!(this.postProcessors[i].priority>=r);i++);this.postProcessors.splice(i,0,{postProcessor:t,priority:r})},e.prototype.addFileManager=function(t){this.fileManagers.push(t)},e.prototype.getPreProcessors=function(){for(var t=[],r=0;r<this.preProcessors.length;r++)t.push(this.preProcessors[r].preProcessor);return t},e.prototype.getPostProcessors=function(){for(var t=[],r=0;r<this.postProcessors.length;r++)t.push(this.postProcessors[r].postProcessor);return t},e.prototype.getVisitors=function(){return this.visitors},e.prototype.visitor=function(){var t=this;return{first:function(){return t.iterator=-1,t.visitors[t.iterator]},get:function(){return t.iterator+=1,t.visitors[t.iterator]}}},e.prototype.getFileManagers=function(){return this.fileManagers},e}(),Wt,Or=function(e,t){return(t||!Wt)&&(Wt=new xi(e)),Wt};function ki(e){var t=function(){function r(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,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=e.getSourceMapGenerator(),this._lineNumber=0,this._column=0}return r.prototype.removeBasepath=function(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},r.prototype.normalizeFilename=function(i){return i=i.replace(/\\/g,"/"),i=this.removeBasepath(i),(this._sourceMapRootpath||"")+i},r.prototype.add=function(i,s,n,l){if(i){var f,u,v,d,a;if(s&&s.filename){var o=this._contentsMap[s.filename];if(this._contentsIgnoredCharsMap[s.filename]&&(n-=this._contentsIgnoredCharsMap[s.filename],n<0&&(n=0),o=o.slice(this._contentsIgnoredCharsMap[s.filename])),o===void 0){this._css.push(i);return}o=o.substring(0,n),u=o.split(`
  51. `),d=u[u.length-1]}if(f=i.split(`
  52. `),v=f[f.length-1],s&&s.filename)if(!l)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+1,column:this._column},original:{line:u.length,column:d.length},source:this.normalizeFilename(s.filename)});else for(a=0;a<f.length;a++)this._sourceMapGenerator.addMapping({generated:{line:this._lineNumber+a+1,column:a===0?this._column:0},original:{line:u.length+a,column:a===0?d.length:0},source:this.normalizeFilename(s.filename)});f.length===1?this._column+=v.length:(this._lineNumber+=f.length-1,this._column=v.length),this._css.push(i)}},r.prototype.isEmpty=function(){return this._css.length===0},r.prototype.toCSS=function(i){if(this._sourceMapGenerator=new this._sourceMapGeneratorConstructor({file:this._outputFilename,sourceRoot:null}),this._outputSourceFiles){for(var s in this._contentsMap)if(this._contentsMap.hasOwnProperty(s)){var n=this._contentsMap[s];this._contentsIgnoredCharsMap[s]&&(n=n.slice(this._contentsIgnoredCharsMap[s])),this._sourceMapGenerator.setSourceContent(this.normalizeFilename(s),n)}}if(this._rootNode.genCSS(i,this),this._css.length>0){var l=void 0,f=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?l=this.sourceMapURL:this._sourceMapFilename&&(l=this._sourceMapFilename),this.sourceMapURL=l,this.sourceMap=f}return this._css.join("")},r}();return t}function Ai(e,t){var r=function(){function i(s){this.options=s}return i.prototype.toCSS=function(s,n,l){var f=new e({contentsIgnoredCharsMap:l.contentsIgnoredChars,rootNode:s,contentsMap:l.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}),u=f.toCSS(n);return this.sourceMap=f.sourceMap,this.sourceMapURL=f.sourceMapURL,this.options.sourceMapInputFilename&&(this.sourceMapInputFilename=f.normalizeFilename(this.options.sourceMapInputFilename)),this.options.sourceMapBasepath!==void 0&&this.sourceMapURL!==void 0&&(this.sourceMapURL=f.removeBasepath(this.sourceMapURL)),u+this.getCSSAppendage()},i.prototype.getCSSAppendage=function(){var s=this.sourceMapURL;if(this.options.sourceMapFileInline){if(this.sourceMap===void 0)return"";s="data:application/json;base64,"+t.encodeBase64(this.sourceMap)}return this.options.disableSourcemapAnnotation?"":s?"/*# sourceMappingURL="+s+" */":""},i.prototype.getExternalSourceMap=function(){return this.sourceMap},i.prototype.setExternalSourceMap=function(s){this.sourceMap=s},i.prototype.isInline=function(){return this.options.sourceMapFileInline},i.prototype.getSourceMapURL=function(){return this.sourceMapURL},i.prototype.getOutputFilename=function(){return this.options.sourceMapOutputFilename},i.prototype.getInputFilename=function(){return this.sourceMapInputFilename},i}();return r}function Ii(e){var t=function(){function r(i,s){this.root=i,this.imports=s}return r.prototype.toCSS=function(i){var s,n={},l;try{s=Rr(this.root,i)}catch(o){throw new ae(o,this.imports)}try{var f=Boolean(i.compress);f&&q.warn("The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.");var u={compress:f,dumpLineNumbers:i.dumpLineNumbers,strictUnits:Boolean(i.strictUnits),numPrecision:8};i.sourceMap?(l=new e(i.sourceMap),n.css=l.toCSS(s,u,this.imports)):n.css=s.toCSS(u)}catch(o){throw new ae(o,this.imports)}if(i.pluginManager)for(var v=i.pluginManager.getPostProcessors(),d=0;d<v.length;d++)n.css=v[d].process(n.css,{sourceMap:l,options:i,imports:this.imports});i.sourceMap&&(n.map=l.getExternalSourceMap()),n.imports=[];for(var a in this.imports.files)this.imports.files.hasOwnProperty(a)&&a!==this.imports.rootFilename&&n.imports.push(a);return n},r}();return t}function Mi(e){var t=function(){function r(i,s,n){this.less=i,this.rootFilename=n.filename,this.paths=s.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=s.mime,this.error=null,this.context=s,this.queue=[],this.files={}}return r.prototype.push=function(i,s,n,l,f){var u=this,v=this.context.pluginManager.Loader;this.queue.push(i);var d=function(m,y,b){u.queue.splice(u.queue.indexOf(i),1);var _=b===u.rootFilename;l.optional&&m?(f(null,{rules:[]},!1,null),q.info("The file "+b+" was skipped because it was not found and the import was marked optional.")):(!u.files[b]&&!l.inline&&(u.files[b]={root:y,options:l}),m&&!u.error&&(u.error=m),f(m,y,_,b))},a={rewriteUrls:this.context.rewriteUrls,entryPath:n.entryPath,rootpath:n.rootpath,rootFilename:n.rootFilename},o=e.getFileManager(i,n.currentDirectory,this.context,e);if(!o){d({message:"Could not find a file-manager for "+i});return}var c=function(m){var y,b=m.filename,_=m.contents.replace(/^\uFEFF/,"");a.currentDirectory=o.getPath(b),a.rewriteUrls&&(a.rootpath=o.join(u.context.rootpath||"",o.pathDiff(a.currentDirectory,a.entryPath)),!o.isPathAbsolute(a.rootpath)&&o.alwaysMakePathsAbsolute()&&(a.rootpath=o.join(a.entryPath,a.rootpath))),a.filename=b;var I=new fe.Parse(u.context);I.processImports=!1,u.contents[b]=_,(n.reference||l.reference)&&(a.reference=!0),l.isPlugin?(y=v.evalPlugin(_,I,u,l.pluginArgs,a),y instanceof ae?d(y,null,b):d(null,y,b)):l.inline?d(null,_,b):u.files[b]&&!u.files[b].options.multiple&&!l.multiple?d(null,u.files[b].root,b):new kt(I,u,a).parse(_,function(E,O){d(E,O,b)})},h,p,g=ue(this.context);s&&(g.ext=l.isPlugin?".js":".less"),l.isPlugin?(g.mime="application/javascript",g.syncImport?h=v.loadPluginSync(i,n.currentDirectory,g,e,o):p=v.loadPlugin(i,n.currentDirectory,g,e,o)):g.syncImport?h=o.loadFileSync(i,n.currentDirectory,g,e):p=o.loadFile(i,n.currentDirectory,g,e,function(m,y){m?d(m):c(y)}),h?h.filename?c(h):d(h):p&&p.then(c,d)},r}();return t}function Pi(e,t,r){var i=function(s,n,l){if(typeof n=="function"?(l=n,n=Be(this.options,{})):n=Be(this.options,n||{}),l){var u,v=void 0,d=new Or(this,!n.reUsePluginManager);if(n.pluginManager=d,u=new fe.Parse(n),n.rootFileInfo)v=n.rootFileInfo;else{var a=n.filename||"input",o=a.replace(/[^\/\\]*$/,"");v={filename:a,rewriteUrls:u.rewriteUrls,rootpath:u.rootpath||"",currentDirectory:o,entryPath:o,rootFilename:a},v.rootpath&&v.rootpath.slice(-1)!=="/"&&(v.rootpath+="/")}var c=new r(this,u,v);this.importManager=c,n.plugins&&n.plugins.forEach(function(h){var p,g;if(h.fileContent){if(g=h.fileContent.replace(/^\uFEFF/,""),p=d.Loader.evalPlugin(g,u,c,h.options,h.filename),p instanceof ae)return l(p)}else d.addPlugin(h)}),new kt(u,c,v).parse(s,function(h,p){if(h)return l(h);l(null,p,c,n)},n)}else{var f=this;return new Promise(function(h,p){i.call(f,s,n,function(g,m){g?p(g):h(m)})})}};return i}function Ei(e,t,r){var i=function(s,n,l){if(typeof n=="function"?(l=n,n=Be(this.options,{})):n=Be(this.options,n||{}),l)this.parse(s,n,function(u,v,d,a){if(u)return l(u);var o;try{var c=new t(v,d);o=c.toCSS(a)}catch(h){return l(h)}l(null,o)});else{var f=this;return new Promise(function(u,v){i.call(f,s,n,function(d,a){d?v(d):u(a)})})}};return i}var Ri="4.1.3";function Oi(e){var t=e.match(/^v(\d{1,2})\.(\d{1,2})\.(\d{1,2})(?:-([0-9A-Za-z-.]+))?(?:\+([0-9A-Za-z-.]+))?$/);if(!t)throw new Error("Unable to parse: "+e);var r={major:parseInt(t[1],10),minor:parseInt(t[2],10),patch:parseInt(t[3],10),pre:t[4]||"",build:t[5]||""};return r}var Fi=Oi;function $i(e,t){var r,i,s,n;e=new z(e,t),r=ki(e),i=Ai(r,e),s=Ii(i),n=Mi(e);var l=Ei(e,s),f=Pi(e,s,n),u=Fi("v"+Ri),v={version:[u.major,u.minor,u.patch],data:G,tree:w,Environment:z,AbstractFileManager:_r,AbstractPluginLoader:Sr,environment:e,visitors:at,Parser:kt,functions:Ci(e),contexts:fe,SourceMapOutput:r,SourceMapBuilder:i,ParseTree:s,ImportManager:n,render:l,parse:f,LessError:ae,transformTree:Rr,utils:Zr,PluginManager:Or,logger:q},d=function(p){return function(){var g=Object.create(p.prototype);return p.apply(g,Array.prototype.slice.call(arguments,0)),g}},a,o=Object.create(v);for(var c in v.tree)if(a=v.tree[c],typeof a=="function")o[c.toLowerCase()]=d(a);else{o[c]=Object.create(null);for(var h in a)o[c][h.toLowerCase()]=d(a[h])}return v.parse=v.parse.bind(o),v.render=v.render.bind(o),o}var pt,Fr,Mt={},$r=function(){};$r.prototype=Object.assign(new _r,{alwaysMakePathsAbsolute:function(){return!0},join:function(e,t){return e?this.extractUrlParts(t,e).path:t},doXHR:function(e,t,r,i){var s=new XMLHttpRequest,n=pt.isFileProtocol?pt.fileAsync:!0;typeof s.overrideMimeType=="function"&&s.overrideMimeType("text/css"),Fr.debug("XHR: Getting '"+e+"'"),s.open("GET",e,n),s.setRequestHeader("Accept",t||"text/x-less, text/css; q=0.9, */*; q=0.5"),s.send(null);function l(f,u,v){f.status>=200&&f.status<300?u(f.responseText,f.getResponseHeader("Last-Modified")):typeof v=="function"&&v(f.status,e)}pt.isFileProtocol&&!pt.fileAsync?s.status===0||s.status>=200&&s.status<300?r(s.responseText):i(s.status,e):n?s.onreadystatechange=function(){s.readyState==4&&l(s,r,i)}:l(s,r,i)},supports:function(){return!0},clearFileCache:function(){Mt={}},loadFile:function(e,t,r,i){t&&!this.isPathAbsolute(e)&&(e=t+e),e=r.ext?this.tryAppendExtension(e,r.ext):e,r=r||{};var s=this.extractUrlParts(e,window.location.href),n=s.url,l=this;return new Promise(function(f,u){if(r.useFileCache&&Mt[n])try{var v=Mt[n];return f({contents:v,filename:n,webInfo:{lastModified:new Date}})}catch(d){return u({filename:n,message:"Error loading file "+n+" error was "+d.message})}l.doXHR(n,r.mime,function(a,o){Mt[n]=a,f({contents:a,filename:n,webInfo:{lastModified:o}})},function(a,o){u({type:"File",message:"'"+o+"' wasn't found ("+a+")",href:n})})})}});var Vi=function(e,t){return pt=e,Fr=t,$r},Vr=function(e){this.less=e};Vr.prototype=Object.assign(new Sr,{loadPlugin:function(e,t,r,i,s){return new Promise(function(n,l){s.loadFile(e,t,r,i).then(n).catch(l)})}});var Li=function(e,t){var r=4,i=3,s=2,n=1;t.logLevel=typeof t.logLevel<"u"?t.logLevel:t.env==="development"?i:n,t.loggers||(t.loggers=[{debug:function(f){t.logLevel>=r&&console.log(f)},info:function(f){t.logLevel>=i&&console.log(f)},warn:function(f){t.logLevel>=s&&console.warn(f)},error:function(f){t.logLevel>=n&&console.error(f)}}]);for(var l=0;l<t.loggers.length;l++)e.logger.addListener(t.loggers[l])},Di=function(e,t,r){function i(u,v){var d="less-error-message:"+R(v||""),a='<li><label>{line}</label><pre class="{class}">{content}</pre></li>',o=e.document.createElement("div"),c,h,p=[],g=u.filename||v,m=g.match(/([^\/]+(\?.*)?)$/)[1];o.id=d,o.className="less-error-message",h="<h3>"+(u.type||"Syntax")+"Error: "+(u.message||"There is an error in your .less file")+('</h3><p>in <a href="'+g+'">'+m+"</a> ");var y=function(b,_,I){b.extract[_]!==void 0&&p.push(a.replace(/\{line\}/,(parseInt(b.line,10)||0)+(_-1)).replace(/\{class\}/,I).replace(/\{content\}/,b.extract[_]))};u.line&&(y(u,0,""),y(u,1,"line"),y(u,2,""),h+="on line "+u.line+", column "+(u.column+1)+":</p><ul>"+p.join("")+"</ul>"),u.stack&&(u.extract||r.logLevel>=4)&&(h+="<br/>Stack Trace</br />"+u.stack.split(`
  53. `).slice(1).join("<br/>")),o.innerHTML=h,K.createCSS(e.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(`
  54. `),{title:"error-message"}),o.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(";"),r.env==="development"&&(c=setInterval(function(){var b=e.document,_=b.body;_&&(b.getElementById(d)?_.replaceChild(o,b.getElementById(d)):_.insertBefore(o,_.firstChild),clearInterval(c))},10))}function s(u){var v=e.document.getElementById("less-error-message:"+R(u));v&&v.parentNode.removeChild(v)}function n(u){!r.errorReporting||r.errorReporting==="html"?s(u):r.errorReporting==="console"||typeof r.errorReporting=="function"&&r.errorReporting("remove",u)}function l(u,v){var d="{line} {content}",a=u.filename||v,o=[],c=(u.type||"Syntax")+"Error: "+(u.message||"There is an error in your .less file")+" in "+a,h=function(p,g,m){p.extract[g]!==void 0&&o.push(d.replace(/\{line\}/,(parseInt(p.line,10)||0)+(g-1)).replace(/\{class\}/,m).replace(/\{content\}/,p.extract[g]))};u.line&&(h(u,0,""),h(u,1,"line"),h(u,2,""),c+=" on line "+u.line+", column "+(u.column+1)+`:
  55. `+o.join(`
  56. `)),u.stack&&(u.extract||r.logLevel>=4)&&(c+=`
  57. Stack Trace
  58. `+u.stack),t.logger.error(c)}function f(u,v){!r.errorReporting||r.errorReporting==="html"?i(u,v):r.errorReporting==="console"?l(u,v):typeof r.errorReporting=="function"&&r.errorReporting("add",u,v)}return{add:f,remove:n}},Ui=function(e,t,r){var i=null;if(t.env!=="development")try{i=typeof e.localStorage>"u"?null:e.localStorage}catch{}return{setCSS:function(s,n,l,f){if(i){r.info("saving "+s+" to cache.");try{i.setItem(s,f),i.setItem(s+":timestamp",n),l&&i.setItem(s+":vars",JSON.stringify(l))}catch{r.error('failed to save "'+s+'" to local storage for caching.')}}},getCSS:function(s,n,l){var f=i&&i.getItem(s),u=i&&i.getItem(s+":timestamp"),v=i&&i.getItem(s+":vars");if(l=l||{},v=v||"{}",u&&n.lastModified&&new Date(n.lastModified).valueOf()===new Date(u).valueOf()&&JSON.stringify(l)===v)return f}}},Bi=function(){function e(){throw{type:"Runtime",message:"Image size functions are not supported in browser version of less"}}var t={"image-size":function(r){return e(),-1},"image-width":function(r){return e(),-1},"image-height":function(r){return e(),-1}};be.addMultiple(t)},qi=function(e,t){var r=e.document,i=$i();i.options=t;var s=i.environment,n=Vi(t,i.logger),l=new n;s.addFileManager(l),i.FileManager=n,i.PluginLoader=Vr,Li(i,t);var f=Di(e,i,t),u=i.cache=t.cache||Ui(e,t,i.logger);Bi(i.environment),t.functions&&i.functions.functionRegistry.addMultiple(t.functions);var v=/^text\/(x-)?less$/;function d(g){var m={};for(var y in g)g.hasOwnProperty(y)&&(m[y]=g[y]);return m}function a(g,m){var y=Array.prototype.slice.call(arguments,2);return function(){var b=y.concat(Array.prototype.slice.call(arguments,0));return g.apply(m,b)}}function o(g){for(var m=r.getElementsByTagName("style"),y,b=0;b<m.length;b++)if(y=m[b],y.type.match(v)){var _=d(t);_.modifyVars=g;var I=y.innerHTML||"";_.filename=r.location.href.replace(/#.*$/,""),i.render(I,_,a(function(E,O,j){O?f.add(O,"inline"):(E.type="text/css",E.styleSheet?E.styleSheet.cssText=j.css:E.innerHTML=j.css)},null,y))}}function c(g,m,y,b,_){var I=d(t);A(I,g),I.mime=g.type,_&&(I.modifyVars=_);function E(O){var j=O.contents,T=O.filename,le=O.webInfo,Z={currentDirectory:l.getPath(T),filename:T,rootFilename:T,rewriteUrls:I.rewriteUrls};if(Z.entryPath=Z.currentDirectory,Z.rootpath=I.rootpath||Z.currentDirectory,le){le.remaining=b;var X=u.getCSS(T,le,I.modifyVars);if(!y&&X){le.local=!0,m(null,X,j,g,le,T);return}}f.remove(T),I.rootFileInfo=Z,i.render(j,I,function(oe,Se){oe?(oe.href=T,m(oe)):(u.setCSS(g.href,le.lastModified,I.modifyVars,Se.css),m(null,Se.css,j,g,le,T))})}l.loadFile(g.href,null,I,s).then(function(O){E(O)}).catch(function(O){console.log(O),m(O)})}function h(g,m,y){for(var b=0;b<i.sheets.length;b++)c(i.sheets[b],g,m,i.sheets.length-(b+1),y)}function p(){i.env==="development"&&(i.watchTimer=setInterval(function(){i.watchMode&&(l.clearFileCache(),h(function(g,m,y,b,_){g?f.add(g,g.href||b.href):m&&K.createCSS(e.document,m,b)}))},t.poll))}return i.watch=function(){return i.watchMode||(i.env="development",p()),this.watchMode=!0,!0},i.unwatch=function(){return clearInterval(i.watchTimer),this.watchMode=!1,!1},i.registerStylesheetsImmediately=function(){var g=r.getElementsByTagName("link");i.sheets=[];for(var m=0;m<g.length;m++)(g[m].rel==="stylesheet/less"||g[m].rel.match(/stylesheet/)&&g[m].type.match(v))&&i.sheets.push(g[m])},i.registerStylesheets=function(){return new Promise(function(g,m){i.registerStylesheetsImmediately(),g()})},i.modifyVars=function(g){return i.refresh(!0,g,!1)},i.refresh=function(g,m,y){return(g||y)&&y!==!1&&l.clearFileCache(),new Promise(function(b,_){var I,E,O,j;I=E=new Date,j=i.sheets.length,j===0?(E=new Date,O=E-I,i.logger.info("Less has finished and no sheets were loaded."),b({startTime:I,endTime:E,totalMilliseconds:O,sheets:i.sheets.length})):h(function(T,le,Z,X,oe){if(T){f.add(T,T.href||X.href),_(T);return}oe.local?i.logger.info("Loading "+X.href+" from cache."):i.logger.info("Rendered "+X.href+" successfully."),K.createCSS(e.document,le,X),i.logger.info("CSS for "+X.href+" generated in "+(new Date-E)+"ms"),j--,j===0&&(O=new Date-I,i.logger.info("Less has finished. CSS generated in "+O+"ms"),b({startTime:I,endTime:E,totalMilliseconds:O,sheets:i.sheets.length})),E=new Date},g,m),o(m)})},i.refreshStyles=o,i},Ue=x();if(window.less)for(var Ht in window.less)window.less.hasOwnProperty(Ht)&&(Ue[Ht]=window.less[Ht]);U(window,Ue),Ue.plugins=Ue.plugins||[],window.LESS_PLUGINS&&(Ue.plugins=Ue.plugins.concat(window.LESS_PLUGINS));var Je=qi(window,Ue);window.less=Je;var Gt,Kt,Qe;function Lr(e){e.filename&&console.warn(e),Ue.async||Kt.removeChild(Qe)}return Ue.onReady&&(/!watch/.test(window.location.hash)&&Je.watch(),Ue.async||(Gt="body { display: none !important }",Kt=document.head||document.getElementsByTagName("head")[0],Qe=document.createElement("style"),Qe.type="text/css",Qe.styleSheet?Qe.styleSheet.cssText=Gt:Qe.appendChild(document.createTextNode(Gt)),Kt.appendChild(Qe)),Je.registerStylesheetsImmediately(),Je.pageLoadFinished=Je.refresh(Je.env==="development").then(Lr,Lr)),Je})})(Vs);const Ls=Xt;const Ds=M=>(yt("data-v-cef799b1"),M=M(),bt(),M),Us={class:"sw-menu"},Bs=["src"],qs=["src"],js=["onClick"],Ts=Ds(()=>F("span",null,"收缩菜单栏",-1)),zs={__name:"menu",setup(M){const k=Ye(),x=Xe();let{mods:R,actMod:A,current:K,openKeys:U,menuShow:q}=Ze(x);const z=B=>{U.value=B.openKeys},H=(B,J,V)=>{K.value=B.keyPath},ne=B=>{A.value=B},G=B=>{console.log(B),k.replace({path:B.path,meta:{keepAlive:!1}})};console.log(R.value);const C=Q({}),L=B=>{B==="light"?(C.value={primaryColor:"#f23557",errorColor:"#eb586f",warningColor:"#ffde7d",successColor:"#4aa0d5",infoColor:"#d8e9f0"},Qt.config({theme:C.value})):B==="normal"?(C.value={primaryColor:"#14317D",errorColor:"#ff4d4f",warningColor:"#faad14",successColor:"#52c41a",infoColor:"#1890ff"},Qt.config({theme:C.value})):B==="caffairs"&&(Ls.modifyVars({"@base":"#fff"}).then(()=>{console.log("Primary color has been changed")}).catch(J=>{console.error(J)}),C.value={primaryColor:"#404b69",errorColor:"#ff5f5f",warningColor:"#ffc93c",successColor:"#1fab89",infoColor:"#dbedf3",menuBg:"#fff"},Qt.config({theme:C.value}))};return Ki(()=>{L("normal")}),(B,J)=>{const V=Y("a-menu-item"),ee=Y("a-sub-menu"),he=Y("a-menu"),se=Y("a-tooltip");return N(),ie("div",Us,[P(he,{style:{flex:"1"},selectedKeys:S(K),"onUpdate:selectedKeys":J[0]||(J[0]=te=>we(K)?K.value=te:K=te),openKeys:S(U),"onUpdate:openKeys":J[1]||(J[1]=te=>we(U)?U.value=te:U=te),mode:"inline","active-text-color":"#000",onClick:H,onOpen:z},{default:D(()=>[(N(!0),ie(Oe,null,Ne(S(R),te=>(N(),ie(Oe,{key:te.systemmoduleid},[te.apps.length>1?(N(),Ce(ee,{key:te.systemmoduleid,onClick:$=>ne(te)},{title:D(()=>[F("div",null,pe(te.systemmodulename),1)]),icon:D(()=>[F("img",{style:{width:"14px",height:"14px"},src:te.iconurl},null,8,Bs)]),default:D(()=>[(N(!0),ie(Oe,null,Ne(te.apps,$=>(N(),Ce(V,{key:$.systemappid,onClick:re=>G($)},{default:D(()=>[qe(pe($.meta.title),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["onClick"])):Fe("",!0),te.apps.length==1?(N(),Ce(V,{key:te.systemmoduleid,onClick:$=>ne(te)},{icon:D(()=>[F("img",{style:{width:"14px",height:"14px"},src:te.iconurl},null,8,qs)]),default:D(()=>[F("span",{onClick:$=>G(te.apps[0])},pe(te.apps[0].meta.title),9,js)]),_:2},1032,["onClick"])):Fe("",!0)],64))),128))]),_:1},8,["selectedKeys","openKeys"]),P(se,{placement:"right"},{title:D(()=>[Ts]),default:D(()=>[F("i",{class:"iconfont",onClick:J[2]||(J[2]=te=>we(q)?q.value=!1:q=!1)},"")]),_:1})])}}},Ns=He(zs,[["__scopeId","data-v-cef799b1"]]);const Ws={class:"sw-tabs"},Hs={class:"sw-active"},Gs={__name:"historyTabs",setup(M){const k=Ye();Xe();const x=Yt();let{historyRoutes:R,activeKey:A}=Ze(x);Q([]);const K=q=>{let z=k.currentRoute.value.name;x.delRoute(q.name,z)},U=q=>{A.value=q;let z=R.value.filter(H=>H.name==q);k.push({name:z[0].name,query:z[0].query,meta:{keepAlive:!1}})};return(q,z)=>{const H=Y("a-tab-pane"),ne=Y("a-tabs");return N(),ie("div",Ws,[P(ne,{activeKey:S(A),"onUpdate:activeKey":z[0]||(z[0]=G=>we(A)?A.value=G:A=G),size:"small","hide-add":"",type:"card",tabBarGutter:0,onEdit:K,onChange:U,tabBarStyle:{margin:"0px 0px 0px -1px",border:"none"}},{default:D(()=>[(N(!0),ie(Oe,null,Ne(S(R),G=>(N(),Ce(H,{key:G.name,closable:""},{tab:D(()=>[F("span",Hs,[qe(pe(G.meta.title)+"  ",1),P(S(tn),{style:{transform:"scale(0.8)",color:"#999999",margin:"0 !important",padding:"5px 17px 5px 5px"},onClick:Gr(C=>K(G),["stop"])},null,8,["onClick"])])]),_:2},1024))),128))]),_:1},8,["activeKey"])])}}},Ks=He(Gs,[["__scopeId","data-v-47bd5d0b"]]),Js={__name:"index",setup(M){const k=Ye(),x=Q(null),R=()=>{const z="wss://www.ibpchina.com.cn/waserver/webSocket/"+sessionStorage.getItem("token");console.log(z),x.value=new WebSocket(z),x.value.onmessage=U,x.value.onopen=A,x.value.onerror=K,x.value.onclose=q},A=()=>{},K=()=>{R()},U=z=>{console.log(z);const H=JSON.parse(z.data);H.message.title=="refresh"?Kr.info({title:"版本更新",icon:P(Jr),content:qr("div",{},[qr("p","1.优化了系统的操作流程...")]),okText:"确认更新",centered:!0,onOk(){k.go(0)},class:"test"}):rn.info({message:H.message.type,description:H.message.text,onClick:()=>{}})},q=z=>{console.log("断开连接",z)};return gt(()=>{setTimeout(()=>{R()},1e3)}),Ji(()=>{x.value&&x.value.onclose()}),(z,H)=>(N(),ie("div"))}};const Qs={class:"flex"},na={__name:"index",setup(M){const k=Ye(),x=Xe();let{isRefresh:R,menuShow:A}=Ze(x);return(K,U)=>{const q=Y("router-view"),z=Y("a-layout-content"),H=Y("a-layout");return N(),Ce(H,{class:"sw-layout"},{default:D(()=>[P(Js),P(xs),F("div",Qs,[P($s),P(Ns,{style:Pt({display:S(A)?"inline-block":"none"})},null,8,["style"]),P(z,{class:"content-height"},{default:D(()=>[P(Ks),F("div",{style:Pt({padding:"10px",height:"calc(100vh - 100px)",overflowY:"scroll"})},[P(q,null,{default:D(({Component:ne})=>[(N(),Ce(Qi,null,[K.$route.meta.keepAlive?(N(),Ce(jr(ne),{key:S(k).currentRoute.value.fullPath})):Fe("",!0)],1024)),K.$route.meta.keepAlive?Fe("",!0):(N(),Ce(jr(ne),{key:S(k).currentRoute.value.fullPath}))]),_:1})],4)]),_:1})])]),_:1})}}};export{na as default};