@datalayer/agent-runtimes 1.6.21 → 1.6.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-embed/chunks/{CollapsiblePlugin-B85HBp8b.js → CollapsiblePlugin-Bn70jFpi.js} +1 -1
- package/dist-embed/chunks/{DeckComponent-DnMHEQJo.js → DeckComponent-DuxVpxzx.js} +1 -1
- package/dist-embed/chunks/{DocumentView-3aE4btpU.js → DocumentView-DKLkbwvh.js} +1 -1
- package/dist-embed/chunks/{EphemeralDocument-DLAoDnRi.js → EphemeralDocument-CAXNOtEL.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawComponent-BJYnSolA.js → ExcalidrawComponent-mHitiMde.js} +1 -1
- package/dist-embed/chunks/{ExcalidrawModal-DmcKDOu0.js → ExcalidrawModal-KB4MTQbk.js} +1 -1
- package/dist-embed/chunks/{JupyterLexicalExtension-D-dDKj_U.js → JupyterLexicalExtension-BtjDYMne.js} +5 -5
- package/dist-embed/chunks/{YouTubePlugin-B26ThLdI.js → YouTubePlugin-B6JmeO6g.js} +1 -1
- package/dist-embed/chunks/{ar-SA-G6X2FPQ2-DrKp-GT1.js → ar-SA-G6X2FPQ2-BtDm_vBV.js} +1 -1
- package/dist-embed/chunks/{az-AZ-76LH7QW2-kanwrGa7.js → az-AZ-76LH7QW2-CU9PzGa-.js} +1 -1
- package/dist-embed/chunks/babel-xT8DLG14.js +16 -0
- package/dist-embed/chunks/{bg-BG-XCXSNQG7-B-YkMqs9.js → bg-BG-XCXSNQG7-CcZG1sMf.js} +1 -1
- package/dist-embed/chunks/{bn-BD-2XOGV67Q-C2LRshMO.js → bn-BD-2XOGV67Q-CsBxRWS8.js} +1 -1
- package/dist-embed/chunks/{ca-ES-6MX7JW3Y-CH-XjE7A.js → ca-ES-6MX7JW3Y-DiPlBY-L.js} +1 -1
- package/dist-embed/chunks/{cs-CZ-2BRQDIVT-CZsinbV8.js → cs-CZ-2BRQDIVT-B2LG8kaF.js} +1 -1
- package/dist-embed/chunks/{da-DK-5WZEPLOC-BKE16CYd.js → da-DK-5WZEPLOC-CjiEJ2dL.js} +1 -1
- package/dist-embed/chunks/{de-DE-XR44H4JA-Bef67X55.js → de-DE-XR44H4JA-D2hSEI1m.js} +1 -1
- package/dist-embed/chunks/{el-GR-BZB4AONW-DdhJZ7Lx.js → el-GR-BZB4AONW-C7ps3kie.js} +1 -1
- package/dist-embed/chunks/{es-ES-U4NZUMDT-BYuerEZq.js → es-ES-U4NZUMDT-BfNMUvfg.js} +1 -1
- package/dist-embed/chunks/estree-BbkbXjhR.js +44 -0
- package/dist-embed/chunks/{eu-ES-A7QVB2H4-Bx1ZMbch.js → eu-ES-A7QVB2H4-CBQcRcNh.js} +1 -1
- package/dist-embed/chunks/{fa-IR-HGAKTJCU-DOlQSonG.js → fa-IR-HGAKTJCU-CKTkkQUk.js} +1 -1
- package/dist-embed/chunks/{fi-FI-Z5N7JZ37-CEvqx_B0.js → fi-FI-Z5N7JZ37-B2flJw4O.js} +1 -1
- package/dist-embed/chunks/{fr-FR-RHASNOE6-B6dmIROy.js → fr-FR-RHASNOE6-DCWxP6nh.js} +1 -1
- package/dist-embed/chunks/{gl-ES-HMX3MZ6V-DET0-zSB.js → gl-ES-HMX3MZ6V-BGEA0PhL.js} +1 -1
- package/dist-embed/chunks/{he-IL-6SHJWFNN-D8q7vnmN.js → he-IL-6SHJWFNN-BaHixqAA.js} +1 -1
- package/dist-embed/chunks/{hi-IN-IWLTKZ5I-WKOut6Ph.js → hi-IN-IWLTKZ5I-CrHbvHN0.js} +1 -1
- package/dist-embed/chunks/html-DVpylSNq.js +25 -0
- package/dist-embed/chunks/{hu-HU-A5ZG7DT2-D8S_FCMc.js → hu-HU-A5ZG7DT2-B9wQnRpK.js} +1 -1
- package/dist-embed/chunks/{id-ID-SAP4L64H-C1MpnR6j.js → id-ID-SAP4L64H-T0pQVB4m.js} +1 -1
- package/dist-embed/chunks/{it-IT-JPQ66NNP-CmSi2-kQ.js → it-IT-JPQ66NNP-ECgWHvcY.js} +1 -1
- package/dist-embed/chunks/{ja-JP-DBVTYXUO-f3Xycaxf.js → ja-JP-DBVTYXUO-Cz96ctDW.js} +1 -1
- package/dist-embed/chunks/{kaa-6HZHGXH3-CDjiUexP.js → kaa-6HZHGXH3-Cu7gLGxC.js} +1 -1
- package/dist-embed/chunks/{kab-KAB-ZGHBKWFO-C7pc9jkA.js → kab-KAB-ZGHBKWFO-CoJI939s.js} +1 -1
- package/dist-embed/chunks/{kk-KZ-P5N5QNE5-DKB4lHwJ.js → kk-KZ-P5N5QNE5-DiEAZ9si.js} +1 -1
- package/dist-embed/chunks/{km-KH-HSX4SM5Z-Tct1wYe_.js → km-KH-HSX4SM5Z-CNF1qzO2.js} +1 -1
- package/dist-embed/chunks/{ko-KR-MTYHY66A-D75KXFFg.js → ko-KR-MTYHY66A-BCvHfgyK.js} +1 -1
- package/dist-embed/chunks/{ku-TR-6OUDTVRD-DFFv9y6o.js → ku-TR-6OUDTVRD-BV9JoFXu.js} +1 -1
- package/dist-embed/chunks/{lib-CWYlnae_.js → lib-BkW0DwuV.js} +1 -1
- package/dist-embed/chunks/{lt-LT-XHIRWOB4-b_ZSHKuX.js → lt-LT-XHIRWOB4-BpoBiZvj.js} +1 -1
- package/dist-embed/chunks/{lv-LV-5QDEKY6T-DOkd9vjo.js → lv-LV-5QDEKY6T-DWPLOycm.js} +1 -1
- package/dist-embed/chunks/markdown-Czq15M7Q.js +70 -0
- package/dist-embed/chunks/{mr-IN-CRQNXWMA-DgtGEhds.js → mr-IN-CRQNXWMA-C3XokKLN.js} +1 -1
- package/dist-embed/chunks/{my-MM-5M5IBNSE-Wx2nX-HX.js → my-MM-5M5IBNSE-bPDcBtIx.js} +1 -1
- package/dist-embed/chunks/{nb-NO-T6EIAALU-Bxg1hz2F.js → nb-NO-T6EIAALU-zGQywuc4.js} +1 -1
- package/dist-embed/chunks/{nl-NL-IS3SIHDZ-CuTty8ZU.js → nl-NL-IS3SIHDZ-D0N-QxdB.js} +1 -1
- package/dist-embed/chunks/{nn-NO-6E72VCQL-yF9Qjmvy.js → nn-NO-6E72VCQL-BeiBipEM.js} +1 -1
- package/dist-embed/chunks/{oc-FR-POXYY2M6-DzhTICBK.js → oc-FR-POXYY2M6-BSmiDtLw.js} +1 -1
- package/dist-embed/chunks/{pa-IN-N4M65BXN-BLaNcNfP.js → pa-IN-N4M65BXN-YTioBliU.js} +1 -1
- package/dist-embed/chunks/{percentages-BXMCSKIN-BSFk0Tks.js → percentages-BXMCSKIN-B5BZ64UL.js} +3 -3
- package/dist-embed/chunks/{pl-PL-T2D74RX3-Cny-MZTY.js → pl-PL-T2D74RX3-BmA-mIoA.js} +1 -1
- package/dist-embed/chunks/postcss-ClUAhyQz.js +62 -0
- package/dist-embed/chunks/{pt-BR-5N22H2LF-B0D69qws.js → pt-BR-5N22H2LF-DF1nGVg3.js} +1 -1
- package/dist-embed/chunks/{pt-PT-UZXXM6DQ-BstfsxvV.js → pt-PT-UZXXM6DQ-DhiSFYNH.js} +1 -1
- package/dist-embed/chunks/{ro-RO-JPDTUUEW-BP5Qc7BF.js → ro-RO-JPDTUUEW-DN5nT_8E.js} +1 -1
- package/dist-embed/chunks/{ru-RU-B4JR7IUQ-CnAMP9Hu.js → ru-RU-B4JR7IUQ-DJAZColu.js} +1 -1
- package/dist-embed/chunks/{si-LK-N5RQ5JYF-KUaQDZ4v.js → si-LK-N5RQ5JYF-BcJdGNJf.js} +1 -1
- package/dist-embed/chunks/{sk-SK-C5VTKIMK-CG7XdLGl.js → sk-SK-C5VTKIMK-Bs43X2b-.js} +1 -1
- package/dist-embed/chunks/{sl-SI-NN7IZMDC-e_SFsMsv.js → sl-SI-NN7IZMDC-CVhBQ31i.js} +1 -1
- package/dist-embed/chunks/standalone-BmUQQ5LE.js +29 -0
- package/dist-embed/chunks/{subset-shared.chunk-Cn_vjsJA.js → subset-shared.chunk-BkTdi2-W.js} +1 -1
- package/dist-embed/chunks/{subset-worker.chunk-W_rTkgB8.js → subset-worker.chunk-SkNsdM6t.js} +1 -1
- package/dist-embed/chunks/{sv-SE-XGPEYMSR-DHzvVSOu.js → sv-SE-XGPEYMSR-BR0XZMXJ.js} +1 -1
- package/dist-embed/chunks/{ta-IN-2NMHFXQM-opB0ehqF.js → ta-IN-2NMHFXQM-4CfGQQ8v.js} +1 -1
- package/dist-embed/chunks/{th-TH-HPSO5L25-DLQWbRw6.js → th-TH-HPSO5L25-CjO8TBa6.js} +1 -1
- package/dist-embed/chunks/{tr-TR-DEFEU3FU-BB46Zv5P.js → tr-TR-DEFEU3FU-B3tO43YQ.js} +1 -1
- package/dist-embed/chunks/typescript-BLZ3EhMp.js +22 -0
- package/dist-embed/chunks/{uk-UA-QMV73CPH-PSr9uqn6.js → uk-UA-QMV73CPH-DYk01HNs.js} +1 -1
- package/dist-embed/chunks/{vi-VN-M7AON7JQ-B8XFOV9x.js → vi-VN-M7AON7JQ-Dyd2Hf1G.js} +1 -1
- package/dist-embed/chunks/{zh-CN-LNUGB5OW-Cw-MnTuW.js → zh-CN-LNUGB5OW-Bs2W1BrY.js} +1 -1
- package/dist-embed/chunks/{zh-HK-E62DVLB3-C6TwyE2U.js → zh-HK-E62DVLB3-BwN2oc_m.js} +1 -1
- package/dist-embed/chunks/{zh-TW-RAJ6MFWO-CLS-sbQC.js → zh-TW-RAJ6MFWO-qOevWsjt.js} +1 -1
- package/dist-embed/datalayer-app-main.js +15 -9
- package/lib/specs/actions.js +7 -0
- package/lib/specs/agents/agents.d.ts +1 -0
- package/lib/specs/agents/agents.js +139 -1
- package/lib/specs/apps.d.ts +1 -0
- package/lib/specs/apps.js +352 -0
- package/lib/specs/backendTools.d.ts +5 -0
- package/lib/specs/backendTools.js +95 -0
- package/lib/specs/policies.d.ts +1 -0
- package/lib/specs/policies.js +17 -0
- package/package.json +1 -1
- package/dist-embed/chunks/babel-DYThBADt.js +0 -16
- package/dist-embed/chunks/estree-C_HWBWad.js +0 -44
- package/dist-embed/chunks/html-BdbYoS8g.js +0 -25
- package/dist-embed/chunks/markdown-BWelGxUI.js +0 -70
- package/dist-embed/chunks/postcss-Bqhj58AT.js +0 -62
- package/dist-embed/chunks/standalone-Lm5oSWJc.js +0 -29
- package/dist-embed/chunks/typescript-Ctd41k9v.js +0 -22
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import{as as _a}from"../datalayer-app-main.js";function Sa(Ee,mt){for(var he=0;he<mt.length;he++){const Z=mt[he];if(typeof Z!="string"&&!Array.isArray(Z)){for(const X in Z)if(X!=="default"&&!(X in Ee)){const Ie=Object.getOwnPropertyDescriptor(Z,X);Ie&&Object.defineProperty(Ee,X,Ie.get?Ie:{enumerable:!0,get:()=>Z[X]})}}}return Object.freeze(Object.defineProperty(Ee,Symbol.toStringTag,{value:"Module"}))}var Qt={exports:{}},ms;function Ca(){return ms||(ms=1,(function(Ee,mt){(function(he){function Z(){var X=he();return X.default||X}Ee.exports=Z()})(function(){var he=Object.create,Z=Object.defineProperty,X=Object.getOwnPropertyDescriptor,Ie=Object.getOwnPropertyNames,bs=Object.getPrototypeOf,xs=Object.prototype.hasOwnProperty,E=(e,n)=>()=>{try{return n||e((n={exports:{}}).exports,n),n.exports}catch(o){throw n=0,o}},Yt=(e,n)=>{for(var o in n)Z(e,o,{get:n[o],enumerable:!0})},Kt=(e,n,o,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of Ie(n))!xs.call(e,i)&&i!==o&&Z(e,i,{get:()=>n[i],enumerable:!(r=X(n,i))||r.enumerable});return e},we=(e,n,o)=>(o=e!=null?he(bs(e)):{},Kt(Z(o,"default",{value:e,enumerable:!0}),e)),ks=e=>Kt(Z({},"__esModule",{value:!0}),e),Os=E((e,n)=>{var o=String,r=function(){return{isColorSupported:!1,reset:o,bold:o,dim:o,italic:o,underline:o,inverse:o,hidden:o,strikethrough:o,black:o,red:o,green:o,yellow:o,blue:o,magenta:o,cyan:o,white:o,gray:o,bgBlack:o,bgRed:o,bgGreen:o,bgYellow:o,bgBlue:o,bgMagenta:o,bgCyan:o,bgWhite:o,blackBright:o,redBright:o,greenBright:o,yellowBright:o,blueBright:o,magentaBright:o,cyanBright:o,whiteBright:o,bgBlackBright:o,bgRedBright:o,bgGreenBright:o,bgYellowBright:o,bgBlueBright:o,bgMagentaBright:o,bgCyanBright:o,bgWhiteBright:o}};n.exports=r(),n.exports.createColors=r}),Zt=E(()=>{}),yt=E((e,n)=>{"use strict";var o=Os(),r=Zt(),i=class ys extends Error{constructor(p,m,f,d,t,s){super(p),this.name="CssSyntaxError",this.reason=p,t&&(this.file=t),d&&(this.source=d),s&&(this.plugin=s),typeof m<"u"&&typeof f<"u"&&(typeof m=="number"?(this.line=m,this.column=f):(this.line=m.line,this.column=m.column,this.endLine=f.line,this.endColumn=f.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,ys)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(p){if(!this.source)return"";let m=this.source;p==null&&(p=o.isColorSupported);let f=u=>u,d=u=>u,t=u=>u;if(p){let{bold:u,gray:v,red:g}=o.createColors(!0);d=y=>u(g(y)),f=y=>v(y),r&&(t=y=>r(y))}let s=m.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),h=String(l).length;return s.slice(a,l).map((u,v)=>{let g=a+1+v,y=" "+(" "+g).slice(-h)+" | ";if(g===this.line){if(u.length>160){let O=20,b=Math.max(0,this.column-O),T=Math.max(this.column+O,this.endColumn+O),x=u.slice(b,T),k=f(y.replace(/\d/g," "))+u.slice(0,Math.min(this.column-1,O-1)).replace(/[^\t]/g," ");return d(">")+f(y)+t(x)+`
|
|
2
|
-
`+k+d("^")}let w=f(y.replace(/\d/g," "))+u.slice(0,this.column-1).replace(/[^\t]/g," ");return d(">")+f(y)+t(u)+`
|
|
3
|
-
`+w+d("^")}return" "+f(y)+t(u)}).join(`
|
|
4
|
-
`)}toString(){let p=this.showSourceCode();return p&&(p=`
|
|
5
|
-
|
|
6
|
-
`+p+`
|
|
7
|
-
`),this.name+": "+this.message+p}};n.exports=i,i.default=i}),vt=E((e,n)=>{"use strict";var o=/(<)(\/?style\b)/gi,r=/(<)(!--)/g;function i(f){return typeof f!="string"||!f.includes("<")?f:f.replace(o,"\\3c $2").replace(r,"\\3c $2")}var c={after:`
|
|
8
|
-
`,beforeClose:`
|
|
9
|
-
`,beforeComment:`
|
|
10
|
-
`,beforeDecl:`
|
|
11
|
-
`,beforeOpen:" ",beforeRule:`
|
|
12
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function p(f){return f[0].toUpperCase()+f.slice(1)}var m=class{constructor(f){this.builder=f}atrule(f,d){let t=f.raws,s="@"+f.name,a=f.params?this.rawValue(f,"params"):"";if(typeof t.afterName<"u"?s+=t.afterName:a&&(s+=" "),f.nodes)this.block(f,s+a);else{let l=(t.between||"")+(d?";":"");this.builder(i(s+a+l),f)}}beforeAfter(f,d){let t;f.type==="decl"?t=this.raw(f,null,"beforeDecl"):f.type==="comment"?t=this.raw(f,null,"beforeComment"):d==="before"?t=this.raw(f,null,"beforeRule"):t=this.raw(f,null,"beforeClose");let s=f.parent,a=0;for(;s&&s.type!=="root";)a+=1,s=s.parent;if(t.includes(`
|
|
13
|
-
`)){let l=this.raw(f,null,"indent");if(l.length)for(let h=0;h<a;h++)t+=l}return t}block(f,d){let t=this.raw(f,"between","beforeOpen");this.builder(i(d+t)+"{",f,"start");let s;f.nodes&&f.nodes.length?(this.body(f),s=this.raw(f,"after")):s=this.raw(f,"after","emptyBody"),s&&this.builder(i(s)),this.builder("}",f,"end")}body(f){let d=f.nodes,t=d.length-1;for(;t>0&&d[t].type==="comment";)t-=1;let s=this.raw(f,"semicolon"),a=f.type==="document";for(let l=0;l<d.length;l++){let h=d[l],u=this.raw(h,"before");u&&this.builder(a?u:i(u)),this.stringify(h,t!==l||s)}}comment(f){let d=this.raw(f,"left","commentLeft"),t=this.raw(f,"right","commentRight");this.builder(i("/*"+d+f.text+t+"*/"),f)}decl(f,d){let t=f.raws,s=this.raw(f,"between","colon"),a=f.prop+s+this.rawValue(f,"value");f.important&&(a+=t.important||" !important"),d&&(a+=";"),this.builder(i(a),f)}document(f){this.body(f)}raw(f,d,t){let s;if(t||(t=d),d&&(s=f.raws[d],typeof s<"u"))return s;let a=f.parent;if(t==="before"&&(!a||a.type==="root"&&a.first===f||a&&a.type==="document"))return"";if(!a)return c[t];let l=f.root(),h=l.rawCache||(l.rawCache={});if(typeof h[t]<"u")return h[t];if(t==="before"||t==="after")return this.beforeAfter(f,t);{let u="raw"+p(t);this[u]?s=this[u](l,f):l.walk(v=>{if(s=v.raws[d],typeof s<"u")return!1})}return typeof s>"u"&&(s=c[t]),h[t]=s,s}rawBeforeClose(f){let d;return f.walk(t=>{if(t.nodes&&t.nodes.length>0&&typeof t.raws.after<"u")return d=t.raws.after,d.includes(`
|
|
14
|
-
`)&&(d=d.replace(/[^\n]+$/,"")),!1}),d&&(d=d.replace(/\S/g,"")),d}rawBeforeComment(f,d){let t;return f.walkComments(s=>{if(typeof s.raws.before<"u")return t=s.raws.before,t.includes(`
|
|
15
|
-
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),typeof t>"u"?t=this.raw(d,null,"beforeDecl"):t&&(t=t.replace(/\S/g,"")),t}rawBeforeDecl(f,d){let t;return f.walkDecls(s=>{if(typeof s.raws.before<"u")return t=s.raws.before,t.includes(`
|
|
16
|
-
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),typeof t>"u"?t=this.raw(d,null,"beforeRule"):t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(f){let d;return f.walk(t=>{if(t.type!=="decl"&&(d=t.raws.between,typeof d<"u"))return!1}),d}rawBeforeRule(f){let d;return f.walk(t=>{if(t.nodes&&(t.parent!==f||f.first!==t)&&typeof t.raws.before<"u")return d=t.raws.before,d.includes(`
|
|
17
|
-
`)&&(d=d.replace(/[^\n]+$/,"")),!1}),d&&(d=d.replace(/\S/g,"")),d}rawColon(f){let d;return f.walkDecls(t=>{if(typeof t.raws.between<"u")return d=t.raws.between.replace(/[^\s:]/g,""),!1}),d}rawEmptyBody(f){let d;return f.walk(t=>{if(t.nodes&&t.nodes.length===0&&(d=t.raws.after,typeof d<"u"))return!1}),d}rawIndent(f){if(f.raws.indent)return f.raws.indent;let d;return f.walk(t=>{let s=t.parent;if(s&&s!==f&&s.parent&&s.parent===f&&typeof t.raws.before<"u"){let a=t.raws.before.split(`
|
|
18
|
-
`);return d=a[a.length-1],d=d.replace(/\S/g,""),!1}}),d}rawSemicolon(f){let d;return f.walk(t=>{if(t.nodes&&t.nodes.length&&t.last.type==="decl"&&(d=t.raws.semicolon,typeof d<"u"))return!1}),d}rawValue(f,d){let t=f[d],s=f.raws[d];return s&&s.value===t?s.raw:t}root(f){if(this.body(f),f.raws.after){let d=f.raws.after,t=f.parent&&f.parent.type==="document";this.builder(t?d:i(d))}}rule(f){this.block(f,this.rawValue(f,"selector")),f.raws.ownSemicolon&&this.builder(i(f.raws.ownSemicolon),f,"end")}stringify(f,d){if(!this[f.type])throw new Error("Unknown AST node type "+f.type+". Maybe you need to change PostCSS stringifier.");this[f.type](f,d)}};n.exports=m,m.default=m}),He=E((e,n)=>{"use strict";var o=vt();function r(i,c){new o(c).stringify(i)}n.exports=r,r.default=r}),gt=E((e,n)=>{"use strict";n.exports.isClean=Symbol("isClean"),n.exports.my=Symbol("my")}),Qe=E((e,n)=>{"use strict";var o=yt(),r=vt(),i=He(),{isClean:c,my:p}=gt();function m(t,s){let a=new t.constructor;for(let l in t){if(!Object.prototype.hasOwnProperty.call(t,l)||l==="proxyCache")continue;let h=t[l],u=typeof h;l==="parent"&&u==="object"?s&&(a[l]=s):l==="source"?a[l]=h:Array.isArray(h)?a[l]=h.map(v=>m(v,a)):(u==="object"&&h!==null&&(h=m(h)),a[l]=h)}return a}function f(t,s){if(s&&typeof s.offset<"u")return s.offset;let a=1,l=1,h=0;for(let u=0;u<t.length;u++){if(l===s.line&&a===s.column){h=u;break}t[u]===`
|
|
19
|
-
`?(a=1,l+=1):a+=1}return h}var d=class{get proxyOf(){return this}constructor(t={}){this.raws={},this[c]=!1,this[p]=!0;for(let s in t)if(s==="nodes"){this.nodes=[];for(let a of t[s])typeof a.clone=="function"&&a.parent?this.append(a.clone()):this.append(a)}else this[s]=t[s]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let s=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let s in t)this[s]=t[s];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let s=m(this);for(let a in t)s[a]=t[a];return s}cloneAfter(t={}){let s=this.clone(t);return this.parent.insertAfter(this,s),s}cloneBefore(t={}){let s=this.clone(t);return this.parent.insertBefore(this,s),s}error(t,s={}){if(this.source){let{end:a,start:l}=this.rangeBy(s);return this.source.input.error(t,{column:l.column,line:l.line},{column:a.column,line:a.line},s)}return new o(t)}getProxyProcessor(){return{get(t,s){return s==="proxyOf"?t:s==="root"?()=>t.root().toProxy():t[s]},set(t,s,a){return t[s]===a||(t[s]=a,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&t.markDirty()),!0}}}markClean(){this[c]=!0}markDirty(){if(this[c]){this[c]=!1;let t=this;for(;t=t.parent;)t[c]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let s="document"in this.source.input?this.source.input.document:this.source.input.css,a={column:this.source.start.column,line:this.source.start.line,offset:f(s,this.source.start)};if(t.index)a=this.positionInside(t.index);else if(t.word){let l=s.slice(f(s,this.source.start),f(s,this.source.end)).indexOf(t.word);l!==-1&&(a=this.positionInside(l))}return a}positionInside(t){let s=this.source.start.column,a=this.source.start.line,l="document"in this.source.input?this.source.input.document:this.source.input.css,h=f(l,this.source.start),u=h+t;for(let v=h;v<u;v++)l[v]===`
|
|
20
|
-
`?(s=1,a+=1):s+=1;return{column:s,line:a,offset:u}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let s="document"in this.source.input?this.source.input.document:this.source.input.css,a={column:this.source.start.column,line:this.source.start.line,offset:f(s,this.source.start)},l=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:f(s,this.source.end)+1}:{column:a.column+1,line:a.line,offset:a.offset+1};if(t.word){let h=s.slice(f(s,this.source.start),f(s,this.source.end)).indexOf(t.word);h!==-1&&(a=this.positionInside(h),l=this.positionInside(h+t.word.length))}else t.start?a={column:t.start.column,line:t.start.line,offset:f(s,t.start)}:typeof t.index=="number"&&(a=this.positionInside(t.index)),t.end?l={column:t.end.column,line:t.end.line,offset:f(s,t.end)}:typeof t.endIndex=="number"?l=this.positionInside(t.endIndex):typeof t.index=="number"&&(l=this.positionInside(t.index+1));return(l.line<a.line||l.line===a.line&&l.column<=a.column)&&(l={column:a.column+1,line:a.line,offset:a.offset+1}),{end:l,start:a}}raw(t,s){return new r().raw(this,t,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let s=this,a=!1;for(let l of t)l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l);a||this.remove()}return this}root(){let t=this;for(;t.parent&&t.parent.type!=="document";)t=t.parent;return t}toJSON(t,s){let a={},l=s==null;s=s||new Map;let h=0;for(let u in this){if(!Object.prototype.hasOwnProperty.call(this,u)||u==="parent"||u==="proxyCache")continue;let v=this[u];if(Array.isArray(v))a[u]=v.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,s):g);else if(typeof v=="object"&&v.toJSON)a[u]=v.toJSON(null,s);else if(u==="source"){if(v==null)continue;let g=s.get(v.input);g==null&&(g=h,s.set(v.input,h),h++),a[u]={end:v.end,inputId:g,start:v.start}}else a[u]=v}return l&&(a.inputs=[...s.keys()].map(u=>u.toJSON())),a}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=i){t.stringify&&(t=t.stringify);let s="";return t(this,a=>{s+=a}),s}warn(t,s,a={}){let l={node:this};for(let h in a)l[h]=a[h];return t.warn(s,l)}};n.exports=d,d.default=d}),je=E((e,n)=>{"use strict";var o=Qe(),r=class extends o{constructor(i){super(i),this.type="comment"}};n.exports=r,r.default=r}),Ye=E((e,n)=>{"use strict";var o=Qe(),r=class extends o{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(i){i&&typeof i.value<"u"&&typeof i.value!="string"&&(i={...i,value:String(i.value)}),super(i),this.type="decl"}};n.exports=r,r.default=r}),de=E((e,n)=>{"use strict";var o=je(),r=Ye(),i=Qe(),{isClean:c,my:p}=gt(),m,f,d,t;function s(h){return h.map(u=>(u.nodes&&(u.nodes=s(u.nodes)),delete u.source,u))}function a(h){if(h[c]=!1,h.proxyOf.nodes)for(let u of h.proxyOf.nodes)a(u)}var l=class vs extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...u){for(let v of u){let g=this.normalize(v,this.last);for(let y of g)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(u){if(super.cleanRaws(u),this.nodes)for(let v of this.nodes)v.cleanRaws(u)}each(u){if(!this.proxyOf.nodes)return;let v=this.getIterator(),g,y;for(;this.indexes[v]<this.proxyOf.nodes.length&&(g=this.indexes[v],y=u(this.proxyOf.nodes[g],g),y!==!1);)this.indexes[v]+=1;return delete this.indexes[v],y}every(u){return this.nodes.every(u)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let u=this.lastEach;return this.indexes[u]=0,u}getProxyProcessor(){return{get(u,v){return v==="proxyOf"?u:u[v]?v==="each"||typeof v=="string"&&v.startsWith("walk")?(...g)=>u[v](...g.map(y=>typeof y=="function"?(w,O)=>y(w.toProxy(),O):y)):v==="every"||v==="some"?g=>u[v]((y,...w)=>g(y.toProxy(),...w)):v==="root"?()=>u.root().toProxy():v==="nodes"?u.nodes.map(g=>g.toProxy()):v==="first"||v==="last"?u[v].toProxy():u[v]:u[v]},set(u,v,g){return u[v]===g||(u[v]=g,(v==="name"||v==="params"||v==="selector")&&u.markDirty()),!0}}}index(u){return typeof u=="number"?u:(u.proxyOf&&(u=u.proxyOf),this.proxyOf.nodes.indexOf(u))}insertAfter(u,v){let g=this.index(u),y=this.normalize(v,this.proxyOf.nodes[g]).reverse();g=this.index(u);for(let O of y)this.proxyOf.nodes.splice(g+1,0,O);let w;for(let O in this.indexes)w=this.indexes[O],g<w&&(this.indexes[O]=w+y.length);return this.markDirty(),this}insertBefore(u,v){let g=this.index(u),y=g===0?"prepend":!1,w=this.normalize(v,this.proxyOf.nodes[g],y).reverse();g=this.index(u);for(let b of w)this.proxyOf.nodes.splice(g,0,b);let O;for(let b in this.indexes)O=this.indexes[b],g<=O&&(this.indexes[b]=O+w.length);return this.markDirty(),this}normalize(u,v){if(typeof u=="string")u=s(f(u).nodes);else if(typeof u>"u")u=[];else if(Array.isArray(u)){u=u.slice(0);for(let g of u)g.parent&&g.parent.removeChild(g,"ignore")}else if(u.type==="root"&&this.type!=="document"){u=u.nodes.slice(0);for(let g of u)g.parent&&g.parent.removeChild(g,"ignore")}else if(u.type)u=[u];else if(u.prop){if(typeof u.value>"u")throw new Error("Value field is missed in node creation");typeof u.value!="string"&&(u.value=String(u.value)),u=[new r(u)]}else if(u.selector||u.selectors)u=[new t(u)];else if(u.name)u=[new m(u)];else if(u.text)u=[new o(u)];else throw new Error("Unknown node type in node creation");return u.map(g=>(g[p]||vs.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[c]&&a(g),g.raws||(g.raws={}),typeof g.raws.before>"u"&&v&&typeof v.raws.before<"u"&&(g.raws.before=v.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...u){u=u.reverse();for(let v of u){let g=this.normalize(v,this.first,"prepend").reverse();for(let y of g)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+g.length}return this.markDirty(),this}push(u){return u.parent=this,this.proxyOf.nodes.push(u),this}removeAll(){for(let u of this.proxyOf.nodes)u.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(u){u=this.index(u),this.proxyOf.nodes[u].parent=void 0,this.proxyOf.nodes.splice(u,1);let v;for(let g in this.indexes)v=this.indexes[g],v>=u&&(this.indexes[g]=v-1);return this.markDirty(),this}replaceValues(u,v,g){return g||(g=v,v={}),this.walkDecls(y=>{v.props&&!v.props.includes(y.prop)||v.fast&&!y.value.includes(v.fast)||(y.value=y.value.replace(u,g))}),this.markDirty(),this}some(u){return this.nodes.some(u)}walk(u){return this.each((v,g)=>{let y;try{y=u(v,g)}catch(w){throw v.addToError(w)}return y!==!1&&v.walk&&(y=v.walk(u)),y})}walkAtRules(u,v){return v?u instanceof RegExp?this.walk((g,y)=>{if(g.type==="atrule"&&u.test(g.name))return v(g,y)}):this.walk((g,y)=>{if(g.type==="atrule"&&g.name===u)return v(g,y)}):(v=u,this.walk((g,y)=>{if(g.type==="atrule")return v(g,y)}))}walkComments(u){return this.walk((v,g)=>{if(v.type==="comment")return u(v,g)})}walkDecls(u,v){return v?u instanceof RegExp?this.walk((g,y)=>{if(g.type==="decl"&&u.test(g.prop))return v(g,y)}):this.walk((g,y)=>{if(g.type==="decl"&&g.prop===u)return v(g,y)}):(v=u,this.walk((g,y)=>{if(g.type==="decl")return v(g,y)}))}walkRules(u,v){return v?u instanceof RegExp?this.walk((g,y)=>{if(g.type==="rule"&&u.test(g.selector))return v(g,y)}):this.walk((g,y)=>{if(g.type==="rule"&&g.selector===u)return v(g,y)}):(v=u,this.walk((g,y)=>{if(g.type==="rule")return v(g,y)}))}};l.registerParse=h=>{f=h},l.registerRule=h=>{t=h},l.registerAtRule=h=>{m=h},l.registerRoot=h=>{d=h},n.exports=l,l.default=l,l.rebuild=h=>{h.type==="atrule"?Object.setPrototypeOf(h,m.prototype):h.type==="rule"?Object.setPrototypeOf(h,t.prototype):h.type==="decl"?Object.setPrototypeOf(h,r.prototype):h.type==="comment"?Object.setPrototypeOf(h,o.prototype):h.type==="root"&&Object.setPrototypeOf(h,d.prototype),h[p]=!0,h.nodes&&h.nodes.forEach(u=>{l.rebuild(u)})}}),Ts=E((e,n)=>{var o="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",r=(c,p=21)=>(m=p)=>{let f="",d=m|0;for(;d--;)f+=c[Math.random()*c.length|0];return f},i=(c=21)=>{let p="",m=c|0;for(;m--;)p+=o[Math.random()*64|0];return p};n.exports={nanoid:i,customAlphabet:r}}),_s=E(()=>{}),Xt=E((e,n)=>{n.exports=class{}}),Pe=E((e,n)=>{"use strict";var{nanoid:o}=Ts(),{isAbsolute:r,resolve:i}={},{SourceMapConsumer:c,SourceMapGenerator:p}=_s(),{fileURLToPath:m,pathToFileURL:f}={},d=yt(),t=Xt(),s=Zt(),a=Symbol("lineToIndexCache"),l=!!(c&&p),h=!!(i&&r);function u(g){if(g[a])return g[a];let y=g.css.split(`
|
|
21
|
-
`),w=new Array(y.length),O=0;for(let b=0,T=y.length;b<T;b++)w[b]=O,O+=y[b].length+1;return g[a]=w,w}var v=class{get from(){return this.file||this.id}constructor(g,y={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,y.document&&(this.document=y.document.toString()),y.from&&(!h||/^\w+:\/\//.test(y.from)||r(y.from)?this.file=y.from:this.file=i(y.from)),h&&l){let w=new t(this.css,y);if(w.text){this.map=w;let O=w.consumer().file;!this.file&&O&&(this.file=this.mapResolve(O))}}this.file||(this.id="<input css "+o(6)+">"),this.map&&(this.map.file=this.from)}error(g,y,w,O={}){let b,T,x,k,_;if(y&&typeof y=="object"){let I=y,N=w;if(typeof I.offset=="number"){k=I.offset;let $=this.fromOffset(k);y=$.line,w=$.col}else y=I.line,w=I.column,k=this.fromLineAndColumn(y,w);if(typeof N.offset=="number"){x=N.offset;let $=this.fromOffset(x);T=$.line,b=$.col}else T=N.line,b=N.column,x=this.fromLineAndColumn(N.line,N.column)}else if(w)k=this.fromLineAndColumn(y,w);else{k=y;let I=this.fromOffset(k);y=I.line,w=I.col}let C=this.origin(y,w,T,b);return C?_=new d(g,C.endLine===void 0?C.line:{column:C.column,line:C.line},C.endLine===void 0?C.column:{column:C.endColumn,line:C.endLine},C.source,C.file,O.plugin):_=new d(g,T===void 0?y:{column:w,line:y},T===void 0?w:{column:b,line:T},this.css,this.file,O.plugin),_.input={column:w,endColumn:b,endLine:T,endOffset:x,line:y,offset:k,source:this.css},this.file&&(f&&(_.input.url=f(this.file).toString()),_.input.file=this.file),_}fromLineAndColumn(g,y){return u(this)[g-1]+y-1}fromOffset(g){let y=u(this),w=y[y.length-1],O=0;if(g>=w)O=y.length-1;else{let b=y.length-2,T;for(;O<b;)if(T=O+(b-O>>1),g<y[T])b=T-1;else if(g>=y[T+1])O=T+1;else{O=T;break}}return{col:g-y[O]+1,line:O+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:i(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,y,w,O){if(!this.map)return!1;let b=this.map.consumer(),T=b.originalPositionFor({column:y-1,line:g});if(!T.source)return!1;let x;typeof w=="number"&&(x=b.originalPositionFor({column:O-1,line:w}));let k;r(T.source)?k=f(T.source):k=new URL(T.source,this.map.consumer().sourceRoot||f(this.map.mapFile));let _={column:T.column+1,endColumn:x&&x.column+1,endLine:x&&x.line,line:T.line,url:k.toString()};if(k.protocol==="file:")if(m)_.file=m(k);else throw new Error("file: protocol is not available in this PostCSS build");let C=b.sourceContentFor(T.source);return C&&(_.source=C),_}toJSON(){let g={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(g[y]=this[y]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}};n.exports=v,v.default=v,s&&s.registerInput&&s.registerInput(v)}),wt=E((e,n)=>{"use strict";var o=de(),r=class extends o{constructor(i){super(i),this.type="atrule"}append(...i){return this.proxyOf.nodes||(this.nodes=[]),super.append(...i)}prepend(...i){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...i)}};n.exports=r,r.default=r,o.registerAtRule(r)}),Me=E((e,n)=>{"use strict";var o=de(),r,i,c=class extends o{constructor(p){super(p),this.type="root",this.nodes||(this.nodes=[])}normalize(p,m,f){let d=super.normalize(p);if(m){if(f==="prepend")this.nodes.length>1?m.raws.before=this.nodes[1].raws.before:delete m.raws.before;else if(this.first!==m)for(let t of d)t.raws.before=m.raws.before}return d}removeChild(p,m){let f=this.index(p);return!m&&f===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[f].raws.before),super.removeChild(p)}toResult(p={}){return new r(new i,this,p).stringify()}};c.registerLazyResult=p=>{r=p},c.registerProcessor=p=>{i=p},n.exports=c,c.default=c,o.registerRoot(c)}),er=E((e,n)=>{"use strict";var o={comma(r){return o.split(r,[","],!0)},space(r){let i=[" ",`
|
|
22
|
-
`," "];return o.split(r,i)},split(r,i,c){let p=[],m="",f=!1,d=0,t=!1,s="",a=!1;for(let l of r)a?a=!1:l==="\\"?a=!0:t?l===s&&(t=!1):l==='"'||l==="'"?(t=!0,s=l):l==="("?d+=1:l===")"?d>0&&(d-=1):d===0&&i.includes(l)&&(f=!0),f?(m!==""&&p.push(m.trim()),m="",f=!1):m+=l;return(c||m!=="")&&p.push(m.trim()),p}};n.exports=o,o.default=o}),bt=E((e,n)=>{"use strict";var o=de(),r=er(),i=class extends o{get selectors(){return r.comma(this.selector)}set selectors(c){let p=this.selector?this.selector.match(/,\s*/):null,m=p?p[0]:","+this.raw("between","beforeOpen");this.selector=c.join(m)}constructor(c){super(c),this.type="rule",this.nodes||(this.nodes=[])}};n.exports=i,i.default=i,o.registerRule(i)}),xt=E((e,n)=>{"use strict";var o=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,c=/[\da-f]/i;n.exports=function(p,m={}){let f=p.css.valueOf(),d=m.ignoreErrors,t,s,a,l,h,u,v,g,y,w,O=f.length,b=0,T=[],x=[],k=-1;function _(){return b}function C(R){throw p.error("Unclosed "+R,b)}function I(){return x.length===0&&b>=O}function N(R){if(x.length)return x.pop();if(b>=O)return;let M=R?R.ignoreUnclosed:!1;switch(t=f.charCodeAt(b),t){case 10:case 32:case 9:case 13:case 12:{l=b;do l+=1,t=f.charCodeAt(l);while(t===32||t===10||t===9||t===13||t===12);u=["space",f.slice(b,l)],b=l-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let P=String.fromCharCode(t);u=[P,P,b];break}case 40:{if(w=T.length?T.pop()[1]:"",y=f.charCodeAt(b+1),w==="url"&&y!==39&&y!==34&&y!==32&&y!==10&&y!==9&&y!==12&&y!==13){l=b;do{if(v=!1,l=f.indexOf(")",l+1),l===-1)if(d||M){l=b;break}else C("bracket");for(g=l;f.charCodeAt(g-1)===92;)g-=1,v=!v}while(v);u=["brackets",f.slice(b,l+1),b,l],b=l}else b<=k?u=["(","(",b]:(l=f.indexOf(")",b+1),s=f.slice(b,l+1),l===-1||i.test(s)?(k=l===-1?O:l,u=["(","(",b]):(u=["brackets",s,b,l],b=l));break}case 39:case 34:{h=t===39?"'":'"',l=b;do{if(v=!1,l=f.indexOf(h,l+1),l===-1)if(d||M){l=b+1;break}else C("string");for(g=l;f.charCodeAt(g-1)===92;)g-=1,v=!v}while(v);u=["string",f.slice(b,l+1),b,l],b=l;break}case 64:{o.lastIndex=b+1,o.test(f),o.lastIndex===0?l=f.length-1:l=o.lastIndex-2,u=["at-word",f.slice(b,l+1),b,l],b=l;break}case 92:{for(l=b,a=!0;f.charCodeAt(l+1)===92;)l+=1,a=!a;if(t=f.charCodeAt(l+1),a&&t!==47&&t!==32&&t!==10&&t!==9&&t!==13&&t!==12&&(l+=1,c.test(f.charAt(l)))){for(;c.test(f.charAt(l+1));)l+=1;f.charCodeAt(l+1)===32&&(l+=1)}u=["word",f.slice(b,l+1),b,l],b=l;break}default:{t===47&&f.charCodeAt(b+1)===42?(l=f.indexOf("*/",b+2)+1,l===0&&(d||M?l=f.length:C("comment")),u=["comment",f.slice(b,l+1),b,l],b=l):(r.lastIndex=b+1,r.test(f),r.lastIndex===0?l=f.length-1:l=r.lastIndex-2,u=["word",f.slice(b,l+1),b,l],T.push(u),b=l);break}}return b++,u}function $(R){x.push(R)}return{back:$,endOfFile:I,nextToken:N,position:_}}}),kt=E((e,n)=>{"use strict";var o=wt(),r=je(),i=Ye(),c=Me(),p=bt(),m=xt(),f={empty:!0,space:!0};function d(a){for(let l=a.length-1;l>=0;l--){let h=a[l],u=h[3]||h[2];if(u)return u}}function t(a,l,h){let u="";for(let v=l;v<h;v++)u+=a[v][1];return u}var s=class{constructor(a){this.input=a,this.root=new c,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:a,start:{column:1,line:1,offset:0}}}atrule(a){let l=new o;l.name=a[1].slice(1),l.name===""&&this.unnamedAtrule(l,a),this.init(l,a[2]);let h,u,v,g=!1,y=!1,w=[],O=[];for(;!this.tokenizer.endOfFile();){if(a=this.tokenizer.nextToken(),h=a[0],h==="("||h==="["?O.push(h==="("?")":"]"):h==="{"&&O.length>0?O.push("}"):h===O[O.length-1]&&O.pop(),O.length===0)if(h===";"){l.source.end=this.getPosition(a[2]),l.source.end.offset++,this.semicolon=!0;break}else if(h==="{"){y=!0;break}else if(h==="}"){if(w.length>0){for(v=w.length-1,u=w[v];u&&u[0]==="space";)u=w[--v];u&&(l.source.end=this.getPosition(u[3]||u[2]),l.source.end.offset++)}this.end(a);break}else w.push(a);else w.push(a);if(this.tokenizer.endOfFile()){g=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(w),w.length?(l.raws.afterName=this.spacesAndCommentsFromStart(w),this.raw(l,"params",w),g&&(a=w[w.length-1],l.source.end=this.getPosition(a[3]||a[2]),l.source.end.offset++,this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),y&&(l.nodes=[],this.current=l)}checkMissedSemicolon(a){let l=this.colon(a);if(l===!1)return;let h=0,u;for(let v=l-1;v>=0&&(u=a[v],!(u[0]!=="space"&&(h+=1,h===2)));v--);throw this.input.error("Missed semicolon",u[0]==="word"?u[3]+1:u[2])}colon(a){let l=0,h,u,v;for(let[g,y]of a.entries()){if(u=y,v=u[0],v==="("&&(l+=1),v===")"&&(l-=1),l===0&&v===":")if(!h)this.doubleColon(u);else{if(h[0]==="word"&&h[1]==="progid")continue;return g}h=u}return!1}comment(a){let l=new r;this.init(l,a[2]),l.source.end=this.getPosition(a[3]||a[2]),l.source.end.offset++;let h=a[1].slice(2,-2);if(!h.trim())l.text="",l.raws.left=h,l.raws.right="";else{let u=h.match(/^(\s*)([^]*\S)(\s*)$/);l.text=u[2],l.raws.left=u[1],l.raws.right=u[3]}}createTokenizer(){this.tokenizer=m(this.input)}decl(a,l){let h=new i;this.init(h,a[0][2]);let u=a[a.length-1];u[0]===";"&&(this.semicolon=!0,a.pop()),h.source.end=this.getPosition(u[3]||u[2]||d(a)),h.source.end.offset++;let v=0;for(;a[v][0]!=="word";)v===a.length-1&&this.unknownWord([a[v]]),v++;h.raws.before+=t(a,0,v),h.source.start=this.getPosition(a[v][2]);let g=v;for(;v<a.length;){let T=a[v][0];if(T===":"||T==="space"||T==="comment")break;v++}h.prop=t(a,g,v);let y=v,w;for(;v<a.length&&(w=a[v],v++,w[0]!==":");)w[0]==="word"&&/\w/.test(w[1])&&this.unknownWord([w]);h.raws.between=t(a,y,v),(h.prop[0]==="_"||h.prop[0]==="*")&&(h.raws.before+=h.prop[0],h.prop=h.prop.slice(1));let O=v;for(;v<a.length;){let T=a[v][0];if(T!=="space"&&T!=="comment")break;v++}let b=a.slice(O,v);a=a.slice(v),this.precheckMissedSemicolon(a);for(let T=a.length-1;T>=0;T--){if(w=a[T],w[1].toLowerCase()==="!important"){h.important=!0;let x=this.stringFrom(a,T);x=this.spacesFromEnd(a)+x,x!==" !important"&&(h.raws.important=x);break}else if(w[1].toLowerCase()==="important"){let x=a.slice(0),k="";for(let _=T;_>0;_--){let C=x[_][0];if(k.trim().startsWith("!")&&C!=="space")break;k=x.pop()[1]+k}k.trim().startsWith("!")&&(h.important=!0,h.raws.important=k,a=x)}if(w[0]!=="space"&&w[0]!=="comment")break}a.some(T=>T[0]!=="space"&&T[0]!=="comment")&&(h.raws.between+=b.map(T=>T[1]).join(""),b=[]),this.raw(h,"value",b.concat(a),l),h.value.includes(":")&&!l&&this.checkMissedSemicolon(a)}doubleColon(a){throw this.input.error("Double colon",{offset:a[2]},{offset:a[2]+a[1].length})}emptyRule(a){let l=new p;this.init(l,a[2]),l.selector="",l.raws.between="",this.current=l}end(a){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(a[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(a)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(a){if(this.spaces+=a[1],this.current.nodes){let l=this.current.nodes[this.current.nodes.length-1];l&&l.type==="rule"&&!l.raws.ownSemicolon&&(l.raws.ownSemicolon=this.spaces,this.spaces="",l.source.end=this.getPosition(a[2]),l.source.end.offset+=l.raws.ownSemicolon.length)}}getPosition(a){let l=this.input.fromOffset(a);return{column:l.col,line:l.line,offset:a}}init(a,l){this.current.push(a),a.source={input:this.input,start:this.getPosition(l)},a.raws.before=this.spaces,this.spaces="",a.type!=="comment"&&(this.semicolon=!1)}other(a){let l=!1,h=null,u=!1,v=null,g=[],y=a[1].startsWith("--"),w=[],O=a;for(;O;){if(h=O[0],w.push(O),h==="("||h==="[")v||(v=O),g.push(h==="("?")":"]");else if(y&&u&&h==="{")v||(v=O),g.push("}");else if(g.length===0)if(h===";")if(u){this.decl(w,y);return}else break;else if(h==="{"){this.rule(w);return}else if(h==="}"){this.tokenizer.back(w.pop()),l=!0;break}else h===":"&&(u=!0);else h===g[g.length-1]&&(g.pop(),g.length===0&&(v=null));O=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(l=!0),g.length>0&&this.unclosedBracket(v),l&&u){if(!y)for(;w.length&&(O=w[w.length-1][0],!(O!=="space"&&O!=="comment"));)this.tokenizer.back(w.pop());this.decl(w,y)}else this.unknownWord(w)}parse(){let a;for(;!this.tokenizer.endOfFile();)switch(a=this.tokenizer.nextToken(),a[0]){case"space":this.spaces+=a[1];break;case";":this.freeSemicolon(a);break;case"}":this.end(a);break;case"comment":this.comment(a);break;case"at-word":this.atrule(a);break;case"{":this.emptyRule(a);break;default:this.other(a);break}this.endFile()}precheckMissedSemicolon(){}raw(a,l,h,u){let v,g,y=h.length,w="",O=!0,b,T;for(let x=0;x<y;x+=1)v=h[x],g=v[0],g==="space"&&x===y-1&&!u?O=!1:g==="comment"?(T=h[x-1]?h[x-1][0]:"empty",b=h[x+1]?h[x+1][0]:"empty",!f[T]&&!f[b]?w.slice(-1)===","?O=!1:w+=v[1]:O=!1):w+=v[1];if(!O){let x=h.reduce((k,_)=>k+_[1],"");a.raws[l]={raw:x,value:w}}a[l]=w}rule(a){a.pop();let l=new p;this.init(l,a[0][2]),l.raws.between=this.spacesAndCommentsFromEnd(a),this.raw(l,"selector",a),this.current=l}spacesAndCommentsFromEnd(a){let l,h="";for(;a.length&&(l=a[a.length-1][0],!(l!=="space"&&l!=="comment"));)h=a.pop()[1]+h;return h}spacesAndCommentsFromStart(a){let l,h="";for(;a.length&&(l=a[0][0],!(l!=="space"&&l!=="comment"));)h+=a.shift()[1];return h}spacesFromEnd(a){let l,h="";for(;a.length&&(l=a[a.length-1][0],l==="space");)h=a.pop()[1]+h;return h}stringFrom(a,l){let h="";for(let u=l;u<a.length;u++)h+=a[u][1];return a.splice(l,a.length-l),h}unclosedBlock(){let a=this.current.source.start;throw this.input.error("Unclosed block",a.line,a.column)}unclosedBracket(a){throw this.input.error("Unclosed bracket",{offset:a[2]},{offset:a[2]+1})}unexpectedClose(a){throw this.input.error("Unexpected }",{offset:a[2]},{offset:a[2]+1})}unknownWord(a){throw this.input.error("Unknown word "+a[0][1],{offset:a[0][2]},{offset:a[0][2]+a[0][1].length})}unnamedAtrule(a,l){throw this.input.error("At-rule without name",{offset:l[2]},{offset:l[2]+l[1].length})}};n.exports=s}),Ke=E((e,n)=>{"use strict";var o=de(),r=Pe(),i=kt();function c(p,m){let f=new r(p,m),d=new i(f);try{d.parse()}catch(t){throw t}return d.root}n.exports=c,c.default=c,o.registerParse(c)}),Ss=E((e,n)=>{var o=xt(),r=Pe();n.exports={isInlineComment(i){if(i[0]==="word"&&i[1].slice(0,2)==="//"){let c=i,p=[],m,f;for(;i;){if(/\r?\n/.test(i[1])){if(/['"].*\r?\n/.test(i[1])){p.push(i[1].substring(0,i[1].indexOf(`
|
|
23
|
-
`))),f=i[1].substring(i[1].indexOf(`
|
|
24
|
-
`));let t=this.input.css.valueOf().substring(this.tokenizer.position());f+=t,m=i[3]+t.length-f.length}else this.tokenizer.back(i);break}p.push(i[1]),m=i[2],i=this.tokenizer.nextToken({ignoreUnclosed:!0})}let d=["comment",p.join(""),c[2],m];return this.inlineComment(d),f&&(this.input=new r(f),this.tokenizer=o(this.input)),!0}else if(i[1]==="/"){let c=this.tokenizer.nextToken({ignoreUnclosed:!0});if(c[0]==="comment"&&/^\/\*/.test(c[1]))return c[0]="word",c[1]=c[1].slice(1),i[1]="//",this.tokenizer.back(c),n.exports.isInlineComment.bind(this)(i)}return!1}}}),Cs=E((e,n)=>{n.exports={interpolation(o){let r=[o,this.tokenizer.nextToken()],i=["word","}"];if(r[0][1].length>1||r[1][0]!=="{")return this.tokenizer.back(r[1]),!1;for(o=this.tokenizer.nextToken();o&&i.includes(o[0]);)r.push(o),o=this.tokenizer.nextToken();let c=r.map(d=>d[1]),[p]=r,m=r.pop(),f=["word",c.join(""),p[2],m[2]];return this.tokenizer.back(o),this.tokenizer.back(f),!0}}}),As=E((e,n)=>{var o=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,r=/\.[0-9]/,i=c=>{let[,p]=c,[m]=p;return(m==="."||m==="#")&&o.test(p)===!1&&r.test(p)===!1};n.exports={isMixinToken:i}}),Es=E((e,n)=>{var o=xt(),r=/^url\((.+)\)/;n.exports=i=>{let{name:c,params:p=""}=i;if(c==="import"&&p.length){i.import=!0;let m=o({css:p});for(i.filename=p.replace(r,"$1");!m.endOfFile();){let[f,d]=m.nextToken();if(f==="word"&&d==="url")return;if(f==="brackets"){i.options=d,i.filename=p.replace(d,"").trim();break}}}}}),Is=E((e,n)=>{var o=/:$/,r=/^:(\s+)?/;n.exports=i=>{let{name:c,params:p=""}=i;if(i.name.slice(-1)===":"){if(o.test(c)){let[m]=c.match(o);i.name=c.replace(m,""),i.raws.afterName=m+(i.raws.afterName||""),i.variable=!0,i.value=i.params}if(r.test(p)){let[m]=p.match(r);i.value=p.replace(m,""),i.raws.afterName=(i.raws.afterName||"")+m,i.variable=!0}}}}),js=E((e,n)=>{var o=je(),r=kt(),{isInlineComment:i}=Ss(),{interpolation:c}=Cs(),{isMixinToken:p}=As(),m=Es(),f=Is(),d=/(!\s*important)$/i;n.exports=class extends r{constructor(...t){super(...t),this.lastNode=null}atrule(t){c.bind(this)(t)||(super.atrule(t),m(this.lastNode),f(this.lastNode))}decl(...t){super.decl(...t),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(t){t[0][1]=` ${t[0][1]}`;let s=t.findIndex(u=>u[0]==="("),a=t.reverse().find(u=>u[0]===")"),l=t.reverse().indexOf(a),h=t.splice(s,l).map(u=>u[1]).join("");for(let u of t.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=h}init(t,s,a){super.init(t,s,a),this.lastNode=t}inlineComment(t){let s=new o,a=t[1].slice(2);if(this.init(s,t[2]),s.source.end=this.getPosition(t[3]||t[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(a))s.text="",s.raws.left=a,s.raws.right="";else{let l=a.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=l}}mixin(t){let[s]=t,a=s[1].slice(0,1),l=t.findIndex(y=>y[0]==="brackets"),h=t.findIndex(y=>y[0]==="("),u="";if((l<0||l>3)&&h>0){let y=t.reduce((I,N,$)=>N[0]===")"?$:I),w=t.slice(h,y+h).map(I=>I[1]).join(""),[O]=t.slice(h),b=[O[2],O[3]],[T]=t.slice(y,y+1),x=[T[2],T[3]],k=["brackets",w].concat(b,x),_=t.slice(0,h),C=t.slice(y+1);t=_,t.push(k),t=t.concat(C)}let v=[];for(let y of t)if((y[1]==="!"||v.length)&&v.push(y),y[1]==="important")break;if(v.length){let[y]=v,w=t.indexOf(y),O=v[v.length-1],b=[y[2],y[3]],T=[O[4],O[5]],x=["word",v.map(k=>k[1]).join("")].concat(b,T);t.splice(w,v.length,x)}let g=t.findIndex(y=>d.test(y[1]));g>0&&([,u]=t[g],t.splice(g,1));for(let y of t.reverse())this.tokenizer.back(y);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=a,u&&(this.lastNode.important=!0,this.lastNode.raws.important=u)}other(t){i.bind(this)(t)||super.other(t)}rule(t){let s=t[t.length-1],a=t[t.length-2];if(a[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),c.bind(this)(a))){let l=this.tokenizer.nextToken();t=t.slice(0,t.length-2).concat([l]);for(let h of t.reverse())this.tokenizer.back(h);return}super.rule(t),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(t){let[s]=t;if(t[0][1]==="each"&&t[1][0]==="("){this.each(t);return}if(p(s)){this.mixin(t);return}super.unknownWord(t)}}}),Ps=E((e,n)=>{var o=vt();n.exports=class extends o{atrule(r,i){if(!r.mixin&&!r.variable&&!r.function){super.atrule(r,i);return}let c=`${r.function?"":r.raws.identifier||"@"}${r.name}`,p=r.params?this.rawValue(r,"params"):"",m=r.raws.important||"";if(r.variable&&(p=r.value),typeof r.raws.afterName<"u"?c+=r.raws.afterName:p&&(c+=" "),r.nodes)this.block(r,c+p+m);else{let f=(r.raws.between||"")+m+(i?";":"");this.builder(c+p+f,r)}}comment(r){if(r.inline){let i=this.raw(r,"left","commentLeft"),c=this.raw(r,"right","commentRight");this.builder(`//${i}${r.text}${c}`,r)}else super.comment(r)}}}),Ms=E((e,n)=>{var o=Pe(),r=js(),i=Ps();n.exports={parse(c,p){let m=new o(c,p),f=new r(m);return f.parse(),f.root.walk(d=>{let t=m.css.lastIndexOf(d.source.input.css);if(t===0)return;if(t+d.source.input.css.length!==m.css.length)throw new Error("Invalid state detected in postcss-less");let s=t+d.source.start.offset,a=m.fromOffset(t+d.source.start.offset);if(d.source.start={offset:s,line:a.line,column:a.col},d.source.end){let l=t+d.source.end.offset,h=m.fromOffset(t+d.source.end.offset);d.source.end={offset:l,line:h.line,column:h.col}}}),f.root},stringify(c,p){new i(p).stringify(c)},nodeToString(c){let p="";return n.exports.stringify(c,m=>{p+=m}),p}}}),Ot=E((e,n)=>{"use strict";var o=de(),r,i,c=class extends o{constructor(p){super({type:"document",...p}),this.nodes||(this.nodes=[])}toResult(p={}){return new r(new i,this,p).stringify()}};c.registerLazyResult=p=>{r=p},c.registerProcessor=p=>{i=p},n.exports=c,c.default=c}),Ns=E((e,n)=>{"use strict";var o=wt(),r=je(),i=Ye(),c=Pe(),p=Xt(),m=Me(),f=bt();function d(t,s){if(Array.isArray(t))return t.map(v=>d(v));let{inputs:a,...l}=t;if(a){s=[];for(let v of a){let g={...v,__proto__:c.prototype};g.map&&(g.map={...g.map,__proto__:p.prototype}),s.push(g)}}let h;if(l.nodes&&(h=t.nodes.map(v=>d(v,s)),delete l.nodes),l.source){let{inputId:v,...g}=l.source;l.source=g,v!=null&&(l.source.input=s[v])}let u;if(l.type==="root")u=new m(l);else if(l.type==="decl")u=new i(l);else if(l.type==="rule")u=new f(l);else if(l.type==="comment")u=new r(l);else if(l.type==="atrule")u=new o(l);else throw new Error("Unknown node type: "+t.type);if(h){u.nodes=h;for(let v of h)v.parent=u}return u}n.exports=d,d.default=d}),tr=E((e,n)=>{n.exports=class{generate(){}}}),rr=E((e,n)=>{"use strict";var o=class{constructor(r,i={}){if(this.type="warning",this.text=r,i.node&&i.node.source){let c=i.node.rangeBy(i);this.line=c.start.line,this.column=c.start.column,this.endLine=c.end.line,this.endColumn=c.end.column}for(let c in i)this[c]=i[c]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};n.exports=o,o.default=o}),Tt=E((e,n)=>{"use strict";var o=rr(),r=class{get content(){return this.css}constructor(i,c,p){this.processor=i,this.messages=[],this.root=c,this.opts=p,this.css="",this.map=void 0}toString(){return this.css}warn(i,c={}){c.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(c.plugin=this.lastPlugin.postcssPlugin);let p=new o(i,c);return this.messages.push(p),p}warnings(){return this.messages.filter(i=>i.type==="warning")}};n.exports=r,r.default=r}),sr=E((e,n)=>{"use strict";var o={};n.exports=function(r){o[r]||(o[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))}}),nr=E((e,n)=>{"use strict";var o=de(),r=Ot(),i=tr(),c=Ke(),p=Tt(),m=Me(),f=He(),{isClean:d,my:t}=gt(),s=sr(),a={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},l={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},h={Once:!0,postcssPlugin:!0,prepare:!0},u=0;function v(T){return typeof T=="object"&&typeof T.then=="function"}function g(T){let x=!1,k=a[T.type];return T.type==="decl"?x=T.prop.toLowerCase():T.type==="atrule"&&(x=T.name.toLowerCase()),x&&T.append?[k,k+"-"+x,u,k+"Exit",k+"Exit-"+x]:x?[k,k+"-"+x,k+"Exit",k+"Exit-"+x]:T.append?[k,u,k+"Exit"]:[k,k+"Exit"]}function y(T){let x;return T.type==="document"?x=["Document",u,"DocumentExit"]:T.type==="root"?x=["Root",u,"RootExit"]:x=g(T),{eventIndex:0,events:x,iterator:0,node:T,visitorIndex:0,visitors:[]}}function w(T){return T[d]=!1,T.nodes&&T.nodes.forEach(x=>w(x)),T}var O={},b=class gs{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(x,k,_){this.stringified=!1,this.processed=!1;let C;if(typeof k=="object"&&k!==null&&(k.type==="root"||k.type==="document"))C=w(k);else if(k instanceof gs||k instanceof p)C=w(k.root),k.map&&(typeof _.map>"u"&&(_.map={}),_.map.inline||(_.map.inline=!1),_.map.prev=k.map);else{let I=c;_.syntax&&(I=_.syntax.parse),_.parser&&(I=_.parser),I.parse&&(I=I.parse);try{C=I(k,_)}catch(N){this.processed=!0,this.error=N}C&&!C[t]&&o.rebuild(C)}this.result=new p(x,C,_),this.helpers={...O,postcss:O,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(x){return this.async().catch(x)}finally(x){return this.async().then(x,x)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(x,k){let _=this.result.lastPlugin;try{k&&k.addToError(x),this.error=x,x.name==="CssSyntaxError"&&!x.plugin?(x.plugin=_.postcssPlugin,x.setMessage()):_.postcssVersion}catch(C){console&&console.error&&console.error(C)}return x}prepareVisitors(){this.listeners={};let x=(k,_,C)=>{this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push([k,C])};for(let k of this.plugins)if(typeof k=="object")for(let _ in k){if(!l[_]&&/^[A-Z]/.test(_))throw new Error(`Unknown event ${_} in ${k.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!h[_])if(typeof k[_]=="object")for(let C in k[_])C==="*"?x(k,_,k[_][C]):x(k,_+"-"+C.toLowerCase(),k[_][C]);else typeof k[_]=="function"&&x(k,_,k[_])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let x=0;x<this.plugins.length;x++){let k=this.plugins[x],_=this.runOnRoot(k);if(v(_))try{await _}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let x=this.result.root;for(;!x[d];){x[d]=!0;let k=[y(x)];for(;k.length>0;){let _=this.visitTick(k);if(v(_))try{await _}catch(C){let I=k[k.length-1].node;throw this.handleError(C,I)}}}if(this.listeners.OnceExit)for(let[k,_]of this.listeners.OnceExit){this.result.lastPlugin=k;try{if(x.type==="document"){let C=x.nodes.map(I=>_(I,this.helpers));await Promise.all(C)}else await _(x,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(x){this.result.lastPlugin=x;try{if(typeof x=="object"&&x.Once){if(this.result.root.type==="document"){let k=this.result.root.nodes.map(_=>x.Once(_,this.helpers));return v(k[0])?Promise.all(k):k}return x.Once(this.result.root,this.helpers)}else if(typeof x=="function")return x(this.result.root,this.result)}catch(k){throw this.handleError(k)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let x=this.result.opts,k=f;x.syntax&&(k=x.syntax.stringify),x.stringifier&&(k=x.stringifier),k.stringify&&(k=k.stringify);let _=this.result.root.source;if(x.map===void 0&&!(_&&_.input&&_.input.map)){let I="";return k(this.result.root,N=>{I+=N}),this.result.css=I,this.result}let C=new i(k,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let x of this.plugins){let k=this.runOnRoot(x);if(v(k))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let x=this.result.root;for(;!x[d];)x[d]=!0,this.walkSync(x);if(this.listeners.OnceExit)if(x.type==="document")for(let k of x.nodes)this.visitSync(this.listeners.OnceExit,k);else this.visitSync(this.listeners.OnceExit,x)}return this.result}then(x,k){return this.async().then(x,k)}toString(){return this.css}visitSync(x,k){for(let[_,C]of x){this.result.lastPlugin=_;let I;try{I=C(k,this.helpers)}catch(N){throw this.handleError(N,k.proxyOf)}if(k.type!=="root"&&k.type!=="document"&&!k.parent)return!0;if(v(I))throw this.getAsyncError()}}visitTick(x){let k=x[x.length-1],{node:_,visitors:C}=k;if(_.type!=="root"&&_.type!=="document"&&!_.parent){x.pop();return}if(C.length>0&&k.visitorIndex<C.length){let[N,$]=C[k.visitorIndex];k.visitorIndex+=1,k.visitorIndex===C.length&&(k.visitors=[],k.visitorIndex=0),this.result.lastPlugin=N;try{return $(_.toProxy(),this.helpers)}catch(R){throw this.handleError(R,_)}}if(k.iterator!==0){let N=k.iterator,$;for(;$=_.nodes[_.indexes[N]];)if(_.indexes[N]+=1,!$[d]){$[d]=!0,x.push(y($));return}k.iterator=0,delete _.indexes[N]}let I=k.events;for(;k.eventIndex<I.length;){let N=I[k.eventIndex];if(k.eventIndex+=1,N===u){_.nodes&&_.nodes.length&&(_[d]=!0,k.iterator=_.getIterator());return}else if(this.listeners[N]){k.visitors=this.listeners[N];return}}x.pop()}walkSync(x){x[d]=!0;let k=g(x);for(let _ of k)if(_===u)x.nodes&&x.each(C=>{C[d]||this.walkSync(C)});else{let C=this.listeners[_];if(C&&this.visitSync(C,x.toProxy()))return}}warnings(){return this.sync().warnings()}};b.registerPostcss=T=>{O=T},n.exports=b,b.default=b,m.registerLazyResult(b),r.registerLazyResult(b)}),$s=E((e,n)=>{"use strict";var o=tr(),r=Ke(),i=Tt(),c=He(),p=sr(),m=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let f,d=r;try{f=d(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=f,f}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(f,d,t){d=d.toString(),this.stringified=!1,this._processor=f,this._css=d,this._opts=t,this._map=void 0;let s=c;this.result=new i(this._processor,void 0,this._opts),this.result.css=d;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let l=new o(s,void 0,this._opts,d);if(l.isMap()){let[h,u]=l.generate();h&&(this.result.css=h),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(f){return this.async().catch(f)}finally(f){return this.async().then(f,f)}sync(){if(this.error)throw this.error;return this.result}then(f,d){return this.async().then(f,d)}toString(){return this._css}warnings(){return[]}};n.exports=m,m.default=m}),Rs=E((e,n)=>{"use strict";var o=Ot(),r=nr(),i=$s(),c=Me(),p=class{constructor(m=[]){this.version="8.5.16",this.plugins=this.normalize(m)}normalize(m){let f=[];for(let d of m)if(d.postcss===!0?d=d():d.postcss&&(d=d.postcss),typeof d=="object"&&Array.isArray(d.plugins))f=f.concat(d.plugins);else if(typeof d=="object"&&d.postcssPlugin)f.push(d);else if(typeof d=="function")f.push(d);else if(!(typeof d=="object"&&(d.parse||d.stringify)))throw new Error(d+" is not a PostCSS plugin");return f}process(m,f={}){return!this.plugins.length&&!f.parser&&!f.stringifier&&!f.syntax?new i(this,m,f):new r(this,m,f)}use(m){return this.plugins=this.plugins.concat(this.normalize([m])),this}};n.exports=p,p.default=p,c.registerProcessor(p),o.registerProcessor(p)}),_t=E((e,n)=>{"use strict";var o=wt(),r=je(),i=de(),c=yt(),p=Ye(),m=Ot(),f=Ns(),d=Pe(),t=nr(),s=er(),a=Qe(),l=Ke(),h=Rs(),u=Tt(),v=Me(),g=bt(),y=He(),w=rr();function O(...b){return b.length===1&&Array.isArray(b[0])&&(b=b[0]),new h(b)}O.plugin=function(b,T){let x=!1;function k(...C){console&&console.warn&&!x&&(x=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
|
|
25
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let I=T(...C);return I.postcssPlugin=b,I.postcssVersion=new h().version,I}let _;return Object.defineProperty(k,"postcss",{get(){return _||(_=k()),_}}),k.process=function(C,I,N){return O([k(N)]).process(C,I)},k},O.stringify=y,O.parse=l,O.fromJSON=f,O.list=s,O.comment=b=>new r(b),O.atRule=b=>new o(b),O.decl=b=>new p(b),O.rule=b=>new g(b),O.root=b=>new v(b),O.document=b=>new m(b),O.CssSyntaxError=c,O.Declaration=p,O.Container=i,O.Processor=h,O.Document=m,O.Comment=r,O.Warning=w,O.AtRule=o,O.Result=u,O.Input=d,O.Rule=g,O.Root=v,O.Node=a,t.registerPostcss(O),n.exports=O,O.default=O}),Ws=E((e,n)=>{var{Container:o}=_t(),r=class extends o{constructor(i){super(i),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};n.exports=r}),Ls=E((e,n)=>{"use strict";var o=/[\t\n\f\r "#'()/;[\\\]{}]/g,r=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,i=/.[\r\n"'(/\\]/,c=/[\da-f]/i,p=/[\n\f\r]/g;n.exports=function(m,f={}){let d=m.css.valueOf(),t=f.ignoreErrors,s,a,l,h,u,v,g,y,w,O=d.length,b=0,T=[],x=[],k;function _(){return b}function C(M){throw m.error("Unclosed "+M,b)}function I(){return x.length===0&&b>=O}function N(){let M=1,P=!1,z=!1;for(;M>0;)a+=1,d.length<=a&&C("interpolation"),s=d.charCodeAt(a),y=d.charCodeAt(a+1),P?!z&&s===P?(P=!1,z=!1):s===92?z=!z:z&&(z=!1):s===39||s===34?P=s:s===125?M-=1:s===35&&y===123&&(M+=1)}function $(M){if(x.length)return x.pop();if(b>=O)return;let P=M?M.ignoreUnclosed:!1;switch(s=d.charCodeAt(b),s){case 10:case 32:case 9:case 13:case 12:{a=b;do a+=1,s=d.charCodeAt(a);while(s===32||s===10||s===9||s===13||s===12);w=["space",d.slice(b,a)],b=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let z=String.fromCharCode(s);w=[z,z,b];break}case 44:{w=["word",",",b,b+1];break}case 40:{if(g=T.length?T.pop()[1]:"",y=d.charCodeAt(b+1),g==="url"&&y!==39&&y!==34){for(k=1,v=!1,a=b+1;a<=d.length-1;){if(y=d.charCodeAt(a),y===92)v=!v;else if(y===40)k+=1;else if(y===41&&(k-=1,k===0))break;a+=1}h=d.slice(b,a+1),w=["brackets",h,b,a],b=a}else a=d.indexOf(")",b+1),h=d.slice(b,a+1),a===-1||i.test(h)?w=["(","(",b]:(w=["brackets",h,b,a],b=a);break}case 39:case 34:{for(l=s,a=b,v=!1;a<O&&(a++,a===O&&C("string"),s=d.charCodeAt(a),y=d.charCodeAt(a+1),!(!v&&s===l));)s===92?v=!v:v?v=!1:s===35&&y===123&&N();w=["string",d.slice(b,a+1),b,a],b=a;break}case 64:{o.lastIndex=b+1,o.test(d),o.lastIndex===0?a=d.length-1:a=o.lastIndex-2,w=["at-word",d.slice(b,a+1),b,a],b=a;break}case 92:{for(a=b,u=!0;d.charCodeAt(a+1)===92;)a+=1,u=!u;if(s=d.charCodeAt(a+1),u&&s!==47&&s!==32&&s!==10&&s!==9&&s!==13&&s!==12&&(a+=1,c.test(d.charAt(a)))){for(;c.test(d.charAt(a+1));)a+=1;d.charCodeAt(a+1)===32&&(a+=1)}w=["word",d.slice(b,a+1),b,a],b=a;break}default:y=d.charCodeAt(b+1),s===35&&y===123?(a=b,N(),h=d.slice(b,a+1),w=["word",h,b,a],b=a):s===47&&y===42?(a=d.indexOf("*/",b+2)+1,a===0&&(t||P?a=d.length:C("comment")),w=["comment",d.slice(b,a+1),b,a],b=a):s===47&&y===47?(p.lastIndex=b+1,p.test(d),p.lastIndex===0?a=d.length-1:a=p.lastIndex-2,h=d.slice(b,a+1),w=["comment",h,b,a,"inline"],b=a):(r.lastIndex=b+1,r.test(d),r.lastIndex===0?a=d.length-1:a=r.lastIndex-2,w=["word",d.slice(b,a+1),b,a],T.push(w),b=a);break}return b++,w}function R(M){x.push(M)}return{back:R,endOfFile:I,nextToken:$,position:_}}}),zs=E((e,n)=>{var{Comment:o}=_t(),r=kt(),i=Ws(),c=Ls(),p=class extends r{atrule(m){let f=m[1],d=m;for(;!this.tokenizer.endOfFile();){let t=this.tokenizer.nextToken();if(t[0]==="word"&&t[2]===d[3]+1)f+=t[1],d=t;else{this.tokenizer.back(t);break}}super.atrule(["at-word",f,m[2],d[3]])}comment(m){if(m[4]==="inline"){let f=new o;this.init(f,m[2]),f.raws.inline=!0;let d=this.input.fromOffset(m[3]);f.source.end={column:d.col,line:d.line,offset:m[3]+1};let t=m[1].slice(2);if(/^\s*$/.test(t))f.text="",f.raws.left=t,f.raws.right="";else{let s=t.match(/^(\s*)([^]*\S)(\s*)$/),a=s[2].replace(/(\*\/|\/\*)/g,"*//*");f.text=a,f.raws.left=s[1],f.raws.right=s[3],f.raws.text=s[2]}}else super.comment(m)}createTokenizer(){this.tokenizer=c(this.input)}raw(m,f,d,t){if(super.raw(m,f,d,t),m.raws[f]){let s=m.raws[f].raw;m.raws[f].raw=d.reduce((a,l)=>{if(l[0]==="comment"&&l[4]==="inline"){let h=l[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return a+"/*"+h+"*/"}else return a+l[1]},""),s!==m.raws[f].raw&&(m.raws[f].scss=s)}}rule(m){let f=!1,d=0,t="";for(let s of m)if(f)s[0]!=="comment"&&s[0]!=="{"&&(t+=s[1]);else{if(s[0]==="space"&&s[1].includes(`
|
|
26
|
-
`))break;s[0]==="("?d+=1:s[0]===")"?d-=1:d===0&&s[0]===":"&&(f=!0)}if(!f||t.trim()===""||/^[#:A-Za-z-]/.test(t))super.rule(m);else{m.pop();let s=new i;this.init(s,m[0][2]);let a;for(let h=m.length-1;h>=0;h--)if(m[h][0]!=="space"){a=m[h];break}if(a[3]){let h=this.input.fromOffset(a[3]);s.source.end={column:h.col,line:h.line,offset:a[3]+1}}else{let h=this.input.fromOffset(a[2]);s.source.end={column:h.col,line:h.line,offset:a[2]+1}}for(;m[0][0]!=="word";)s.raws.before+=m.shift()[1];if(m[0][2]){let h=this.input.fromOffset(m[0][2]);s.source.start={column:h.col,line:h.line,offset:m[0][2]}}for(s.prop="";m.length;){let h=m[0][0];if(h===":"||h==="space"||h==="comment")break;s.prop+=m.shift()[1]}s.raws.between="";let l;for(;m.length;)if(l=m.shift(),l[0]===":"){s.raws.between+=l[1];break}else s.raws.between+=l[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1)),s.raws.between+=this.spacesAndCommentsFromStart(m),this.precheckMissedSemicolon(m);for(let h=m.length-1;h>0;h--){if(l=m[h],l[1]==="!important"){s.important=!0;let u=this.stringFrom(m,h);u=this.spacesFromEnd(m)+u,u!==" !important"&&(s.raws.important=u);break}else if(l[1]==="important"){let u=m.slice(0),v="";for(let g=h;g>0;g--){let y=u[g][0];if(v.trim().indexOf("!")===0&&y!=="space")break;v=u.pop()[1]+v}v.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=v,m=u)}if(l[0]!=="space"&&l[0]!=="comment")break}this.raw(s,"value",m),s.value.includes(":")&&this.checkMissedSemicolon(m),this.current=s}}};n.exports=p}),qs=E((e,n)=>{var{Input:o}=_t(),r=zs();n.exports=function(i,c){let p=new o(i,c),m=new r(p);return m.parse(),m.root}}),or=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});function n(o){this.after=o.after,this.before=o.before,this.type=o.type,this.value=o.value,this.sourceIndex=o.sourceIndex}e.default=n}),ir=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=or(),o=r(n);function r(c){return c&&c.__esModule?c:{default:c}}function i(c){var p=this;this.constructor(c),this.nodes=c.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(m){m.parent=p})}i.prototype=Object.create(o.default.prototype),i.constructor=o.default,i.prototype.walk=function(c,p){for(var m=typeof c=="string"||c instanceof RegExp,f=m?p:c,d=typeof c=="string"?new RegExp(c):c,t=0;t<this.nodes.length;t++){var s=this.nodes[t],a=m?d.test(s.type):!0;if(a&&f&&f(s,t,this.nodes)===!1||s.nodes&&s.walk(c,p)===!1)return!1}return!0},i.prototype.each=function(){for(var c=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],p=0;p<this.nodes.length;p++){var m=this.nodes[p];if(c(m,p,this.nodes)===!1)return!1}return!0},e.default=i}),Bs=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseMediaFeature=p,e.parseMediaQuery=m,e.parseMediaList=f;var n=or(),o=c(n),r=ir(),i=c(r);function c(d){return d&&d.__esModule?d:{default:d}}function p(d){var t=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[{mode:"normal",character:null}],a=[],l=0,h="",u=null,v=null,g=t,y=d;d[0]==="("&&d[d.length-1]===")"&&(y=d.substring(1,d.length-1),g++);for(var w=0;w<y.length;w++){var O=y[w];if((O==="'"||O==='"')&&(s[l].isCalculationEnabled===!0?(s.push({mode:"string",isCalculationEnabled:!1,character:O}),l++):s[l].mode==="string"&&s[l].character===O&&y[w-1]!=="\\"&&(s.pop(),l--)),O==="{"?(s.push({mode:"interpolation",isCalculationEnabled:!0}),l++):O==="}"&&(s.pop(),l--),s[l].mode==="normal"&&O===":"){var b=y.substring(w+1);v={type:"value",before:/^(\s*)/.exec(b)[1],after:/(\s*)$/.exec(b)[1],value:b.trim()},v.sourceIndex=v.before.length+w+1+g,u={type:"colon",sourceIndex:w+g,after:v.before,value:":"};break}h+=O}return h={type:"media-feature",before:/^(\s*)/.exec(h)[1],after:/(\s*)$/.exec(h)[1],value:h.trim()},h.sourceIndex=h.before.length+g,a.push(h),u!==null&&(u.before=h.after,a.push(u)),v!==null&&a.push(v),a}function m(d){var t=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[],a=0,l=!1,h=void 0;function u(){return{before:"",after:"",value:""}}h=u();for(var v=0;v<d.length;v++){var g=d[v];l?(h.value+=g,(g==="{"||g==="(")&&a++,(g===")"||g==="}")&&a--):g.search(/\s/)!==-1?h.before+=g:(g==="("&&(h.type="media-feature-expression",a++),h.value=g,h.sourceIndex=t+v,l=!0),l&&a===0&&(g===")"||v===d.length-1||d[v+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(h.value)!==-1&&(h.type="keyword"),h.type==="media-feature-expression"&&(h.nodes=p(h.value,h.sourceIndex)),s.push(Array.isArray(h.nodes)?new i.default(h):new o.default(h)),h=u(),l=!1)}for(var y=0;y<s.length;y++)if(h=s[y],y>0&&(s[y-1].after=h.before),h.type===void 0){if(y>0){if(s[y-1].type==="media-feature-expression"){h.type="keyword";continue}if(s[y-1].value==="not"||s[y-1].value==="only"){h.type="media-type";continue}if(s[y-1].value==="and"){h.type="media-feature-expression";continue}s[y-1].type==="media-type"&&(s[y+1]?h.type=s[y+1].type==="media-feature-expression"?"keyword":"media-feature-expression":h.type="media-feature-expression")}if(y===0){if(!s[y+1]){h.type="media-type";continue}if(s[y+1]&&(s[y+1].type==="media-feature-expression"||s[y+1].type==="keyword")){h.type="media-type";continue}if(s[y+2]){if(s[y+2].type==="media-feature-expression"){h.type="media-type",s[y+1].type="keyword";continue}if(s[y+2].type==="keyword"){h.type="keyword",s[y+1].type="media-type";continue}}if(s[y+3]&&s[y+3].type==="media-feature-expression"){h.type="keyword",s[y+1].type="media-type",s[y+2].type="keyword";continue}}}return s}function f(d){var t=[],s=0,a=0,l=/^(\s*)url\s*\(/.exec(d);if(l!==null){for(var h=l[0].length,u=1;u>0;){var v=d[h];v==="("&&u++,v===")"&&u--,h++}t.unshift(new o.default({type:"url",value:d.substring(0,h).trim(),sourceIndex:l[1].length,before:l[1],after:/^(\s*)/.exec(d.substring(h))[1]})),s=h}for(var g=s;g<d.length;g++){var y=d[g];if(y==="("&&a++,y===")"&&a--,a===0&&y===","){var w=d.substring(s,g),O=/^(\s*)/.exec(w)[1];t.push(new i.default({type:"media-query",value:w.trim(),sourceIndex:s+O.length,nodes:m(w,s),before:O,after:/(\s*)$/.exec(w)[1]})),s=g+1}}var b=d.substring(s),T=/^(\s*)/.exec(b)[1];return t.push(new i.default({type:"media-query",value:b.trim(),sourceIndex:s+T.length,nodes:m(b,s),before:T,after:/(\s*)$/.exec(b)[1]})),t}}),Ds=E(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var n=ir(),o=i(n),r=Bs();function i(p){return p&&p.__esModule?p:{default:p}}function c(p){return new o.default({nodes:(0,r.parseMediaList)(p),type:"media-query-list",value:p.trim()})}}),ar=E((e,n)=>{n.exports=function(o,r){if(r=typeof r=="number"?r:1/0,!r)return Array.isArray(o)?o.map(function(c){return c}):o;return i(o,1);function i(c,p){return c.reduce(function(m,f){return Array.isArray(f)&&p<r?m.concat(i(f,p+1)):m.concat(f)},[])}}}),ur=E((e,n)=>{n.exports=function(o,r){for(var i=-1,c=[];(i=o.indexOf(r,i+1))!==-1;)c.push(i);return c}}),lr=E((e,n)=>{"use strict";function o(c,p){for(var m=1,f=c.length,d=c[0],t=c[0],s=1;s<f;++s)if(t=d,d=c[s],p(d,t)){if(s===m){m++;continue}c[m++]=d}return c.length=m,c}function r(c){for(var p=1,m=c.length,f=c[0],d=c[0],t=1;t<m;++t,d=f)if(d=f,f=c[t],f!==d){if(t===p){p++;continue}c[p++]=f}return c.length=p,c}function i(c,p,m){return c.length===0?c:p?(m||c.sort(p),o(c,p)):(m||c.sort(),r(c))}n.exports=i}),be=E((e,n)=>{"use strict";e.__esModule=!0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p};function r(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}var i=function p(m,f){if((typeof m>"u"?"undefined":o(m))!=="object")return m;var d=new m.constructor;for(var t in m)if(m.hasOwnProperty(t)){var s=m[t],a=typeof s>"u"?"undefined":o(s);t==="parent"&&a==="object"?f&&(d[t]=f):s instanceof Array?d[t]=s.map(function(l){return p(l,d)}):d[t]=p(s,d)}return d},c=(function(){function p(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r(this,p);for(var f in m)this[f]=m[f];var d=m.spaces;d=d===void 0?{}:d;var t=d.before,s=t===void 0?"":t,a=d.after,l=a===void 0?"":a;this.spaces={before:s,after:l}}return p.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},p.prototype.replaceWith=function(){if(this.parent){for(var m in arguments)this.parent.insertBefore(this,arguments[m]);this.remove()}return this},p.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},p.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},p.prototype.clone=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=i(this);for(var d in m)f[d]=m[d];return f},p.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},p})();e.default=c,n.exports=e.default}),V=E(e=>{"use strict";e.__esModule=!0;var n=e.TAG="tag",o=e.STRING="string",r=e.SELECTOR="selector",i=e.ROOT="root",c=e.PSEUDO="pseudo",p=e.NESTING="nesting",m=e.ID="id",f=e.COMMENT="comment",d=e.COMBINATOR="combinator",t=e.CLASS="class",s=e.ATTRIBUTE="attribute",a=e.UNIVERSAL="universal"}),St=E((e,n)=>{"use strict";e.__esModule=!0;var o=(function(){function l(h,u){for(var v=0;v<u.length;v++){var g=u[v];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}return function(h,u,v){return u&&l(h.prototype,u),v&&l(h,v),h}})(),r=be(),i=f(r),c=V(),p=m(c);function m(l){if(l&&l.__esModule)return l;var h={};if(l!=null)for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(h[u]=l[u]);return h.default=l,h}function f(l){return l&&l.__esModule?l:{default:l}}function d(l,h){if(!(l instanceof h))throw new TypeError("Cannot call a class as a function")}function t(l,h){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:l}function s(l,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);l.prototype=Object.create(h&&h.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(l,h):l.__proto__=h)}var a=(function(l){s(h,l);function h(u){d(this,h);var v=t(this,l.call(this,u));return v.nodes||(v.nodes=[]),v}return h.prototype.append=function(u){return u.parent=this,this.nodes.push(u),this},h.prototype.prepend=function(u){return u.parent=this,this.nodes.unshift(u),this},h.prototype.at=function(u){return this.nodes[u]},h.prototype.index=function(u){return typeof u=="number"?u:this.nodes.indexOf(u)},h.prototype.removeChild=function(u){u=this.index(u),this.at(u).parent=void 0,this.nodes.splice(u,1);var v=void 0;for(var g in this.indexes)v=this.indexes[g],v>=u&&(this.indexes[g]=v-1);return this},h.prototype.removeAll=function(){for(var g=this.nodes,u=Array.isArray(g),v=0,g=u?g:g[Symbol.iterator]();;){var y;if(u){if(v>=g.length)break;y=g[v++]}else{if(v=g.next(),v.done)break;y=v.value}var w=y;w.parent=void 0}return this.nodes=[],this},h.prototype.empty=function(){return this.removeAll()},h.prototype.insertAfter=function(u,v){var g=this.index(u);this.nodes.splice(g+1,0,v);var y=void 0;for(var w in this.indexes)y=this.indexes[w],g<=y&&(this.indexes[w]=y+this.nodes.length);return this},h.prototype.insertBefore=function(u,v){var g=this.index(u);this.nodes.splice(g,0,v);var y=void 0;for(var w in this.indexes)y=this.indexes[w],g<=y&&(this.indexes[w]=y+this.nodes.length);return this},h.prototype.each=function(u){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var v=this.lastEach;if(this.indexes[v]=0,!!this.length){for(var g=void 0,y=void 0;this.indexes[v]<this.length&&(g=this.indexes[v],y=u(this.at(g),g),y!==!1);)this.indexes[v]+=1;if(delete this.indexes[v],y===!1)return!1}},h.prototype.walk=function(u){return this.each(function(v,g){var y=u(v,g);if(y!==!1&&v.length&&(y=v.walk(u)),y===!1)return!1})},h.prototype.walkAttributes=function(u){var v=this;return this.walk(function(g){if(g.type===p.ATTRIBUTE)return u.call(v,g)})},h.prototype.walkClasses=function(u){var v=this;return this.walk(function(g){if(g.type===p.CLASS)return u.call(v,g)})},h.prototype.walkCombinators=function(u){var v=this;return this.walk(function(g){if(g.type===p.COMBINATOR)return u.call(v,g)})},h.prototype.walkComments=function(u){var v=this;return this.walk(function(g){if(g.type===p.COMMENT)return u.call(v,g)})},h.prototype.walkIds=function(u){var v=this;return this.walk(function(g){if(g.type===p.ID)return u.call(v,g)})},h.prototype.walkNesting=function(u){var v=this;return this.walk(function(g){if(g.type===p.NESTING)return u.call(v,g)})},h.prototype.walkPseudos=function(u){var v=this;return this.walk(function(g){if(g.type===p.PSEUDO)return u.call(v,g)})},h.prototype.walkTags=function(u){var v=this;return this.walk(function(g){if(g.type===p.TAG)return u.call(v,g)})},h.prototype.walkUniversals=function(u){var v=this;return this.walk(function(g){if(g.type===p.UNIVERSAL)return u.call(v,g)})},h.prototype.split=function(u){var v=this,g=[];return this.reduce(function(y,w,O){var b=u.call(v,w);return g.push(w),b?(y.push(g),g=[]):O===v.length-1&&y.push(g),y},[])},h.prototype.map=function(u){return this.nodes.map(u)},h.prototype.reduce=function(u,v){return this.nodes.reduce(u,v)},h.prototype.every=function(u){return this.nodes.every(u)},h.prototype.some=function(u){return this.nodes.some(u)},h.prototype.filter=function(u){return this.nodes.filter(u)},h.prototype.sort=function(u){return this.nodes.sort(u)},h.prototype.toString=function(){return this.map(String).join("")},o(h,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),h})(i.default);e.default=a,n.exports=e.default}),Fs=E((e,n)=>{"use strict";e.__esModule=!0;var o=St(),r=c(o),i=V();function c(t){return t&&t.__esModule?t:{default:t}}function p(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function m(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function f(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var d=(function(t){f(s,t);function s(a){p(this,s);var l=m(this,t.call(this,a));return l.type=i.ROOT,l}return s.prototype.toString=function(){var a=this.reduce(function(l,h){var u=String(h);return u?l+u+",":""},"").slice(0,-1);return this.trailingComma?a+",":a},s})(r.default);e.default=d,n.exports=e.default}),Us=E((e,n)=>{"use strict";e.__esModule=!0;var o=St(),r=c(o),i=V();function c(t){return t&&t.__esModule?t:{default:t}}function p(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function m(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function f(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var d=(function(t){f(s,t);function s(a){p(this,s);var l=m(this,t.call(this,a));return l.type=i.SELECTOR,l}return s})(r.default);e.default=d,n.exports=e.default}),Ne=E((e,n)=>{"use strict";e.__esModule=!0;var o=(function(){function t(s,a){for(var l=0;l<a.length;l++){var h=a[l];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(s,h.key,h)}}return function(s,a,l){return a&&t(s.prototype,a),l&&t(s,l),s}})(),r=be(),i=c(r);function c(t){return t&&t.__esModule?t:{default:t}}function p(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function m(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function f(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var d=(function(t){f(s,t);function s(){return p(this,s),m(this,t.apply(this,arguments))}return s.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},o(s,[{key:"ns",get:function(){var a=this.namespace;return a?(typeof a=="string"?a:"")+"|":""}}]),s})(i.default);e.default=d,n.exports=e.default}),Vs=E((e,n)=>{"use strict";e.__esModule=!0;var o=Ne(),r=c(o),i=V();function c(t){return t&&t.__esModule?t:{default:t}}function p(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function m(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function f(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var d=(function(t){f(s,t);function s(a){p(this,s);var l=m(this,t.call(this,a));return l.type=i.CLASS,l}return s.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},s})(r.default);e.default=d,n.exports=e.default}),Gs=E((e,n)=>{"use strict";e.__esModule=!0;var o=be(),r=c(o),i=V();function c(t){return t&&t.__esModule?t:{default:t}}function p(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function m(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function f(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var d=(function(t){f(s,t);function s(a){p(this,s);var l=m(this,t.call(this,a));return l.type=i.COMMENT,l}return s})(r.default);e.default=d,n.exports=e.default}),Js=E((e,n)=>{"use strict";e.__esModule=!0;var o=Ne(),r=c(o),i=V();function c(t){return t&&t.__esModule?t:{default:t}}function p(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function m(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function f(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var d=(function(t){f(s,t);function s(a){p(this,s);var l=m(this,t.call(this,a));return l.type=i.ID,l}return s.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},s})(r.default);e.default=d,n.exports=e.default}),Hs=E((e,n)=>{"use strict";e.__esModule=!0;var o=Ne(),r=c(o),i=V();function c(t){return t&&t.__esModule?t:{default:t}}function p(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function m(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function f(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var d=(function(t){f(s,t);function s(a){p(this,s);var l=m(this,t.call(this,a));return l.type=i.TAG,l}return s})(r.default);e.default=d,n.exports=e.default}),Qs=E((e,n)=>{"use strict";e.__esModule=!0;var o=be(),r=c(o),i=V();function c(t){return t&&t.__esModule?t:{default:t}}function p(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function m(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function f(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var d=(function(t){f(s,t);function s(a){p(this,s);var l=m(this,t.call(this,a));return l.type=i.STRING,l}return s})(r.default);e.default=d,n.exports=e.default}),Ys=E((e,n)=>{"use strict";e.__esModule=!0;var o=St(),r=c(o),i=V();function c(t){return t&&t.__esModule?t:{default:t}}function p(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function m(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function f(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var d=(function(t){f(s,t);function s(a){p(this,s);var l=m(this,t.call(this,a));return l.type=i.PSEUDO,l}return s.prototype.toString=function(){var a=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),a,this.spaces.after].join("")},s})(r.default);e.default=d,n.exports=e.default}),Ks=E((e,n)=>{"use strict";e.__esModule=!0;var o=Ne(),r=c(o),i=V();function c(t){return t&&t.__esModule?t:{default:t}}function p(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function m(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function f(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var d=(function(t){f(s,t);function s(a){p(this,s);var l=m(this,t.call(this,a));return l.type=i.ATTRIBUTE,l.raws={},l}return s.prototype.toString=function(){var a=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&a.push(this.operator),this.value&&a.push(this.value),this.raws.insensitive?a.push(this.raws.insensitive):this.insensitive&&a.push(" i"),a.push("]"),a.concat(this.spaces.after).join("")},s})(r.default);e.default=d,n.exports=e.default}),Zs=E((e,n)=>{"use strict";e.__esModule=!0;var o=Ne(),r=c(o),i=V();function c(t){return t&&t.__esModule?t:{default:t}}function p(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function m(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function f(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var d=(function(t){f(s,t);function s(a){p(this,s);var l=m(this,t.call(this,a));return l.type=i.UNIVERSAL,l.value="*",l}return s})(r.default);e.default=d,n.exports=e.default}),Xs=E((e,n)=>{"use strict";e.__esModule=!0;var o=be(),r=c(o),i=V();function c(t){return t&&t.__esModule?t:{default:t}}function p(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function m(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function f(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var d=(function(t){f(s,t);function s(a){p(this,s);var l=m(this,t.call(this,a));return l.type=i.COMBINATOR,l}return s})(r.default);e.default=d,n.exports=e.default}),en=E((e,n)=>{"use strict";e.__esModule=!0;var o=be(),r=c(o),i=V();function c(t){return t&&t.__esModule?t:{default:t}}function p(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function m(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:t}function f(t,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}var d=(function(t){f(s,t);function s(a){p(this,s);var l=m(this,t.call(this,a));return l.type=i.NESTING,l.value="&",l}return s})(r.default);e.default=d,n.exports=e.default}),tn=E((e,n)=>{"use strict";e.__esModule=!0,e.default=o;function o(r){return r.sort(function(i,c){return i-c})}n.exports=e.default}),rn=E((e,n)=>{"use strict";e.__esModule=!0,e.default=I;var o=39,r=34,i=92,c=47,p=10,m=32,f=12,d=9,t=13,s=43,a=62,l=126,h=124,u=44,v=40,g=41,y=91,w=93,O=59,b=42,T=58,x=38,k=64,_=/[ \n\t\r\{\(\)'"\\;/]/g,C=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function I(N){for(var $=[],R=N.css.valueOf(),M=void 0,P=void 0,z=void 0,le=void 0,ae=void 0,ue=void 0,_e=void 0,Se=void 0,Ce=void 0,q=void 0,Ge=void 0,Ht=R.length,j=-1,S=1,A=0,W=function(L,B){if(N.safe)R+=B,P=R.length-1;else throw N.error("Unclosed "+L,S,A-j,A)};A<Ht;){switch(M=R.charCodeAt(A),M===p&&(j=A,S+=1),M){case p:case m:case d:case t:case f:P=A;do P+=1,M=R.charCodeAt(P),M===p&&(j=P,S+=1);while(M===m||M===p||M===d||M===t||M===f);$.push(["space",R.slice(A,P),S,A-j,A]),A=P-1;break;case s:case a:case l:case h:P=A;do P+=1,M=R.charCodeAt(P);while(M===s||M===a||M===l||M===h);$.push(["combinator",R.slice(A,P),S,A-j,A]),A=P-1;break;case b:$.push(["*","*",S,A-j,A]);break;case x:$.push(["&","&",S,A-j,A]);break;case u:$.push([",",",",S,A-j,A]);break;case y:$.push(["[","[",S,A-j,A]);break;case w:$.push(["]","]",S,A-j,A]);break;case T:$.push([":",":",S,A-j,A]);break;case O:$.push([";",";",S,A-j,A]);break;case v:$.push(["(","(",S,A-j,A]);break;case g:$.push([")",")",S,A-j,A]);break;case o:case r:z=M===o?"'":'"',P=A;do for(q=!1,P=R.indexOf(z,P+1),P===-1&&W("quote",z),Ge=P;R.charCodeAt(Ge-1)===i;)Ge-=1,q=!q;while(q);$.push(["string",R.slice(A,P+1),S,A-j,S,P-j,A]),A=P;break;case k:_.lastIndex=A+1,_.test(R),_.lastIndex===0?P=R.length-1:P=_.lastIndex-2,$.push(["at-word",R.slice(A,P+1),S,A-j,S,P-j,A]),A=P;break;case i:for(P=A,_e=!0;R.charCodeAt(P+1)===i;)P+=1,_e=!_e;M=R.charCodeAt(P+1),_e&&M!==c&&M!==m&&M!==p&&M!==d&&M!==t&&M!==f&&(P+=1),$.push(["word",R.slice(A,P+1),S,A-j,S,P-j,A]),A=P;break;default:M===c&&R.charCodeAt(A+1)===b?(P=R.indexOf("*/",A+2)+1,P===0&&W("comment","*/"),ue=R.slice(A,P+1),le=ue.split(`
|
|
27
|
-
`),ae=le.length-1,ae>0?(Se=S+ae,Ce=P-le[ae].length):(Se=S,Ce=j),$.push(["comment",ue,S,A-j,Se,P-Ce,A]),j=Ce,S=Se,A=P):(C.lastIndex=A+1,C.test(R),C.lastIndex===0?P=R.length-1:P=C.lastIndex-2,$.push(["word",R.slice(A,P+1),S,A-j,S,P-j,A]),A=P);break}A++}return $}n.exports=e.default}),sn=E((e,n)=>{"use strict";e.__esModule=!0;var o=(function(){function j(S,A){for(var W=0;W<A.length;W++){var L=A[W];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(S,L.key,L)}}return function(S,A,W){return A&&j(S.prototype,A),W&&j(S,W),S}})(),r=ar(),i=q(r),c=ur(),p=q(c),m=lr(),f=q(m),d=Fs(),t=q(d),s=Us(),a=q(s),l=Vs(),h=q(l),u=Gs(),v=q(u),g=Js(),y=q(g),w=Hs(),O=q(w),b=Qs(),T=q(b),x=Ys(),k=q(x),_=Ks(),C=q(_),I=Zs(),N=q(I),$=Xs(),R=q($),M=en(),P=q(M),z=tn(),le=q(z),ae=rn(),ue=q(ae),_e=V(),Se=Ce(_e);function Ce(j){if(j&&j.__esModule)return j;var S={};if(j!=null)for(var A in j)Object.prototype.hasOwnProperty.call(j,A)&&(S[A]=j[A]);return S.default=j,S}function q(j){return j&&j.__esModule?j:{default:j}}function Ge(j,S){if(!(j instanceof S))throw new TypeError("Cannot call a class as a function")}var Ht=(function(){function j(S){Ge(this,j),this.input=S,this.lossy=S.options.lossless===!1,this.position=0,this.root=new t.default;var A=new a.default;return this.root.append(A),this.current=A,this.lossy?this.tokens=(0,ue.default)({safe:S.safe,css:S.css.trim()}):this.tokens=(0,ue.default)(S),this.loop()}return j.prototype.attribute=function(){var S="",A=void 0,W=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)S+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~S.indexOf("]")&&this.error("Expected a closing square bracket.");var L=S.split(/((?:[*~^$|]?=))([^]*)/),B=L[0].split(/(\|)/g),se={operator:L[1],value:L[2],source:{start:{line:W[2],column:W[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:W[4]};if(B.length>1?(B[0]===""&&(B[0]=!0),se.attribute=this.parseValue(B[2]),se.namespace=this.parseNamespace(B[0])):se.attribute=this.parseValue(L[0]),A=new C.default(se),L[2]){var ce=L[2].split(/(\s+i\s*?)$/),pe=ce[0].trim();A.value=this.lossy?pe:ce[0],ce[1]&&(A.insensitive=!0,this.lossy||(A.raws.insensitive=ce[1])),A.quoted=pe[0]==="'"||pe[0]==='"',A.raws.unquoted=A.quoted?pe.slice(1,-1):pe}this.newNode(A),this.position++},j.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var S=new R.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(S.spaces.before=this.parseSpace(this.currToken[1]),S.source.start.line=this.nextToken[2],S.source.start.column=this.nextToken[3],S.source.end.column=this.nextToken[3],S.source.end.line=this.nextToken[2],S.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?S.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?S.value=this.currToken[1]:this.currToken[0]==="space"&&(S.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(S)},j.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var S=new a.default;this.current.parent.append(S),this.current=S,this.position++},j.prototype.comment=function(){var S=new v.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(S),this.position++},j.prototype.error=function(S){throw new this.input.error(S)},j.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},j.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},j.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},j.prototype.namespace=function(){var S=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(S);if(this.nextToken[0]==="*")return this.position++,this.universal(S)},j.prototype.nesting=function(){this.newNode(new P.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},j.prototype.parentheses=function(){var S=this.current.last;if(S&&S.type===Se.PSEUDO){var A=new a.default,W=this.current;S.append(A),this.current=A;var L=1;for(this.position++;this.position<this.tokens.length&&L;)this.currToken[0]==="("&&L++,this.currToken[0]===")"&&L--,L?this.parse():(A.parent.source.end.line=this.currToken[2],A.parent.source.end.column=this.currToken[3],this.position++);L&&this.error("Expected closing parenthesis."),this.current=W}else{var B=1;for(this.position++,S.value+="(";this.position<this.tokens.length&&B;)this.currToken[0]==="("&&B++,this.currToken[0]===")"&&B--,S.value+=this.parseParenthesisToken(this.currToken),this.position++;B&&this.error("Expected closing parenthesis.")}},j.prototype.pseudo=function(){for(var S=this,A="",W=this.currToken;this.currToken&&this.currToken[0]===":";)A+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var L=void 0;this.splitWord(!1,function(B,se){A+=B,L=new k.default({value:A,source:{start:{line:W[2],column:W[3]},end:{line:S.currToken[4],column:S.currToken[5]}},sourceIndex:W[4]}),S.newNode(L),se>1&&S.nextToken&&S.nextToken[0]==="("&&S.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},j.prototype.space=function(){var S=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(S[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(S[1]),this.position++):this.combinator()},j.prototype.string=function(){var S=this.currToken;this.newNode(new T.default({value:this.currToken[1],source:{start:{line:S[2],column:S[3]},end:{line:S[4],column:S[5]}},sourceIndex:S[6]})),this.position++},j.prototype.universal=function(S){var A=this.nextToken;if(A&&A[1]==="|")return this.position++,this.namespace();this.newNode(new N.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),S),this.position++},j.prototype.splitWord=function(S,A){for(var W=this,L=this.nextToken,B=this.currToken[1];L&&L[0]==="word";){this.position++;var se=this.currToken[1];if(B+=se,se.lastIndexOf("\\")===se.length-1){var ce=this.nextToken;ce&&ce[0]==="space"&&(B+=this.parseSpace(ce[1]," "),this.position++)}L=this.nextToken}var pe=(0,p.default)(B,"."),pt=(0,p.default)(B,"#"),ds=(0,p.default)(B,"#{");ds.length&&(pt=pt.filter(function(fe){return!~ds.indexOf(fe)}));var Ae=(0,le.default)((0,f.default)((0,i.default)([[0],pe,pt])));Ae.forEach(function(fe,Je){var ft=Ae[Je+1]||B.length,ht=B.slice(fe,ft);if(Je===0&&A)return A.call(W,ht,Ae.length);var dt=void 0;~pe.indexOf(fe)?dt=new h.default({value:ht.slice(1),source:{start:{line:W.currToken[2],column:W.currToken[3]+fe},end:{line:W.currToken[4],column:W.currToken[3]+(ft-1)}},sourceIndex:W.currToken[6]+Ae[Je]}):~pt.indexOf(fe)?dt=new y.default({value:ht.slice(1),source:{start:{line:W.currToken[2],column:W.currToken[3]+fe},end:{line:W.currToken[4],column:W.currToken[3]+(ft-1)}},sourceIndex:W.currToken[6]+Ae[Je]}):dt=new O.default({value:ht,source:{start:{line:W.currToken[2],column:W.currToken[3]+fe},end:{line:W.currToken[4],column:W.currToken[3]+(ft-1)}},sourceIndex:W.currToken[6]+Ae[Je]}),W.newNode(dt,S)}),this.position++},j.prototype.word=function(S){var A=this.nextToken;return A&&A[1]==="|"?(this.position++,this.namespace()):this.splitWord(S)},j.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},j.prototype.parse=function(S){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":S&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string();break}},j.prototype.parseNamespace=function(S){if(this.lossy&&typeof S=="string"){var A=S.trim();return A.length?A:!0}return S},j.prototype.parseSpace=function(S,A){return this.lossy?A||"":S},j.prototype.parseValue=function(S){return this.lossy&&S&&typeof S=="string"?S.trim():S},j.prototype.parseParenthesisToken=function(S){return this.lossy?S[0]==="space"?this.parseSpace(S[1]," "):this.parseValue(S[1]):S[1]},j.prototype.newNode=function(S,A){return A&&(S.namespace=this.parseNamespace(A)),this.spaces&&(S.spaces.before=this.spaces,this.spaces=""),this.current.append(S)},o(j,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),j})();e.default=Ht,n.exports=e.default}),nn=E((e,n)=>{"use strict";e.__esModule=!0;var o=(function(){function f(d,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(d,a.key,a)}}return function(d,t,s){return t&&f(d.prototype,t),s&&f(d,s),d}})(),r=sn(),i=c(r);function c(f){return f&&f.__esModule?f:{default:f}}function p(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}var m=(function(){function f(d){return p(this,f),this.func=d||function(){},this}return f.prototype.process=function(d){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=new i.default({css:d,error:function(a){throw new Error(a)},options:t});return this.res=s,this.func(s),this},o(f,[{key:"result",get:function(){return String(this.res)}}]),f})();e.default=m,n.exports=e.default}),ee=E((e,n)=>{"use strict";var o=function(r,i){let c=new r.constructor;for(let p in r){if(!r.hasOwnProperty(p))continue;let m=r[p],f=typeof m;p==="parent"&&f==="object"?i&&(c[p]=i):p==="source"?c[p]=m:m instanceof Array?c[p]=m.map(d=>o(d,c)):p!=="before"&&p!=="after"&&p!=="between"&&p!=="semicolon"&&(f==="object"&&m!==null&&(m=o(m)),c[p]=m)}return c};n.exports=class{constructor(r){r=r||{},this.raws={before:"",after:""};for(let i in r)this[i]=r[i]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(r){r=r||{};let i=o(this);for(let c in r)i[c]=r[c];return i}cloneBefore(r){r=r||{};let i=this.clone(r);return this.parent.insertBefore(this,i),i}cloneAfter(r){r=r||{};let i=this.clone(r);return this.parent.insertAfter(this,i),i}replaceWith(){let r=Array.prototype.slice.call(arguments);if(this.parent){for(let i of r)this.parent.insertBefore(this,i);this.remove()}return this}moveTo(r){return this.cleanRaws(this.root()===r.root()),this.remove(),r.append(this),this}moveBefore(r){return this.cleanRaws(this.root()===r.root()),this.remove(),r.parent.insertBefore(r,this),this}moveAfter(r){return this.cleanRaws(this.root()===r.root()),this.remove(),r.parent.insertAfter(r,this),this}next(){let r=this.parent.index(this);return this.parent.nodes[r+1]}prev(){let r=this.parent.index(this);return this.parent.nodes[r-1]}toJSON(){let r={};for(let i in this){if(!this.hasOwnProperty(i)||i==="parent")continue;let c=this[i];c instanceof Array?r[i]=c.map(p=>typeof p=="object"&&p.toJSON?p.toJSON():p):typeof c=="object"&&c.toJSON?r[i]=c.toJSON():r[i]=c}return r}root(){let r=this;for(;r.parent;)r=r.parent;return r}cleanRaws(r){delete this.raws.before,delete this.raws.after,r||delete this.raws.between}positionInside(r){let i=this.toString(),c=this.source.start.column,p=this.source.start.line;for(let m=0;m<r;m++)i[m]===`
|
|
28
|
-
`?(c=1,p+=1):c+=1;return{line:p,column:c}}positionBy(r){let i=this.source.start;if(Object(r).index)i=this.positionInside(r.index);else if(Object(r).word){let c=this.toString().indexOf(r.word);c!==-1&&(i=this.positionInside(c))}return i}}}),Y=E((e,n)=>{"use strict";var o=ee(),r=class extends o{constructor(i){super(i),this.nodes||(this.nodes=[])}push(i){return i.parent=this,this.nodes.push(i),this}each(i){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let c=this.lastEach,p,m;if(this.indexes[c]=0,!!this.nodes){for(;this.indexes[c]<this.nodes.length&&(p=this.indexes[c],m=i(this.nodes[p],p),m!==!1);)this.indexes[c]+=1;return delete this.indexes[c],m}}walk(i){return this.each((c,p)=>{let m=i(c,p);return m!==!1&&c.walk&&(m=c.walk(i)),m})}walkType(i,c){if(!i||!c)throw new Error("Parameters {type} and {callback} are required.");let p=typeof i=="function";return this.walk((m,f)=>{if(p&&m instanceof i||!p&&m.type===i)return c.call(this,m,f)})}append(i){return i.parent=this,this.nodes.push(i),this}prepend(i){return i.parent=this,this.nodes.unshift(i),this}cleanRaws(i){if(super.cleanRaws(i),this.nodes)for(let c of this.nodes)c.cleanRaws(i)}insertAfter(i,c){let p=this.index(i),m;this.nodes.splice(p+1,0,c);for(let f in this.indexes)m=this.indexes[f],p<=m&&(this.indexes[f]=m+this.nodes.length);return this}insertBefore(i,c){let p=this.index(i),m;this.nodes.splice(p,0,c);for(let f in this.indexes)m=this.indexes[f],p<=m&&(this.indexes[f]=m+this.nodes.length);return this}removeChild(i){i=this.index(i),this.nodes[i].parent=void 0,this.nodes.splice(i,1);let c;for(let p in this.indexes)c=this.indexes[p],c>=i&&(this.indexes[p]=c-1);return this}removeAll(){for(let i of this.nodes)i.parent=void 0;return this.nodes=[],this}every(i){return this.nodes.every(i)}some(i){return this.nodes.some(i)}index(i){return typeof i=="number"?i:this.nodes.indexOf(i)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let i=this.nodes.map(String).join("");return this.value&&(i=this.value+i),this.raws.before&&(i=this.raws.before+i),this.raws.after&&(i+=this.raws.after),i}};r.registerWalker=i=>{let c="walk"+i.name;c.lastIndexOf("s")!==c.length-1&&(c+="s"),!r.prototype[c]&&(r.prototype[c]=function(p){return this.walkType(i,p)})},n.exports=r}),on=E((e,n)=>{"use strict";var o=Y();n.exports=class extends o{constructor(r){super(r),this.type="root"}}}),an=E((e,n)=>{"use strict";var o=Y();n.exports=class extends o{constructor(r){super(r),this.type="value",this.unbalanced=0}}}),un=E((e,n)=>{"use strict";var o=Y(),r=class extends o{constructor(i){super(i),this.type="atword"}toString(){let i=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};o.registerWalker(r),n.exports=r}),ln=E((e,n)=>{"use strict";var o=Y(),r=ee(),i=class extends r{constructor(c){super(c),this.type="colon"}};o.registerWalker(i),n.exports=i}),cn=E((e,n)=>{"use strict";var o=Y(),r=ee(),i=class extends r{constructor(c){super(c),this.type="comma"}};o.registerWalker(i),n.exports=i}),pn=E((e,n)=>{"use strict";var o=Y(),r=ee(),i=class extends r{constructor(c){super(c),this.type="comment",this.inline=Object(c).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};o.registerWalker(i),n.exports=i}),fn=E((e,n)=>{"use strict";var o=Y(),r=class extends o{constructor(i){super(i),this.type="func",this.unbalanced=-1}};o.registerWalker(r),n.exports=r}),hn=E((e,n)=>{"use strict";var o=Y(),r=ee(),i=class extends r{constructor(c){super(c),this.type="number",this.unit=Object(c).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};o.registerWalker(i),n.exports=i}),dn=E((e,n)=>{"use strict";var o=Y(),r=ee(),i=class extends r{constructor(c){super(c),this.type="operator"}};o.registerWalker(i),n.exports=i}),mn=E((e,n)=>{"use strict";var o=Y(),r=ee(),i=class extends r{constructor(c){super(c),this.type="paren",this.parenType=""}};o.registerWalker(i),n.exports=i}),yn=E((e,n)=>{"use strict";var o=Y(),r=ee(),i=class extends r{constructor(c){super(c),this.type="string"}toString(){let c=this.quoted?this.raws.quote:"";return[this.raws.before,c,this.value+"",c,this.raws.after].join("")}};o.registerWalker(i),n.exports=i}),vn=E((e,n)=>{"use strict";var o=Y(),r=ee(),i=class extends r{constructor(c){super(c),this.type="word"}};o.registerWalker(i),n.exports=i}),gn=E((e,n)=>{"use strict";var o=Y(),r=ee(),i=class extends r{constructor(c){super(c),this.type="unicode-range"}};o.registerWalker(i),n.exports=i}),wn=E((e,n)=>{"use strict";var o=class extends Error{constructor(r){super(r),this.name=this.constructor.name,this.message=r||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(r).stack}};n.exports=o}),bn=E((e,n)=>{"use strict";var o=/[ \n\t\r\{\(\)'"\\;,/]/g,r=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,i=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,c=/^[a-z0-9]/i,p=/^[a-f0-9?\-]/i,m=wn();n.exports=function(f,d){d=d||{};let t=[],s=f.valueOf(),a=s.length,l=-1,h=1,u=0,v=0,g=null,y,w,O,b,T,x,k,_,C,I,N,$;function R(P){let z=`Unclosed ${P} at line: ${h}, column: ${u-l}, token: ${u}`;throw new m(z)}function M(){let P=`Syntax error at line: ${h}, column: ${u-l}, token: ${u}`;throw new m(P)}for(;u<a;){switch(y=s.charCodeAt(u),y===10&&(l=u,h+=1),y){case 10:case 32:case 9:case 13:case 12:w=u;do w+=1,y=s.charCodeAt(w),y===10&&(l=w,h+=1);while(y===32||y===10||y===9||y===13||y===12);t.push(["space",s.slice(u,w),h,u-l,h,w-l,u]),u=w-1;break;case 58:w=u+1,t.push(["colon",s.slice(u,w),h,u-l,h,w-l,u]),u=w-1;break;case 44:w=u+1,t.push(["comma",s.slice(u,w),h,u-l,h,w-l,u]),u=w-1;break;case 123:t.push(["{","{",h,u-l,h,w-l,u]);break;case 125:t.push(["}","}",h,u-l,h,w-l,u]);break;case 40:v++,g=!g&&v===1&&t.length>0&&t[t.length-1][0]==="word"&&t[t.length-1][1]==="url",t.push(["(","(",h,u-l,h,w-l,u]);break;case 41:v--,g=g&&v>0,t.push([")",")",h,u-l,h,w-l,u]);break;case 39:case 34:O=y===39?"'":'"',w=u;do for(I=!1,w=s.indexOf(O,w+1),w===-1&&R("quote",O),N=w;s.charCodeAt(N-1)===92;)N-=1,I=!I;while(I);t.push(["string",s.slice(u,w+1),h,u-l,h,w-l,u]),u=w;break;case 64:o.lastIndex=u+1,o.test(s),o.lastIndex===0?w=s.length-1:w=o.lastIndex-2,t.push(["atword",s.slice(u,w+1),h,u-l,h,w-l,u]),u=w;break;case 92:w=u,y=s.charCodeAt(w+1),k&&y!==47&&y!==32&&y!==10&&y!==9&&y!==13&&y!==12&&(w+=1),t.push(["word",s.slice(u,w+1),h,u-l,h,w-l,u]),u=w;break;case 43:case 45:case 42:w=u+1,$=s.slice(u+1,w+1);let P=s.slice(u-1,u);if(y===45&&$.charCodeAt(0)===45){w++,t.push(["word",s.slice(u,w),h,u-l,h,w-l,u]),u=w-1;break}t.push(["operator",s.slice(u,w),h,u-l,h,w-l,u]),u=w-1;break;default:if(y===47&&(s.charCodeAt(u+1)===42||d.loose&&!g&&s.charCodeAt(u+1)===47)){if(s.charCodeAt(u+1)===42)w=s.indexOf("*/",u+2)+1,w===0&&R("comment","*/");else{let z=s.indexOf(`
|
|
29
|
-
`,u+2);w=z!==-1?z-1:a}x=s.slice(u,w+1),b=x.split(`
|
|
30
|
-
`),T=b.length-1,T>0?(_=h+T,C=w-b[T].length):(_=h,C=l),t.push(["comment",x,h,u-l,_,w-C,u]),l=C,h=_,u=w}else if(y===35&&!c.test(s.slice(u+1,u+2)))w=u+1,t.push(["#",s.slice(u,w),h,u-l,h,w-l,u]),u=w-1;else if((y===117||y===85)&&s.charCodeAt(u+1)===43){w=u+2;do w+=1,y=s.charCodeAt(w);while(w<a&&p.test(s.slice(w,w+1)));t.push(["unicoderange",s.slice(u,w),h,u-l,h,w-l,u]),u=w-1}else if(y===47)w=u+1,t.push(["operator",s.slice(u,w),h,u-l,h,w-l,u]),u=w-1;else{let z=r;if(y>=48&&y<=57&&(z=i),z.lastIndex=u+1,z.test(s),z.lastIndex===0?w=s.length-1:w=z.lastIndex-2,z===i||y===46){let le=s.charCodeAt(w),ae=s.charCodeAt(w+1),ue=s.charCodeAt(w+2);(le===101||le===69)&&(ae===45||ae===43)&&ue>=48&&ue<=57&&(i.lastIndex=w+2,i.test(s),i.lastIndex===0?w=s.length-1:w=i.lastIndex-2)}t.push(["word",s.slice(u,w+1),h,u-l,h,w-l,u]),u=w}break}u++}return t}}),xn=E((e,n)=>{"use strict";var o=class extends Error{constructor(r){super(r),this.name=this.constructor.name,this.message=r||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(r).stack}};n.exports=o}),kn=E((e,n)=>{"use strict";var o=on(),r=an(),i=un(),c=ln(),p=cn(),m=pn(),f=fn(),d=hn(),t=dn(),s=mn(),a=yn(),l=vn(),h=gn(),u=bn(),v=ar(),g=ur(),y=lr(),w=xn();function O(b){return b.sort((T,x)=>T-x)}n.exports=class{constructor(b,T){let x={loose:!1};this.cache=[],this.input=b,this.options=Object.assign({},x,T),this.position=0,this.unbalanced=0,this.root=new o;let k=new r;this.root.append(k),this.current=k,this.tokens=u(b,this.options)}parse(){return this.loop()}colon(){let b=this.currToken;this.newNode(new c({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++}comma(){let b=this.currToken;this.newNode(new p({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++}comment(){let b=!1,T=this.currToken[1].replace(/\/\*|\*\//g,""),x;this.options.loose&&T.startsWith("//")&&(T=T.substring(2),b=!0),x=new m({value:T,inline:b,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(x),this.position++}error(b,T){throw new w(b+` at line: ${T[2]}, column ${T[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let b=this.currToken[1],T;if(b==="+"||b==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return T=new t({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(T)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let b=1,T=this.position+1,x=this.currToken,k;for(;T<this.tokens.length&&b;){let _=this.tokens[T];_[0]==="("&&b++,_[0]===")"&&b--,T++}if(b&&this.error("Expected closing parenthesis",x),k=this.current.last,k&&k.type==="func"&&k.unbalanced<0&&(k.unbalanced=0,this.current=k),this.current.unbalanced++,this.newNode(new s({value:x[1],source:{start:{line:x[2],column:x[3]},end:{line:x[4],column:x[5]}},sourceIndex:x[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let _=this.nextToken,C=this.currToken[1],I={line:this.currToken[2],column:this.currToken[3]};for(;_&&_[0]!==")"&&this.current.unbalanced;)this.position++,C+=this.currToken[1],_=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new l({value:C,source:{start:I,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let b=this.currToken;this.newNode(new s({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",b),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let b=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=b[1],this.position++):(this.spaces=b[1],this.position++)}unicodeRange(){let b=this.currToken;this.newNode(new h({value:b[1],source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6]})),this.position++}splitWord(){let b=this.nextToken,T=this.currToken[1],x=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,k=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,_,C;if(!k.test(T))for(;b&&b[0]==="word";){this.position++;let I=this.currToken[1];T+=I,b=this.nextToken}_=g(T,"@"),C=O(y(v([[0],_]))),C.forEach((I,N)=>{let $=C[N+1]||T.length,R=T.slice(I,$),M;if(~_.indexOf(I))M=new i({value:R.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+($-1)}},sourceIndex:this.currToken[6]+C[N]});else if(x.test(this.currToken[1])){let P=R.replace(x,"");M=new d({value:R.replace(P,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+($-1)}},sourceIndex:this.currToken[6]+C[N],unit:P})}else M=new(b&&b[0]==="("?f:l)({value:R,source:{start:{line:this.currToken[2],column:this.currToken[3]+I},end:{line:this.currToken[4],column:this.currToken[3]+($-1)}},sourceIndex:this.currToken[6]+C[N]}),M.type==="word"?(M.isHex=/^#(.+)/.test(R),M.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(R)):this.cache.push(this.current);this.newNode(M)}),this.position++}string(){let b=this.currToken,T=this.currToken[1],x=/^(\"|\')/,k=x.test(T),_="",C;k&&(_=T.match(x)[0],T=T.slice(1,T.length-1)),C=new a({value:T,source:{start:{line:b[2],column:b[3]},end:{line:b[4],column:b[5]}},sourceIndex:b[6],quoted:k}),C.raws.quote=_,this.newNode(C),this.position++}word(){return this.splitWord()}newNode(b){return this.spaces&&(b.raws.before+=this.spaces,this.spaces=""),this.current.append(b)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),cr={};Yt(cr,{languages:()=>qi,options:()=>Fi,parsers:()=>os,printers:()=>Ta});var pr=(e,n)=>(o,r,...i)=>o|1&&r==null?void 0:(n.call(r)??r[e]).apply(r,i),On=String.prototype.replaceAll??function(e,n){return e.global?this.replace(e,n):this.split(e).join(n)},Tn=pr("replaceAll",function(){if(typeof this=="string")return On}),D=Tn;function _n(e){return this[e<0?this.length+e:e]}var Sn=pr("at",function(){if(Array.isArray(this)||typeof this=="string")return _n}),me=Sn,Cn=()=>{},fr=Cn,hr="string",dr="array",mr="cursor",Ze="indent",Ct="align",yr="trim",Xe="group",et="fill",tt="if-break",vr="indent-if-break",At="line-suffix",Et="line-suffix-boundary",ye="line",gr="label",It="break-parent",wr=new Set([mr,Ze,Ct,yr,Xe,et,tt,vr,At,Et,ye,gr,It]);function An(e,n,o){if(!e.has(n)){let r=o(n);e.set(n,r)}return e.get(n)}function En(e){if(typeof e=="string")return hr;if(Array.isArray(e))return dr;if(!e)return;let{type:n}=e;if(wr.has(n))return n}var $e=En,In=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function jn(e){let n=e===null?"null":typeof e;if(n!=="string"&&n!=="object")return`Unexpected doc '${n}',
|
|
31
|
-
Expected it to be 'string' or 'object'.`;if($e(e))throw new Error("doc is valid.");let o=Object.prototype.toString.call(e);if(o!=="[object Object]")return`Unexpected doc '${o}'.`;let r=In([...wr].map(i=>`'${i}'`));return`Unexpected doc.type '${e.type}'.
|
|
32
|
-
Expected it to be ${r}.`}var Pn=class extends Error{name="InvalidDocError";constructor(e){super(jn(e)),this.doc=e}},Mn=Pn;function br(e,n){if(typeof e=="string")return n(e);let o=new Map;return r(e);function r(c){return An(o,c,i)}function i(c){switch($e(c)){case dr:return n(c.map(r));case et:return n({...c,parts:c.parts.map(r)});case tt:return n({...c,breakContents:r(c.breakContents),flatContents:r(c.flatContents)});case Xe:{let{expandedStates:p,contents:m}=c;return p?(p=p.map(r),m=p[0]):m=r(m),n({...c,contents:m,expandedStates:p})}case Ct:case Ze:case vr:case gr:case At:return n({...c,contents:r(c.contents)});case hr:case mr:case yr:case Et:case ye:case It:return n(c);default:throw new Mn(c)}}}function Nn(e){return e.type===ye&&!e.hard?e.soft?"":" ":e.type===tt?e.flatContents:e}function $n(e){return br(e,Nn)}function Rn(e,n=qn){return br(e,o=>typeof o=="string"?ne(n,o.split(`
|
|
33
|
-
`)):o)}var Wn=fr;function G(e){return{type:Ze,contents:e}}function Ln(e,n){return{type:Ct,contents:n,n:e}}function Re(e){return Ln(-1,e)}var rt={type:It};function st(e){return{type:et,parts:e}}function K(e,n={}){return Wn(n.expandedStates),{type:Xe,id:n.id,contents:e,break:!!n.shouldBreak,expandedStates:n.expandedStates}}function xr(e,n="",o={}){return{type:tt,breakContents:e,flatContents:n,groupId:o.groupId}}function ne(e,n){let o=[];for(let r=0;r<n.length;r++)r!==0&&o.push(e),o.push(n[r]);return o}var U={type:ye},J={type:ye,soft:!0},zn={type:ye,hard:!0},F=[zn,rt],kr={type:ye,hard:!0,literal:!0},qn=[kr,rt];function Or(e){return{type:At,contents:e}}var Tr={type:Et};function Bn(e){return Array.isArray(e)&&e.length>0}var nt=Bn,_r=Object.freeze({character:"'",codePoint:39}),Sr=Object.freeze({character:'"',codePoint:34}),Dn=Object.freeze({preferred:_r,alternate:Sr}),Fn=Object.freeze({preferred:Sr,alternate:_r});function Un(e,n){let{preferred:o,alternate:r}=n===!0||n==="'"?Dn:Fn,{length:i}=e,c=0,p=0;for(let m=0;m<i;m++){let f=e.charCodeAt(m);f===o.codePoint?c++:f===r.codePoint&&p++}return(c>p?r:o).character}var Vn=/\\(["'\\])|(["'])/g;function Gn(e,n){let o=n==='"'?"'":'"',r=D(0,e,Vn,(i,c,p)=>c?c===o?o:i:p===n?"\\"+p:p);return n+r+n}var Jn=Gn;function Hn(e,n){let o=e.slice(1,-1),r;return n.parser==="json"||n.parser==="jsonc"||n.parser==="json-stringify"||n.parser==="json5"&&n.quoteProps==="preserve"&&!n.singleQuote?r='"':n.__isInHtmlAttribute?r="'":r=Un(o,n.singleQuote),e.charAt(0)===r?e:Jn(o,r)}var Cr=Hn,Qn=class extends Error{name="UnexpectedNodeError";constructor(e,n,o="type"){super(`Unexpected ${n} node ${o}: ${JSON.stringify(e[o])}.`),this.node=e}},Yn=Qn;function Ar(){}Ar.getVisitorKeys=e=>e.type==="css-root"?["frontMatter"]:[];var Kn=Ar,We=null;function Le(e){if(We!==null&&typeof We.property){let n=We;return We=Le.prototype=null,n}return We=Le.prototype=e??Object.create(null),new Le}var Zn=10;for(let e=0;e<=Zn;e++)Le();function Xn(e){return Le(e)}function eo(e,n="type"){Xn(e);function o(r){let i=r[n],c=e[i];if(!Array.isArray(c))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:r});return c}return o}var to=eo,te=[["nodes"],["group"]],ro={"css-root":["frontMatter","nodes"],"css-comment":[],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":te[0],"media-query":te[0],"media-type":[],"media-feature-expression":te[0],"media-feature":[],"media-colon":[],"media-value":[],"media-keyword":[],"media-url":[],"media-unknown":[],"selector-root":te[0],"selector-selector":te[0],"selector-comment":[],"selector-string":[],"selector-tag":[],"selector-id":[],"selector-class":[],"selector-attribute":[],"selector-combinator":te[0],"selector-universal":[],"selector-pseudo":te[0],"selector-nesting":[],"selector-unknown":[],"value-value":te[1],"value-root":te[1],"value-comment":[],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":te[1],"value-paren":[],"value-number":[],"value-operator":[],"value-word":[],"value-colon":[],"value-comma":[],"value-string":[],"value-atword":[],"value-unicode-range":[],"value-unknown":[]},so=to(ro),no=so;function oo(e,n){let o=0;for(let r=0;r<e.line-1;++r)o=n.indexOf(`
|
|
34
|
-
`,o)+1;return o+e.column}var Er=oo;function jt(e){return(n,o,r)=>{if(o===!1)return!1;let i=!!r?.backwards,{length:c}=n,p=o;for(;p>=0&&p<c;){let m=n.charAt(p);if(e instanceof RegExp){if(!e.test(m))return p}else if(!e.includes(m))return p;i?p--:p++}return p===-1||p===c?p:!1}}var Ir=jt(" "),io=jt(",; "),jr=jt(/[^\n\r]/);function Pr(e,n){let{value:o}=e;return o==="-"||o==="--"||o.charAt(0)!=="-"?n:n-(o.charAt(1)==="-"?2:1)}function Mr(e,n){if(typeof e.source?.start?.offset=="number")return e.source.start.offset;if(typeof e.sourceIndex=="number")return e.type==="value-word"?Pr(e,e.sourceIndex):e.sourceIndex;if(e.source?.start)return Er(e.source.start,n);throw Object.assign(new Error("Can not locate node."),{node:e})}function Nr(e,n){if(e.type==="css-comment"&&e.inline)return jr(n,e.source.startOffset);if(e.type==="value-paren"&&typeof e.sourceIndex=="number")return e.sourceIndex+(e.value===")"?e.value.length:0);if(typeof e.source?.end?.offset=="number")return e.source.end.offset;if(e.source){if(e.source.end){let o=Er(e.source.end,n);return e.type==="value-word"?Pr(e,o):o}if(nt(e.nodes))return Nr(me(0,e.nodes,-1),n);if(e.type==="css-atrule"&&typeof e.name=="string")return Mr(e,n)+1+e.name.length+e.raws.afterName.length+e.raws.params.length}return typeof e.sourceIndex=="number"&&typeof e.value=="string"?e.sourceIndex+e.value.length:null}function ao(e,n){Pt(e,n,0,!1)}function Pt(e,n,o,r){if(r&&typeof e.type=="string")e.source??(e.source={}),e.source.startOffset=o,e.source.endOffset=o+n.length;else if(!(typeof e.source?.startOffset=="number"&&typeof e.source?.endOffset=="number")&&(e.source||typeof e.sourceIndex=="number")){e.source??(e.source={});let i=o+n.length;e.source.startOffset=Math.min(Mr(e,n)+o,i);let c=Nr(e,n);e.source.endOffset=typeof c=="number"?Math.min(c+o,i):c}for(let i in e){let c=e[i];if(i==="source"||!c||typeof c!="object")continue;let p=Array.isArray(c)?c:[c];for(let m of p){if(!m||typeof m!="object")continue;let f=uo(e,m,o);f?Pt(m,f.text,f.rootOffset,!0):Pt(m,n,o,!1),Wr(m,e)}}po(e),fo(e)}function uo(e,n,o){if(n.type==="value-root"||n.type==="value-unknown")return{rootOffset:$r(e),text:n.text||n.value||""};if(n.type==="media-query-list"||e.params===n)return{rootOffset:Rr(e),text:e.raws?.params||n.value||""};if(n.type?.startsWith("selector-")){let r=lo(e,n);if(typeof r=="string")return{rootOffset:co(e,n,r,o),text:r}}}function $r(e){let n=e.source.startOffset;return typeof e.prop=="string"&&(n+=e.prop.length),e.type==="css-atrule"&&typeof e.name=="string"&&(n+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),e.type!=="css-atrule"&&typeof e.raws?.between=="string"&&(n+=e.raws.between.length),n}function Rr(e){let n=e.source.startOffset;return e.type==="css-atrule"&&typeof e.name=="string"&&(n+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/)[0].length),n}function lo(e,n){if(typeof n.raws?.selector=="string")return n.raws.selector;if(e.selector===n){if(e.mixin)return e.raws.identifier+e.name+e.raws.afterName+e.raws.params;if(typeof e.raws?.selector=="string")return e.raws.selector;if(e.customSelector&&typeof e.raws?.params=="string")return e.raws.params.slice(e.customSelector.length).trim();if(typeof e.raws?.params=="string")return e.raws.params;if(e.type==="css-decl"&&typeof e.raws?.value=="string"){let{value:o}=e.raws;return e.extend&&o.startsWith("extend(")?o.slice(7,-1):o}}}function co(e,n,o,r){return typeof n.sourceIndex=="number"&&typeof n.raws?.selector=="string"?r+n.sourceIndex:e.mixin?e.source.startOffset:typeof e.raws?.selector=="string"?e.source.startOffset+Mt(e.raws.selector,o):typeof e.raws?.params=="string"?Rr(e)+Mt(e.raws.params,o):e.type==="css-decl"&&typeof e.raws?.value=="string"?$r(e)+Mt(e.raws.value,o):r}function Mt(e,n){let o=e.indexOf(n);return o===-1?0:o}function po(e){var n,o;if(typeof e.type!="string")return;let r=typeof e.source?.startOffset=="number"&&typeof e.source?.endOffset=="number",i=e.source?.start&&e.source.end;if(r&&i)return;let c=Number.POSITIVE_INFINITY,p=Number.NEGATIVE_INFINITY,m,f;for(let d in e){if(d==="source"||d==="raws"||d==="spaces")continue;let t=e[d],s=Array.isArray(t)?t:[t];for(let a of s)!a||typeof a!="object"||typeof a.source?.startOffset!="number"||typeof a.source?.endOffset!="number"||(a.source.startOffset<c&&(c=a.source.startOffset,m=a.source.start),a.source.endOffset>p&&(p=a.source.endOffset,f=a.source.end))}c!==Number.POSITIVE_INFINITY&&(e.source??(e.source={}),r||(e.source.startOffset=c,e.source.endOffset=p),(n=e.source).start??(n.start=m),(o=e.source).end??(o.end=f))}function Wr(e,n){typeof e.type!="string"||e.source||typeof n.source?.startOffset!="number"||typeof n.source?.endOffset!="number"||!ho(e)||(e.source={startOffset:n.source.startOffset,endOffset:n.source.startOffset,start:n.source.start,end:n.source.start})}function fo(e){if(!(typeof e.source?.startOffset!="number"||typeof e.source?.endOffset!="number"))for(let n in e){if(n==="source"||n==="raws"||n==="spaces")continue;let o=e[n],r=Array.isArray(o)?o:[o];for(let i of r)i&&typeof i=="object"&&Wr(i,e)}}function ho(e){return Array.isArray(e.nodes)&&e.nodes.length===0||Array.isArray(e.groups)&&e.groups.length===0}function mo(e){let n="initial",o="initial",r,i=!1,c=[];for(let p=0;p<e.length;p++){let m=e[p];switch(n){case"initial":if(m==="'"){n="single-quotes";continue}if(m==='"'){n="double-quotes";continue}if((m==="u"||m==="U")&&e.slice(p,p+4).toLowerCase()==="url("){n="url",p+=3;continue}if(m==="/"){let f=e[p+1];f==="*"?(n="comment-block",p++):f==="/"&&(n="comment-inline",r=p,p++);continue}continue;case"single-quotes":if(m==="'"&&e[p-1]!=="\\"&&(n=o,o="initial"),m===`
|
|
35
|
-
`||m==="\r")return e;continue;case"double-quotes":if(m==='"'&&e[p-1]!=="\\"&&(n=o,o="initial"),m===`
|
|
36
|
-
`||m==="\r")return e;continue;case"url":if(m===")")n="initial";else if(m===`
|
|
37
|
-
`||m==="\r")return e;if(m==="'"){n="single-quotes",o="url";continue}if(m==='"'){n="double-quotes",o="url";continue}continue;case"comment-block":m==="/"&&e[p-1]==="*"&&(n="initial");continue;case"comment-inline":m==='"'||m==="'"||m==="*"?i=!0:(m===`
|
|
38
|
-
`||m==="\r")&&(i&&c.push([r,p]),n="initial",i=!1);continue}}for(let[p,m]of c)e=e.slice(0,p)+D(0,e.slice(p,m),/["'*]/g," ")+e.slice(m);return e}var H=e=>e.source.startOffset,Q=e=>e.source.endOffset,Lr=Symbol.for("PRETTIER_IS_FRONT_MATTER");function yo(e){return!!e?.[Lr]}var Nt=yo;function vo(e){return D(0,e,/[^\n]/g," ")}var zr=vo,ze=3;function go(e){let n=e.slice(0,ze);if(n!=="---"&&n!=="+++")return;let o=e.indexOf(`
|
|
39
|
-
`,ze);if(o===-1)return;let r=e.slice(ze,o).trim(),i=e.indexOf(`
|
|
40
|
-
${n}`,o),c=r;if(c||(c=n==="+++"?"toml":"yaml"),i===-1&&n==="---"&&c==="yaml"&&(i=e.indexOf(`
|
|
41
|
-
...`,o)),i===-1)return;let p=i+1+ze,m=e.charAt(p+1);if(!/\s?/.test(m))return;let f=e.slice(0,p),d;return{language:c,explicitLanguage:r||null,value:e.slice(o+1,i),startDelimiter:n,endDelimiter:f.slice(-ze),raw:f,start:{line:1,column:0,index:0},end:{index:f.length,get line(){return d??(d=f.split(`
|
|
42
|
-
`)),d.length},get column(){return d??(d=f.split(`
|
|
43
|
-
`)),me(0,d,-1).length}},[Lr]:!0}}function wo(e){let n=go(e);return n?{frontMatter:n,get content(){let{raw:o}=n;return zr(o)+e.slice(o.length)}}:{content:e}}var ot=wo,bo=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function qr(e,n,o){if(e.type==="css-comment"&&o.type==="css-root"&&o.nodes.length>0&&((o.nodes[0]===e||Nt(o.nodes[0])&&o.nodes[1]===e)&&(delete n.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text))||o.type==="css-root"&&me(0,o.nodes,-1)===e))return null;if(e.type==="value-root"&&delete n.text,(e.type==="media-query"||e.type==="media-query-list"||e.type==="media-feature-expression")&&delete n.value,e.type==="css-rule"&&(delete n.params,e.extend&&ko(e.selector)&&delete n.extend),(e.type==="media-feature"||e.type==="media-keyword"||e.type==="media-type"||e.type==="media-unknown"||e.type==="media-url"||e.type==="media-value"||e.type==="selector-attribute"||e.type==="selector-string"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="value-string")&&e.value&&(n.value=xo(e.value)),e.type==="selector-combinator"&&(n.value=D(0,n.value,/\s+/g," ")),e.type==="media-feature"&&(n.value=D(0,n.value," ","")),(e.type==="value-word"&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||e.type==="media-feature"||e.type==="selector-root-invalid"||e.type==="selector-pseudo")&&(n.value=n.value.toLowerCase()),e.type==="css-decl"&&(n.prop=e.prop.toLowerCase()),(e.type==="css-atrule"||e.type==="css-import")&&(n.name=e.name.toLowerCase()),e.type==="value-number"&&(n.unit=e.unit.toLowerCase()),e.type==="value-unknown"&&(n.value=D(0,n.value,/;$/g,"")),e.type==="selector-attribute"&&(n.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(n.namespace=e.namespace.trim()||!0),e.value)){let{value:r}=n;/\s[a-z]$/i.test(r)&&(n.__prettier_attribute_selector_flag=me(0,r,-1),r=r.slice(0,-1)),r=r.trim(),r=r.replace(/^(?<quote>["'])(?<value>.*?)\k<quote>$/,"$<value>"),n.value=r,delete n.quoted}if((e.type==="media-value"||e.type==="media-type"||e.type==="value-number"||e.type==="selector-root-invalid"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="selector-tag")&&e.value&&(n.value=D(0,n.value,/([\d+.e-]+)([a-z]*)/gi,(r,i,c)=>{let p=Number(i);return Number.isNaN(p)?r:p+c.toLowerCase()})),e.type==="selector-tag"){let r=n.value.toLowerCase();["from","to"].includes(r)&&(n.value=r)}if(e.type==="css-atrule"&&e.name.toLowerCase()==="supports"&&delete n.value,e.type==="selector-unknown"&&delete n.value,e.type==="value-comma_group"){let r=e.groups.findIndex(i=>i.type==="value-number"&&i.unit==="...");r!==-1&&(n.groups[r].unit="",n.groups.splice(r+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(e.type==="value-comma_group"&&e.groups.some(r=>r.type==="value-atword"&&(r.value.endsWith("[")||r.value.endsWith("]"))||r.type==="value-word"&&(r.value.startsWith("]")||r.value.startsWith("["))))return{type:"value-atword",value:e.groups.map(r=>r.value).join("")};if(e.type==="value-func"&&e.value==="if"&&e.group.type==="value-paren_group"&&e.group.groups.length===1&&e.group.groups[0].type==="value-comma_group"){let r=e.group.groups[0].groups,i=n.group.groups[0].groups;for(let c=r.length-1;c>=0;c--){let p=r[c];if(p.type==="value-word"&&typeof p.value=="string"&&p.value.endsWith(";")){if(p.value===";"){r[c-1]?.type==="value-number"&&i.splice(c-1,2,{type:"#node-placeholder"});continue}i[c]={type:"#node-placeholder"}}}}}qr.ignoredProperties=bo;function xo(e){return D(0,D(0,e,"'",'"'),/\\([^\da-f])/gi,"$1")}function ko(e){return e?.nodes?.some(n=>n.nodes?.some(o=>o.type==="selector-pseudo"&&o.value===":extend"))}var Oo=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),Br=Oo,To=/\*\/$/,_o=/^\/\*\*?/,Dr=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,So=/(^|\s+)\/\/([^\n\r]*)/g,Fr=/^(\r?\n)+/,Co=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Ur=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Ao=/(\r?\n|^) *\* ?/g,Vr=[];function Eo(e){let n=e.match(Dr);return n?n[0].trimStart():""}function Io(e){let n=e.match(Dr)?.[0];return n==null?e:e.slice(n.length)}function jo(e){e=D(0,e.replace(_o,"").replace(To,""),Ao,"$1");let n="";for(;n!==e;)n=e,e=D(0,e,Co,`
|
|
44
|
-
$1 $2
|
|
45
|
-
`);e=e.replace(Fr,"").trimEnd();let o=Object.create(null),r=D(0,e,Ur,"").replace(Fr,"").trimEnd(),i;for(;i=Ur.exec(e);){let c=D(0,i[2],So,"");if(typeof o[i[1]]=="string"||Array.isArray(o[i[1]])){let p=o[i[1]];o[i[1]]=[...Vr,...Array.isArray(p)?p:[p],c]}else o[i[1]]=c}return{comments:r,pragmas:o}}function Po({comments:e="",pragmas:n={}}){let o=Object.keys(n),r=o.flatMap(c=>Gr(c,n[c])).map(c=>` * ${c}
|
|
46
|
-
`).join("");if(!e){if(o.length===0)return"";if(o.length===1&&!Array.isArray(n[o[0]])){let c=n[o[0]];return`/** ${Gr(o[0],c)[0]} */`}}let i=e.split(`
|
|
47
|
-
`).map(c=>` * ${c}`).join(`
|
|
48
|
-
`)+`
|
|
49
|
-
`;return`/**
|
|
50
|
-
`+(e?i:"")+(e&&o.length>0?` *
|
|
51
|
-
`:"")+r+" */"}function Gr(e,n){return[...Vr,...Array.isArray(n)?n:[n]].map(o=>`@${e} ${o}`.trim())}var Mo=["noformat","noprettier"],No=["format","prettier"],$o="format";function Ro(e){if(!e.startsWith("#!"))return"";let n=e.indexOf(`
|
|
52
|
-
`);return n===-1?e:e.slice(0,n)}var Wo=Ro;function $t(e){let n=Wo(e);n&&(e=e.slice(n.length+1));let o=Eo(e),{pragmas:r,comments:i}=jo(o);return{shebang:n,text:e,pragmas:r,comments:i}}function Lo(e){let{pragmas:n}=$t(e);return No.some(o=>Br(n,o))}function zo(e){let{pragmas:n}=$t(e);return Mo.some(o=>Br(n,o))}function qo(e){let{shebang:n,text:o,pragmas:r,comments:i}=$t(e),c=Io(o),p=Po({pragmas:{[$o]:"",...r},comments:i.trimStart()});return(n?`${n}
|
|
53
|
-
`:"")+p+(c.startsWith(`
|
|
54
|
-
`)?`
|
|
55
|
-
`:`
|
|
56
|
-
|
|
57
|
-
`)+c}var Bo=e=>Lo(ot(e).content),Do=e=>zo(ot(e).content),Fo=e=>{let{frontMatter:n,content:o}=ot(e);return(n?n.raw+`
|
|
58
|
-
|
|
59
|
-
`:"")+qo(o)},Uo=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Vo(e){return e.findAncestor(n=>n.type==="css-decl")?.prop?.toLowerCase()}var Go=new Set(["initial","inherit","unset","revert"]);function Jo(e){return Go.has(e.toLowerCase())}function Ho(e,n){return e.findAncestor(o=>o.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(n.toLowerCase())}function qe(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function Be(e,n){return e.findAncestor(o=>o.type==="value-func")?.value?.toLowerCase()===n}function Qo(e){return e.hasAncestor(n=>{if(n.type!=="css-rule")return!1;let o=n.raws?.selector;return o&&(o.startsWith(":import")||o.startsWith(":export"))})}function De(e,n){let o=Array.isArray(n)?n:[n],r=e.findAncestor(i=>i.type==="css-atrule");return r&&o.includes(r.name.toLowerCase())}function Yo(e){let{node:n}=e;return n.groups[0]?.value==="url"&&n.groups.length===2&&e.findAncestor(o=>o.type==="css-atrule")?.name==="import"}function Ko(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function Zo(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function Xo(e){let{selector:n}=e;return n?typeof n=="string"&&/^@.+:.*$/.test(n)||n.value&&/^@.+:.*$/.test(n.value):!1}function ei(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function ti(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function ri(e){return e.type==="value-word"&&e.value==="in"}function Rt(e){return e.type==="value-operator"&&e.value==="*"}function xe(e){return e?.type==="value-operator"&&e.value==="/"}function oe(e){return e.type==="value-operator"&&e.value==="+"}function ke(e){return e.type==="value-operator"&&e.value==="-"}function si(e){return e.type==="value-operator"&&e.value==="%"}function it(e){return Rt(e)||xe(e)||oe(e)||ke(e)||si(e)}function ni(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function oi(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function Wt(e,n){return n.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function Jr(e){return e.raws?.params&&/^\(\s*\)$/.test(e.raws.params)}function Lt(e){return e.name.startsWith("prettier-placeholder")}function ii(e){return e.prop.startsWith("@prettier-placeholder")}function ai(e,n){return e.value==="$$"&&e.type==="value-func"&&n?.type==="value-word"&&!n.raws.before}function ui(e){return e.value?.type==="value-root"&&e.value.group?.type==="value-value"&&e.prop.toLowerCase()==="composes"}function li(e){return e.value?.group?.group?.type==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function ie(e){return e?.raws?.before===""}function zt(e){return e.type==="value-comma_group"&&e.groups?.[1]?.type==="value-colon"}function qt(e){return e.type==="value-paren_group"&&e.groups?.[0]&&zt(e.groups[0])}function Hr(e,n){if(n.parser!=="scss")return!1;let{node:o}=e;if(o.groups.length===0||o.type==="value-paren_group"&&o.open&&o.close&&o.groups.length===1&&o.groups[0].type!=="value-comma_group")return!1;let r=e.parent;if(r&&r.type==="value-func"&&r.value==="if")return!1;let i=e.grandparent;return!qt(o)&&!(i&&qt(i))?!1:e.findAncestor(c=>c.type==="css-decl")?.prop?.startsWith("$")?!0:qt(i)?!r.groups.some(c=>it(c)):i.type==="value-func"}function at(e){return e.type==="value-comment"&&e.inline}function Bt(e){return e.type==="value-word"&&e.value==="#"}function Qr(e){return e.type==="value-word"&&e.value==="{"}function Dt(e){return e.type==="value-word"&&e.value==="}"}function ut(e){return["value-word","value-atword"].includes(e.type)}function Ft(e){return e?.type==="value-colon"}function ci(e,n){if(!zt(n))return!1;let{groups:o}=n,r=o.indexOf(e);return r===-1?!1:Ft(o[r+1])}function pi(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function fi(e){return e.type!=="value-func"?!1:Uo.has(e.value.toLowerCase())}function Fe(e){return/\/\//.test(e.split(/[\n\r]/).pop())}function Oe(e){return e?.type==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function hi(e,n){if(e.open?.value!=="("||e.close?.value!==")"||e.groups.some(o=>o.type!=="value-comma_group"))return!1;if(n.type==="value-comma_group"){let o=n.groups.indexOf(e)-1,r=n.groups[o];if(r?.type==="value-word"&&r.value==="with")return!0}return!1}function lt(e){return e.type==="value-paren_group"&&e.open?.value==="("&&e.close?.value===")"}function di(e,n,o){let{node:r}=e,i=e.parent,c=e.grandparent,p=Vo(e),m=p&&i.type==="value-value"&&(p==="grid"||p.startsWith("grid-template")),f=e.findAncestor(v=>v.type==="css-atrule"),d=f&&Wt(f,n),t=r.groups.some(v=>at(v)),s=e.map(o,"groups"),a=[""],l=Be(e,"url"),h=!1,u=!1;for(let v=0;v<r.groups.length;++v){let g=r.groups[v-1],y=r.groups[v],w=r.groups[v+1];if(at(y)&&!w){a.push([a.pop(),Or([" ",s[v]])]);continue}if(a.push([a.pop(),s[v]]),l){(w&&oe(w)||oe(y))&&a.push([a.pop()," "]);continue}if(De(e,"forward")&&y.type==="value-word"&&y.value&&g!==void 0&&g.type==="value-word"&&g.value==="as"&&w.type==="value-operator"&&w.value==="*"||De(e,"utility")&&y.type==="value-word"&&w&&w.type==="value-operator"&&w.value==="*"||!w||n.parser==="scss"&&w.type==="value-word"&&w.value===";"&&e.match(void 0,(C,I)=>I==="groups"&&C.type==="value-paren_group",(C,I)=>I==="group"&&C.type==="value-func"&&C.value==="if")||y.type==="value-word"&&Oe(w)&&Q(y)===H(w))continue;if(y.type==="value-string"&&y.quoted){let C=y.value.lastIndexOf("#{"),I=y.value.lastIndexOf("}");C!==-1&&I!==-1?h=C>I:C!==-1?h=!0:I!==-1&&(h=!1)}if(h||Ft(y)||Ft(w)||y.type==="value-atword"&&(y.value===""||y.value.endsWith("["))||w.type==="value-word"&&w.value.startsWith("]")||y.value==="~")continue;if(n.parser==="less"){if(w?.type==="value-word"&&w.value==="[")continue;if(y.type==="value-word"&&y.value.endsWith("[")&&(w?.type==="value-atword"||w?.type==="value-word")){fr(r.groups.some((C,I)=>I>v&&(C.value?.startsWith("]")||C.value?.endsWith("]"))));continue}}if(y.type!=="value-string"&&y.value&&y.value.includes("\\")&&w&&w.type!=="value-comment"||g?.value&&g.value.indexOf("\\")===g.value.length-1&&y.type==="value-operator"&&y.value==="/"||y.value==="\\"||ai(y,w)||Bt(y)||Qr(y)||Dt(w)||Qr(w)&&ie(w)||Dt(y)&&ie(w)||y.value==="--"&&Bt(w))continue;let O=it(y),b=it(w);if((O&&Bt(w)||b&&Dt(y))&&ie(w)||oe(w)&&Be(e,"type")&&ie(w)||!g&&xe(y)||Be(e,"calc")&&(oe(y)||oe(w)||ke(y)||ke(w))&&ie(w))continue;if(n.parser==="scss"&&O&&y.value==="-"&&w.type==="value-func"&&Q(y)!==H(w)){a.push([a.pop()," "]);continue}let T=r.groups[v+2],x=(oe(y)||ke(y))&&v===0&&(w.type==="value-number"||w.isHex)&&c&&fi(c)&&!ie(w),k=T?.type==="value-func"||T&&ut(T)||y.type==="value-func"||ut(y),_=w.type==="value-func"||ut(w)||g?.type==="value-func"||g&&ut(g);if(!(!(Rt(w)||Rt(y))&&!Be(e,"calc")&&!x&&(xe(w)&&!k||xe(y)&&!_||oe(w)&&!k||oe(y)&&!_||ke(w)||ke(y))&&(ie(w)||O&&(!g||g&&it(g))))&&!((n.parser==="scss"||n.parser==="less")&&O&&y.value==="-"&<(w)&&Q(y)===H(w.open)&&w.open.value==="(")){if(at(y)){if(i.type==="value-paren_group"){a.push(Re(F),"");continue}a.push(F,"");continue}if(d&&(ni(w)||oi(w)||ti(w)||ri(y)||ei(y))){a.push([a.pop()," "]);continue}if(f&&f.name.toLowerCase()==="namespace"){a.push([a.pop()," "]);continue}if(m){y.source&&w.source&&y.source.start.line!==w.source.start.line?(a.push(F,""),u=!0):a.push([a.pop()," "]);continue}if(!(p&&(p==="font"||p.startsWith("--"))&&(xe(w)&&ie(w)&&Yr(y)||xe(y)&&ie(y)&&Yr(g)))){if(b){a.push([a.pop()," "]);continue}if(w?.value!=="..."&&!(Oe(y)&&Oe(w)&&Q(y)===H(w))){if(Oe(y)&<(w)&&Q(y)===H(w.open)){a.push(J,"");continue}if(y.value==="with"&<(w)){a=[[st(a)," "]];continue}if(!(y.value?.endsWith("#")&&w.value==="{"&<(w.group))&&!(at(w)&&!T)){if(!f&&y.type==="value-comment"&&!y.inline&&r.groups.slice(0,v).every(C=>C.type==="value-comment")){a.push(Re(U),"");continue}a.push(U,"")}}}}}return t&&a.push([a.pop(),rt]),u&&a.unshift("",F),d?K(G(a)):Yo(e)?K(st(a)):K(G(st(a)))}function Yr(e){if(e?.type==="value-number")return!0;if(e?.type!=="value-func")return!1;let n=e.value.toLowerCase();return n==="var"||n==="calc"||n==="min"||n==="max"||n==="clamp"||n.startsWith("--")}var mi=di;function yi(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}var vi=yi,Ut=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function Kr(e){let n=e.toLowerCase();return Ut.has(n)?Ut.get(n):e}var Zr=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,gi=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/gi,wi=/[a-z]+/gi,bi=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/gi,xi=new RegExp(Zr.source+`|(${bi.source})?(${gi.source})(${wi.source})?`,"gi");function re(e,n){return D(0,e,Zr,o=>Cr(o,n))}function ki(e,n){let o=n.singleQuote?"'":'"',r="",i=e.match(/^(?<value>.+?)\s+(?<flag>[a-z])$/i);return i&&({value:e,flag:r}=i.groups),(e.includes('"')||e.includes("'")?e:o+e+o)+(r?` ${r}`:"")}function Te(e){return D(0,e,xi,(n,o,r,i,c)=>!r&&i&&(c??(c=""),c=c.toLowerCase(),!c||c==="n"||Ut.has(c))?Xr(i)+(c?Kr(c):""):n)}function Xr(e){return vi(e).replace(/\.0(?=$|e)/,"")}function Oi(e){return e.trailingComma==="es5"||e.trailingComma==="all"}var es=e=>e===`
|
|
60
|
-
`||e==="\r"||e==="\u2028"||e==="\u2029";function Ti(e,n,o){if(n===!1)return!1;let r=!!o?.backwards,i=e.charAt(n);if(r){if(e.charAt(n-1)==="\r"&&i===`
|
|
61
|
-
`)return n-2;if(es(i))return n-1}else{if(i==="\r"&&e.charAt(n+1)===`
|
|
62
|
-
`)return n+2;if(es(i))return n+1}return n}var ts=Ti;function _i(e,n,o={}){let r=Ir(e,o.backwards?n-1:n,o),i=ts(e,r,o);return r!==i}var rs=_i;function Si(e,n){if(n===!1)return!1;if(e.charAt(n)==="/"&&e.charAt(n+1)==="*"){for(let o=n+2;o<e.length;++o)if(e.charAt(o)==="*"&&e.charAt(o+1)==="/")return o+2}return n}var Ci=Si;function Ai(e,n){return n===!1?!1:e.charAt(n)==="/"&&e.charAt(n+1)==="/"?jr(e,n):n}var Ei=Ai;function Ii(e,n){let o=null,r=n;for(;r!==o;)o=r,r=io(e,r),r=Ci(e,r),r=Ir(e,r);return r=Ei(e,r),r=ts(e,r),r!==!1&&rs(e,r)}var ss=Ii;function ji({node:e,parent:n},o){return!!(e.source&&o.originalText.slice(H(e),H(n.close)).trimEnd().endsWith(","))}function Pi(e,n){return Zo(e.grandparent)&&ji(e,n)?",":e.node.type!=="value-comment"&&!(e.node.type==="value-comma_group"&&e.node.groups.every(o=>o.type==="value-comment"))&&Oi(n)&&e.callParent(()=>Hr(e,n))?xr(","):""}function Mi(e,n,o){let{node:r,parent:i}=e,c=e.map(({node:l})=>typeof l=="string"?l:o(),"groups");if(i&&Ko(i)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?o("open"):"",ne(",",c),r.close?o("close"):""];if(!r.open){let l=ns(e),h=$i(ne(",",c),2),u=ne(l?F:U,h);return G(l?[F,u]:K([Ni(e)?J:"",st(u)]))}let p=e.map(({node:l,isLast:h,index:u})=>{let v=c[u];zt(l)&&l.type==="value-comma_group"&&l.groups&&l.groups[0].type!=="value-paren_group"&&l.groups[2]?.type==="value-paren_group"&&$e(v)===Xe&&$e(v.contents)===Ze&&$e(v.contents.contents)===et&&(v=K(Re(v)));let g=[v,h?Pi(e,n):","];if(!h&&l.type==="value-comma_group"&&nt(l.groups)){let y=me(0,l.groups,-1);!y.source&&y.close&&(y=y.close),y.source&&ss(n.originalText,Q(y))&&g.push(F)}return g},"groups"),m=ci(r,i),f=hi(r,i),d=Hr(e,n),t=f||d&&!m,s=f||m,a=K([r.open?o("open"):"",G([J,ne(U,p)]),J,Tr,r.close?o("close"):""],{shouldBreak:t});return s?Re(a):a}function ns(e){return e.match(n=>n.type==="value-paren_group"&&!n.open&&n.groups.some(o=>o.type==="value-comma_group"),(n,o)=>o==="group"&&n.type==="value-value",(n,o)=>o==="group"&&n.type==="value-root",(n,o)=>o==="value"&&(n.type==="css-decl"&&!n.prop.startsWith("--")||n.type==="css-atrule"&&n.variable))}function Ni(e){return e.match(n=>n.type==="value-paren_group"&&!n.open,(n,o)=>o==="group"&&n.type==="value-value",(n,o)=>o==="group"&&n.type==="value-root",(n,o)=>o==="value"&&n.type==="css-decl")}function $i(e,n){let o=[];for(let r=0;r<e.length;r+=n)o.push(e.slice(r,r+n));return o}function Ri(e,n,o){let r=[];return e.each(()=>{let{node:i,previous:c}=e;if(c?.type==="css-comment"&&c.text.trim()==="prettier-ignore"?r.push(n.originalText.slice(H(i),Q(i))):r.push(o()),e.isLast)return;let{next:p}=e;p.type==="css-comment"&&!rs(n.originalText,H(p),{backwards:!0})&&!Nt(i)||p.type==="css-atrule"&&p.name==="else"&&i.type!=="css-comment"?r.push(" "):(r.push(n.__isHTMLStyleAttribute?U:F),ss(n.originalText,Q(i))&&!Nt(i)&&r.push(F))},"nodes"),r}var Ue=Ri;function Wi(e,n,o){let{node:r}=e;switch(r.type){case"css-root":{let i=Ue(e,n,o),c=r.raws.after.trim();return c.startsWith(";")&&(c=c.slice(1).trim()),[r.frontMatter?[o("frontMatter"),F,r.nodes.length>0?F:""]:"",i,c?` ${c}`:"",r.nodes.length>0?F:""]}case"css-comment":{let i=r.inline||r.raws.inline,c=n.originalText.slice(H(r),Q(r));return i?c.trimEnd():c}case"css-rule":return[o("selector"),r.important?" !important":"",r.nodes?[r.selector?.type==="selector-unknown"&&Fe(r.selector.value)?U:r.selector?" ":"","{",r.nodes.length>0?G([F,Ue(e,n,o)]):"",F,"}",Xo(r)?";":""]:";"];case"css-decl":{let i=e.parent,{between:c}=r.raws,p=c.trim(),m=p===":",f=c.endsWith(" ")&&m,d=typeof r.value=="string"&&/^ *$/.test(r.value),t=typeof r.value=="string"?r.value:o("value");return t=ui(r)?$n(t):t,!m&&Fe(p)&&!e.call(()=>ns(e),"value","group","group")&&(t=G([F,Re(t)])),[D(0,r.raws.before,/[\s;]/g,""),i.type==="css-atrule"&&i.variable||Qo(e)?r.prop:qe(r.prop),p.startsWith("//")?" ":"",p,r.extend||d||!f&&r.isNested&&(Oe(r.value.group.group)||Oe(r.value.group.group.groups?.[0]))?"":" ",n.parser==="less"&&r.extend&&r.selector?r.selector.nodes.length>1?K(["extend(",G([J,o("selector")]),J,")"]):["extend(",o("selector"),")"]:"",t,r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",r.nodes.length>0?G([J,Ue(e,n,o)]):"",J,"}"]:ii(r)&&!i.raws.semicolon&&n.originalText[Q(r)-1]!==";"?"":n.__isHTMLStyleAttribute&&e.isLast?xr(";"):";"]}case"css-atrule":{let i=e.parent,c=Lt(r)&&!i.raws.semicolon&&n.originalText[Q(r)-1]!==";";if(n.parser==="less"){if(r.mixin)return[o("selector"),r.important?" !important":"",c?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:o("params"),c?"":";"];if(r.variable)return["@",r.name,": ",r.value?[o("value"),Tr]:"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",r.nodes.length>0?G([J,Ue(e,n,o)]):"",J,"}"]:"",c?"":";"]}let p=r.name==="import"&&r.params?.type==="value-unknown"&&r.params.value.endsWith(";");return["@",Jr(r)||r.name.endsWith(":")||Lt(r)?r.name:qe(r.name),r.params?[Jr(r)?"":Lt(r)?r.raws.afterName===""?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?[F,F]:/^\s*\n/.test(r.raws.afterName)?F:" ":" ",typeof r.params=="string"?r.params:o("params")]:"",r.selector?G([" ",o("selector")]):"",r.value?K([" ",o("value"),Wt(r,n)?li(r)?" ":U:""]):r.name==="else"?" ":"",r.nodes?[Wt(r,n)?"":r.selector&&!r.selector.nodes&&typeof r.selector.value=="string"&&Fe(r.selector.value)||!r.selector&&typeof r.params=="string"&&Fe(r.params)?U:" ","{",r.nodes.length>0?G([J,Ue(e,n,o)]):"",J,"}"]:c||p?"":";"]}case"media-query-list":{let i=[];return e.each(({node:c})=>{c.type==="media-query"&&c.value===""||i.push(o())},"nodes"),K(G(ne(U,i)))}case"media-query":return[ne(" ",e.map(o,"nodes")),e.isLast?"":","];case"media-type":return Te(re(r.value,n));case"media-feature-expression":return r.nodes?["(",...e.map(o,"nodes"),")"]:r.value;case"media-feature":return qe(re(D(0,r.value,/ +/g," "),n));case"media-colon":return[r.value," "];case"media-value":return Te(re(r.value,n));case"media-keyword":return re(r.value,n);case"media-url":return re(D(0,D(0,r.value,/^url\(\s+/gi,"url("),/\s+\)$/g,")"),n);case"media-unknown":return r.value;case"selector-root":return K([De(e,"custom-selector")?[e.findAncestor(i=>i.type==="css-atrule").customSelector,U]:"",ne([",",De(e,["extend","custom-selector","nest"])?U:F],e.map(o,"nodes"))]);case"selector-selector":{let i=r.nodes.length>2;return K((i?G:c=>c)(e.map(o,"nodes")))}case"selector-comment":return r.value;case"selector-string":return re(r.value,n);case"selector-tag":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",e.previous?.type==="selector-nesting"?r.value:Te(Ho(e,r.value)?r.value.toLowerCase():r.value)];case"selector-id":return["#",r.value];case"selector-class":return[".",Te(re(r.value,n))];case"selector-attribute":return["[",r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator??"",r.value?Rn(ki(re(r.value.trim(),n),n),kr):"",r.insensitive?" i":"","]"];case"selector-combinator":{if(r.value==="+"||r.value===">"||r.value==="~"||r.value===">>>"){let p=e.parent;return[p.type==="selector-selector"&&p.nodes[0]===r?"":U,r.value,e.isLast?"":" "]}let i=r.value.trimStart().startsWith("(")?U:"",c=Te(re(r.value.trim(),n))||U;return[i,c]}case"selector-universal":return[r.namespace?[r.namespace===!0?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[qe(r.value),nt(r.nodes)?K(["(",G([J,ne([",",U],e.map(o,"nodes"))]),J,")"]):""];case"selector-nesting":return r.value;case"selector-unknown":{if(e.findAncestor(p=>p.type==="css-rule")?.isScssNestedProperty)return Te(re(qe(r.value),n));let i=e.parent;if(i.raws?.selector){let p=H(i),m=p+i.raws.selector.length;return n.originalText.slice(p,m).trim()}let c=e.grandparent;if(i.type==="value-paren_group"&&c?.type==="value-func"&&c.value==="selector"){let p=Q(i.open)+1,m=H(i.close),f=n.originalText.slice(p,m).trim();return Fe(f)?[rt,f]:f}return r.value}case"value-value":case"value-root":return o("group");case"value-comment":{let i=n.originalText.slice(H(r),Q(r));return r.inline?Or(i.trimEnd()):i}case"value-comma_group":return mi(e,n,o);case"value-paren_group":return Mi(e,n,o);case"value-func":return[r.value,De(e,"supports")&&pi(r)?" ":"",o("group")];case"value-paren":return r.value;case"value-number":return[Xr(r.value),Kr(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||Jo(r.value)?r.value.toLowerCase():r.value;case"value-colon":{let{previous:i}=e;return K([r.value,typeof i?.value=="string"&&i.value.endsWith("\\")||Be(e,"url")?"":U])}case"value-string":return Cr(r.raws.quote+r.value+r.raws.quote,n);case"value-atword":return["@",r.value];case"value-unicode-range":return r.value;case"value-unknown":return r.value;default:throw new Yn(r,"PostCSS")}}var Li={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:Wi,embed:Kn,insertPragma:Fo,massageAstNode:qr,getVisitorKeys:no},zi=Li,qi=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],Bi={singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."}},Di={singleQuote:Bi.singleQuote},Fi=Di,os={};Yt(os,{css:()=>xa,less:()=>ka,scss:()=>Oa});var Ui=we(Ke()),Vi=we(Ms()),Gi=we(qs());function Ji(e,n){let o=new SyntaxError(e+" ("+n.loc.start.line+":"+n.loc.start.column+")");return Object.assign(o,n)}var Hi=Ji;function Qi(e){return e!==null&&typeof e=="object"}var ct=Qi,Yi=we(Ds());function Ve(e,n,o){if(ct(e)){delete e.parent;for(let r in e)Ve(e[r],n,o),r==="type"&&typeof e[r]=="string"&&!e[r].startsWith(n)&&(!o||!o.test(e[r]))&&(e[r]=n+e[r])}return e}function is(e){if(ct(e)){delete e.parent;for(let n in e)is(e[n]);!Array.isArray(e)&&e.value&&!e.type&&(e.type="unknown")}return e}var Ki=Yi.default.default;function Zi(e){let n;try{n=Ki(e)}catch{return{type:"selector-unknown",value:e}}return Ve(is(n),"media-")}var Xi=Zi,ea=we(nn());function ta(e){if(/\/[/*]/.test(D(0,e,/"[^"]+"|'[^']+'/g,"")))return{type:"selector-unknown",value:e.trim()};let n;try{new ea.default(o=>{n=o}).process(e)}catch{return{type:"selector-unknown",value:e}}return Ve(n,"selector-")}var ve=ta,ra=we(kn()),sa=e=>{for(;e.parent;)e=e.parent;return e},as=sa;function na(e){return as(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()}var oa=na;function ia(e){if(nt(e)){for(let n=e.length-1;n>0;n--)if(e[n].type==="word"&&e[n].value==="{"&&e[n-1].type==="word"&&e[n-1].value.endsWith("#"))return!0}return!1}var aa=ia;function ua(e){return e.some(n=>n.type==="string"||n.type==="func"&&!n.value.endsWith("\\"))}var la=ua;function ca(e,n){return!!(n.parser==="scss"&&e?.type==="word"&&e.value.startsWith("$"))}var pa=ca,us=e=>e.type==="paren"&&e.value===")";function fa(e,n){let{nodes:o}=e,r={open:null,close:null,groups:[],type:"paren_group"},i=[r],c=r,p={groups:[],type:"comma_group"},m=[p];for(let f=0;f<o.length;++f){let d=o[f];if(n.parser==="scss"&&d.type==="number"&&d.unit===".."&&d.value.endsWith(".")&&(d.value=d.value.slice(0,-1),d.unit="..."),d.type==="func"&&d.value==="selector"){let t=as(e).text.slice(d.group.open.sourceIndex+1,d.group.close.sourceIndex),s=ve(t);s.sourceIndex=d.group.open.sourceIndex+1,s.raws??(s.raws={}),s.raws.selector=t,d.group.groups=[s]}if(d.type==="func"&&d.value==="url"){let t=d.group?.groups??[],s=[];for(let a=0;a<t.length;a++){let l=t[a];l.type==="comma_group"?s=[...s,...l.groups]:s.push(l)}(aa(s)||!la(s)&&!pa(s[0],n))&&(d.group.groups=[oa(d)])}if(d.type==="paren"&&d.value==="(")r={open:d,close:null,groups:[],type:"paren_group"},i.push(r),p={groups:[],type:"comma_group"},m.push(p);else if(us(d)){if(p.groups.length>0&&r.groups.push(p),r.close=d,m.length===1)throw new Error("Unbalanced parenthesis");m.pop(),p=me(0,m,-1),p.groups.push(r),i.pop(),r=me(0,i,-1)}else if(d.type==="comma"){if(f===o.length-3&&o[f+1].type==="comment"&&us(o[f+2]))continue;r.groups.push(p),p={groups:[],type:"comma_group"},m[m.length-1]=p}else p.groups.push(d)}return p.groups.length>0&&r.groups.push(p),c}function Vt(e){return e.type==="paren_group"&&!e.open&&!e.close&&e.groups.length===1||e.type==="comma_group"&&e.groups.length===1?Vt(e.groups[0]):e.type==="paren_group"||e.type==="comma_group"?{...e,groups:e.groups.map(Vt)}:e}function ls(e,n){if(ct(e))for(let o in e)o!=="parent"&&(ls(e[o],n),o==="nodes"&&(e.type==="atword"&&e.nodes.length===0||(e.group=Vt(fa(e,n))),delete e[o]));return e}function ha(e,n){if(n.parser==="less"&&e.startsWith("~`"))return{type:"value-unknown",value:e};let o;try{o=new ra.default(e,{loose:!0}).parse()}catch{return{type:"value-unknown",value:e}}o.text=e;let r=ls(o,n);return Ve(r,"value-",/^selector-/)}var ge=ha,da=new Set(["import","use","forward"]);function ma(e){return da.has(e)}var ya=ma;function va(e,n){return n.parser!=="scss"||!e.selector?!1:e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*\n/,"").trimEnd().endsWith(":")}var ga=va,wa=/(\s*)(!default).*$/,ba=/(\s*)(!global).*$/;function cs(e,n){if(ct(e)){delete e.parent;for(let c in e)cs(e[c],n);if(!e.type)return e;if(e.raws??(e.raws={}),e.type==="css-decl"&&typeof e.prop=="string"&&e.prop.startsWith("--")&&typeof e.value=="string"&&e.value.startsWith("{")){let c;if(e.value.trimEnd().endsWith("}")){let p=n.originalText.slice(0,e.source.start.offset),m="a".repeat(e.prop.length)+n.originalText.slice(e.source.start.offset+e.prop.length,e.source.end.offset),f=zr(p)+m,d;n.parser==="scss"?d=hs:n.parser==="less"?d=fs:d=ps;let t;try{t=d(f,{...n})}catch{}t?.nodes?.length===1&&t.nodes[0].type==="css-rule"&&(c=t.nodes[0].nodes)}return c?e.value={type:"css-rule",nodes:c}:e.value={type:"value-unknown",value:e.raws.value.raw},e}let o="";typeof e.selector=="string"&&(o=e.raws.selector?e.raws.selector.scss??e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(o+=e.raws.between),e.raws.selector=o);let r="";typeof e.value=="string"&&(r=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,e.raws.value=r.trim());let i="";if(typeof e.params=="string"&&(i=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(i=e.raws.afterName+i),e.raws.between&&e.raws.between.trim().length>0&&(i+=e.raws.between),i=i.trim(),e.raws.params=i),o.trim().length>0)return o.startsWith("@")&&o.endsWith(":")?e:e.mixin?(e.selector=ge(o,n),e):(ga(e,n)&&(e.isScssNestedProperty=!0),e.selector=ve(o),e);if(r.trim().length>0){let c=r.match(wa);c&&(r=r.slice(0,c.index),e.scssDefault=!0,c[0].trim()!=="!default"&&(e.raws.scssDefault=c[0]));let p=r.match(ba);if(p&&(r=r.slice(0,p.index),e.scssGlobal=!0,p[0].trim()!=="!global"&&(e.raws.scssGlobal=p[0])),r.startsWith("progid:"))return{type:"value-unknown",value:r};e.value=ge(r,n)}if(n.parser==="less"&&e.type==="css-decl"&&typeof e.prop=="string"&&/^\s*\+\s*:/.test(e.raws.between)&&(e.prop+="+",e.raws.between=e.raws.between.replace("+","")),n.parser==="less"&&e.type==="css-decl"&&r.startsWith("extend(")&&(e.extend||(e.extend=e.raws.between===":"),e.extend&&!e.selector&&(delete e.value,e.selector=ve(r.slice(7,-1)))),e.type==="css-atrule"){if(n.parser==="less"){if(e.mixin){let c=e.raws.identifier+e.name+e.raws.afterName+e.raws.params;return e.selector=ve(c),delete e.params,e}if(e.function)return e}if(n.parser==="css"&&e.name==="custom-selector"){let c=e.params.match(/:--\S+\s+/)[0].trim();return e.customSelector=c,e.selector=ve(e.params.slice(c.length).trim()),delete e.params,e}if(n.parser==="less"){if(e.name.includes(":")){e.variable=!0;let c=e.name.split(":");e.name=c[0];let p=c.slice(1).join(":");e.params&&(p+=e.params),e.value=ge(p,n)}if(!["page","nest","keyframes"].includes(e.name)&&e.params?.[0]===":"){e.variable=!0;let c=e.params.slice(1);c&&(e.value=ge(c,n)),e.raws.afterName+=":"}if(e.variable)return delete e.params,e.value||delete e.value,e}}if(e.type==="css-atrule"&&i.length>0){let{name:c}=e;if(c==="warn"||c==="error")return e.params={type:"media-unknown",value:i},e;if(c==="extend"||c==="nest")return e.selector=ve(i),delete e.params,e;if(c==="at-root")return/^\(\s*(?:without|with)\s*:.+\)$/s.test(i)?e.params=ge(i,n):(e.selector=ve(i),delete e.params),e;let p=c.toLowerCase();return ya(p)?(e.import=!0,delete e.filename,e.params=ge(i,n),e):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(c)?(i=i.replace(/(\$\S+?)(\s+)?\.{3}/,"$1...$2"),i=i.replace(/^(?!if)([^"'\s(]+)(\s+)\(/,"$1($2"),e.value=ge(i,n),delete e.params,e):["media","custom-media"].includes(p)?i.includes("#{")?{type:"media-unknown",value:i}:(e.params=Xi(i),e):(e.params=i,e)}}return e}function Gt(e,n,o){let{frontMatter:r,content:i}=ot(n),c;try{c=e(i,{map:!1})}catch(p){let{name:m,reason:f,line:d,column:t}=p;throw typeof d!="number"?p:Hi(`${m}: ${f}`,{loc:{start:{line:d,column:t}},cause:p})}return o.originalText=n,c=cs(Ve(c,"css-"),o),ao(c,n),r&&(c.frontMatter={...r,type:"front-matter",source:{startOffset:r.start.index,endOffset:r.end.index}}),c}function ps(e,n={}){return Gt(Ui.default.default,e,n)}function fs(e,n={}){return Gt(o=>Vi.default.parse(mo(o)),e,n)}function hs(e,n={}){return Gt(Gi.default,e,n)}var Jt={astFormat:"postcss",hasPragma:Bo,hasIgnorePragma:Do,locStart:H,locEnd:Q},xa={...Jt,parse:ps},ka={...Jt,parse:fs},Oa={...Jt,parse:hs},Ta={postcss:zi};return ks(cr)})})(Qt)),Qt.exports}var ws=Ca();const Aa=_a(ws),Ia=Sa({__proto__:null,default:Aa},[ws]);export{Ia as p};
|