@empjs/plugin-tailwindcss 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -5
- package/dist/index.js +5 -5
- package/package.json +6 -5
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
`,
|
|
3
|
-
`)})}});var We=m((ho,Qe)=>{"use strict";l();Qe.exports=function(e,t){t.nodes=[],e.forEach(r=>{["charset","import"].includes(r.type)?(r.node.parent=void 0,t.append(r.node)):r.type==="nodes"&&r.nodes.forEach(o=>{o.parent=void 0,t.append(o)})})}});var er=m((mo,Ye)=>{"use strict";l();var Xe=function(n,e,t){return function(){for(var r=this,o=new Array(arguments.length),s=0;s<arguments.length;s++)o[s]=arguments[s];return new e(function(a,c){o.push(function(d,f){if(d)c(d);else if(t.multiArgs){for(var h=new Array(arguments.length-1),i=1;i<arguments.length;i++)h[i-1]=arguments[i];a(h)}else a(f)}),n.apply(r,o)})}},Ve=Ye.exports=function(n,e,t){typeof e!="function"&&(t=e,e=Promise),t=t||{},t.exclude=t.exclude||[/.+Sync$/];var r=function(s){var a=function(c){return typeof c=="string"?s===c:c.test(s)};return t.include?t.include.some(a):!t.exclude.some(a)},o=typeof n=="function"?function(){return t.excludeMain?n.apply(this,arguments):Xe(n,e,t).apply(this,arguments)}:{};return Object.keys(n).reduce(function(s,a){var c=n[a];return s[a]=typeof c=="function"&&r(a)?Xe(c,e,t):c,s},o)};Ve.all=Ve});var tr=m((go,ee)=>{"use strict";l();var de=require("fs"),xt=require("path"),rr=er(),Ft=rr(de.stat),St=rr(de.readFile),Ae=xt.resolve,G=Object.create(null);function Y(n,e){return Buffer.isEncoding(e)?n.toString(e):n}ee.exports=function(n,e){return n=Ae(n),Ft(n).then(function(t){var r=G[n];return r&&r.mtime.getTime()===t.mtime.getTime()?Y(r.content,e):St(n).then(function(o){return G[n]={mtime:t.mtime,content:o},Y(o,e)})}).catch(function(t){return G[n]=null,Promise.reject(t)})};ee.exports.sync=function(n,e){n=Ae(n);try{var t=de.statSync(n),r=G[n];if(r&&r.mtime.getTime()===t.mtime.getTime())return Y(r.content,e);var o=de.readFileSync(n);return G[n]={mtime:t.mtime,content:o},Y(o,e)}catch(s){throw G[n]=null,s}};ee.exports.get=function(n,e){return n=Ae(n),G[n]?Y(G[n].content,e):null};ee.exports.clear=function(){G=Object.create(null)}});var Ce=m((wo,nr)=>{"use strict";l();var qt=/^data:text\/css(?:;(base64|plain))?,/i,Pt=/^data:text\/css;base64,/i,Ot=/^data:text\/css;plain,/i;function Nt(n){return qt.test(n)}function $t(n){return Pt.test(n)?Buffer.from(n.slice(21),"base64").toString():Ot.test(n)?decodeURIComponent(n.slice(20)):decodeURIComponent(n.slice(14))}nr.exports={isValid:Nt,contents:$t}});var ar=m((Co,sr)=>{"use strict";l();var Dt=tr(),or=Ce();sr.exports=function(e){return or.isValid(e)?or.contents(e):Dt(e,"utf-8")}});var ur=m((ko,ir)=>{"use strict";l();var be=40,ke=41,fe=39,Ee=34,Ie=92,X=47,xe=44,Fe=58,pe=42,Tt=117,Ut=85,Mt=43,jt=/^[a-f0-9?-]+$/i;ir.exports=function(n){for(var e=[],t=n,r,o,s,a,c,d,f,h,i=0,u=t.charCodeAt(i),S=t.length,I=[{nodes:e}],$=0,A,T="",U="",q="";i<S;)if(u<=32){r=i;do r+=1,u=t.charCodeAt(r);while(u<=32);a=t.slice(i,r),s=e[e.length-1],u===ke&&$?q=a:s&&s.type==="div"?(s.after=a,s.sourceEndIndex+=a.length):u===xe||u===Fe||u===X&&t.charCodeAt(r+1)!==pe&&(!A||A&&A.type==="function"&&A.value!=="calc")?U=a:e.push({type:"space",sourceIndex:i,sourceEndIndex:r,value:a}),i=r}else if(u===fe||u===Ee){r=i,o=u===fe?"'":'"',a={type:"string",sourceIndex:i,quote:o};do if(c=!1,r=t.indexOf(o,r+1),~r)for(d=r;t.charCodeAt(d-1)===Ie;)d-=1,c=!c;else t+=o,r=t.length-1,a.unclosed=!0;while(c);a.value=t.slice(i+1,r),a.sourceEndIndex=a.unclosed?r:r+1,e.push(a),i=r+1,u=t.charCodeAt(i)}else if(u===X&&t.charCodeAt(i+1)===pe)r=t.indexOf("*/",i),a={type:"comment",sourceIndex:i,sourceEndIndex:r+2},r===-1&&(a.unclosed=!0,r=t.length,a.sourceEndIndex=r),a.value=t.slice(i+2,r),e.push(a),i=r+2,u=t.charCodeAt(i);else if((u===X||u===pe)&&A&&A.type==="function"&&A.value==="calc")a=t[i],e.push({type:"word",sourceIndex:i-U.length,sourceEndIndex:i+a.length,value:a}),i+=1,u=t.charCodeAt(i);else if(u===X||u===xe||u===Fe)a=t[i],e.push({type:"div",sourceIndex:i-U.length,sourceEndIndex:i+a.length,value:a,before:U,after:""}),U="",i+=1,u=t.charCodeAt(i);else if(be===u){r=i;do r+=1,u=t.charCodeAt(r);while(u<=32);if(h=i,a={type:"function",sourceIndex:i-T.length,value:T,before:t.slice(h+1,r)},i=r,T==="url"&&u!==fe&&u!==Ee){r-=1;do if(c=!1,r=t.indexOf(")",r+1),~r)for(d=r;t.charCodeAt(d-1)===Ie;)d-=1,c=!c;else t+=")",r=t.length-1,a.unclosed=!0;while(c);f=r;do f-=1,u=t.charCodeAt(f);while(u<=32);h<f?(i!==f+1?a.nodes=[{type:"word",sourceIndex:i,sourceEndIndex:f+1,value:t.slice(i,f+1)}]:a.nodes=[],a.unclosed&&f+1!==r?(a.after="",a.nodes.push({type:"space",sourceIndex:f+1,sourceEndIndex:r,value:t.slice(f+1,r)})):(a.after=t.slice(f+1,r),a.sourceEndIndex=r)):(a.after="",a.nodes=[]),i=r+1,a.sourceEndIndex=a.unclosed?r:i,u=t.charCodeAt(i),e.push(a)}else $+=1,a.after="",a.sourceEndIndex=i+1,e.push(a),I.push(a),e=a.nodes=[],A=a;T=""}else if(ke===u&&$)i+=1,u=t.charCodeAt(i),A.after=q,A.sourceEndIndex+=q.length,q="",$-=1,I[I.length-1].sourceEndIndex=i,I.pop(),A=I[$],e=A.nodes;else{r=i;do u===Ie&&(r+=1),r+=1,u=t.charCodeAt(r);while(r<S&&!(u<=32||u===fe||u===Ee||u===xe||u===Fe||u===X||u===be||u===pe&&A&&A.type==="function"&&A.value==="calc"||u===X&&A.type==="function"&&A.value==="calc"||u===ke&&$));a=t.slice(i,r),be===u?T=a:(Tt===a.charCodeAt(0)||Ut===a.charCodeAt(0))&&Mt===a.charCodeAt(1)&&jt.test(a.slice(2))?e.push({type:"unicode-range",sourceIndex:i,sourceEndIndex:r,value:a}):e.push({type:"word",sourceIndex:i,sourceEndIndex:r,value:a}),i=r}for(i=I.length-1;i;i-=1)I[i].unclosed=!0,I[i].sourceEndIndex=t.length;return I[0].nodes}});var lr=m((Io,cr)=>{"use strict";l();cr.exports=function n(e,t,r){var o,s,a,c;for(o=0,s=e.length;o<s;o+=1)a=e[o],r||(c=t(a,o,e)),c!==!1&&a.type==="function"&&Array.isArray(a.nodes)&&n(a.nodes,t,r),r&&t(a,o,e)}});var hr=m((Fo,pr)=>{"use strict";l();function dr(n,e){var t=n.type,r=n.value,o,s;return e&&(s=e(n))!==void 0?s:t==="word"||t==="space"?r:t==="string"?(o=n.quote||"",o+r+(n.unclosed?"":o)):t==="comment"?"/*"+r+(n.unclosed?"":"*/"):t==="div"?(n.before||"")+r+(n.after||""):Array.isArray(n.nodes)?(o=fr(n.nodes,e),t!=="function"?o:r+"("+(n.before||"")+o+(n.after||"")+(n.unclosed?"":")")):r}function fr(n,e){var t,r;if(Array.isArray(n)){for(t="",r=n.length-1;~r;r-=1)t=dr(n[r],e)+t;return t}return dr(n,e)}pr.exports=fr});var mr=m((qo,vr)=>{"use strict";l();var he=45,ve=43,Se=46,Rt=101,Lt=69;function zt(n){var e=n.charCodeAt(0),t;if(e===ve||e===he){if(t=n.charCodeAt(1),t>=48&&t<=57)return!0;var r=n.charCodeAt(2);return t===Se&&r>=48&&r<=57}return e===Se?(t=n.charCodeAt(1),t>=48&&t<=57):e>=48&&e<=57}vr.exports=function(n){var e=0,t=n.length,r,o,s;if(t===0||!zt(n))return!1;for(r=n.charCodeAt(e),(r===ve||r===he)&&e++;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;if(r=n.charCodeAt(e),o=n.charCodeAt(e+1),r===Se&&o>=48&&o<=57)for(e+=2;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;if(r=n.charCodeAt(e),o=n.charCodeAt(e+1),s=n.charCodeAt(e+2),(r===Rt||r===Lt)&&(o>=48&&o<=57||(o===ve||o===he)&&s>=48&&s<=57))for(e+=o===ve||o===he?3:2;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;return{number:n.slice(0,e),unit:n.slice(e)}}});var wr=m((Oo,_r)=>{"use strict";l();var Gt=ur(),yr=lr(),gr=hr();function B(n){return this instanceof B?(this.nodes=Gt(n),this):new B(n)}B.prototype.toString=function(){return Array.isArray(this.nodes)?gr(this.nodes):""};B.prototype.walk=function(n,e){return yr(this.nodes,n,e),this};B.unit=mr();B.walk=yr;B.stringify=gr;_r.exports=B});var br=m(($o,Cr)=>{"use strict";l();var Ar=wr(),{stringify:re}=Ar;Cr.exports=function(e,t,r,o){let s=[],a=[];return t.each(c=>{let d;c.type==="atrule"&&(c.name==="import"?d=Bt(e,c,r,o):c.name==="charset"&&(d=Ht(e,c,r,o))),d?(a.length&&(s.push({type:"nodes",nodes:a,conditions:[...r],from:o}),a=[]),s.push(d)):a.push(c)}),a.length&&s.push({type:"nodes",nodes:a,conditions:[...r],from:o}),s};function Ht(n,e,t,r){return e.prev()?n.warn("@charset must precede all other statements",{node:e}):{type:"charset",node:e,conditions:[...t],from:r}}function Bt(n,e,t,r){let o=e.prev();if(o)do{if(o.type==="comment"||o.type==="atrule"&&o.name==="import"){o=o.prev();continue}break}while(o);if(o)do{if(o.type==="comment"||o.type==="atrule"&&(o.name==="charset"||o.name==="layer"&&!o.nodes)){o=o.prev();continue}return n.warn("@import must precede all other statements (besides @charset or empty @layer)",{node:e})}while(o);if(e.nodes)return n.warn("It looks like you didn't end your @import statement correctly. Child nodes are attached to it.",{node:e});let s=Ar(e.params).nodes,a={type:"import",uri:"",fullUri:"",node:e,conditions:[...t],from:r},c,d,f;for(let h=0;h<s.length;h++){let i=s[h];if(!(i.type==="space"||i.type==="comment")){if(i.type==="string"){if(a.uri)return n.warn(`Multiple url's in '${e.toString()}'`,{node:e});if(!i.value)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});a.uri=i.value,a.fullUri=re(i);continue}if(i.type==="function"&&/^url$/i.test(i.value)){if(a.uri)return n.warn(`Multiple url's in '${e.toString()}'`,{node:e});if(!i.nodes?.[0]?.value)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});a.uri=i.nodes[0].value,a.fullUri=re(i);continue}if(!a.uri)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});if((i.type==="word"||i.type==="function")&&/^layer$/i.test(i.value)){if(typeof c<"u")return n.warn(`Multiple layers in '${e.toString()}'`,{node:e});if(typeof f<"u")return n.warn(`layers must be defined before support conditions in '${e.toString()}'`,{node:e});i.nodes?c=re(i.nodes):c="";continue}if(i.type==="function"&&/^supports$/i.test(i.value)){if(typeof f<"u")return n.warn(`Multiple support conditions in '${e.toString()}'`,{node:e});f=re(i.nodes);continue}d=re(s.slice(h));break}}return a.uri?((typeof d<"u"||typeof c<"u"||typeof f<"u")&&a.conditions.push({layer:c,media:d,supports:f}),a):n.warn(`Unable to find uri in '${e.toString()}'`,{node:e})}});var Er=m((To,kr)=>{"use strict";l();var Zt=require("path"),me;kr.exports=function(e,t,r,o,s){let{plugins:a}=o,c=Zt.extname(r),d=[];if(c===".sss"){if(!me)try{me=require("sugarss")}catch{}if(me)return qe(s,t,r,a,[me])}return e.opts.syntax?.parse&&d.push(e.opts.syntax.parse),e.opts.parser&&d.push(e.opts.parser),d.push(null),qe(s,t,r,a,d)};function qe(n,e,t,r,o,s){return s||(s=0),n(r).process(e,{from:t,parser:o[s]}).catch(a=>{if(s++,s===o.length)throw a;return qe(n,e,t,r,o,s)})}});var Pe=m((Mo,Ir)=>{"use strict";l();var Kt=require("os");Ir.exports=Kt.homedir||function(){var e=process.env.HOME,t=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||e||null:process.platform==="darwin"?e||(t?"/Users/"+t:null):process.platform==="linux"?e||(process.getuid()===0?"/root":t?"/home/"+t:null):e||null}});var Oe=m((Ro,xr)=>{"use strict";l();xr.exports=function(){var n=Error.prepareStackTrace;Error.prepareStackTrace=function(t,r){return r};var e=new Error().stack;return Error.prepareStackTrace=n,e[2].getFileName()}});var Fr=m((zo,te)=>{"use strict";l();var Jt=process.platform==="win32",Qt=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,Ne={};function Wt(n){return Qt.exec(n).slice(1)}Ne.parse=function(n){if(typeof n!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=Wt(n);if(!e||e.length!==5)throw new TypeError("Invalid path '"+n+"'");return{root:e[1],dir:e[0]===e[1]?e[0]:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};var Xt=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,$e={};function Vt(n){return Xt.exec(n).slice(1)}$e.parse=function(n){if(typeof n!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=Vt(n);if(!e||e.length!==5)throw new TypeError("Invalid path '"+n+"'");return{root:e[1],dir:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};Jt?te.exports=Ne.parse:te.exports=$e.parse;te.exports.posix=$e.parse;te.exports.win32=Ne.parse});var De=m((Ho,Or)=>{"use strict";l();var Pr=require("path"),Sr=Pr.parse||Fr(),qr=function(e,t){var r="/";/^([A-Za-z]:)/.test(e)?r="":/^\\\\/.test(e)&&(r="\\\\");for(var o=[e],s=Sr(e);s.dir!==o[o.length-1];)o.push(s.dir),s=Sr(s.dir);return o.reduce(function(a,c){return a.concat(t.map(function(d){return Pr.resolve(r,c,d)}))},[])};Or.exports=function(e,t,r){var o=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&typeof t.paths=="function")return t.paths(r,e,function(){return qr(e,o)},t);var s=qr(e,o);return t&&t.paths?s.concat(t.paths):s}});var Te=m((Zo,Nr)=>{"use strict";l();Nr.exports=function(n,e){return e||{}}});var Tr=m((Jo,Dr)=>{"use strict";l();var Yt="Function.prototype.bind called on incompatible ",en=Object.prototype.toString,rn=Math.max,tn="[object Function]",$r=function(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var s=0;s<t.length;s+=1)r[s+e.length]=t[s];return r},nn=function(e,t){for(var r=[],o=t||0,s=0;o<e.length;o+=1,s+=1)r[s]=e[o];return r},on=function(n,e){for(var t="",r=0;r<n.length;r+=1)t+=n[r],r+1<n.length&&(t+=e);return t};Dr.exports=function(e){var t=this;if(typeof t!="function"||en.apply(t)!==tn)throw new TypeError(Yt+t);for(var r=nn(arguments,1),o,s=function(){if(this instanceof o){var h=t.apply(this,$r(r,arguments));return Object(h)===h?h:this}return t.apply(e,$r(r,arguments))},a=rn(0,t.length-r.length),c=[],d=0;d<a;d++)c[d]="$"+d;if(o=Function("binder","return function ("+on(c,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var f=function(){};f.prototype=t.prototype,o.prototype=new f,f.prototype=null}return o}});var Mr=m((Wo,Ur)=>{"use strict";l();var sn=Tr();Ur.exports=Function.prototype.bind||sn});var Rr=m((Vo,jr)=>{"use strict";l();var an=Function.prototype.call,un=Object.prototype.hasOwnProperty,cn=Mr();jr.exports=cn.call(an,un)});var Lr=m((es,ln)=>{ln.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var ne=m((rs,Hr)=>{"use strict";l();var dn=Rr();function fn(n,e){for(var t=n.split("."),r=e.split(" "),o=r.length>1?r[0]:"=",s=(r.length>1?r[1]:r[0]).split("."),a=0;a<3;++a){var c=parseInt(t[a]||0,10),d=parseInt(s[a]||0,10);if(c!==d)return o==="<"?c<d:o===">="?c>=d:!1}return o===">="}function zr(n,e){var t=e.split(/ ?&& ?/);if(t.length===0)return!1;for(var r=0;r<t.length;++r)if(!fn(n,t[r]))return!1;return!0}function pn(n,e){if(typeof e=="boolean")return e;var t=typeof n>"u"?process.versions&&process.versions.node:n;if(typeof t!="string")throw new TypeError(typeof n>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(e&&typeof e=="object"){for(var r=0;r<e.length;++r)if(zr(t,e[r]))return!0;return!1}return zr(t,e)}var Gr=Lr();Hr.exports=function(e,t){return dn(Gr,e)&&pn(t,Gr[e])}});var Kr=m((ns,Zr)=>{"use strict";l();var K=require("fs"),hn=Pe(),F=require("path"),vn=Oe(),mn=De(),yn=Te(),gn=ne(),_n=process.platform!=="win32"&&K.realpath&&typeof K.realpath.native=="function"?K.realpath.native:K.realpath,Br=hn(),wn=function(){return[F.join(Br,".node_modules"),F.join(Br,".node_libraries")]},An=function(e,t){K.stat(e,function(r,o){return r?r.code==="ENOENT"||r.code==="ENOTDIR"?t(null,!1):t(r):t(null,o.isFile()||o.isFIFO())})},Cn=function(e,t){K.stat(e,function(r,o){return r?r.code==="ENOENT"||r.code==="ENOTDIR"?t(null,!1):t(r):t(null,o.isDirectory())})},bn=function(e,t){_n(e,function(r,o){r&&r.code!=="ENOENT"?t(r):t(null,r?e:o)})},oe=function(e,t,r,o){r&&r.preserveSymlinks===!1?e(t,o):o(null,t)},kn=function(e,t,r){e(t,function(o,s){if(o)r(o);else try{var a=JSON.parse(s);r(null,a)}catch{r(null)}})},En=function(e,t,r){for(var o=mn(t,r,e),s=0;s<o.length;s++)o[s]=F.join(o[s],e);return o};Zr.exports=function(e,t,r){var o=r,s=t;if(typeof t=="function"&&(o=s,s={}),typeof e!="string"){var a=new TypeError("Path must be a string.");return process.nextTick(function(){o(a)})}s=yn(e,s);var c=s.isFile||An,d=s.isDirectory||Cn,f=s.readFile||K.readFile,h=s.realpath||bn,i=s.readPackage||kn;if(s.readFile&&s.readPackage){var u=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(u)})}var S=s.packageIterator,I=s.extensions||[".js"],$=s.includeCoreModules!==!1,A=s.basedir||F.dirname(vn()),T=s.filename||A;s.paths=s.paths||wn();var U=F.resolve(A);oe(h,U,s,function(p,v){p?o(p):ae(v)});var q;function ae(p){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e))q=F.resolve(p,e),(e==="."||e===".."||e.slice(-1)==="/")&&(q+="/"),/\/$/.test(e)&&q===p?x(q,s.package,Q):R(q,s.package,Q);else{if($&&gn(e))return o(null,e);M(e,p,function(v,k,y){if(v)o(v);else{if(k)return oe(h,k,s,function(D,E){D?o(D):o(null,E,y)});var C=new Error("Cannot find module '"+e+"' from '"+T+"'");C.code="MODULE_NOT_FOUND",o(C)}})}}function Q(p,v,k){p?o(p):v?o(null,v,k):x(q,function(y,C,D){if(y)o(y);else if(C)oe(h,C,s,function(b,N){b?o(b):o(null,N,D)});else{var E=new Error("Cannot find module '"+e+"' from '"+T+"'");E.code="MODULE_NOT_FOUND",o(E)}})}function R(p,v,k){var y=v,C=k;typeof y=="function"&&(C=y,y=void 0);var D=[""].concat(I);E(D,p,y);function E(b,N,L){if(b.length===0)return C(null,void 0,L);var Z=N+b[0],j=L;j?P(null,j):_(F.dirname(Z),P);function P(H,W,z){if(j=W,H)return C(H);if(z&&j&&s.pathFilter){var ue=F.relative(z,Z),ce=ue.slice(0,ue.length-b[0].length),V=s.pathFilter(j,N,ce);if(V)return E([""].concat(I.slice()),F.resolve(z,V),j)}c(Z,ie)}function ie(H,W){if(H)return C(H);if(W)return C(null,Z,j);E(b.slice(1),N,j)}}}function _(p,v){if(p===""||p==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(p)||/[/\\]node_modules[/\\]*$/.test(p))return v(null);oe(h,p,s,function(k,y){if(k)return _(F.dirname(p),v);var C=F.join(y,"package.json");c(C,function(D,E){if(!E)return _(F.dirname(p),v);i(f,C,function(b,N){b&&v(b);var L=N;L&&s.packageFilter&&(L=s.packageFilter(L,C)),v(null,L,p)})})})}function x(p,v,k){var y=k,C=v;typeof C=="function"&&(y=C,C=s.package),oe(h,p,s,function(D,E){if(D)return y(D);var b=F.join(E,"package.json");c(b,function(N,L){if(N)return y(N);if(!L)return R(F.join(p,"index"),C,y);i(f,b,function(Z,j){if(Z)return y(Z);var P=j;if(P&&s.packageFilter&&(P=s.packageFilter(P,b)),P&&P.main){if(typeof P.main!="string"){var ie=new TypeError("package \u201C"+P.name+"\u201D `main` must be a string");return ie.code="INVALID_PACKAGE_MAIN",y(ie)}(P.main==="."||P.main==="./")&&(P.main="index"),R(F.resolve(p,P.main),P,function(H,W,z){if(H)return y(H);if(W)return y(null,W,z);if(!z)return R(F.join(p,"index"),z,y);var ue=F.resolve(p,z.main);x(ue,z,function(ce,V,je){if(ce)return y(ce);if(V)return y(null,V,je);R(F.join(p,"index"),je,y)})});return}R(F.join(p,"/index"),P,y)})})})}function w(p,v){if(v.length===0)return p(null,void 0);var k=v[0];d(F.dirname(k),y);function y(E,b){if(E)return p(E);if(!b)return w(p,v.slice(1));R(k,s.package,C)}function C(E,b,N){if(E)return p(E);if(b)return p(null,b,N);x(k,s.package,D)}function D(E,b,N){if(E)return p(E);if(b)return p(null,b,N);w(p,v.slice(1))}}function M(p,v,k){var y=function(){return En(p,v,s)};w(k,S?S(p,v,y,s):y())}}});var Jr=m((ss,In)=>{In.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Vr=m((as,Xr)=>{"use strict";l();var xn=ne(),Qr=Jr(),Wr={};for(ye in Qr)Object.prototype.hasOwnProperty.call(Qr,ye)&&(Wr[ye]=xn(ye));var ye;Xr.exports=Wr});var et=m((us,Yr)=>{"use strict";l();var Fn=ne();Yr.exports=function(e){return Fn(e)}});var nt=m((ls,tt)=>{"use strict";l();var Sn=ne(),J=require("fs"),O=require("path"),qn=Pe(),Pn=Oe(),On=De(),Nn=Te(),$n=process.platform!=="win32"&&J.realpathSync&&typeof J.realpathSync.native=="function"?J.realpathSync.native:J.realpathSync,rt=qn(),Dn=function(){return[O.join(rt,".node_modules"),O.join(rt,".node_libraries")]},Tn=function(e){try{var t=J.statSync(e,{throwIfNoEntry:!1})}catch(r){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return!1;throw r}return!!t&&(t.isFile()||t.isFIFO())},Un=function(e){try{var t=J.statSync(e,{throwIfNoEntry:!1})}catch(r){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return!1;throw r}return!!t&&t.isDirectory()},Mn=function(e){try{return $n(e)}catch(t){if(t.code!=="ENOENT")throw t}return e},se=function(e,t,r){return r&&r.preserveSymlinks===!1?e(t):t},jn=function(e,t){var r=e(t);try{var o=JSON.parse(r);return o}catch{}},Rn=function(e,t,r){for(var o=On(t,r,e),s=0;s<o.length;s++)o[s]=O.join(o[s],e);return o};tt.exports=function(e,t){if(typeof e!="string")throw new TypeError("Path must be a string.");var r=Nn(e,t),o=r.isFile||Tn,s=r.readFileSync||J.readFileSync,a=r.isDirectory||Un,c=r.realpathSync||Mn,d=r.readPackageSync||jn;if(r.readFileSync&&r.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var f=r.packageIterator,h=r.extensions||[".js"],i=r.includeCoreModules!==!1,u=r.basedir||O.dirname(Pn()),S=r.filename||u;r.paths=r.paths||Dn();var I=se(c,O.resolve(u),r);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var $=O.resolve(I,e);(e==="."||e===".."||e.slice(-1)==="/")&&($+="/");var A=q($)||Q($);if(A)return se(c,A,r)}else{if(i&&Sn(e))return e;var T=R(e,I);if(T)return se(c,T,r)}var U=new Error("Cannot find module '"+e+"' from '"+S+"'");throw U.code="MODULE_NOT_FOUND",U;function q(_){var x=ae(O.dirname(_));if(x&&x.dir&&x.pkg&&r.pathFilter){var w=O.relative(x.dir,_),M=r.pathFilter(x.pkg,_,w);M&&(_=O.resolve(x.dir,M))}if(o(_))return _;for(var p=0;p<h.length;p++){var v=_+h[p];if(o(v))return v}}function ae(_){if(!(_===""||_==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(_))&&!/[/\\]node_modules[/\\]*$/.test(_)){var x=O.join(se(c,_,r),"package.json");if(!o(x))return ae(O.dirname(_));var w=d(s,x);return w&&r.packageFilter&&(w=r.packageFilter(w,_)),{pkg:w,dir:_}}}function Q(_){var x=O.join(se(c,_,r),"/package.json");if(o(x)){try{var w=d(s,x)}catch{}if(w&&r.packageFilter&&(w=r.packageFilter(w,_)),w&&w.main){if(typeof w.main!="string"){var M=new TypeError("package \u201C"+w.name+"\u201D `main` must be a string");throw M.code="INVALID_PACKAGE_MAIN",M}(w.main==="."||w.main==="./")&&(w.main="index");try{var p=q(O.resolve(_,w.main));if(p)return p;var v=Q(O.resolve(_,w.main));if(v)return v}catch{}}}return q(O.join(_,"/index"))}function R(_,x){for(var w=function(){return Rn(_,x,r)},M=f?f(_,x,w,r):w(),p=0;p<M.length;p++){var v=M[p];if(a(O.dirname(v))){var k=q(v);if(k)return k;var y=Q(v);if(y)return y}}}}});var st=m((fs,ot)=>{"use strict";l();var ge=Kr();ge.core=Vr();ge.isCore=et();ge.sync=nt();ot.exports=ge});var Ue=m((hs,it)=>{"use strict";l();var Ln=st(),zn=["web_modules","node_modules"];function at(n,e){return new Promise((t,r)=>{Ln(n,e,(o,s)=>o?r(o):t(s))})}it.exports=function(e,t,r,o){let s=r.path,a={basedir:t,moduleDirectory:zn.concat(r.addModulesDirectories),paths:s,extensions:[".css"],packageFilter:function(d){return d.style?d.main=d.style:(!d.main||!/\.css$/.test(d.main))&&(d.main="index.css"),d},preserveSymlinks:!1};return at(`./${e}`,a).catch(()=>at(e,a)).catch(()=>{throw s.indexOf(t)===-1&&s.unshift(t),o.error(`Failed to find '${e}'
|
|
1
|
+
"use strict";var _t=Object.create;var le=Object.defineProperty;var wt=Object.getOwnPropertyDescriptor;var bt=Object.getOwnPropertyNames;var Ct=Object.getPrototypeOf,At=Object.prototype.hasOwnProperty;var It=(n,e)=>()=>(n&&(e=n(n=0)),e);var m=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),kt=(n,e)=>{for(var t in e)le(n,t,{get:e[t],enumerable:!0})},Le=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of bt(e))!At.call(n,o)&&o!==t&&le(n,o,{get:()=>e[o],enumerable:!(r=wt(e,o))||r.enumerable});return n};var _e=(n,e,t)=>(t=n!=null?_t(Ct(n)):{},Le(e||!n||!n.__esModule?le(t,"default",{value:n,enumerable:!0}):t,n)),Et=n=>Le(le({},"__esModule",{value:!0}),n);var d=It(()=>{"use strict"});var we=m((io,Re)=>{"use strict";d();Re.exports=function(e,t,r){let o=[];if(typeof e<"u"){let s="layer";e&&(s=`layer(${e})`),o.push(s)}return typeof r<"u"&&o.push(`supports(${r})`),typeof t<"u"&&o.push(t),o.join(" ")}});var Ge=m((uo,Be)=>{"use strict";d();var ze=we();Be.exports=function(e,t){if(!t?.length)return e;t.reverse();let r=t.pop(),o=`${e} ${ze(r.layer,r.media,r.supports)}`;for(let s of t)o=`'data:text/css;base64,${Buffer.from(`@import ${o}`).toString("base64")}' ${ze(s.layer,s.media,s.supports)}`;return o}});var Ke=m((lo,Ze)=>{"use strict";d();var He=Ge();Ze.exports=function(e,t){let r=e.findIndex(s=>s.type==="import"),o=e.findLastIndex(s=>s.type==="import");e.forEach((s,i)=>{if(s.type==="charset"||s.type==="warning")return;if(s.type==="layer"&&(i<o&&s.conditions?.length||i>r&&i<o)){s.type="import",s.node=s.node.clone({name:"import",params:He(`'data:text/css;base64,${Buffer.from(s.node.toString()).toString("base64")}'`,s.conditions)});return}if(!s.conditions?.length)return;if(s.type==="import"){s.node.params=He(s.fullUri,s.conditions);return}let l,c;s.type==="layer"?(l=[s.node],c=s.node.parent):(l=s.nodes,c=l[0].parent);let p=[];for(let u of s.conditions){if(typeof u.media<"u"){let _=t({name:"media",params:u.media,source:c.source});p.push(_)}if(typeof u.supports<"u"){let _=t({name:"supports",params:`(${u.supports})`,source:c.source});p.push(_)}if(typeof u.layer<"u"){let _=t({name:"layer",params:u.layer,source:c.source});p.push(_)}}let h=p.shift(),a=p.reduce((u,_)=>(u.append(_),_),h);c.insertBefore(l[0],h),l.forEach(u=>{u.parent=void 0}),l[0].raws.before=l[0].raws.before||`
|
|
2
|
+
`,a.append(l),s.type="nodes",s.nodes=[h],delete s.node})}});var Qe=m((fo,Je)=>{"use strict";d();Je.exports=function(e){e.forEach((t,r)=>{if(r!==0)if(t.parent){let{before:o}=t.parent.node.raws;t.type==="nodes"?t.nodes[0].raws.before=o:t.node.raws.before=o}else t.type==="nodes"&&(t.nodes[0].raws.before=t.nodes[0].raws.before||`
|
|
3
|
+
`)})}});var Xe=m((vo,We)=>{"use strict";d();We.exports=function(e,t){t.nodes=[],e.forEach(r=>{["charset","import","layer"].includes(r.type)?(r.node.parent=void 0,t.append(r.node)):r.type==="nodes"&&r.nodes.forEach(o=>{o.parent=void 0,t.append(o)})})}});var rr=m((yo,er)=>{"use strict";d();var Ve=function(n,e,t){return function(){for(var r=this,o=new Array(arguments.length),s=0;s<arguments.length;s++)o[s]=arguments[s];return new e(function(i,l){o.push(function(c,p){if(c)l(c);else if(t.multiArgs){for(var h=new Array(arguments.length-1),a=1;a<arguments.length;a++)h[a-1]=arguments[a];i(h)}else i(p)}),n.apply(r,o)})}},Ye=er.exports=function(n,e,t){typeof e!="function"&&(t=e,e=Promise),t=t||{},t.exclude=t.exclude||[/.+Sync$/];var r=function(s){var i=function(l){return typeof l=="string"?s===l:l.test(s)};return t.include?t.include.some(i):!t.exclude.some(i)},o=typeof n=="function"?function(){return t.excludeMain?n.apply(this,arguments):Ve(n,e,t).apply(this,arguments)}:{};return Object.keys(n).reduce(function(s,i){var l=n[i];return s[i]=typeof l=="function"&&r(i)?Ve(l,e,t):l,s},o)};Ye.all=Ye});var nr=m((_o,ee)=>{"use strict";d();var de=require("fs"),xt=require("path"),tr=rr(),St=tr(de.stat),qt=tr(de.readFile),be=xt.resolve,B=Object.create(null);function Y(n,e){return Buffer.isEncoding(e)?n.toString(e):n}ee.exports=function(n,e){return n=be(n),St(n).then(function(t){var r=B[n];return r&&r.mtime.getTime()===t.mtime.getTime()?Y(r.content,e):qt(n).then(function(o){return B[n]={mtime:t.mtime,content:o},Y(o,e)})}).catch(function(t){return B[n]=null,Promise.reject(t)})};ee.exports.sync=function(n,e){n=be(n);try{var t=de.statSync(n),r=B[n];if(r&&r.mtime.getTime()===t.mtime.getTime())return Y(r.content,e);var o=de.readFileSync(n);return B[n]={mtime:t.mtime,content:o},Y(o,e)}catch(s){throw B[n]=null,s}};ee.exports.get=function(n,e){return n=be(n),B[n]?Y(B[n].content,e):null};ee.exports.clear=function(){B=Object.create(null)}});var Ce=m((bo,or)=>{"use strict";d();var Ft=/^data:text\/css(?:;(base64|plain))?,/i,Pt=/^data:text\/css;base64,/i,Ot=/^data:text\/css;plain,/i;function Nt(n){return Ft.test(n)}function $t(n){return Pt.test(n)?Buffer.from(n.slice(21),"base64").toString():Ot.test(n)?decodeURIComponent(n.slice(20)):decodeURIComponent(n.slice(14))}or.exports={isValid:Nt,contents:$t}});var ar=m((Ao,ir)=>{"use strict";d();var Dt=nr(),sr=Ce();ir.exports=function(e){return sr.isValid(e)?sr.contents(e):Dt(e,"utf-8")}});var cr=m((ko,ur)=>{"use strict";d();var Ae=40,Ie=41,pe=39,ke=34,Ee=92,X=47,xe=44,Se=58,fe=42,Tt=117,Ut=85,Mt=43,jt=/^[a-f0-9?-]+$/i;ur.exports=function(n){for(var e=[],t=n,r,o,s,i,l,c,p,h,a=0,u=t.charCodeAt(a),_=t.length,x=[{nodes:e}],$=0,C,T="",U="",F="";a<_;)if(u<=32){r=a;do r+=1,u=t.charCodeAt(r);while(u<=32);i=t.slice(a,r),s=e[e.length-1],u===Ie&&$?F=i:s&&s.type==="div"?(s.after=i,s.sourceEndIndex+=i.length):u===xe||u===Se||u===X&&t.charCodeAt(r+1)!==fe&&(!C||C&&C.type==="function"&&C.value!=="calc")?U=i:e.push({type:"space",sourceIndex:a,sourceEndIndex:r,value:i}),a=r}else if(u===pe||u===ke){r=a,o=u===pe?"'":'"',i={type:"string",sourceIndex:a,quote:o};do if(l=!1,r=t.indexOf(o,r+1),~r)for(c=r;t.charCodeAt(c-1)===Ee;)c-=1,l=!l;else t+=o,r=t.length-1,i.unclosed=!0;while(l);i.value=t.slice(a+1,r),i.sourceEndIndex=i.unclosed?r:r+1,e.push(i),a=r+1,u=t.charCodeAt(a)}else if(u===X&&t.charCodeAt(a+1)===fe)r=t.indexOf("*/",a),i={type:"comment",sourceIndex:a,sourceEndIndex:r+2},r===-1&&(i.unclosed=!0,r=t.length,i.sourceEndIndex=r),i.value=t.slice(a+2,r),e.push(i),a=r+2,u=t.charCodeAt(a);else if((u===X||u===fe)&&C&&C.type==="function"&&C.value==="calc")i=t[a],e.push({type:"word",sourceIndex:a-U.length,sourceEndIndex:a+i.length,value:i}),a+=1,u=t.charCodeAt(a);else if(u===X||u===xe||u===Se)i=t[a],e.push({type:"div",sourceIndex:a-U.length,sourceEndIndex:a+i.length,value:i,before:U,after:""}),U="",a+=1,u=t.charCodeAt(a);else if(Ae===u){r=a;do r+=1,u=t.charCodeAt(r);while(u<=32);if(h=a,i={type:"function",sourceIndex:a-T.length,value:T,before:t.slice(h+1,r)},a=r,T==="url"&&u!==pe&&u!==ke){r-=1;do if(l=!1,r=t.indexOf(")",r+1),~r)for(c=r;t.charCodeAt(c-1)===Ee;)c-=1,l=!l;else t+=")",r=t.length-1,i.unclosed=!0;while(l);p=r;do p-=1,u=t.charCodeAt(p);while(u<=32);h<p?(a!==p+1?i.nodes=[{type:"word",sourceIndex:a,sourceEndIndex:p+1,value:t.slice(a,p+1)}]:i.nodes=[],i.unclosed&&p+1!==r?(i.after="",i.nodes.push({type:"space",sourceIndex:p+1,sourceEndIndex:r,value:t.slice(p+1,r)})):(i.after=t.slice(p+1,r),i.sourceEndIndex=r)):(i.after="",i.nodes=[]),a=r+1,i.sourceEndIndex=i.unclosed?r:a,u=t.charCodeAt(a),e.push(i)}else $+=1,i.after="",i.sourceEndIndex=a+1,e.push(i),x.push(i),e=i.nodes=[],C=i;T=""}else if(Ie===u&&$)a+=1,u=t.charCodeAt(a),C.after=F,C.sourceEndIndex+=F.length,F="",$-=1,x[x.length-1].sourceEndIndex=a,x.pop(),C=x[$],e=C.nodes;else{r=a;do u===Ee&&(r+=1),r+=1,u=t.charCodeAt(r);while(r<_&&!(u<=32||u===pe||u===ke||u===xe||u===Se||u===X||u===Ae||u===fe&&C&&C.type==="function"&&C.value==="calc"||u===X&&C.type==="function"&&C.value==="calc"||u===Ie&&$));i=t.slice(a,r),Ae===u?T=i:(Tt===i.charCodeAt(0)||Ut===i.charCodeAt(0))&&Mt===i.charCodeAt(1)&&jt.test(i.slice(2))?e.push({type:"unicode-range",sourceIndex:a,sourceEndIndex:r,value:i}):e.push({type:"word",sourceIndex:a,sourceEndIndex:r,value:i}),a=r}for(a=x.length-1;a;a-=1)x[a].unclosed=!0,x[a].sourceEndIndex=t.length;return x[0].nodes}});var dr=m((xo,lr)=>{"use strict";d();lr.exports=function n(e,t,r){var o,s,i,l;for(o=0,s=e.length;o<s;o+=1)i=e[o],r||(l=t(i,o,e)),l!==!1&&i.type==="function"&&Array.isArray(i.nodes)&&n(i.nodes,t,r),r&&t(i,o,e)}});var vr=m((qo,hr)=>{"use strict";d();function pr(n,e){var t=n.type,r=n.value,o,s;return e&&(s=e(n))!==void 0?s:t==="word"||t==="space"?r:t==="string"?(o=n.quote||"",o+r+(n.unclosed?"":o)):t==="comment"?"/*"+r+(n.unclosed?"":"*/"):t==="div"?(n.before||"")+r+(n.after||""):Array.isArray(n.nodes)?(o=fr(n.nodes,e),t!=="function"?o:r+"("+(n.before||"")+o+(n.after||"")+(n.unclosed?"":")")):r}function fr(n,e){var t,r;if(Array.isArray(n)){for(t="",r=n.length-1;~r;r-=1)t=pr(n[r],e)+t;return t}return pr(n,e)}hr.exports=fr});var yr=m((Po,mr)=>{"use strict";d();var he=45,ve=43,qe=46,Lt=101,Rt=69;function zt(n){var e=n.charCodeAt(0),t;if(e===ve||e===he){if(t=n.charCodeAt(1),t>=48&&t<=57)return!0;var r=n.charCodeAt(2);return t===qe&&r>=48&&r<=57}return e===qe?(t=n.charCodeAt(1),t>=48&&t<=57):e>=48&&e<=57}mr.exports=function(n){var e=0,t=n.length,r,o,s;if(t===0||!zt(n))return!1;for(r=n.charCodeAt(e),(r===ve||r===he)&&e++;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;if(r=n.charCodeAt(e),o=n.charCodeAt(e+1),r===qe&&o>=48&&o<=57)for(e+=2;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;if(r=n.charCodeAt(e),o=n.charCodeAt(e+1),s=n.charCodeAt(e+2),(r===Lt||r===Rt)&&(o>=48&&o<=57||(o===ve||o===he)&&s>=48&&s<=57))for(e+=o===ve||o===he?3:2;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;return{number:n.slice(0,e),unit:n.slice(e)}}});var br=m((No,wr)=>{"use strict";d();var Bt=cr(),gr=dr(),_r=vr();function H(n){return this instanceof H?(this.nodes=Bt(n),this):new H(n)}H.prototype.toString=function(){return Array.isArray(this.nodes)?_r(this.nodes):""};H.prototype.walk=function(n,e){return gr(this.nodes,n,e),this};H.unit=yr();H.walk=gr;H.stringify=_r;wr.exports=H});var Ir=m((Do,Ar)=>{"use strict";d();var Cr=br(),{stringify:re}=Cr;Ar.exports=function(e,t,r,o){let s=[],i=[],l=!1;return t.each(c=>{let p;c.type==="atrule"?c.name==="import"?p=Ht(e,c,r,o):c.name==="charset"?p=Gt(e,c,r,o):c.name==="layer"&&!l&&!c.nodes&&(p=Zt(e,c,r,o)):c.type!=="comment"&&(l=!0),p?(i.length&&(s.push({type:"nodes",nodes:i,conditions:[...r],from:o}),i=[]),s.push(p)):i.push(c)}),i.length&&s.push({type:"nodes",nodes:i,conditions:[...r],from:o}),s};function Gt(n,e,t,r){return e.prev()?n.warn("@charset must precede all other statements",{node:e}):{type:"charset",node:e,conditions:[...t],from:r}}function Ht(n,e,t,r){let o=e.prev();if(o)do{if(o.type==="comment"||o.type==="atrule"&&o.name==="import"){o=o.prev();continue}break}while(o);if(o)do{if(o.type==="comment"||o.type==="atrule"&&(o.name==="charset"||o.name==="layer"&&!o.nodes)){o=o.prev();continue}return n.warn("@import must precede all other statements (besides @charset or empty @layer)",{node:e})}while(o);if(e.nodes)return n.warn("It looks like you didn't end your @import statement correctly. Child nodes are attached to it.",{node:e});let s=Cr(e.params).nodes,i={type:"import",uri:"",fullUri:"",node:e,conditions:[...t],from:r},l,c,p;for(let h=0;h<s.length;h++){let a=s[h];if(!(a.type==="space"||a.type==="comment")){if(a.type==="string"){if(i.uri)return n.warn(`Multiple url's in '${e.toString()}'`,{node:e});if(!a.value)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});i.uri=a.value,i.fullUri=re(a);continue}if(a.type==="function"&&/^url$/i.test(a.value)){if(i.uri)return n.warn(`Multiple url's in '${e.toString()}'`,{node:e});if(!a.nodes?.[0]?.value)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});i.uri=a.nodes[0].value,i.fullUri=re(a);continue}if(!i.uri)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});if((a.type==="word"||a.type==="function")&&/^layer$/i.test(a.value)){if(typeof l<"u")return n.warn(`Multiple layers in '${e.toString()}'`,{node:e});if(typeof p<"u")return n.warn(`layers must be defined before support conditions in '${e.toString()}'`,{node:e});a.nodes?l=re(a.nodes):l="";continue}if(a.type==="function"&&/^supports$/i.test(a.value)){if(typeof p<"u")return n.warn(`Multiple support conditions in '${e.toString()}'`,{node:e});p=re(a.nodes);continue}c=re(s.slice(h));break}}return i.uri?((typeof c<"u"||typeof l<"u"||typeof p<"u")&&i.conditions.push({layer:l,media:c,supports:p}),i):n.warn(`Unable to find uri in '${e.toString()}'`,{node:e})}function Zt(n,e,t,r){return{type:"layer",node:e,conditions:[...t],from:r}}});var Er=m((Uo,kr)=>{"use strict";d();var Kt=require("path"),me;kr.exports=function(e,t,r,o,s){let{plugins:i}=o,l=Kt.extname(r),c=[];if(l===".sss"){if(!me)try{me=require("sugarss")}catch{}if(me)return Fe(s,t,r,i,[me])}return e.opts.syntax?.parse&&c.push(e.opts.syntax.parse),e.opts.parser&&c.push(e.opts.parser),c.push(null),Fe(s,t,r,i,c)};function Fe(n,e,t,r,o,s){return s||(s=0),n(r).process(e,{from:t,parser:o[s]}).catch(i=>{if(s++,s===o.length)throw i;return Fe(n,e,t,r,o,s)})}});var Pe=m((jo,xr)=>{"use strict";d();var Jt=require("os");xr.exports=Jt.homedir||function(){var e=process.env.HOME,t=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||e||null:process.platform==="darwin"?e||(t?"/Users/"+t:null):process.platform==="linux"?e||(process.getuid()===0?"/root":t?"/home/"+t:null):e||null}});var Oe=m((Ro,Sr)=>{"use strict";d();Sr.exports=function(){var n=Error.prepareStackTrace;Error.prepareStackTrace=function(t,r){return r};var e=new Error().stack;return Error.prepareStackTrace=n,e[2].getFileName()}});var qr=m((Bo,te)=>{"use strict";d();var Qt=process.platform==="win32",Wt=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,Ne={};function Xt(n){return Wt.exec(n).slice(1)}Ne.parse=function(n){if(typeof n!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=Xt(n);if(!e||e.length!==5)throw new TypeError("Invalid path '"+n+"'");return{root:e[1],dir:e[0]===e[1]?e[0]:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};var Vt=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,$e={};function Yt(n){return Vt.exec(n).slice(1)}$e.parse=function(n){if(typeof n!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=Yt(n);if(!e||e.length!==5)throw new TypeError("Invalid path '"+n+"'");return{root:e[1],dir:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};Qt?te.exports=Ne.parse:te.exports=$e.parse;te.exports.posix=$e.parse;te.exports.win32=Ne.parse});var De=m((Ho,Nr)=>{"use strict";d();var Or=require("path"),Fr=Or.parse||qr(),Pr=function(e,t){var r="/";/^([A-Za-z]:)/.test(e)?r="":/^\\\\/.test(e)&&(r="\\\\");for(var o=[e],s=Fr(e);s.dir!==o[o.length-1];)o.push(s.dir),s=Fr(s.dir);return o.reduce(function(i,l){return i.concat(t.map(function(c){return Or.resolve(r,l,c)}))},[])};Nr.exports=function(e,t,r){var o=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&typeof t.paths=="function")return t.paths(r,e,function(){return Pr(e,o)},t);var s=Pr(e,o);return t&&t.paths?s.concat(t.paths):s}});var Te=m((Ko,$r)=>{"use strict";d();$r.exports=function(n,e){return e||{}}});var Ur=m((Qo,Tr)=>{"use strict";d();var en="Function.prototype.bind called on incompatible ",rn=Object.prototype.toString,tn=Math.max,nn="[object Function]",Dr=function(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var s=0;s<t.length;s+=1)r[s+e.length]=t[s];return r},on=function(e,t){for(var r=[],o=t||0,s=0;o<e.length;o+=1,s+=1)r[s]=e[o];return r},sn=function(n,e){for(var t="",r=0;r<n.length;r+=1)t+=n[r],r+1<n.length&&(t+=e);return t};Tr.exports=function(e){var t=this;if(typeof t!="function"||rn.apply(t)!==nn)throw new TypeError(en+t);for(var r=on(arguments,1),o,s=function(){if(this instanceof o){var h=t.apply(this,Dr(r,arguments));return Object(h)===h?h:this}return t.apply(e,Dr(r,arguments))},i=tn(0,t.length-r.length),l=[],c=0;c<i;c++)l[c]="$"+c;if(o=Function("binder","return function ("+sn(l,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var p=function(){};p.prototype=t.prototype,o.prototype=new p,p.prototype=null}return o}});var jr=m((Xo,Mr)=>{"use strict";d();var an=Ur();Mr.exports=Function.prototype.bind||an});var Rr=m((Yo,Lr)=>{"use strict";d();var un=Function.prototype.call,cn=Object.prototype.hasOwnProperty,ln=jr();Lr.exports=ln.call(un,cn)});var zr=m((rs,dn)=>{dn.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var ne=m((ts,Hr)=>{"use strict";d();var pn=Rr();function fn(n,e){for(var t=n.split("."),r=e.split(" "),o=r.length>1?r[0]:"=",s=(r.length>1?r[1]:r[0]).split("."),i=0;i<3;++i){var l=parseInt(t[i]||0,10),c=parseInt(s[i]||0,10);if(l!==c)return o==="<"?l<c:o===">="?l>=c:!1}return o===">="}function Br(n,e){var t=e.split(/ ?&& ?/);if(t.length===0)return!1;for(var r=0;r<t.length;++r)if(!fn(n,t[r]))return!1;return!0}function hn(n,e){if(typeof e=="boolean")return e;var t=typeof n>"u"?process.versions&&process.versions.node:n;if(typeof t!="string")throw new TypeError(typeof n>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(e&&typeof e=="object"){for(var r=0;r<e.length;++r)if(Br(t,e[r]))return!0;return!1}return Br(t,e)}var Gr=zr();Hr.exports=function(e,t){return pn(Gr,e)&&hn(t,Gr[e])}});var Jr=m((os,Kr)=>{"use strict";d();var K=require("fs"),vn=Pe(),q=require("path"),mn=Oe(),yn=De(),gn=Te(),_n=ne(),wn=process.platform!=="win32"&&K.realpath&&typeof K.realpath.native=="function"?K.realpath.native:K.realpath,Zr=vn(),bn=function(){return[q.join(Zr,".node_modules"),q.join(Zr,".node_libraries")]},Cn=function(e,t){K.stat(e,function(r,o){return r?r.code==="ENOENT"||r.code==="ENOTDIR"?t(null,!1):t(r):t(null,o.isFile()||o.isFIFO())})},An=function(e,t){K.stat(e,function(r,o){return r?r.code==="ENOENT"||r.code==="ENOTDIR"?t(null,!1):t(r):t(null,o.isDirectory())})},In=function(e,t){wn(e,function(r,o){r&&r.code!=="ENOENT"?t(r):t(null,r?e:o)})},oe=function(e,t,r,o){r&&r.preserveSymlinks===!1?e(t,o):o(null,t)},kn=function(e,t,r){e(t,function(o,s){if(o)r(o);else try{var i=JSON.parse(s);r(null,i)}catch{r(null)}})},En=function(e,t,r){for(var o=yn(t,r,e),s=0;s<o.length;s++)o[s]=q.join(o[s],e);return o};Kr.exports=function(e,t,r){var o=r,s=t;if(typeof t=="function"&&(o=s,s={}),typeof e!="string"){var i=new TypeError("Path must be a string.");return process.nextTick(function(){o(i)})}s=gn(e,s);var l=s.isFile||Cn,c=s.isDirectory||An,p=s.readFile||K.readFile,h=s.realpath||In,a=s.readPackage||kn;if(s.readFile&&s.readPackage){var u=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(u)})}var _=s.packageIterator,x=s.extensions||[".js"],$=s.includeCoreModules!==!1,C=s.basedir||q.dirname(mn()),T=s.filename||C;s.paths=s.paths||bn();var U=q.resolve(C);oe(h,U,s,function(f,v){f?o(f):ie(v)});var F;function ie(f){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e))F=q.resolve(f,e),(e==="."||e===".."||e.slice(-1)==="/")&&(F+="/"),/\/$/.test(e)&&F===f?S(F,s.package,Q):L(F,s.package,Q);else{if($&&_n(e))return o(null,e);M(e,f,function(v,k,y){if(v)o(v);else{if(k)return oe(h,k,s,function(D,E){D?o(D):o(null,E,y)});var A=new Error("Cannot find module '"+e+"' from '"+T+"'");A.code="MODULE_NOT_FOUND",o(A)}})}}function Q(f,v,k){f?o(f):v?o(null,v,k):S(F,function(y,A,D){if(y)o(y);else if(A)oe(h,A,s,function(I,N){I?o(I):o(null,N,D)});else{var E=new Error("Cannot find module '"+e+"' from '"+T+"'");E.code="MODULE_NOT_FOUND",o(E)}})}function L(f,v,k){var y=v,A=k;typeof y=="function"&&(A=y,y=void 0);var D=[""].concat(x);E(D,f,y);function E(I,N,R){if(I.length===0)return A(null,void 0,R);var Z=N+I[0],j=R;j?P(null,j):w(q.dirname(Z),P);function P(G,W,z){if(j=W,G)return A(G);if(z&&j&&s.pathFilter){var ue=q.relative(z,Z),ce=ue.slice(0,ue.length-I[0].length),V=s.pathFilter(j,N,ce);if(V)return E([""].concat(x.slice()),q.resolve(z,V),j)}l(Z,ae)}function ae(G,W){if(G)return A(G);if(W)return A(null,Z,j);E(I.slice(1),N,j)}}}function w(f,v){if(f===""||f==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(f)||/[/\\]node_modules[/\\]*$/.test(f))return v(null);oe(h,f,s,function(k,y){if(k)return w(q.dirname(f),v);var A=q.join(y,"package.json");l(A,function(D,E){if(!E)return w(q.dirname(f),v);a(p,A,function(I,N){I&&v(I);var R=N;R&&s.packageFilter&&(R=s.packageFilter(R,A)),v(null,R,f)})})})}function S(f,v,k){var y=k,A=v;typeof A=="function"&&(y=A,A=s.package),oe(h,f,s,function(D,E){if(D)return y(D);var I=q.join(E,"package.json");l(I,function(N,R){if(N)return y(N);if(!R)return L(q.join(f,"index"),A,y);a(p,I,function(Z,j){if(Z)return y(Z);var P=j;if(P&&s.packageFilter&&(P=s.packageFilter(P,I)),P&&P.main){if(typeof P.main!="string"){var ae=new TypeError("package \u201C"+P.name+"\u201D `main` must be a string");return ae.code="INVALID_PACKAGE_MAIN",y(ae)}(P.main==="."||P.main==="./")&&(P.main="index"),L(q.resolve(f,P.main),P,function(G,W,z){if(G)return y(G);if(W)return y(null,W,z);if(!z)return L(q.join(f,"index"),z,y);var ue=q.resolve(f,z.main);S(ue,z,function(ce,V,je){if(ce)return y(ce);if(V)return y(null,V,je);L(q.join(f,"index"),je,y)})});return}L(q.join(f,"/index"),P,y)})})})}function b(f,v){if(v.length===0)return f(null,void 0);var k=v[0];c(q.dirname(k),y);function y(E,I){if(E)return f(E);if(!I)return b(f,v.slice(1));L(k,s.package,A)}function A(E,I,N){if(E)return f(E);if(I)return f(null,I,N);S(k,s.package,D)}function D(E,I,N){if(E)return f(E);if(I)return f(null,I,N);b(f,v.slice(1))}}function M(f,v,k){var y=function(){return En(f,v,s)};b(k,_?_(f,v,y,s):y())}}});var Qr=m((is,xn)=>{xn.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":">= 23.4",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Yr=m((as,Vr)=>{"use strict";d();var Sn=ne(),Wr=Qr(),Xr={};for(ye in Wr)Object.prototype.hasOwnProperty.call(Wr,ye)&&(Xr[ye]=Sn(ye));var ye;Vr.exports=Xr});var rt=m((cs,et)=>{"use strict";d();var qn=ne();et.exports=function(e){return qn(e)}});var ot=m((ds,nt)=>{"use strict";d();var Fn=ne(),J=require("fs"),O=require("path"),Pn=Pe(),On=Oe(),Nn=De(),$n=Te(),Dn=process.platform!=="win32"&&J.realpathSync&&typeof J.realpathSync.native=="function"?J.realpathSync.native:J.realpathSync,tt=Pn(),Tn=function(){return[O.join(tt,".node_modules"),O.join(tt,".node_libraries")]},Un=function(e){try{var t=J.statSync(e,{throwIfNoEntry:!1})}catch(r){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return!1;throw r}return!!t&&(t.isFile()||t.isFIFO())},Mn=function(e){try{var t=J.statSync(e,{throwIfNoEntry:!1})}catch(r){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return!1;throw r}return!!t&&t.isDirectory()},jn=function(e){try{return Dn(e)}catch(t){if(t.code!=="ENOENT")throw t}return e},se=function(e,t,r){return r&&r.preserveSymlinks===!1?e(t):t},Ln=function(e,t){var r=e(t);try{var o=JSON.parse(r);return o}catch{}},Rn=function(e,t,r){for(var o=Nn(t,r,e),s=0;s<o.length;s++)o[s]=O.join(o[s],e);return o};nt.exports=function(e,t){if(typeof e!="string")throw new TypeError("Path must be a string.");var r=$n(e,t),o=r.isFile||Un,s=r.readFileSync||J.readFileSync,i=r.isDirectory||Mn,l=r.realpathSync||jn,c=r.readPackageSync||Ln;if(r.readFileSync&&r.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var p=r.packageIterator,h=r.extensions||[".js"],a=r.includeCoreModules!==!1,u=r.basedir||O.dirname(On()),_=r.filename||u;r.paths=r.paths||Tn();var x=se(l,O.resolve(u),r);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var $=O.resolve(x,e);(e==="."||e===".."||e.slice(-1)==="/")&&($+="/");var C=F($)||Q($);if(C)return se(l,C,r)}else{if(a&&Fn(e))return e;var T=L(e,x);if(T)return se(l,T,r)}var U=new Error("Cannot find module '"+e+"' from '"+_+"'");throw U.code="MODULE_NOT_FOUND",U;function F(w){var S=ie(O.dirname(w));if(S&&S.dir&&S.pkg&&r.pathFilter){var b=O.relative(S.dir,w),M=r.pathFilter(S.pkg,w,b);M&&(w=O.resolve(S.dir,M))}if(o(w))return w;for(var f=0;f<h.length;f++){var v=w+h[f];if(o(v))return v}}function ie(w){if(!(w===""||w==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(w))&&!/[/\\]node_modules[/\\]*$/.test(w)){var S=O.join(se(l,w,r),"package.json");if(!o(S))return ie(O.dirname(w));var b=c(s,S);return b&&r.packageFilter&&(b=r.packageFilter(b,w)),{pkg:b,dir:w}}}function Q(w){var S=O.join(se(l,w,r),"/package.json");if(o(S)){try{var b=c(s,S)}catch{}if(b&&r.packageFilter&&(b=r.packageFilter(b,w)),b&&b.main){if(typeof b.main!="string"){var M=new TypeError("package \u201C"+b.name+"\u201D `main` must be a string");throw M.code="INVALID_PACKAGE_MAIN",M}(b.main==="."||b.main==="./")&&(b.main="index");try{var f=F(O.resolve(w,b.main));if(f)return f;var v=Q(O.resolve(w,b.main));if(v)return v}catch{}}}return F(O.join(w,"/index"))}function L(w,S){for(var b=function(){return Rn(w,S,r)},M=p?p(w,S,b,r):b(),f=0;f<M.length;f++){var v=M[f];if(i(O.dirname(v))){var k=F(v);if(k)return k;var y=Q(v);if(y)return y}}}}});var it=m((fs,st)=>{"use strict";d();var ge=Jr();ge.core=Yr();ge.isCore=rt();ge.sync=ot();st.exports=ge});var Ue=m((vs,ut)=>{"use strict";d();var zn=it(),Bn=["web_modules","node_modules"];function at(n,e){return new Promise((t,r)=>{zn(n,e,(o,s)=>o?r(o):t(s))})}ut.exports=function(e,t,r,o){let s=r.path,i={basedir:t,moduleDirectory:Bn.concat(r.addModulesDirectories),paths:s,extensions:[".css"],packageFilter:function(c){return c.style?c.main=c.style:(!c.main||!/\.css$/.test(c.main))&&(c.main="index.css"),c},preserveSymlinks:!1};return at(`./${e}`,i).catch(()=>at(e,i)).catch(()=>{throw s.indexOf(t)===-1&&s.unshift(t),o.error(`Failed to find '${e}'
|
|
4
4
|
in [
|
|
5
5
|
${s.join(`,
|
|
6
6
|
`)}
|
|
7
|
-
]`)})}});var
|
|
7
|
+
]`)})}});var ht=m((ys,ft)=>{"use strict";d();var ct=require("path"),lt=Ce(),Gn=Ir(),Hn=Er(),Zn=Ue(),Kn=we();async function pt(n,e,t,r,o,s,i){let l=Gn(n,e,o,s);for(let u of l)u.type!=="import"||!Qn(u.uri)||t.filter&&!t.filter(u.uri)||await Jn(n,u,t,r,i);let c,p=[],h=[];function a(u){if(!c)c=u;else if(u.node.params.toLowerCase()!==c.node.params.toLowerCase())throw u.node.error(`Incompatible @charset statements:
|
|
8
8
|
${u.node.params} specified in ${u.node.source.input.file}
|
|
9
|
-
${
|
|
9
|
+
${c.node.params} specified in ${c.node.source.input.file}`)}return l.forEach(u=>{u.type==="charset"?a(u):u.type==="import"?u.children?u.children.forEach((_,x)=>{_.type==="import"||_.type==="layer"?p.push(_):_.type==="charset"?a(_):h.push(_),x===0&&(_.parent=u)}):p.push(u):u.type==="layer"?p.push(u):u.type==="nodes"&&h.push(u)}),c?[c,...p.concat(h)]:p.concat(h)}async function Jn(n,e,t,r,o){if(lt.isValid(e.uri)){e.children=await dt(n,e,e.uri,t,r,o);return}else if(lt.isValid(e.from.slice(-1)))throw e.node.error(`Unable to import '${e.uri}' from a stylesheet that is embedded in a data url`);let s=e.node,i;s.source?.input?.file&&(i=s.source.input.file);let l=i?ct.dirname(s.source.input.file):t.root,c=[await t.resolve(e.uri,l,t,s)].flat(),p=await Promise.all(c.map(a=>ct.isAbsolute(a)?a:Zn(a,l,t,s)));p.forEach(a=>{n.messages.push({type:"dependency",plugin:"postcss-import",file:a,parent:i})});let h=await Promise.all(p.map(a=>dt(n,e,a,t,r,o)));e.children=h.flat().filter(a=>!!a)}async function dt(n,e,t,r,o,s){let i=e.node,{conditions:l,from:c}=e,p=l.map(_=>Kn(_.layer,_.media,_.supports)).join(":");if(r.skipDuplicates){if(o.importedFiles[t]?.[p])return;o.importedFiles[t]||(o.importedFiles[t]={}),o.importedFiles[t][p]=!0}if(c.includes(t))return;let h=await r.load(t,r);if(h.trim()===""&&r.warnOnEmpty){n.warn(`${t} is empty`,{node:i});return}if(r.skipDuplicates&&o.hashFiles[h]?.[p])return;let a=await Hn(n,h,t,r,s),u=a.root;return n.messages=n.messages.concat(a.messages),r.skipDuplicates&&(u.some(x=>x.type==="atrule"&&x.name==="import")||(o.hashFiles[h]||(o.hashFiles[h]={}),o.hashFiles[h][p]=!0)),pt(n,u,r,o,l,[...c,t],s)}function Qn(n){if(/^(?:[a-z]+:)?\/\//i.test(n))return!1;try{if(new URL(n,"https://example.com").search)return!1}catch{}return!0}ft.exports=pt});var gt=m((_s,yt)=>{"use strict";d();var vt=require("path"),Wn=Ke(),Xn=Qe(),Vn=Xe(),Yn=ar(),eo=ht(),ro=Ue();function mt(n){return n={root:process.cwd(),path:[],skipDuplicates:!0,resolve:ro,load:Yn,plugins:[],addModulesDirectories:[],warnOnEmpty:!0,...n},n.root=vt.resolve(n.root),typeof n.path=="string"&&(n.path=[n.path]),Array.isArray(n.path)||(n.path=[]),n.path=n.path.map(e=>vt.resolve(n.root,e)),{postcssPlugin:"postcss-import",async Once(e,{result:t,atRule:r,postcss:o}){let s={importedFiles:{},hashFiles:{}};if(e.source?.input?.file&&(s.importedFiles[e.source.input.file]={}),n.plugins&&!Array.isArray(n.plugins))throw new Error("plugins option must be an array");let i=await eo(t,e,n,s,[],[],o);Xn(i),Wn(i,r),Vn(i,e)}}}mt.postcss=!0;yt.exports=mt});var no={};kt(no,{default:()=>to});module.exports=Et(no);d();var Me=_e(require("path"),1),to=()=>({name:"@empjs/plugin-tailwindcss",async rsConfig(n){let{chain:e}=n,t=require.resolve("tailwindcss/package.json"),r=Me.default.dirname(t),o=[gt()({resolve:s=>s==="tailwindcss"?Me.default.join(r,"index.css"):s}),["@tailwindcss/postcss",{}]];n.empConfig.build.polyfill.browserslist&&n.empConfig.build.polyfill.browserslist.length>0&&o.push(["postcss-preset-env",{browsers:n.empConfig.build.polyfill.browserslist,stage:1}]),e.module.rule(n.chainName.rule.css).set("type","css").use("postcss").loader(require.resolve("postcss-loader")).options({postcssOptions:{plugins:o}}),e.resolve.alias.set("tailwindcss",r)}});
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
`,
|
|
3
|
-
`)})}});var Je=m((no,Ke)=>{"use strict";l();Ke.exports=function(e,t){t.nodes=[],e.forEach(r=>{["charset","import"].includes(r.type)?(r.node.parent=void 0,t.append(r.node)):r.type==="nodes"&&r.nodes.forEach(o=>{o.parent=void 0,t.append(o)})})}});var Ve=m((so,Xe)=>{"use strict";l();var Qe=function(n,e,t){return function(){for(var r=this,o=new Array(arguments.length),s=0;s<arguments.length;s++)o[s]=arguments[s];return new e(function(a,c){o.push(function(d,f){if(d)c(d);else if(t.multiArgs){for(var h=new Array(arguments.length-1),i=1;i<arguments.length;i++)h[i-1]=arguments[i];a(h)}else a(f)}),n.apply(r,o)})}},We=Xe.exports=function(n,e,t){typeof e!="function"&&(t=e,e=Promise),t=t||{},t.exclude=t.exclude||[/.+Sync$/];var r=function(s){var a=function(c){return typeof c=="string"?s===c:c.test(s)};return t.include?t.include.some(a):!t.exclude.some(a)},o=typeof n=="function"?function(){return t.excludeMain?n.apply(this,arguments):Qe(n,e,t).apply(this,arguments)}:{};return Object.keys(n).reduce(function(s,a){var c=n[a];return s[a]=typeof c=="function"&&r(a)?Qe(c,e,t):c,s},o)};We.all=We});var er=m((io,te)=>{"use strict";l();var fe=N("fs"),_t=N("path"),Ye=Ve(),wt=Ye(fe.stat),At=Ye(fe.readFile),Ae=_t.resolve,B=Object.create(null);function re(n,e){return Buffer.isEncoding(e)?n.toString(e):n}te.exports=function(n,e){return n=Ae(n),wt(n).then(function(t){var r=B[n];return r&&r.mtime.getTime()===t.mtime.getTime()?re(r.content,e):At(n).then(function(o){return B[n]={mtime:t.mtime,content:o},re(o,e)})}).catch(function(t){return B[n]=null,Promise.reject(t)})};te.exports.sync=function(n,e){n=Ae(n);try{var t=fe.statSync(n),r=B[n];if(r&&r.mtime.getTime()===t.mtime.getTime())return re(r.content,e);var o=fe.readFileSync(n);return B[n]={mtime:t.mtime,content:o},re(o,e)}catch(s){throw B[n]=null,s}};te.exports.get=function(n,e){return n=Ae(n),B[n]?re(B[n].content,e):null};te.exports.clear=function(){B=Object.create(null)}});var Ce=m((co,rr)=>{"use strict";l();var Ct=/^data:text\/css(?:;(base64|plain))?,/i,bt=/^data:text\/css;base64,/i,kt=/^data:text\/css;plain,/i;function Et(n){return Ct.test(n)}function xt(n){return bt.test(n)?Buffer.from(n.slice(21),"base64").toString():kt.test(n)?decodeURIComponent(n.slice(20)):decodeURIComponent(n.slice(14))}rr.exports={isValid:Et,contents:xt}});var or=m((fo,nr)=>{"use strict";l();var It=er(),tr=Ce();nr.exports=function(e){return tr.isValid(e)?tr.contents(e):It(e,"utf-8")}});var ar=m((ho,sr)=>{"use strict";l();var be=40,ke=41,pe=39,Ee=34,xe=92,Y=47,Ie=44,Fe=58,he=42,Ft=117,qt=85,St=43,Pt=/^[a-f0-9?-]+$/i;sr.exports=function(n){for(var e=[],t=n,r,o,s,a,c,d,f,h,i=0,u=t.charCodeAt(i),S=t.length,I=[{nodes:e}],T=0,C,j="",U="",P="";i<S;)if(u<=32){r=i;do r+=1,u=t.charCodeAt(r);while(u<=32);a=t.slice(i,r),s=e[e.length-1],u===ke&&T?P=a:s&&s.type==="div"?(s.after=a,s.sourceEndIndex+=a.length):u===Ie||u===Fe||u===Y&&t.charCodeAt(r+1)!==he&&(!C||C&&C.type==="function"&&C.value!=="calc")?U=a:e.push({type:"space",sourceIndex:i,sourceEndIndex:r,value:a}),i=r}else if(u===pe||u===Ee){r=i,o=u===pe?"'":'"',a={type:"string",sourceIndex:i,quote:o};do if(c=!1,r=t.indexOf(o,r+1),~r)for(d=r;t.charCodeAt(d-1)===xe;)d-=1,c=!c;else t+=o,r=t.length-1,a.unclosed=!0;while(c);a.value=t.slice(i+1,r),a.sourceEndIndex=a.unclosed?r:r+1,e.push(a),i=r+1,u=t.charCodeAt(i)}else if(u===Y&&t.charCodeAt(i+1)===he)r=t.indexOf("*/",i),a={type:"comment",sourceIndex:i,sourceEndIndex:r+2},r===-1&&(a.unclosed=!0,r=t.length,a.sourceEndIndex=r),a.value=t.slice(i+2,r),e.push(a),i=r+2,u=t.charCodeAt(i);else if((u===Y||u===he)&&C&&C.type==="function"&&C.value==="calc")a=t[i],e.push({type:"word",sourceIndex:i-U.length,sourceEndIndex:i+a.length,value:a}),i+=1,u=t.charCodeAt(i);else if(u===Y||u===Ie||u===Fe)a=t[i],e.push({type:"div",sourceIndex:i-U.length,sourceEndIndex:i+a.length,value:a,before:U,after:""}),U="",i+=1,u=t.charCodeAt(i);else if(be===u){r=i;do r+=1,u=t.charCodeAt(r);while(u<=32);if(h=i,a={type:"function",sourceIndex:i-j.length,value:j,before:t.slice(h+1,r)},i=r,j==="url"&&u!==pe&&u!==Ee){r-=1;do if(c=!1,r=t.indexOf(")",r+1),~r)for(d=r;t.charCodeAt(d-1)===xe;)d-=1,c=!c;else t+=")",r=t.length-1,a.unclosed=!0;while(c);f=r;do f-=1,u=t.charCodeAt(f);while(u<=32);h<f?(i!==f+1?a.nodes=[{type:"word",sourceIndex:i,sourceEndIndex:f+1,value:t.slice(i,f+1)}]:a.nodes=[],a.unclosed&&f+1!==r?(a.after="",a.nodes.push({type:"space",sourceIndex:f+1,sourceEndIndex:r,value:t.slice(f+1,r)})):(a.after=t.slice(f+1,r),a.sourceEndIndex=r)):(a.after="",a.nodes=[]),i=r+1,a.sourceEndIndex=a.unclosed?r:i,u=t.charCodeAt(i),e.push(a)}else T+=1,a.after="",a.sourceEndIndex=i+1,e.push(a),I.push(a),e=a.nodes=[],C=a;j=""}else if(ke===u&&T)i+=1,u=t.charCodeAt(i),C.after=P,C.sourceEndIndex+=P.length,P="",T-=1,I[I.length-1].sourceEndIndex=i,I.pop(),C=I[T],e=C.nodes;else{r=i;do u===xe&&(r+=1),r+=1,u=t.charCodeAt(r);while(r<S&&!(u<=32||u===pe||u===Ee||u===Ie||u===Fe||u===Y||u===be||u===he&&C&&C.type==="function"&&C.value==="calc"||u===Y&&C.type==="function"&&C.value==="calc"||u===ke&&T));a=t.slice(i,r),be===u?j=a:(Ft===a.charCodeAt(0)||qt===a.charCodeAt(0))&&St===a.charCodeAt(1)&&Pt.test(a.slice(2))?e.push({type:"unicode-range",sourceIndex:i,sourceEndIndex:r,value:a}):e.push({type:"word",sourceIndex:i,sourceEndIndex:r,value:a}),i=r}for(i=I.length-1;i;i-=1)I[i].unclosed=!0,I[i].sourceEndIndex=t.length;return I[0].nodes}});var ur=m((mo,ir)=>{"use strict";l();ir.exports=function n(e,t,r){var o,s,a,c;for(o=0,s=e.length;o<s;o+=1)a=e[o],r||(c=t(a,o,e)),c!==!1&&a.type==="function"&&Array.isArray(a.nodes)&&n(a.nodes,t,r),r&&t(a,o,e)}});var fr=m((go,dr)=>{"use strict";l();function cr(n,e){var t=n.type,r=n.value,o,s;return e&&(s=e(n))!==void 0?s:t==="word"||t==="space"?r:t==="string"?(o=n.quote||"",o+r+(n.unclosed?"":o)):t==="comment"?"/*"+r+(n.unclosed?"":"*/"):t==="div"?(n.before||"")+r+(n.after||""):Array.isArray(n.nodes)?(o=lr(n.nodes,e),t!=="function"?o:r+"("+(n.before||"")+o+(n.after||"")+(n.unclosed?"":")")):r}function lr(n,e){var t,r;if(Array.isArray(n)){for(t="",r=n.length-1;~r;r-=1)t=cr(n[r],e)+t;return t}return cr(n,e)}dr.exports=lr});var hr=m((wo,pr)=>{"use strict";l();var ve=45,me=43,qe=46,Ot=101,Dt=69;function Nt(n){var e=n.charCodeAt(0),t;if(e===me||e===ve){if(t=n.charCodeAt(1),t>=48&&t<=57)return!0;var r=n.charCodeAt(2);return t===qe&&r>=48&&r<=57}return e===qe?(t=n.charCodeAt(1),t>=48&&t<=57):e>=48&&e<=57}pr.exports=function(n){var e=0,t=n.length,r,o,s;if(t===0||!Nt(n))return!1;for(r=n.charCodeAt(e),(r===me||r===ve)&&e++;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;if(r=n.charCodeAt(e),o=n.charCodeAt(e+1),r===qe&&o>=48&&o<=57)for(e+=2;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;if(r=n.charCodeAt(e),o=n.charCodeAt(e+1),s=n.charCodeAt(e+2),(r===Ot||r===Dt)&&(o>=48&&o<=57||(o===me||o===ve)&&s>=48&&s<=57))for(e+=o===me||o===ve?3:2;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;return{number:n.slice(0,e),unit:n.slice(e)}}});var gr=m((Co,yr)=>{"use strict";l();var $t=ar(),vr=ur(),mr=fr();function K(n){return this instanceof K?(this.nodes=$t(n),this):new K(n)}K.prototype.toString=function(){return Array.isArray(this.nodes)?mr(this.nodes):""};K.prototype.walk=function(n,e){return vr(this.nodes,n,e),this};K.unit=hr();K.walk=vr;K.stringify=mr;yr.exports=K});var Ar=m((ko,wr)=>{"use strict";l();var _r=gr(),{stringify:ne}=_r;wr.exports=function(e,t,r,o){let s=[],a=[];return t.each(c=>{let d;c.type==="atrule"&&(c.name==="import"?d=Mt(e,c,r,o):c.name==="charset"&&(d=Tt(e,c,r,o))),d?(a.length&&(s.push({type:"nodes",nodes:a,conditions:[...r],from:o}),a=[]),s.push(d)):a.push(c)}),a.length&&s.push({type:"nodes",nodes:a,conditions:[...r],from:o}),s};function Tt(n,e,t,r){return e.prev()?n.warn("@charset must precede all other statements",{node:e}):{type:"charset",node:e,conditions:[...t],from:r}}function Mt(n,e,t,r){let o=e.prev();if(o)do{if(o.type==="comment"||o.type==="atrule"&&o.name==="import"){o=o.prev();continue}break}while(o);if(o)do{if(o.type==="comment"||o.type==="atrule"&&(o.name==="charset"||o.name==="layer"&&!o.nodes)){o=o.prev();continue}return n.warn("@import must precede all other statements (besides @charset or empty @layer)",{node:e})}while(o);if(e.nodes)return n.warn("It looks like you didn't end your @import statement correctly. Child nodes are attached to it.",{node:e});let s=_r(e.params).nodes,a={type:"import",uri:"",fullUri:"",node:e,conditions:[...t],from:r},c,d,f;for(let h=0;h<s.length;h++){let i=s[h];if(!(i.type==="space"||i.type==="comment")){if(i.type==="string"){if(a.uri)return n.warn(`Multiple url's in '${e.toString()}'`,{node:e});if(!i.value)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});a.uri=i.value,a.fullUri=ne(i);continue}if(i.type==="function"&&/^url$/i.test(i.value)){if(a.uri)return n.warn(`Multiple url's in '${e.toString()}'`,{node:e});if(!i.nodes?.[0]?.value)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});a.uri=i.nodes[0].value,a.fullUri=ne(i);continue}if(!a.uri)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});if((i.type==="word"||i.type==="function")&&/^layer$/i.test(i.value)){if(typeof c<"u")return n.warn(`Multiple layers in '${e.toString()}'`,{node:e});if(typeof f<"u")return n.warn(`layers must be defined before support conditions in '${e.toString()}'`,{node:e});i.nodes?c=ne(i.nodes):c="";continue}if(i.type==="function"&&/^supports$/i.test(i.value)){if(typeof f<"u")return n.warn(`Multiple support conditions in '${e.toString()}'`,{node:e});f=ne(i.nodes);continue}d=ne(s.slice(h));break}}return a.uri?((typeof d<"u"||typeof c<"u"||typeof f<"u")&&a.conditions.push({layer:c,media:d,supports:f}),a):n.warn(`Unable to find uri in '${e.toString()}'`,{node:e})}});var br=m((xo,Cr)=>{"use strict";l();var jt=N("path"),ye;Cr.exports=function(e,t,r,o,s){let{plugins:a}=o,c=jt.extname(r),d=[];if(c===".sss"){if(!ye)try{ye=N("sugarss")}catch{}if(ye)return Se(s,t,r,a,[ye])}return e.opts.syntax?.parse&&d.push(e.opts.syntax.parse),e.opts.parser&&d.push(e.opts.parser),d.push(null),Se(s,t,r,a,d)};function Se(n,e,t,r,o,s){return s||(s=0),n(r).process(e,{from:t,parser:o[s]}).catch(a=>{if(s++,s===o.length)throw a;return Se(n,e,t,r,o,s)})}});var Pe=m((Fo,kr)=>{"use strict";l();var Ut=N("os");kr.exports=Ut.homedir||function(){var e=process.env.HOME,t=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||e||null:process.platform==="darwin"?e||(t?"/Users/"+t:null):process.platform==="linux"?e||(process.getuid()===0?"/root":t?"/home/"+t:null):e||null}});var Oe=m((So,Er)=>{"use strict";l();Er.exports=function(){var n=Error.prepareStackTrace;Error.prepareStackTrace=function(t,r){return r};var e=new Error().stack;return Error.prepareStackTrace=n,e[2].getFileName()}});var xr=m((Oo,oe)=>{"use strict";l();var Rt=process.platform==="win32",Lt=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,De={};function zt(n){return Lt.exec(n).slice(1)}De.parse=function(n){if(typeof n!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=zt(n);if(!e||e.length!==5)throw new TypeError("Invalid path '"+n+"'");return{root:e[1],dir:e[0]===e[1]?e[0]:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};var Gt=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,Ne={};function Ht(n){return Gt.exec(n).slice(1)}Ne.parse=function(n){if(typeof n!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=Ht(n);if(!e||e.length!==5)throw new TypeError("Invalid path '"+n+"'");return{root:e[1],dir:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};Rt?oe.exports=De.parse:oe.exports=Ne.parse;oe.exports.posix=Ne.parse;oe.exports.win32=De.parse});var $e=m((No,Sr)=>{"use strict";l();var qr=N("path"),Ir=qr.parse||xr(),Fr=function(e,t){var r="/";/^([A-Za-z]:)/.test(e)?r="":/^\\\\/.test(e)&&(r="\\\\");for(var o=[e],s=Ir(e);s.dir!==o[o.length-1];)o.push(s.dir),s=Ir(s.dir);return o.reduce(function(a,c){return a.concat(t.map(function(d){return qr.resolve(r,c,d)}))},[])};Sr.exports=function(e,t,r){var o=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&typeof t.paths=="function")return t.paths(r,e,function(){return Fr(e,o)},t);var s=Fr(e,o);return t&&t.paths?s.concat(t.paths):s}});var Te=m((To,Pr)=>{"use strict";l();Pr.exports=function(n,e){return e||{}}});var Nr=m((jo,Dr)=>{"use strict";l();var Bt="Function.prototype.bind called on incompatible ",Zt=Object.prototype.toString,Kt=Math.max,Jt="[object Function]",Or=function(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var s=0;s<t.length;s+=1)r[s+e.length]=t[s];return r},Qt=function(e,t){for(var r=[],o=t||0,s=0;o<e.length;o+=1,s+=1)r[s]=e[o];return r},Wt=function(n,e){for(var t="",r=0;r<n.length;r+=1)t+=n[r],r+1<n.length&&(t+=e);return t};Dr.exports=function(e){var t=this;if(typeof t!="function"||Zt.apply(t)!==Jt)throw new TypeError(Bt+t);for(var r=Qt(arguments,1),o,s=function(){if(this instanceof o){var h=t.apply(this,Or(r,arguments));return Object(h)===h?h:this}return t.apply(e,Or(r,arguments))},a=Kt(0,t.length-r.length),c=[],d=0;d<a;d++)c[d]="$"+d;if(o=Function("binder","return function ("+Wt(c,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var f=function(){};f.prototype=t.prototype,o.prototype=new f,f.prototype=null}return o}});var Tr=m((Ro,$r)=>{"use strict";l();var Xt=Nr();$r.exports=Function.prototype.bind||Xt});var jr=m((zo,Mr)=>{"use strict";l();var Vt=Function.prototype.call,Yt=Object.prototype.hasOwnProperty,en=Tr();Mr.exports=en.call(Vt,Yt)});var Ur=m((Ho,rn)=>{rn.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var se=m((Bo,zr)=>{"use strict";l();var tn=jr();function nn(n,e){for(var t=n.split("."),r=e.split(" "),o=r.length>1?r[0]:"=",s=(r.length>1?r[1]:r[0]).split("."),a=0;a<3;++a){var c=parseInt(t[a]||0,10),d=parseInt(s[a]||0,10);if(c!==d)return o==="<"?c<d:o===">="?c>=d:!1}return o===">="}function Rr(n,e){var t=e.split(/ ?&& ?/);if(t.length===0)return!1;for(var r=0;r<t.length;++r)if(!nn(n,t[r]))return!1;return!0}function on(n,e){if(typeof e=="boolean")return e;var t=typeof n>"u"?process.versions&&process.versions.node:n;if(typeof t!="string")throw new TypeError(typeof n>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(e&&typeof e=="object"){for(var r=0;r<e.length;++r)if(Rr(t,e[r]))return!0;return!1}return Rr(t,e)}var Lr=Ur();zr.exports=function(e,t){return tn(Lr,e)&&on(t,Lr[e])}});var Br=m((Ko,Hr)=>{"use strict";l();var Q=N("fs"),sn=Pe(),q=N("path"),an=Oe(),un=$e(),cn=Te(),ln=se(),dn=process.platform!=="win32"&&Q.realpath&&typeof Q.realpath.native=="function"?Q.realpath.native:Q.realpath,Gr=sn(),fn=function(){return[q.join(Gr,".node_modules"),q.join(Gr,".node_libraries")]},pn=function(e,t){Q.stat(e,function(r,o){return r?r.code==="ENOENT"||r.code==="ENOTDIR"?t(null,!1):t(r):t(null,o.isFile()||o.isFIFO())})},hn=function(e,t){Q.stat(e,function(r,o){return r?r.code==="ENOENT"||r.code==="ENOTDIR"?t(null,!1):t(r):t(null,o.isDirectory())})},vn=function(e,t){dn(e,function(r,o){r&&r.code!=="ENOENT"?t(r):t(null,r?e:o)})},ae=function(e,t,r,o){r&&r.preserveSymlinks===!1?e(t,o):o(null,t)},mn=function(e,t,r){e(t,function(o,s){if(o)r(o);else try{var a=JSON.parse(s);r(null,a)}catch{r(null)}})},yn=function(e,t,r){for(var o=un(t,r,e),s=0;s<o.length;s++)o[s]=q.join(o[s],e);return o};Hr.exports=function(e,t,r){var o=r,s=t;if(typeof t=="function"&&(o=s,s={}),typeof e!="string"){var a=new TypeError("Path must be a string.");return process.nextTick(function(){o(a)})}s=cn(e,s);var c=s.isFile||pn,d=s.isDirectory||hn,f=s.readFile||Q.readFile,h=s.realpath||vn,i=s.readPackage||mn;if(s.readFile&&s.readPackage){var u=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(u)})}var S=s.packageIterator,I=s.extensions||[".js"],T=s.includeCoreModules!==!1,C=s.basedir||q.dirname(an()),j=s.filename||C;s.paths=s.paths||fn();var U=q.resolve(C);ae(h,U,s,function(p,v){p?o(p):ue(v)});var P;function ue(p){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e))P=q.resolve(p,e),(e==="."||e===".."||e.slice(-1)==="/")&&(P+="/"),/\/$/.test(e)&&P===p?F(P,s.package,X):z(P,s.package,X);else{if(T&&ln(e))return o(null,e);R(e,p,function(v,E,y){if(v)o(v);else{if(E)return ae(h,E,s,function(M,x){M?o(M):o(null,x,y)});var b=new Error("Cannot find module '"+e+"' from '"+j+"'");b.code="MODULE_NOT_FOUND",o(b)}})}}function X(p,v,E){p?o(p):v?o(null,v,E):F(P,function(y,b,M){if(y)o(y);else if(b)ae(h,b,s,function(k,$){k?o(k):o(null,$,M)});else{var x=new Error("Cannot find module '"+e+"' from '"+j+"'");x.code="MODULE_NOT_FOUND",o(x)}})}function z(p,v,E){var y=v,b=E;typeof y=="function"&&(b=y,y=void 0);var M=[""].concat(I);x(M,p,y);function x(k,$,G){if(k.length===0)return b(null,void 0,G);var J=$+k[0],L=G;L?O(null,L):w(q.dirname(J),O);function O(Z,V,H){if(L=V,Z)return b(Z);if(H&&L&&s.pathFilter){var le=q.relative(H,J),de=le.slice(0,le.length-k[0].length),ee=s.pathFilter(L,$,de);if(ee)return x([""].concat(I.slice()),q.resolve(H,ee),L)}c(J,ce)}function ce(Z,V){if(Z)return b(Z);if(V)return b(null,J,L);x(k.slice(1),$,L)}}}function w(p,v){if(p===""||p==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(p)||/[/\\]node_modules[/\\]*$/.test(p))return v(null);ae(h,p,s,function(E,y){if(E)return w(q.dirname(p),v);var b=q.join(y,"package.json");c(b,function(M,x){if(!x)return w(q.dirname(p),v);i(f,b,function(k,$){k&&v(k);var G=$;G&&s.packageFilter&&(G=s.packageFilter(G,b)),v(null,G,p)})})})}function F(p,v,E){var y=E,b=v;typeof b=="function"&&(y=b,b=s.package),ae(h,p,s,function(M,x){if(M)return y(M);var k=q.join(x,"package.json");c(k,function($,G){if($)return y($);if(!G)return z(q.join(p,"index"),b,y);i(f,k,function(J,L){if(J)return y(J);var O=L;if(O&&s.packageFilter&&(O=s.packageFilter(O,k)),O&&O.main){if(typeof O.main!="string"){var ce=new TypeError("package \u201C"+O.name+"\u201D `main` must be a string");return ce.code="INVALID_PACKAGE_MAIN",y(ce)}(O.main==="."||O.main==="./")&&(O.main="index"),z(q.resolve(p,O.main),O,function(Z,V,H){if(Z)return y(Z);if(V)return y(null,V,H);if(!H)return z(q.join(p,"index"),H,y);var le=q.resolve(p,H.main);F(le,H,function(de,ee,je){if(de)return y(de);if(ee)return y(null,ee,je);z(q.join(p,"index"),je,y)})});return}z(q.join(p,"/index"),O,y)})})})}function A(p,v){if(v.length===0)return p(null,void 0);var E=v[0];d(q.dirname(E),y);function y(x,k){if(x)return p(x);if(!k)return A(p,v.slice(1));z(E,s.package,b)}function b(x,k,$){if(x)return p(x);if(k)return p(null,k,$);F(E,s.package,M)}function M(x,k,$){if(x)return p(x);if(k)return p(null,k,$);A(p,v.slice(1))}}function R(p,v,E){var y=function(){return yn(p,v,s)};A(E,S?S(p,v,y,s):y())}}});var Zr=m((Qo,gn)=>{gn.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Wr=m((Wo,Qr)=>{"use strict";l();var _n=se(),Kr=Zr(),Jr={};for(ge in Kr)Object.prototype.hasOwnProperty.call(Kr,ge)&&(Jr[ge]=_n(ge));var ge;Qr.exports=Jr});var Vr=m((Vo,Xr)=>{"use strict";l();var wn=se();Xr.exports=function(e){return wn(e)}});var rt=m((es,et)=>{"use strict";l();var An=se(),W=N("fs"),D=N("path"),Cn=Pe(),bn=Oe(),kn=$e(),En=Te(),xn=process.platform!=="win32"&&W.realpathSync&&typeof W.realpathSync.native=="function"?W.realpathSync.native:W.realpathSync,Yr=Cn(),In=function(){return[D.join(Yr,".node_modules"),D.join(Yr,".node_libraries")]},Fn=function(e){try{var t=W.statSync(e,{throwIfNoEntry:!1})}catch(r){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return!1;throw r}return!!t&&(t.isFile()||t.isFIFO())},qn=function(e){try{var t=W.statSync(e,{throwIfNoEntry:!1})}catch(r){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return!1;throw r}return!!t&&t.isDirectory()},Sn=function(e){try{return xn(e)}catch(t){if(t.code!=="ENOENT")throw t}return e},ie=function(e,t,r){return r&&r.preserveSymlinks===!1?e(t):t},Pn=function(e,t){var r=e(t);try{var o=JSON.parse(r);return o}catch{}},On=function(e,t,r){for(var o=kn(t,r,e),s=0;s<o.length;s++)o[s]=D.join(o[s],e);return o};et.exports=function(e,t){if(typeof e!="string")throw new TypeError("Path must be a string.");var r=En(e,t),o=r.isFile||Fn,s=r.readFileSync||W.readFileSync,a=r.isDirectory||qn,c=r.realpathSync||Sn,d=r.readPackageSync||Pn;if(r.readFileSync&&r.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var f=r.packageIterator,h=r.extensions||[".js"],i=r.includeCoreModules!==!1,u=r.basedir||D.dirname(bn()),S=r.filename||u;r.paths=r.paths||In();var I=ie(c,D.resolve(u),r);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var T=D.resolve(I,e);(e==="."||e===".."||e.slice(-1)==="/")&&(T+="/");var C=P(T)||X(T);if(C)return ie(c,C,r)}else{if(i&&An(e))return e;var j=z(e,I);if(j)return ie(c,j,r)}var U=new Error("Cannot find module '"+e+"' from '"+S+"'");throw U.code="MODULE_NOT_FOUND",U;function P(w){var F=ue(D.dirname(w));if(F&&F.dir&&F.pkg&&r.pathFilter){var A=D.relative(F.dir,w),R=r.pathFilter(F.pkg,w,A);R&&(w=D.resolve(F.dir,R))}if(o(w))return w;for(var p=0;p<h.length;p++){var v=w+h[p];if(o(v))return v}}function ue(w){if(!(w===""||w==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(w))&&!/[/\\]node_modules[/\\]*$/.test(w)){var F=D.join(ie(c,w,r),"package.json");if(!o(F))return ue(D.dirname(w));var A=d(s,F);return A&&r.packageFilter&&(A=r.packageFilter(A,w)),{pkg:A,dir:w}}}function X(w){var F=D.join(ie(c,w,r),"/package.json");if(o(F)){try{var A=d(s,F)}catch{}if(A&&r.packageFilter&&(A=r.packageFilter(A,w)),A&&A.main){if(typeof A.main!="string"){var R=new TypeError("package \u201C"+A.name+"\u201D `main` must be a string");throw R.code="INVALID_PACKAGE_MAIN",R}(A.main==="."||A.main==="./")&&(A.main="index");try{var p=P(D.resolve(w,A.main));if(p)return p;var v=X(D.resolve(w,A.main));if(v)return v}catch{}}}return P(D.join(w,"/index"))}function z(w,F){for(var A=function(){return On(w,F,r)},R=f?f(w,F,A,r):A(),p=0;p<R.length;p++){var v=R[p];if(a(D.dirname(v))){var E=P(v);if(E)return E;var y=X(v);if(y)return y}}}}});var nt=m((ts,tt)=>{"use strict";l();var _e=Br();_e.core=Wr();_e.isCore=Vr();_e.sync=rt();tt.exports=_e});var Me=m((os,st)=>{"use strict";l();var Dn=nt(),Nn=["web_modules","node_modules"];function ot(n,e){return new Promise((t,r)=>{Dn(n,e,(o,s)=>o?r(o):t(s))})}st.exports=function(e,t,r,o){let s=r.path,a={basedir:t,moduleDirectory:Nn.concat(r.addModulesDirectories),paths:s,extensions:[".css"],packageFilter:function(d){return d.style?d.main=d.style:(!d.main||!/\.css$/.test(d.main))&&(d.main="index.css"),d},preserveSymlinks:!1};return ot(`./${e}`,a).catch(()=>ot(e,a)).catch(()=>{throw s.indexOf(t)===-1&&s.unshift(t),o.error(`Failed to find '${e}'
|
|
1
|
+
var D=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var gt=(n,e)=>()=>(n&&(e=n(n=0)),e);var m=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);import Wn from"path";import{fileURLToPath as Vn}from"url";var d=gt(()=>{"use strict"});var we=m((eo,Ue)=>{"use strict";d();Ue.exports=function(e,t,r){let o=[];if(typeof e<"u"){let s="layer";e&&(s=`layer(${e})`),o.push(s)}return typeof r<"u"&&o.push(`supports(${r})`),typeof t<"u"&&o.push(t),o.join(" ")}});var ze=m((to,Re)=>{"use strict";d();var Le=we();Re.exports=function(e,t){if(!t?.length)return e;t.reverse();let r=t.pop(),o=`${e} ${Le(r.layer,r.media,r.supports)}`;for(let s of t)o=`'data:text/css;base64,${Buffer.from(`@import ${o}`).toString("base64")}' ${Le(s.layer,s.media,s.supports)}`;return o}});var He=m((oo,Ge)=>{"use strict";d();var Be=ze();Ge.exports=function(e,t){let r=e.findIndex(s=>s.type==="import"),o=e.findLastIndex(s=>s.type==="import");e.forEach((s,a)=>{if(s.type==="charset"||s.type==="warning")return;if(s.type==="layer"&&(a<o&&s.conditions?.length||a>r&&a<o)){s.type="import",s.node=s.node.clone({name:"import",params:Be(`'data:text/css;base64,${Buffer.from(s.node.toString()).toString("base64")}'`,s.conditions)});return}if(!s.conditions?.length)return;if(s.type==="import"){s.node.params=Be(s.fullUri,s.conditions);return}let l,c;s.type==="layer"?(l=[s.node],c=s.node.parent):(l=s.nodes,c=l[0].parent);let p=[];for(let u of s.conditions){if(typeof u.media<"u"){let w=t({name:"media",params:u.media,source:c.source});p.push(w)}if(typeof u.supports<"u"){let w=t({name:"supports",params:`(${u.supports})`,source:c.source});p.push(w)}if(typeof u.layer<"u"){let w=t({name:"layer",params:u.layer,source:c.source});p.push(w)}}let h=p.shift(),i=p.reduce((u,w)=>(u.append(w),w),h);c.insertBefore(l[0],h),l.forEach(u=>{u.parent=void 0}),l[0].raws.before=l[0].raws.before||`
|
|
2
|
+
`,i.append(l),s.type="nodes",s.nodes=[h],delete s.node})}});var Ke=m((ao,Ze)=>{"use strict";d();Ze.exports=function(e){e.forEach((t,r)=>{if(r!==0)if(t.parent){let{before:o}=t.parent.node.raws;t.type==="nodes"?t.nodes[0].raws.before=o:t.node.raws.before=o}else t.type==="nodes"&&(t.nodes[0].raws.before=t.nodes[0].raws.before||`
|
|
3
|
+
`)})}});var Qe=m((uo,Je)=>{"use strict";d();Je.exports=function(e,t){t.nodes=[],e.forEach(r=>{["charset","import","layer"].includes(r.type)?(r.node.parent=void 0,t.append(r.node)):r.type==="nodes"&&r.nodes.forEach(o=>{o.parent=void 0,t.append(o)})})}});var Ye=m((lo,Ve)=>{"use strict";d();var We=function(n,e,t){return function(){for(var r=this,o=new Array(arguments.length),s=0;s<arguments.length;s++)o[s]=arguments[s];return new e(function(a,l){o.push(function(c,p){if(c)l(c);else if(t.multiArgs){for(var h=new Array(arguments.length-1),i=1;i<arguments.length;i++)h[i-1]=arguments[i];a(h)}else a(p)}),n.apply(r,o)})}},Xe=Ve.exports=function(n,e,t){typeof e!="function"&&(t=e,e=Promise),t=t||{},t.exclude=t.exclude||[/.+Sync$/];var r=function(s){var a=function(l){return typeof l=="string"?s===l:l.test(s)};return t.include?t.include.some(a):!t.exclude.some(a)},o=typeof n=="function"?function(){return t.excludeMain?n.apply(this,arguments):We(n,e,t).apply(this,arguments)}:{};return Object.keys(n).reduce(function(s,a){var l=n[a];return s[a]=typeof l=="function"&&r(a)?We(l,e,t):l,s},o)};Xe.all=Xe});var rr=m((fo,te)=>{"use strict";d();var pe=D("fs"),_t=D("path"),er=Ye(),wt=er(pe.stat),bt=er(pe.readFile),be=_t.resolve,H=Object.create(null);function re(n,e){return Buffer.isEncoding(e)?n.toString(e):n}te.exports=function(n,e){return n=be(n),wt(n).then(function(t){var r=H[n];return r&&r.mtime.getTime()===t.mtime.getTime()?re(r.content,e):bt(n).then(function(o){return H[n]={mtime:t.mtime,content:o},re(o,e)})}).catch(function(t){return H[n]=null,Promise.reject(t)})};te.exports.sync=function(n,e){n=be(n);try{var t=pe.statSync(n),r=H[n];if(r&&r.mtime.getTime()===t.mtime.getTime())return re(r.content,e);var o=pe.readFileSync(n);return H[n]={mtime:t.mtime,content:o},re(o,e)}catch(s){throw H[n]=null,s}};te.exports.get=function(n,e){return n=be(n),H[n]?re(H[n].content,e):null};te.exports.clear=function(){H=Object.create(null)}});var Ce=m((vo,tr)=>{"use strict";d();var Ct=/^data:text\/css(?:;(base64|plain))?,/i,At=/^data:text\/css;base64,/i,kt=/^data:text\/css;plain,/i;function It(n){return Ct.test(n)}function Et(n){return At.test(n)?Buffer.from(n.slice(21),"base64").toString():kt.test(n)?decodeURIComponent(n.slice(20)):decodeURIComponent(n.slice(14))}tr.exports={isValid:It,contents:Et}});var sr=m((yo,or)=>{"use strict";d();var xt=rr(),nr=Ce();or.exports=function(e){return nr.isValid(e)?nr.contents(e):xt(e,"utf-8")}});var ir=m((_o,ar)=>{"use strict";d();var Ae=40,ke=41,fe=39,Ie=34,Ee=92,Y=47,xe=44,Se=58,he=42,St=117,qt=85,Ft=43,Pt=/^[a-f0-9?-]+$/i;ar.exports=function(n){for(var e=[],t=n,r,o,s,a,l,c,p,h,i=0,u=t.charCodeAt(i),w=t.length,S=[{nodes:e}],T=0,A,j="",U="",P="";i<w;)if(u<=32){r=i;do r+=1,u=t.charCodeAt(r);while(u<=32);a=t.slice(i,r),s=e[e.length-1],u===ke&&T?P=a:s&&s.type==="div"?(s.after=a,s.sourceEndIndex+=a.length):u===xe||u===Se||u===Y&&t.charCodeAt(r+1)!==he&&(!A||A&&A.type==="function"&&A.value!=="calc")?U=a:e.push({type:"space",sourceIndex:i,sourceEndIndex:r,value:a}),i=r}else if(u===fe||u===Ie){r=i,o=u===fe?"'":'"',a={type:"string",sourceIndex:i,quote:o};do if(l=!1,r=t.indexOf(o,r+1),~r)for(c=r;t.charCodeAt(c-1)===Ee;)c-=1,l=!l;else t+=o,r=t.length-1,a.unclosed=!0;while(l);a.value=t.slice(i+1,r),a.sourceEndIndex=a.unclosed?r:r+1,e.push(a),i=r+1,u=t.charCodeAt(i)}else if(u===Y&&t.charCodeAt(i+1)===he)r=t.indexOf("*/",i),a={type:"comment",sourceIndex:i,sourceEndIndex:r+2},r===-1&&(a.unclosed=!0,r=t.length,a.sourceEndIndex=r),a.value=t.slice(i+2,r),e.push(a),i=r+2,u=t.charCodeAt(i);else if((u===Y||u===he)&&A&&A.type==="function"&&A.value==="calc")a=t[i],e.push({type:"word",sourceIndex:i-U.length,sourceEndIndex:i+a.length,value:a}),i+=1,u=t.charCodeAt(i);else if(u===Y||u===xe||u===Se)a=t[i],e.push({type:"div",sourceIndex:i-U.length,sourceEndIndex:i+a.length,value:a,before:U,after:""}),U="",i+=1,u=t.charCodeAt(i);else if(Ae===u){r=i;do r+=1,u=t.charCodeAt(r);while(u<=32);if(h=i,a={type:"function",sourceIndex:i-j.length,value:j,before:t.slice(h+1,r)},i=r,j==="url"&&u!==fe&&u!==Ie){r-=1;do if(l=!1,r=t.indexOf(")",r+1),~r)for(c=r;t.charCodeAt(c-1)===Ee;)c-=1,l=!l;else t+=")",r=t.length-1,a.unclosed=!0;while(l);p=r;do p-=1,u=t.charCodeAt(p);while(u<=32);h<p?(i!==p+1?a.nodes=[{type:"word",sourceIndex:i,sourceEndIndex:p+1,value:t.slice(i,p+1)}]:a.nodes=[],a.unclosed&&p+1!==r?(a.after="",a.nodes.push({type:"space",sourceIndex:p+1,sourceEndIndex:r,value:t.slice(p+1,r)})):(a.after=t.slice(p+1,r),a.sourceEndIndex=r)):(a.after="",a.nodes=[]),i=r+1,a.sourceEndIndex=a.unclosed?r:i,u=t.charCodeAt(i),e.push(a)}else T+=1,a.after="",a.sourceEndIndex=i+1,e.push(a),S.push(a),e=a.nodes=[],A=a;j=""}else if(ke===u&&T)i+=1,u=t.charCodeAt(i),A.after=P,A.sourceEndIndex+=P.length,P="",T-=1,S[S.length-1].sourceEndIndex=i,S.pop(),A=S[T],e=A.nodes;else{r=i;do u===Ee&&(r+=1),r+=1,u=t.charCodeAt(r);while(r<w&&!(u<=32||u===fe||u===Ie||u===xe||u===Se||u===Y||u===Ae||u===he&&A&&A.type==="function"&&A.value==="calc"||u===Y&&A.type==="function"&&A.value==="calc"||u===ke&&T));a=t.slice(i,r),Ae===u?j=a:(St===a.charCodeAt(0)||qt===a.charCodeAt(0))&&Ft===a.charCodeAt(1)&&Pt.test(a.slice(2))?e.push({type:"unicode-range",sourceIndex:i,sourceEndIndex:r,value:a}):e.push({type:"word",sourceIndex:i,sourceEndIndex:r,value:a}),i=r}for(i=S.length-1;i;i-=1)S[i].unclosed=!0,S[i].sourceEndIndex=t.length;return S[0].nodes}});var cr=m((bo,ur)=>{"use strict";d();ur.exports=function n(e,t,r){var o,s,a,l;for(o=0,s=e.length;o<s;o+=1)a=e[o],r||(l=t(a,o,e)),l!==!1&&a.type==="function"&&Array.isArray(a.nodes)&&n(a.nodes,t,r),r&&t(a,o,e)}});var fr=m((Ao,pr)=>{"use strict";d();function lr(n,e){var t=n.type,r=n.value,o,s;return e&&(s=e(n))!==void 0?s:t==="word"||t==="space"?r:t==="string"?(o=n.quote||"",o+r+(n.unclosed?"":o)):t==="comment"?"/*"+r+(n.unclosed?"":"*/"):t==="div"?(n.before||"")+r+(n.after||""):Array.isArray(n.nodes)?(o=dr(n.nodes,e),t!=="function"?o:r+"("+(n.before||"")+o+(n.after||"")+(n.unclosed?"":")")):r}function dr(n,e){var t,r;if(Array.isArray(n)){for(t="",r=n.length-1;~r;r-=1)t=lr(n[r],e)+t;return t}return lr(n,e)}pr.exports=dr});var vr=m((Io,hr)=>{"use strict";d();var ve=45,me=43,qe=46,Ot=101,Nt=69;function Dt(n){var e=n.charCodeAt(0),t;if(e===me||e===ve){if(t=n.charCodeAt(1),t>=48&&t<=57)return!0;var r=n.charCodeAt(2);return t===qe&&r>=48&&r<=57}return e===qe?(t=n.charCodeAt(1),t>=48&&t<=57):e>=48&&e<=57}hr.exports=function(n){var e=0,t=n.length,r,o,s;if(t===0||!Dt(n))return!1;for(r=n.charCodeAt(e),(r===me||r===ve)&&e++;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;if(r=n.charCodeAt(e),o=n.charCodeAt(e+1),r===qe&&o>=48&&o<=57)for(e+=2;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;if(r=n.charCodeAt(e),o=n.charCodeAt(e+1),s=n.charCodeAt(e+2),(r===Ot||r===Nt)&&(o>=48&&o<=57||(o===me||o===ve)&&s>=48&&s<=57))for(e+=o===me||o===ve?3:2;e<t&&(r=n.charCodeAt(e),!(r<48||r>57));)e+=1;return{number:n.slice(0,e),unit:n.slice(e)}}});var _r=m((xo,gr)=>{"use strict";d();var $t=ir(),mr=cr(),yr=fr();function K(n){return this instanceof K?(this.nodes=$t(n),this):new K(n)}K.prototype.toString=function(){return Array.isArray(this.nodes)?yr(this.nodes):""};K.prototype.walk=function(n,e){return mr(this.nodes,n,e),this};K.unit=vr();K.walk=mr;K.stringify=yr;gr.exports=K});var Cr=m((qo,br)=>{"use strict";d();var wr=_r(),{stringify:ne}=wr;br.exports=function(e,t,r,o){let s=[],a=[],l=!1;return t.each(c=>{let p;c.type==="atrule"?c.name==="import"?p=Mt(e,c,r,o):c.name==="charset"?p=Tt(e,c,r,o):c.name==="layer"&&!l&&!c.nodes&&(p=jt(e,c,r,o)):c.type!=="comment"&&(l=!0),p?(a.length&&(s.push({type:"nodes",nodes:a,conditions:[...r],from:o}),a=[]),s.push(p)):a.push(c)}),a.length&&s.push({type:"nodes",nodes:a,conditions:[...r],from:o}),s};function Tt(n,e,t,r){return e.prev()?n.warn("@charset must precede all other statements",{node:e}):{type:"charset",node:e,conditions:[...t],from:r}}function Mt(n,e,t,r){let o=e.prev();if(o)do{if(o.type==="comment"||o.type==="atrule"&&o.name==="import"){o=o.prev();continue}break}while(o);if(o)do{if(o.type==="comment"||o.type==="atrule"&&(o.name==="charset"||o.name==="layer"&&!o.nodes)){o=o.prev();continue}return n.warn("@import must precede all other statements (besides @charset or empty @layer)",{node:e})}while(o);if(e.nodes)return n.warn("It looks like you didn't end your @import statement correctly. Child nodes are attached to it.",{node:e});let s=wr(e.params).nodes,a={type:"import",uri:"",fullUri:"",node:e,conditions:[...t],from:r},l,c,p;for(let h=0;h<s.length;h++){let i=s[h];if(!(i.type==="space"||i.type==="comment")){if(i.type==="string"){if(a.uri)return n.warn(`Multiple url's in '${e.toString()}'`,{node:e});if(!i.value)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});a.uri=i.value,a.fullUri=ne(i);continue}if(i.type==="function"&&/^url$/i.test(i.value)){if(a.uri)return n.warn(`Multiple url's in '${e.toString()}'`,{node:e});if(!i.nodes?.[0]?.value)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});a.uri=i.nodes[0].value,a.fullUri=ne(i);continue}if(!a.uri)return n.warn(`Unable to find uri in '${e.toString()}'`,{node:e});if((i.type==="word"||i.type==="function")&&/^layer$/i.test(i.value)){if(typeof l<"u")return n.warn(`Multiple layers in '${e.toString()}'`,{node:e});if(typeof p<"u")return n.warn(`layers must be defined before support conditions in '${e.toString()}'`,{node:e});i.nodes?l=ne(i.nodes):l="";continue}if(i.type==="function"&&/^supports$/i.test(i.value)){if(typeof p<"u")return n.warn(`Multiple support conditions in '${e.toString()}'`,{node:e});p=ne(i.nodes);continue}c=ne(s.slice(h));break}}return a.uri?((typeof c<"u"||typeof l<"u"||typeof p<"u")&&a.conditions.push({layer:l,media:c,supports:p}),a):n.warn(`Unable to find uri in '${e.toString()}'`,{node:e})}function jt(n,e,t,r){return{type:"layer",node:e,conditions:[...t],from:r}}});var kr=m((Po,Ar)=>{"use strict";d();var Ut=D("path"),ye;Ar.exports=function(e,t,r,o,s){let{plugins:a}=o,l=Ut.extname(r),c=[];if(l===".sss"){if(!ye)try{ye=D("sugarss")}catch{}if(ye)return Fe(s,t,r,a,[ye])}return e.opts.syntax?.parse&&c.push(e.opts.syntax.parse),e.opts.parser&&c.push(e.opts.parser),c.push(null),Fe(s,t,r,a,c)};function Fe(n,e,t,r,o,s){return s||(s=0),n(r).process(e,{from:t,parser:o[s]}).catch(a=>{if(s++,s===o.length)throw a;return Fe(n,e,t,r,o,s)})}});var Pe=m((No,Ir)=>{"use strict";d();var Lt=D("os");Ir.exports=Lt.homedir||function(){var e=process.env.HOME,t=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||e||null:process.platform==="darwin"?e||(t?"/Users/"+t:null):process.platform==="linux"?e||(process.getuid()===0?"/root":t?"/home/"+t:null):e||null}});var Oe=m(($o,Er)=>{"use strict";d();Er.exports=function(){var n=Error.prepareStackTrace;Error.prepareStackTrace=function(t,r){return r};var e=new Error().stack;return Error.prepareStackTrace=n,e[2].getFileName()}});var xr=m((Mo,oe)=>{"use strict";d();var Rt=process.platform==="win32",zt=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,Ne={};function Bt(n){return zt.exec(n).slice(1)}Ne.parse=function(n){if(typeof n!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=Bt(n);if(!e||e.length!==5)throw new TypeError("Invalid path '"+n+"'");return{root:e[1],dir:e[0]===e[1]?e[0]:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};var Gt=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,De={};function Ht(n){return Gt.exec(n).slice(1)}De.parse=function(n){if(typeof n!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof n);var e=Ht(n);if(!e||e.length!==5)throw new TypeError("Invalid path '"+n+"'");return{root:e[1],dir:e[0].slice(0,-1),base:e[2],ext:e[4],name:e[3]}};Rt?oe.exports=Ne.parse:oe.exports=De.parse;oe.exports.posix=De.parse;oe.exports.win32=Ne.parse});var $e=m((Uo,Pr)=>{"use strict";d();var Fr=D("path"),Sr=Fr.parse||xr(),qr=function(e,t){var r="/";/^([A-Za-z]:)/.test(e)?r="":/^\\\\/.test(e)&&(r="\\\\");for(var o=[e],s=Sr(e);s.dir!==o[o.length-1];)o.push(s.dir),s=Sr(s.dir);return o.reduce(function(a,l){return a.concat(t.map(function(c){return Fr.resolve(r,l,c)}))},[])};Pr.exports=function(e,t,r){var o=t&&t.moduleDirectory?[].concat(t.moduleDirectory):["node_modules"];if(t&&typeof t.paths=="function")return t.paths(r,e,function(){return qr(e,o)},t);var s=qr(e,o);return t&&t.paths?s.concat(t.paths):s}});var Te=m((Ro,Or)=>{"use strict";d();Or.exports=function(n,e){return e||{}}});var $r=m((Bo,Dr)=>{"use strict";d();var Zt="Function.prototype.bind called on incompatible ",Kt=Object.prototype.toString,Jt=Math.max,Qt="[object Function]",Nr=function(e,t){for(var r=[],o=0;o<e.length;o+=1)r[o]=e[o];for(var s=0;s<t.length;s+=1)r[s+e.length]=t[s];return r},Wt=function(e,t){for(var r=[],o=t||0,s=0;o<e.length;o+=1,s+=1)r[s]=e[o];return r},Xt=function(n,e){for(var t="",r=0;r<n.length;r+=1)t+=n[r],r+1<n.length&&(t+=e);return t};Dr.exports=function(e){var t=this;if(typeof t!="function"||Kt.apply(t)!==Qt)throw new TypeError(Zt+t);for(var r=Wt(arguments,1),o,s=function(){if(this instanceof o){var h=t.apply(this,Nr(r,arguments));return Object(h)===h?h:this}return t.apply(e,Nr(r,arguments))},a=Jt(0,t.length-r.length),l=[],c=0;c<a;c++)l[c]="$"+c;if(o=Function("binder","return function ("+Xt(l,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var p=function(){};p.prototype=t.prototype,o.prototype=new p,p.prototype=null}return o}});var Mr=m((Ho,Tr)=>{"use strict";d();var Vt=$r();Tr.exports=Function.prototype.bind||Vt});var Ur=m((Ko,jr)=>{"use strict";d();var Yt=Function.prototype.call,en=Object.prototype.hasOwnProperty,rn=Mr();jr.exports=rn.call(Yt,en)});var Lr=m((Qo,tn)=>{tn.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var se=m((Wo,Br)=>{"use strict";d();var nn=Ur();function on(n,e){for(var t=n.split("."),r=e.split(" "),o=r.length>1?r[0]:"=",s=(r.length>1?r[1]:r[0]).split("."),a=0;a<3;++a){var l=parseInt(t[a]||0,10),c=parseInt(s[a]||0,10);if(l!==c)return o==="<"?l<c:o===">="?l>=c:!1}return o===">="}function Rr(n,e){var t=e.split(/ ?&& ?/);if(t.length===0)return!1;for(var r=0;r<t.length;++r)if(!on(n,t[r]))return!1;return!0}function sn(n,e){if(typeof e=="boolean")return e;var t=typeof n>"u"?process.versions&&process.versions.node:n;if(typeof t!="string")throw new TypeError(typeof n>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(e&&typeof e=="object"){for(var r=0;r<e.length;++r)if(Rr(t,e[r]))return!0;return!1}return Rr(t,e)}var zr=Lr();Br.exports=function(e,t){return nn(zr,e)&&sn(t,zr[e])}});var Zr=m((Vo,Hr)=>{"use strict";d();var Q=D("fs"),an=Pe(),F=D("path"),un=Oe(),cn=$e(),ln=Te(),dn=se(),pn=process.platform!=="win32"&&Q.realpath&&typeof Q.realpath.native=="function"?Q.realpath.native:Q.realpath,Gr=an(),fn=function(){return[F.join(Gr,".node_modules"),F.join(Gr,".node_libraries")]},hn=function(e,t){Q.stat(e,function(r,o){return r?r.code==="ENOENT"||r.code==="ENOTDIR"?t(null,!1):t(r):t(null,o.isFile()||o.isFIFO())})},vn=function(e,t){Q.stat(e,function(r,o){return r?r.code==="ENOENT"||r.code==="ENOTDIR"?t(null,!1):t(r):t(null,o.isDirectory())})},mn=function(e,t){pn(e,function(r,o){r&&r.code!=="ENOENT"?t(r):t(null,r?e:o)})},ae=function(e,t,r,o){r&&r.preserveSymlinks===!1?e(t,o):o(null,t)},yn=function(e,t,r){e(t,function(o,s){if(o)r(o);else try{var a=JSON.parse(s);r(null,a)}catch{r(null)}})},gn=function(e,t,r){for(var o=cn(t,r,e),s=0;s<o.length;s++)o[s]=F.join(o[s],e);return o};Hr.exports=function(e,t,r){var o=r,s=t;if(typeof t=="function"&&(o=s,s={}),typeof e!="string"){var a=new TypeError("Path must be a string.");return process.nextTick(function(){o(a)})}s=ln(e,s);var l=s.isFile||hn,c=s.isDirectory||vn,p=s.readFile||Q.readFile,h=s.realpath||mn,i=s.readPackage||yn;if(s.readFile&&s.readPackage){var u=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){o(u)})}var w=s.packageIterator,S=s.extensions||[".js"],T=s.includeCoreModules!==!1,A=s.basedir||F.dirname(un()),j=s.filename||A;s.paths=s.paths||fn();var U=F.resolve(A);ae(h,U,s,function(f,v){f?o(f):ue(v)});var P;function ue(f){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e))P=F.resolve(f,e),(e==="."||e===".."||e.slice(-1)==="/")&&(P+="/"),/\/$/.test(e)&&P===f?q(P,s.package,X):z(P,s.package,X);else{if(T&&dn(e))return o(null,e);L(e,f,function(v,E,y){if(v)o(v);else{if(E)return ae(h,E,s,function(M,x){M?o(M):o(null,x,y)});var k=new Error("Cannot find module '"+e+"' from '"+j+"'");k.code="MODULE_NOT_FOUND",o(k)}})}}function X(f,v,E){f?o(f):v?o(null,v,E):q(P,function(y,k,M){if(y)o(y);else if(k)ae(h,k,s,function(I,$){I?o(I):o(null,$,M)});else{var x=new Error("Cannot find module '"+e+"' from '"+j+"'");x.code="MODULE_NOT_FOUND",o(x)}})}function z(f,v,E){var y=v,k=E;typeof y=="function"&&(k=y,y=void 0);var M=[""].concat(S);x(M,f,y);function x(I,$,B){if(I.length===0)return k(null,void 0,B);var J=$+I[0],R=B;R?O(null,R):b(F.dirname(J),O);function O(Z,V,G){if(R=V,Z)return k(Z);if(G&&R&&s.pathFilter){var le=F.relative(G,J),de=le.slice(0,le.length-I[0].length),ee=s.pathFilter(R,$,de);if(ee)return x([""].concat(S.slice()),F.resolve(G,ee),R)}l(J,ce)}function ce(Z,V){if(Z)return k(Z);if(V)return k(null,J,R);x(I.slice(1),$,R)}}}function b(f,v){if(f===""||f==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(f)||/[/\\]node_modules[/\\]*$/.test(f))return v(null);ae(h,f,s,function(E,y){if(E)return b(F.dirname(f),v);var k=F.join(y,"package.json");l(k,function(M,x){if(!x)return b(F.dirname(f),v);i(p,k,function(I,$){I&&v(I);var B=$;B&&s.packageFilter&&(B=s.packageFilter(B,k)),v(null,B,f)})})})}function q(f,v,E){var y=E,k=v;typeof k=="function"&&(y=k,k=s.package),ae(h,f,s,function(M,x){if(M)return y(M);var I=F.join(x,"package.json");l(I,function($,B){if($)return y($);if(!B)return z(F.join(f,"index"),k,y);i(p,I,function(J,R){if(J)return y(J);var O=R;if(O&&s.packageFilter&&(O=s.packageFilter(O,I)),O&&O.main){if(typeof O.main!="string"){var ce=new TypeError("package \u201C"+O.name+"\u201D `main` must be a string");return ce.code="INVALID_PACKAGE_MAIN",y(ce)}(O.main==="."||O.main==="./")&&(O.main="index"),z(F.resolve(f,O.main),O,function(Z,V,G){if(Z)return y(Z);if(V)return y(null,V,G);if(!G)return z(F.join(f,"index"),G,y);var le=F.resolve(f,G.main);q(le,G,function(de,ee,je){if(de)return y(de);if(ee)return y(null,ee,je);z(F.join(f,"index"),je,y)})});return}z(F.join(f,"/index"),O,y)})})})}function C(f,v){if(v.length===0)return f(null,void 0);var E=v[0];c(F.dirname(E),y);function y(x,I){if(x)return f(x);if(!I)return C(f,v.slice(1));z(E,s.package,k)}function k(x,I,$){if(x)return f(x);if(I)return f(null,I,$);q(E,s.package,M)}function M(x,I,$){if(x)return f(x);if(I)return f(null,I,$);C(f,v.slice(1))}}function L(f,v,E){var y=function(){return gn(f,v,s)};C(E,w?w(f,v,y,s):y())}}});var Kr=m((es,_n)=>{_n.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":">= 23.4",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Xr=m((rs,Wr)=>{"use strict";d();var wn=se(),Jr=Kr(),Qr={};for(ge in Jr)Object.prototype.hasOwnProperty.call(Jr,ge)&&(Qr[ge]=wn(ge));var ge;Wr.exports=Qr});var Yr=m((ns,Vr)=>{"use strict";d();var bn=se();Vr.exports=function(e){return bn(e)}});var tt=m((ss,rt)=>{"use strict";d();var Cn=se(),W=D("fs"),N=D("path"),An=Pe(),kn=Oe(),In=$e(),En=Te(),xn=process.platform!=="win32"&&W.realpathSync&&typeof W.realpathSync.native=="function"?W.realpathSync.native:W.realpathSync,et=An(),Sn=function(){return[N.join(et,".node_modules"),N.join(et,".node_libraries")]},qn=function(e){try{var t=W.statSync(e,{throwIfNoEntry:!1})}catch(r){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return!1;throw r}return!!t&&(t.isFile()||t.isFIFO())},Fn=function(e){try{var t=W.statSync(e,{throwIfNoEntry:!1})}catch(r){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return!1;throw r}return!!t&&t.isDirectory()},Pn=function(e){try{return xn(e)}catch(t){if(t.code!=="ENOENT")throw t}return e},ie=function(e,t,r){return r&&r.preserveSymlinks===!1?e(t):t},On=function(e,t){var r=e(t);try{var o=JSON.parse(r);return o}catch{}},Nn=function(e,t,r){for(var o=In(t,r,e),s=0;s<o.length;s++)o[s]=N.join(o[s],e);return o};rt.exports=function(e,t){if(typeof e!="string")throw new TypeError("Path must be a string.");var r=En(e,t),o=r.isFile||qn,s=r.readFileSync||W.readFileSync,a=r.isDirectory||Fn,l=r.realpathSync||Pn,c=r.readPackageSync||On;if(r.readFileSync&&r.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var p=r.packageIterator,h=r.extensions||[".js"],i=r.includeCoreModules!==!1,u=r.basedir||N.dirname(kn()),w=r.filename||u;r.paths=r.paths||Sn();var S=ie(l,N.resolve(u),r);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(e)){var T=N.resolve(S,e);(e==="."||e===".."||e.slice(-1)==="/")&&(T+="/");var A=P(T)||X(T);if(A)return ie(l,A,r)}else{if(i&&Cn(e))return e;var j=z(e,S);if(j)return ie(l,j,r)}var U=new Error("Cannot find module '"+e+"' from '"+w+"'");throw U.code="MODULE_NOT_FOUND",U;function P(b){var q=ue(N.dirname(b));if(q&&q.dir&&q.pkg&&r.pathFilter){var C=N.relative(q.dir,b),L=r.pathFilter(q.pkg,b,C);L&&(b=N.resolve(q.dir,L))}if(o(b))return b;for(var f=0;f<h.length;f++){var v=b+h[f];if(o(v))return v}}function ue(b){if(!(b===""||b==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(b))&&!/[/\\]node_modules[/\\]*$/.test(b)){var q=N.join(ie(l,b,r),"package.json");if(!o(q))return ue(N.dirname(b));var C=c(s,q);return C&&r.packageFilter&&(C=r.packageFilter(C,b)),{pkg:C,dir:b}}}function X(b){var q=N.join(ie(l,b,r),"/package.json");if(o(q)){try{var C=c(s,q)}catch{}if(C&&r.packageFilter&&(C=r.packageFilter(C,b)),C&&C.main){if(typeof C.main!="string"){var L=new TypeError("package \u201C"+C.name+"\u201D `main` must be a string");throw L.code="INVALID_PACKAGE_MAIN",L}(C.main==="."||C.main==="./")&&(C.main="index");try{var f=P(N.resolve(b,C.main));if(f)return f;var v=X(N.resolve(b,C.main));if(v)return v}catch{}}}return P(N.join(b,"/index"))}function z(b,q){for(var C=function(){return Nn(b,q,r)},L=p?p(b,q,C,r):C(),f=0;f<L.length;f++){var v=L[f];if(a(N.dirname(v))){var E=P(v);if(E)return E;var y=X(v);if(y)return y}}}}});var ot=m((is,nt)=>{"use strict";d();var _e=Zr();_e.core=Xr();_e.isCore=Yr();_e.sync=tt();nt.exports=_e});var Me=m((cs,at)=>{"use strict";d();var Dn=ot(),$n=["web_modules","node_modules"];function st(n,e){return new Promise((t,r)=>{Dn(n,e,(o,s)=>o?r(o):t(s))})}at.exports=function(e,t,r,o){let s=r.path,a={basedir:t,moduleDirectory:$n.concat(r.addModulesDirectories),paths:s,extensions:[".css"],packageFilter:function(c){return c.style?c.main=c.style:(!c.main||!/\.css$/.test(c.main))&&(c.main="index.css"),c},preserveSymlinks:!1};return st(`./${e}`,a).catch(()=>st(e,a)).catch(()=>{throw s.indexOf(t)===-1&&s.unshift(t),o.error(`Failed to find '${e}'
|
|
4
4
|
in [
|
|
5
5
|
${s.join(`,
|
|
6
6
|
`)}
|
|
7
|
-
]`)})}});var
|
|
7
|
+
]`)})}});var pt=m((ds,dt)=>{"use strict";d();var it=D("path"),ut=Ce(),Tn=Cr(),Mn=kr(),jn=Me(),Un=we();async function lt(n,e,t,r,o,s,a){let l=Tn(n,e,o,s);for(let u of l)u.type!=="import"||!Rn(u.uri)||t.filter&&!t.filter(u.uri)||await Ln(n,u,t,r,a);let c,p=[],h=[];function i(u){if(!c)c=u;else if(u.node.params.toLowerCase()!==c.node.params.toLowerCase())throw u.node.error(`Incompatible @charset statements:
|
|
8
8
|
${u.node.params} specified in ${u.node.source.input.file}
|
|
9
|
-
${
|
|
9
|
+
${c.node.params} specified in ${c.node.source.input.file}`)}return l.forEach(u=>{u.type==="charset"?i(u):u.type==="import"?u.children?u.children.forEach((w,S)=>{w.type==="import"||w.type==="layer"?p.push(w):w.type==="charset"?i(w):h.push(w),S===0&&(w.parent=u)}):p.push(u):u.type==="layer"?p.push(u):u.type==="nodes"&&h.push(u)}),c?[c,...p.concat(h)]:p.concat(h)}async function Ln(n,e,t,r,o){if(ut.isValid(e.uri)){e.children=await ct(n,e,e.uri,t,r,o);return}else if(ut.isValid(e.from.slice(-1)))throw e.node.error(`Unable to import '${e.uri}' from a stylesheet that is embedded in a data url`);let s=e.node,a;s.source?.input?.file&&(a=s.source.input.file);let l=a?it.dirname(s.source.input.file):t.root,c=[await t.resolve(e.uri,l,t,s)].flat(),p=await Promise.all(c.map(i=>it.isAbsolute(i)?i:jn(i,l,t,s)));p.forEach(i=>{n.messages.push({type:"dependency",plugin:"postcss-import",file:i,parent:a})});let h=await Promise.all(p.map(i=>ct(n,e,i,t,r,o)));e.children=h.flat().filter(i=>!!i)}async function ct(n,e,t,r,o,s){let a=e.node,{conditions:l,from:c}=e,p=l.map(w=>Un(w.layer,w.media,w.supports)).join(":");if(r.skipDuplicates){if(o.importedFiles[t]?.[p])return;o.importedFiles[t]||(o.importedFiles[t]={}),o.importedFiles[t][p]=!0}if(c.includes(t))return;let h=await r.load(t,r);if(h.trim()===""&&r.warnOnEmpty){n.warn(`${t} is empty`,{node:a});return}if(r.skipDuplicates&&o.hashFiles[h]?.[p])return;let i=await Mn(n,h,t,r,s),u=i.root;return n.messages=n.messages.concat(i.messages),r.skipDuplicates&&(u.some(S=>S.type==="atrule"&&S.name==="import")||(o.hashFiles[h]||(o.hashFiles[h]={}),o.hashFiles[h][p]=!0)),lt(n,u,r,o,l,[...c,t],s)}function Rn(n){if(/^(?:[a-z]+:)?\/\//i.test(n))return!1;try{if(new URL(n,"https://example.com").search)return!1}catch{}return!0}dt.exports=lt});var mt=m((fs,vt)=>{"use strict";d();var ft=D("path"),zn=He(),Bn=Ke(),Gn=Qe(),Hn=sr(),Zn=pt(),Kn=Me();function ht(n){return n={root:process.cwd(),path:[],skipDuplicates:!0,resolve:Kn,load:Hn,plugins:[],addModulesDirectories:[],warnOnEmpty:!0,...n},n.root=ft.resolve(n.root),typeof n.path=="string"&&(n.path=[n.path]),Array.isArray(n.path)||(n.path=[]),n.path=n.path.map(e=>ft.resolve(n.root,e)),{postcssPlugin:"postcss-import",async Once(e,{result:t,atRule:r,postcss:o}){let s={importedFiles:{},hashFiles:{}};if(e.source?.input?.file&&(s.importedFiles[e.source.input.file]={}),n.plugins&&!Array.isArray(n.plugins))throw new Error("plugins option must be an array");let a=await Zn(t,e,n,s,[],[],o);Bn(a),zn(a,r),Gn(a,e)}}}ht.postcss=!0;vt.exports=ht});d();import yt from"path";var ms=()=>({name:"@empjs/plugin-tailwindcss",async rsConfig(n){let{chain:e}=n,t=D.resolve("tailwindcss/package.json"),r=yt.dirname(t),o=[mt()({resolve:s=>s==="tailwindcss"?yt.join(r,"index.css"):s}),["@tailwindcss/postcss",{}]];n.empConfig.build.polyfill.browserslist&&n.empConfig.build.polyfill.browserslist.length>0&&o.push(["postcss-preset-env",{browsers:n.empConfig.build.polyfill.browserslist,stage:1}]),e.module.rule(n.chainName.rule.css).set("type","css").use("postcss").loader(D.resolve("postcss-loader")).options({postcssOptions:{plugins:o}}),e.resolve.alias.set("tailwindcss",r)}});export{ms as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empjs/plugin-tailwindcss",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "base tailwind 4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,13 +45,14 @@
|
|
|
45
45
|
"@types/node": "^22.13.11",
|
|
46
46
|
"postcss-import": "^16.1.0",
|
|
47
47
|
"tsup": "^8.1.0",
|
|
48
|
-
"@empjs/cli": "3.
|
|
48
|
+
"@empjs/cli": "3.8.3"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@tailwindcss/postcss": "^4.1.
|
|
52
|
-
"postcss": "^8.5.
|
|
51
|
+
"@tailwindcss/postcss": "^4.1.11",
|
|
52
|
+
"postcss": "^8.5.6",
|
|
53
53
|
"postcss-loader": "^8.1.1",
|
|
54
|
-
"
|
|
54
|
+
"postcss-preset-env": "^10.2.4",
|
|
55
|
+
"tailwindcss": "^4.1.11"
|
|
55
56
|
},
|
|
56
57
|
"scripts": {
|
|
57
58
|
"build": "tsup",
|