@master/css-language-server 2.0.0-beta.106 → 2.0.0-beta.107
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/server.js +32 -32
- package/dist/server.mjs +32 -32
- package/package.json +1 -1
package/dist/server.mjs
CHANGED
|
@@ -7,14 +7,14 @@ globstar while`,e,f,r,d,p),this.matchOne(e.slice(f),r.slice(d),n))return this.de
|
|
|
7
7
|
This indicates that your JavaScript environment is broken. You cannot use
|
|
8
8
|
esbuild in this environment because esbuild relies on this invariant. This
|
|
9
9
|
is not a problem with esbuild. You need to fix your environment instead.
|
|
10
|
-
`);function uB(t,e){return t[e++]|t[e++]<<8|t[e++]<<16|t[e++]<<24}function e2(t,e,r){t[r++]=e,t[r++]=e>>8,t[r++]=e>>16,t[r++]=e>>24}var Mr=JSON.stringify,Q$="warning",J$="silent";function X$(t){if(xr(t,"target"),t.indexOf(",")>=0)throw new Error(`Invalid target: ${t}`);return t}var Kg=()=>null,xt=t=>typeof t=="boolean"?null:"a boolean",H1e=t=>typeof t=="boolean"||typeof t=="object"&&!Array.isArray(t)?null:"a boolean or an object",qe=t=>typeof t=="string"?null:"a string",Yg=t=>t instanceof RegExp?null:"a RegExp object",gu=t=>typeof t=="number"&&t===(t|0)?null:"an integer",n2=t=>typeof t=="function"?null:"a function",nr=t=>Array.isArray(t)?null:"an array",ti=t=>typeof t=="object"&&t!==null&&!Array.isArray(t)?null:"an object",V1e=t=>t instanceof WebAssembly.Module?null:"a WebAssembly.Module",G1e=t=>typeof t=="object"&&t!==null?null:"an array or an object",Z$=t=>typeof t=="object"&&!Array.isArray(t)?null:"an object or null",lB=t=>typeof t=="string"||typeof t=="boolean"?null:"a string or a boolean",K1e=t=>typeof t=="string"||typeof t=="object"&&t!==null&&!Array.isArray(t)?null:"a string or an object",Y1e=t=>typeof t=="string"||Array.isArray(t)?null:"a string or an array",cB=t=>typeof t=="string"||t instanceof Uint8Array?null:"a string or a Uint8Array",Q1e=t=>typeof t=="string"||t instanceof URL?null:"a string or a URL";function Y(t,e,r,n){let i=t[r];if(e[r+""]=!0,i===void 0)return;let s=n(i);if(s!==null)throw new Error(`${Mr(r)} must be ${s}`);return i}function ar(t,e,r){for(let n in t)if(!(n in e))throw new Error(`Invalid option ${r}: ${Mr(n)}`)}function J1e(t){let e=Object.create(null),r=Y(t,e,"wasmURL",Q1e),n=Y(t,e,"wasmModule",V1e),i=Y(t,e,"worker",xt);return ar(t,e,"in initialize() call"),{wasmURL:r,wasmModule:n,worker:i}}function fB(t){let e;if(t!==void 0){e=Object.create(null);for(let r in t){let n=t[r];if(typeof n=="string"||n===!1)e[r]=n;else throw new Error(`Expected ${Mr(r)} in mangle cache to map to either a string or false`)}}return e}function Xg(t,e,r,n,i){let s=Y(e,r,"color",xt),o=Y(e,r,"logLevel",qe),a=Y(e,r,"logLimit",gu);s!==void 0?t.push(`--color=${s}`):n&&t.push("--color=true"),t.push(`--log-level=${o||i}`),t.push(`--log-limit=${a||0}`)}function xr(t,e,r){if(typeof t!="string")throw new Error(`Expected value for ${e}${r!==void 0?" "+Mr(r):""} to be a string, got ${typeof t} instead`);return t}function dB(t,e,r){let n=Y(e,r,"legalComments",qe),i=Y(e,r,"sourceRoot",qe),s=Y(e,r,"sourcesContent",xt),o=Y(e,r,"target",Y1e),a=Y(e,r,"format",qe),u=Y(e,r,"globalName",qe),l=Y(e,r,"mangleProps",Yg),c=Y(e,r,"reserveProps",Yg),f=Y(e,r,"mangleQuoted",xt),d=Y(e,r,"minify",xt),p=Y(e,r,"minifySyntax",xt),h=Y(e,r,"minifyWhitespace",xt),y=Y(e,r,"minifyIdentifiers",xt),v=Y(e,r,"drop",nr),g=Y(e,r,"charset",qe),b=Y(e,r,"treeShaking",xt),w=Y(e,r,"ignoreAnnotations",xt),_=Y(e,r,"jsx",qe),S=Y(e,r,"jsxFactory",qe),q=Y(e,r,"jsxFragment",qe),C=Y(e,r,"jsxImportSource",qe),R=Y(e,r,"jsxDev",xt),O=Y(e,r,"jsxSideEffects",xt),z=Y(e,r,"define",ti),F=Y(e,r,"logOverride",ti),te=Y(e,r,"supported",ti),K=Y(e,r,"pure",nr),ue=Y(e,r,"keepNames",xt),L=Y(e,r,"platform",qe);if(n&&t.push(`--legal-comments=${n}`),i!==void 0&&t.push(`--source-root=${i}`),s!==void 0&&t.push(`--sources-content=${s}`),o&&(Array.isArray(o)?t.push(`--target=${Array.from(o).map(X$).join(",")}`):t.push(`--target=${X$(o)}`)),a&&t.push(`--format=${a}`),u&&t.push(`--global-name=${u}`),L&&t.push(`--platform=${L}`),d&&t.push("--minify"),p&&t.push("--minify-syntax"),h&&t.push("--minify-whitespace"),y&&t.push("--minify-identifiers"),g&&t.push(`--charset=${g}`),b!==void 0&&t.push(`--tree-shaking=${b}`),w&&t.push("--ignore-annotations"),v)for(let M of v)t.push(`--drop:${xr(M,"drop")}`);if(l&&t.push(`--mangle-props=${l.source}`),c&&t.push(`--reserve-props=${c.source}`),f!==void 0&&t.push(`--mangle-quoted=${f}`),_&&t.push(`--jsx=${_}`),S&&t.push(`--jsx-factory=${S}`),q&&t.push(`--jsx-fragment=${q}`),C&&t.push(`--jsx-import-source=${C}`),R&&t.push("--jsx-dev"),O&&t.push("--jsx-side-effects"),z)for(let M in z){if(M.indexOf("=")>=0)throw new Error(`Invalid define: ${M}`);t.push(`--define:${M}=${xr(z[M],"define",M)}`)}if(F)for(let M in F){if(M.indexOf("=")>=0)throw new Error(`Invalid log override: ${M}`);t.push(`--log-override:${M}=${xr(F[M],"log override",M)}`)}if(te)for(let M in te){if(M.indexOf("=")>=0)throw new Error(`Invalid supported: ${M}`);let ae=te[M];if(typeof ae!="boolean")throw new Error(`Expected value for supported ${Mr(M)} to be a boolean, got ${typeof ae} instead`);t.push(`--supported:${M}=${ae}`)}if(K)for(let M of K)t.push(`--pure:${xr(M,"pure")}`);ue&&t.push("--keep-names")}function X1e(t,e,r,n,i){var s;let o=[],a=[],u=Object.create(null),l=null,c=null,f=null;Xg(o,e,u,r,n),dB(o,e,u);let d=Y(e,u,"sourcemap",lB),p=Y(e,u,"bundle",xt),h=Y(e,u,"watch",H1e),y=Y(e,u,"splitting",xt),v=Y(e,u,"preserveSymlinks",xt),g=Y(e,u,"metafile",xt),b=Y(e,u,"outfile",qe),w=Y(e,u,"outdir",qe),_=Y(e,u,"outbase",qe),S=Y(e,u,"tsconfig",qe),q=Y(e,u,"resolveExtensions",nr),C=Y(e,u,"nodePaths",nr),R=Y(e,u,"mainFields",nr),O=Y(e,u,"conditions",nr),z=Y(e,u,"external",nr),F=Y(e,u,"packages",qe),te=Y(e,u,"alias",ti),K=Y(e,u,"loader",ti),ue=Y(e,u,"outExtension",ti),L=Y(e,u,"publicPath",qe),M=Y(e,u,"entryNames",qe),ae=Y(e,u,"chunkNames",qe),ne=Y(e,u,"assetNames",qe),de=Y(e,u,"inject",nr),le=Y(e,u,"banner",ti),se=Y(e,u,"footer",ti),he=Y(e,u,"entryPoints",G1e),we=Y(e,u,"absWorkingDir",qe),De=Y(e,u,"stdin",ti),Je=(s=Y(e,u,"write",xt))!=null?s:i,ve=Y(e,u,"allowOverwrite",xt),Ct=Y(e,u,"incremental",xt)===!0,dt=Y(e,u,"mangleCache",ti);if(u.plugins=!0,ar(e,u,`in ${t}() call`),d&&o.push(`--sourcemap${d===!0?"":`=${d}`}`),p&&o.push("--bundle"),ve&&o.push("--allow-overwrite"),h)if(o.push("--watch"),typeof h=="boolean")f={};else{let ce=Object.create(null),ie=Y(h,ce,"onRebuild",n2);ar(h,ce,`on "watch" in ${t}() call`),f={onRebuild:ie}}if(y&&o.push("--splitting"),v&&o.push("--preserve-symlinks"),g&&o.push("--metafile"),b&&o.push(`--outfile=${b}`),w&&o.push(`--outdir=${w}`),_&&o.push(`--outbase=${_}`),S&&o.push(`--tsconfig=${S}`),F&&o.push(`--packages=${F}`),q){let ce=[];for(let ie of q){if(xr(ie,"resolve extension"),ie.indexOf(",")>=0)throw new Error(`Invalid resolve extension: ${ie}`);ce.push(ie)}o.push(`--resolve-extensions=${ce.join(",")}`)}if(L&&o.push(`--public-path=${L}`),M&&o.push(`--entry-names=${M}`),ae&&o.push(`--chunk-names=${ae}`),ne&&o.push(`--asset-names=${ne}`),R){let ce=[];for(let ie of R){if(xr(ie,"main field"),ie.indexOf(",")>=0)throw new Error(`Invalid main field: ${ie}`);ce.push(ie)}o.push(`--main-fields=${ce.join(",")}`)}if(O){let ce=[];for(let ie of O){if(xr(ie,"condition"),ie.indexOf(",")>=0)throw new Error(`Invalid condition: ${ie}`);ce.push(ie)}o.push(`--conditions=${ce.join(",")}`)}if(z)for(let ce of z)o.push(`--external:${xr(ce,"external")}`);if(te)for(let ce in te){if(ce.indexOf("=")>=0)throw new Error(`Invalid package name in alias: ${ce}`);o.push(`--alias:${ce}=${xr(te[ce],"alias",ce)}`)}if(le)for(let ce in le){if(ce.indexOf("=")>=0)throw new Error(`Invalid banner file type: ${ce}`);o.push(`--banner:${ce}=${xr(le[ce],"banner",ce)}`)}if(se)for(let ce in se){if(ce.indexOf("=")>=0)throw new Error(`Invalid footer file type: ${ce}`);o.push(`--footer:${ce}=${xr(se[ce],"footer",ce)}`)}if(de)for(let ce of de)o.push(`--inject:${xr(ce,"inject")}`);if(K)for(let ce in K){if(ce.indexOf("=")>=0)throw new Error(`Invalid loader extension: ${ce}`);o.push(`--loader:${ce}=${xr(K[ce],"loader",ce)}`)}if(ue)for(let ce in ue){if(ce.indexOf("=")>=0)throw new Error(`Invalid out extension: ${ce}`);o.push(`--out-extension:${ce}=${xr(ue[ce],"out extension",ce)}`)}if(he)if(Array.isArray(he))for(let ce of he)a.push(["",xr(ce,"entry point")]);else for(let ce in he)a.push([ce,xr(he[ce],"entry point",ce)]);if(De){let ce=Object.create(null),ie=Y(De,ce,"contents",cB),Fe=Y(De,ce,"resolveDir",qe),at=Y(De,ce,"sourcefile",qe),zt=Y(De,ce,"loader",qe);ar(De,ce,'in "stdin" object'),at&&o.push(`--sourcefile=${at}`),zt&&o.push(`--loader=${zt}`),Fe&&(c=Fe),typeof ie=="string"?l=ri(ie):ie instanceof Uint8Array&&(l=ie)}let pe=[];if(C)for(let ce of C)ce+="",pe.push(ce);return{entries:a,flags:o,write:Je,stdinContents:l,stdinResolveDir:c,absWorkingDir:we,incremental:Ct,nodePaths:pe,watch:f,mangleCache:fB(dt)}}function Z1e(t,e,r,n){let i=[],s=Object.create(null);Xg(i,e,s,r,n),dB(i,e,s);let o=Y(e,s,"sourcemap",lB),a=Y(e,s,"tsconfigRaw",K1e),u=Y(e,s,"sourcefile",qe),l=Y(e,s,"loader",qe),c=Y(e,s,"banner",qe),f=Y(e,s,"footer",qe),d=Y(e,s,"mangleCache",ti);return ar(e,s,`in ${t}() call`),o&&i.push(`--sourcemap=${o===!0?"external":o}`),a&&i.push(`--tsconfig-raw=${typeof a=="string"?a:JSON.stringify(a)}`),u&&i.push(`--sourcefile=${u}`),l&&i.push(`--loader=${l}`),c&&i.push(`--banner=${c}`),f&&i.push(`--footer=${f}`),{flags:i,mangleCache:fB(d)}}function pB(t){let e={},r={didClose:!1,reason:""},n={},i=0,s=0,o=new Uint8Array(16*1024),a=0,u=w=>{let _=a+w.length;if(_>o.length){let q=new Uint8Array(_*2);q.set(o),o=q}o.set(w,a),a+=w.length;let S=0;for(;S+4<=a;){let q=uB(o,S);if(S+4+q>a)break;S+=4,h(o.subarray(S,S+q)),S+=q}S>0&&(o.copyWithin(0,S,a),a-=S)},l=w=>{r.didClose=!0,w&&(r.reason=": "+(w.message||w));let _="The service was stopped"+r.reason;for(let S in n)n[S](_,null);n={}},c=(w,_,S)=>{if(r.didClose)return S("The service is no longer running"+r.reason,null);let q=i++;n[q]=(C,R)=>{try{S(C,R)}finally{w&&w.unref()}},w&&w.ref(),t.writeToStdin(Y$({id:q,isRequest:!0,value:_}))},f=(w,_)=>{if(r.didClose)throw new Error("The service is no longer running"+r.reason);t.writeToStdin(Y$({id:w,isRequest:!1,value:_}))},d=async(w,_)=>{try{if(_.command==="ping"){f(w,{});return}if(typeof _.key=="number"){let S=e[_.key];if(S){let q=S[_.command];if(q){await q(w,_);return}}}throw new Error("Invalid command: "+_.command)}catch(S){f(w,{errors:[mu(S,t,null,void 0,"")]})}},p=!0,h=w=>{if(p){p=!1;let S=String.fromCharCode(...w);if(S!=="0.16.17")throw new Error(`Cannot start service: Host version "0.16.17" does not match binary version ${Mr(S)}`);return}let _=U1e(w);if(_.isRequest)d(_.id,_.value);else{let S=n[_.id];delete n[_.id],_.value.error?S(_.value.error,{}):S(null,_.value)}};return{readFromStdout:u,afterClose:l,service:{buildOrServe:({callName:w,refs:_,serveOptions:S,options:q,isTTY:C,defaultWD:R,callback:O})=>{let z=0,F=s++,te={},K={ref(){++z===1&&_&&_.ref()},unref(){--z===0&&(delete e[F],_&&_.unref())}};e[F]=te,K.ref(),eSe(w,F,c,f,K,t,te,q,S,C,R,r,(ue,L)=>{try{O(ue,L)}finally{K.unref()}})},transform:({callName:w,refs:_,input:S,options:q,isTTY:C,fs:R,callback:O})=>{let z=hB(),F=te=>{try{if(typeof S!="string"&&!(S instanceof Uint8Array))throw new Error('The input to "transform" must be a string or a Uint8Array');let{flags:K,mangleCache:ue}=Z1e(w,q,C,J$),L={command:"transform",flags:K,inputFS:te!==null,input:te!==null?ri(te):typeof S=="string"?ri(S):S};ue&&(L.mangleCache=ue),c(_,L,(M,ae)=>{if(M)return O(new Error(M),null);let ne=Is(ae.errors,z),de=Is(ae.warnings,z),le=1,se=()=>{if(--le===0){let he={warnings:de,code:ae.code,map:ae.map};"legalComments"in ae&&(he.legalComments=ae?.legalComments),ae.mangleCache&&(he.mangleCache=ae?.mangleCache),O(null,he)}};if(ne.length>0)return O(pu("Transform failed",ne,de),null);ae.codeFS&&(le++,R.readFile(ae.code,(he,we)=>{he!==null?O(he,null):(ae.code=we,se())})),ae.mapFS&&(le++,R.readFile(ae.map,(he,we)=>{he!==null?O(he,null):(ae.map=we,se())})),se()})}catch(K){let ue=[];try{Xg(ue,q,{},C,J$)}catch{}let L=mu(K,t,z,void 0,"");c(_,{command:"error",flags:ue,error:L},()=>{L.detail=z.load(L.detail),O(pu("Transform failed",[L],[]),null)})}};if((typeof S=="string"||S instanceof Uint8Array)&&S.length>1024*1024){let te=F;F=()=>R.writeFile(S,te)}F(null)},formatMessages:({callName:w,refs:_,messages:S,options:q,callback:C})=>{let R=Mo(S,"messages",null,"");if(!q)throw new Error(`Missing second argument in ${w}() call`);let O={},z=Y(q,O,"kind",qe),F=Y(q,O,"color",xt),te=Y(q,O,"terminalWidth",gu);if(ar(q,O,`in ${w}() call`),z===void 0)throw new Error(`Missing "kind" in ${w}() call`);if(z!=="error"&&z!=="warning")throw new Error(`Expected "kind" to be "error" or "warning" in ${w}() call`);let K={command:"format-msgs",messages:R,isWarning:z==="warning"};F!==void 0&&(K.color=F),te!==void 0&&(K.terminalWidth=te),c(_,K,(ue,L)=>{if(ue)return C(new Error(ue),null);C(null,L.messages)})},analyzeMetafile:({callName:w,refs:_,metafile:S,options:q,callback:C})=>{q===void 0&&(q={});let R={},O=Y(q,R,"color",xt),z=Y(q,R,"verbose",xt);ar(q,R,`in ${w}() call`);let F={command:"analyze-metafile",metafile:S};O!==void 0&&(F.color=O),z!==void 0&&(F.verbose=z),c(_,F,(te,K)=>{if(te)return C(new Error(te),null);C(null,K.result)})}}}}function eSe(t,e,r,n,i,s,o,a,u,l,c,f,d){let p=hB(),h=(b,w,_,S)=>{let q=[];try{Xg(q,a,{},l,Q$)}catch{}let C=mu(b,s,p,_,w);r(i,{command:"error",flags:q,error:C},()=>{C.detail=p.load(C.detail),S(C)})},y=(b,w)=>{h(b,w,void 0,_=>{d(pu("Build failed",[_],[]),null)})},v;if(typeof a=="object"){let b=a.plugins;if(b!==void 0){if(!Array.isArray(b))throw new Error('"plugins" must be an array');v=b}}if(v&&v.length>0){if(s.isSync){y(new Error("Cannot use plugins in synchronous API calls"),"");return}rSe(e,r,n,i,s,o,a,v,p).then(b=>{if(!b.ok){y(b.error,b.pluginName);return}try{g(b.requestPlugins,b.runOnEndCallbacks)}catch(w){y(w,"")}},b=>y(b,""));return}try{g(null,(b,w,_)=>_())}catch(b){y(b,"")}function g(b,w){let _=!s.isWriteUnavailable,{entries:S,flags:q,write:C,stdinContents:R,stdinResolveDir:O,absWorkingDir:z,incremental:F,nodePaths:te,watch:K,mangleCache:ue}=X1e(t,a,l,Q$,_),L={command:"build",key:e,entries:S,flags:q,write:C,stdinContents:R,stdinResolveDir:O,absWorkingDir:z||c,incremental:F,nodePaths:te};b&&(L.plugins=b),ue&&(L.mangleCache=ue);let M=u&&tSe(e,r,n,i,o,u,L),ae,ne,de=(se,he)=>{se.outputFiles&&(he.outputFiles=se.outputFiles.map(nSe)),se.metafile&&(he.metafile=JSON.parse(se.metafile)),se.mangleCache&&(he.mangleCache=se.mangleCache),se.writeToStdout!==void 0&&console.log(yu(se.writeToStdout).replace(/\n$/,""))},le=(se,he)=>{let we={errors:Is(se.errors,p),warnings:Is(se.warnings,p)};de(se,we),w(we,h,()=>{if(we.errors.length>0)return he(pu("Build failed",we.errors,we.warnings),null);if(se.rebuild){if(!ae){let De=!1;ae=()=>new Promise((Je,ve)=>{if(De||f.didClose)throw new Error("Cannot rebuild");r(i,{command:"rebuild",key:e},(Ct,dt)=>{if(Ct)return he(pu("Build failed",[{id:"",pluginName:"",text:Ct,location:null,notes:[],detail:void 0}],[]),null);le(dt,(pe,ce)=>{pe?ve(pe):Je(ce)})})}),i.ref(),ae.dispose=()=>{De||(De=!0,r(i,{command:"rebuild-dispose",key:e},()=>{}),i.unref())}}we.rebuild=ae}if(se.watch){if(!ne){let De=!1;i.ref(),ne=()=>{De||(De=!0,delete o["watch-rebuild"],r(i,{command:"watch-stop",key:e},()=>{}),i.unref())},K&&(o["watch-rebuild"]=(Je,ve)=>{try{let Ct=ve.args,dt={errors:Is(Ct.errors,p),warnings:Is(Ct.warnings,p)};de(Ct,dt),w(dt,h,()=>{if(dt.errors.length>0){K.onRebuild&&K.onRebuild(pu("Build failed",dt.errors,dt.warnings),null);return}dt.stop=ne,K.onRebuild&&K.onRebuild(null,dt)})}catch(Ct){console.error(Ct)}n(Je,{})})}we.stop=ne}he(null,we)})};if(C&&s.isWriteUnavailable)throw new Error('The "write" option is unavailable in this environment');if(F&&s.isSync)throw new Error('Cannot use "incremental" with a synchronous build');if(K&&s.isSync)throw new Error('Cannot use "watch" with a synchronous build');r(i,L,(se,he)=>{if(se)return d(new Error(se),null);if(M){let we=he,De=!1;i.ref();let Je={port:we.port,host:we.host,wait:M.wait,stop(){De||(De=!0,M.stop(),i.unref())}};return i.ref(),M.wait.then(i.unref,i.unref),d(null,Je)}return le(he,d)})}}var tSe=(t,e,r,n,i,s,o)=>{let a={},u=Y(s,a,"port",gu),l=Y(s,a,"host",qe),c=Y(s,a,"servedir",qe),f=Y(s,a,"onRequest",n2),d=new Promise((p,h)=>{i["serve-wait"]=(y,v)=>{v.error!==null?h(new Error(v.error)):p(),r(y,{})}});return o.serve={},ar(s,a,"in serve() call"),u!==void 0&&(o.serve.port=u),l!==void 0&&(o.serve.host=l),c!==void 0&&(o.serve.servedir=c),i["serve-request"]=(p,h)=>{f&&f(h.args),r(p,{})},{wait:d,stop(){e(n,{command:"serve-stop",key:t},()=>{})}}},rSe=async(t,e,r,n,i,s,o,a,u)=>{let l=[],c=[],f={},d={},p=0,h=0,y=[],v=!1;a=[...a];for(let b of a){let w={};if(typeof b!="object")throw new Error(`Plugin at index ${h} must be an object`);let _=Y(b,w,"name",qe);if(typeof _!="string"||_==="")throw new Error(`Plugin at index ${h} is missing a name`);try{let S=Y(b,w,"setup",n2);if(typeof S!="function")throw new Error("Plugin is missing a setup function");ar(b,w,`on plugin ${Mr(_)}`);let q={name:_,onStart:!1,onEnd:!1,onResolve:[],onLoad:[]};h++;let R=S({initialOptions:o,resolve:(O,z={})=>{if(!v)throw new Error('Cannot call "resolve" before plugin setup has completed');if(typeof O!="string")throw new Error("The path to resolve must be a string");let F=Object.create(null),te=Y(z,F,"pluginName",qe),K=Y(z,F,"importer",qe),ue=Y(z,F,"namespace",qe),L=Y(z,F,"resolveDir",qe),M=Y(z,F,"kind",qe),ae=Y(z,F,"pluginData",Kg);return ar(z,F,"in resolve() call"),new Promise((ne,de)=>{let le={command:"resolve",path:O,key:t,pluginName:_};if(te!=null&&(le.pluginName=te),K!=null&&(le.importer=K),ue!=null&&(le.namespace=ue),L!=null&&(le.resolveDir=L),M!=null)le.kind=M;else throw new Error('Must specify "kind" when calling "resolve"');ae!=null&&(le.pluginData=u.store(ae)),e(n,le,(se,he)=>{se!==null?de(new Error(se)):ne({errors:Is(he.errors,u),warnings:Is(he.warnings,u),path:he.path,external:he.external,sideEffects:he.sideEffects,namespace:he.namespace,suffix:he.suffix,pluginData:u.load(he.pluginData)})})})},onStart(O){let z='This error came from the "onStart" callback registered here:',F=Hg(new Error(z),i,"onStart");l.push({name:_,callback:O,note:F}),q.onStart=!0},onEnd(O){let z='This error came from the "onEnd" callback registered here:',F=Hg(new Error(z),i,"onEnd");c.push({name:_,callback:O,note:F}),q.onEnd=!0},onResolve(O,z){let F='This error came from the "onResolve" callback registered here:',te=Hg(new Error(F),i,"onResolve"),K={},ue=Y(O,K,"filter",Yg),L=Y(O,K,"namespace",qe);if(ar(O,K,`in onResolve() call for plugin ${Mr(_)}`),ue==null)throw new Error("onResolve() call is missing a filter");let M=p++;f[M]={name:_,callback:z,note:te},q.onResolve.push({id:M,filter:ue.source,namespace:L||""})},onLoad(O,z){let F='This error came from the "onLoad" callback registered here:',te=Hg(new Error(F),i,"onLoad"),K={},ue=Y(O,K,"filter",Yg),L=Y(O,K,"namespace",qe);if(ar(O,K,`in onLoad() call for plugin ${Mr(_)}`),ue==null)throw new Error("onLoad() call is missing a filter");let M=p++;d[M]={name:_,callback:z,note:te},q.onLoad.push({id:M,filter:ue.source,namespace:L||""})},esbuild:i.esbuild});R&&await R,y.push(q)}catch(S){return{ok:!1,error:S,pluginName:_}}}s["on-start"]=async(b,w)=>{let _={errors:[],warnings:[]};await Promise.all(l.map(async({name:S,callback:q,note:C})=>{try{let R=await q();if(R!=null){if(typeof R!="object")throw new Error(`Expected onStart() callback in plugin ${Mr(S)} to return an object`);let O={},z=Y(R,O,"errors",nr),F=Y(R,O,"warnings",nr);ar(R,O,`from onStart() callback in plugin ${Mr(S)}`),z!=null&&_.errors.push(...Mo(z,"errors",u,S)),F!=null&&_.warnings.push(...Mo(F,"warnings",u,S))}}catch(R){_.errors.push(mu(R,i,u,C&&C(),S))}})),r(b,_)},s["on-resolve"]=async(b,w)=>{let _={},S="",q,C;for(let R of w.ids)try{({name:S,callback:q,note:C}=f[R]);let O=await q({path:w.path,importer:w.importer,namespace:w.namespace,resolveDir:w.resolveDir,kind:w.kind,pluginData:u.load(w.pluginData)});if(O!=null){if(typeof O!="object")throw new Error(`Expected onResolve() callback in plugin ${Mr(S)} to return an object`);let z={},F=Y(O,z,"pluginName",qe),te=Y(O,z,"path",qe),K=Y(O,z,"namespace",qe),ue=Y(O,z,"suffix",qe),L=Y(O,z,"external",xt),M=Y(O,z,"sideEffects",xt),ae=Y(O,z,"pluginData",Kg),ne=Y(O,z,"errors",nr),de=Y(O,z,"warnings",nr),le=Y(O,z,"watchFiles",nr),se=Y(O,z,"watchDirs",nr);ar(O,z,`from onResolve() callback in plugin ${Mr(S)}`),_.id=R,F!=null&&(_.pluginName=F),te!=null&&(_.path=te),K!=null&&(_.namespace=K),ue!=null&&(_.suffix=ue),L!=null&&(_.external=L),M!=null&&(_.sideEffects=M),ae!=null&&(_.pluginData=u.store(ae)),ne!=null&&(_.errors=Mo(ne,"errors",u,S)),de!=null&&(_.warnings=Mo(de,"warnings",u,S)),le!=null&&(_.watchFiles=Vg(le,"watchFiles")),se!=null&&(_.watchDirs=Vg(se,"watchDirs"));break}}catch(O){_={id:R,errors:[mu(O,i,u,C&&C(),S)]};break}r(b,_)},s["on-load"]=async(b,w)=>{let _={},S="",q,C;for(let R of w.ids)try{({name:S,callback:q,note:C}=d[R]);let O=await q({path:w.path,namespace:w.namespace,suffix:w.suffix,pluginData:u.load(w.pluginData)});if(O!=null){if(typeof O!="object")throw new Error(`Expected onLoad() callback in plugin ${Mr(S)} to return an object`);let z={},F=Y(O,z,"pluginName",qe),te=Y(O,z,"contents",cB),K=Y(O,z,"resolveDir",qe),ue=Y(O,z,"pluginData",Kg),L=Y(O,z,"loader",qe),M=Y(O,z,"errors",nr),ae=Y(O,z,"warnings",nr),ne=Y(O,z,"watchFiles",nr),de=Y(O,z,"watchDirs",nr);ar(O,z,`from onLoad() callback in plugin ${Mr(S)}`),_.id=R,F!=null&&(_.pluginName=F),te instanceof Uint8Array?_.contents=te:te!=null&&(_.contents=ri(te)),K!=null&&(_.resolveDir=K),ue!=null&&(_.pluginData=u.store(ue)),L!=null&&(_.loader=L),M!=null&&(_.errors=Mo(M,"errors",u,S)),ae!=null&&(_.warnings=Mo(ae,"warnings",u,S)),ne!=null&&(_.watchFiles=Vg(ne,"watchFiles")),de!=null&&(_.watchDirs=Vg(de,"watchDirs"));break}}catch(O){_={id:R,errors:[mu(O,i,u,C&&C(),S)]};break}r(b,_)};let g=(b,w,_)=>_();return c.length>0&&(g=(b,w,_)=>{(async()=>{for(let{name:S,callback:q,note:C}of c)try{await q(b)}catch(R){b.errors.push(await new Promise(O=>w(R,S,C&&C(),O)))}})().then(_)}),v=!0,{ok:!0,requestPlugins:y,runOnEndCallbacks:g}};function hB(){let t=new Map,e=0;return{load(r){return t.get(r)},store(r){if(r===void 0)return-1;let n=e++;return t.set(n,r),n}}}function Hg(t,e,r){let n,i=!1;return()=>{if(i)return n;i=!0;try{let s=(t.stack+"").split(`
|
|
10
|
+
`);function uB(t,e){return t[e++]|t[e++]<<8|t[e++]<<16|t[e++]<<24}function e2(t,e,r){t[r++]=e,t[r++]=e>>8,t[r++]=e>>16,t[r++]=e>>24}var Mr=JSON.stringify,Q$="warning",J$="silent";function X$(t){if(xr(t,"target"),t.indexOf(",")>=0)throw new Error(`Invalid target: ${t}`);return t}var Kg=()=>null,xt=t=>typeof t=="boolean"?null:"a boolean",H1e=t=>typeof t=="boolean"||typeof t=="object"&&!Array.isArray(t)?null:"a boolean or an object",qe=t=>typeof t=="string"?null:"a string",Yg=t=>t instanceof RegExp?null:"a RegExp object",gu=t=>typeof t=="number"&&t===(t|0)?null:"an integer",n2=t=>typeof t=="function"?null:"a function",nr=t=>Array.isArray(t)?null:"an array",ti=t=>typeof t=="object"&&t!==null&&!Array.isArray(t)?null:"an object",V1e=t=>t instanceof WebAssembly.Module?null:"a WebAssembly.Module",G1e=t=>typeof t=="object"&&t!==null?null:"an array or an object",Z$=t=>typeof t=="object"&&!Array.isArray(t)?null:"an object or null",lB=t=>typeof t=="string"||typeof t=="boolean"?null:"a string or a boolean",K1e=t=>typeof t=="string"||typeof t=="object"&&t!==null&&!Array.isArray(t)?null:"a string or an object",Y1e=t=>typeof t=="string"||Array.isArray(t)?null:"a string or an array",cB=t=>typeof t=="string"||t instanceof Uint8Array?null:"a string or a Uint8Array",Q1e=t=>typeof t=="string"||t instanceof URL?null:"a string or a URL";function Y(t,e,r,n){let i=t[r];if(e[r+""]=!0,i===void 0)return;let s=n(i);if(s!==null)throw new Error(`${Mr(r)} must be ${s}`);return i}function ur(t,e,r){for(let n in t)if(!(n in e))throw new Error(`Invalid option ${r}: ${Mr(n)}`)}function J1e(t){let e=Object.create(null),r=Y(t,e,"wasmURL",Q1e),n=Y(t,e,"wasmModule",V1e),i=Y(t,e,"worker",xt);return ur(t,e,"in initialize() call"),{wasmURL:r,wasmModule:n,worker:i}}function fB(t){let e;if(t!==void 0){e=Object.create(null);for(let r in t){let n=t[r];if(typeof n=="string"||n===!1)e[r]=n;else throw new Error(`Expected ${Mr(r)} in mangle cache to map to either a string or false`)}}return e}function Xg(t,e,r,n,i){let s=Y(e,r,"color",xt),o=Y(e,r,"logLevel",qe),a=Y(e,r,"logLimit",gu);s!==void 0?t.push(`--color=${s}`):n&&t.push("--color=true"),t.push(`--log-level=${o||i}`),t.push(`--log-limit=${a||0}`)}function xr(t,e,r){if(typeof t!="string")throw new Error(`Expected value for ${e}${r!==void 0?" "+Mr(r):""} to be a string, got ${typeof t} instead`);return t}function dB(t,e,r){let n=Y(e,r,"legalComments",qe),i=Y(e,r,"sourceRoot",qe),s=Y(e,r,"sourcesContent",xt),o=Y(e,r,"target",Y1e),a=Y(e,r,"format",qe),u=Y(e,r,"globalName",qe),l=Y(e,r,"mangleProps",Yg),c=Y(e,r,"reserveProps",Yg),f=Y(e,r,"mangleQuoted",xt),d=Y(e,r,"minify",xt),p=Y(e,r,"minifySyntax",xt),h=Y(e,r,"minifyWhitespace",xt),y=Y(e,r,"minifyIdentifiers",xt),v=Y(e,r,"drop",nr),g=Y(e,r,"charset",qe),b=Y(e,r,"treeShaking",xt),w=Y(e,r,"ignoreAnnotations",xt),_=Y(e,r,"jsx",qe),S=Y(e,r,"jsxFactory",qe),q=Y(e,r,"jsxFragment",qe),C=Y(e,r,"jsxImportSource",qe),R=Y(e,r,"jsxDev",xt),O=Y(e,r,"jsxSideEffects",xt),z=Y(e,r,"define",ti),F=Y(e,r,"logOverride",ti),te=Y(e,r,"supported",ti),K=Y(e,r,"pure",nr),ue=Y(e,r,"keepNames",xt),L=Y(e,r,"platform",qe);if(n&&t.push(`--legal-comments=${n}`),i!==void 0&&t.push(`--source-root=${i}`),s!==void 0&&t.push(`--sources-content=${s}`),o&&(Array.isArray(o)?t.push(`--target=${Array.from(o).map(X$).join(",")}`):t.push(`--target=${X$(o)}`)),a&&t.push(`--format=${a}`),u&&t.push(`--global-name=${u}`),L&&t.push(`--platform=${L}`),d&&t.push("--minify"),p&&t.push("--minify-syntax"),h&&t.push("--minify-whitespace"),y&&t.push("--minify-identifiers"),g&&t.push(`--charset=${g}`),b!==void 0&&t.push(`--tree-shaking=${b}`),w&&t.push("--ignore-annotations"),v)for(let M of v)t.push(`--drop:${xr(M,"drop")}`);if(l&&t.push(`--mangle-props=${l.source}`),c&&t.push(`--reserve-props=${c.source}`),f!==void 0&&t.push(`--mangle-quoted=${f}`),_&&t.push(`--jsx=${_}`),S&&t.push(`--jsx-factory=${S}`),q&&t.push(`--jsx-fragment=${q}`),C&&t.push(`--jsx-import-source=${C}`),R&&t.push("--jsx-dev"),O&&t.push("--jsx-side-effects"),z)for(let M in z){if(M.indexOf("=")>=0)throw new Error(`Invalid define: ${M}`);t.push(`--define:${M}=${xr(z[M],"define",M)}`)}if(F)for(let M in F){if(M.indexOf("=")>=0)throw new Error(`Invalid log override: ${M}`);t.push(`--log-override:${M}=${xr(F[M],"log override",M)}`)}if(te)for(let M in te){if(M.indexOf("=")>=0)throw new Error(`Invalid supported: ${M}`);let ae=te[M];if(typeof ae!="boolean")throw new Error(`Expected value for supported ${Mr(M)} to be a boolean, got ${typeof ae} instead`);t.push(`--supported:${M}=${ae}`)}if(K)for(let M of K)t.push(`--pure:${xr(M,"pure")}`);ue&&t.push("--keep-names")}function X1e(t,e,r,n,i){var s;let o=[],a=[],u=Object.create(null),l=null,c=null,f=null;Xg(o,e,u,r,n),dB(o,e,u);let d=Y(e,u,"sourcemap",lB),p=Y(e,u,"bundle",xt),h=Y(e,u,"watch",H1e),y=Y(e,u,"splitting",xt),v=Y(e,u,"preserveSymlinks",xt),g=Y(e,u,"metafile",xt),b=Y(e,u,"outfile",qe),w=Y(e,u,"outdir",qe),_=Y(e,u,"outbase",qe),S=Y(e,u,"tsconfig",qe),q=Y(e,u,"resolveExtensions",nr),C=Y(e,u,"nodePaths",nr),R=Y(e,u,"mainFields",nr),O=Y(e,u,"conditions",nr),z=Y(e,u,"external",nr),F=Y(e,u,"packages",qe),te=Y(e,u,"alias",ti),K=Y(e,u,"loader",ti),ue=Y(e,u,"outExtension",ti),L=Y(e,u,"publicPath",qe),M=Y(e,u,"entryNames",qe),ae=Y(e,u,"chunkNames",qe),ne=Y(e,u,"assetNames",qe),de=Y(e,u,"inject",nr),le=Y(e,u,"banner",ti),se=Y(e,u,"footer",ti),he=Y(e,u,"entryPoints",G1e),we=Y(e,u,"absWorkingDir",qe),De=Y(e,u,"stdin",ti),Je=(s=Y(e,u,"write",xt))!=null?s:i,ve=Y(e,u,"allowOverwrite",xt),Ct=Y(e,u,"incremental",xt)===!0,dt=Y(e,u,"mangleCache",ti);if(u.plugins=!0,ur(e,u,`in ${t}() call`),d&&o.push(`--sourcemap${d===!0?"":`=${d}`}`),p&&o.push("--bundle"),ve&&o.push("--allow-overwrite"),h)if(o.push("--watch"),typeof h=="boolean")f={};else{let ce=Object.create(null),ie=Y(h,ce,"onRebuild",n2);ur(h,ce,`on "watch" in ${t}() call`),f={onRebuild:ie}}if(y&&o.push("--splitting"),v&&o.push("--preserve-symlinks"),g&&o.push("--metafile"),b&&o.push(`--outfile=${b}`),w&&o.push(`--outdir=${w}`),_&&o.push(`--outbase=${_}`),S&&o.push(`--tsconfig=${S}`),F&&o.push(`--packages=${F}`),q){let ce=[];for(let ie of q){if(xr(ie,"resolve extension"),ie.indexOf(",")>=0)throw new Error(`Invalid resolve extension: ${ie}`);ce.push(ie)}o.push(`--resolve-extensions=${ce.join(",")}`)}if(L&&o.push(`--public-path=${L}`),M&&o.push(`--entry-names=${M}`),ae&&o.push(`--chunk-names=${ae}`),ne&&o.push(`--asset-names=${ne}`),R){let ce=[];for(let ie of R){if(xr(ie,"main field"),ie.indexOf(",")>=0)throw new Error(`Invalid main field: ${ie}`);ce.push(ie)}o.push(`--main-fields=${ce.join(",")}`)}if(O){let ce=[];for(let ie of O){if(xr(ie,"condition"),ie.indexOf(",")>=0)throw new Error(`Invalid condition: ${ie}`);ce.push(ie)}o.push(`--conditions=${ce.join(",")}`)}if(z)for(let ce of z)o.push(`--external:${xr(ce,"external")}`);if(te)for(let ce in te){if(ce.indexOf("=")>=0)throw new Error(`Invalid package name in alias: ${ce}`);o.push(`--alias:${ce}=${xr(te[ce],"alias",ce)}`)}if(le)for(let ce in le){if(ce.indexOf("=")>=0)throw new Error(`Invalid banner file type: ${ce}`);o.push(`--banner:${ce}=${xr(le[ce],"banner",ce)}`)}if(se)for(let ce in se){if(ce.indexOf("=")>=0)throw new Error(`Invalid footer file type: ${ce}`);o.push(`--footer:${ce}=${xr(se[ce],"footer",ce)}`)}if(de)for(let ce of de)o.push(`--inject:${xr(ce,"inject")}`);if(K)for(let ce in K){if(ce.indexOf("=")>=0)throw new Error(`Invalid loader extension: ${ce}`);o.push(`--loader:${ce}=${xr(K[ce],"loader",ce)}`)}if(ue)for(let ce in ue){if(ce.indexOf("=")>=0)throw new Error(`Invalid out extension: ${ce}`);o.push(`--out-extension:${ce}=${xr(ue[ce],"out extension",ce)}`)}if(he)if(Array.isArray(he))for(let ce of he)a.push(["",xr(ce,"entry point")]);else for(let ce in he)a.push([ce,xr(he[ce],"entry point",ce)]);if(De){let ce=Object.create(null),ie=Y(De,ce,"contents",cB),Fe=Y(De,ce,"resolveDir",qe),at=Y(De,ce,"sourcefile",qe),zt=Y(De,ce,"loader",qe);ur(De,ce,'in "stdin" object'),at&&o.push(`--sourcefile=${at}`),zt&&o.push(`--loader=${zt}`),Fe&&(c=Fe),typeof ie=="string"?l=ri(ie):ie instanceof Uint8Array&&(l=ie)}let pe=[];if(C)for(let ce of C)ce+="",pe.push(ce);return{entries:a,flags:o,write:Je,stdinContents:l,stdinResolveDir:c,absWorkingDir:we,incremental:Ct,nodePaths:pe,watch:f,mangleCache:fB(dt)}}function Z1e(t,e,r,n){let i=[],s=Object.create(null);Xg(i,e,s,r,n),dB(i,e,s);let o=Y(e,s,"sourcemap",lB),a=Y(e,s,"tsconfigRaw",K1e),u=Y(e,s,"sourcefile",qe),l=Y(e,s,"loader",qe),c=Y(e,s,"banner",qe),f=Y(e,s,"footer",qe),d=Y(e,s,"mangleCache",ti);return ur(e,s,`in ${t}() call`),o&&i.push(`--sourcemap=${o===!0?"external":o}`),a&&i.push(`--tsconfig-raw=${typeof a=="string"?a:JSON.stringify(a)}`),u&&i.push(`--sourcefile=${u}`),l&&i.push(`--loader=${l}`),c&&i.push(`--banner=${c}`),f&&i.push(`--footer=${f}`),{flags:i,mangleCache:fB(d)}}function pB(t){let e={},r={didClose:!1,reason:""},n={},i=0,s=0,o=new Uint8Array(16*1024),a=0,u=w=>{let _=a+w.length;if(_>o.length){let q=new Uint8Array(_*2);q.set(o),o=q}o.set(w,a),a+=w.length;let S=0;for(;S+4<=a;){let q=uB(o,S);if(S+4+q>a)break;S+=4,h(o.subarray(S,S+q)),S+=q}S>0&&(o.copyWithin(0,S,a),a-=S)},l=w=>{r.didClose=!0,w&&(r.reason=": "+(w.message||w));let _="The service was stopped"+r.reason;for(let S in n)n[S](_,null);n={}},c=(w,_,S)=>{if(r.didClose)return S("The service is no longer running"+r.reason,null);let q=i++;n[q]=(C,R)=>{try{S(C,R)}finally{w&&w.unref()}},w&&w.ref(),t.writeToStdin(Y$({id:q,isRequest:!0,value:_}))},f=(w,_)=>{if(r.didClose)throw new Error("The service is no longer running"+r.reason);t.writeToStdin(Y$({id:w,isRequest:!1,value:_}))},d=async(w,_)=>{try{if(_.command==="ping"){f(w,{});return}if(typeof _.key=="number"){let S=e[_.key];if(S){let q=S[_.command];if(q){await q(w,_);return}}}throw new Error("Invalid command: "+_.command)}catch(S){f(w,{errors:[mu(S,t,null,void 0,"")]})}},p=!0,h=w=>{if(p){p=!1;let S=String.fromCharCode(...w);if(S!=="0.16.17")throw new Error(`Cannot start service: Host version "0.16.17" does not match binary version ${Mr(S)}`);return}let _=U1e(w);if(_.isRequest)d(_.id,_.value);else{let S=n[_.id];delete n[_.id],_.value.error?S(_.value.error,{}):S(null,_.value)}};return{readFromStdout:u,afterClose:l,service:{buildOrServe:({callName:w,refs:_,serveOptions:S,options:q,isTTY:C,defaultWD:R,callback:O})=>{let z=0,F=s++,te={},K={ref(){++z===1&&_&&_.ref()},unref(){--z===0&&(delete e[F],_&&_.unref())}};e[F]=te,K.ref(),eSe(w,F,c,f,K,t,te,q,S,C,R,r,(ue,L)=>{try{O(ue,L)}finally{K.unref()}})},transform:({callName:w,refs:_,input:S,options:q,isTTY:C,fs:R,callback:O})=>{let z=hB(),F=te=>{try{if(typeof S!="string"&&!(S instanceof Uint8Array))throw new Error('The input to "transform" must be a string or a Uint8Array');let{flags:K,mangleCache:ue}=Z1e(w,q,C,J$),L={command:"transform",flags:K,inputFS:te!==null,input:te!==null?ri(te):typeof S=="string"?ri(S):S};ue&&(L.mangleCache=ue),c(_,L,(M,ae)=>{if(M)return O(new Error(M),null);let ne=Is(ae.errors,z),de=Is(ae.warnings,z),le=1,se=()=>{if(--le===0){let he={warnings:de,code:ae.code,map:ae.map};"legalComments"in ae&&(he.legalComments=ae?.legalComments),ae.mangleCache&&(he.mangleCache=ae?.mangleCache),O(null,he)}};if(ne.length>0)return O(pu("Transform failed",ne,de),null);ae.codeFS&&(le++,R.readFile(ae.code,(he,we)=>{he!==null?O(he,null):(ae.code=we,se())})),ae.mapFS&&(le++,R.readFile(ae.map,(he,we)=>{he!==null?O(he,null):(ae.map=we,se())})),se()})}catch(K){let ue=[];try{Xg(ue,q,{},C,J$)}catch{}let L=mu(K,t,z,void 0,"");c(_,{command:"error",flags:ue,error:L},()=>{L.detail=z.load(L.detail),O(pu("Transform failed",[L],[]),null)})}};if((typeof S=="string"||S instanceof Uint8Array)&&S.length>1024*1024){let te=F;F=()=>R.writeFile(S,te)}F(null)},formatMessages:({callName:w,refs:_,messages:S,options:q,callback:C})=>{let R=Mo(S,"messages",null,"");if(!q)throw new Error(`Missing second argument in ${w}() call`);let O={},z=Y(q,O,"kind",qe),F=Y(q,O,"color",xt),te=Y(q,O,"terminalWidth",gu);if(ur(q,O,`in ${w}() call`),z===void 0)throw new Error(`Missing "kind" in ${w}() call`);if(z!=="error"&&z!=="warning")throw new Error(`Expected "kind" to be "error" or "warning" in ${w}() call`);let K={command:"format-msgs",messages:R,isWarning:z==="warning"};F!==void 0&&(K.color=F),te!==void 0&&(K.terminalWidth=te),c(_,K,(ue,L)=>{if(ue)return C(new Error(ue),null);C(null,L.messages)})},analyzeMetafile:({callName:w,refs:_,metafile:S,options:q,callback:C})=>{q===void 0&&(q={});let R={},O=Y(q,R,"color",xt),z=Y(q,R,"verbose",xt);ur(q,R,`in ${w}() call`);let F={command:"analyze-metafile",metafile:S};O!==void 0&&(F.color=O),z!==void 0&&(F.verbose=z),c(_,F,(te,K)=>{if(te)return C(new Error(te),null);C(null,K.result)})}}}}function eSe(t,e,r,n,i,s,o,a,u,l,c,f,d){let p=hB(),h=(b,w,_,S)=>{let q=[];try{Xg(q,a,{},l,Q$)}catch{}let C=mu(b,s,p,_,w);r(i,{command:"error",flags:q,error:C},()=>{C.detail=p.load(C.detail),S(C)})},y=(b,w)=>{h(b,w,void 0,_=>{d(pu("Build failed",[_],[]),null)})},v;if(typeof a=="object"){let b=a.plugins;if(b!==void 0){if(!Array.isArray(b))throw new Error('"plugins" must be an array');v=b}}if(v&&v.length>0){if(s.isSync){y(new Error("Cannot use plugins in synchronous API calls"),"");return}rSe(e,r,n,i,s,o,a,v,p).then(b=>{if(!b.ok){y(b.error,b.pluginName);return}try{g(b.requestPlugins,b.runOnEndCallbacks)}catch(w){y(w,"")}},b=>y(b,""));return}try{g(null,(b,w,_)=>_())}catch(b){y(b,"")}function g(b,w){let _=!s.isWriteUnavailable,{entries:S,flags:q,write:C,stdinContents:R,stdinResolveDir:O,absWorkingDir:z,incremental:F,nodePaths:te,watch:K,mangleCache:ue}=X1e(t,a,l,Q$,_),L={command:"build",key:e,entries:S,flags:q,write:C,stdinContents:R,stdinResolveDir:O,absWorkingDir:z||c,incremental:F,nodePaths:te};b&&(L.plugins=b),ue&&(L.mangleCache=ue);let M=u&&tSe(e,r,n,i,o,u,L),ae,ne,de=(se,he)=>{se.outputFiles&&(he.outputFiles=se.outputFiles.map(nSe)),se.metafile&&(he.metafile=JSON.parse(se.metafile)),se.mangleCache&&(he.mangleCache=se.mangleCache),se.writeToStdout!==void 0&&console.log(yu(se.writeToStdout).replace(/\n$/,""))},le=(se,he)=>{let we={errors:Is(se.errors,p),warnings:Is(se.warnings,p)};de(se,we),w(we,h,()=>{if(we.errors.length>0)return he(pu("Build failed",we.errors,we.warnings),null);if(se.rebuild){if(!ae){let De=!1;ae=()=>new Promise((Je,ve)=>{if(De||f.didClose)throw new Error("Cannot rebuild");r(i,{command:"rebuild",key:e},(Ct,dt)=>{if(Ct)return he(pu("Build failed",[{id:"",pluginName:"",text:Ct,location:null,notes:[],detail:void 0}],[]),null);le(dt,(pe,ce)=>{pe?ve(pe):Je(ce)})})}),i.ref(),ae.dispose=()=>{De||(De=!0,r(i,{command:"rebuild-dispose",key:e},()=>{}),i.unref())}}we.rebuild=ae}if(se.watch){if(!ne){let De=!1;i.ref(),ne=()=>{De||(De=!0,delete o["watch-rebuild"],r(i,{command:"watch-stop",key:e},()=>{}),i.unref())},K&&(o["watch-rebuild"]=(Je,ve)=>{try{let Ct=ve.args,dt={errors:Is(Ct.errors,p),warnings:Is(Ct.warnings,p)};de(Ct,dt),w(dt,h,()=>{if(dt.errors.length>0){K.onRebuild&&K.onRebuild(pu("Build failed",dt.errors,dt.warnings),null);return}dt.stop=ne,K.onRebuild&&K.onRebuild(null,dt)})}catch(Ct){console.error(Ct)}n(Je,{})})}we.stop=ne}he(null,we)})};if(C&&s.isWriteUnavailable)throw new Error('The "write" option is unavailable in this environment');if(F&&s.isSync)throw new Error('Cannot use "incremental" with a synchronous build');if(K&&s.isSync)throw new Error('Cannot use "watch" with a synchronous build');r(i,L,(se,he)=>{if(se)return d(new Error(se),null);if(M){let we=he,De=!1;i.ref();let Je={port:we.port,host:we.host,wait:M.wait,stop(){De||(De=!0,M.stop(),i.unref())}};return i.ref(),M.wait.then(i.unref,i.unref),d(null,Je)}return le(he,d)})}}var tSe=(t,e,r,n,i,s,o)=>{let a={},u=Y(s,a,"port",gu),l=Y(s,a,"host",qe),c=Y(s,a,"servedir",qe),f=Y(s,a,"onRequest",n2),d=new Promise((p,h)=>{i["serve-wait"]=(y,v)=>{v.error!==null?h(new Error(v.error)):p(),r(y,{})}});return o.serve={},ur(s,a,"in serve() call"),u!==void 0&&(o.serve.port=u),l!==void 0&&(o.serve.host=l),c!==void 0&&(o.serve.servedir=c),i["serve-request"]=(p,h)=>{f&&f(h.args),r(p,{})},{wait:d,stop(){e(n,{command:"serve-stop",key:t},()=>{})}}},rSe=async(t,e,r,n,i,s,o,a,u)=>{let l=[],c=[],f={},d={},p=0,h=0,y=[],v=!1;a=[...a];for(let b of a){let w={};if(typeof b!="object")throw new Error(`Plugin at index ${h} must be an object`);let _=Y(b,w,"name",qe);if(typeof _!="string"||_==="")throw new Error(`Plugin at index ${h} is missing a name`);try{let S=Y(b,w,"setup",n2);if(typeof S!="function")throw new Error("Plugin is missing a setup function");ur(b,w,`on plugin ${Mr(_)}`);let q={name:_,onStart:!1,onEnd:!1,onResolve:[],onLoad:[]};h++;let R=S({initialOptions:o,resolve:(O,z={})=>{if(!v)throw new Error('Cannot call "resolve" before plugin setup has completed');if(typeof O!="string")throw new Error("The path to resolve must be a string");let F=Object.create(null),te=Y(z,F,"pluginName",qe),K=Y(z,F,"importer",qe),ue=Y(z,F,"namespace",qe),L=Y(z,F,"resolveDir",qe),M=Y(z,F,"kind",qe),ae=Y(z,F,"pluginData",Kg);return ur(z,F,"in resolve() call"),new Promise((ne,de)=>{let le={command:"resolve",path:O,key:t,pluginName:_};if(te!=null&&(le.pluginName=te),K!=null&&(le.importer=K),ue!=null&&(le.namespace=ue),L!=null&&(le.resolveDir=L),M!=null)le.kind=M;else throw new Error('Must specify "kind" when calling "resolve"');ae!=null&&(le.pluginData=u.store(ae)),e(n,le,(se,he)=>{se!==null?de(new Error(se)):ne({errors:Is(he.errors,u),warnings:Is(he.warnings,u),path:he.path,external:he.external,sideEffects:he.sideEffects,namespace:he.namespace,suffix:he.suffix,pluginData:u.load(he.pluginData)})})})},onStart(O){let z='This error came from the "onStart" callback registered here:',F=Hg(new Error(z),i,"onStart");l.push({name:_,callback:O,note:F}),q.onStart=!0},onEnd(O){let z='This error came from the "onEnd" callback registered here:',F=Hg(new Error(z),i,"onEnd");c.push({name:_,callback:O,note:F}),q.onEnd=!0},onResolve(O,z){let F='This error came from the "onResolve" callback registered here:',te=Hg(new Error(F),i,"onResolve"),K={},ue=Y(O,K,"filter",Yg),L=Y(O,K,"namespace",qe);if(ur(O,K,`in onResolve() call for plugin ${Mr(_)}`),ue==null)throw new Error("onResolve() call is missing a filter");let M=p++;f[M]={name:_,callback:z,note:te},q.onResolve.push({id:M,filter:ue.source,namespace:L||""})},onLoad(O,z){let F='This error came from the "onLoad" callback registered here:',te=Hg(new Error(F),i,"onLoad"),K={},ue=Y(O,K,"filter",Yg),L=Y(O,K,"namespace",qe);if(ur(O,K,`in onLoad() call for plugin ${Mr(_)}`),ue==null)throw new Error("onLoad() call is missing a filter");let M=p++;d[M]={name:_,callback:z,note:te},q.onLoad.push({id:M,filter:ue.source,namespace:L||""})},esbuild:i.esbuild});R&&await R,y.push(q)}catch(S){return{ok:!1,error:S,pluginName:_}}}s["on-start"]=async(b,w)=>{let _={errors:[],warnings:[]};await Promise.all(l.map(async({name:S,callback:q,note:C})=>{try{let R=await q();if(R!=null){if(typeof R!="object")throw new Error(`Expected onStart() callback in plugin ${Mr(S)} to return an object`);let O={},z=Y(R,O,"errors",nr),F=Y(R,O,"warnings",nr);ur(R,O,`from onStart() callback in plugin ${Mr(S)}`),z!=null&&_.errors.push(...Mo(z,"errors",u,S)),F!=null&&_.warnings.push(...Mo(F,"warnings",u,S))}}catch(R){_.errors.push(mu(R,i,u,C&&C(),S))}})),r(b,_)},s["on-resolve"]=async(b,w)=>{let _={},S="",q,C;for(let R of w.ids)try{({name:S,callback:q,note:C}=f[R]);let O=await q({path:w.path,importer:w.importer,namespace:w.namespace,resolveDir:w.resolveDir,kind:w.kind,pluginData:u.load(w.pluginData)});if(O!=null){if(typeof O!="object")throw new Error(`Expected onResolve() callback in plugin ${Mr(S)} to return an object`);let z={},F=Y(O,z,"pluginName",qe),te=Y(O,z,"path",qe),K=Y(O,z,"namespace",qe),ue=Y(O,z,"suffix",qe),L=Y(O,z,"external",xt),M=Y(O,z,"sideEffects",xt),ae=Y(O,z,"pluginData",Kg),ne=Y(O,z,"errors",nr),de=Y(O,z,"warnings",nr),le=Y(O,z,"watchFiles",nr),se=Y(O,z,"watchDirs",nr);ur(O,z,`from onResolve() callback in plugin ${Mr(S)}`),_.id=R,F!=null&&(_.pluginName=F),te!=null&&(_.path=te),K!=null&&(_.namespace=K),ue!=null&&(_.suffix=ue),L!=null&&(_.external=L),M!=null&&(_.sideEffects=M),ae!=null&&(_.pluginData=u.store(ae)),ne!=null&&(_.errors=Mo(ne,"errors",u,S)),de!=null&&(_.warnings=Mo(de,"warnings",u,S)),le!=null&&(_.watchFiles=Vg(le,"watchFiles")),se!=null&&(_.watchDirs=Vg(se,"watchDirs"));break}}catch(O){_={id:R,errors:[mu(O,i,u,C&&C(),S)]};break}r(b,_)},s["on-load"]=async(b,w)=>{let _={},S="",q,C;for(let R of w.ids)try{({name:S,callback:q,note:C}=d[R]);let O=await q({path:w.path,namespace:w.namespace,suffix:w.suffix,pluginData:u.load(w.pluginData)});if(O!=null){if(typeof O!="object")throw new Error(`Expected onLoad() callback in plugin ${Mr(S)} to return an object`);let z={},F=Y(O,z,"pluginName",qe),te=Y(O,z,"contents",cB),K=Y(O,z,"resolveDir",qe),ue=Y(O,z,"pluginData",Kg),L=Y(O,z,"loader",qe),M=Y(O,z,"errors",nr),ae=Y(O,z,"warnings",nr),ne=Y(O,z,"watchFiles",nr),de=Y(O,z,"watchDirs",nr);ur(O,z,`from onLoad() callback in plugin ${Mr(S)}`),_.id=R,F!=null&&(_.pluginName=F),te instanceof Uint8Array?_.contents=te:te!=null&&(_.contents=ri(te)),K!=null&&(_.resolveDir=K),ue!=null&&(_.pluginData=u.store(ue)),L!=null&&(_.loader=L),M!=null&&(_.errors=Mo(M,"errors",u,S)),ae!=null&&(_.warnings=Mo(ae,"warnings",u,S)),ne!=null&&(_.watchFiles=Vg(ne,"watchFiles")),de!=null&&(_.watchDirs=Vg(de,"watchDirs"));break}}catch(O){_={id:R,errors:[mu(O,i,u,C&&C(),S)]};break}r(b,_)};let g=(b,w,_)=>_();return c.length>0&&(g=(b,w,_)=>{(async()=>{for(let{name:S,callback:q,note:C}of c)try{await q(b)}catch(R){b.errors.push(await new Promise(O=>w(R,S,C&&C(),O)))}})().then(_)}),v=!0,{ok:!0,requestPlugins:y,runOnEndCallbacks:g}};function hB(){let t=new Map,e=0;return{load(r){return t.get(r)},store(r){if(r===void 0)return-1;let n=e++;return t.set(n,r),n}}}function Hg(t,e,r){let n,i=!1;return()=>{if(i)return n;i=!0;try{let s=(t.stack+"").split(`
|
|
11
11
|
`);s.splice(1,1);let o=gB(e,s,r);if(o)return n={text:t.message,location:o},n}catch{}}}function mu(t,e,r,n,i){let s="Internal error",o=null;try{s=(t&&t.message||t)+""}catch{}try{o=gB(e,(t.stack+"").split(`
|
|
12
12
|
`),"")}catch{}return{id:"",pluginName:i,text:s,location:o,notes:n?[n]:[],detail:r?r.store(t):-1}}function gB(t,e,r){let n=" at ";if(t.readFileSync&&!e[0].startsWith(n)&&e[1].startsWith(n))for(let i=1;i<e.length;i++){let s=e[i];if(s.startsWith(n))for(s=s.slice(n.length);;){let o=/^(?:new |async )?\S+ \((.*)\)$/.exec(s);if(o){s=o[1];continue}if(o=/^eval at \S+ \((.*)\)(?:, \S+:\d+:\d+)?$/.exec(s),o){s=o[1];continue}if(o=/^(\S+):(\d+):(\d+)$/.exec(s),o){let a;try{a=t.readFileSync(o[1],"utf8")}catch{break}let u=a.split(/\r\n|\r|\n|\u2028|\u2029/)[+o[2]-1]||"",l=+o[3]-1,c=u.slice(l,l+r.length)===r?r.length:0;return{file:o[1],namespace:"file",line:+o[2],column:ri(u.slice(0,l)).length,length:ri(u.slice(l,l+c)).length,lineText:u+`
|
|
13
13
|
`+e.slice(1).join(`
|
|
14
14
|
`),suggestion:""}}break}}return null}function pu(t,e,r){let n=5,i=e.length<1?"":` with ${e.length} error${e.length<2?"":"s"}:`+e.slice(0,n+1).map((o,a)=>{if(a===n)return`
|
|
15
15
|
...`;if(!o.location)return`
|
|
16
16
|
error: ${o.text}`;let{file:u,line:l,column:c}=o.location,f=o.pluginName?`[plugin: ${o.pluginName}] `:"";return`
|
|
17
|
-
${u}:${l}:${c}: ERROR: ${f}${o.text}`}).join(""),s=new Error(`${t}${i}`);return s.errors=e,s.warnings=r,s}function Is(t,e){for(let r of t)r.detail=e.load(r.detail);return t}function eB(t,e){if(t==null)return null;let r={},n=Y(t,r,"file",qe),i=Y(t,r,"namespace",qe),s=Y(t,r,"line",gu),o=Y(t,r,"column",gu),a=Y(t,r,"length",gu),u=Y(t,r,"lineText",qe),l=Y(t,r,"suggestion",qe);return
|
|
17
|
+
${u}:${l}:${c}: ERROR: ${f}${o.text}`}).join(""),s=new Error(`${t}${i}`);return s.errors=e,s.warnings=r,s}function Is(t,e){for(let r of t)r.detail=e.load(r.detail);return t}function eB(t,e){if(t==null)return null;let r={},n=Y(t,r,"file",qe),i=Y(t,r,"namespace",qe),s=Y(t,r,"line",gu),o=Y(t,r,"column",gu),a=Y(t,r,"length",gu),u=Y(t,r,"lineText",qe),l=Y(t,r,"suggestion",qe);return ur(t,r,e),{file:n||"",namespace:i||"",line:s||0,column:o||0,length:a||0,lineText:u||"",suggestion:l||""}}function Mo(t,e,r,n){let i=[],s=0;for(let o of t){let a={},u=Y(o,a,"id",qe),l=Y(o,a,"pluginName",qe),c=Y(o,a,"text",qe),f=Y(o,a,"location",Z$),d=Y(o,a,"notes",nr),p=Y(o,a,"detail",Kg),h=`in element ${s} of "${e}"`;ur(o,a,h);let y=[];if(d)for(let v of d){let g={},b=Y(v,g,"text",qe),w=Y(v,g,"location",Z$);ur(v,g,h),y.push({text:b||"",location:eB(w,h)})}i.push({id:u||"",pluginName:l||n,text:c||"",location:eB(f,h),notes:y,detail:r?r.store(p):-1}),s++}return i}function Vg(t,e){let r=[];for(let n of t){if(typeof n!="string")throw new Error(`${Mr(e)} must be an array of strings`);r.push(n)}return r}function nSe({path:t,contents:e}){let r=null;return{path:t,contents:e,get text(){let n=this.contents;return(r===null||n!==e)&&(e=n,r=yu(n)),r}}}var Fs=H("fs"),tB=H("os"),Ln=H("path"),hu=process.env.ESBUILD_BINARY_PATH||hu,rB="@esbuild/darwin-arm64",nB="@esbuild/darwin-x64",Qg={"win32 arm64 LE":"@esbuild/win32-arm64","win32 ia32 LE":"@esbuild/win32-ia32","win32 x64 LE":"@esbuild/win32-x64"},Jg={"android arm64 LE":"@esbuild/android-arm64","darwin arm64 LE":"@esbuild/darwin-arm64","darwin x64 LE":"@esbuild/darwin-x64","freebsd arm64 LE":"@esbuild/freebsd-arm64","freebsd x64 LE":"@esbuild/freebsd-x64","linux arm LE":"@esbuild/linux-arm","linux arm64 LE":"@esbuild/linux-arm64","linux ia32 LE":"@esbuild/linux-ia32","linux mips64el LE":"@esbuild/linux-mips64el","linux ppc64 LE":"@esbuild/linux-ppc64","linux riscv64 LE":"@esbuild/linux-riscv64","linux s390x BE":"@esbuild/linux-s390x","linux x64 LE":"@esbuild/linux-x64","linux loong64 LE":"@esbuild/linux-loong64","netbsd x64 LE":"@esbuild/netbsd-x64","openbsd x64 LE":"@esbuild/openbsd-x64","sunos x64 LE":"@esbuild/sunos-x64"},iB={"android arm LE":"@esbuild/android-arm","android x64 LE":"@esbuild/android-x64"};function iSe(){let t,e,r=!1,n=`${process.platform} ${tB.arch()} ${tB.endianness()}`;if(n in Qg)t=Qg[n],e="esbuild.exe";else if(n in Jg)t=Jg[n],e="bin/esbuild";else if(n in iB)t=iB[n],e="bin/esbuild",r=!0;else throw new Error(`Unsupported platform: ${n}`);return{pkg:t,subpath:e,isWASM:r}}function sSe(){let t=H.resolve("esbuild"),e=Ln.dirname(Ln.dirname(Ln.dirname(t)));if(Ln.basename(e)==="node_modules"){for(let r in Jg)try{let n=Jg[r];if(Fs.existsSync(Ln.join(e,n)))return n}catch{}for(let r in Qg)try{let n=Qg[r];if(Fs.existsSync(Ln.join(e,n)))return n}catch{}}return null}function oSe(t,e){let r=Ln.dirname(H.resolve("esbuild"));return Ln.join(r,`downloaded-${t.replace("/","-")}-${Ln.basename(e)}`)}function aSe(){if(hu)if(!Fs.existsSync(hu))console.warn(`[esbuild] Ignoring bad configuration: ESBUILD_BINARY_PATH=${hu}`);else return{binPath:hu,isWASM:!1};let{pkg:t,subpath:e,isWASM:r}=iSe(),n;try{n=H.resolve(`${t}/${e}`)}catch(i){if(n=oSe(t,e),!Fs.existsSync(n)){try{H.resolve(t)}catch{let s=sSe();if(s){let o=`
|
|
18
18
|
Specifically the "${s}" package is present but this platform
|
|
19
19
|
needs the "${t}" package instead. People often get into this
|
|
20
20
|
situation by installing esbuild on Windows or macOS and copying "node_modules"
|
|
@@ -75,7 +75,7 @@ error: ${l}`),f=[{id:"",pluginName:"",text:l,location:null,notes:[],detail:void
|
|
|
75
75
|
`&&(i.onlyOneChar||Ws(w)||!xu(w)))||e==="space"&&b===" "&&(i.onlyOneChar||Ws(w)||!xu(w))||(Ic(h),i.err(h(i.errTarget||v.charAt(g))))}function p(h=n.rejectedAfter){let y=i,v=y.source,g=y.index,b=v[g+1];!Ws(b)&&xu(b)&&(Ic(h),i.err(h(i.errTarget||v.charAt(g))))}return{before:s,beforeAllowingIndentation:a,after:o,afterOneOnly:f}}});var p9=m((L2t,d9)=>{"use strict";var EEe=S2(),CEe=$(),DEe=j(),OEe=$e(),wm="at-rule-name-newline-after",f9=CEe(wm,{expectedAfter:t=>`Expected newline after at-rule name "${t}"`}),qEe={url:"https://stylelint.io/user-guide/rules/at-rule-name-newline-after"},_m=t=>{let e=OEe("newline",t,f9);return(r,n)=>{DEe(n,wm,{actual:t,possible:["always","always-multi-line"]})&&EEe({root:r,result:n,locationChecker:e.afterOneOnly,checkedRuleName:wm})}};_m.ruleName=wm;_m.messages=f9;_m.meta=qEe;d9.exports=_m});var ns=m((F2t,h9)=>{"use strict";h9.exports=function(e){let r="";return e.raws.before&&(r+=e.raws.before),r+=e.toString(),r}});var y9=m((I2t,m9)=>{"use strict";var REe=ir(),AEe=Lr(),PEe=ns(),TEe=U(),MEe=$(),LEe=j(),FEe=$e(),xm="at-rule-semicolon-space-before",g9=MEe(xm,{expectedBefore:()=>'Expected single space before ";"',rejectedBefore:()=>'Unexpected whitespace before ";"'}),IEe={url:"https://stylelint.io/user-guide/rules/at-rule-semicolon-space-before"},Sm=t=>{let e=FEe("space",t,g9);return(r,n)=>{LEe(n,xm,{actual:t,possible:["always","never"]})&&r.walkAtRules(s=>{if(REe(s)||!AEe(s))return;let o=PEe(s);e.before({source:o,index:o.length,err:a=>{TEe({message:a,node:s,index:o.length-1,result:n,ruleName:xm})}})})}};Sm.ruleName=xm;Sm.messages=g9;Sm.meta=IEe;m9.exports=Sm});var w9=m((N2t,v9)=>{"use strict";var NEe=S2(),jEe=$(),$Ee=j(),BEe=$e(),km="at-rule-name-space-after",b9=jEe(km,{expectedAfter:t=>`Expected single space after at-rule name "${t}"`}),WEe={url:"https://stylelint.io/user-guide/rules/at-rule-name-space-after",fixable:!0},Em=(t,e,r)=>{let n=BEe("space",t,b9);return(i,s)=>{$Ee(s,km,{actual:t,possible:["always","always-single-line"]})&&NEe({root:i,result:s,locationChecker:n.after,checkedRuleName:km,fix:r.fix?a=>{typeof a.raws.afterName=="string"&&(a.raws.afterName=a.raws.afterName.replace(/^\s*/," "))}:null})}};Em.ruleName=km;Em.messages=b9;Em.meta=WEe;v9.exports=Em});var Su=m((j2t,_9)=>{_9.exports=function(...e){return new Set([...e].reduce((r,n)=>[...r,...n],[]))}});var S9=m(($2t,x9)=>{"use strict";var zEe=Su(),UEe=new Set(["top-left-corner","top-left","top-center","top-right","top-right-corner","bottom-left-corner","bottom-left","bottom-center","bottom-right","bottom-right-corner","left-top","left-middle","left-bottom","right-top","right-middle","right-bottom"]),HEe=zEe(UEe,["annotation","apply","character-variant","charset","container","counter-style","custom-media","custom-selector","document","font-face","font-feature-values","import","keyframes","layer","media","namespace","nest","ornaments","page","property","styleset","stylistic","supports","swash","viewport"]);x9.exports={atKeywords:HEe}});var C9=m((B2t,E9)=>{"use strict";var VEe=Lr(),{atKeywords:GEe}=S9(),KEe=xe(),YEe=U(),QEe=$(),JEe=j(),XEe=rt(),{isRegExp:ZEe,isString:eCe}=re(),Cm="at-rule-no-unknown",k9=QEe(Cm,{rejected:t=>`Unexpected unknown at-rule "${t}"`}),tCe={url:"https://stylelint.io/user-guide/rules/at-rule-no-unknown"},Dm=(t,e)=>(r,n)=>{JEe(n,Cm,{actual:t},{actual:e,possible:{ignoreAtRules:[eCe,ZEe]},optional:!0})&&r.walkAtRules(s=>{if(!VEe(s))return;let o=s.name;if(KEe(e,"ignoreAtRules",s.name)||XEe.prefix(o)||GEe.has(o.toLowerCase()))return;let a=`@${o}`;YEe({message:k9.rejected(a),node:s,ruleName:Cm,result:n,word:a})})};Dm.ruleName=Cm;Dm.messages=k9;Dm.meta=tCe;E9.exports=Dm});var ku=m((W2t,O9)=>{"use strict";var D9=rt(),rCe=new Set(["@-khtml-keyframes","@-moz-keyframes","@-ms-keyframes","@-ms-viewport","@-o-keyframes","@-o-viewport","@-webkit-keyframes","@resolution"]),nCe=new Set([":-moz-any-link",":-moz-full-screen",":-moz-placeholder",":-moz-placeholder-shown",":-moz-read-only",":-moz-read-write",":-ms-fullscreen",":-ms-input-placeholder",":-webkit-any-link",":-webkit-full-screen","::-moz-placeholder","::-moz-selection","::-ms-input-placeholder","::-webkit-backdrop","::-webkit-input-placeholder"]),iCe=new Set(["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","backdrop-filter","backface-visibility","background-clip","background-origin","background-size","border-block-end","border-block-start","border-bottom-left-radius","border-bottom-right-radius","border-image","border-inline-end","border-inline-start","border-radius","border-top-left-radius","border-top-right-radius","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","clip-path","color-adjust","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","flow-from","flow-into","font-feature-settings","font-kerning","font-language-override","font-variant-ligatures","grid-area","grid-column","grid-column-align","grid-column-end","grid-column-start","grid-row","grid-row-align","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hyphens","image-rendering","justify-content","margin-block-end","margin-block-start","margin-inline-end","margin-inline-start","mask","mask-border","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-origin","mask-position","mask-repeat","mask-size","object-fit","object-position","order","overscroll-behavior","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","perspective","perspective-origin","place-self","region-fragment","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","tab-size","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-orientation","text-overflow","text-size-adjust","text-spacing","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","user-select","writing-mode"]),sCe=new Set(["-moz-available","-moz-box","-moz-calc","-moz-crisp-edges","-moz-element","-moz-fit-content","-moz-grab","-moz-grabbing","-moz-inline-box","-moz-isolate","-moz-isolate-override","-moz-linear-gradient","-moz-max-content","-moz-min-content","-moz-plaintext","-moz-radial-gradient","-moz-repeating-linear-gradient","-moz-repeating-radial-gradient","-moz-zoom-in","-moz-zoom-out","-ms-flexbox","-ms-grid","-ms-inline-flexbox","-ms-inline-grid","-ms-linear-gradient","-ms-radial-gradient","-ms-repeating-linear-gradient","-ms-repeating-radial-gradient","-o-linear-gradient","-o-pixelated","-o-radial-gradient","-o-repeating-linear-gradient","-o-repeating-radial-gradient","-webkit-box","-webkit-calc","-webkit-cross-fade","-webkit-fill-available","-webkit-filter","-webkit-fit-content","-webkit-flex","-webkit-grab","-webkit-grabbing","-webkit-image-set","-webkit-inline-box","-webkit-inline-flex","-webkit-isolate","-webkit-linear-gradient","-webkit-max-content","-webkit-min-content","-webkit-optimize-contrast","-webkit-radial-gradient","-webkit-repeating-linear-gradient","-webkit-repeating-radial-gradient","-webkit-sticky","-webkit-zoom-in","-webkit-zoom-out"]);O9.exports={atRuleName(t){return rCe.has(`@${t.toLowerCase()}`)},selector(t){return nCe.has(t.toLowerCase())},mediaFeatureName(t){return t.toLowerCase().includes("device-pixel-ratio")},property(t){let e=t.toLowerCase();return e==="-ms-interpolation-mode"?!0:D9.prefix(e).length===0?!1:iCe.has(D9.unprefixed(e))},propertyValue(t){return sCe.has(t.toLowerCase())},unprefix(t){return t.replace(/-\w+-/,"")}}});var P9=m((z2t,A9)=>{"use strict";var q9=ku(),oCe=Lr(),aCe=U(),uCe=$(),lCe=j(),Om="at-rule-no-vendor-prefix",R9=uCe(Om,{rejected:t=>`Unexpected vendor-prefixed at-rule "@${t}"`}),cCe={url:"https://stylelint.io/user-guide/rules/at-rule-no-vendor-prefix",fixable:!0},qm=(t,e,r)=>(n,i)=>{lCe(i,Om,{actual:t})&&n.walkAtRules(o=>{if(!oCe(o))return;let a=o.name;if(a.startsWith("-")&&q9.atRuleName(a)){if(r.fix){o.name=q9.unprefix(o.name);return}aCe({message:R9.rejected(a),node:o,word:`@${a}`,result:i,ruleName:Om})}})};qm.ruleName=Om;qm.messages=R9;qm.meta=cCe;A9.exports=qm});var Rm=m((U2t,T9)=>{"use strict";T9.exports=function(e){if(e!=null)return Array.isArray(e)?e:[e]}});var qi=m((H2t,M9)=>{"use strict";var{isPlainObject:fCe}=re();M9.exports=function(...e){return r=>fCe(r)?Object.values(r).flat().every(n=>e.some(i=>i(n))):!1}});var I9=m((V2t,F9)=>{"use strict";var dCe=Rm(),pCe=Lr(),hCe=U(),gCe=$(),mCe=qi(),yCe=j(),{isString:bCe}=re(),Am="at-rule-property-required-list",L9=gCe(Am,{expected:(t,e)=>`Expected property "${t}" for at-rule "${e}"`}),vCe={url:"https://stylelint.io/user-guide/rules/at-rule-property-required-list"},Pm=t=>(e,r)=>{yCe(r,Am,{actual:t,possible:[mCe(bCe)]})&&e.walkAtRules(i=>{if(!pCe(i))return;let{name:s,nodes:o}=i,a=s.toLowerCase(),u=dCe(t[a]);if(u)for(let l of u){let c=l.toLowerCase();o.find(d=>d.type==="decl"&&d.prop.toLowerCase()===c)||hCe({message:L9.expected(c,a),node:i,word:`@${i.name}`,result:r,ruleName:Am})}})};Pm.ruleName=Am;Pm.messages=L9;Pm.meta=vCe;F9.exports=Pm});var k2=m((G2t,N9)=>{"use strict";N9.exports=function t(e){return!e||!e.next?null:e.type==="comment"?t(e.next()):e}});var B9=m((K2t,$9)=>{"use strict";var wCe=ir(),_Ce=Lr(),xCe=k2(),SCe=ns(),kCe=U(),ECe=$(),CCe=j(),DCe=$e(),Tm="at-rule-semicolon-newline-after",j9=ECe(Tm,{expectedAfter:()=>'Expected newline after ";"'}),OCe={url:"https://stylelint.io/user-guide/rules/at-rule-semicolon-newline-after",fixable:!0},Mm=(t,e,r)=>{let n=DCe("newline",t,j9);return(i,s)=>{CCe(s,Tm,{actual:t,possible:["always"]})&&i.walkAtRules(a=>{let u=a.next();if(!u||wCe(a)||!_Ce(a))return;let l=xCe(u);l&&n.afterOneOnly({source:SCe(l),index:-1,err:c=>{r.fix?l.raws.before=r.newline+l.raws.before:kCe({message:c,node:a,index:a.toString().length+1,result:s,ruleName:Tm})}})})}};Mm.ruleName=Tm;Mm.messages=j9;Mm.meta=OCe;$9.exports=Mm});var z9=m((Y2t,W9)=>{"use strict";W9.exports=function(e,r){let{raws:n}=e;if(typeof n.after!="string")return e;let i=n.after.split(";"),s=i[i.length-1]||"";return/\r?\n/.test(s)?n.after=n.after.replace(/(\r?\n)/,`${r}$1`):n.after+=r.repeat(2),e}});var zs=m((Q2t,U9)=>{"use strict";var{isAtRule:qCe,isRule:RCe}=Qe();U9.exports=function(e,{noRawBefore:r}={noRawBefore:!1}){let n="",i=e.raws.before||"";if(r||(n+=i),RCe(e))n+=e.selector;else if(qCe(e))n+=`@${e.name}${e.raws.afterName||""}${e.params}`;else return"";return n+=e.raws.between||"",n}});var Sr=m((J2t,H9)=>{"use strict";var ACe=zs(),PCe=ir(),TCe=ns();H9.exports=function(e){return PCe(e)?TCe(e).slice(ACe(e).length):""}});var Us=m((X2t,V9)=>{"use strict";var MCe=ir();V9.exports=function(e){return MCe(e)&&e.nodes.length===0}});var K9=m((Z2t,G9)=>{"use strict";G9.exports=function(e,r){return e.raws.after=e.raws.after?e.raws.after.replace(/(\r?\n\s*\n)+/g,r):"",e}});var Q9=m((eRt,Y9)=>{"use strict";var LCe=z9(),FCe=Sr(),ICe=ir(),NCe=Us(),jCe=No(),$Ce=Oi(),BCe=xe(),WCe=K9(),zCe=U(),UCe=$(),HCe=j(),Lm="block-closing-brace-empty-line-before",E2=UCe(Lm,{expected:"Expected empty line before closing brace",rejected:"Unexpected empty line before closing brace"}),VCe={url:"https://stylelint.io/user-guide/rules/block-closing-brace-empty-line-before",fixable:!0},Fm=(t,e,r)=>(n,i)=>{if(!HCe(i,Lm,{actual:t,possible:["always-multi-line","never"]},{actual:e,possible:{except:["after-closing-brace"]},optional:!0}))return;n.walkRules(o),n.walkAtRules(o);function o(a){if(!ICe(a)||NCe(a))return;let u=(a.raws.after||"").replace(/;+/,""),l=a.toString(),c=l.length-1;l[c-1]==="\r"&&(c-=1);let f=(()=>{let h=a.nodes.map(y=>y.type);return BCe(e,"except","after-closing-brace")&&a.type==="atrule"&&!h.includes("decl")?t==="never":t==="always-multi-line"&&!$Ce(FCe(a))})(),d=jCe(u);if(f===d)return;if(r.fix){let{newline:h}=r;if(typeof h!="string")return;f?LCe(a,h):WCe(a,h);return}let p=f?E2.expected:E2.rejected;zCe({message:p,result:i,ruleName:Lm,node:a,index:c})}};Fm.ruleName=Lm;Fm.messages=E2;Fm.meta=VCe;Y9.exports=Fm});var Z9=m((tRt,X9)=>{"use strict";var GCe=Sr(),KCe=ir(),YCe=xe(),QCe=ns(),JCe=U(),XCe=$(),ZCe=j(),eDe=$e(),{isString:tDe}=re(),Im="block-closing-brace-newline-after",J9=XCe(Im,{expectedAfter:()=>'Expected newline after "}"',expectedAfterSingleLine:()=>'Expected newline after "}" of a single-line block',rejectedAfterSingleLine:()=>'Unexpected whitespace after "}" of a single-line block',expectedAfterMultiLine:()=>'Expected newline after "}" of a multi-line block',rejectedAfterMultiLine:()=>'Unexpected whitespace after "}" of a multi-line block'}),rDe={url:"https://stylelint.io/user-guide/rules/block-closing-brace-newline-after",fixable:!0},Nm=(t,e,r)=>{let n=eDe("newline",t,J9);return(i,s)=>{if(!ZCe(s,Im,{actual:t,possible:["always","always-single-line","never-single-line","always-multi-line","never-multi-line"]},{actual:e,possible:{ignoreAtRules:[tDe]},optional:!0}))return;i.walkRules(a),i.walkAtRules(a);function a(u){if(!KCe(u)||u.type==="atrule"&&YCe(e,"ignoreAtRules",u.name))return;let l=u.next();if(!l)return;let f=l.type==="comment"&&!/[^ ]/.test(l.raws.before||"")&&!l.toString().includes(`
|
|
76
76
|
`)?l.next():l;if(!f)return;let d=u.toString().length,p=QCe(f);p&&p.startsWith(";")&&(p=p.slice(1),d++),n.afterOneOnly({source:p,index:-1,lineCheckStr:GCe(u),err:h=>{if(r.fix){let y=f.raws;if(typeof y.before!="string")return;if(t.startsWith("always")){let v=y.before.search(/\r?\n/);y.before=v>=0?y.before.slice(v):r.newline+y.before;return}if(t.startsWith("never")){y.before="";return}}JCe({message:h,node:u,index:d,result:s,ruleName:Im})}})}}};Nm.ruleName=Im;Nm.messages=J9;Nm.meta=rDe;X9.exports=Nm});var t4=m((rRt,e4)=>{"use strict";var nDe=Sr(),iDe=ir(),sDe=Us(),oDe=Oi(),aDe=U(),uDe=$(),lDe=j(),$m="block-closing-brace-newline-before",jm=uDe($m,{expectedBefore:'Expected newline before "}"',expectedBeforeMultiLine:'Expected newline before "}" of a multi-line block',rejectedBeforeMultiLine:'Unexpected whitespace before "}" of a multi-line block'}),cDe={url:"https://stylelint.io/user-guide/rules/block-closing-brace-newline-before",fixable:!0},Bm=(t,e,r)=>(n,i)=>{if(!lDe(i,$m,{actual:t,possible:["always","always-multi-line","never-multi-line"]}))return;n.walkRules(o),n.walkAtRules(o);function o(a){if(!iDe(a)||sDe(a))return;let u=(a.raws.after||"").replace(/;+/,"");if(u===void 0)return;let l=!oDe(nDe(a)),c=a.toString(),f=c.length-2;c[f-1]==="\r"&&(f-=1),!u.startsWith(`
|
|
77
77
|
`)&&!u.startsWith(`\r
|
|
78
|
-
`)&&(t==="always"?d(jm.expectedBefore):l&&t==="always-multi-line"&&d(jm.expectedBeforeMultiLine)),u!==""&&l&&t==="never-multi-line"&&d(jm.rejectedBeforeMultiLine);function d(p){if(r.fix){let h=a.raws;if(typeof h.after!="string")return;if(t.startsWith("always")){let y=h.after.search(/\s/),v=y>=0?h.after.slice(0,y):h.after,g=y>=0?h.after.slice(y):"",b=g.search(/\r?\n/);h.after=b>=0?v+g.slice(b):v+r.newline+g;return}if(t==="never-multi-line"){h.after=h.after.replace(/\s/g,"");return}}aDe({message:p,result:i,ruleName:$m,node:a,index:f})}}};Bm.ruleName=$m;Bm.messages=jm;Bm.meta=cDe;e4.exports=Bm});var i4=m((nRt,n4)=>{"use strict";var fDe=Sr(),dDe=ir(),pDe=ns(),hDe=U(),gDe=$(),mDe=j(),yDe=$e(),Wm="block-closing-brace-space-after",r4=gDe(Wm,{expectedAfter:()=>'Expected single space after "}"',rejectedAfter:()=>'Unexpected whitespace after "}"',expectedAfterSingleLine:()=>'Expected single space after "}" of a single-line block',rejectedAfterSingleLine:()=>'Unexpected whitespace after "}" of a single-line block',expectedAfterMultiLine:()=>'Expected single space after "}" of a multi-line block',rejectedAfterMultiLine:()=>'Unexpected whitespace after "}" of a multi-line block'}),bDe={url:"https://stylelint.io/user-guide/rules/block-closing-brace-space-after"},zm=t=>{let e=yDe("space",t,r4);return(r,n)=>{if(!mDe(n,Wm,{actual:t,possible:["always","never","always-single-line","never-single-line","always-multi-line","never-multi-line"]}))return;r.walkRules(s),r.walkAtRules(s);function s(o){let a=o.next();if(!a||!dDe(o))return;let u=o.toString().length,l=pDe(a);l&&l.startsWith(";")&&(l=l.slice(1),u++),e.after({source:l,index:-1,lineCheckStr:fDe(o),err:c=>{hDe({message:c,node:o,index:u,result:n,ruleName:Wm})}})}}};zm.ruleName=Wm;zm.messages=r4;zm.meta=bDe;n4.exports=zm});var a4=m((iRt,o4)=>{"use strict";var vDe=Sr(),wDe=ir(),_De=Us(),xDe=U(),SDe=$(),kDe=j(),EDe=$e(),Um="block-closing-brace-space-before",s4=SDe(Um,{expectedBefore:()=>'Expected single space before "}"',rejectedBefore:()=>'Unexpected whitespace before "}"',expectedBeforeSingleLine:()=>'Expected single space before "}" of a single-line block',rejectedBeforeSingleLine:()=>'Unexpected whitespace before "}" of a single-line block',expectedBeforeMultiLine:()=>'Expected single space before "}" of a multi-line block',rejectedBeforeMultiLine:()=>'Unexpected whitespace before "}" of a multi-line block'}),CDe={url:"https://stylelint.io/user-guide/rules/block-closing-brace-space-before",fixable:!0},Hm=(t,e,r)=>{let n=EDe("space",t,s4);return(i,s)=>{if(!kDe(s,Um,{actual:t,possible:["always","never","always-single-line","never-single-line","always-multi-line","never-multi-line"]}))return;i.walkRules(a),i.walkAtRules(a);function a(u){if(!wDe(u)||_De(u))return;let l=vDe(u),c=u.toString(),f=c.length-2;c[f-1]==="\r"&&(f-=1),n.before({source:l,index:l.length-1,err:d=>{if(r.fix){let p=u.raws;if(typeof p.after!="string")return;if(t.startsWith("always")){p.after=p.after.replace(/\s*$/," ");return}if(t.startsWith("never")){p.after=p.after.replace(/\s*$/,"");return}}xDe({message:d,node:u,index:f,result:s,ruleName:Um})}})}}};Hm.ruleName=Um;Hm.messages=s4;Hm.meta=CDe;o4.exports=Hm});var C2=m((sRt,p4)=>{"use strict";var{assertString:DDe}=re(),u4="stylelint-disable",l4="stylelint-disable-line",c4="stylelint-disable-next-line",f4="stylelint-enable",ODe=new Set([u4,l4,c4,f4]);function d4(t){let[e]=t.text.split(/\s/,1);return DDe(e),e}function qDe(t){let e=d4(t);return e!==void 0&&ODe.has(e)}p4.exports={DISABLE_COMMAND:u4,DISABLE_LINE_COMMAND:l4,DISABLE_NEXT_LINE_COMMAND:c4,ENABLE_COMMAND:f4,extractStylelintCommand:d4,isStylelintCommand:qDe}});var m4=m((oRt,g4)=>{"use strict";var RDe=zs(),ADe=ir(),PDe=xe(),TDe=U(),MDe=$(),{isStylelintCommand:LDe}=C2(),{isComment:FDe}=Qe(),IDe=j(),{isBoolean:NDe}=re(),Vm="block-no-empty",h4=MDe(Vm,{rejected:"Unexpected empty block"}),jDe={url:"https://stylelint.io/user-guide/rules/block-no-empty"},Gm=(t,e)=>(r,n)=>{if(!IDe(n,Vm,{actual:t,possible:NDe},{actual:e,possible:{ignore:["comments"]},optional:!0}))return;let s=PDe(e,"ignore","comments");r.walkRules(o),r.walkAtRules(o);function o(u){if(!ADe(u)||a(u))return;let l=RDe(u,{noRawBefore:!0}).length;u.raws.between===void 0&&l--,TDe({message:h4.rejected,node:u,start:u.positionBy({index:l}),result:n,ruleName:Vm})}function a(u){return u.nodes.some(l=>!(FDe(l)&&(s||LDe(l))))}};Gm.ruleName=Vm;Gm.messages=h4;Gm.meta=jDe;g4.exports=Gm});var v4=m((aRt,b4)=>{"use strict";var $De=zs(),BDe=Sr(),WDe=ir(),zDe=Us(),UDe=xe(),HDe=ns(),VDe=U(),GDe=$(),KDe=j(),YDe=$e(),Km="block-opening-brace-newline-after",y4=GDe(Km,{expectedAfter:()=>'Expected newline after "{"',expectedAfterMultiLine:()=>'Expected newline after "{" of a multi-line block',rejectedAfterMultiLine:()=>'Unexpected whitespace after "{" of a multi-line block'}),QDe={url:"https://stylelint.io/user-guide/rules/block-opening-brace-newline-after",fixable:!0},Ym=(t,e,r)=>{let n=YDe("newline",t,y4);return(i,s)=>{if(!KDe(s,Km,{actual:t,possible:["always","rules","always-multi-line","never-multi-line"]},{actual:e,possible:{ignore:["rules"]},optional:!0}))return;UDe(e,"ignore","rules")||i.walkRules(a),i.walkAtRules(a);function a(u){if(!WDe(u)||zDe(u))return;let l=new Map;function c(d){if(!(!d||!d.next)){if(d.type==="comment"){let p=/\r?\n/,h=p.test(d.raws.before||""),y=d.next();return y&&h&&!p.test(y.raws.before||"")&&(l.set(y,y.raws.before),y.raws.before=d.raws.before),c(y)}return d}}let f=c(u.first);if(f){n.afterOneOnly({source:HDe(f),index:-1,lineCheckStr:BDe(u),err:d=>{if(r.fix){let p=f.raws;if(typeof p.before!="string")return;if(t.startsWith("always")){let h=p.before.search(/\r?\n/);p.before=h>=0?p.before.slice(h):r.newline+p.before,l.delete(f);return}if(t==="never-multi-line"){for(let[v,g]of l.entries())v.raws.before=g;l.clear();let h=/\r?\n/,y=u.first;for(;y;){let v=y.raws;if(typeof v.before=="string"){if(h.test(v.before||"")&&(v.before=v.before.replace(/\r?\n/g,"")),y.type!=="comment")break;y=y.next()}}p.before="";return}}VDe({message:d,node:u,index:$De(u,{noRawBefore:!0}).length+1,result:s,ruleName:Km})}});for(let[d,p]of l.entries())d.raws.before=p}}}};Ym.ruleName=Km;Ym.messages=y4;Ym.meta=QDe;b4.exports=Ym});var S4=m((uRt,x4)=>{"use strict";var w4=zs(),JDe=Sr(),XDe=ir(),ZDe=Us(),eOe=U(),tOe=$(),rOe=j(),nOe=$e(),Qm="block-opening-brace-newline-before",_4=tOe(Qm,{expectedBefore:()=>'Expected newline before "{"',expectedBeforeSingleLine:()=>'Expected newline before "{" of a single-line block',rejectedBeforeSingleLine:()=>'Unexpected whitespace before "{" of a single-line block',expectedBeforeMultiLine:()=>'Expected newline before "{" of a multi-line block',rejectedBeforeMultiLine:()=>'Unexpected whitespace before "{" of a multi-line block'}),iOe={url:"https://stylelint.io/user-guide/rules/block-opening-brace-newline-before",fixable:!0},Jm=(t,e,r)=>{let n=nOe("newline",t,_4);return(i,s)=>{if(!rOe(s,Qm,{actual:t,possible:["always","always-single-line","never-single-line","always-multi-line","never-multi-line"]}))return;i.walkRules(a),i.walkAtRules(a);function a(u){if(!XDe(u)||ZDe(u))return;let l=w4(u),c=w4(u,{noRawBefore:!0}),f=c.length-1;c[f-1]==="\r"&&(f-=1),n.beforeAllowingIndentation({lineCheckStr:JDe(u),source:l,index:l.length,err:d=>{if(r.fix){let p=u.raws;if(typeof p.between!="string")return;if(t.startsWith("always")){let h=p.between.search(/\s+$/);h>=0?u.raws.between=p.between.slice(0,h)+r.newline+p.between.slice(h):p.between+=r.newline;return}if(t.startsWith("never")){p.between=p.between.replace(/\s*$/,"");return}}eOe({message:d,node:u,index:f,result:s,ruleName:Qm})}})}}};Jm.ruleName=Qm;Jm.messages=_4;Jm.meta=iOe;x4.exports=Jm});var C4=m((lRt,E4)=>{"use strict";var sOe=zs(),oOe=Sr(),aOe=ir(),uOe=Us(),lOe=xe(),cOe=U(),fOe=$(),dOe=j(),pOe=$e(),Xm="block-opening-brace-space-after",k4=fOe(Xm,{expectedAfter:()=>'Expected single space after "{"',rejectedAfter:()=>'Unexpected whitespace after "{"',expectedAfterSingleLine:()=>'Expected single space after "{" of a single-line block',rejectedAfterSingleLine:()=>'Unexpected whitespace after "{" of a single-line block',expectedAfterMultiLine:()=>'Expected single space after "{" of a multi-line block',rejectedAfterMultiLine:()=>'Unexpected whitespace after "{" of a multi-line block'}),hOe={url:"https://stylelint.io/user-guide/rules/block-opening-brace-space-after",fixable:!0},Zm=(t,e,r)=>{let n=pOe("space",t,k4);return(i,s)=>{if(!dOe(s,Xm,{actual:t,possible:["always","never","always-single-line","never-single-line","always-multi-line","never-multi-line"]},{actual:e,possible:{ignore:["at-rules"]},optional:!0}))return;i.walkRules(a),lOe(e,"ignore","at-rules")||i.walkAtRules(a);function a(u){!aOe(u)||uOe(u)||n.after({source:oOe(u),index:0,err:l=>{if(r.fix){let c=u.first;if(c==null)return;if(t.startsWith("always")){c.raws.before=" ";return}if(t.startsWith("never")){c.raws.before="";return}}cOe({message:l,node:u,index:sOe(u,{noRawBefore:!0}).length+1,result:s,ruleName:Xm})}})}}};Zm.ruleName=Xm;Zm.messages=k4;Zm.meta=hOe;E4.exports=Zm});var T4=m((cRt,P4)=>{"use strict";var D4=zs(),gOe=Sr(),mOe=ir(),yOe=Us(),O4=xe(),bOe=U(),vOe=$(),wOe=j(),_Oe=$e(),{isRegExp:q4,isString:R4}=re(),ey="block-opening-brace-space-before",A4=vOe(ey,{expectedBefore:()=>'Expected single space before "{"',rejectedBefore:()=>'Unexpected whitespace before "{"',expectedBeforeSingleLine:()=>'Expected single space before "{" of a single-line block',rejectedBeforeSingleLine:()=>'Unexpected whitespace before "{" of a single-line block',expectedBeforeMultiLine:()=>'Expected single space before "{" of a multi-line block',rejectedBeforeMultiLine:()=>'Unexpected whitespace before "{" of a multi-line block'}),xOe={url:"https://stylelint.io/user-guide/rules/block-opening-brace-space-before",fixable:!0},ty=(t,e,r)=>{let n=_Oe("space",t,A4);return(i,s)=>{if(!wOe(s,ey,{actual:t,possible:["always","never","always-single-line","never-single-line","always-multi-line","never-multi-line"]},{actual:e,possible:{ignoreAtRules:[R4,q4],ignoreSelectors:[R4,q4]},optional:!0}))return;i.walkRules(a),i.walkAtRules(a);function a(u){if(!mOe(u)||yOe(u)||u.type==="atrule"&&O4(e,"ignoreAtRules",u.name)||u.type==="rule"&&O4(e,"ignoreSelectors",u.selector))return;let l=D4(u),c=D4(u,{noRawBefore:!0}),f=c.length-1;c[f-1]==="\r"&&(f-=1),n.before({source:l,index:l.length,lineCheckStr:gOe(u),err:d=>{if(r.fix){if(t.startsWith("always")){u.raws.between=" ";return}if(t.startsWith("never")){u.raws.between="";return}}bOe({message:d,node:u,index:f,result:s,ruleName:ey})}})}}};ty.ruleName=ey;ty.messages=A4;ty.meta=xOe;P4.exports=ty});var Ri=m((fRt,M4)=>{"use strict";M4.exports=function(e){return!(!e.value||e.value.startsWith("#{"))}});var F4=m((dRt,L4)=>{"use strict";var SOe=Ri();L4.exports=function t(e){if(!SOe(e))return!1;for(let r of e.nodes){if(r.type==="function")return t(r);if(r.type==="word"&&(r.value.startsWith("#")||r.value.startsWith("$")))return!1}return!0}});var B4=m((pRt,$4)=>{"use strict";var kOe=Ae(),EOe=Re(),COe=vt(),DOe=F4(),OOe=U(),qOe=$(),ROe=Bt(),{isValueFunction:AOe}=Qe(),POe=j(),ry="color-function-notation",N4=qOe(ry,{expected:t=>`Expected ${t} color-function notation`}),TOe={url:"https://stylelint.io/user-guide/rules/color-function-notation",fixable:!0},MOe=new Set(["rgba","hsla"]),LOe=new Set(["rgb","rgba","hsl","hsla"]),ny=(t,e,r)=>(n,i)=>{POe(i,ry,{actual:t,possible:["modern","legacy"]})&&n.walkDecls(o=>{let a=!1,u=kOe(COe(o));u.walk(l=>{if(!AOe(l)||!DOe(l))return;let{value:c,sourceIndex:f,sourceEndIndex:d,nodes:p}=l;if(!LOe.has(c.toLowerCase())||t==="modern"&&!I4(l)||t==="legacy"&&I4(l))return;if(r.fix&&t==="modern"){let v=0;l.nodes=p.map(g=>(j4(g)&&(v<2?(g.type="space",g.value=D2(g.after),v++):(g.value="/",g.before=D2(g.before),g.after=D2(g.after))),g)),MOe.has(l.value.toLowerCase())&&(l.value=l.value.slice(0,-1)),a=!0;return}let h=EOe(o)+f,y=h+(d-f);OOe({message:N4.expected(t),node:o,index:h,endIndex:y,result:i,ruleName:ry})}),a&&ROe(o,u.toString())})};function D2(t){return t!==""?t:" "}function j4(t){return t.type==="div"&&t.value===","}function I4(t){return t.nodes&&t.nodes.some(e=>j4(e))}ny.ruleName=ry;ny.messages=N4;ny.meta=TOe;$4.exports=ny});var U4=m((hRt,z4)=>{"use strict";var FOe=Re(),IOe=U(),NOe=$(),jOe=j(),$Oe=Ae(),iy="color-hex-alpha",O2=NOe(iy,{expected:t=>`Expected alpha channel in "${t}"`,unexpected:t=>`Unexpected alpha channel in "${t}"`}),BOe={url:"https://stylelint.io/user-guide/rules/color-hex-alpha"},WOe=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i,sy=t=>(e,r)=>{jOe(r,iy,{actual:t,possible:["always","never"]})&&e.walkDecls(i=>{$Oe(i.value).walk(o=>{if(zOe(o))return!1;if(!UOe(o))return;let{value:a}=o;if(t==="always"&&W4(a)||t==="never"&&!W4(a))return;let u=FOe(i)+o.sourceIndex,l=u+a.length;IOe({message:t==="never"?O2.unexpected(a):O2.expected(a),node:i,index:u,endIndex:l,result:r,ruleName:iy})})})};function zOe({type:t,value:e}){return t==="function"&&e==="url"}function UOe({type:t,value:e}){return t==="word"&&WOe.test(e)}function W4(t){return t.length===5||t.length===9}sy.ruleName=iy;sy.messages=O2;sy.meta=BOe;z4.exports=sy});var G4=m((gRt,V4)=>{"use strict";var HOe=Ae(),VOe=Re(),GOe=vt(),KOe=U(),YOe=$(),QOe=Bt(),JOe=j(),oy="color-hex-case",H4=YOe(oy,{expected:(t,e)=>`Expected "${t}" to be "${e}"`}),XOe={url:"https://stylelint.io/user-guide/rules/color-hex-case",fixable:!0},ZOe=/^#[0-9A-Za-z]+/,eqe=new Set(["url"]),ay=(t,e,r)=>(n,i)=>{JOe(i,oy,{actual:t,possible:["lower","upper"]})&&n.walkDecls(o=>{let a=HOe(GOe(o)),u=!1;a.walk(l=>{let{value:c}=l;if(tqe(l))return!1;if(!rqe(l))return;let f=t==="lower"?c.toLowerCase():c.toUpperCase();if(c!==f){if(r.fix){l.value=f,u=!0;return}KOe({message:H4.expected(c,f),node:o,index:VOe(o)+l.sourceIndex,result:i,ruleName:oy})}}),u&&QOe(o,a.toString())})};function tqe({type:t,value:e}){return t==="function"&&eqe.has(e.toLowerCase())}function rqe({type:t,value:e}){return t==="word"&&ZOe.test(e)}ay.ruleName=oy;ay.messages=H4;ay.meta=XOe;V4.exports=ay});var Q4=m((mRt,Y4)=>{"use strict";var nqe=Ae(),iqe=Re(),sqe=vt(),oqe=U(),aqe=$(),uqe=Bt(),lqe=j(),uy="color-hex-length",K4=aqe(uy,{expected:(t,e)=>`Expected "${t}" to be "${e}"`}),cqe={url:"https://stylelint.io/user-guide/rules/color-hex-length",fixable:!0},fqe=/^#[0-9A-Za-z]+/,dqe=new Set(["url"]),ly=(t,e,r)=>(n,i)=>{lqe(i,uy,{actual:t,possible:["short","long"]})&&n.walkDecls(o=>{let a=nqe(sqe(o)),u=!1;a.walk(l=>{let{value:c}=l;if(mqe(l))return!1;if(!yqe(l)||t==="long"&&c.length!==4&&c.length!==5||t==="short"&&(c.length<6||!pqe(c)))return;let d=(t==="long"?gqe:hqe)(c);if(r.fix){l.value=d,u=!0;return}let p=iqe(o)+l.sourceIndex,h=p+l.value.length;oqe({message:K4.expected(c,d),node:o,index:p,endIndex:h,result:i,ruleName:uy})}),u&&uqe(o,a.toString())})};function pqe(t){return t=t.toLowerCase(),t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]&&(t.length===7||t.length===9&&t[7]===t[8])}function hqe(t){let e="#";for(let r=1;r<t.length;r+=2)e+=t[r];return e}function gqe(t){let e="#";for(let r=1;r<t.length;r++)e+=t.charAt(r).repeat(2);return e}function mqe({type:t,value:e}){return t==="function"&&dqe.has(e.toLowerCase())}function yqe({type:t,value:e}){return t==="word"&&fqe.test(e)}ly.ruleName=uy;ly.messages=K4;ly.meta=cqe;Y4.exports=ly});var Eu=m((yRt,J4)=>{"use strict";var bqe=new Set(["animation","animation-name","font","font-family","counter-increment","grid-row","grid-column","grid-area","list-style","list-style-type"]),vqe=new Map([["animation",new Set(["animation-name","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state"])],["background",new Set(["background-image","background-size","background-position","background-repeat","background-origin","background-clip","background-attachment","background-color"])],["border",new Set(["border-top-width","border-bottom-width","border-left-width","border-right-width","border-top-style","border-bottom-style","border-left-style","border-right-style","border-top-color","border-bottom-color","border-left-color","border-right-color"])],["border-block-end",new Set(["border-block-end-width","border-block-end-style","border-block-end-color"])],["border-block-start",new Set(["border-block-start-width","border-block-start-style","border-block-start-color"])],["border-bottom",new Set(["border-bottom-width","border-bottom-style","border-bottom-color"])],["border-color",new Set(["border-top-color","border-bottom-color","border-left-color","border-right-color"])],["border-image",new Set(["border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"])],["border-inline-end",new Set(["border-inline-end-width","border-inline-end-style","border-inline-end-color"])],["border-inline-start",new Set(["border-inline-start-width","border-inline-start-style","border-inline-start-color"])],["border-left",new Set(["border-left-width","border-left-style","border-left-color"])],["border-radius",new Set(["border-top-right-radius","border-top-left-radius","border-bottom-right-radius","border-bottom-left-radius"])],["border-right",new Set(["border-right-width","border-right-style","border-right-color"])],["border-style",new Set(["border-top-style","border-bottom-style","border-left-style","border-right-style"])],["border-top",new Set(["border-top-width","border-top-style","border-top-color"])],["border-width",new Set(["border-top-width","border-bottom-width","border-left-width","border-right-width"])],["column-rule",new Set(["column-rule-width","column-rule-style","column-rule-color"])],["columns",new Set(["column-width","column-count"])],["flex",new Set(["flex-grow","flex-shrink","flex-basis"])],["flex-flow",new Set(["flex-direction","flex-wrap"])],["font",new Set(["font-style","font-variant","font-weight","font-stretch","font-size","font-family","line-height"])],["grid",new Set(["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-rows","grid-auto-columns","grid-auto-flow","grid-column-gap","grid-row-gap"])],["grid-area",new Set(["grid-row-start","grid-column-start","grid-row-end","grid-column-end"])],["grid-column",new Set(["grid-column-start","grid-column-end"])],["grid-gap",new Set(["grid-row-gap","grid-column-gap"])],["grid-row",new Set(["grid-row-start","grid-row-end"])],["grid-template",new Set(["grid-template-columns","grid-template-rows","grid-template-areas"])],["list-style",new Set(["list-style-type","list-style-position","list-style-image"])],["margin",new Set(["margin-top","margin-bottom","margin-left","margin-right"])],["mask",new Set(["mask-image","mask-mode","mask-position","mask-size","mask-repeat","mask-origin","mask-clip","mask-composite"])],["outline",new Set(["outline-color","outline-style","outline-width"])],["padding",new Set(["padding-top","padding-bottom","padding-left","padding-right"])],["text-decoration",new Set(["text-decoration-color","text-decoration-style","text-decoration-line"])],["text-emphasis",new Set(["text-emphasis-style","text-emphasis-color"])],["transition",new Set(["transition-delay","transition-duration","transition-property","transition-timing-function"])]]),wqe=new Set(["transition-duration","transition-delay","animation-duration","animation-delay"]),_qe=new Set(["transition","animation"]);J4.exports={acceptCustomIdentsProperties:bqe,longhandSubPropertiesOfShorthandProperties:vqe,longhandTimeProperties:wqe,shorthandTimeProperties:_qe}});var l7=m(jo=>{Object.defineProperty(jo,"__esModule",{value:!0});var xqe={grad:.9,turn:360,rad:360/(2*Math.PI)},is=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},ur=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},In=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},s7=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},X4=function(t){return{r:In(t.r,0,255),g:In(t.g,0,255),b:In(t.b,0,255),a:In(t.a)}},q2=function(t){return{r:ur(t.r),g:ur(t.g),b:ur(t.b),a:ur(t.a,3)}},Sqe=/^#([0-9a-f]{3,8})$/i,cy=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},o7=function(t){var e=t.r,r=t.g,n=t.b,i=t.a,s=Math.max(e,r,n),o=s-Math.min(e,r,n),a=o?s===e?(r-n)/o:s===r?2+(n-e)/o:4+(e-r)/o:0;return{h:60*(a<0?a+6:a),s:s?o/s*100:0,v:s/255*100,a:i}},a7=function(t){var e=t.h,r=t.s,n=t.v,i=t.a;e=e/360*6,r/=100,n/=100;var s=Math.floor(e),o=n*(1-r),a=n*(1-(e-s)*r),u=n*(1-(1-e+s)*r),l=s%6;return{r:255*[n,a,o,o,u,n][l],g:255*[u,n,n,a,o,o][l],b:255*[o,o,u,n,n,a][l],a:i}},Z4=function(t){return{h:s7(t.h),s:In(t.s,0,100),l:In(t.l,0,100),a:In(t.a)}},e7=function(t){return{h:ur(t.h),s:ur(t.s),l:ur(t.l),a:ur(t.a,3)}},t7=function(t){return a7((r=(e=t).s,{h:e.h,s:(r*=((n=e.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:e.a}));var e,r,n},Nc=function(t){return{h:(e=o7(t)).h,s:(i=(200-(r=e.s))*(n=e.v)/100)>0&&i<200?r*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,r,n,i},kqe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Eqe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Cqe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Dqe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,P2={string:[[function(t){var e=Sqe.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?ur(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?ur(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=Cqe.exec(t)||Dqe.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:X4({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=kqe.exec(t)||Eqe.exec(t);if(!e)return null;var r,n,i=Z4({h:(r=e[1],n=e[2],n===void 0&&(n="deg"),Number(r)*(xqe[n]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return t7(i)},"hsl"]],object:[[function(t){var e=t.r,r=t.g,n=t.b,i=t.a,s=i===void 0?1:i;return is(e)&&is(r)&&is(n)?X4({r:Number(e),g:Number(r),b:Number(n),a:Number(s)}):null},"rgb"],[function(t){var e=t.h,r=t.s,n=t.l,i=t.a,s=i===void 0?1:i;if(!is(e)||!is(r)||!is(n))return null;var o=Z4({h:Number(e),s:Number(r),l:Number(n),a:Number(s)});return t7(o)},"hsl"],[function(t){var e=t.h,r=t.s,n=t.v,i=t.a,s=i===void 0?1:i;if(!is(e)||!is(r)||!is(n))return null;var o=function(a){return{h:s7(a.h),s:In(a.s,0,100),v:In(a.v,0,100),a:In(a.a)}}({h:Number(e),s:Number(r),v:Number(n),a:Number(s)});return a7(o)},"hsv"]]},r7=function(t,e){for(var r=0;r<e.length;r++){var n=e[r][0](t);if(n)return[n,e[r][1]]}return[null,void 0]},u7=function(t){return typeof t=="string"?r7(t.trim(),P2.string):typeof t=="object"&&t!==null?r7(t,P2.object):[null,void 0]},R2=function(t,e){var r=Nc(t);return{h:r.h,s:In(r.s+100*e,0,100),l:r.l,a:r.a}},A2=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},n7=function(t,e){var r=Nc(t);return{h:r.h,s:r.s,l:In(r.l+100*e,0,100),a:r.a}},jc=function(){function t(e){this.parsed=u7(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return ur(A2(this.rgba),2)},t.prototype.isDark=function(){return A2(this.rgba)<.5},t.prototype.isLight=function(){return A2(this.rgba)>=.5},t.prototype.toHex=function(){return e=q2(this.rgba),r=e.r,n=e.g,i=e.b,o=(s=e.a)<1?cy(ur(255*s)):"","#"+cy(r)+cy(n)+cy(i)+o;var e,r,n,i,s,o},t.prototype.toRgb=function(){return q2(this.rgba)},t.prototype.toRgbString=function(){return e=q2(this.rgba),r=e.r,n=e.g,i=e.b,(s=e.a)<1?"rgba("+r+", "+n+", "+i+", "+s+")":"rgb("+r+", "+n+", "+i+")";var e,r,n,i,s},t.prototype.toHsl=function(){return e7(Nc(this.rgba))},t.prototype.toHslString=function(){return e=e7(Nc(this.rgba)),r=e.h,n=e.s,i=e.l,(s=e.a)<1?"hsla("+r+", "+n+"%, "+i+"%, "+s+")":"hsl("+r+", "+n+"%, "+i+"%)";var e,r,n,i,s},t.prototype.toHsv=function(){return e=o7(this.rgba),{h:ur(e.h),s:ur(e.s),v:ur(e.v),a:ur(e.a,3)};var e},t.prototype.invert=function(){return Ai({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),Ai(R2(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),Ai(R2(this.rgba,-e))},t.prototype.grayscale=function(){return Ai(R2(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),Ai(n7(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),Ai(n7(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?Ai({r:(r=this.rgba).r,g:r.g,b:r.b,a:e}):ur(this.rgba.a,3);var r},t.prototype.hue=function(e){var r=Nc(this.rgba);return typeof e=="number"?Ai({h:e,s:r.s,l:r.l,a:r.a}):ur(r.h)},t.prototype.isEqual=function(e){return this.toHex()===Ai(e).toHex()},t}(),Ai=function(t){return t instanceof jc?t:new jc(t)},i7=[];jo.Colord=jc,jo.colord=Ai,jo.extend=function(t){t.forEach(function(e){i7.indexOf(e)<0&&(e(jc,P2),i7.push(e))})},jo.getFormat=function(t){return u7(t)[1]},jo.random=function(){return new jc({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})}});var f7=m((vRt,c7)=>{c7.exports=function(t,e){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var i in r)n[r[i]]=i;var s={};t.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,u,l=n[this.toHex()];if(l)return l;if(o?.closest){var c=this.toRgb(),f=1/0,d="black";if(!s.length)for(var p in r)s[p]=new t(r[p]).toRgb();for(var h in r){var y=(a=c,u=s[h],Math.pow(a.r-u.r,2)+Math.pow(a.g-u.g,2)+Math.pow(a.b-u.b,2));y<f&&(f=y,d=h)}return d}},e.string.push([function(o){var a=o.toLowerCase(),u=a==="transparent"?"#0000":r[a];return u?new t(u).toRgb():null},"name"])}});var y7=m((wRt,m7)=>{var Oqe={grad:.9,turn:360,rad:360/(2*Math.PI)},T2=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},fy=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},M2=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},h7=function(t){return{h:(e=t.h,(e=isFinite(e)?e%360:0)>0?e:e+360),w:M2(t.w,0,100),b:M2(t.b,0,100),a:M2(t.a)};var e},d7=function(t){return{h:fy(t.h),w:fy(t.w),b:fy(t.b),a:fy(t.a,3)}},p7=function(t){return{h:function(e){var r=e.r,n=e.g,i=e.b,s=e.a,o=Math.max(r,n,i),a=o-Math.min(r,n,i),u=a?o===r?(n-i)/a:o===n?2+(i-r)/a:4+(r-n)/a:0;return{h:60*(u<0?u+6:u),s:o?a/o*100:0,v:o/255*100,a:s}}(t).h,w:Math.min(t.r,t.g,t.b)/255*100,b:100-Math.max(t.r,t.g,t.b)/255*100,a:t.a}},g7=function(t){return function(e){var r=e.h,n=e.s,i=e.v,s=e.a;r=r/360*6,n/=100,i/=100;var o=Math.floor(r),a=i*(1-n),u=i*(1-(r-o)*n),l=i*(1-(1-r+o)*n),c=o%6;return{r:255*[i,u,a,a,l,i][c],g:255*[l,i,i,u,a,a][c],b:255*[a,a,l,i,i,u][c],a:s}}({h:t.h,s:t.b===100?0:100-t.w/(100-t.b)*100,v:100-t.b,a:t.a})},qqe=function(t){var e=t.h,r=t.w,n=t.b,i=t.a,s=i===void 0?1:i;if(!T2(e)||!T2(r)||!T2(n))return null;var o=h7({h:Number(e),w:Number(r),b:Number(n),a:Number(s)});return g7(o)},Rqe=/^hwb\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Aqe=function(t){var e=Rqe.exec(t);if(!e)return null;var r,n,i=h7({h:(r=e[1],n=e[2],n===void 0&&(n="deg"),Number(r)*(Oqe[n]||1)),w:Number(e[3]),b:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return g7(i)};m7.exports=function(t,e){t.prototype.toHwb=function(){return d7(p7(this.rgba))},t.prototype.toHwbString=function(){return r=d7(p7(this.rgba)),n=r.h,i=r.w,s=r.b,(o=r.a)<1?"hwb("+n+" "+i+"% "+s+"% / "+o+")":"hwb("+n+" "+i+"% "+s+"%)";var r,n,i,s,o},e.string.push([Aqe,"hwb"]),e.object.push([qqe,"hwb"])}});var v7=m((_Rt,b7)=>{var L2=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},$c=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},ii=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},F2=function(t){var e=t/255;return e<.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},I2=function(t){return 255*(t>.0031308?1.055*Math.pow(t,.4166666666666667)-.055:12.92*t)},N2=96.422,j2=100,$2=82.521,Pqe=function(t){var e,r,n={x:.9555766*(e=t).x+-.0230393*e.y+.0631636*e.z,y:-.0282895*e.x+1.0099416*e.y+.0210077*e.z,z:.0122982*e.x+-.020483*e.y+1.3299098*e.z};return r={r:I2(.032404542*n.x-.015371385*n.y-.004985314*n.z),g:I2(-.00969266*n.x+.018760108*n.y+41556e-8*n.z),b:I2(556434e-9*n.x-.002040259*n.y+.010572252*n.z),a:t.a},{r:ii(r.r,0,255),g:ii(r.g,0,255),b:ii(r.b,0,255),a:ii(r.a)}},Tqe=function(t){var e=F2(t.r),r=F2(t.g),n=F2(t.b);return function(i){return{x:ii(i.x,0,N2),y:ii(i.y,0,j2),z:ii(i.z,0,$2),a:ii(i.a)}}(function(i){return{x:1.0478112*i.x+.0228866*i.y+-.050127*i.z,y:.0295424*i.x+.9904844*i.y+-.0170491*i.z,z:-.0092345*i.x+.0150436*i.y+.7521316*i.z,a:i.a}}({x:100*(.4124564*e+.3575761*r+.1804375*n),y:100*(.2126729*e+.7151522*r+.072175*n),z:100*(.0193339*e+.119192*r+.9503041*n),a:t.a}))},Bc=216/24389,Cu=24389/27,Mqe=function(t){var e=t.l,r=t.a,n=t.b,i=t.alpha,s=i===void 0?1:i;if(!L2(e)||!L2(r)||!L2(n))return null;var o=function(a){return{l:ii(a.l,0,400),a:a.a,b:a.b,alpha:ii(a.alpha)}}({l:Number(e),a:Number(r),b:Number(n),alpha:Number(s)});return Lqe(o)},Lqe=function(t){var e=(t.l+16)/116,r=t.a/500+e,n=e-t.b/200;return Pqe({x:(Math.pow(r,3)>Bc?Math.pow(r,3):(116*r-16)/Cu)*N2,y:(t.l>8?Math.pow((t.l+16)/116,3):t.l/Cu)*j2,z:(Math.pow(n,3)>Bc?Math.pow(n,3):(116*n-16)/Cu)*$2,a:t.alpha})};b7.exports=function(t,e){t.prototype.toLab=function(){return n=Tqe(this.rgba),s=n.y/j2,o=n.z/$2,i=(i=n.x/N2)>Bc?Math.cbrt(i):(Cu*i+16)/116,r={l:116*(s=s>Bc?Math.cbrt(s):(Cu*s+16)/116)-16,a:500*(i-s),b:200*(s-(o=o>Bc?Math.cbrt(o):(Cu*o+16)/116)),alpha:n.a},{l:$c(r.l,2),a:$c(r.a,2),b:$c(r.b,2),alpha:$c(r.alpha,3)};var r,n,i,s,o},t.prototype.delta=function(r){r===void 0&&(r="#FFF");var n=r instanceof t?r:new t(r),i=function(s,o){var a=s.l,u=s.a,l=s.b,c=o.l,f=o.a,d=o.b,p=180/Math.PI,h=Math.PI/180,y=Math.pow(Math.pow(u,2)+Math.pow(l,2),.5),v=Math.pow(Math.pow(f,2)+Math.pow(d,2),.5),g=(a+c)/2,b=Math.pow((y+v)/2,7),w=.5*(1-Math.pow(b/(b+Math.pow(25,7)),.5)),_=u*(1+w),S=f*(1+w),q=Math.pow(Math.pow(_,2)+Math.pow(l,2),.5),C=Math.pow(Math.pow(S,2)+Math.pow(d,2),.5),R=(q+C)/2,O=_===0&&l===0?0:Math.atan2(l,_)*p,z=S===0&&d===0?0:Math.atan2(d,S)*p;O<0&&(O+=360),z<0&&(z+=360);var F=z-O,te=Math.abs(z-O);te>180&&z<=O?F+=360:te>180&&z>O&&(F-=360);var K=O+z;te<=180?K/=2:K=(O+z<360?K+360:K-360)/2;var ue=1-.17*Math.cos(h*(K-30))+.24*Math.cos(2*h*K)+.32*Math.cos(h*(3*K+6))-.2*Math.cos(h*(4*K-63)),L=c-a,M=C-q,ae=2*Math.sin(h*F/2)*Math.pow(q*C,.5),ne=1+.015*Math.pow(g-50,2)/Math.pow(20+Math.pow(g-50,2),.5),de=1+.045*R,le=1+.015*R*ue,se=30*Math.exp(-1*Math.pow((K-275)/25,2)),he=-2*Math.pow(b/(b+Math.pow(25,7)),.5)*Math.sin(2*h*se);return Math.pow(Math.pow(L/1/ne,2)+Math.pow(M/1/de,2)+Math.pow(ae/1/le,2)+he*M*ae/(1*de*1*le),.5)}(this.toLab(),n.toLab())/100;return ii($c(i,3))},e.object.push([Mqe,"lab"])}});var E7=m((xRt,k7)=>{var Fqe={grad:.9,turn:360,rad:360/(2*Math.PI)},B2=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},Du=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},ss=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},W2=function(t){var e=t/255;return e<.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},z2=function(t){return 255*(t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t)},U2=96.422,H2=100,V2=82.521,Iqe=function(t){var e,r,n={x:.9555766*(e=t).x+-.0230393*e.y+.0631636*e.z,y:-.0282895*e.x+1.0099416*e.y+.0210077*e.z,z:.0122982*e.x+-.020483*e.y+1.3299098*e.z};return r={r:z2(.032404542*n.x-.015371385*n.y-.004985314*n.z),g:z2(-.00969266*n.x+.018760108*n.y+41556e-8*n.z),b:z2(556434e-9*n.x-.002040259*n.y+.010572252*n.z),a:t.a},{r:ss(r.r,0,255),g:ss(r.g,0,255),b:ss(r.b,0,255),a:ss(r.a)}},Nqe=function(t){var e=W2(t.r),r=W2(t.g),n=W2(t.b);return function(i){return{x:ss(i.x,0,U2),y:ss(i.y,0,H2),z:ss(i.z,0,V2),a:ss(i.a)}}(function(i){return{x:1.0478112*i.x+.0228866*i.y+-.050127*i.z,y:.0295424*i.x+.9904844*i.y+-.0170491*i.z,z:-.0092345*i.x+.0150436*i.y+.7521316*i.z,a:i.a}}({x:100*(.4124564*e+.3575761*r+.1804375*n),y:100*(.2126729*e+.7151522*r+.072175*n),z:100*(.0193339*e+.119192*r+.9503041*n),a:t.a}))},Wc=216/24389,Ou=24389/27,x7=function(t){return{l:ss(t.l,0,100),c:t.c,h:(e=t.h,(e=isFinite(e)?e%360:0)>0?e:e+360),a:t.a};var e},w7=function(t){return{l:Du(t.l,2),c:Du(t.c,2),h:Du(t.h,2),a:Du(t.a,3)}},jqe=function(t){var e=t.l,r=t.c,n=t.h,i=t.a,s=i===void 0?1:i;if(!B2(e)||!B2(r)||!B2(n))return null;var o=x7({l:Number(e),c:Number(r),h:Number(n),a:Number(s)});return S7(o)},_7=function(t){var e=function(s){var o=Nqe(s),a=o.x/U2,u=o.y/H2,l=o.z/V2;return a=a>Wc?Math.cbrt(a):(Ou*a+16)/116,{l:116*(u=u>Wc?Math.cbrt(u):(Ou*u+16)/116)-16,a:500*(a-u),b:200*(u-(l=l>Wc?Math.cbrt(l):(Ou*l+16)/116)),alpha:o.a}}(t),r=Du(e.a,3),n=Du(e.b,3),i=Math.atan2(n,r)/Math.PI*180;return{l:e.l,c:Math.sqrt(r*r+n*n),h:i<0?i+360:i,a:e.alpha}},S7=function(t){return e={l:t.l,a:t.c*Math.cos(t.h*Math.PI/180),b:t.c*Math.sin(t.h*Math.PI/180),alpha:t.a},n=e.a/500+(r=(e.l+16)/116),i=r-e.b/200,Iqe({x:(Math.pow(n,3)>Wc?Math.pow(n,3):(116*n-16)/Ou)*U2,y:(e.l>8?Math.pow((e.l+16)/116,3):e.l/Ou)*H2,z:(Math.pow(i,3)>Wc?Math.pow(i,3):(116*i-16)/Ou)*V2,a:e.alpha});var e,r,n,i},$qe=/^lch\(\s*([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)\s+([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Bqe=function(t){var e=$qe.exec(t);if(!e)return null;var r,n,i=x7({l:Number(e[1]),c:Number(e[2]),h:(r=e[3],n=e[4],n===void 0&&(n="deg"),Number(r)*(Fqe[n]||1)),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return S7(i)};k7.exports=function(t,e){t.prototype.toLch=function(){return w7(_7(this.rgba))},t.prototype.toLchString=function(){return r=w7(_7(this.rgba)),n=r.l,i=r.c,s=r.h,(o=r.a)<1?"lch("+n+"% "+i+" "+s+" / "+o+")":"lch("+n+"% "+i+" "+s+")";var r,n,i,s,o},e.string.push([Bqe,"lch"]),e.object.push([jqe,"lch"])}});var O7=m((SRt,D7)=>{var{colord:G2,extend:Wqe}=l7(),C7=Ae(),zqe=f7(),Uqe=y7(),Hqe=v7(),Vqe=E7();Wqe([zqe,Uqe,Hqe,Vqe,(t,e)=>{e.string.push([Gqe,"hwb-with-comma"])},(t,e)=>{e.string.push([Kqe,"gray"])}]);D7.exports={colord:G2};function Gqe(t){if(t=t.toLowerCase(),!t.startsWith("hwb(")||!t.endsWith(")")||t.includes("/"))return null;let[e,r="",n="",i,...s]=t.slice(4,-1).split(",");if(!e||!e.trim()||!r.trim()||!n.trim()||s.length>0)return null;let o=G2(`hwb(${e} ${r} ${n}${i?` / ${i}`:""})`);return o.isValid()?o.rgba:null}function Kqe(t){if(t=t.toLowerCase(),!t.startsWith("gray(")||!t.endsWith(")"))return null;let[e,r,...n]=t.slice(5,-1).split(",");if(!e||n.length>0)return null;let i=C7.unit(e.trim());if(!i||!["","%"].includes(i.unit))return null;let s={l:Number(i.number),a:0,b:0};if(r){let o=C7.unit(r.trim());if(!o||!["","%"].includes(o.unit))return null;s={...s,alpha:Number(o.number)/(o.unit?100:1)}}return G2(s).rgba}});var M7=m((kRt,T7)=>{"use strict";var q7=Re(),Yqe=Ri(),Qqe=hn(),R7=xe(),{acceptCustomIdentsProperties:Jqe}=Eu(),Xqe=U(),Zqe=$(),e2e=j(),A7=Ae(),{isRegExp:t2e,isString:r2e}=re(),{colord:P7}=O7(),dy="color-named",K2=Zqe(dy,{expected:(t,e)=>`Expected "${e}" to be "${t}"`,rejected:t=>`Unexpected named color "${t}"`}),n2e={url:"https://stylelint.io/user-guide/rules/color-named"},i2e=new Set(["word","function"]),py=(t,e)=>(r,n)=>{if(!e2e(n,dy,{actual:t,possible:["never","always-where-possible"]},{actual:e,possible:{ignoreProperties:[r2e,t2e],ignore:["inside-function"]},optional:!0}))return;r.walkDecls(o=>{Jqe.has(o.prop)||R7(e,"ignoreProperties",o.prop)||A7(o.value).walk(a=>{let u=a.value,l=a.type,c=a.sourceIndex;if(R7(e,"ignore","inside-function")&&l==="function"||!Yqe(a))return!1;if(!Qqe(u)||!i2e.has(l))return;if(t==="never"&&l==="word"&&/^[a-z]+$/iu.test(u)&&u.toLowerCase()!=="transparent"&&P7(u).isValid()){s(K2.rejected(u),o,q7(o)+c,u.length);return}if(t!=="always-where-possible")return;let f=null,d=null;if(l==="function")f=A7.stringify(a),d=f.replace(/\s*([,/()])\s*/g,"$1").replace(/\s{2,}/g," ");else if(l==="word"&&u.startsWith("#"))f=d=u;else return;let p=P7(d);if(!p.isValid())return;let h=p.toName();h&&h.toLowerCase()!=="transparent"&&s(K2.expected(h,d),o,q7(o)+c,f.length)})});function s(o,a,u,l){Xqe({result:n,ruleName:dy,message:o,node:a,index:u,endIndex:u+l})}};py.ruleName=dy;py.messages=K2;py.meta=n2e;T7.exports=py});var I7=m((ERt,F7)=>{"use strict";var s2e=Ae(),o2e=Re(),a2e=vt(),u2e=U(),l2e=$(),c2e=j(),hy="color-no-hex",L7=l2e(hy,{rejected:t=>`Unexpected hex color "${t}"`}),f2e={url:"https://stylelint.io/user-guide/rules/color-no-hex"},d2e=/^#[0-9A-Za-z]+/,p2e=new Set(["url"]),gy=t=>(e,r)=>{c2e(r,hy,{actual:t})&&e.walkDecls(i=>{s2e(a2e(i)).walk(o=>{if(h2e(o))return!1;if(!g2e(o))return;let a=o2e(i)+o.sourceIndex,u=a+o.value.length;u2e({message:L7.rejected,messageArgs:[o.value],node:i,index:a,endIndex:u,result:r,ruleName:hy})})})};function h2e({type:t,value:e}){return t==="function"&&p2e.has(e.toLowerCase())}function g2e({type:t,value:e}){return t==="word"&&d2e.test(e)}gy.ruleName=hy;gy.messages=L7;gy.meta=f2e;F7.exports=gy});var j7=m((CRt,N7)=>{"use strict";N7.exports=function(e){return!e.includes("[")}});var B7=m((DRt,$7)=>{"use strict";$7.exports=function(e){return/^#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e)}});var U7=m((ORt,z7)=>{"use strict";var m2e=Re(),y2e=j7(),b2e=B7(),v2e=U(),w2e=$(),_2e=j(),x2e=Ae(),my="color-no-invalid-hex",W7=w2e(my,{rejected:t=>`Unexpected invalid hex color "${t}"`}),S2e={url:"https://stylelint.io/user-guide/rules/color-no-invalid-hex"},yy=t=>(e,r)=>{_2e(r,my,{actual:t})&&e.walkDecls(i=>{y2e(i.value)&&x2e(i.value).walk(({value:s,type:o,sourceIndex:a})=>{if(o==="function"&&s.endsWith("url"))return!1;if(o!=="word")return;let u=/^#[0-9A-Za-z]+/.exec(s);if(!u)return;let l=u[0];if(!l||b2e(l))return;let c=m2e(i)+a,f=c+l.length;v2e({message:W7.rejected(l),node:i,index:c,endIndex:f,result:r,ruleName:my})})})};yy.ruleName=my;yy.messages=W7;yy.meta=S2e;z7.exports=yy});var qu=m((qRt,H7)=>{"use strict";H7.exports=function(e){return!("inline"in e||"inline"in e.raws)}});var G7=m((RRt,V7)=>{"use strict";var k2e=vu(),E2e=No(),C2e=Tc(),D2e=wu(),O2e=Mc(),q2e=gm(),R2e=qu(),by=xe(),A2e=_u(),P2e=U(),T2e=$(),M2e=j(),{isRegExp:L2e,isString:F2e}=re(),vy="comment-empty-line-before",Y2=T2e(vy,{expected:"Expected empty line before comment",rejected:"Unexpected empty line before comment"}),I2e={url:"https://stylelint.io/user-guide/rules/comment-empty-line-before",fixable:!0},N2e="stylelint-",wy=(t,e,r)=>(n,i)=>{M2e(i,vy,{actual:t,possible:["always","never"]},{actual:e,possible:{except:["first-nested"],ignore:["stylelint-commands","after-comment"],ignoreComments:[F2e,L2e]},optional:!0})&&n.walkComments(o=>{if(O2e(o)||o.text.startsWith(N2e)&&by(e,"ignore","stylelint-commands")||by(e,"ignore","after-comment")&&C2e(o)||by(e,"ignoreComments",o.text)||q2e(o)||!R2e(o))return;let a=(()=>by(e,"except","first-nested")&&D2e(o)?!1:t==="always")(),u=o.raws.before||"",l=E2e(u);if(a===l)return;if(r.fix){if(typeof r.newline!="string")return;a?k2e(o,r.newline):A2e(o,r.newline);return}let c=a?Y2.expected:Y2.rejected;P2e({message:c,node:o,result:i,ruleName:vy})})};wy.ruleName=vy;wy.messages=Y2;wy.meta=I2e;V7.exports=wy});var Q7=m((ARt,Y7)=>{"use strict";var j2e=qu(),$2e=U(),B2e=$(),W2e=j(),_y="comment-no-empty",K7=B2e(_y,{rejected:"Unexpected empty comment"}),z2e={url:"https://stylelint.io/user-guide/rules/comment-no-empty"},xy=t=>(e,r)=>{W2e(r,_y,{actual:t})&&e.walkComments(i=>{j2e(i)&&(i.text&&i.text.length!==0||$2e({message:K7.rejected,node:i,result:r,ruleName:_y}))})};xy.ruleName=_y;xy.messages=K7;xy.meta=z2e;Y7.exports=xy});var eW=m((PRt,Z7)=>{"use strict";var U2e=U(),H2e=$(),V2e=j(),{isRegExp:G2e,isString:J7}=re(),Sy="comment-pattern",X7=H2e(Sy,{expected:t=>`Expected comment to match pattern "${t}"`}),K2e={url:"https://stylelint.io/user-guide/rules/comment-pattern"},ky=t=>(e,r)=>{if(!V2e(r,Sy,{actual:t,possible:[G2e,J7]}))return;let i=J7(t)?new RegExp(t):t;e.walkComments(s=>{let o=s.text;i.test(o)||U2e({message:X7.expected(t),node:s,result:r,ruleName:Sy})})};ky.ruleName=Sy;ky.messages=X7;ky.meta=K2e;Z7.exports=ky});var nW=m((TRt,rW)=>{"use strict";var Y2e=qu(),tW=Fc(),Q2e=U(),J2e=$(),X2e=j(),Ey="comment-whitespace-inside",zc=J2e(Ey,{expectedOpening:'Expected whitespace after "/*"',rejectedOpening:'Unexpected whitespace after "/*"',expectedClosing:'Expected whitespace before "*/"',rejectedClosing:'Unexpected whitespace before "*/"'}),Z2e={url:"https://stylelint.io/user-guide/rules/comment-whitespace-inside",fixable:!0};function eRe(t){t.text.startsWith("*")?t.text=t.text.replace(/^(\*+)/,"$1 "):t.raws.left=" "}function tRe(t){t.text[t.text.length-1]==="*"?t.text=t.text.replace(/(\*+)$/," $1"):t.raws.right=" "}var Cy=(t,e,r)=>(n,i)=>{X2e(i,Ey,{actual:t,possible:["always","never"]})&&n.walkComments(o=>{if(!Y2e(o))return;let a=o.toString(),u=a.slice(0,4);if(/^\/\*[#!]\s/.test(u))return;let l=a.match(/(^\/\*+)(\s)?/);if(l==null||l[1]==null)throw new Error(`Invalid comment: "${a}"`);let c=a.match(/(\s)?(\*+\/)$/);if(c==null||c[2]==null)throw new Error(`Invalid comment: "${a}"`);let f=l[1],d=l[2]||"",p=c[1]||"",h=c[2];t==="never"&&d!==""&&y(zc.rejectedOpening,f.length),t==="always"&&!tW(d)&&y(zc.expectedOpening,f.length),t==="never"&&p!==""&&y(zc.rejectedClosing,o.toString().length-h.length-1),t==="always"&&!tW(p)&&y(zc.expectedClosing,o.toString().length-h.length-1);function y(v,g){if(r.fix){t==="never"?(o.raws.left="",o.raws.right="",o.text=o.text.replace(/^(\*+)(\s+)?/,"$1").replace(/(\s+)?(\*+)$/,"$2")):(d||eRe(o),p||tRe(o));return}Q2e({message:v,index:g,result:i,ruleName:Ey,node:o})}})};Cy.ruleName=Ey;Cy.messages=zc;Cy.meta=Z2e;rW.exports=Cy});var oW=m((MRt,sW)=>{"use strict";var{isString:rRe}=re();sW.exports=function(e,r){if(!Array.isArray(r))return iW(e,r);for(let n of r){let i=iW(e,n);if(i)return i}return!1};function iW(t,e){return!e||!rRe(e)||e.startsWith("/")&&e.endsWith("/")?!1:t.includes(e)?{match:t,pattern:e,substring:e}:!1}});var lW=m((LRt,uW)=>{"use strict";var nRe=oW(),iRe=qt(),sRe=U(),oRe=$(),aRe=j(),{isRegExp:uRe,isString:lRe}=re(),Dy="comment-word-disallowed-list",aW=oRe(Dy,{rejected:t=>`Unexpected word matching pattern "${t}"`}),cRe={url:"https://stylelint.io/user-guide/rules/comment-word-disallowed-list"},Uc=t=>(e,r)=>{aRe(r,Dy,{actual:t,possible:[lRe,uRe]})&&e.walkComments(i=>{let s=i.text;if(i.toString().slice(0,4)==="/*# ")return;let u=iRe(s,t)||nRe(s,t);u&&sRe({message:aW.rejected(u.pattern),node:i,word:u.substring,result:r,ruleName:Dy})})};Uc.primaryOptionArray=!0;Uc.ruleName=Dy;Uc.messages=aW;Uc.meta=cRe;uW.exports=Uc});var et=m((FRt,cW)=>{"use strict";cW.exports=function(e){let r=1+e.name.length;return e.raws.afterName&&(r+=e.raws.afterName.length),r}});var hW=m((IRt,pW)=>{"use strict";var fRe=et(),dRe=U(),pRe=$(),hRe=j(),{isRegExp:gRe,isString:fW}=re(),Oy="custom-media-pattern",dW=pRe(Oy,{expected:(t,e)=>`Expected "${t}" to match pattern "${e}"`}),mRe={url:"https://stylelint.io/user-guide/rules/custom-media-pattern"},qy=t=>(e,r)=>{if(!hRe(r,Oy,{actual:t,possible:[gRe,fW]}))return;let i=fW(t)?new RegExp(t):t;e.walkAtRules(s=>{if(s.name.toLowerCase()!=="custom-media")return;let[o,a]=s.params.match(/^--(\S+)\b/)||[];if(o===void 0||a===void 0)throw new Error(`Unexpected at-rule params: "${s.params}"`);if(i.test(a))return;let u=fRe(s);dRe({message:dW.expected,messageArgs:[o,t],node:s,index:u,endIndex:u+o.length,result:r,ruleName:Oy})})};qy.ruleName=Oy;qy.messages=dW;qy.meta=mRe;pW.exports=qy});var gn=m((NRt,gW)=>{"use strict";gW.exports=function(e){return e.startsWith("--")}});var Q2=m((jRt,mW)=>{"use strict";mW.exports=function(e){return!!(e.startsWith("$")||e.includes(".$"))}});var si=m(($Rt,bW)=>{"use strict";var yRe=Q2(),{isRoot:bRe,isRule:yW}=Qe();function vRe(t){return t&&(t==="css"||t==="custom-template"||t==="template-literal")}bW.exports=function(e){let r=e.prop,n=e.parent;return!(n&&bRe(n)&&n.source&&!vRe(n.source.lang)||yRe(r)||r[0]==="@"&&r[1]!=="{"||n&&n.type==="atrule"&&n.raws.afterName===":"||n&&yW(n)&&n.selector&&n.selector.startsWith("#")&&n.selector.endsWith("()")||n&&yW(n)&&n.selector&&n.selector[n.selector.length-1]===":"&&n.selector.substring(0,2)!=="--"||"extend"in e&&e.extend)}});var SW=m((BRt,xW)=>{"use strict";var wRe=vu(),_Re=Sr(),xRe=js(),SRe=No(),vW=Tc(),_W=gn(),wW=wu(),kRe=Oi(),ERe=si(),Ru=xe(),CRe=_u(),DRe=U(),ORe=$(),qRe=j(),{isAtRule:RRe,isDeclaration:ARe,isRule:PRe}=Qe(),Ry="custom-property-empty-line-before",J2=ORe(Ry,{expected:"Expected empty line before custom property",rejected:"Unexpected empty line before custom property"}),TRe={url:"https://stylelint.io/user-guide/rules/custom-property-empty-line-before",fixable:!0},Ay=(t,e,r)=>(n,i)=>{qRe(i,Ry,{actual:t,possible:["always","never"]},{actual:e,possible:{except:["first-nested","after-comment","after-custom-property"],ignore:["after-comment","first-nested","inside-single-line-block"]},optional:!0})&&n.walkDecls(o=>{let a=o.prop,u=o.parent;if(!ERe(o)||!_W(a)||Ru(e,"ignore","after-comment")&&vW(o)||Ru(e,"ignore","first-nested")&&wW(o)||Ru(e,"ignore","inside-single-line-block")&&u!=null&&(RRe(u)||PRe(u))&&kRe(_Re(u)))return;let l=t==="always";(Ru(e,"except","first-nested")&&wW(o)||Ru(e,"except","after-comment")&&vW(o)||Ru(e,"except","after-custom-property")&&MRe(o))&&(l=!l);let c=SRe(o.raws.before);if(l===c)return;if(r.fix){if(r.newline==null)return;l?wRe(o,r.newline):CRe(o,r.newline);return}let f=l?J2.expected:J2.rejected;DRe({message:f,node:o,result:i,ruleName:Ry})})};function MRe(t){let e=xRe(t);return e!=null&&ARe(e)&&_W(e.prop)}Ay.ruleName=Ry;Ay.messages=J2;Ay.meta=TRe;xW.exports=Ay});var CW=m((WRt,EW)=>{"use strict";var LRe=Ae(),FRe=Re(),IRe=gn(),NRe=U(),jRe=$(),$Re=j(),Py="custom-property-no-missing-var-function",kW=jRe(Py,{rejected:t=>`Unexpected missing var function for "${t}"`}),BRe={url:"https://stylelint.io/user-guide/rules/custom-property-no-missing-var-function"},Ty=t=>(e,r)=>{if(!$Re(r,Py,{actual:t}))return;let i=new Set;e.walkAtRules(/^property$/i,s=>{i.add(s.params)}),e.walkDecls(({prop:s})=>{IRe(s)&&i.add(s)}),e.walkDecls(s=>{let{value:o}=s;LRe(o).walk(u=>{if(zRe(u))return!1;if(!WRe(u)||!i.has(u.value))return;let l=FRe(s)+u.sourceIndex,c=l+u.value.length;return NRe({message:kW.rejected(u.value),node:s,index:l,endIndex:c,result:r,ruleName:Py}),!1})})};function WRe({type:t,value:e}){return t==="word"&&e.startsWith("--")}function zRe({type:t,value:e}){return t==="function"&&e==="var"}Ty.ruleName=Py;Ty.messages=kW;Ty.meta=BRe;EW.exports=Ty});var oi=m((zRt,DW)=>{"use strict";var URe=qc(),HRe=Q2();DW.exports=function(e){return!(HRe(e)||e.startsWith("@")||e.endsWith("+")||e.endsWith("+_")||URe(e))}});var AW=m((URt,RW)=>{"use strict";var VRe=Ae(),GRe=gn(),KRe=U(),YRe=$(),QRe=j(),JRe=Re(),{isRegExp:XRe,isString:OW}=re(),{isValueFunction:ZRe}=Qe(),eAe=oi(),My="custom-property-pattern",qW=YRe(My,{expected:(t,e)=>`Expected "${t}" to match pattern "${e}"`}),tAe={url:"https://stylelint.io/user-guide/rules/custom-property-pattern"},Ly=t=>(e,r)=>{if(!QRe(r,My,{actual:t,possible:[XRe,OW]}))return;let i=OW(t)?new RegExp(t):t;function s(a){return!eAe(a)||!GRe(a)||i.test(a.slice(2))}e.walkDecls(a=>{let{prop:u,value:l}=a;VRe(l).walk(f=>{if(!ZRe(f)||f.value.toLowerCase()!=="var")return;let{nodes:d}=f,p=d[0];!p||s(p.value)||o(JRe(a)+p.sourceIndex,p.value,a)}),!s(u)&&o(0,u,a)});function o(a,u,l){KRe({result:r,ruleName:My,message:qW.expected,messageArgs:[u,t],node:l,index:a,endIndex:a+u.length})}};Ly.ruleName=My;Ly.messages=qW;Ly.meta=tAe;RW.exports=Ly});var Fr=m((HRt,PW)=>{var Hc="skip",Au="only";PW.exports=function(t,e){var r=t.source,n=t.target,i=t.comments?t.comments===Hc:!0,s=t.strings?t.strings===Hc:!0,o=t.functionNames?t.functionNames===Hc:!0,a=t.functionArguments===Hc,u=t.parentheticals===Hc,l=!1;Object.keys(t).forEach(function(M){if(t[M]===Au)if(!l)l=!0;else throw new Error('Only one syntax feature option can be the "only" one to check')});var c=t.comments===Au,f=t.strings===Au,d=t.functionNames===Au,p=t.functionArguments===Au,h=t.parentheticals===Au,y=!1,v=!1,g=!1,b=!1,w=!1,_=0,S=0,q,C=Array.isArray(n),R=function(){return C?function(M){for(var ae=0,ne=n.length;ae<ne;ae++){var de=O(n[ae],M);if(de)return de}return!1}:O.bind(null,n)}();function O(M,ae){var ne=M.length;return ne===1&&r[ae]!==M||r.substr(ae,ne)!==M?!1:{insideParens:b,insideFunctionArguments:w,insideComment:v,insideString:y,startIndex:ae,endIndex:ae+ne,target:M}}for(var z=0,F=r.length;z<F;z++){var te=r[z];if(!y&&!v&&te==="/"&&r[z-1]!=="\\"){if(r[z+1]==="*"){v=!0;continue}if(r[z+1]==="/"){v=!0,g=!0;continue}}if(v){if(!g&&te==="*"&&r[z-1]!=="\\"&&r[z+1]==="/"&&r[z-1]!=="/"){v=!1;continue}if(g&&te===`
|
|
78
|
+
`)&&(t==="always"?d(jm.expectedBefore):l&&t==="always-multi-line"&&d(jm.expectedBeforeMultiLine)),u!==""&&l&&t==="never-multi-line"&&d(jm.rejectedBeforeMultiLine);function d(p){if(r.fix){let h=a.raws;if(typeof h.after!="string")return;if(t.startsWith("always")){let y=h.after.search(/\s/),v=y>=0?h.after.slice(0,y):h.after,g=y>=0?h.after.slice(y):"",b=g.search(/\r?\n/);h.after=b>=0?v+g.slice(b):v+r.newline+g;return}if(t==="never-multi-line"){h.after=h.after.replace(/\s/g,"");return}}aDe({message:p,result:i,ruleName:$m,node:a,index:f})}}};Bm.ruleName=$m;Bm.messages=jm;Bm.meta=cDe;e4.exports=Bm});var i4=m((nRt,n4)=>{"use strict";var fDe=Sr(),dDe=ir(),pDe=ns(),hDe=U(),gDe=$(),mDe=j(),yDe=$e(),Wm="block-closing-brace-space-after",r4=gDe(Wm,{expectedAfter:()=>'Expected single space after "}"',rejectedAfter:()=>'Unexpected whitespace after "}"',expectedAfterSingleLine:()=>'Expected single space after "}" of a single-line block',rejectedAfterSingleLine:()=>'Unexpected whitespace after "}" of a single-line block',expectedAfterMultiLine:()=>'Expected single space after "}" of a multi-line block',rejectedAfterMultiLine:()=>'Unexpected whitespace after "}" of a multi-line block'}),bDe={url:"https://stylelint.io/user-guide/rules/block-closing-brace-space-after"},zm=t=>{let e=yDe("space",t,r4);return(r,n)=>{if(!mDe(n,Wm,{actual:t,possible:["always","never","always-single-line","never-single-line","always-multi-line","never-multi-line"]}))return;r.walkRules(s),r.walkAtRules(s);function s(o){let a=o.next();if(!a||!dDe(o))return;let u=o.toString().length,l=pDe(a);l&&l.startsWith(";")&&(l=l.slice(1),u++),e.after({source:l,index:-1,lineCheckStr:fDe(o),err:c=>{hDe({message:c,node:o,index:u,result:n,ruleName:Wm})}})}}};zm.ruleName=Wm;zm.messages=r4;zm.meta=bDe;n4.exports=zm});var a4=m((iRt,o4)=>{"use strict";var vDe=Sr(),wDe=ir(),_De=Us(),xDe=U(),SDe=$(),kDe=j(),EDe=$e(),Um="block-closing-brace-space-before",s4=SDe(Um,{expectedBefore:()=>'Expected single space before "}"',rejectedBefore:()=>'Unexpected whitespace before "}"',expectedBeforeSingleLine:()=>'Expected single space before "}" of a single-line block',rejectedBeforeSingleLine:()=>'Unexpected whitespace before "}" of a single-line block',expectedBeforeMultiLine:()=>'Expected single space before "}" of a multi-line block',rejectedBeforeMultiLine:()=>'Unexpected whitespace before "}" of a multi-line block'}),CDe={url:"https://stylelint.io/user-guide/rules/block-closing-brace-space-before",fixable:!0},Hm=(t,e,r)=>{let n=EDe("space",t,s4);return(i,s)=>{if(!kDe(s,Um,{actual:t,possible:["always","never","always-single-line","never-single-line","always-multi-line","never-multi-line"]}))return;i.walkRules(a),i.walkAtRules(a);function a(u){if(!wDe(u)||_De(u))return;let l=vDe(u),c=u.toString(),f=c.length-2;c[f-1]==="\r"&&(f-=1),n.before({source:l,index:l.length-1,err:d=>{if(r.fix){let p=u.raws;if(typeof p.after!="string")return;if(t.startsWith("always")){p.after=p.after.replace(/\s*$/," ");return}if(t.startsWith("never")){p.after=p.after.replace(/\s*$/,"");return}}xDe({message:d,node:u,index:f,result:s,ruleName:Um})}})}}};Hm.ruleName=Um;Hm.messages=s4;Hm.meta=CDe;o4.exports=Hm});var C2=m((sRt,p4)=>{"use strict";var{assertString:DDe}=re(),u4="stylelint-disable",l4="stylelint-disable-line",c4="stylelint-disable-next-line",f4="stylelint-enable",ODe=new Set([u4,l4,c4,f4]);function d4(t){let[e]=t.text.split(/\s/,1);return DDe(e),e}function qDe(t){let e=d4(t);return e!==void 0&&ODe.has(e)}p4.exports={DISABLE_COMMAND:u4,DISABLE_LINE_COMMAND:l4,DISABLE_NEXT_LINE_COMMAND:c4,ENABLE_COMMAND:f4,extractStylelintCommand:d4,isStylelintCommand:qDe}});var m4=m((oRt,g4)=>{"use strict";var RDe=zs(),ADe=ir(),PDe=xe(),TDe=U(),MDe=$(),{isStylelintCommand:LDe}=C2(),{isComment:FDe}=Qe(),IDe=j(),{isBoolean:NDe}=re(),Vm="block-no-empty",h4=MDe(Vm,{rejected:"Unexpected empty block"}),jDe={url:"https://stylelint.io/user-guide/rules/block-no-empty"},Gm=(t,e)=>(r,n)=>{if(!IDe(n,Vm,{actual:t,possible:NDe},{actual:e,possible:{ignore:["comments"]},optional:!0}))return;let s=PDe(e,"ignore","comments");r.walkRules(o),r.walkAtRules(o);function o(u){if(!ADe(u)||a(u))return;let l=RDe(u,{noRawBefore:!0}).length;u.raws.between===void 0&&l--,TDe({message:h4.rejected,node:u,start:u.positionBy({index:l}),result:n,ruleName:Vm})}function a(u){return u.nodes.some(l=>!(FDe(l)&&(s||LDe(l))))}};Gm.ruleName=Vm;Gm.messages=h4;Gm.meta=jDe;g4.exports=Gm});var v4=m((aRt,b4)=>{"use strict";var $De=zs(),BDe=Sr(),WDe=ir(),zDe=Us(),UDe=xe(),HDe=ns(),VDe=U(),GDe=$(),KDe=j(),YDe=$e(),Km="block-opening-brace-newline-after",y4=GDe(Km,{expectedAfter:()=>'Expected newline after "{"',expectedAfterMultiLine:()=>'Expected newline after "{" of a multi-line block',rejectedAfterMultiLine:()=>'Unexpected whitespace after "{" of a multi-line block'}),QDe={url:"https://stylelint.io/user-guide/rules/block-opening-brace-newline-after",fixable:!0},Ym=(t,e,r)=>{let n=YDe("newline",t,y4);return(i,s)=>{if(!KDe(s,Km,{actual:t,possible:["always","rules","always-multi-line","never-multi-line"]},{actual:e,possible:{ignore:["rules"]},optional:!0}))return;UDe(e,"ignore","rules")||i.walkRules(a),i.walkAtRules(a);function a(u){if(!WDe(u)||zDe(u))return;let l=new Map;function c(d){if(!(!d||!d.next)){if(d.type==="comment"){let p=/\r?\n/,h=p.test(d.raws.before||""),y=d.next();return y&&h&&!p.test(y.raws.before||"")&&(l.set(y,y.raws.before),y.raws.before=d.raws.before),c(y)}return d}}let f=c(u.first);if(f){n.afterOneOnly({source:HDe(f),index:-1,lineCheckStr:BDe(u),err:d=>{if(r.fix){let p=f.raws;if(typeof p.before!="string")return;if(t.startsWith("always")){let h=p.before.search(/\r?\n/);p.before=h>=0?p.before.slice(h):r.newline+p.before,l.delete(f);return}if(t==="never-multi-line"){for(let[v,g]of l.entries())v.raws.before=g;l.clear();let h=/\r?\n/,y=u.first;for(;y;){let v=y.raws;if(typeof v.before=="string"){if(h.test(v.before||"")&&(v.before=v.before.replace(/\r?\n/g,"")),y.type!=="comment")break;y=y.next()}}p.before="";return}}VDe({message:d,node:u,index:$De(u,{noRawBefore:!0}).length+1,result:s,ruleName:Km})}});for(let[d,p]of l.entries())d.raws.before=p}}}};Ym.ruleName=Km;Ym.messages=y4;Ym.meta=QDe;b4.exports=Ym});var S4=m((uRt,x4)=>{"use strict";var w4=zs(),JDe=Sr(),XDe=ir(),ZDe=Us(),eOe=U(),tOe=$(),rOe=j(),nOe=$e(),Qm="block-opening-brace-newline-before",_4=tOe(Qm,{expectedBefore:()=>'Expected newline before "{"',expectedBeforeSingleLine:()=>'Expected newline before "{" of a single-line block',rejectedBeforeSingleLine:()=>'Unexpected whitespace before "{" of a single-line block',expectedBeforeMultiLine:()=>'Expected newline before "{" of a multi-line block',rejectedBeforeMultiLine:()=>'Unexpected whitespace before "{" of a multi-line block'}),iOe={url:"https://stylelint.io/user-guide/rules/block-opening-brace-newline-before",fixable:!0},Jm=(t,e,r)=>{let n=nOe("newline",t,_4);return(i,s)=>{if(!rOe(s,Qm,{actual:t,possible:["always","always-single-line","never-single-line","always-multi-line","never-multi-line"]}))return;i.walkRules(a),i.walkAtRules(a);function a(u){if(!XDe(u)||ZDe(u))return;let l=w4(u),c=w4(u,{noRawBefore:!0}),f=c.length-1;c[f-1]==="\r"&&(f-=1),n.beforeAllowingIndentation({lineCheckStr:JDe(u),source:l,index:l.length,err:d=>{if(r.fix){let p=u.raws;if(typeof p.between!="string")return;if(t.startsWith("always")){let h=p.between.search(/\s+$/);h>=0?u.raws.between=p.between.slice(0,h)+r.newline+p.between.slice(h):p.between+=r.newline;return}if(t.startsWith("never")){p.between=p.between.replace(/\s*$/,"");return}}eOe({message:d,node:u,index:f,result:s,ruleName:Qm})}})}}};Jm.ruleName=Qm;Jm.messages=_4;Jm.meta=iOe;x4.exports=Jm});var C4=m((lRt,E4)=>{"use strict";var sOe=zs(),oOe=Sr(),aOe=ir(),uOe=Us(),lOe=xe(),cOe=U(),fOe=$(),dOe=j(),pOe=$e(),Xm="block-opening-brace-space-after",k4=fOe(Xm,{expectedAfter:()=>'Expected single space after "{"',rejectedAfter:()=>'Unexpected whitespace after "{"',expectedAfterSingleLine:()=>'Expected single space after "{" of a single-line block',rejectedAfterSingleLine:()=>'Unexpected whitespace after "{" of a single-line block',expectedAfterMultiLine:()=>'Expected single space after "{" of a multi-line block',rejectedAfterMultiLine:()=>'Unexpected whitespace after "{" of a multi-line block'}),hOe={url:"https://stylelint.io/user-guide/rules/block-opening-brace-space-after",fixable:!0},Zm=(t,e,r)=>{let n=pOe("space",t,k4);return(i,s)=>{if(!dOe(s,Xm,{actual:t,possible:["always","never","always-single-line","never-single-line","always-multi-line","never-multi-line"]},{actual:e,possible:{ignore:["at-rules"]},optional:!0}))return;i.walkRules(a),lOe(e,"ignore","at-rules")||i.walkAtRules(a);function a(u){!aOe(u)||uOe(u)||n.after({source:oOe(u),index:0,err:l=>{if(r.fix){let c=u.first;if(c==null)return;if(t.startsWith("always")){c.raws.before=" ";return}if(t.startsWith("never")){c.raws.before="";return}}cOe({message:l,node:u,index:sOe(u,{noRawBefore:!0}).length+1,result:s,ruleName:Xm})}})}}};Zm.ruleName=Xm;Zm.messages=k4;Zm.meta=hOe;E4.exports=Zm});var T4=m((cRt,P4)=>{"use strict";var D4=zs(),gOe=Sr(),mOe=ir(),yOe=Us(),O4=xe(),bOe=U(),vOe=$(),wOe=j(),_Oe=$e(),{isRegExp:q4,isString:R4}=re(),ey="block-opening-brace-space-before",A4=vOe(ey,{expectedBefore:()=>'Expected single space before "{"',rejectedBefore:()=>'Unexpected whitespace before "{"',expectedBeforeSingleLine:()=>'Expected single space before "{" of a single-line block',rejectedBeforeSingleLine:()=>'Unexpected whitespace before "{" of a single-line block',expectedBeforeMultiLine:()=>'Expected single space before "{" of a multi-line block',rejectedBeforeMultiLine:()=>'Unexpected whitespace before "{" of a multi-line block'}),xOe={url:"https://stylelint.io/user-guide/rules/block-opening-brace-space-before",fixable:!0},ty=(t,e,r)=>{let n=_Oe("space",t,A4);return(i,s)=>{if(!wOe(s,ey,{actual:t,possible:["always","never","always-single-line","never-single-line","always-multi-line","never-multi-line"]},{actual:e,possible:{ignoreAtRules:[R4,q4],ignoreSelectors:[R4,q4]},optional:!0}))return;i.walkRules(a),i.walkAtRules(a);function a(u){if(!mOe(u)||yOe(u)||u.type==="atrule"&&O4(e,"ignoreAtRules",u.name)||u.type==="rule"&&O4(e,"ignoreSelectors",u.selector))return;let l=D4(u),c=D4(u,{noRawBefore:!0}),f=c.length-1;c[f-1]==="\r"&&(f-=1),n.before({source:l,index:l.length,lineCheckStr:gOe(u),err:d=>{if(r.fix){if(t.startsWith("always")){u.raws.between=" ";return}if(t.startsWith("never")){u.raws.between="";return}}bOe({message:d,node:u,index:f,result:s,ruleName:ey})}})}}};ty.ruleName=ey;ty.messages=A4;ty.meta=xOe;P4.exports=ty});var Ri=m((fRt,M4)=>{"use strict";M4.exports=function(e){return!(!e.value||e.value.startsWith("#{"))}});var F4=m((dRt,L4)=>{"use strict";var SOe=Ri();L4.exports=function t(e){if(!SOe(e))return!1;for(let r of e.nodes){if(r.type==="function")return t(r);if(r.type==="word"&&(r.value.startsWith("#")||r.value.startsWith("$")))return!1}return!0}});var B4=m((pRt,$4)=>{"use strict";var kOe=Ae(),EOe=Re(),COe=vt(),DOe=F4(),OOe=U(),qOe=$(),ROe=Bt(),{isValueFunction:AOe}=Qe(),POe=j(),ry="color-function-notation",N4=qOe(ry,{expected:t=>`Expected ${t} color-function notation`}),TOe={url:"https://stylelint.io/user-guide/rules/color-function-notation",fixable:!0},MOe=new Set(["rgba","hsla"]),LOe=new Set(["rgb","rgba","hsl","hsla"]),ny=(t,e,r)=>(n,i)=>{POe(i,ry,{actual:t,possible:["modern","legacy"]})&&n.walkDecls(o=>{let a=!1,u=kOe(COe(o));u.walk(l=>{if(!AOe(l)||!DOe(l))return;let{value:c,sourceIndex:f,sourceEndIndex:d,nodes:p}=l;if(!LOe.has(c.toLowerCase())||t==="modern"&&!I4(l)||t==="legacy"&&I4(l))return;if(r.fix&&t==="modern"){let v=0;l.nodes=p.map(g=>(j4(g)&&(v<2?(g.type="space",g.value=D2(g.after),v++):(g.value="/",g.before=D2(g.before),g.after=D2(g.after))),g)),MOe.has(l.value.toLowerCase())&&(l.value=l.value.slice(0,-1)),a=!0;return}let h=EOe(o)+f,y=h+(d-f);OOe({message:N4.expected(t),node:o,index:h,endIndex:y,result:i,ruleName:ry})}),a&&ROe(o,u.toString())})};function D2(t){return t!==""?t:" "}function j4(t){return t.type==="div"&&t.value===","}function I4(t){return t.nodes&&t.nodes.some(e=>j4(e))}ny.ruleName=ry;ny.messages=N4;ny.meta=TOe;$4.exports=ny});var U4=m((hRt,z4)=>{"use strict";var FOe=Re(),IOe=U(),NOe=$(),jOe=j(),$Oe=Ae(),iy="color-hex-alpha",O2=NOe(iy,{expected:t=>`Expected alpha channel in "${t}"`,unexpected:t=>`Unexpected alpha channel in "${t}"`}),BOe={url:"https://stylelint.io/user-guide/rules/color-hex-alpha"},WOe=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i,sy=t=>(e,r)=>{jOe(r,iy,{actual:t,possible:["always","never"]})&&e.walkDecls(i=>{$Oe(i.value).walk(o=>{if(zOe(o))return!1;if(!UOe(o))return;let{value:a}=o;if(t==="always"&&W4(a)||t==="never"&&!W4(a))return;let u=FOe(i)+o.sourceIndex,l=u+a.length;IOe({message:t==="never"?O2.unexpected(a):O2.expected(a),node:i,index:u,endIndex:l,result:r,ruleName:iy})})})};function zOe({type:t,value:e}){return t==="function"&&e==="url"}function UOe({type:t,value:e}){return t==="word"&&WOe.test(e)}function W4(t){return t.length===5||t.length===9}sy.ruleName=iy;sy.messages=O2;sy.meta=BOe;z4.exports=sy});var G4=m((gRt,V4)=>{"use strict";var HOe=Ae(),VOe=Re(),GOe=vt(),KOe=U(),YOe=$(),QOe=Bt(),JOe=j(),oy="color-hex-case",H4=YOe(oy,{expected:(t,e)=>`Expected "${t}" to be "${e}"`}),XOe={url:"https://stylelint.io/user-guide/rules/color-hex-case",fixable:!0},ZOe=/^#[0-9A-Za-z]+/,eqe=new Set(["url"]),ay=(t,e,r)=>(n,i)=>{JOe(i,oy,{actual:t,possible:["lower","upper"]})&&n.walkDecls(o=>{let a=HOe(GOe(o)),u=!1;a.walk(l=>{let{value:c}=l;if(tqe(l))return!1;if(!rqe(l))return;let f=t==="lower"?c.toLowerCase():c.toUpperCase();if(c!==f){if(r.fix){l.value=f,u=!0;return}KOe({message:H4.expected(c,f),node:o,index:VOe(o)+l.sourceIndex,result:i,ruleName:oy})}}),u&&QOe(o,a.toString())})};function tqe({type:t,value:e}){return t==="function"&&eqe.has(e.toLowerCase())}function rqe({type:t,value:e}){return t==="word"&&ZOe.test(e)}ay.ruleName=oy;ay.messages=H4;ay.meta=XOe;V4.exports=ay});var Q4=m((mRt,Y4)=>{"use strict";var nqe=Ae(),iqe=Re(),sqe=vt(),oqe=U(),aqe=$(),uqe=Bt(),lqe=j(),uy="color-hex-length",K4=aqe(uy,{expected:(t,e)=>`Expected "${t}" to be "${e}"`}),cqe={url:"https://stylelint.io/user-guide/rules/color-hex-length",fixable:!0},fqe=/^#[0-9A-Za-z]+/,dqe=new Set(["url"]),ly=(t,e,r)=>(n,i)=>{lqe(i,uy,{actual:t,possible:["short","long"]})&&n.walkDecls(o=>{let a=nqe(sqe(o)),u=!1;a.walk(l=>{let{value:c}=l;if(mqe(l))return!1;if(!yqe(l)||t==="long"&&c.length!==4&&c.length!==5||t==="short"&&(c.length<6||!pqe(c)))return;let d=(t==="long"?gqe:hqe)(c);if(r.fix){l.value=d,u=!0;return}let p=iqe(o)+l.sourceIndex,h=p+l.value.length;oqe({message:K4.expected(c,d),node:o,index:p,endIndex:h,result:i,ruleName:uy})}),u&&uqe(o,a.toString())})};function pqe(t){return t=t.toLowerCase(),t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]&&(t.length===7||t.length===9&&t[7]===t[8])}function hqe(t){let e="#";for(let r=1;r<t.length;r+=2)e+=t[r];return e}function gqe(t){let e="#";for(let r=1;r<t.length;r++)e+=t.charAt(r).repeat(2);return e}function mqe({type:t,value:e}){return t==="function"&&dqe.has(e.toLowerCase())}function yqe({type:t,value:e}){return t==="word"&&fqe.test(e)}ly.ruleName=uy;ly.messages=K4;ly.meta=cqe;Y4.exports=ly});var Eu=m((yRt,J4)=>{"use strict";var bqe=new Set(["animation","animation-name","font","font-family","counter-increment","grid-row","grid-column","grid-area","list-style","list-style-type"]),vqe=new Map([["animation",new Set(["animation-name","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state"])],["background",new Set(["background-image","background-size","background-position","background-repeat","background-origin","background-clip","background-attachment","background-color"])],["border",new Set(["border-top-width","border-bottom-width","border-left-width","border-right-width","border-top-style","border-bottom-style","border-left-style","border-right-style","border-top-color","border-bottom-color","border-left-color","border-right-color"])],["border-block-end",new Set(["border-block-end-width","border-block-end-style","border-block-end-color"])],["border-block-start",new Set(["border-block-start-width","border-block-start-style","border-block-start-color"])],["border-bottom",new Set(["border-bottom-width","border-bottom-style","border-bottom-color"])],["border-color",new Set(["border-top-color","border-bottom-color","border-left-color","border-right-color"])],["border-image",new Set(["border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"])],["border-inline-end",new Set(["border-inline-end-width","border-inline-end-style","border-inline-end-color"])],["border-inline-start",new Set(["border-inline-start-width","border-inline-start-style","border-inline-start-color"])],["border-left",new Set(["border-left-width","border-left-style","border-left-color"])],["border-radius",new Set(["border-top-right-radius","border-top-left-radius","border-bottom-right-radius","border-bottom-left-radius"])],["border-right",new Set(["border-right-width","border-right-style","border-right-color"])],["border-style",new Set(["border-top-style","border-bottom-style","border-left-style","border-right-style"])],["border-top",new Set(["border-top-width","border-top-style","border-top-color"])],["border-width",new Set(["border-top-width","border-bottom-width","border-left-width","border-right-width"])],["column-rule",new Set(["column-rule-width","column-rule-style","column-rule-color"])],["columns",new Set(["column-width","column-count"])],["flex",new Set(["flex-grow","flex-shrink","flex-basis"])],["flex-flow",new Set(["flex-direction","flex-wrap"])],["font",new Set(["font-style","font-variant","font-weight","font-stretch","font-size","font-family","line-height"])],["grid",new Set(["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-rows","grid-auto-columns","grid-auto-flow","grid-column-gap","grid-row-gap"])],["grid-area",new Set(["grid-row-start","grid-column-start","grid-row-end","grid-column-end"])],["grid-column",new Set(["grid-column-start","grid-column-end"])],["grid-gap",new Set(["grid-row-gap","grid-column-gap"])],["grid-row",new Set(["grid-row-start","grid-row-end"])],["grid-template",new Set(["grid-template-columns","grid-template-rows","grid-template-areas"])],["list-style",new Set(["list-style-type","list-style-position","list-style-image"])],["margin",new Set(["margin-top","margin-bottom","margin-left","margin-right"])],["mask",new Set(["mask-image","mask-mode","mask-position","mask-size","mask-repeat","mask-origin","mask-clip","mask-composite"])],["outline",new Set(["outline-color","outline-style","outline-width"])],["padding",new Set(["padding-top","padding-bottom","padding-left","padding-right"])],["text-decoration",new Set(["text-decoration-color","text-decoration-style","text-decoration-line"])],["text-emphasis",new Set(["text-emphasis-style","text-emphasis-color"])],["transition",new Set(["transition-delay","transition-duration","transition-property","transition-timing-function"])]]),wqe=new Set(["transition-duration","transition-delay","animation-duration","animation-delay"]),_qe=new Set(["transition","animation"]);J4.exports={acceptCustomIdentsProperties:bqe,longhandSubPropertiesOfShorthandProperties:vqe,longhandTimeProperties:wqe,shorthandTimeProperties:_qe}});var l7=m(jo=>{Object.defineProperty(jo,"__esModule",{value:!0});var xqe={grad:.9,turn:360,rad:360/(2*Math.PI)},is=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},lr=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},In=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},s7=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},X4=function(t){return{r:In(t.r,0,255),g:In(t.g,0,255),b:In(t.b,0,255),a:In(t.a)}},q2=function(t){return{r:lr(t.r),g:lr(t.g),b:lr(t.b),a:lr(t.a,3)}},Sqe=/^#([0-9a-f]{3,8})$/i,cy=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},o7=function(t){var e=t.r,r=t.g,n=t.b,i=t.a,s=Math.max(e,r,n),o=s-Math.min(e,r,n),a=o?s===e?(r-n)/o:s===r?2+(n-e)/o:4+(e-r)/o:0;return{h:60*(a<0?a+6:a),s:s?o/s*100:0,v:s/255*100,a:i}},a7=function(t){var e=t.h,r=t.s,n=t.v,i=t.a;e=e/360*6,r/=100,n/=100;var s=Math.floor(e),o=n*(1-r),a=n*(1-(e-s)*r),u=n*(1-(1-e+s)*r),l=s%6;return{r:255*[n,a,o,o,u,n][l],g:255*[u,n,n,a,o,o][l],b:255*[o,o,u,n,n,a][l],a:i}},Z4=function(t){return{h:s7(t.h),s:In(t.s,0,100),l:In(t.l,0,100),a:In(t.a)}},e7=function(t){return{h:lr(t.h),s:lr(t.s),l:lr(t.l),a:lr(t.a,3)}},t7=function(t){return a7((r=(e=t).s,{h:e.h,s:(r*=((n=e.l)<50?n:100-n)/100)>0?2*r/(n+r)*100:0,v:n+r,a:e.a}));var e,r,n},Nc=function(t){return{h:(e=o7(t)).h,s:(i=(200-(r=e.s))*(n=e.v)/100)>0&&i<200?r*n/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,r,n,i},kqe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Eqe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Cqe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Dqe=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,P2={string:[[function(t){var e=Sqe.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?lr(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?lr(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=Cqe.exec(t)||Dqe.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:X4({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=kqe.exec(t)||Eqe.exec(t);if(!e)return null;var r,n,i=Z4({h:(r=e[1],n=e[2],n===void 0&&(n="deg"),Number(r)*(xqe[n]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return t7(i)},"hsl"]],object:[[function(t){var e=t.r,r=t.g,n=t.b,i=t.a,s=i===void 0?1:i;return is(e)&&is(r)&&is(n)?X4({r:Number(e),g:Number(r),b:Number(n),a:Number(s)}):null},"rgb"],[function(t){var e=t.h,r=t.s,n=t.l,i=t.a,s=i===void 0?1:i;if(!is(e)||!is(r)||!is(n))return null;var o=Z4({h:Number(e),s:Number(r),l:Number(n),a:Number(s)});return t7(o)},"hsl"],[function(t){var e=t.h,r=t.s,n=t.v,i=t.a,s=i===void 0?1:i;if(!is(e)||!is(r)||!is(n))return null;var o=function(a){return{h:s7(a.h),s:In(a.s,0,100),v:In(a.v,0,100),a:In(a.a)}}({h:Number(e),s:Number(r),v:Number(n),a:Number(s)});return a7(o)},"hsv"]]},r7=function(t,e){for(var r=0;r<e.length;r++){var n=e[r][0](t);if(n)return[n,e[r][1]]}return[null,void 0]},u7=function(t){return typeof t=="string"?r7(t.trim(),P2.string):typeof t=="object"&&t!==null?r7(t,P2.object):[null,void 0]},R2=function(t,e){var r=Nc(t);return{h:r.h,s:In(r.s+100*e,0,100),l:r.l,a:r.a}},A2=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},n7=function(t,e){var r=Nc(t);return{h:r.h,s:r.s,l:In(r.l+100*e,0,100),a:r.a}},jc=function(){function t(e){this.parsed=u7(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return lr(A2(this.rgba),2)},t.prototype.isDark=function(){return A2(this.rgba)<.5},t.prototype.isLight=function(){return A2(this.rgba)>=.5},t.prototype.toHex=function(){return e=q2(this.rgba),r=e.r,n=e.g,i=e.b,o=(s=e.a)<1?cy(lr(255*s)):"","#"+cy(r)+cy(n)+cy(i)+o;var e,r,n,i,s,o},t.prototype.toRgb=function(){return q2(this.rgba)},t.prototype.toRgbString=function(){return e=q2(this.rgba),r=e.r,n=e.g,i=e.b,(s=e.a)<1?"rgba("+r+", "+n+", "+i+", "+s+")":"rgb("+r+", "+n+", "+i+")";var e,r,n,i,s},t.prototype.toHsl=function(){return e7(Nc(this.rgba))},t.prototype.toHslString=function(){return e=e7(Nc(this.rgba)),r=e.h,n=e.s,i=e.l,(s=e.a)<1?"hsla("+r+", "+n+"%, "+i+"%, "+s+")":"hsl("+r+", "+n+"%, "+i+"%)";var e,r,n,i,s},t.prototype.toHsv=function(){return e=o7(this.rgba),{h:lr(e.h),s:lr(e.s),v:lr(e.v),a:lr(e.a,3)};var e},t.prototype.invert=function(){return Ai({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),Ai(R2(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),Ai(R2(this.rgba,-e))},t.prototype.grayscale=function(){return Ai(R2(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),Ai(n7(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),Ai(n7(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?Ai({r:(r=this.rgba).r,g:r.g,b:r.b,a:e}):lr(this.rgba.a,3);var r},t.prototype.hue=function(e){var r=Nc(this.rgba);return typeof e=="number"?Ai({h:e,s:r.s,l:r.l,a:r.a}):lr(r.h)},t.prototype.isEqual=function(e){return this.toHex()===Ai(e).toHex()},t}(),Ai=function(t){return t instanceof jc?t:new jc(t)},i7=[];jo.Colord=jc,jo.colord=Ai,jo.extend=function(t){t.forEach(function(e){i7.indexOf(e)<0&&(e(jc,P2),i7.push(e))})},jo.getFormat=function(t){return u7(t)[1]},jo.random=function(){return new jc({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})}});var f7=m((vRt,c7)=>{c7.exports=function(t,e){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},n={};for(var i in r)n[r[i]]=i;var s={};t.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,u,l=n[this.toHex()];if(l)return l;if(o?.closest){var c=this.toRgb(),f=1/0,d="black";if(!s.length)for(var p in r)s[p]=new t(r[p]).toRgb();for(var h in r){var y=(a=c,u=s[h],Math.pow(a.r-u.r,2)+Math.pow(a.g-u.g,2)+Math.pow(a.b-u.b,2));y<f&&(f=y,d=h)}return d}},e.string.push([function(o){var a=o.toLowerCase(),u=a==="transparent"?"#0000":r[a];return u?new t(u).toRgb():null},"name"])}});var y7=m((wRt,m7)=>{var Oqe={grad:.9,turn:360,rad:360/(2*Math.PI)},T2=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},fy=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},M2=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},h7=function(t){return{h:(e=t.h,(e=isFinite(e)?e%360:0)>0?e:e+360),w:M2(t.w,0,100),b:M2(t.b,0,100),a:M2(t.a)};var e},d7=function(t){return{h:fy(t.h),w:fy(t.w),b:fy(t.b),a:fy(t.a,3)}},p7=function(t){return{h:function(e){var r=e.r,n=e.g,i=e.b,s=e.a,o=Math.max(r,n,i),a=o-Math.min(r,n,i),u=a?o===r?(n-i)/a:o===n?2+(i-r)/a:4+(r-n)/a:0;return{h:60*(u<0?u+6:u),s:o?a/o*100:0,v:o/255*100,a:s}}(t).h,w:Math.min(t.r,t.g,t.b)/255*100,b:100-Math.max(t.r,t.g,t.b)/255*100,a:t.a}},g7=function(t){return function(e){var r=e.h,n=e.s,i=e.v,s=e.a;r=r/360*6,n/=100,i/=100;var o=Math.floor(r),a=i*(1-n),u=i*(1-(r-o)*n),l=i*(1-(1-r+o)*n),c=o%6;return{r:255*[i,u,a,a,l,i][c],g:255*[l,i,i,u,a,a][c],b:255*[a,a,l,i,i,u][c],a:s}}({h:t.h,s:t.b===100?0:100-t.w/(100-t.b)*100,v:100-t.b,a:t.a})},qqe=function(t){var e=t.h,r=t.w,n=t.b,i=t.a,s=i===void 0?1:i;if(!T2(e)||!T2(r)||!T2(n))return null;var o=h7({h:Number(e),w:Number(r),b:Number(n),a:Number(s)});return g7(o)},Rqe=/^hwb\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Aqe=function(t){var e=Rqe.exec(t);if(!e)return null;var r,n,i=h7({h:(r=e[1],n=e[2],n===void 0&&(n="deg"),Number(r)*(Oqe[n]||1)),w:Number(e[3]),b:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return g7(i)};m7.exports=function(t,e){t.prototype.toHwb=function(){return d7(p7(this.rgba))},t.prototype.toHwbString=function(){return r=d7(p7(this.rgba)),n=r.h,i=r.w,s=r.b,(o=r.a)<1?"hwb("+n+" "+i+"% "+s+"% / "+o+")":"hwb("+n+" "+i+"% "+s+"%)";var r,n,i,s,o},e.string.push([Aqe,"hwb"]),e.object.push([qqe,"hwb"])}});var v7=m((_Rt,b7)=>{var L2=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},$c=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},ii=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},F2=function(t){var e=t/255;return e<.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},I2=function(t){return 255*(t>.0031308?1.055*Math.pow(t,.4166666666666667)-.055:12.92*t)},N2=96.422,j2=100,$2=82.521,Pqe=function(t){var e,r,n={x:.9555766*(e=t).x+-.0230393*e.y+.0631636*e.z,y:-.0282895*e.x+1.0099416*e.y+.0210077*e.z,z:.0122982*e.x+-.020483*e.y+1.3299098*e.z};return r={r:I2(.032404542*n.x-.015371385*n.y-.004985314*n.z),g:I2(-.00969266*n.x+.018760108*n.y+41556e-8*n.z),b:I2(556434e-9*n.x-.002040259*n.y+.010572252*n.z),a:t.a},{r:ii(r.r,0,255),g:ii(r.g,0,255),b:ii(r.b,0,255),a:ii(r.a)}},Tqe=function(t){var e=F2(t.r),r=F2(t.g),n=F2(t.b);return function(i){return{x:ii(i.x,0,N2),y:ii(i.y,0,j2),z:ii(i.z,0,$2),a:ii(i.a)}}(function(i){return{x:1.0478112*i.x+.0228866*i.y+-.050127*i.z,y:.0295424*i.x+.9904844*i.y+-.0170491*i.z,z:-.0092345*i.x+.0150436*i.y+.7521316*i.z,a:i.a}}({x:100*(.4124564*e+.3575761*r+.1804375*n),y:100*(.2126729*e+.7151522*r+.072175*n),z:100*(.0193339*e+.119192*r+.9503041*n),a:t.a}))},Bc=216/24389,Cu=24389/27,Mqe=function(t){var e=t.l,r=t.a,n=t.b,i=t.alpha,s=i===void 0?1:i;if(!L2(e)||!L2(r)||!L2(n))return null;var o=function(a){return{l:ii(a.l,0,400),a:a.a,b:a.b,alpha:ii(a.alpha)}}({l:Number(e),a:Number(r),b:Number(n),alpha:Number(s)});return Lqe(o)},Lqe=function(t){var e=(t.l+16)/116,r=t.a/500+e,n=e-t.b/200;return Pqe({x:(Math.pow(r,3)>Bc?Math.pow(r,3):(116*r-16)/Cu)*N2,y:(t.l>8?Math.pow((t.l+16)/116,3):t.l/Cu)*j2,z:(Math.pow(n,3)>Bc?Math.pow(n,3):(116*n-16)/Cu)*$2,a:t.alpha})};b7.exports=function(t,e){t.prototype.toLab=function(){return n=Tqe(this.rgba),s=n.y/j2,o=n.z/$2,i=(i=n.x/N2)>Bc?Math.cbrt(i):(Cu*i+16)/116,r={l:116*(s=s>Bc?Math.cbrt(s):(Cu*s+16)/116)-16,a:500*(i-s),b:200*(s-(o=o>Bc?Math.cbrt(o):(Cu*o+16)/116)),alpha:n.a},{l:$c(r.l,2),a:$c(r.a,2),b:$c(r.b,2),alpha:$c(r.alpha,3)};var r,n,i,s,o},t.prototype.delta=function(r){r===void 0&&(r="#FFF");var n=r instanceof t?r:new t(r),i=function(s,o){var a=s.l,u=s.a,l=s.b,c=o.l,f=o.a,d=o.b,p=180/Math.PI,h=Math.PI/180,y=Math.pow(Math.pow(u,2)+Math.pow(l,2),.5),v=Math.pow(Math.pow(f,2)+Math.pow(d,2),.5),g=(a+c)/2,b=Math.pow((y+v)/2,7),w=.5*(1-Math.pow(b/(b+Math.pow(25,7)),.5)),_=u*(1+w),S=f*(1+w),q=Math.pow(Math.pow(_,2)+Math.pow(l,2),.5),C=Math.pow(Math.pow(S,2)+Math.pow(d,2),.5),R=(q+C)/2,O=_===0&&l===0?0:Math.atan2(l,_)*p,z=S===0&&d===0?0:Math.atan2(d,S)*p;O<0&&(O+=360),z<0&&(z+=360);var F=z-O,te=Math.abs(z-O);te>180&&z<=O?F+=360:te>180&&z>O&&(F-=360);var K=O+z;te<=180?K/=2:K=(O+z<360?K+360:K-360)/2;var ue=1-.17*Math.cos(h*(K-30))+.24*Math.cos(2*h*K)+.32*Math.cos(h*(3*K+6))-.2*Math.cos(h*(4*K-63)),L=c-a,M=C-q,ae=2*Math.sin(h*F/2)*Math.pow(q*C,.5),ne=1+.015*Math.pow(g-50,2)/Math.pow(20+Math.pow(g-50,2),.5),de=1+.045*R,le=1+.015*R*ue,se=30*Math.exp(-1*Math.pow((K-275)/25,2)),he=-2*Math.pow(b/(b+Math.pow(25,7)),.5)*Math.sin(2*h*se);return Math.pow(Math.pow(L/1/ne,2)+Math.pow(M/1/de,2)+Math.pow(ae/1/le,2)+he*M*ae/(1*de*1*le),.5)}(this.toLab(),n.toLab())/100;return ii($c(i,3))},e.object.push([Mqe,"lab"])}});var E7=m((xRt,k7)=>{var Fqe={grad:.9,turn:360,rad:360/(2*Math.PI)},B2=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},Du=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},ss=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},W2=function(t){var e=t/255;return e<.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)},z2=function(t){return 255*(t>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t)},U2=96.422,H2=100,V2=82.521,Iqe=function(t){var e,r,n={x:.9555766*(e=t).x+-.0230393*e.y+.0631636*e.z,y:-.0282895*e.x+1.0099416*e.y+.0210077*e.z,z:.0122982*e.x+-.020483*e.y+1.3299098*e.z};return r={r:z2(.032404542*n.x-.015371385*n.y-.004985314*n.z),g:z2(-.00969266*n.x+.018760108*n.y+41556e-8*n.z),b:z2(556434e-9*n.x-.002040259*n.y+.010572252*n.z),a:t.a},{r:ss(r.r,0,255),g:ss(r.g,0,255),b:ss(r.b,0,255),a:ss(r.a)}},Nqe=function(t){var e=W2(t.r),r=W2(t.g),n=W2(t.b);return function(i){return{x:ss(i.x,0,U2),y:ss(i.y,0,H2),z:ss(i.z,0,V2),a:ss(i.a)}}(function(i){return{x:1.0478112*i.x+.0228866*i.y+-.050127*i.z,y:.0295424*i.x+.9904844*i.y+-.0170491*i.z,z:-.0092345*i.x+.0150436*i.y+.7521316*i.z,a:i.a}}({x:100*(.4124564*e+.3575761*r+.1804375*n),y:100*(.2126729*e+.7151522*r+.072175*n),z:100*(.0193339*e+.119192*r+.9503041*n),a:t.a}))},Wc=216/24389,Ou=24389/27,x7=function(t){return{l:ss(t.l,0,100),c:t.c,h:(e=t.h,(e=isFinite(e)?e%360:0)>0?e:e+360),a:t.a};var e},w7=function(t){return{l:Du(t.l,2),c:Du(t.c,2),h:Du(t.h,2),a:Du(t.a,3)}},jqe=function(t){var e=t.l,r=t.c,n=t.h,i=t.a,s=i===void 0?1:i;if(!B2(e)||!B2(r)||!B2(n))return null;var o=x7({l:Number(e),c:Number(r),h:Number(n),a:Number(s)});return S7(o)},_7=function(t){var e=function(s){var o=Nqe(s),a=o.x/U2,u=o.y/H2,l=o.z/V2;return a=a>Wc?Math.cbrt(a):(Ou*a+16)/116,{l:116*(u=u>Wc?Math.cbrt(u):(Ou*u+16)/116)-16,a:500*(a-u),b:200*(u-(l=l>Wc?Math.cbrt(l):(Ou*l+16)/116)),alpha:o.a}}(t),r=Du(e.a,3),n=Du(e.b,3),i=Math.atan2(n,r)/Math.PI*180;return{l:e.l,c:Math.sqrt(r*r+n*n),h:i<0?i+360:i,a:e.alpha}},S7=function(t){return e={l:t.l,a:t.c*Math.cos(t.h*Math.PI/180),b:t.c*Math.sin(t.h*Math.PI/180),alpha:t.a},n=e.a/500+(r=(e.l+16)/116),i=r-e.b/200,Iqe({x:(Math.pow(n,3)>Wc?Math.pow(n,3):(116*n-16)/Ou)*U2,y:(e.l>8?Math.pow((e.l+16)/116,3):e.l/Ou)*H2,z:(Math.pow(i,3)>Wc?Math.pow(i,3):(116*i-16)/Ou)*V2,a:e.alpha});var e,r,n,i},$qe=/^lch\(\s*([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)\s+([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Bqe=function(t){var e=$qe.exec(t);if(!e)return null;var r,n,i=x7({l:Number(e[1]),c:Number(e[2]),h:(r=e[3],n=e[4],n===void 0&&(n="deg"),Number(r)*(Fqe[n]||1)),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return S7(i)};k7.exports=function(t,e){t.prototype.toLch=function(){return w7(_7(this.rgba))},t.prototype.toLchString=function(){return r=w7(_7(this.rgba)),n=r.l,i=r.c,s=r.h,(o=r.a)<1?"lch("+n+"% "+i+" "+s+" / "+o+")":"lch("+n+"% "+i+" "+s+")";var r,n,i,s,o},e.string.push([Bqe,"lch"]),e.object.push([jqe,"lch"])}});var O7=m((SRt,D7)=>{var{colord:G2,extend:Wqe}=l7(),C7=Ae(),zqe=f7(),Uqe=y7(),Hqe=v7(),Vqe=E7();Wqe([zqe,Uqe,Hqe,Vqe,(t,e)=>{e.string.push([Gqe,"hwb-with-comma"])},(t,e)=>{e.string.push([Kqe,"gray"])}]);D7.exports={colord:G2};function Gqe(t){if(t=t.toLowerCase(),!t.startsWith("hwb(")||!t.endsWith(")")||t.includes("/"))return null;let[e,r="",n="",i,...s]=t.slice(4,-1).split(",");if(!e||!e.trim()||!r.trim()||!n.trim()||s.length>0)return null;let o=G2(`hwb(${e} ${r} ${n}${i?` / ${i}`:""})`);return o.isValid()?o.rgba:null}function Kqe(t){if(t=t.toLowerCase(),!t.startsWith("gray(")||!t.endsWith(")"))return null;let[e,r,...n]=t.slice(5,-1).split(",");if(!e||n.length>0)return null;let i=C7.unit(e.trim());if(!i||!["","%"].includes(i.unit))return null;let s={l:Number(i.number),a:0,b:0};if(r){let o=C7.unit(r.trim());if(!o||!["","%"].includes(o.unit))return null;s={...s,alpha:Number(o.number)/(o.unit?100:1)}}return G2(s).rgba}});var M7=m((kRt,T7)=>{"use strict";var q7=Re(),Yqe=Ri(),Qqe=hn(),R7=xe(),{acceptCustomIdentsProperties:Jqe}=Eu(),Xqe=U(),Zqe=$(),e2e=j(),A7=Ae(),{isRegExp:t2e,isString:r2e}=re(),{colord:P7}=O7(),dy="color-named",K2=Zqe(dy,{expected:(t,e)=>`Expected "${e}" to be "${t}"`,rejected:t=>`Unexpected named color "${t}"`}),n2e={url:"https://stylelint.io/user-guide/rules/color-named"},i2e=new Set(["word","function"]),py=(t,e)=>(r,n)=>{if(!e2e(n,dy,{actual:t,possible:["never","always-where-possible"]},{actual:e,possible:{ignoreProperties:[r2e,t2e],ignore:["inside-function"]},optional:!0}))return;r.walkDecls(o=>{Jqe.has(o.prop)||R7(e,"ignoreProperties",o.prop)||A7(o.value).walk(a=>{let u=a.value,l=a.type,c=a.sourceIndex;if(R7(e,"ignore","inside-function")&&l==="function"||!Yqe(a))return!1;if(!Qqe(u)||!i2e.has(l))return;if(t==="never"&&l==="word"&&/^[a-z]+$/iu.test(u)&&u.toLowerCase()!=="transparent"&&P7(u).isValid()){s(K2.rejected(u),o,q7(o)+c,u.length);return}if(t!=="always-where-possible")return;let f=null,d=null;if(l==="function")f=A7.stringify(a),d=f.replace(/\s*([,/()])\s*/g,"$1").replace(/\s{2,}/g," ");else if(l==="word"&&u.startsWith("#"))f=d=u;else return;let p=P7(d);if(!p.isValid())return;let h=p.toName();h&&h.toLowerCase()!=="transparent"&&s(K2.expected(h,d),o,q7(o)+c,f.length)})});function s(o,a,u,l){Xqe({result:n,ruleName:dy,message:o,node:a,index:u,endIndex:u+l})}};py.ruleName=dy;py.messages=K2;py.meta=n2e;T7.exports=py});var I7=m((ERt,F7)=>{"use strict";var s2e=Ae(),o2e=Re(),a2e=vt(),u2e=U(),l2e=$(),c2e=j(),hy="color-no-hex",L7=l2e(hy,{rejected:t=>`Unexpected hex color "${t}"`}),f2e={url:"https://stylelint.io/user-guide/rules/color-no-hex"},d2e=/^#[0-9A-Za-z]+/,p2e=new Set(["url"]),gy=t=>(e,r)=>{c2e(r,hy,{actual:t})&&e.walkDecls(i=>{s2e(a2e(i)).walk(o=>{if(h2e(o))return!1;if(!g2e(o))return;let a=o2e(i)+o.sourceIndex,u=a+o.value.length;u2e({message:L7.rejected,messageArgs:[o.value],node:i,index:a,endIndex:u,result:r,ruleName:hy})})})};function h2e({type:t,value:e}){return t==="function"&&p2e.has(e.toLowerCase())}function g2e({type:t,value:e}){return t==="word"&&d2e.test(e)}gy.ruleName=hy;gy.messages=L7;gy.meta=f2e;F7.exports=gy});var j7=m((CRt,N7)=>{"use strict";N7.exports=function(e){return!e.includes("[")}});var B7=m((DRt,$7)=>{"use strict";$7.exports=function(e){return/^#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e)}});var U7=m((ORt,z7)=>{"use strict";var m2e=Re(),y2e=j7(),b2e=B7(),v2e=U(),w2e=$(),_2e=j(),x2e=Ae(),my="color-no-invalid-hex",W7=w2e(my,{rejected:t=>`Unexpected invalid hex color "${t}"`}),S2e={url:"https://stylelint.io/user-guide/rules/color-no-invalid-hex"},yy=t=>(e,r)=>{_2e(r,my,{actual:t})&&e.walkDecls(i=>{y2e(i.value)&&x2e(i.value).walk(({value:s,type:o,sourceIndex:a})=>{if(o==="function"&&s.endsWith("url"))return!1;if(o!=="word")return;let u=/^#[0-9A-Za-z]+/.exec(s);if(!u)return;let l=u[0];if(!l||b2e(l))return;let c=m2e(i)+a,f=c+l.length;v2e({message:W7.rejected(l),node:i,index:c,endIndex:f,result:r,ruleName:my})})})};yy.ruleName=my;yy.messages=W7;yy.meta=S2e;z7.exports=yy});var qu=m((qRt,H7)=>{"use strict";H7.exports=function(e){return!("inline"in e||"inline"in e.raws)}});var G7=m((RRt,V7)=>{"use strict";var k2e=vu(),E2e=No(),C2e=Tc(),D2e=wu(),O2e=Mc(),q2e=gm(),R2e=qu(),by=xe(),A2e=_u(),P2e=U(),T2e=$(),M2e=j(),{isRegExp:L2e,isString:F2e}=re(),vy="comment-empty-line-before",Y2=T2e(vy,{expected:"Expected empty line before comment",rejected:"Unexpected empty line before comment"}),I2e={url:"https://stylelint.io/user-guide/rules/comment-empty-line-before",fixable:!0},N2e="stylelint-",wy=(t,e,r)=>(n,i)=>{M2e(i,vy,{actual:t,possible:["always","never"]},{actual:e,possible:{except:["first-nested"],ignore:["stylelint-commands","after-comment"],ignoreComments:[F2e,L2e]},optional:!0})&&n.walkComments(o=>{if(O2e(o)||o.text.startsWith(N2e)&&by(e,"ignore","stylelint-commands")||by(e,"ignore","after-comment")&&C2e(o)||by(e,"ignoreComments",o.text)||q2e(o)||!R2e(o))return;let a=(()=>by(e,"except","first-nested")&&D2e(o)?!1:t==="always")(),u=o.raws.before||"",l=E2e(u);if(a===l)return;if(r.fix){if(typeof r.newline!="string")return;a?k2e(o,r.newline):A2e(o,r.newline);return}let c=a?Y2.expected:Y2.rejected;P2e({message:c,node:o,result:i,ruleName:vy})})};wy.ruleName=vy;wy.messages=Y2;wy.meta=I2e;V7.exports=wy});var Q7=m((ARt,Y7)=>{"use strict";var j2e=qu(),$2e=U(),B2e=$(),W2e=j(),_y="comment-no-empty",K7=B2e(_y,{rejected:"Unexpected empty comment"}),z2e={url:"https://stylelint.io/user-guide/rules/comment-no-empty"},xy=t=>(e,r)=>{W2e(r,_y,{actual:t})&&e.walkComments(i=>{j2e(i)&&(i.text&&i.text.length!==0||$2e({message:K7.rejected,node:i,result:r,ruleName:_y}))})};xy.ruleName=_y;xy.messages=K7;xy.meta=z2e;Y7.exports=xy});var eW=m((PRt,Z7)=>{"use strict";var U2e=U(),H2e=$(),V2e=j(),{isRegExp:G2e,isString:J7}=re(),Sy="comment-pattern",X7=H2e(Sy,{expected:t=>`Expected comment to match pattern "${t}"`}),K2e={url:"https://stylelint.io/user-guide/rules/comment-pattern"},ky=t=>(e,r)=>{if(!V2e(r,Sy,{actual:t,possible:[G2e,J7]}))return;let i=J7(t)?new RegExp(t):t;e.walkComments(s=>{let o=s.text;i.test(o)||U2e({message:X7.expected(t),node:s,result:r,ruleName:Sy})})};ky.ruleName=Sy;ky.messages=X7;ky.meta=K2e;Z7.exports=ky});var nW=m((TRt,rW)=>{"use strict";var Y2e=qu(),tW=Fc(),Q2e=U(),J2e=$(),X2e=j(),Ey="comment-whitespace-inside",zc=J2e(Ey,{expectedOpening:'Expected whitespace after "/*"',rejectedOpening:'Unexpected whitespace after "/*"',expectedClosing:'Expected whitespace before "*/"',rejectedClosing:'Unexpected whitespace before "*/"'}),Z2e={url:"https://stylelint.io/user-guide/rules/comment-whitespace-inside",fixable:!0};function eRe(t){t.text.startsWith("*")?t.text=t.text.replace(/^(\*+)/,"$1 "):t.raws.left=" "}function tRe(t){t.text[t.text.length-1]==="*"?t.text=t.text.replace(/(\*+)$/," $1"):t.raws.right=" "}var Cy=(t,e,r)=>(n,i)=>{X2e(i,Ey,{actual:t,possible:["always","never"]})&&n.walkComments(o=>{if(!Y2e(o))return;let a=o.toString(),u=a.slice(0,4);if(/^\/\*[#!]\s/.test(u))return;let l=a.match(/(^\/\*+)(\s)?/);if(l==null||l[1]==null)throw new Error(`Invalid comment: "${a}"`);let c=a.match(/(\s)?(\*+\/)$/);if(c==null||c[2]==null)throw new Error(`Invalid comment: "${a}"`);let f=l[1],d=l[2]||"",p=c[1]||"",h=c[2];t==="never"&&d!==""&&y(zc.rejectedOpening,f.length),t==="always"&&!tW(d)&&y(zc.expectedOpening,f.length),t==="never"&&p!==""&&y(zc.rejectedClosing,o.toString().length-h.length-1),t==="always"&&!tW(p)&&y(zc.expectedClosing,o.toString().length-h.length-1);function y(v,g){if(r.fix){t==="never"?(o.raws.left="",o.raws.right="",o.text=o.text.replace(/^(\*+)(\s+)?/,"$1").replace(/(\s+)?(\*+)$/,"$2")):(d||eRe(o),p||tRe(o));return}Q2e({message:v,index:g,result:i,ruleName:Ey,node:o})}})};Cy.ruleName=Ey;Cy.messages=zc;Cy.meta=Z2e;rW.exports=Cy});var oW=m((MRt,sW)=>{"use strict";var{isString:rRe}=re();sW.exports=function(e,r){if(!Array.isArray(r))return iW(e,r);for(let n of r){let i=iW(e,n);if(i)return i}return!1};function iW(t,e){return!e||!rRe(e)||e.startsWith("/")&&e.endsWith("/")?!1:t.includes(e)?{match:t,pattern:e,substring:e}:!1}});var lW=m((LRt,uW)=>{"use strict";var nRe=oW(),iRe=qt(),sRe=U(),oRe=$(),aRe=j(),{isRegExp:uRe,isString:lRe}=re(),Dy="comment-word-disallowed-list",aW=oRe(Dy,{rejected:t=>`Unexpected word matching pattern "${t}"`}),cRe={url:"https://stylelint.io/user-guide/rules/comment-word-disallowed-list"},Uc=t=>(e,r)=>{aRe(r,Dy,{actual:t,possible:[lRe,uRe]})&&e.walkComments(i=>{let s=i.text;if(i.toString().slice(0,4)==="/*# ")return;let u=iRe(s,t)||nRe(s,t);u&&sRe({message:aW.rejected(u.pattern),node:i,word:u.substring,result:r,ruleName:Dy})})};Uc.primaryOptionArray=!0;Uc.ruleName=Dy;Uc.messages=aW;Uc.meta=cRe;uW.exports=Uc});var et=m((FRt,cW)=>{"use strict";cW.exports=function(e){let r=1+e.name.length;return e.raws.afterName&&(r+=e.raws.afterName.length),r}});var hW=m((IRt,pW)=>{"use strict";var fRe=et(),dRe=U(),pRe=$(),hRe=j(),{isRegExp:gRe,isString:fW}=re(),Oy="custom-media-pattern",dW=pRe(Oy,{expected:(t,e)=>`Expected "${t}" to match pattern "${e}"`}),mRe={url:"https://stylelint.io/user-guide/rules/custom-media-pattern"},qy=t=>(e,r)=>{if(!hRe(r,Oy,{actual:t,possible:[gRe,fW]}))return;let i=fW(t)?new RegExp(t):t;e.walkAtRules(s=>{if(s.name.toLowerCase()!=="custom-media")return;let[o,a]=s.params.match(/^--(\S+)\b/)||[];if(o===void 0||a===void 0)throw new Error(`Unexpected at-rule params: "${s.params}"`);if(i.test(a))return;let u=fRe(s);dRe({message:dW.expected,messageArgs:[o,t],node:s,index:u,endIndex:u+o.length,result:r,ruleName:Oy})})};qy.ruleName=Oy;qy.messages=dW;qy.meta=mRe;pW.exports=qy});var gn=m((NRt,gW)=>{"use strict";gW.exports=function(e){return e.startsWith("--")}});var Q2=m((jRt,mW)=>{"use strict";mW.exports=function(e){return!!(e.startsWith("$")||e.includes(".$"))}});var si=m(($Rt,bW)=>{"use strict";var yRe=Q2(),{isRoot:bRe,isRule:yW}=Qe();function vRe(t){return t&&(t==="css"||t==="custom-template"||t==="template-literal")}bW.exports=function(e){let r=e.prop,n=e.parent;return!(n&&bRe(n)&&n.source&&!vRe(n.source.lang)||yRe(r)||r[0]==="@"&&r[1]!=="{"||n&&n.type==="atrule"&&n.raws.afterName===":"||n&&yW(n)&&n.selector&&n.selector.startsWith("#")&&n.selector.endsWith("()")||n&&yW(n)&&n.selector&&n.selector[n.selector.length-1]===":"&&n.selector.substring(0,2)!=="--"||"extend"in e&&e.extend)}});var SW=m((BRt,xW)=>{"use strict";var wRe=vu(),_Re=Sr(),xRe=js(),SRe=No(),vW=Tc(),_W=gn(),wW=wu(),kRe=Oi(),ERe=si(),Ru=xe(),CRe=_u(),DRe=U(),ORe=$(),qRe=j(),{isAtRule:RRe,isDeclaration:ARe,isRule:PRe}=Qe(),Ry="custom-property-empty-line-before",J2=ORe(Ry,{expected:"Expected empty line before custom property",rejected:"Unexpected empty line before custom property"}),TRe={url:"https://stylelint.io/user-guide/rules/custom-property-empty-line-before",fixable:!0},Ay=(t,e,r)=>(n,i)=>{qRe(i,Ry,{actual:t,possible:["always","never"]},{actual:e,possible:{except:["first-nested","after-comment","after-custom-property"],ignore:["after-comment","first-nested","inside-single-line-block"]},optional:!0})&&n.walkDecls(o=>{let a=o.prop,u=o.parent;if(!ERe(o)||!_W(a)||Ru(e,"ignore","after-comment")&&vW(o)||Ru(e,"ignore","first-nested")&&wW(o)||Ru(e,"ignore","inside-single-line-block")&&u!=null&&(RRe(u)||PRe(u))&&kRe(_Re(u)))return;let l=t==="always";(Ru(e,"except","first-nested")&&wW(o)||Ru(e,"except","after-comment")&&vW(o)||Ru(e,"except","after-custom-property")&&MRe(o))&&(l=!l);let c=SRe(o.raws.before);if(l===c)return;if(r.fix){if(r.newline==null)return;l?wRe(o,r.newline):CRe(o,r.newline);return}let f=l?J2.expected:J2.rejected;DRe({message:f,node:o,result:i,ruleName:Ry})})};function MRe(t){let e=xRe(t);return e!=null&&ARe(e)&&_W(e.prop)}Ay.ruleName=Ry;Ay.messages=J2;Ay.meta=TRe;xW.exports=Ay});var CW=m((WRt,EW)=>{"use strict";var LRe=Ae(),FRe=Re(),IRe=gn(),NRe=U(),jRe=$(),$Re=j(),Py="custom-property-no-missing-var-function",kW=jRe(Py,{rejected:t=>`Unexpected missing var function for "${t}"`}),BRe={url:"https://stylelint.io/user-guide/rules/custom-property-no-missing-var-function"},Ty=t=>(e,r)=>{if(!$Re(r,Py,{actual:t}))return;let i=new Set;e.walkAtRules(/^property$/i,s=>{i.add(s.params)}),e.walkDecls(({prop:s})=>{IRe(s)&&i.add(s)}),e.walkDecls(s=>{let{value:o}=s;LRe(o).walk(u=>{if(zRe(u))return!1;if(!WRe(u)||!i.has(u.value))return;let l=FRe(s)+u.sourceIndex,c=l+u.value.length;return NRe({message:kW.rejected(u.value),node:s,index:l,endIndex:c,result:r,ruleName:Py}),!1})})};function WRe({type:t,value:e}){return t==="word"&&e.startsWith("--")}function zRe({type:t,value:e}){return t==="function"&&e==="var"}Ty.ruleName=Py;Ty.messages=kW;Ty.meta=BRe;EW.exports=Ty});var oi=m((zRt,DW)=>{"use strict";var URe=qc(),HRe=Q2();DW.exports=function(e){return!(HRe(e)||e.startsWith("@")||e.endsWith("+")||e.endsWith("+_")||URe(e))}});var AW=m((URt,RW)=>{"use strict";var VRe=Ae(),GRe=gn(),KRe=U(),YRe=$(),QRe=j(),JRe=Re(),{isRegExp:XRe,isString:OW}=re(),{isValueFunction:ZRe}=Qe(),eAe=oi(),My="custom-property-pattern",qW=YRe(My,{expected:(t,e)=>`Expected "${t}" to match pattern "${e}"`}),tAe={url:"https://stylelint.io/user-guide/rules/custom-property-pattern"},Ly=t=>(e,r)=>{if(!QRe(r,My,{actual:t,possible:[XRe,OW]}))return;let i=OW(t)?new RegExp(t):t;function s(a){return!eAe(a)||!GRe(a)||i.test(a.slice(2))}e.walkDecls(a=>{let{prop:u,value:l}=a;VRe(l).walk(f=>{if(!ZRe(f)||f.value.toLowerCase()!=="var")return;let{nodes:d}=f,p=d[0];!p||s(p.value)||o(JRe(a)+p.sourceIndex,p.value,a)}),!s(u)&&o(0,u,a)});function o(a,u,l){KRe({result:r,ruleName:My,message:qW.expected,messageArgs:[u,t],node:l,index:a,endIndex:a+u.length})}};Ly.ruleName=My;Ly.messages=qW;Ly.meta=tAe;RW.exports=Ly});var Fr=m((HRt,PW)=>{var Hc="skip",Au="only";PW.exports=function(t,e){var r=t.source,n=t.target,i=t.comments?t.comments===Hc:!0,s=t.strings?t.strings===Hc:!0,o=t.functionNames?t.functionNames===Hc:!0,a=t.functionArguments===Hc,u=t.parentheticals===Hc,l=!1;Object.keys(t).forEach(function(M){if(t[M]===Au)if(!l)l=!0;else throw new Error('Only one syntax feature option can be the "only" one to check')});var c=t.comments===Au,f=t.strings===Au,d=t.functionNames===Au,p=t.functionArguments===Au,h=t.parentheticals===Au,y=!1,v=!1,g=!1,b=!1,w=!1,_=0,S=0,q,C=Array.isArray(n),R=function(){return C?function(M){for(var ae=0,ne=n.length;ae<ne;ae++){var de=O(n[ae],M);if(de)return de}return!1}:O.bind(null,n)}();function O(M,ae){var ne=M.length;return ne===1&&r[ae]!==M||r.substr(ae,ne)!==M?!1:{insideParens:b,insideFunctionArguments:w,insideComment:v,insideString:y,startIndex:ae,endIndex:ae+ne,target:M}}for(var z=0,F=r.length;z<F;z++){var te=r[z];if(!y&&!v&&te==="/"&&r[z-1]!=="\\"){if(r[z+1]==="*"){v=!0;continue}if(r[z+1]==="/"){v=!0,g=!0;continue}}if(v){if(!g&&te==="*"&&r[z-1]!=="\\"&&r[z+1]==="/"&&r[z-1]!=="/"){v=!1;continue}if(g&&te===`
|
|
79
79
|
`&&(v=!1,g=!1),i)continue}if(!v&&!y&&(te==='"'||te==="'")){if(r[z-1]==="\\")continue;q=te,y=!0,n===te&&L(R(z));continue}if(y){if(te===q){if(r[z-1]==="\\")continue;y=!1;continue}if(s)continue}if(!y&&!v&&te==="("){_++,b=!0,/[a-zA-Z]/.test(r[z-1])&&(w=!0),n==="("&&L(R(z));continue}if(b&&te===")"){_--,n===")"&&L(R(z)),_===0&&(b=!1,w=!1);continue}var K=/^[a-zA-Z]*\(/.test(r.slice(z));if(!(o&&K)&&!(d&&!K)){var ue=R(z);if(ue&&(L(ue),t.once))return}}function L(M){h&&!b||u&&b||p&&!w||a&&w||f&&!y||c&&!v||(S++,e(M,S))}}});var X2=m((VRt,TW)=>{"use strict";var rAe=Re(),nAe=U(),iAe=Fr();TW.exports=function(e){e.root.walkDecls(n=>{let i=rAe(n),s=n.toString(),o=n.toString().slice(i);o.includes("!")&&iAe({source:o,target:"!"},a=>{r(s,a.startIndex+i,n)})});function r(n,i,s){e.locationChecker({source:n,index:i,err:o=>{e.fix&&e.fix(s,i)||nAe({message:o,node:s,index:i,result:e.result,ruleName:e.checkedRuleName})}})}}});var FW=m((GRt,LW)=>{"use strict";var sAe=X2(),oAe=Re(),aAe=vt(),uAe=$(),lAe=Bt(),cAe=j(),fAe=$e(),Fy="declaration-bang-space-after",MW=uAe(Fy,{expectedAfter:()=>'Expected single space after "!"',rejectedAfter:()=>'Unexpected whitespace after "!"'}),dAe={url:"https://stylelint.io/user-guide/rules/declaration-bang-space-after",fixable:!0},Iy=(t,e,r)=>{let n=fAe("space",t,MW);return(i,s)=>{cAe(s,Fy,{actual:t,possible:["always","never"]})&&sAe({root:i,result:s,locationChecker:n.after,checkedRuleName:Fy,fix:r.fix?(a,u)=>{let l=u-oAe(a),c=aAe(a),f,d;if(l<c.length)f=c,d=y=>{lAe(a,y)};else if(a.important)f=a.raws.important||" !important",l-=c.length,d=y=>{a.raws.important=y};else return!1;let p=f.slice(0,l+1),h=f.slice(l+1);return t==="always"?(d(p+h.replace(/^\s*/," ")),!0):t==="never"?(d(p+h.replace(/^\s*/,"")),!0):!1}:null})}};Iy.ruleName=Fy;Iy.messages=MW;Iy.meta=dAe;LW.exports=Iy});var jW=m((KRt,NW)=>{"use strict";var pAe=X2(),hAe=Re(),gAe=vt(),mAe=$(),yAe=Bt(),bAe=j(),vAe=$e(),Ny="declaration-bang-space-before",IW=mAe(Ny,{expectedBefore:()=>'Expected single space before "!"',rejectedBefore:()=>'Unexpected whitespace before "!"'}),wAe={url:"https://stylelint.io/user-guide/rules/declaration-bang-space-before",fixable:!0},jy=(t,e,r)=>{let n=vAe("space",t,IW);return(i,s)=>{bAe(s,Ny,{actual:t,possible:["always","never"]})&&pAe({root:i,result:s,locationChecker:n.before,checkedRuleName:Ny,fix:r.fix?(a,u)=>{let l=u-hAe(a),c=gAe(a),f,d;if(l<c.length)f=c,d=y=>{yAe(a,y)};else if(a.important)f=a.raws.important||" !important",l-=c.length,d=y=>{a.raws.important=y};else return!1;let p=f.slice(0,l),h=f.slice(l);return t==="always"?(d(p.replace(/\s*$/,"")+" "+h),!0):t==="never"?(d(p.replace(/\s*$/,"")+h),!0):!1}:null})}};jy.ruleName=Ny;jy.messages=IW;jy.meta=wAe;NW.exports=jy});var Vc=m((YRt,$W)=>{"use strict";var{isRoot:_Ae,isAtRule:xAe,isRule:SAe}=Qe();function kAe(t){return SAe(t)||xAe(t)||_Ae(t)}$W.exports=function(e,r){function n(i){if(kAe(i)&&i.nodes&&i.nodes.length){let s=[];for(let o of i.nodes)o.type==="decl"&&s.push(o),n(o);s.length&&r(s.forEach.bind(s))}}n(e)}});var zW=m((QRt,WW)=>{"use strict";var EAe=Vc(),CAe=gn(),DAe=oi(),OAe=U(),qAe=$(),RAe=j(),$y="declaration-block-no-duplicate-custom-properties",BW=qAe($y,{rejected:t=>`Unexpected duplicate "${t}"`}),AAe={url:"https://stylelint.io/user-guide/rules/declaration-block-no-duplicate-custom-properties"},By=t=>(e,r)=>{RAe(r,$y,{actual:t})&&EAe(e,i=>{let s=new Set;i(o=>{let a=o.prop;if(!DAe(a)||!CAe(a))return;if(s.has(a)){OAe({message:BW.rejected(a),node:o,result:r,ruleName:$y,word:a});return}s.add(a)})})};By.ruleName=$y;By.messages=BW;By.meta=AAe;WW.exports=By});var GW=m((JRt,VW)=>{"use strict";var PAe=Vc(),TAe=gn(),MAe=oi(),Wy=xe(),UW=U(),LAe=$(),FAe=j(),{isString:IAe}=re(),HW=rt(),Gc="declaration-block-no-duplicate-properties",Z2=LAe(Gc,{rejected:t=>`Unexpected duplicate "${t}"`}),NAe={url:"https://stylelint.io/user-guide/rules/declaration-block-no-duplicate-properties",fixable:!0},zy=(t,e,r)=>(n,i)=>{if(!FAe(i,Gc,{actual:t},{actual:e,possible:{ignore:["consecutive-duplicates","consecutive-duplicates-with-different-values","consecutive-duplicates-with-same-prefixless-values"],ignoreProperties:[IAe]},optional:!0}))return;let o=Wy(e,"ignore","consecutive-duplicates"),a=Wy(e,"ignore","consecutive-duplicates-with-different-values"),u=Wy(e,"ignore","consecutive-duplicates-with-same-prefixless-values");PAe(n,l=>{let c=[];l(f=>{let d=f.prop,p=f.prop.toLowerCase(),h=f.value,y=f.important;if(!MAe(d)||TAe(d)||Wy(e,"ignoreProperties",d)||p==="src")return;let v=c.findIndex(R=>R.prop.toLowerCase()===p);v===-1&&c.push(f);let g=c[v];if(!g)return;let b=g.value||"",w=g.important||!1,_=!y&&w,S=v===c.length-1,q=HW.unprefixed(h)===HW.unprefixed(b),C=()=>r.fix?_?f.remove():g.remove():UW({message:Z2.rejected(d),node:f,result:i,ruleName:Gc,word:d});if(a||u)return(!S||u&&!q)&&C(),h!==b?void 0:r.fix?g.remove():UW({message:Z2.rejected(d),node:f,result:i,ruleName:Gc,word:d});o&&S||C()})})};zy.ruleName=Gc;zy.messages=Z2;zy.meta=NAe;VW.exports=zy});var XW=m((XRt,JW)=>{"use strict";var jAe=sm(),$Ae=Vc(),BAe=xe(),WAe=U(),zAe=$(),{longhandSubPropertiesOfShorthandProperties:KW}=Eu(),UAe=j(),YW=rt(),{isRegExp:HAe,isString:VAe}=re(),Uy="declaration-block-no-redundant-longhand-properties",QW=zAe(Uy,{expected:t=>`Expected shorthand property "${t}"`}),GAe={url:"https://stylelint.io/user-guide/rules/declaration-block-no-redundant-longhand-properties"},KAe=new Set(["inherit"]),Hy=(t,e)=>(r,n)=>{if(!UAe(n,Uy,{actual:t},{actual:e,possible:{ignoreShorthands:[VAe,HAe]},optional:!0}))return;let s=new Map;for(let[o,a]of KW.entries())if(!BAe(e,"ignoreShorthands",o))for(let u of a){let l=s.get(u)||[];l.push(o),s.set(u,l)}$Ae(r,o=>{let a=new Map;o(u=>{if(KAe.has(u.value))return;let l=u.prop.toLowerCase(),c=YW.unprefixed(l),f=YW.prefix(l),d=s.get(c);if(d)for(let p of d){let h=f+p,y=a.get(h)||[];y.push(l),a.set(h,y);let v=KW.get(p),g=Array.from(v||[]).map(b=>f+b);jAe(g.sort(),y.sort())&&WAe({ruleName:Uy,result:n,node:u,word:u.prop,message:QW.expected(h)})}})})};Hy.ruleName=Uy;Hy.messages=QW;Hy.meta=GAe;JW.exports=Hy});var rz=m((ZRt,tz)=>{"use strict";var YAe=Vc(),QAe=U(),JAe=$(),{longhandSubPropertiesOfShorthandProperties:XAe}=Eu(),ZAe=j(),ZW=rt(),Vy="declaration-block-no-shorthand-property-overrides",ez=JAe(Vy,{rejected:(t,e)=>`Unexpected shorthand "${t}" after "${e}"`}),ePe={url:"https://stylelint.io/user-guide/rules/declaration-block-no-shorthand-property-overrides"},Gy=t=>(e,r)=>{ZAe(r,Vy,{actual:t})&&YAe(e,i=>{let s=new Map;i(o=>{let a=o.prop,u=ZW.unprefixed(a).toLowerCase(),l=ZW.prefix(a).toLowerCase(),c=XAe.get(u);if(!c){s.set(a.toLowerCase(),a);return}for(let f of c){let d=s.get(l+f);d&&QAe({ruleName:Vy,result:r,node:o,message:ez.rejected(a,d||""),word:a})}})})};Gy.ruleName=Vy;Gy.messages=ez;Gy.meta=ePe;tz.exports=Gy});var sz=m((eAt,iz)=>{"use strict";var tPe=Sr(),rPe=k2(),nPe=ns(),iPe=U(),sPe=$(),oPe=j(),aPe=$e(),{isAtRule:uPe,isRule:lPe}=Qe(),Ky="declaration-block-semicolon-newline-after",nz=sPe(Ky,{expectedAfter:()=>'Expected newline after ";"',expectedAfterMultiLine:()=>'Expected newline after ";" in a multi-line declaration block',rejectedAfterMultiLine:()=>'Unexpected newline after ";" in a multi-line declaration block'}),cPe={url:"https://stylelint.io/user-guide/rules/declaration-block-semicolon-newline-after",fixable:!0},Yy=(t,e,r)=>{let n=aPe("newline",t,nz);return(i,s)=>{oPe(s,Ky,{actual:t,possible:["always","always-multi-line","never-multi-line"]})&&i.walkDecls(a=>{let u=a.parent;if(!u)throw new Error("A parent node must be present");if(!uPe(u)&&!lPe(u)||!u.raws.semicolon&&u.last===a)return;let l=a.next();if(!l)return;let c=rPe(l);c&&n.afterOneOnly({source:nPe(c),index:-1,lineCheckStr:tPe(u),err:f=>{if(r.fix){if(t.startsWith("always")){let d=c.raws.before.search(/\r?\n/);c.raws.before=d>=0?c.raws.before.slice(d):r.newline+c.raws.before;return}if(t==="never-multi-line"){c.raws.before="";return}}iPe({message:f,node:a,index:a.toString().length+1,result:s,ruleName:Ky})}})})}};Yy.ruleName=Ky;Yy.messages=nz;Yy.meta=cPe;iz.exports=Yy});var uz=m((tAt,az)=>{"use strict";var fPe=Sr(),dPe=U(),pPe=$(),hPe=j(),gPe=$e(),{isAtRule:mPe,isRule:yPe}=Qe(),Qy="declaration-block-semicolon-newline-before",oz=pPe(Qy,{expectedBefore:()=>'Expected newline before ";"',expectedBeforeMultiLine:()=>'Expected newline before ";" in a multi-line declaration block',rejectedBeforeMultiLine:()=>'Unexpected whitespace before ";" in a multi-line declaration block'}),bPe={url:"https://stylelint.io/user-guide/rules/declaration-block-semicolon-newline-before"},Jy=t=>{let e=gPe("newline",t,oz);return(r,n)=>{hPe(n,Qy,{actual:t,possible:["always","always-multi-line","never-multi-line"]})&&r.walkDecls(s=>{let o=s.parent;if(!o)throw new Error("A parent node must be present");if(!mPe(o)&&!yPe(o)||!o.raws.semicolon&&o.last===s)return;let a=s.toString();e.beforeAllowingIndentation({source:a,index:a.length,lineCheckStr:fPe(o),err:u=>{dPe({message:u,node:s,index:s.toString().length-1,result:n,ruleName:Qy})}})})}};Jy.ruleName=Qy;Jy.messages=oz;Jy.meta=bPe;az.exports=Jy});var fz=m((rAt,cz)=>{"use strict";var vPe=Sr(),wPe=ns(),_Pe=U(),xPe=$(),SPe=j(),kPe=$e(),{isAtRule:EPe,isRule:CPe}=Qe(),Xy="declaration-block-semicolon-space-after",lz=xPe(Xy,{expectedAfter:()=>'Expected single space after ";"',rejectedAfter:()=>'Unexpected whitespace after ";"',expectedAfterSingleLine:()=>'Expected single space after ";" in a single-line declaration block',rejectedAfterSingleLine:()=>'Unexpected whitespace after ";" in a single-line declaration block'}),DPe={url:"https://stylelint.io/user-guide/rules/declaration-block-semicolon-space-after",fixable:!0},Zy=(t,e,r)=>{let n=kPe("space",t,lz);return(i,s)=>{SPe(s,Xy,{actual:t,possible:["always","never","always-single-line","never-single-line"]})&&i.walkDecls(a=>{let u=a.parent;if(!u)throw new Error("A parent node must be present");if(!EPe(u)&&!CPe(u)||!u.raws.semicolon&&u.last===a)return;let l=a.next();l&&n.after({source:wPe(l),index:-1,lineCheckStr:vPe(u),err:c=>{if(r.fix){if(t.startsWith("always")){l.raws.before=" ";return}if(t.startsWith("never")){l.raws.before="";return}}_Pe({message:c,node:a,index:a.toString().length+1,result:s,ruleName:Xy})}})})}};Zy.ruleName=Xy;Zy.messages=lz;Zy.meta=DPe;cz.exports=Zy});var gz=m((nAt,hz)=>{"use strict";var OPe=Sr(),qPe=vt(),RPe=U(),APe=$(),dz=Bt(),PPe=j(),TPe=$e(),{isAtRule:MPe,isRule:LPe}=Qe(),eb="declaration-block-semicolon-space-before",pz=APe(eb,{expectedBefore:()=>'Expected single space before ";"',rejectedBefore:()=>'Unexpected whitespace before ";"',expectedBeforeSingleLine:()=>'Expected single space before ";" in a single-line declaration block',rejectedBeforeSingleLine:()=>'Unexpected whitespace before ";" in a single-line declaration block'}),FPe={url:"https://stylelint.io/user-guide/rules/declaration-block-semicolon-space-before",fixable:!0},tb=(t,e,r)=>{let n=TPe("space",t,pz);return(i,s)=>{PPe(s,eb,{actual:t,possible:["always","never","always-single-line","never-single-line"]})&&i.walkDecls(a=>{let u=a.parent;if(!u)throw new Error("A parent node must be present");if(!MPe(u)&&!LPe(u)||!u.raws.semicolon&&u.last===a)return;let l=a.toString();n.before({source:l,index:l.length,lineCheckStr:OPe(u),err:c=>{if(r.fix){let f=qPe(a);if(t.startsWith("always")){a.important?a.raws.important=" !important ":dz(a,f.replace(/\s*$/," "));return}if(t.startsWith("never")){a.raws.important?a.raws.important=a.raws.important.replace(/\s*$/,""):dz(a,f.replace(/\s*$/,""));return}}RPe({message:c,node:a,index:a.toString().length-1,result:s,ruleName:eb})}})})}};tb.ruleName=eb;tb.messages=pz;tb.meta=FPe;hz.exports=tb});var bz=m((iAt,yz)=>{"use strict";var IPe=Sr(),NPe=Oi(),jPe=U(),$Pe=$(),BPe=j(),{isNumber:WPe}=re(),rb="declaration-block-single-line-max-declarations",mz=$Pe(rb,{expected:t=>`Expected no more than ${t} ${t===1?"declaration":"declarations"}`}),zPe={url:"https://stylelint.io/user-guide/rules/declaration-block-single-line-max-declarations"},nb=t=>(e,r)=>{BPe(r,rb,{actual:t,possible:[WPe]})&&e.walkRules(i=>{let s=IPe(i);!NPe(s)||!i.nodes||i.nodes.filter(a=>a.type==="decl").length<=t||jPe({message:mz.expected(t),node:i,word:s,result:r,ruleName:rb})})};nb.ruleName=rb;nb.messages=mz;nb.meta=zPe;yz.exports=nb});var wz=m((sAt,vz)=>{"use strict";var UPe=ir(),HPe=xe(),VPe=U(),GPe=$(),{isAtRule:KPe}=Qe(),YPe=j(),ib="declaration-block-trailing-semicolon",eR=GPe(ib,{expected:"Expected a trailing semicolon",rejected:"Unexpected trailing semicolon"}),QPe={url:"https://stylelint.io/user-guide/rules/declaration-block-trailing-semicolon",fixable:!0},sb=(t,e,r)=>(n,i)=>{if(!YPe(i,ib,{actual:t,possible:["always","never"]},{actual:e,possible:{ignore:["single-declaration"]},optional:!0}))return;n.walkAtRules(a=>{if(!a.parent)throw new Error("A parent node must be present");a.parent!==n&&a===a.parent.last&&(UPe(a)||o(a))}),n.walkDecls(a=>{if(!a.parent)throw new Error("A parent node must be present");a.parent.type!=="object"&&a===a.parent.last&&o(a)});function o(a){if(!a.parent)throw new Error("A parent node must be present");let u=a.parent.raws.semicolon;if(HPe(e,"ignore","single-declaration")&&a.parent.first===a)return;let c;if(t==="always"){if(u)return;if(r.fix){a.parent.raws.semicolon=!0,KPe(a)&&(a.raws.between="",a.parent.raws.after=" ");return}c=eR.expected}else if(t==="never"){if(!u)return;if(r.fix){a.parent.raws.semicolon=!1;return}c=eR.rejected}else throw new Error(`Unexpected primary option: "${t}"`);VPe({message:c,node:a,index:a.toString().trim().length-1,result:i,ruleName:ib})}};sb.ruleName=ib;sb.messages=eR;sb.meta=QPe;vz.exports=sb});var kz=m((oAt,Sz)=>{"use strict";var _z=Re(),JPe=si(),XPe=U(),ZPe=$(),eTe=j(),tTe=$e(),ob="declaration-colon-newline-after",xz=ZPe(ob,{expectedAfter:()=>'Expected newline after ":"',expectedAfterMultiLine:()=>'Expected newline after ":" with a multi-line declaration'}),rTe={url:"https://stylelint.io/user-guide/rules/declaration-colon-newline-after",fixable:!0},ab=(t,e,r)=>{let n=tTe("newline",t,xz);return(i,s)=>{eTe(s,ob,{actual:t,possible:["always","always-multi-line"]})&&i.walkDecls(a=>{if(!JPe(a))return;let u=_z(a)+(a.raws.between||"").length-1,l=`${a.toString().slice(0,u)}xxx`;for(let c=0,f=l.length;c<f;c++){if(l[c]!==":")continue;let d=/^[^\S\r\n]*\/\*/.test(l.slice(c+1))?l.indexOf("*/",c)+1:c;n.afterOneOnly({source:l,index:d,lineCheckStr:a.value,err:p=>{if(r.fix){let h=a.raws.between;if(h==null)throw new Error("`between` must be present");let y=_z(a)-h.length,v=d-y+1,g=h.slice(0,v),b=h.slice(v);a.raws.between=/^\s*\n/.test(b)?g+b.replace(/^[^\S\r\n]*/,""):g+r.newline+b;return}XPe({message:p,node:a,index:d,result:s,ruleName:ob})}})}})}};ab.ruleName=ob;ab.messages=xz;ab.meta=rTe;Sz.exports=ab});var tR=m((aAt,Ez)=>{"use strict";var nTe=Re(),iTe=si(),sTe=U();Ez.exports=function(e){e.root.walkDecls(r=>{if(!iTe(r))return;let n=nTe(r)+(r.raws.between||"").length-1,i=`${r.toString().slice(0,n)}xxx`;for(let s=0,o=i.length;s<o;s++)if(i[s]===":"){e.locationChecker({source:i,index:s,lineCheckStr:r.value,err:a=>{e.fix&&e.fix(r,s)||sTe({message:a,node:r,index:r.prop.toString().length+1,result:e.result,ruleName:e.checkedRuleName})}});break}})}});var Oz=m((uAt,Dz)=>{"use strict";var oTe=tR(),aTe=Re(),uTe=$(),lTe=j(),cTe=$e(),ub="declaration-colon-space-after",Cz=uTe(ub,{expectedAfter:()=>'Expected single space after ":"',rejectedAfter:()=>'Unexpected whitespace after ":"',expectedAfterSingleLine:()=>'Expected single space after ":" with a single-line declaration'}),fTe={url:"https://stylelint.io/user-guide/rules/declaration-colon-space-after",fixable:!0},lb=(t,e,r)=>{let n=cTe("space",t,Cz);return(i,s)=>{lTe(s,ub,{actual:t,possible:["always","never","always-single-line"]})&&oTe({root:i,result:s,locationChecker:n.after,checkedRuleName:ub,fix:r.fix?(a,u)=>{let l=u-aTe(a),c=a.raws.between;if(c==null)throw new Error("`between` must be present");return t.startsWith("always")?(a.raws.between=c.slice(0,l)+c.slice(l).replace(/^:\s*/,": "),!0):t==="never"?(a.raws.between=c.slice(0,l)+c.slice(l).replace(/^:\s*/,":"),!0):!1}:null})}};lb.ruleName=ub;lb.messages=Cz;lb.meta=fTe;Dz.exports=lb});var Az=m((lAt,Rz)=>{"use strict";var dTe=tR(),pTe=Re(),hTe=$(),gTe=j(),mTe=$e(),cb="declaration-colon-space-before",qz=hTe(cb,{expectedBefore:()=>'Expected single space before ":"',rejectedBefore:()=>'Unexpected whitespace before ":"'}),yTe={url:"https://stylelint.io/user-guide/rules/declaration-colon-space-before",fixable:!0},fb=(t,e,r)=>{let n=mTe("space",t,qz);return(i,s)=>{gTe(s,cb,{actual:t,possible:["always","never"]})&&dTe({root:i,result:s,locationChecker:n.before,checkedRuleName:cb,fix:r.fix?(a,u)=>{let l=u-pTe(a),c=a.raws.between;if(c==null)throw new Error("`between` must be present");return t==="always"?(a.raws.between=c.slice(0,l).replace(/\s*$/," ")+c.slice(l),!0):t==="never"?(a.raws.between=c.slice(0,l).replace(/\s*$/,"")+c.slice(l),!0):!1}:null})}};fb.ruleName=cb;fb.messages=qz;fb.meta=yTe;Rz.exports=fb});var Tz=m((cAt,Pz)=>{"use strict";var bTe=js(),vTe=gn(),wTe=si(),{isDeclaration:_Te}=Qe();Pz.exports=function(e){let r=bTe(e);return r!==void 0&&_Te(r)&&wTe(r)&&!vTe(r.prop||"")}});var Nz=m((fAt,Iz)=>{"use strict";var xTe=vu(),STe=Sr(),kTe=No(),Mz=Tc(),Lz=Tz(),ETe=gn(),Fz=wu(),CTe=Mc(),DTe=Oi(),OTe=si(),$o=xe(),qTe=_u(),RTe=U(),ATe=$(),PTe=j(),{isAtRule:TTe,isRule:MTe,isRoot:LTe}=Qe(),db="declaration-empty-line-before",rR=ATe(db,{expected:"Expected empty line before declaration",rejected:"Unexpected empty line before declaration"}),FTe={url:"https://stylelint.io/user-guide/rules/declaration-empty-line-before",fixable:!0},pb=(t,e,r)=>(n,i)=>{PTe(i,db,{actual:t,possible:["always","never"]},{actual:e,possible:{except:["first-nested","after-comment","after-declaration"],ignore:["after-comment","after-declaration","first-nested","inside-single-line-block"]},optional:!0})&&n.walkDecls(o=>{let a=o.prop,u=o.parent;if(u==null||CTe(o)||!TTe(u)&&!MTe(u)&&!LTe(u)||!OTe(o)||ETe(a)||$o(e,"ignore","after-comment")&&Mz(o)||$o(e,"ignore","after-declaration")&&Lz(o)||$o(e,"ignore","first-nested")&&Fz(o)||$o(e,"ignore","inside-single-line-block")&&DTe(STe(u)))return;let l=t==="always";($o(e,"except","first-nested")&&Fz(o)||$o(e,"except","after-comment")&&Mz(o)||$o(e,"except","after-declaration")&&Lz(o))&&(l=!l);let c=kTe(o.raws.before);if(l===c)return;if(r.fix){if(r.newline==null)return;l?xTe(o,r.newline):qTe(o,r.newline);return}let f=l?rR.expected:rR.rejected;RTe({message:f,node:o,result:i,ruleName:db})})};pb.ruleName=db;pb.messages=rR;pb.meta=FTe;Iz.exports=pb});var nR=m((dAt,jz)=>{"use strict";jz.exports=function(e){let r=/!\s*important\b/gi,n=r.exec(e);if(n)return{index:n.index,endIndex:r.lastIndex}}});var Wz=m((pAt,Bz)=>{"use strict";var ITe=nR(),NTe=U(),jTe=$(),$Te=j(),{assert:BTe}=re(),hb="declaration-no-important",$z=jTe(hb,{rejected:"Unexpected !important"}),WTe={url:"https://stylelint.io/user-guide/rules/declaration-no-important"},gb=t=>(e,r)=>{$Te(r,hb,{actual:t})&&e.walkDecls(i=>{if(!i.important)return;let s=ITe(i.toString());BTe(s),NTe({message:$z.rejected,node:i,index:s.index,endIndex:s.endIndex,result:r,ruleName:hb})})};gb.ruleName=hb;gb.messages=$z;gb.meta=WTe;Bz.exports=gb});var Uz=m((hAt,zz)=>{"use strict";var{isPlainObject:zTe}=re();zz.exports=t=>e=>zTe(e)?Object.values(e).every(r=>t(r)):!1});var Gz=m((gAt,Vz)=>{"use strict";var UTe=Ae(),HTe=qt(),VTe=U(),GTe=$(),KTe=rt(),YTe=j(),{isNumber:QTe,assertNumber:JTe}=re(),XTe=Uz(),mb="declaration-property-max-values",Hz=GTe(mb,{rejected:(t,e)=>`Expected "${t}" to have no more than ${e} ${e===1?"value":"values"}`}),ZTe={url:"https://stylelint.io/user-guide/rules/declaration-property-max-values"},eMe=t=>t.type==="word"||t.type==="function"||t.type==="string",yb=t=>(e,r)=>{YTe(r,mb,{actual:t,possible:[XTe(QTe)]})&&e.walkDecls(i=>{let{prop:s,value:o}=i,a=UTe(o).nodes.filter(eMe).length,u=KTe.unprefixed(s),l=Object.keys(t).find(f=>HTe(u,f));if(!l)return;let c=t[l];JTe(c),!(a<=c)&&VTe({message:Hz.rejected(s,c),node:i,result:r,ruleName:mb})})};yb.ruleName=mb;yb.messages=Hz;yb.meta=ZTe;Vz.exports=yb});var Yz=m((mAt,Kz)=>{"use strict";Kz.exports=function(e,r=" "){return e.replace(/[#@{}]+/g,r)}});var ai=m((yAt,Qz)=>{"use strict";var tMe=Yz(),rMe=hn(),nMe=Ae();Qz.exports=function(e){if(!e||!e.value)return{unit:null,number:null};if(e.type!=="word")return{unit:null,number:null};if(!rMe(e.value))return{unit:null,number:null};if(e.value.startsWith("#"))return{unit:null,number:null};let r=tMe(e.value,"").replace("\\0","").replace("\\9",""),n=nMe.unit(r);return n||{unit:null,number:null}}});var Zz=m((bAt,Xz)=>{"use strict";var iMe=Ae(),sMe=Re(),oMe=Rm(),aMe=ai(),uMe=qt(),lMe=xe(),cMe=U(),fMe=$(),dMe=qi(),pMe=j(),{isString:hMe}=re(),gMe=rt(),bb="declaration-property-unit-allowed-list",Jz=fMe(bb,{rejected:(t,e)=>`Unexpected unit "${e}" for property "${t}"`}),mMe={url:"https://stylelint.io/user-guide/rules/declaration-property-unit-allowed-list"},vb=(t,e)=>(r,n)=>{pMe(n,bb,{actual:t,possible:[dMe(hMe)]},{actual:e,possible:{ignore:["inside-function"]},optional:!0})&&r.walkDecls(s=>{let o=s.prop,a=s.value,u=gMe.unprefixed(o),l=Object.keys(t).find(f=>uMe(u,f));if(!l)return;let c=oMe(t[l]);c&&iMe(a).walk(f=>{if(f.type==="function"&&(f.value.toLowerCase()==="url"||lMe(e,"ignore","inside-function")))return!1;if(f.type==="string")return;let{unit:d}=aMe(f);if(!d||d&&c.includes(d.toLowerCase()))return;let p=sMe(s)+f.sourceIndex,h=p+f.value.length;cMe({message:Jz.rejected(o,d),node:s,index:p,endIndex:h,result:n,ruleName:bb})})})};vb.ruleName=bb;vb.messages=Jz;vb.meta=mMe;Xz.exports=vb});var rU=m((vAt,tU)=>{"use strict";var yMe=Ae(),bMe=Re(),vMe=Rm(),wMe=ai(),_Me=qt(),xMe=U(),SMe=$(),kMe=qi(),EMe=j(),{isString:CMe}=re(),DMe=rt(),wb="declaration-property-unit-disallowed-list",eU=SMe(wb,{rejected:(t,e)=>`Unexpected unit "${e}" for property "${t}"`}),OMe={url:"https://stylelint.io/user-guide/rules/declaration-property-unit-disallowed-list"},_b=t=>(e,r)=>{EMe(r,wb,{actual:t,possible:[kMe(CMe)]})&&e.walkDecls(i=>{let s=i.prop,o=i.value,a=DMe.unprefixed(s),u=Object.keys(t).find(c=>_Me(a,c));if(!u)return;let l=vMe(t[u]);l&&yMe(o).walk(c=>{if(c.type==="function"&&c.value.toLowerCase()==="url")return!1;if(c.type==="string")return;let{unit:f}=wMe(c);if(!f||f&&!l.includes(f.toLowerCase()))return;let d=bMe(i)+c.sourceIndex,p=d+c.value.length;xMe({message:eU.rejected,messageArgs:[s,f],node:i,index:d,endIndex:p,result:r,ruleName:wb})})})};_b.ruleName=wb;_b.messages=eU;_b.meta=OMe;tU.exports=_b});var sU=m((wAt,iU)=>{"use strict";var qMe=Re(),RMe=qt(),AMe=xe(),PMe=U(),TMe=$(),MMe=qi(),LMe=j(),{isString:FMe,isRegExp:IMe}=re(),NMe=rt(),xb="declaration-property-value-allowed-list",nU=TMe(xb,{rejected:(t,e)=>`Unexpected value "${e}" for property "${t}"`}),jMe={url:"https://stylelint.io/user-guide/rules/declaration-property-value-allowed-list"},Sb=t=>(e,r)=>{if(!LMe(r,xb,{actual:t,possible:[MMe(FMe,IMe)]}))return;let i=Object.keys(t);e.walkDecls(s=>{let{prop:o,value:a}=s,u=NMe.unprefixed(o),l=i.filter(d=>RMe(u,d));if(l.length===0||l.some(d=>AMe(t,d,a)))return;let c=qMe(s),f=c+s.value.length;PMe({message:nU.rejected(o,a),node:s,index:c,endIndex:f,result:r,ruleName:xb})})};Sb.ruleName=xb;Sb.messages=nU;Sb.meta=jMe;iU.exports=Sb});var uU=m((_At,aU)=>{"use strict";var $Me=Re(),BMe=qt(),WMe=xe(),zMe=U(),UMe=$(),HMe=qi(),VMe=j(),{isString:GMe,isRegExp:KMe}=re(),YMe=rt(),kb="declaration-property-value-disallowed-list",oU=UMe(kb,{rejected:(t,e)=>`Unexpected value "${e}" for property "${t}"`}),QMe={url:"https://stylelint.io/user-guide/rules/declaration-property-value-disallowed-list"},Eb=t=>(e,r)=>{if(!VMe(r,kb,{actual:t,possible:[HMe(GMe,KMe)]}))return;let i=Object.keys(t);e.walkDecls(s=>{let{prop:o,value:a}=s,u=YMe.unprefixed(o),l=i.filter(d=>BMe(u,d));if(l.length===0||l.every(d=>!WMe(t,d,a)))return;let c=$Me(s),f=c+s.value.length;zMe({message:oU.rejected,messageArgs:[o,a],node:s,index:c,endIndex:f,result:r,ruleName:kb})})};Eb.ruleName=kb;Eb.messages=oU;Eb.meta=QMe;aU.exports=Eb});var iR=m((xAt,lU)=>{"use strict";lU.exports=function(e){return e.toString().trim().length!==0&&Number(e)==e}});var mn=m((SAt,wU)=>{"use strict";var Rt=Su(),At=new Set(["initial","inherit","revert","revert-layer","unset"]),JMe=Rt(At,["caption","icon","menu","message-box","small-caption","status-bar"]),cU=Rt(At,["serif","sans-serif","cursive","fantasy","monospace","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded"]),fU=new Set(["bolder","lighter"]),dU=new Set(["normal","bold"]),pU=Rt(fU,dU),XMe=new Set(["100","200","300","400","500","600","700","800","900"]),hU=Rt(At,pU,XMe),ZMe=Rt(At,["normal","italic","oblique"]),eLe=Rt(At,["normal","none","historical-forms","none","common-ligatures","no-common-ligatures","discretionary-ligatures","no-discretionary-ligatures","historical-ligatures","no-historical-ligatures","contextual","no-contextual","small-caps","small-caps","all-small-caps","petite-caps","all-petite-caps","unicase","titling-caps","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions","ordinal","slashed-zero","jis78","jis83","jis90","jis04","simplified","traditional","full-width","proportional-width","ruby"]),tLe=Rt(At,["semi-condensed","condensed","extra-condensed","ultra-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded"]),gU=Rt(At,["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]),rLe=Rt(At,["normal"]),nLe=Rt(At,ZMe,eLe,hU,tLe,gU,rLe,cU),mU=Rt(At,["none"]),iLe=Rt(At,["linear","ease","ease-in","ease-in-out","ease-out","step-start","step-end","steps","cubic-bezier"]),sLe=new Set(["infinite"]),oLe=Rt(At,["normal","reverse","alternate","alternate-reverse"]),aLe=new Set(["none","forwards","backwards","both"]),uLe=Rt(At,["running","paused"]),lLe=Rt(At,mU,iLe,sLe,oLe,aLe,uLe),cLe=Rt(At,["auto","span"]),fLe=Rt(At,["auto","span"]),dLe=Rt(At,["auto","span"]),pLe=Rt(At,["none"]),hLe=Rt(At,["none"]),yU=Rt(At,["none","disc","circle","square","decimal","cjk-decimal","decimal-leading-zero","lower-roman","upper-roman","lower-greek","lower-alpha","lower-latin","upper-alpha","upper-latin","arabic-indic","armenian","bengali","cambodian","cjk-earthly-branch","cjk-ideographic","devanagari","ethiopic-numeric","georgian","gujarati","gurmukhi","hebrew","hiragana","hiragana-iroha","japanese-formal","japanese-informal","kannada","katakana","katakana-iroha","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","lao","lower-armenian","malayalam","mongolian","myanmar","oriya","persian","simp-chinese-formal","simp-chinese-informal","tamil","telugu","thai","tibetan","trad-chinese-formal","trad-chinese-informal","upper-armenian","disclosure-open","disclosure-closed","ethiopic-halehame","ethiopic-halehame-am","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","hangul","hangul-consonant","urdu"]),bU=Rt(At,["inside","outside"]),vU=Rt(At,["none"]),gLe=Rt(At,yU,bU,vU),mLe=new Set(["optimizeSpeed","optimizeQuality","optimizeLegibility","geometricPrecision","currentColor","crispEdges","visiblePainted","visibleFill","visibleStroke","sRGB","linearRGB"]),yLe=new Set(["from","to"]),bLe=new Set(["activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext"]);wU.exports={animationNameKeywords:mU,animationShorthandKeywords:lLe,basicKeywords:At,camelCaseKeywords:mLe,counterIncrementKeywords:pLe,counterResetKeywords:hLe,fontFamilyKeywords:cU,fontShorthandKeywords:nLe,fontSizeKeywords:gU,fontWeightAbsoluteKeywords:dU,fontWeightKeywords:hU,fontWeightNonNumericKeywords:pU,fontWeightRelativeKeywords:fU,gridAreaKeywords:dLe,gridColumnKeywords:fLe,gridRowKeywords:cLe,keyframeSelectorKeywords:yLe,listStyleImageKeywords:vU,listStylePositionKeywords:bU,listStyleShorthandKeywords:gLe,listStyleTypeKeywords:yU,systemColorsKeywords:bLe,systemFontKeywords:JMe}});var Cb=m((kAt,xU)=>{"use strict";var vLe=Su(),_U=new Set(["cap","ch","em","ex","ic","lh","rcap","rch","rem","rex","ric","rlh","dvb","dvh","dvi","dvmax","dvmin","dvw","lvb","lvh","lvi","lvmax","lvmin","lvw","svb","svh","svi","svmax","svmin","svw","vb","vh","vi","vw","vmin","vmax","vm","px","mm","cm","in","pt","pc","q","mozmm","fr","cqw","cqh","cqi","cqb","cqmin","cqmax"]),wLe=vLe(_U,["%","s","ms","deg","grad","turn","rad","Hz","kHz","dpi","dpcm","dppx"]);xU.exports={lengthUnits:_U,units:wLe}});var kU=m((EAt,SU)=>{"use strict";var{fontSizeKeywords:_Le}=mn(),{lengthUnits:xLe}=Cb(),SLe=Ae();SU.exports=function(e){if(!e)return!1;if(_Le.has(e))return!0;let r=SLe.unit(e);if(!r)return!1;let n=r.unit;return!!(n==="%"||xLe.has(n.toLowerCase()))}});var Pu=m((CAt,EU)=>{"use strict";EU.exports=function(e){return e.toLowerCase().startsWith("var(")}});var Db=m((DAt,DU)=>{"use strict";var kLe=Ae(),ELe=iR(),CLe=hn(),CU=kU(),DLe=Pu(),{assert:OLe}=re(),{basicKeywords:qLe,fontFamilyKeywords:RLe,fontShorthandKeywords:ALe}=mn(),PLe=new Set(["word","string","space","div"]);function TLe(t,e,r){return t.value=t.value+r+e.value,t}DU.exports=function(e){let r=[],n=kLe(e),{nodes:i}=n;if(i.length===1&&i[0]&&qLe.has(i[0].value.toLowerCase()))return[i[0]];let s=!1,o=null;return n.walk((a,u,l)=>{if(a.type==="function")return!1;if(!PLe.has(a.type))return;let c=a.value.toLowerCase();if(!CLe(c)||DLe(c)||ALe.has(c)&&!RLe.has(c)||CU(a.value))return;let f=l[u-1],d=l[u-2];if(f&&f.value==="/"&&d&&CU(d.value)||ELe(c))return;if((a.type==="space"||a.type==="div"&&a.value!==",")&&r.length!==0){s=!0,o=a.value;return}if(a.type==="space"||a.type==="div")return;let p=a;if(s){let h=r[r.length-1];OLe(h),TLe(h,p,o),s=!1,o=null}else r.push(p)}),r}});var Bo=m((OAt,sR)=>{var MLe=H("tty"),LLe=!("NO_COLOR"in process.env||process.argv.includes("--no-color"))&&("FORCE_COLOR"in process.env||process.argv.includes("--color")||process.platform==="win32"||MLe.isatty(1)&&process.env.TERM!=="dumb"||"CI"in process.env),Pt=(t,e,r=t)=>n=>{let i=""+n,s=i.indexOf(e,t.length);return~s?t+OU(i,e,r,s)+e:t+i+e},OU=(t,e,r,n)=>{let i=t.substring(0,n)+r,s=t.substring(n+e.length),o=s.indexOf(e);return~o?i+OU(s,e,r,o):i+s},qU=(t=LLe)=>({isColorSupported:t,reset:t?e=>`\x1B[0m${e}\x1B[0m`:String,bold:t?Pt("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"):String,dim:t?Pt("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"):String,italic:t?Pt("\x1B[3m","\x1B[23m"):String,underline:t?Pt("\x1B[4m","\x1B[24m"):String,inverse:t?Pt("\x1B[7m","\x1B[27m"):String,hidden:t?Pt("\x1B[8m","\x1B[28m"):String,strikethrough:t?Pt("\x1B[9m","\x1B[29m"):String,black:t?Pt("\x1B[30m","\x1B[39m"):String,red:t?Pt("\x1B[31m","\x1B[39m"):String,green:t?Pt("\x1B[32m","\x1B[39m"):String,yellow:t?Pt("\x1B[33m","\x1B[39m"):String,blue:t?Pt("\x1B[34m","\x1B[39m"):String,magenta:t?Pt("\x1B[35m","\x1B[39m"):String,cyan:t?Pt("\x1B[36m","\x1B[39m"):String,white:t?Pt("\x1B[37m","\x1B[39m"):String,gray:t?Pt("\x1B[90m","\x1B[39m"):String,bgBlack:t?Pt("\x1B[40m","\x1B[49m"):String,bgRed:t?Pt("\x1B[41m","\x1B[49m"):String,bgGreen:t?Pt("\x1B[42m","\x1B[49m"):String,bgYellow:t?Pt("\x1B[43m","\x1B[49m"):String,bgBlue:t?Pt("\x1B[44m","\x1B[49m"):String,bgMagenta:t?Pt("\x1B[45m","\x1B[49m"):String,bgCyan:t?Pt("\x1B[46m","\x1B[49m"):String,bgWhite:t?Pt("\x1B[47m","\x1B[49m"):String});sR.exports=qU();sR.exports.createColors=qU});var aR=m((qAt,TU)=>{"use strict";var oR="'".charCodeAt(0),RU='"'.charCodeAt(0),Ob="\\".charCodeAt(0),AU="/".charCodeAt(0),qb=`
|
|
80
80
|
`.charCodeAt(0),Kc=" ".charCodeAt(0),Rb="\f".charCodeAt(0),Ab=" ".charCodeAt(0),Pb="\r".charCodeAt(0),FLe="[".charCodeAt(0),ILe="]".charCodeAt(0),NLe="(".charCodeAt(0),jLe=")".charCodeAt(0),$Le="{".charCodeAt(0),BLe="}".charCodeAt(0),WLe=";".charCodeAt(0),zLe="*".charCodeAt(0),ULe=":".charCodeAt(0),HLe="@".charCodeAt(0),Tb=/[\t\n\f\r "#'()/;[\\\]{}]/g,Mb=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,VLe=/.[\n"'(/\\]/,PU=/[\da-f]/i;TU.exports=function(e,r={}){let n=e.css.valueOf(),i=r.ignoreErrors,s,o,a,u,l,c,f,d,p,h,y=n.length,v=0,g=[],b=[];function w(){return v}function _(R){throw e.error("Unclosed "+R,v)}function S(){return b.length===0&&v>=y}function q(R){if(b.length)return b.pop();if(v>=y)return;let O=R?R.ignoreUnclosed:!1;switch(s=n.charCodeAt(v),s){case qb:case Kc:case Ab:case Pb:case Rb:{o=v;do o+=1,s=n.charCodeAt(o);while(s===Kc||s===qb||s===Ab||s===Pb||s===Rb);h=["space",n.slice(v,o)],v=o-1;break}case FLe:case ILe:case $Le:case BLe:case ULe:case WLe:case jLe:{let z=String.fromCharCode(s);h=[z,z,v];break}case NLe:{if(d=g.length?g.pop()[1]:"",p=n.charCodeAt(v+1),d==="url"&&p!==oR&&p!==RU&&p!==Kc&&p!==qb&&p!==Ab&&p!==Rb&&p!==Pb){o=v;do{if(c=!1,o=n.indexOf(")",o+1),o===-1)if(i||O){o=v;break}else _("bracket");for(f=o;n.charCodeAt(f-1)===Ob;)f-=1,c=!c}while(c);h=["brackets",n.slice(v,o+1),v,o],v=o}else o=n.indexOf(")",v+1),u=n.slice(v,o+1),o===-1||VLe.test(u)?h=["(","(",v]:(h=["brackets",u,v,o],v=o);break}case oR:case RU:{a=s===oR?"'":'"',o=v;do{if(c=!1,o=n.indexOf(a,o+1),o===-1)if(i||O){o=v+1;break}else _("string");for(f=o;n.charCodeAt(f-1)===Ob;)f-=1,c=!c}while(c);h=["string",n.slice(v,o+1),v,o],v=o;break}case HLe:{Tb.lastIndex=v+1,Tb.test(n),Tb.lastIndex===0?o=n.length-1:o=Tb.lastIndex-2,h=["at-word",n.slice(v,o+1),v,o],v=o;break}case Ob:{for(o=v,l=!0;n.charCodeAt(o+1)===Ob;)o+=1,l=!l;if(s=n.charCodeAt(o+1),l&&s!==AU&&s!==Kc&&s!==qb&&s!==Ab&&s!==Pb&&s!==Rb&&(o+=1,PU.test(n.charAt(o)))){for(;PU.test(n.charAt(o+1));)o+=1;n.charCodeAt(o+1)===Kc&&(o+=1)}h=["word",n.slice(v,o+1),v,o],v=o;break}default:{s===AU&&n.charCodeAt(v+1)===zLe?(o=n.indexOf("*/",v+2)+1,o===0&&(i||O?o=n.length:_("comment")),h=["comment",n.slice(v,o+1),v,o],v=o):(Mb.lastIndex=v+1,Mb.test(n),Mb.lastIndex===0?o=n.length-1:o=Mb.lastIndex-2,h=["word",n.slice(v,o+1),v,o],g.push(h),v=o);break}}return v++,h}function C(R){b.push(R)}return{back:C,nextToken:q,endOfFile:S,position:w}}});var uR=m((RAt,FU)=>{"use strict";var Ur=Bo(),GLe=aR(),MU;function KLe(t){MU=t}var YLe={brackets:Ur.cyan,"at-word":Ur.cyan,comment:Ur.gray,string:Ur.green,class:Ur.yellow,hash:Ur.magenta,call:Ur.cyan,"(":Ur.cyan,")":Ur.cyan,"{":Ur.yellow,"}":Ur.yellow,"[":Ur.yellow,"]":Ur.yellow,":":Ur.yellow,";":Ur.yellow};function QLe([t,e],r){if(t==="word"){if(e[0]===".")return"class";if(e[0]==="#")return"hash"}if(!r.endOfFile()){let n=r.nextToken();if(r.back(n),n[0]==="brackets"||n[0]==="(")return"call"}return t}function LU(t){let e=GLe(new MU(t),{ignoreErrors:!0}),r="";for(;!e.endOfFile();){let n=e.nextToken(),i=YLe[QLe(n,e)];i?r+=n[1].split(/\r?\n/).map(s=>i(s)).join(`
|
|
81
81
|
`):r+=n[1]}return r}LU.registerInput=KLe;FU.exports=LU});var Lb=m((AAt,jU)=>{"use strict";var IU=Bo(),NU=uR(),Wo=class extends Error{constructor(e,r,n,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Wo)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=IU.isColorSupported),NU&&e&&(r=NU(r));let n=r.split(/\r?\n/),i=Math.max(this.line-3,0),s=Math.min(this.line+2,n.length),o=String(s).length,a,u;if(e){let{bold:l,red:c,gray:f}=IU.createColors(!0);a=d=>l(c(d)),u=d=>f(d)}else a=u=l=>l;return n.slice(i,s).map((l,c)=>{let f=i+1+c,d=" "+(" "+f).slice(-o)+" | ";if(f===this.line){let p=u(d.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+u(d)+l+`
|
|
@@ -95,7 +95,7 @@ error: ${l}`),f=[{id:"",pluginName:"",text:l,location:null,notes:[],detail:void
|
|
|
95
95
|
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
|
|
96
96
|
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let r;return e.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawColon(e){let r;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}beforeAfter(e,r){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(n.includes(`
|
|
97
97
|
`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<s;a++)n+=o}return n}rawValue(e,r){let n=e[r],i=e.raws[r];return i&&i.value===n?i.raw:n}};BU.exports=Yc;Yc.default=Yc});var Qc=m((MAt,WU)=>{"use strict";var XLe=cR();function fR(t,e){new XLe(e).stringify(t)}WU.exports=fR;fR.default=fR});var Xc=m((LAt,zU)=>{"use strict";var{isClean:Ib,my:ZLe}=Fb(),eFe=Lb(),tFe=cR(),rFe=Qc();function dR(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let i=t[n],s=typeof i;n==="parent"&&s==="object"?e&&(r[n]=e):n==="source"?r[n]=i:Array.isArray(i)?r[n]=i.map(o=>dR(o,r)):(s==="object"&&i!==null&&(i=dR(i)),r[n]=i)}return r}var Jc=class{constructor(e={}){this.raws={},this[Ib]=!1,this[ZLe]=!0;for(let r in e)if(r==="nodes"){this.nodes=[];for(let n of e[r])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[r]=e[r]}error(e,r={}){if(this.source){let{start:n,end:i}=this.rangeBy(r);return this.source.input.error(e,{line:n.line,column:n.column},{line:i.line,column:i.column},r)}return new eFe(e)}warn(e,r,n){let i={node:this};for(let s in n)i[s]=n[s];return e.warn(r,i)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=rFe){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}assign(e={}){for(let r in e)this[r]=e[r];return this}clone(e={}){let r=dR(this);for(let n in e)r[n]=e[n];return r}cloneBefore(e={}){let r=this.clone(e);return this.parent.insertBefore(this,r),r}cloneAfter(e={}){let r=this.clone(e);return this.parent.insertAfter(this,r),r}replaceWith(...e){if(this.parent){let r=this,n=!1;for(let i of e)i===this?n=!0:n?(this.parent.insertAfter(r,i),r=i):this.parent.insertBefore(r,i);n||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}raw(e,r){return new tFe().raw(this,e,r)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,r){let n={},i=r==null;r=r||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))n[o]=a.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,r):u);else if(typeof a=="object"&&a.toJSON)n[o]=a.toJSON(null,r);else if(o==="source"){let u=r.get(a.input);u==null&&(u=s,r.set(a.input,s),s++),n[o]={inputId:u,start:a.start,end:a.end}}else n[o]=a}return i&&(n.inputs=[...r.keys()].map(o=>o.toJSON())),n}positionInside(e){let r=this.toString(),n=this.source.start.column,i=this.source.start.line;for(let s=0;s<e;s++)r[s]===`
|
|
98
|
-
`?(n=1,i+=1):n+=1;return{line:i,column:n}}positionBy(e){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let n=this.toString().indexOf(e.word);n!==-1&&(r=this.positionInside(n))}return r}rangeBy(e){let r={line:this.source.start.line,column:this.source.start.column},n=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:r.line,column:r.column+1};if(e.word){let i=this.toString().indexOf(e.word);i!==-1&&(r=this.positionInside(i),n=this.positionInside(i+e.word.length))}else e.start?r={line:e.start.line,column:e.start.column}:e.index&&(r=this.positionInside(e.index)),e.end?n={line:e.end.line,column:e.end.column}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={line:r.line,column:r.column+1}),{start:r,end:n}}getProxyProcessor(){return{set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0},get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}markDirty(){if(this[Ib]){this[Ib]=!1;let e=this;for(;e=e.parent;)e[Ib]=!1}}get proxyOf(){return this}};zU.exports=Jc;Jc.default=Jc});var ef=m((FAt,UU)=>{"use strict";var nFe=Xc(),Zc=class extends nFe{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};UU.exports=Zc;Zc.default=Zc});var VU=m(pR=>{var HU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");pR.encode=function(t){if(0<=t&&t<HU.length)return HU[t];throw new TypeError("Must be between 0 and 63: "+t)};pR.decode=function(t){var e=65,r=90,n=97,i=122,s=48,o=57,a=43,u=47,l=26,c=52;return e<=t&&t<=r?t-e:n<=t&&t<=i?t-n+l:s<=t&&t<=o?t-s+c:t==a?62:t==u?63:-1}});var mR=m(gR=>{var GU=VU(),hR=5,KU=1<<hR,YU=KU-1,QU=KU;function iFe(t){return t<0?(-t<<1)+1:(t<<1)+0}function sFe(t){var e=(t&1)===1,r=t>>1;return e?-r:r}gR.encode=function(e){var r="",n,i=iFe(e);do n=i&YU,i>>>=hR,i>0&&(n|=QU),r+=GU.encode(n);while(i>0);return r};gR.decode=function(e,r,n){var i=e.length,s=0,o=0,a,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=GU.decode(e.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));a=!!(u&QU),u&=YU,s=s+(u<<o),o+=hR}while(a);n.value=sFe(s),n.rest=r}});var Mu=m(lr=>{function oFe(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}lr.getArg=oFe;var JU=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,aFe=/^data:.+\,.+$/;function tf(t){var e=t.match(JU);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}lr.urlParse=tf;function Tu(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}lr.urlGenerate=Tu;var uFe=32;function lFe(t){var e=[];return function(r){for(var n=0;n<e.length;n++)if(e[n].input===r){var i=e[0];return e[0]=e[n],e[n]=i,e[0].result}var s=t(r);return e.unshift({input:r,result:s}),e.length>uFe&&e.pop(),s}}var yR=lFe(function(e){var r=e,n=tf(e);if(n){if(!n.path)return e;r=n.path}for(var i=lr.isAbsolute(r),s=[],o=0,a=0;;)if(o=a,a=r.indexOf("/",o),a===-1){s.push(r.slice(o));break}else for(s.push(r.slice(o,a));a<r.length&&r[a]==="/";)a++;for(var u,l=0,a=s.length-1;a>=0;a--)u=s[a],u==="."?s.splice(a,1):u===".."?l++:l>0&&(u===""?(s.splice(a+1,l),l=0):(s.splice(a,2),l--));return r=s.join("/"),r===""&&(r=i?"/":"."),n?(n.path=r,Tu(n)):r});lr.normalize=yR;function XU(t,e){t===""&&(t="."),e===""&&(e=".");var r=tf(e),n=tf(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Tu(r);if(r||e.match(aFe))return e;if(n&&!n.host&&!n.path)return n.host=e,Tu(n);var i=e.charAt(0)==="/"?e:yR(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,Tu(n)):i}lr.join=XU;lr.isAbsolute=function(t){return t.charAt(0)==="/"||JU.test(t)};function cFe(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}lr.relative=cFe;var ZU=function(){var t=Object.create(null);return!("__proto__"in t)}();function eH(t){return t}function fFe(t){return tH(t)?"$"+t:t}lr.toSetString=ZU?eH:fFe;function dFe(t){return tH(t)?t.slice(1):t}lr.fromSetString=ZU?eH:dFe;function tH(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}function pFe(t,e,r){var n=os(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:os(t.name,e.name)}lr.compareByOriginalPositions=pFe;function hFe(t,e,r){var n;return n=t.originalLine-e.originalLine,n!==0||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:os(t.name,e.name)}lr.compareByOriginalPositionsNoSource=hFe;function gFe(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=os(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:os(t.name,e.name)}lr.compareByGeneratedPositionsDeflated=gFe;function mFe(t,e,r){var n=t.generatedColumn-e.generatedColumn;return n!==0||r||(n=os(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:os(t.name,e.name)}lr.compareByGeneratedPositionsDeflatedNoLine=mFe;function os(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function yFe(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=os(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:os(t.name,e.name)}lr.compareByGeneratedPositionsInflated=yFe;function bFe(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}lr.parseSourceMapInput=bFe;function vFe(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=tf(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}e=XU(Tu(n),e)}return yR(e)}lr.computeSourceURL=vFe});var wR=m(rH=>{var bR=Mu(),vR=Object.prototype.hasOwnProperty,zo=typeof Map<"u";function as(){this._array=[],this._set=zo?new Map:Object.create(null)}as.fromArray=function(e,r){for(var n=new as,i=0,s=e.length;i<s;i++)n.add(e[i],r);return n};as.prototype.size=function(){return zo?this._set.size:Object.getOwnPropertyNames(this._set).length};as.prototype.add=function(e,r){var n=zo?e:bR.toSetString(e),i=zo?this.has(e):vR.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(e),i||(zo?this._set.set(e,s):this._set[n]=s)};as.prototype.has=function(e){if(zo)return this._set.has(e);var r=bR.toSetString(e);return vR.call(this._set,r)};as.prototype.indexOf=function(e){if(zo){var r=this._set.get(e);if(r>=0)return r}else{var n=bR.toSetString(e);if(vR.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};as.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};as.prototype.toArray=function(){return this._array.slice()};rH.ArraySet=as});var sH=m(iH=>{var nH=Mu();function wFe(t,e){var r=t.generatedLine,n=e.generatedLine,i=t.generatedColumn,s=e.generatedColumn;return n>r||n==r&&s>=i||nH.compareByGeneratedPositionsInflated(t,e)<=0}function Nb(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Nb.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)};Nb.prototype.add=function(e){wFe(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Nb.prototype.toArray=function(){return this._sorted||(this._array.sort(nH.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};iH.MappingList=Nb});var _R=m(oH=>{var rf=mR(),Qt=Mu(),jb=wR().ArraySet,_Fe=sH().MappingList;function Nn(t){t||(t={}),this._file=Qt.getArg(t,"file",null),this._sourceRoot=Qt.getArg(t,"sourceRoot",null),this._skipValidation=Qt.getArg(t,"skipValidation",!1),this._sources=new jb,this._names=new jb,this._mappings=new _Fe,this._sourcesContents=null}Nn.prototype._version=3;Nn.fromSourceMap=function(e){var r=e.sourceRoot,n=new Nn({file:e.file,sourceRoot:r});return e.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=Qt.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),e.sources.forEach(function(i){var s=i;r!==null&&(s=Qt.relative(r,i)),n._sources.has(s)||n._sources.add(s);var o=e.sourceContentFor(i);o!=null&&n.setSourceContent(i,o)}),n};Nn.prototype.addMapping=function(e){var r=Qt.getArg(e,"generated"),n=Qt.getArg(e,"original",null),i=Qt.getArg(e,"source",null),s=Qt.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})};Nn.prototype.setSourceContent=function(e,r){var n=e;this._sourceRoot!=null&&(n=Qt.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Qt.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Qt.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Nn.prototype.applySourceMap=function(e,r,n){var i=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=Qt.relative(s,i));var o=new jb,a=new jb;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=e.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=Qt.join(n,u.source)),s!=null&&(u.source=Qt.relative(s,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var c=u.source;c!=null&&!o.has(c)&&o.add(c);var f=u.name;f!=null&&!a.has(f)&&a.add(f)},this),this._sources=o,this._names=a,e.sources.forEach(function(u){var l=e.sourceContentFor(u);l!=null&&(n!=null&&(u=Qt.join(n,u)),s!=null&&(u=Qt.relative(s,u)),this.setSourceContent(u,l))},this)};Nn.prototype._validateMapping=function(e,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!i)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:i}))}};Nn.prototype._serializeMappings=function(){for(var e=0,r=1,n=0,i=0,s=0,o=0,a="",u,l,c,f,d=this._mappings.toArray(),p=0,h=d.length;p<h;p++){if(l=d[p],u="",l.generatedLine!==r)for(e=0;l.generatedLine!==r;)u+=";",r++;else if(p>0){if(!Qt.compareByGeneratedPositionsInflated(l,d[p-1]))continue;u+=","}u+=rf.encode(l.generatedColumn-e),e=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=rf.encode(f-o),o=f,u+=rf.encode(l.originalLine-1-i),i=l.originalLine-1,u+=rf.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(c=this._names.indexOf(l.name),u+=rf.encode(c-s),s=c)),a+=u}return a};Nn.prototype._generateSourcesContent=function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Qt.relative(r,n));var i=Qt.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Nn.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};Nn.prototype.toString=function(){return JSON.stringify(this.toJSON())};oH.SourceMapGenerator=Nn});var aH=m(Uo=>{Uo.GREATEST_LOWER_BOUND=1;Uo.LEAST_UPPER_BOUND=2;function xR(t,e,r,n,i,s){var o=Math.floor((e-t)/2)+t,a=i(r,n[o],!0);return a===0?o:a>0?e-o>1?xR(o,e,r,n,i,s):s==Uo.LEAST_UPPER_BOUND?e<n.length?e:-1:o:o-t>1?xR(t,o,r,n,i,s):s==Uo.LEAST_UPPER_BOUND?o:t<0?-1:t}Uo.search=function(e,r,n,i){if(r.length===0)return-1;var s=xR(-1,r.length,e,r,n,i||Uo.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var cH=m(lH=>{function xFe(t){function e(i,s,o){var a=i[s];i[s]=i[o],i[o]=a}function r(i,s){return Math.round(i+Math.random()*(s-i))}function n(i,s,o,a){if(o<a){var u=r(o,a),l=o-1;e(i,u,a);for(var c=i[a],f=o;f<a;f++)s(i[f],c,!1)<=0&&(l+=1,e(i,l,f));e(i,l+1,f);var d=l+1;n(i,s,o,d-1),n(i,s,d+1,a)}}return n}function SFe(t){let e=xFe.toString();return new Function(`return ${e}`)()(t)}var uH=new WeakMap;lH.quickSort=function(t,e,r=0){let n=uH.get(e);n===void 0&&(n=SFe(e),uH.set(e,n)),n(t,e,r,t.length-1)}});var pH=m($b=>{var Se=Mu(),kR=aH(),Lu=wR().ArraySet,kFe=mR(),nf=cH().quickSort;function St(t,e){var r=t;return typeof t=="string"&&(r=Se.parseSourceMapInput(t)),r.sections!=null?new ui(r,e):new kr(r,e)}St.fromSourceMap=function(t,e){return kr.fromSourceMap(t,e)};St.prototype._version=3;St.prototype.__generatedMappings=null;Object.defineProperty(St.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});St.prototype.__originalMappings=null;Object.defineProperty(St.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});St.prototype._charIsMappingSeparator=function(e,r){var n=e.charAt(r);return n===";"||n===","};St.prototype._parseMappings=function(e,r){throw new Error("Subclasses must implement _parseMappings")};St.GENERATED_ORDER=1;St.ORIGINAL_ORDER=2;St.GREATEST_LOWER_BOUND=1;St.LEAST_UPPER_BOUND=2;St.prototype.eachMapping=function(e,r,n){var i=r||null,s=n||St.GENERATED_ORDER,o;switch(s){case St.GENERATED_ORDER:o=this._generatedMappings;break;case St.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,u=e.bind(i),l=this._names,c=this._sources,f=this._sourceMapURL,d=0,p=o.length;d<p;d++){var h=o[d],y=h.source===null?null:c.at(h.source);y=Se.computeSourceURL(a,y,f),u({source:y,generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:h.name===null?null:l.at(h.name)})}};St.prototype.allGeneratedPositionsFor=function(e){var r=Se.getArg(e,"line"),n={source:Se.getArg(e,"source"),originalLine:r,originalColumn:Se.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Se.compareByOriginalPositions,kR.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:Se.getArg(o,"generatedLine",null),column:Se.getArg(o,"generatedColumn",null),lastColumn:Se.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var u=o.originalColumn;o&&o.originalLine===r&&o.originalColumn==u;)i.push({line:Se.getArg(o,"generatedLine",null),column:Se.getArg(o,"generatedColumn",null),lastColumn:Se.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};$b.SourceMapConsumer=St;function kr(t,e){var r=t;typeof t=="string"&&(r=Se.parseSourceMapInput(t));var n=Se.getArg(r,"version"),i=Se.getArg(r,"sources"),s=Se.getArg(r,"names",[]),o=Se.getArg(r,"sourceRoot",null),a=Se.getArg(r,"sourcesContent",null),u=Se.getArg(r,"mappings"),l=Se.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=Se.normalize(o)),i=i.map(String).map(Se.normalize).map(function(c){return o&&Se.isAbsolute(o)&&Se.isAbsolute(c)?Se.relative(o,c):c}),this._names=Lu.fromArray(s.map(String),!0),this._sources=Lu.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(c){return Se.computeSourceURL(o,c,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=u,this._sourceMapURL=e,this.file=l}kr.prototype=Object.create(St.prototype);kr.prototype.consumer=St;kr.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=Se.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1};kr.fromSourceMap=function(e,r){var n=Object.create(kr.prototype),i=n._names=Lu.fromArray(e._names.toArray(),!0),s=n._sources=Lu.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(p){return Se.computeSourceURL(n.sourceRoot,p,r)});for(var o=e._mappings.toArray().slice(),a=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,c=o.length;l<c;l++){var f=o[l],d=new dH;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=s.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),u.push(d)),a.push(d)}return nf(n.__originalMappings,Se.compareByOriginalPositions),n};kr.prototype._version=3;Object.defineProperty(kr.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function dH(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var SR=Se.compareByGeneratedPositionsDeflatedNoLine;function fH(t,e){let r=t.length,n=t.length-e;if(!(n<=1))if(n==2){let i=t[e],s=t[e+1];SR(i,s)>0&&(t[e]=s,t[e+1]=i)}else if(n<20)for(let i=e;i<r;i++)for(let s=i;s>e;s--){let o=t[s-1],a=t[s];if(SR(o,a)<=0)break;t[s-1]=a,t[s]=o}else nf(t,SR,e)}kr.prototype._parseMappings=function(e,r){var n=1,i=0,s=0,o=0,a=0,u=0,l=e.length,c=0,f={},d={},p=[],h=[],y,v,g,b,w;let _=0;for(;c<l;)if(e.charAt(c)===";")n++,c++,i=0,fH(h,_),_=h.length;else if(e.charAt(c)===",")c++;else{for(y=new dH,y.generatedLine=n,b=c;b<l&&!this._charIsMappingSeparator(e,b);b++);for(v=e.slice(c,b),g=[];c<b;)kFe.decode(e,c,d),w=d.value,c=d.rest,g.push(w);if(g.length===2)throw new Error("Found a source, but no line and column");if(g.length===3)throw new Error("Found a source and line, but no column");if(y.generatedColumn=i+g[0],i=y.generatedColumn,g.length>1&&(y.source=a+g[1],a+=g[1],y.originalLine=s+g[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=o+g[3],o=y.originalColumn,g.length>4&&(y.name=u+g[4],u+=g[4])),h.push(y),typeof y.originalLine=="number"){let q=y.source;for(;p.length<=q;)p.push(null);p[q]===null&&(p[q]=[]),p[q].push(y)}}fH(h,_),this.__generatedMappings=h;for(var S=0;S<p.length;S++)p[S]!=null&&nf(p[S],Se.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...p)};kr.prototype._findMapping=function(e,r,n,i,s,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return kR.search(e,r,s,o)};kr.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};kr.prototype.originalPositionFor=function(e){var r={generatedLine:Se.getArg(e,"line"),generatedColumn:Se.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",Se.compareByGeneratedPositionsDeflated,Se.getArg(e,"bias",St.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=Se.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=Se.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=Se.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:Se.getArg(i,"originalLine",null),column:Se.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};kr.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};kr.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i=e;this.sourceRoot!=null&&(i=Se.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=Se.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};kr.prototype.generatedPositionFor=function(e){var r=Se.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:Se.getArg(e,"line"),originalColumn:Se.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Se.compareByOriginalPositions,Se.getArg(e,"bias",St.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:Se.getArg(s,"generatedLine",null),column:Se.getArg(s,"generatedColumn",null),lastColumn:Se.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};$b.BasicSourceMapConsumer=kr;function ui(t,e){var r=t;typeof t=="string"&&(r=Se.parseSourceMapInput(t));var n=Se.getArg(r,"version"),i=Se.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Lu,this._names=new Lu;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=Se.getArg(o,"offset"),u=Se.getArg(a,"line"),l=Se.getArg(a,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new St(Se.getArg(o,"map"),e)}})}ui.prototype=Object.create(St.prototype);ui.prototype.constructor=St;ui.prototype._version=3;Object.defineProperty(ui.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)t.push(this._sections[e].consumer.sources[r]);return t}});ui.prototype.originalPositionFor=function(e){var r={generatedLine:Se.getArg(e,"line"),generatedColumn:Se.getArg(e,"column")},n=kR.search(r,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};ui.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};ui.prototype.sourceContentFor=function(e,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(e,!0);if(s)return s}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')};ui.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(Se.getArg(e,"source"))!==-1){var i=n.consumer.generatedPositionFor(e);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};ui.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],u=i.consumer._sources.at(a.source);u=Se.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;a.name&&(l=i.consumer._names.at(a.name),this._names.add(l),l=this._names.indexOf(l));var c={source:u,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:l};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c)}nf(this.__generatedMappings,Se.compareByGeneratedPositionsDeflated),nf(this.__originalMappings,Se.compareByOriginalPositions)};$b.IndexedSourceMapConsumer=ui});var gH=m(hH=>{var EFe=_R().SourceMapGenerator,Bb=Mu(),CFe=/(\r?\n)/,DFe=10,Fu="$$$isSourceNode$$$";function yn(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=i??null,this[Fu]=!0,n!=null&&this.add(n)}yn.fromStringWithSourceMap=function(e,r,n){var i=new yn,s=e.split(CFe),o=0,a=function(){var d=h(),p=h()||"";return d+p;function h(){return o<s.length?s[o++]:void 0}},u=1,l=0,c=null;return r.eachMapping(function(d){if(c!==null)if(u<d.generatedLine)f(c,a()),u++,l=0;else{var p=s[o]||"",h=p.substr(0,d.generatedColumn-l);s[o]=p.substr(d.generatedColumn-l),l=d.generatedColumn,f(c,h),c=d;return}for(;u<d.generatedLine;)i.add(a()),u++;if(l<d.generatedColumn){var p=s[o]||"";i.add(p.substr(0,d.generatedColumn)),s[o]=p.substr(d.generatedColumn),l=d.generatedColumn}c=d},this),o<s.length&&(c&&f(c,a()),i.add(s.splice(o).join(""))),r.sources.forEach(function(d){var p=r.sourceContentFor(d);p!=null&&(n!=null&&(d=Bb.join(n,d)),i.setSourceContent(d,p))}),i;function f(d,p){if(d===null||d.source===void 0)i.add(p);else{var h=n?Bb.join(n,d.source):d.source;i.add(new yn(d.originalLine,d.originalColumn,h,p,d.name))}}};yn.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[Fu]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};yn.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[Fu]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};yn.prototype.walk=function(e){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Fu]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})};yn.prototype.join=function(e){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this};yn.prototype.replaceRight=function(e,r){var n=this.children[this.children.length-1];return n[Fu]?n.replaceRight(e,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this};yn.prototype.setSourceContent=function(e,r){this.sourceContents[Bb.toSetString(e)]=r};yn.prototype.walkSourceContents=function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Fu]&&this.children[r].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)e(Bb.fromSetString(i[r]),this.sourceContents[i[r]])};yn.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e};yn.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},n=new EFe(e),i=!1,s=null,o=null,a=null,u=null;return this.walk(function(l,c){r.code+=l,c.source!==null&&c.line!==null&&c.column!==null?((s!==c.source||o!==c.line||a!==c.column||u!==c.name)&&n.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name}),s=c.source,o=c.line,a=c.column,u=c.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===DFe?(r.line++,r.column=0,f+1===d?(s=null,i=!1):i&&n.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name})):r.column++}),this.walkSourceContents(function(l,c){n.setSourceContent(l,c)}),{code:r.code,map:n}};hH.SourceNode=yn});var Ho=m(Wb=>{Wb.SourceMapGenerator=_R().SourceMapGenerator;Wb.SourceMapConsumer=pH().SourceMapConsumer;Wb.SourceNode=gH().SourceNode});var ER=m((KAt,mH)=>{var OFe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",qFe=(t,e=21)=>(r=e)=>{let n="",i=r;for(;i--;)n+=t[Math.random()*t.length|0];return n},RFe=(t=21)=>{let e="",r=t;for(;r--;)e+=OFe[Math.random()*64|0];return e};mH.exports={nanoid:RFe,customAlphabet:qFe}});var DR=m((YAt,vH)=>{"use strict";var{SourceMapConsumer:yH,SourceMapGenerator:bH}=Ho(),{existsSync:AFe,readFileSync:PFe}=H("fs"),{dirname:CR,join:TFe}=H("path");function MFe(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var sf=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,i=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=CR(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new yH(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,r){return e?e.substr(0,r.length)===r:!1}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!r)return;let n=e.lastIndexOf(r.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(i.test(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||n.test(e))return MFe(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}loadFile(e){if(this.root=CR(e),AFe(e))return this.mapFile=e,PFe(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(r instanceof yH)return bH.fromSourceMap(r).toString();if(r instanceof bH)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=TFe(CR(e),n)),this.loadFile(n)}}}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}};vH.exports=sf;sf.default=sf});var of=m((QAt,SH)=>{"use strict";var{SourceMapConsumer:LFe,SourceMapGenerator:FFe}=Ho(),{fileURLToPath:wH,pathToFileURL:zb}=H("url"),{resolve:RR,isAbsolute:AR}=H("path"),{nanoid:IFe}=ER(),OR=uR(),_H=Lb(),NFe=DR(),qR=Symbol("fromOffsetCache"),jFe=Boolean(LFe&&FFe),xH=Boolean(RR&&AR),Iu=class{constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!xH||/^\w+:\/\//.test(r.from)||AR(r.from)?this.file=r.from:this.file=RR(r.from)),xH&&jFe){let n=new NFe(this.css,r);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+IFe(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let r,n;if(this[qR])n=this[qR];else{let s=this.css.split(`
|
|
98
|
+
`?(n=1,i+=1):n+=1;return{line:i,column:n}}positionBy(e){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let n=this.toString().indexOf(e.word);n!==-1&&(r=this.positionInside(n))}return r}rangeBy(e){let r={line:this.source.start.line,column:this.source.start.column},n=this.source.end?{line:this.source.end.line,column:this.source.end.column+1}:{line:r.line,column:r.column+1};if(e.word){let i=this.toString().indexOf(e.word);i!==-1&&(r=this.positionInside(i),n=this.positionInside(i+e.word.length))}else e.start?r={line:e.start.line,column:e.start.column}:e.index&&(r=this.positionInside(e.index)),e.end?n={line:e.end.line,column:e.end.column}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={line:r.line,column:r.column+1}),{start:r,end:n}}getProxyProcessor(){return{set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0},get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]}}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${r.input.from}:${r.start.line}:${r.start.column}$&`)}return e}markDirty(){if(this[Ib]){this[Ib]=!1;let e=this;for(;e=e.parent;)e[Ib]=!1}}get proxyOf(){return this}};zU.exports=Jc;Jc.default=Jc});var ef=m((FAt,UU)=>{"use strict";var nFe=Xc(),Zc=class extends nFe{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};UU.exports=Zc;Zc.default=Zc});var VU=m(pR=>{var HU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");pR.encode=function(t){if(0<=t&&t<HU.length)return HU[t];throw new TypeError("Must be between 0 and 63: "+t)};pR.decode=function(t){var e=65,r=90,n=97,i=122,s=48,o=57,a=43,u=47,l=26,c=52;return e<=t&&t<=r?t-e:n<=t&&t<=i?t-n+l:s<=t&&t<=o?t-s+c:t==a?62:t==u?63:-1}});var mR=m(gR=>{var GU=VU(),hR=5,KU=1<<hR,YU=KU-1,QU=KU;function iFe(t){return t<0?(-t<<1)+1:(t<<1)+0}function sFe(t){var e=(t&1)===1,r=t>>1;return e?-r:r}gR.encode=function(e){var r="",n,i=iFe(e);do n=i&YU,i>>>=hR,i>0&&(n|=QU),r+=GU.encode(n);while(i>0);return r};gR.decode=function(e,r,n){var i=e.length,s=0,o=0,a,u;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(u=GU.decode(e.charCodeAt(r++)),u===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));a=!!(u&QU),u&=YU,s=s+(u<<o),o+=hR}while(a);n.value=sFe(s),n.rest=r}});var Mu=m(cr=>{function oFe(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}cr.getArg=oFe;var JU=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,aFe=/^data:.+\,.+$/;function tf(t){var e=t.match(JU);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}cr.urlParse=tf;function Tu(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}cr.urlGenerate=Tu;var uFe=32;function lFe(t){var e=[];return function(r){for(var n=0;n<e.length;n++)if(e[n].input===r){var i=e[0];return e[0]=e[n],e[n]=i,e[0].result}var s=t(r);return e.unshift({input:r,result:s}),e.length>uFe&&e.pop(),s}}var yR=lFe(function(e){var r=e,n=tf(e);if(n){if(!n.path)return e;r=n.path}for(var i=cr.isAbsolute(r),s=[],o=0,a=0;;)if(o=a,a=r.indexOf("/",o),a===-1){s.push(r.slice(o));break}else for(s.push(r.slice(o,a));a<r.length&&r[a]==="/";)a++;for(var u,l=0,a=s.length-1;a>=0;a--)u=s[a],u==="."?s.splice(a,1):u===".."?l++:l>0&&(u===""?(s.splice(a+1,l),l=0):(s.splice(a,2),l--));return r=s.join("/"),r===""&&(r=i?"/":"."),n?(n.path=r,Tu(n)):r});cr.normalize=yR;function XU(t,e){t===""&&(t="."),e===""&&(e=".");var r=tf(e),n=tf(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),Tu(r);if(r||e.match(aFe))return e;if(n&&!n.host&&!n.path)return n.host=e,Tu(n);var i=e.charAt(0)==="/"?e:yR(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,Tu(n)):i}cr.join=XU;cr.isAbsolute=function(t){return t.charAt(0)==="/"||JU.test(t)};function cFe(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}cr.relative=cFe;var ZU=function(){var t=Object.create(null);return!("__proto__"in t)}();function eH(t){return t}function fFe(t){return tH(t)?"$"+t:t}cr.toSetString=ZU?eH:fFe;function dFe(t){return tH(t)?t.slice(1):t}cr.fromSetString=ZU?eH:dFe;function tH(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}function pFe(t,e,r){var n=os(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:os(t.name,e.name)}cr.compareByOriginalPositions=pFe;function hFe(t,e,r){var n;return n=t.originalLine-e.originalLine,n!==0||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:os(t.name,e.name)}cr.compareByOriginalPositionsNoSource=hFe;function gFe(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=os(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:os(t.name,e.name)}cr.compareByGeneratedPositionsDeflated=gFe;function mFe(t,e,r){var n=t.generatedColumn-e.generatedColumn;return n!==0||r||(n=os(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:os(t.name,e.name)}cr.compareByGeneratedPositionsDeflatedNoLine=mFe;function os(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function yFe(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=os(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:os(t.name,e.name)}cr.compareByGeneratedPositionsInflated=yFe;function bFe(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}cr.parseSourceMapInput=bFe;function vFe(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=tf(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}e=XU(Tu(n),e)}return yR(e)}cr.computeSourceURL=vFe});var wR=m(rH=>{var bR=Mu(),vR=Object.prototype.hasOwnProperty,zo=typeof Map<"u";function as(){this._array=[],this._set=zo?new Map:Object.create(null)}as.fromArray=function(e,r){for(var n=new as,i=0,s=e.length;i<s;i++)n.add(e[i],r);return n};as.prototype.size=function(){return zo?this._set.size:Object.getOwnPropertyNames(this._set).length};as.prototype.add=function(e,r){var n=zo?e:bR.toSetString(e),i=zo?this.has(e):vR.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(e),i||(zo?this._set.set(e,s):this._set[n]=s)};as.prototype.has=function(e){if(zo)return this._set.has(e);var r=bR.toSetString(e);return vR.call(this._set,r)};as.prototype.indexOf=function(e){if(zo){var r=this._set.get(e);if(r>=0)return r}else{var n=bR.toSetString(e);if(vR.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};as.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};as.prototype.toArray=function(){return this._array.slice()};rH.ArraySet=as});var sH=m(iH=>{var nH=Mu();function wFe(t,e){var r=t.generatedLine,n=e.generatedLine,i=t.generatedColumn,s=e.generatedColumn;return n>r||n==r&&s>=i||nH.compareByGeneratedPositionsInflated(t,e)<=0}function Nb(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Nb.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)};Nb.prototype.add=function(e){wFe(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Nb.prototype.toArray=function(){return this._sorted||(this._array.sort(nH.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};iH.MappingList=Nb});var _R=m(oH=>{var rf=mR(),Qt=Mu(),jb=wR().ArraySet,_Fe=sH().MappingList;function Nn(t){t||(t={}),this._file=Qt.getArg(t,"file",null),this._sourceRoot=Qt.getArg(t,"sourceRoot",null),this._skipValidation=Qt.getArg(t,"skipValidation",!1),this._sources=new jb,this._names=new jb,this._mappings=new _Fe,this._sourcesContents=null}Nn.prototype._version=3;Nn.fromSourceMap=function(e){var r=e.sourceRoot,n=new Nn({file:e.file,sourceRoot:r});return e.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=Qt.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),e.sources.forEach(function(i){var s=i;r!==null&&(s=Qt.relative(r,i)),n._sources.has(s)||n._sources.add(s);var o=e.sourceContentFor(i);o!=null&&n.setSourceContent(i,o)}),n};Nn.prototype.addMapping=function(e){var r=Qt.getArg(e,"generated"),n=Qt.getArg(e,"original",null),i=Qt.getArg(e,"source",null),s=Qt.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})};Nn.prototype.setSourceContent=function(e,r){var n=e;this._sourceRoot!=null&&(n=Qt.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Qt.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Qt.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Nn.prototype.applySourceMap=function(e,r,n){var i=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var s=this._sourceRoot;s!=null&&(i=Qt.relative(s,i));var o=new jb,a=new jb;this._mappings.unsortedForEach(function(u){if(u.source===i&&u.originalLine!=null){var l=e.originalPositionFor({line:u.originalLine,column:u.originalColumn});l.source!=null&&(u.source=l.source,n!=null&&(u.source=Qt.join(n,u.source)),s!=null&&(u.source=Qt.relative(s,u.source)),u.originalLine=l.line,u.originalColumn=l.column,l.name!=null&&(u.name=l.name))}var c=u.source;c!=null&&!o.has(c)&&o.add(c);var f=u.name;f!=null&&!a.has(f)&&a.add(f)},this),this._sources=o,this._names=a,e.sources.forEach(function(u){var l=e.sourceContentFor(u);l!=null&&(n!=null&&(u=Qt.join(n,u)),s!=null&&(u=Qt.relative(s,u)),this.setSourceContent(u,l))},this)};Nn.prototype._validateMapping=function(e,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!i)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:i}))}};Nn.prototype._serializeMappings=function(){for(var e=0,r=1,n=0,i=0,s=0,o=0,a="",u,l,c,f,d=this._mappings.toArray(),p=0,h=d.length;p<h;p++){if(l=d[p],u="",l.generatedLine!==r)for(e=0;l.generatedLine!==r;)u+=";",r++;else if(p>0){if(!Qt.compareByGeneratedPositionsInflated(l,d[p-1]))continue;u+=","}u+=rf.encode(l.generatedColumn-e),e=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),u+=rf.encode(f-o),o=f,u+=rf.encode(l.originalLine-1-i),i=l.originalLine-1,u+=rf.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(c=this._names.indexOf(l.name),u+=rf.encode(c-s),s=c)),a+=u}return a};Nn.prototype._generateSourcesContent=function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Qt.relative(r,n));var i=Qt.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Nn.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};Nn.prototype.toString=function(){return JSON.stringify(this.toJSON())};oH.SourceMapGenerator=Nn});var aH=m(Uo=>{Uo.GREATEST_LOWER_BOUND=1;Uo.LEAST_UPPER_BOUND=2;function xR(t,e,r,n,i,s){var o=Math.floor((e-t)/2)+t,a=i(r,n[o],!0);return a===0?o:a>0?e-o>1?xR(o,e,r,n,i,s):s==Uo.LEAST_UPPER_BOUND?e<n.length?e:-1:o:o-t>1?xR(t,o,r,n,i,s):s==Uo.LEAST_UPPER_BOUND?o:t<0?-1:t}Uo.search=function(e,r,n,i){if(r.length===0)return-1;var s=xR(-1,r.length,e,r,n,i||Uo.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var cH=m(lH=>{function xFe(t){function e(i,s,o){var a=i[s];i[s]=i[o],i[o]=a}function r(i,s){return Math.round(i+Math.random()*(s-i))}function n(i,s,o,a){if(o<a){var u=r(o,a),l=o-1;e(i,u,a);for(var c=i[a],f=o;f<a;f++)s(i[f],c,!1)<=0&&(l+=1,e(i,l,f));e(i,l+1,f);var d=l+1;n(i,s,o,d-1),n(i,s,d+1,a)}}return n}function SFe(t){let e=xFe.toString();return new Function(`return ${e}`)()(t)}var uH=new WeakMap;lH.quickSort=function(t,e,r=0){let n=uH.get(e);n===void 0&&(n=SFe(e),uH.set(e,n)),n(t,e,r,t.length-1)}});var pH=m($b=>{var Se=Mu(),kR=aH(),Lu=wR().ArraySet,kFe=mR(),nf=cH().quickSort;function St(t,e){var r=t;return typeof t=="string"&&(r=Se.parseSourceMapInput(t)),r.sections!=null?new ui(r,e):new kr(r,e)}St.fromSourceMap=function(t,e){return kr.fromSourceMap(t,e)};St.prototype._version=3;St.prototype.__generatedMappings=null;Object.defineProperty(St.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});St.prototype.__originalMappings=null;Object.defineProperty(St.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});St.prototype._charIsMappingSeparator=function(e,r){var n=e.charAt(r);return n===";"||n===","};St.prototype._parseMappings=function(e,r){throw new Error("Subclasses must implement _parseMappings")};St.GENERATED_ORDER=1;St.ORIGINAL_ORDER=2;St.GREATEST_LOWER_BOUND=1;St.LEAST_UPPER_BOUND=2;St.prototype.eachMapping=function(e,r,n){var i=r||null,s=n||St.GENERATED_ORDER,o;switch(s){case St.GENERATED_ORDER:o=this._generatedMappings;break;case St.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,u=e.bind(i),l=this._names,c=this._sources,f=this._sourceMapURL,d=0,p=o.length;d<p;d++){var h=o[d],y=h.source===null?null:c.at(h.source);y=Se.computeSourceURL(a,y,f),u({source:y,generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:h.name===null?null:l.at(h.name)})}};St.prototype.allGeneratedPositionsFor=function(e){var r=Se.getArg(e,"line"),n={source:Se.getArg(e,"source"),originalLine:r,originalColumn:Se.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Se.compareByOriginalPositions,kR.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:Se.getArg(o,"generatedLine",null),column:Se.getArg(o,"generatedColumn",null),lastColumn:Se.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var u=o.originalColumn;o&&o.originalLine===r&&o.originalColumn==u;)i.push({line:Se.getArg(o,"generatedLine",null),column:Se.getArg(o,"generatedColumn",null),lastColumn:Se.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};$b.SourceMapConsumer=St;function kr(t,e){var r=t;typeof t=="string"&&(r=Se.parseSourceMapInput(t));var n=Se.getArg(r,"version"),i=Se.getArg(r,"sources"),s=Se.getArg(r,"names",[]),o=Se.getArg(r,"sourceRoot",null),a=Se.getArg(r,"sourcesContent",null),u=Se.getArg(r,"mappings"),l=Se.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=Se.normalize(o)),i=i.map(String).map(Se.normalize).map(function(c){return o&&Se.isAbsolute(o)&&Se.isAbsolute(c)?Se.relative(o,c):c}),this._names=Lu.fromArray(s.map(String),!0),this._sources=Lu.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(c){return Se.computeSourceURL(o,c,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=u,this._sourceMapURL=e,this.file=l}kr.prototype=Object.create(St.prototype);kr.prototype.consumer=St;kr.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=Se.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1};kr.fromSourceMap=function(e,r){var n=Object.create(kr.prototype),i=n._names=Lu.fromArray(e._names.toArray(),!0),s=n._sources=Lu.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(p){return Se.computeSourceURL(n.sourceRoot,p,r)});for(var o=e._mappings.toArray().slice(),a=n.__generatedMappings=[],u=n.__originalMappings=[],l=0,c=o.length;l<c;l++){var f=o[l],d=new dH;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=s.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),u.push(d)),a.push(d)}return nf(n.__originalMappings,Se.compareByOriginalPositions),n};kr.prototype._version=3;Object.defineProperty(kr.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function dH(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var SR=Se.compareByGeneratedPositionsDeflatedNoLine;function fH(t,e){let r=t.length,n=t.length-e;if(!(n<=1))if(n==2){let i=t[e],s=t[e+1];SR(i,s)>0&&(t[e]=s,t[e+1]=i)}else if(n<20)for(let i=e;i<r;i++)for(let s=i;s>e;s--){let o=t[s-1],a=t[s];if(SR(o,a)<=0)break;t[s-1]=a,t[s]=o}else nf(t,SR,e)}kr.prototype._parseMappings=function(e,r){var n=1,i=0,s=0,o=0,a=0,u=0,l=e.length,c=0,f={},d={},p=[],h=[],y,v,g,b,w;let _=0;for(;c<l;)if(e.charAt(c)===";")n++,c++,i=0,fH(h,_),_=h.length;else if(e.charAt(c)===",")c++;else{for(y=new dH,y.generatedLine=n,b=c;b<l&&!this._charIsMappingSeparator(e,b);b++);for(v=e.slice(c,b),g=[];c<b;)kFe.decode(e,c,d),w=d.value,c=d.rest,g.push(w);if(g.length===2)throw new Error("Found a source, but no line and column");if(g.length===3)throw new Error("Found a source and line, but no column");if(y.generatedColumn=i+g[0],i=y.generatedColumn,g.length>1&&(y.source=a+g[1],a+=g[1],y.originalLine=s+g[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=o+g[3],o=y.originalColumn,g.length>4&&(y.name=u+g[4],u+=g[4])),h.push(y),typeof y.originalLine=="number"){let q=y.source;for(;p.length<=q;)p.push(null);p[q]===null&&(p[q]=[]),p[q].push(y)}}fH(h,_),this.__generatedMappings=h;for(var S=0;S<p.length;S++)p[S]!=null&&nf(p[S],Se.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...p)};kr.prototype._findMapping=function(e,r,n,i,s,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return kR.search(e,r,s,o)};kr.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};kr.prototype.originalPositionFor=function(e){var r={generatedLine:Se.getArg(e,"line"),generatedColumn:Se.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",Se.compareByGeneratedPositionsDeflated,Se.getArg(e,"bias",St.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=Se.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=Se.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=Se.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:Se.getArg(i,"originalLine",null),column:Se.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};kr.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};kr.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i=e;this.sourceRoot!=null&&(i=Se.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=Se.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};kr.prototype.generatedPositionFor=function(e){var r=Se.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:Se.getArg(e,"line"),originalColumn:Se.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Se.compareByOriginalPositions,Se.getArg(e,"bias",St.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:Se.getArg(s,"generatedLine",null),column:Se.getArg(s,"generatedColumn",null),lastColumn:Se.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};$b.BasicSourceMapConsumer=kr;function ui(t,e){var r=t;typeof t=="string"&&(r=Se.parseSourceMapInput(t));var n=Se.getArg(r,"version"),i=Se.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Lu,this._names=new Lu;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=Se.getArg(o,"offset"),u=Se.getArg(a,"line"),l=Se.getArg(a,"column");if(u<s.line||u===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:u+1,generatedColumn:l+1},consumer:new St(Se.getArg(o,"map"),e)}})}ui.prototype=Object.create(St.prototype);ui.prototype.constructor=St;ui.prototype._version=3;Object.defineProperty(ui.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)t.push(this._sections[e].consumer.sources[r]);return t}});ui.prototype.originalPositionFor=function(e){var r={generatedLine:Se.getArg(e,"line"),generatedColumn:Se.getArg(e,"column")},n=kR.search(r,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};ui.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};ui.prototype.sourceContentFor=function(e,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(e,!0);if(s)return s}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')};ui.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(Se.getArg(e,"source"))!==-1){var i=n.consumer.generatedPositionFor(e);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};ui.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],u=i.consumer._sources.at(a.source);u=Se.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;a.name&&(l=i.consumer._names.at(a.name),this._names.add(l),l=this._names.indexOf(l));var c={source:u,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:l};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c)}nf(this.__generatedMappings,Se.compareByGeneratedPositionsDeflated),nf(this.__originalMappings,Se.compareByOriginalPositions)};$b.IndexedSourceMapConsumer=ui});var gH=m(hH=>{var EFe=_R().SourceMapGenerator,Bb=Mu(),CFe=/(\r?\n)/,DFe=10,Fu="$$$isSourceNode$$$";function yn(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=i??null,this[Fu]=!0,n!=null&&this.add(n)}yn.fromStringWithSourceMap=function(e,r,n){var i=new yn,s=e.split(CFe),o=0,a=function(){var d=h(),p=h()||"";return d+p;function h(){return o<s.length?s[o++]:void 0}},u=1,l=0,c=null;return r.eachMapping(function(d){if(c!==null)if(u<d.generatedLine)f(c,a()),u++,l=0;else{var p=s[o]||"",h=p.substr(0,d.generatedColumn-l);s[o]=p.substr(d.generatedColumn-l),l=d.generatedColumn,f(c,h),c=d;return}for(;u<d.generatedLine;)i.add(a()),u++;if(l<d.generatedColumn){var p=s[o]||"";i.add(p.substr(0,d.generatedColumn)),s[o]=p.substr(d.generatedColumn),l=d.generatedColumn}c=d},this),o<s.length&&(c&&f(c,a()),i.add(s.splice(o).join(""))),r.sources.forEach(function(d){var p=r.sourceContentFor(d);p!=null&&(n!=null&&(d=Bb.join(n,d)),i.setSourceContent(d,p))}),i;function f(d,p){if(d===null||d.source===void 0)i.add(p);else{var h=n?Bb.join(n,d.source):d.source;i.add(new yn(d.originalLine,d.originalColumn,h,p,d.name))}}};yn.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[Fu]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};yn.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[Fu]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};yn.prototype.walk=function(e){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[Fu]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})};yn.prototype.join=function(e){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this};yn.prototype.replaceRight=function(e,r){var n=this.children[this.children.length-1];return n[Fu]?n.replaceRight(e,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this};yn.prototype.setSourceContent=function(e,r){this.sourceContents[Bb.toSetString(e)]=r};yn.prototype.walkSourceContents=function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][Fu]&&this.children[r].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)e(Bb.fromSetString(i[r]),this.sourceContents[i[r]])};yn.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e};yn.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},n=new EFe(e),i=!1,s=null,o=null,a=null,u=null;return this.walk(function(l,c){r.code+=l,c.source!==null&&c.line!==null&&c.column!==null?((s!==c.source||o!==c.line||a!==c.column||u!==c.name)&&n.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name}),s=c.source,o=c.line,a=c.column,u=c.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===DFe?(r.line++,r.column=0,f+1===d?(s=null,i=!1):i&&n.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:r.line,column:r.column},name:c.name})):r.column++}),this.walkSourceContents(function(l,c){n.setSourceContent(l,c)}),{code:r.code,map:n}};hH.SourceNode=yn});var Ho=m(Wb=>{Wb.SourceMapGenerator=_R().SourceMapGenerator;Wb.SourceMapConsumer=pH().SourceMapConsumer;Wb.SourceNode=gH().SourceNode});var ER=m((KAt,mH)=>{var OFe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",qFe=(t,e=21)=>(r=e)=>{let n="",i=r;for(;i--;)n+=t[Math.random()*t.length|0];return n},RFe=(t=21)=>{let e="",r=t;for(;r--;)e+=OFe[Math.random()*64|0];return e};mH.exports={nanoid:RFe,customAlphabet:qFe}});var DR=m((YAt,vH)=>{"use strict";var{SourceMapConsumer:yH,SourceMapGenerator:bH}=Ho(),{existsSync:AFe,readFileSync:PFe}=H("fs"),{dirname:CR,join:TFe}=H("path");function MFe(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var sf=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,i=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=CR(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new yH(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,r){return e?e.substr(0,r.length)===r:!1}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!r)return;let n=e.lastIndexOf(r.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(i.test(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||n.test(e))return MFe(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}loadFile(e){if(this.root=CR(e),AFe(e))return this.mapFile=e,PFe(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(r instanceof yH)return bH.fromSourceMap(r).toString();if(r instanceof bH)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=TFe(CR(e),n)),this.loadFile(n)}}}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}};vH.exports=sf;sf.default=sf});var of=m((QAt,SH)=>{"use strict";var{SourceMapConsumer:LFe,SourceMapGenerator:FFe}=Ho(),{fileURLToPath:wH,pathToFileURL:zb}=H("url"),{resolve:RR,isAbsolute:AR}=H("path"),{nanoid:IFe}=ER(),OR=uR(),_H=Lb(),NFe=DR(),qR=Symbol("fromOffsetCache"),jFe=Boolean(LFe&&FFe),xH=Boolean(RR&&AR),Iu=class{constructor(e,r={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,r.from&&(!xH||/^\w+:\/\//.test(r.from)||AR(r.from)?this.file=r.from:this.file=RR(r.from)),xH&&jFe){let n=new NFe(this.css,r);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+IFe(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let r,n;if(this[qR])n=this[qR];else{let s=this.css.split(`
|
|
99
99
|
`);n=new Array(s.length);let o=0;for(let a=0,u=s.length;a<u;a++)n[a]=o,o+=s[a].length+1;this[qR]=n}r=n[n.length-1];let i=0;if(e>=r)i=n.length-1;else{let s=n.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<n[o])s=o-1;else if(e>=n[o+1])i=o+1;else{i=o;break}}return{line:i+1,col:e-n[i]+1}}error(e,r,n,i={}){let s,o,a;if(r&&typeof r=="object"){let l=r,c=n;if(typeof l.offset=="number"){let f=this.fromOffset(l.offset);r=f.line,n=f.col}else r=l.line,n=l.column;if(typeof c.offset=="number"){let f=this.fromOffset(c.offset);o=f.line,a=f.col}else o=c.line,a=c.column}else if(!n){let l=this.fromOffset(r);r=l.line,n=l.col}let u=this.origin(r,n,o,a);return u?s=new _H(e,u.endLine===void 0?u.line:{line:u.line,column:u.column},u.endLine===void 0?u.column:{line:u.endLine,column:u.endColumn},u.source,u.file,i.plugin):s=new _H(e,o===void 0?r:{line:r,column:n},o===void 0?n:{line:o,column:a},this.css,this.file,i.plugin),s.input={line:r,column:n,endLine:o,endColumn:a,source:this.css},this.file&&(zb&&(s.input.url=zb(this.file).toString()),s.input.file=this.file),s}origin(e,r,n,i){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({line:e,column:r});if(!o.source)return!1;let a;typeof n=="number"&&(a=s.originalPositionFor({line:n,column:i}));let u;AR(o.source)?u=zb(o.source):u=new URL(o.source,this.map.consumer().sourceRoot||zb(this.map.mapFile));let l={url:u.toString(),line:o.line,column:o.column,endLine:a&&a.line,endColumn:a&&a.column};if(u.protocol==="file:")if(wH)l.file=wH(u);else throw new Error("file: protocol is not available in this PostCSS build");let c=s.sourceContentFor(o.source);return c&&(l.source=c),l}mapResolve(e){return/^\w+:\/\//.test(e)?e:RR(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};SH.exports=Iu;Iu.default=Iu;OR&&OR.registerInput&&OR.registerInput(Iu)});var TR=m((JAt,qH)=>{"use strict";var{SourceMapConsumer:EH,SourceMapGenerator:Ub}=Ho(),{dirname:Hb,resolve:CH,relative:DH,sep:OH}=H("path"),{pathToFileURL:kH}=H("url"),$Fe=of(),BFe=Boolean(EH&&Ub),WFe=Boolean(Hb&&CH&&DH&&OH),PR=class{constructor(e,r,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new $Fe(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}setSourcesContent(){let e={};if(this.root)this.root.walk(r=>{if(r.source){let n=r.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||Hb(e.file),i;this.mapOpts.sourcesContent===!1?(i=new EH(e.text),i.sourcesContent&&(i.sourcesContent=i.sourcesContent.map(()=>null))):i=e.consumer(),this.map.applySourceMap(i,r,this.toUrl(this.path(n)))}}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
|
|
100
100
|
`;this.css.includes(`\r
|
|
101
101
|
`)&&(r=`\r
|
|
@@ -163,8 +163,8 @@ ${h}`),n?i.reset(h):h}function fot(t,e,r,n={}){if(!gse){gse=!0;let s="Passing li
|
|
|
163
163
|
`);for(;r!==-1;)r+=1,e.push(r),r=t.indexOf(`
|
|
164
164
|
`,r);return e}function kse(t){let e,r;return typeof t=="string"?(e=Sse(t),r=t):(Array.isArray(t)&&(t=t[0]),t&&t.context&&(t.lineStarts||(t.lineStarts=Sse(t.context.src)),e=t.lineStarts,r=t.context.src)),{lineStarts:e,src:r}}function pT(t,e){if(typeof t!="number"||t<0)return null;let{lineStarts:r,src:n}=kse(e);if(!r||!n||t>n.length)return null;for(let s=0;s<r.length;++s){let o=r[s];if(t<o)return{line:s,col:t-r[s-1]+1};if(t===o)return{line:s+1,col:1}}let i=r.length;return{line:i,col:t-r[i-1]+1}}function yot(t,e){let{lineStarts:r,src:n}=kse(e);if(!r||!(t>=1)||t>r.length)return null;let i=r[t-1],s=r[t];for(;s&&s>i&&n[s-1]===`
|
|
165
165
|
`;)--s;return n.slice(i,s)}function bot({start:t,end:e},r,n=80){let i=yot(t.line,r);if(!i)return null;let{col:s}=t;if(i.length>n)if(s<=n-10)i=i.substr(0,n-1)+"\u2026";else{let c=Math.round(n/2);i.length>s+c&&(i=i.substr(0,s+c-1)+"\u2026"),s-=i.length-n,i="\u2026"+i.substr(1-n)}let o=1,a="";e&&(e.line===t.line&&s+(e.col-t.col)<=n+1?o=e.col-t.col:(o=Math.min(i.length+1,n)-s,a="\u2026"));let u=s>1?" ".repeat(s-1):"",l="^".repeat(o);return`${i}
|
|
166
|
-
${u}${l}${a}`}var Ys=class{static copy(e){return new Ys(e.start,e.end)}constructor(e,r){this.start=e,this.end=r||e}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(e,r){let{start:n,end:i}=this;if(e.length===0||i<=e[0])return this.origStart=n,this.origEnd=i,r;let s=r;for(;s<e.length&&!(e[s]>n);)++s;this.origStart=n+s;let o=s;for(;s<e.length&&!(e[s]>=i);)++s;return this.origEnd=i+s,o}},
|
|
167
|
-
`)return n;let i=
|
|
166
|
+
${u}${l}${a}`}var Ys=class{static copy(e){return new Ys(e.start,e.end)}constructor(e,r){this.start=e,this.end=r||e}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(e,r){let{start:n,end:i}=this;if(e.length===0||i<=e[0])return this.origStart=n,this.origEnd=i,r;let s=r;for(;s<e.length&&!(e[s]>n);)++s;this.origStart=n+s;let o=s;for(;s<e.length&&!(e[s]>=i);)++s;return this.origEnd=i+s,o}},fr=class{static addStringTerminator(e,r,n){if(n[n.length-1]===`
|
|
167
|
+
`)return n;let i=fr.endOfWhiteSpace(e,r);return i>=e.length||e[i]===`
|
|
168
168
|
`?n+`
|
|
169
169
|
`:n}static atDocumentBoundary(e,r,n){let i=e[r];if(!i)return!0;let s=e[r-1];if(s&&s!==`
|
|
170
170
|
`)return!1;if(n){if(i!==n)return!1}else if(i!==ds.DIRECTIVES_END&&i!==ds.DOCUMENT_END)return!1;let o=e[r+1],a=e[r+2];if(o!==i||a!==i)return!1;let u=e[r+3];return!u||u===`
|
|
@@ -173,27 +173,27 @@ ${u}${l}${a}`}var Ys=class{static copy(e){return new Ys(e.start,e.end)}construct
|
|
|
173
173
|
`," "," ","[","]","{","}",","];for(;n&&s.indexOf(n)===-1;)n=e[r+=1];return i&&n===">"&&(r+=1),r}static endOfIndent(e,r){let n=e[r];for(;n===" ";)n=e[r+=1];return r}static endOfLine(e,r){let n=e[r];for(;n&&n!==`
|
|
174
174
|
`;)n=e[r+=1];return r}static endOfWhiteSpace(e,r){let n=e[r];for(;n===" "||n===" ";)n=e[r+=1];return r}static startOfLine(e,r){let n=e[r-1];if(n===`
|
|
175
175
|
`)return r;for(;n&&n!==`
|
|
176
|
-
`;)n=e[r-=1];return r+1}static endOfBlockIndent(e,r,n){let i=
|
|
176
|
+
`;)n=e[r-=1];return r+1}static endOfBlockIndent(e,r,n){let i=fr.endOfIndent(e,n);if(i>n+r)return i;{let s=fr.endOfWhiteSpace(e,i),o=e[s];if(!o||o===`
|
|
177
177
|
`)return s}return null}static atBlank(e,r,n){let i=e[r];return i===`
|
|
178
178
|
`||i===" "||i===" "||n&&!i}static nextNodeIsIndented(e,r,n){return!e||r<0?!1:r>0?!0:n&&e==="-"}static normalizeOffset(e,r){let n=e[r];return n?n!==`
|
|
179
179
|
`&&e[r-1]===`
|
|
180
|
-
`?r-1:
|
|
180
|
+
`?r-1:fr.endOfWhiteSpace(e,r):r}static foldNewline(e,r,n){let i=0,s=!1,o="",a=e[r+1];for(;a===" "||a===" "||a===`
|
|
181
181
|
`;){switch(a){case`
|
|
182
182
|
`:i=0,r+=1,o+=`
|
|
183
|
-
`;break;case" ":i<=n&&(s=!0),r=
|
|
184
|
-
`):null}commentHasRequiredWhitespace(e){let{src:r}=this.context;if(this.header&&e===this.header.end||!this.valueRange)return!1;let{end:n}=this.valueRange;return e!==n||
|
|
185
|
-
`)return!0;return!1}parseComment(e){let{src:r}=this.context;if(r[e]===ds.COMMENT){let n=
|
|
183
|
+
`;break;case" ":i<=n&&(s=!0),r=fr.endOfWhiteSpace(e,r+2)-1;break;case" ":i+=1,r+=1;break}a=e[r+1]}return o||(o=" "),a&&i<=n&&(s=!0),{fold:o,offset:r,error:s}}constructor(e,r,n){Object.defineProperty(this,"context",{value:n||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=r||[],this.type=e,this.value=null}getPropValue(e,r,n){if(!this.context)return null;let{src:i}=this.context,s=this.props[e];return s&&i[s.start]===r?i.slice(s.start+(n?1:0),s.end):null}get anchor(){for(let e=0;e<this.props.length;++e){let r=this.getPropValue(e,ds.ANCHOR,!0);if(r!=null)return r}return null}get comment(){let e=[];for(let r=0;r<this.props.length;++r){let n=this.getPropValue(r,ds.COMMENT,!0);n!=null&&e.push(n)}return e.length>0?e.join(`
|
|
184
|
+
`):null}commentHasRequiredWhitespace(e){let{src:r}=this.context;if(this.header&&e===this.header.end||!this.valueRange)return!1;let{end:n}=this.valueRange;return e!==n||fr.atBlank(r,n-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let r=0;r<this.props.length;++r)if(e[this.props[r].start]===ds.COMMENT)return!0}return!1}get hasProps(){if(this.context){let{src:e}=this.context;for(let r=0;r<this.props.length;++r)if(e[this.props[r].start]!==ds.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return[Td.FLOW_MAP,Td.FLOW_SEQ,Td.QUOTE_DOUBLE,Td.QUOTE_SINGLE].indexOf(this.type)!==-1}get rangeAsLinePos(){if(!this.range||!this.context)return;let e=pT(this.range.start,this.context.root);if(!e)return;let r=pT(this.range.end,this.context.root);return{start:e,end:r}}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:r}=this.valueRange;return this.context.src.slice(e,r)}get tag(){for(let e=0;e<this.props.length;++e){let r=this.getPropValue(e,ds.TAG,!1);if(r!=null){if(r[1]==="<")return{verbatim:r.slice(2,-1)};{let[n,i,s]=r.match(/^(.*!)([^!]*)$/);return{handle:i,suffix:s}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;let{start:e,end:r}=this.valueRange,{src:n}=this.context;for(let i=e;i<r;++i)if(n[i]===`
|
|
185
|
+
`)return!0;return!1}parseComment(e){let{src:r}=this.context;if(r[e]===ds.COMMENT){let n=fr.endOfLine(r,e+1),i=new Ys(e,n);return this.props.push(i),n}return e}setOrigRanges(e,r){return this.range&&(r=this.range.setOrigRange(e,r)),this.valueRange&&this.valueRange.setOrigRange(e,r),this.props.forEach(n=>n.setOrigRange(e,r)),r}toString(){let{context:{src:e},range:r,value:n}=this;if(n!=null)return n;let i=e.slice(r.start,r.end);return fr.addStringTerminator(e,r.end,i)}},sa=class extends Error{constructor(e,r,n){if(!n||!(r instanceof fr))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=n,this.source=r}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Ys(this.offset,this.offset+1);let r=e&&pT(this.offset,e);if(r){let n={line:r.line,col:r.col+1};this.linePos={start:r,end:n}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:r,col:n}=this.linePos.start;this.message+=` at line ${r}, column ${n}`;let i=e&&bot(this.linePos,e);i&&(this.message+=`:
|
|
186
186
|
|
|
187
187
|
${i}
|
|
188
|
-
`)}delete this.source}},hT=class extends sa{constructor(e,r){super("YAMLReferenceError",e,r)}},Md=class extends sa{constructor(e,r){super("YAMLSemanticError",e,r)}},gT=class extends sa{constructor(e,r){super("YAMLSyntaxError",e,r)}},mT=class extends sa{constructor(e,r){super("YAMLWarning",e,r)}};function vot(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var nl=class extends
|
|
188
|
+
`)}delete this.source}},hT=class extends sa{constructor(e,r){super("YAMLReferenceError",e,r)}},Md=class extends sa{constructor(e,r){super("YAMLSemanticError",e,r)}},gT=class extends sa{constructor(e,r){super("YAMLSyntaxError",e,r)}},mT=class extends sa{constructor(e,r){super("YAMLWarning",e,r)}};function vot(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var nl=class extends fr{static endOfLine(e,r,n){let i=e[r],s=r;for(;i&&i!==`
|
|
189
189
|
`&&!(n&&(i==="["||i==="]"||i==="{"||i==="}"||i===","));){let o=e[s+1];if(i===":"&&(!o||o===`
|
|
190
190
|
`||o===" "||o===" "||n&&o===",")||(i===" "||i===" ")&&o==="#")break;s+=1,i=o}return s}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:r}=this.valueRange,{src:n}=this.context,i=n[r-1];for(;e<r&&(i===`
|
|
191
191
|
`||i===" "||i===" ");)i=n[--r-1];let s="";for(let a=e;a<r;++a){let u=n[a];if(u===`
|
|
192
|
-
`){let{fold:l,offset:c}=
|
|
192
|
+
`){let{fold:l,offset:c}=fr.foldNewline(n,a,-1);s+=l,a=c}else if(u===" "||u===" "){let l=a,c=n[a+1];for(;a<r&&(c===" "||c===" ");)a+=1,c=n[a+1];c!==`
|
|
193
193
|
`&&(s+=a>l?n.slice(l,a+1):u)}else s+=u}let o=n[e];switch(o){case" ":{let a="Plain value cannot start with a tab character";return{errors:[new Md(this,a)],str:s}}case"@":case"`":{let a=`Plain value cannot start with reserved character ${o}`;return{errors:[new Md(this,a)],str:s}}default:return s}}parseBlockValue(e){let{indent:r,inFlow:n,src:i}=this.context,s=e,o=e;for(let a=i[s];a===`
|
|
194
|
-
`&&!
|
|
194
|
+
`&&!fr.atDocumentBoundary(i,s+1);a=i[s]){let u=fr.endOfBlockIndent(i,r,s+1);if(u===null||i[u]==="#")break;i[u]===`
|
|
195
195
|
`?s=u:(o=nl.endOfLine(i,u,n),s=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=o,o}parse(e,r){this.context=e;let{inFlow:n,src:i}=e,s=r,o=i[s];return o&&o!=="#"&&o!==`
|
|
196
|
-
`&&(s=nl.endOfLine(i,r,n)),this.valueRange=new Ys(r,s),s=
|
|
196
|
+
`&&(s=nl.endOfLine(i,r,n)),this.valueRange=new Ys(r,s),s=fr.endOfWhiteSpace(i,s),s=this.parseComment(s),(!this.hasComment||this.valueRange.isEmpty())&&(s=this.parseBlockValue(s)),s}};sn.Char=ds;sn.Node=fr;sn.PlainValue=nl;sn.Range=Ys;sn.Type=Td;sn.YAMLError=sa;sn.YAMLReferenceError=hT;sn.YAMLSemanticError=Md;sn.YAMLSyntaxError=gT;sn.YAMLWarning=mT;sn._defineProperty=vot;sn.defaultTagPrefix=got;sn.defaultTags=mot});var Cse=m(Ese=>{"use strict";var G=oa(),la=class extends G.Node{constructor(){super(G.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,r){return this.context=e,this.range=new G.Range(r,r+1),r+1}},Ld=class extends G.Node{constructor(e,r){super(e,r),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,r){this.context=e;let{parseNode:n,src:i}=e,{atLineStart:s,lineStart:o}=e;!s&&this.type===G.Type.SEQ_ITEM&&(this.error=new G.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let a=s?r-o:e.indent,u=G.Node.endOfWhiteSpace(i,r+1),l=i[u],c=l==="#",f=[],d=null;for(;l===`
|
|
197
197
|
`||l==="#";){if(l==="#"){let h=G.Node.endOfLine(i,u+1);f.push(new G.Range(u,h)),u=h}else{s=!0,o=u+1;let h=G.Node.endOfWhiteSpace(i,o);i[h]===`
|
|
198
198
|
`&&f.length===0&&(d=new la,o=d.parse({src:i},o)),u=G.Node.endOfIndent(i,o)}l=i[u]}if(G.Node.nextNodeIsIndented(l,u-(o+a),this.type!==G.Type.SEQ_ITEM)?this.node=n({atLineStart:s,inCollection:!1,indent:a,lineStart:o,parent:this},u):l&&o>r+1&&(u=o-1),this.node){if(d){let h=e.parent.items||e.parent.contents;h&&h.push(d)}f.length&&Array.prototype.push.apply(this.props,f),u=this.node.range.end}else if(c){let h=f[0];this.props.push(h),u=h.end}else u=G.Node.endOfLine(i,r+1);let p=this.node?this.node.valueRange.end:u;return this.valueRange=new G.Range(r,p),u}setOrigRanges(e,r){return r=super.setOrigRanges(e,r),this.node?this.node.setOrigRanges(e,r):r}toString(){let{context:{src:e},node:r,range:n,value:i}=this;if(i!=null)return i;let s=r?e.slice(n.start,r.range.start)+String(r):e.slice(n.start,n.end);return G.Node.addStringTerminator(e,n.end,s)}},aa=class extends G.Node{constructor(){super(G.Type.COMMENT)}parse(e,r){this.context=e;let n=this.parseComment(r);return this.range=new G.Range(r,n),n}};function yT(t){let e=t;for(;e instanceof Ld;)e=e.node;if(!(e instanceof ca))return null;let r=e.items.length,n=-1;for(let o=r-1;o>=0;--o){let a=e.items[o];if(a.type===G.Type.COMMENT){let{indent:u,lineStart:l}=a.context;if(u>0&&a.range.start>=l+u)break;n=o}else if(a.type===G.Type.BLANK_LINE)n=o;else break}if(n===-1)return null;let i=e.items.splice(n,r-n),s=i[0].range.start;for(;e.range.end=s,e.valueRange&&e.valueRange.end>s&&(e.valueRange.end=s),e!==t;)e=e.context.parent;return i}var ca=class extends G.Node{static nextContentHasIndent(e,r,n){let i=G.Node.endOfLine(e,r)+1;r=G.Node.endOfWhiteSpace(e,i);let s=e[r];return s?r>=i+n?!0:s!=="#"&&s!==`
|
|
199
199
|
`?!1:ca.nextContentHasIndent(e,r,n):!1}constructor(e){super(e.type===G.Type.SEQ_ITEM?G.Type.SEQ:G.Type.MAP);for(let n=e.props.length-1;n>=0;--n)if(e.props[n].start<e.context.lineStart){this.props=e.props.slice(0,n+1),e.props=e.props.slice(n+1);let i=e.props[0]||e.valueRange;e.range.start=i.start;break}this.items=[e];let r=yT(e);r&&Array.prototype.push.apply(this.items,r)}get includesTrailingLines(){return this.items.length>0}parse(e,r){this.context=e;let{parseNode:n,src:i}=e,s=G.Node.startOfLine(i,r),o=this.items[0];o.context.parent=this,this.valueRange=G.Range.copy(o.valueRange);let a=o.range.start-o.context.lineStart,u=r;u=G.Node.normalizeOffset(i,u);let l=i[u],c=G.Node.endOfWhiteSpace(i,s)===u,f=!1;for(;l;){for(;l===`
|
|
@@ -310,7 +310,7 @@ ${n.message}`,n}},IT,Fat=function(e,r){IT===void 0&&(IT=loe());try{return IT.par
|
|
|
310
310
|
${n.message}`,n}},Iat={loadJs:Mat,loadJson:Lat,loadYaml:Fat};q1.loaders=Iat});var coe=m(jT=>{"use strict";Object.defineProperty(jT,"__esModule",{value:!0});jT.getPropertyByPath=Nat;function Nat(t,e){return typeof e=="string"&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:(typeof e=="string"?e.split("."):e).reduce((n,i)=>n===void 0?n:n[i],t)}});var BT=m(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.ExplorerBase=void 0;Hd.getExtensionDescription=R1;var Ud=Bat(H("path")),jat=NT(),$at=coe();function Bat(t){return t&&t.__esModule?t:{default:t}}var $T=class{constructor(e){e.cache===!0&&(this.loadCache=new Map,this.searchCache=new Map),this.config=e,this.validateConfig()}clearLoadCache(){this.loadCache&&this.loadCache.clear()}clearSearchCache(){this.searchCache&&this.searchCache.clear()}clearCaches(){this.clearLoadCache(),this.clearSearchCache()}validateConfig(){let e=this.config;e.searchPlaces.forEach(r=>{let n=Ud.default.extname(r)||"noExt",i=e.loaders[n];if(!i)throw new Error(`No loader specified for ${R1(r)}, so searchPlaces item "${r}" is invalid`);if(typeof i!="function")throw new Error(`loader for ${R1(r)} is not a function (type provided: "${typeof i}"), so searchPlaces item "${r}" is invalid`)})}shouldSearchStopWithResult(e){return!(e===null||e.isEmpty&&this.config.ignoreEmptySearchPlaces)}nextDirectoryToSearch(e,r){if(this.shouldSearchStopWithResult(r))return null;let n=Wat(e);return n===e||e===this.config.stopDir?null:n}loadPackageProp(e,r){let n=jat.loaders.loadJson(e,r);return(0,$at.getPropertyByPath)(n,this.config.packageProp)||null}getLoaderEntryForFile(e){if(Ud.default.basename(e)==="package.json")return this.loadPackageProp.bind(this);let r=Ud.default.extname(e)||"noExt",n=this.config.loaders[r];if(!n)throw new Error(`No loader specified for ${R1(e)}`);return n}loadedContentToCosmiconfigResult(e,r){return r===null?null:r===void 0?{filepath:e,config:void 0,isEmpty:!0}:{config:r,filepath:e}}validateFilePath(e){if(!e)throw new Error("load must pass a non-empty string")}};Hd.ExplorerBase=$T;function Wat(t){return Ud.default.dirname(t)}function R1(t){let e=Ud.default.extname(t);return e?`extension "${e}"`:"files without extensions"}});var WT=m(A1=>{"use strict";Object.defineProperty(A1,"__esModule",{value:!0});A1.readFile=Hat;A1.readFileSync=Vat;var foe=zat(H("fs"));function zat(t){return t&&t.__esModule?t:{default:t}}async function Uat(t,e){return new Promise((r,n)=>{foe.default.readFile(t,e,(i,s)=>{if(i){n(i);return}r(s)})})}async function Hat(t,e={}){let r=e.throwNotFound===!0;try{return await Uat(t,"utf8")}catch(n){if(r===!1&&(n.code==="ENOENT"||n.code==="EISDIR"))return null;throw n}}function Vat(t,e={}){let r=e.throwNotFound===!0;try{return foe.default.readFileSync(t,"utf8")}catch(n){if(r===!1&&(n.code==="ENOENT"||n.code==="EISDIR"))return null;throw n}}});var zT=m(P1=>{"use strict";Object.defineProperty(P1,"__esModule",{value:!0});P1.cacheWrapper=Gat;P1.cacheWrapperSync=Kat;async function Gat(t,e,r){let n=t.get(e);if(n!==void 0)return n;let i=await r();return t.set(e,i),i}function Kat(t,e,r){let n=t.get(e);if(n!==void 0)return n;let i=r();return t.set(e,i),i}});var VT=m(ma=>{"use strict";var{promisify:Yat}=H("util"),doe=H("fs");async function UT(t,e,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return(await Yat(doe[t])(r))[e]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}function HT(t,e,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return doe[t](r)[e]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}ma.isFile=UT.bind(null,"stat","isFile");ma.isDirectory=UT.bind(null,"stat","isDirectory");ma.isSymlink=UT.bind(null,"lstat","isSymbolicLink");ma.isFileSync=HT.bind(null,"statSync","isFile");ma.isDirectorySync=HT.bind(null,"statSync","isDirectory");ma.isSymlinkSync=HT.bind(null,"lstatSync","isSymbolicLink")});var GT=m(T1=>{"use strict";Object.defineProperty(T1,"__esModule",{value:!0});T1.getDirectory=Jat;T1.getDirectorySync=Xat;var poe=Qat(H("path")),hoe=VT();function Qat(t){return t&&t.__esModule?t:{default:t}}async function Jat(t){return await(0,hoe.isDirectory)(t)===!0?t:poe.default.dirname(t)}function Xat(t){return(0,hoe.isDirectorySync)(t)===!0?t:poe.default.dirname(t)}});var yoe=m(M1=>{"use strict";Object.defineProperty(M1,"__esModule",{value:!0});M1.Explorer=void 0;var KT=tut(H("path")),Zat=BT(),goe=WT(),moe=zT(),eut=GT();function tut(t){return t&&t.__esModule?t:{default:t}}var YT=class extends Zat.ExplorerBase{constructor(e){super(e)}async search(e=process.cwd()){let r=await(0,eut.getDirectory)(e);return await this.searchFromDirectory(r)}async searchFromDirectory(e){let r=KT.default.resolve(process.cwd(),e),n=async()=>{let i=await this.searchDirectory(r),s=this.nextDirectoryToSearch(r,i);return s?this.searchFromDirectory(s):await this.config.transform(i)};return this.searchCache?(0,moe.cacheWrapper)(this.searchCache,r,n):n()}async searchDirectory(e){for await(let r of this.config.searchPlaces){let n=await this.loadSearchPlace(e,r);if(this.shouldSearchStopWithResult(n)===!0)return n}return null}async loadSearchPlace(e,r){let n=KT.default.join(e,r),i=await(0,goe.readFile)(n);return await this.createCosmiconfigResult(n,i)}async loadFileContent(e,r){return r===null?null:r.trim()===""?void 0:await this.getLoaderEntryForFile(e)(e,r)}async createCosmiconfigResult(e,r){let n=await this.loadFileContent(e,r);return this.loadedContentToCosmiconfigResult(e,n)}async load(e){this.validateFilePath(e);let r=KT.default.resolve(process.cwd(),e),n=async()=>{let i=await(0,goe.readFile)(r,{throwNotFound:!0}),s=await this.createCosmiconfigResult(r,i);return await this.config.transform(s)};return this.loadCache?(0,moe.cacheWrapper)(this.loadCache,r,n):n()}};M1.Explorer=YT});var woe=m(L1=>{"use strict";Object.defineProperty(L1,"__esModule",{value:!0});L1.ExplorerSync=void 0;var QT=iut(H("path")),rut=BT(),boe=WT(),voe=zT(),nut=GT();function iut(t){return t&&t.__esModule?t:{default:t}}var JT=class extends rut.ExplorerBase{constructor(e){super(e)}searchSync(e=process.cwd()){let r=(0,nut.getDirectorySync)(e);return this.searchFromDirectorySync(r)}searchFromDirectorySync(e){let r=QT.default.resolve(process.cwd(),e),n=()=>{let i=this.searchDirectorySync(r),s=this.nextDirectoryToSearch(r,i);return s?this.searchFromDirectorySync(s):this.config.transform(i)};return this.searchCache?(0,voe.cacheWrapperSync)(this.searchCache,r,n):n()}searchDirectorySync(e){for(let r of this.config.searchPlaces){let n=this.loadSearchPlaceSync(e,r);if(this.shouldSearchStopWithResult(n)===!0)return n}return null}loadSearchPlaceSync(e,r){let n=QT.default.join(e,r),i=(0,boe.readFileSync)(n);return this.createCosmiconfigResultSync(n,i)}loadFileContentSync(e,r){return r===null?null:r.trim()===""?void 0:this.getLoaderEntryForFile(e)(e,r)}createCosmiconfigResultSync(e,r){let n=this.loadFileContentSync(e,r);return this.loadedContentToCosmiconfigResult(e,n)}loadSync(e){this.validateFilePath(e);let r=QT.default.resolve(process.cwd(),e),n=()=>{let i=(0,boe.readFileSync)(r,{throwNotFound:!0}),s=this.createCosmiconfigResultSync(r,i);return this.config.transform(s)};return this.loadCache?(0,voe.cacheWrapperSync)(this.loadCache,r,n):n()}};L1.ExplorerSync=JT});var xoe=m(_oe=>{"use strict";Object.defineProperty(_oe,"__esModule",{value:!0})});var XT=m(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.cosmiconfig=lut;ll.cosmiconfigSync=cut;ll.defaultLoaders=void 0;var sut=uut(H("os")),out=yoe(),aut=woe(),ul=NT(),YFt=xoe();function uut(t){return t&&t.__esModule?t:{default:t}}function lut(t,e={}){let r=koe(t,e),n=new out.Explorer(r);return{search:n.search.bind(n),load:n.load.bind(n),clearLoadCache:n.clearLoadCache.bind(n),clearSearchCache:n.clearSearchCache.bind(n),clearCaches:n.clearCaches.bind(n)}}function cut(t,e={}){let r=koe(t,e),n=new aut.ExplorerSync(r);return{search:n.searchSync.bind(n),load:n.loadSync.bind(n),clearLoadCache:n.clearLoadCache.bind(n),clearSearchCache:n.clearSearchCache.bind(n),clearCaches:n.clearCaches.bind(n)}}var Soe=Object.freeze({".cjs":ul.loaders.loadJs,".js":ul.loaders.loadJs,".json":ul.loaders.loadJson,".yaml":ul.loaders.loadYaml,".yml":ul.loaders.loadYaml,noExt:ul.loaders.loadYaml});ll.defaultLoaders=Soe;var fut=function(e){return e};function koe(t,e){let r={packageProp:t,searchPlaces:["package.json",`.${t}rc`,`.${t}rc.json`,`.${t}rc.yaml`,`.${t}rc.yml`,`.${t}rc.js`,`.${t}rc.cjs`,`.config/${t}rc`,`.config/${t}rc.json`,`.config/${t}rc.yaml`,`.config/${t}rc.yml`,`.config/${t}rc.js`,`.config/${t}rc.cjs`,`${t}.config.js`,`${t}.config.cjs`],ignoreEmptySearchPlaces:!0,stopDir:sut.default.homedir(),cache:!0,transform:fut,loaders:Soe};return{...r,...e,loaders:{...r.loaders,...e.loaders}}}});var Ooe=m(ya=>{ya.parse=ya.decode=dut;ya.stringify=ya.encode=Eoe;ya.safe=cl;ya.unsafe=F1;var ZT=typeof process<"u"&&process.platform==="win32"?`\r
|
|
311
311
|
`:`
|
|
312
312
|
`;function Eoe(t,e){var r=[],n="";typeof e=="string"?e={section:e,whitespace:!1}:(e=e||{},e.whitespace=e.whitespace===!0);var i=e.whitespace?" = ":"=";return Object.keys(t).forEach(function(s,o,a){var u=t[s];u&&Array.isArray(u)?u.forEach(function(l){n+=cl(s+"[]")+i+cl(l)+`
|
|
313
|
-
`}):u&&typeof u=="object"?r.push(s):n+=cl(s)+i+cl(u)+ZT}),e.section&&n.length&&(n="["+cl(e.section)+"]"+ZT+n),r.forEach(function(s,o,a){var u=Coe(s).join("\\."),l=(e.section?e.section+".":"")+u,c=Eoe(t[s],{section:l,whitespace:e.whitespace});n.length&&c.length&&(n+=ZT),n+=c}),n}function Coe(t){return t.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function dut(t){var e={},r=e,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=t.split(/[\r\n]+/g);return s.forEach(function(o,a,u){if(!(!o||o.match(/^\s*[;#]/))){var l=o.match(i);if(l){if(l[1]!==void 0){if(n=F1(l[1]),n==="__proto__"){r={};return}r=e[n]=e[n]||{};return}var c=F1(l[2]);if(c!=="__proto__"){var f=l[3]?F1(l[4]):!0;switch(f){case"true":case"false":case"null":f=JSON.parse(f)}if(c.length>2&&c.slice(-2)==="[]"){if(c=c.substring(0,c.length-2),c==="__proto__")return;r[c]?Array.isArray(r[c])||(r[c]=[r[c]]):r[c]=[]}Array.isArray(r[c])?r[c].push(f):r[c]=f}}}}),Object.keys(e).filter(function(o,a,u){if(!e[o]||typeof e[o]!="object"||Array.isArray(e[o]))return!1;var l=Coe(o),c=e,f=l.pop(),d=f.replace(/\\\./g,".");return l.forEach(function(p,h,y){p!=="__proto__"&&((!c[p]||typeof c[p]!="object")&&(c[p]={}),c=c[p])}),c===e&&d===f?!1:(c[d]=e[o],!0)}).forEach(function(o,a,u){delete e[o]}),e}function Doe(t){return t.charAt(0)==='"'&&t.slice(-1)==='"'||t.charAt(0)==="'"&&t.slice(-1)==="'"}function cl(t){return typeof t!="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&Doe(t)||t!==t.trim()?JSON.stringify(t):t.replace(/;/g,"\\;").replace(/#/g,"\\#")}function F1(t,e){if(t=(t||"").trim(),Doe(t)){t.charAt(0)==="'"&&(t=t.substr(1,t.length-2));try{t=JSON.parse(t)}catch{}}else{for(var r=!1,n="",i=0,s=t.length;i<s;i++){var o=t.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return t}});var Toe=m((XFt,Poe)=>{Poe.exports=Aoe;Aoe.sync=hut;var qoe=H("fs");function put(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function Roe(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:put(e,r)}function Aoe(t,e,r){qoe.stat(t,function(n,i){r(n,n?!1:Roe(i,t,e))})}function hut(t,e){return Roe(qoe.statSync(t),t,e)}});var Noe=m((ZFt,Ioe)=>{Ioe.exports=Loe;Loe.sync=gut;var Moe=H("fs");function Loe(t,e,r){Moe.stat(t,function(n,i){r(n,n?!1:Foe(i,e))})}function gut(t,e){return Foe(Moe.statSync(t),e)}function Foe(t,e){return t.isFile()&&mut(t,e)}function mut(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),l=parseInt("001",8),c=a|u,f=r&l||r&u&&i===o||r&a&&n===s||r&c&&s===0;return f}});var $oe=m((tIt,joe)=>{var eIt=H("fs"),I1;process.platform==="win32"||global.TESTING_WINDOWS?I1=Toe():I1=Noe();joe.exports=eM;eM.sync=yut;function eM(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){eM(t,e||{},function(s,o){s?i(s):n(o)})})}I1(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function yut(t,e){try{return I1.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Goe=m((rIt,Voe)=>{Voe.exports=Hoe;Hoe.sync=vut;var tM=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Boe=H("path"),but=tM?";":":",Woe=$oe();function zoe(t){var e=new Error("not found: "+t);return e.code="ENOENT",e}function Uoe(t,e){var r=e.colon||but,n=e.path||process.env.PATH||"",i=[""];n=n.split(r);var s="";return tM&&(n.unshift(process.cwd()),s=e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM",i=s.split(r),t.indexOf(".")!==-1&&i[0]!==""&&i.unshift("")),(t.match(/\//)||tM&&t.match(/\\/))&&(n=[""]),{env:n,ext:i,extExe:s}}function Hoe(t,e,r){typeof e=="function"&&(r=e,e={});var n=Uoe(t,e),i=n.env,s=n.ext,o=n.extExe,a=[];(function u(l,c){if(l===c)return e.all&&a.length?r(null,a):r(zoe(t));var f=i[l];f.charAt(0)==='"'&&f.slice(-1)==='"'&&(f=f.slice(1,-1));var d=Boe.join(f,t);!f&&/^\.[\\\/]/.test(t)&&(d=t.slice(0,2)+d),function p(h,y){if(h===y)return u(l+1,c);var v=s[h];Woe(d+v,{pathExt:o},function(g,b){if(!g&&b)if(e.all)a.push(d+v);else return r(null,d+v);return p(h+1,y)})}(0,s.length)})(0,i.length)}function vut(t,e){e=e||{};for(var r=Uoe(t,e),n=r.env,i=r.ext,s=r.extExe,o=[],a=0,u=n.length;a<u;a++){var l=n[a];l.charAt(0)==='"'&&l.slice(-1)==='"'&&(l=l.slice(1,-1));var c=Boe.join(l,t);!l&&/^\.[\\\/]/.test(t)&&(c=t.slice(0,2)+c);for(var f=0,d=i.length;f<d;f++){var p=c+i[f],h;try{if(h=Woe.sync(p,{pathExt:s}),h)if(e.all)o.push(p);else return p}catch{}}}if(e.all&&o.length)return o;if(e.nothrow)return null;throw zoe(t)}});var Qoe=m((nIt,Yoe)=>{"use strict";var Koe=H("fs"),wut=H("os"),ro=H("path"),_ut=Ooe(),Cr,xut=()=>{if(process.env.PREFIX)return process.env.PREFIX;if(Cr)return Cr;let t=wut.homedir();if(t&&(Cr=rM(ro.resolve(t,".npmrc"))),Cr)return Cr;let e=Sut();if(e&&(Cr=rM(ro.resolve(e,"..","..","npmrc")),Cr&&(Cr=rM(ro.resolve(Cr,"etc","npmrc"))||Cr)),!Cr){let{APPDATA:r,DESTDIR:n,OSTYPE:i}=process.env;if(process.platform==="win32"||i==="msys"||i==="cygwin")return Cr=r?ro.join(r,"npm"):ro.dirname(process.execPath),Cr;Cr=ro.dirname(ro.dirname(process.execPath)),n&&(Cr=ro.join(n,Cr))}return Cr};function Sut(){try{return Koe.realpathSync(Goe().sync("npm"))}catch{}}function rM(t){try{return _ut.parse(Koe.readFileSync(t,"utf-8")).prefix}catch{}}Reflect.defineProperty(Yoe,"exports",{get(){return xut()}})});var tae=m((iIt,eae)=>{"use strict";var Joe=H("path"),Xoe=Qoe(),Zoe;function kut(){return process.platform==="win32"||process.env.OSTYPE==="msys"||process.env.OSTYPE==="cygwin"?Joe.resolve(Xoe,"node_modules"):Joe.resolve(Xoe,"lib/node_modules")}Reflect.defineProperty(eae,"exports",{get(){return Zoe||(Zoe=kut())}})});var sae=m((sIt,nM)=>{"use strict";var rae=H("path"),nae=H("module"),Eut=H("fs"),iae=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof t}\``);if(typeof e!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof e}\``);try{t=Eut.realpathSync(t)}catch(s){if(s.code==="ENOENT")t=rae.resolve(t);else{if(r)return;throw s}}let n=rae.join(t,"noop.js"),i=()=>nae._resolveFilename(e,{id:n,filename:n,paths:nae._nodeModulePaths(t)});if(r)try{return i()}catch{return}return i()};nM.exports=(t,e)=>iae(t,e);nM.exports.silent=(t,e)=>iae(t,e,!0)});var sM=m((oIt,oae)=>{"use strict";var Cut=Lc(),Dut=tae(),iM=sae();oae.exports=function(e,r,n=process.cwd()){let i=iM.silent(e,r);if(i||(i=iM.silent(n,r)),i||(i=iM.silent(Dut,r)),!i)throw Cut(`Could not find "${r}". Do you need the "configBasedir" or "--config-basedir" option?`);return i}});var cae=m((aIt,lae)=>{"use strict";var aae=H("path"),Out=Array.prototype.slice;function qut(){var t;return t=Out.call(arguments,0),t.reduce(function(e,r){return uae(e,function(n){return uae(r,function(i){return Rut(n,i)})})},"")}function uae(t,e){return Array.isArray(t)?t.reduce(function(r,n){return r.concat(e(n))},[]):e(t)}function Rut(t,e){var r,n;return e[0]==="!"?(n=e.substr(1),t[0]==="!"?r="":r="!",r+aae.join(t,n)):aae.join(t,e)}lae.exports=qut});var dae=m((uIt,fae)=>{"use strict";var Aut=o2(),Put=r1();function Tut(t){if(!t.rules)return t;let e={};for(let[r,n]of Object.entries(t.rules)){let i=Put(r,t);i?e[r]=Aut(n,i):e[r]=[]}return t.rules=e,t}fae.exports=Tut});var N1=m((lIt,pae)=>{pae.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var n="";if(r>4&&t[3]==="\\"){var i=t[2];(i==="?"||i===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),n="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),n+s.join("/")}});var lM=m((cIt,bae)=>{"use strict";var aM=Lc(),j1=sM(),hae=cae(),Mut=wg(),Lut=dae(),Fut=N1(),Vd=H("path");async function gae(t,e,r,n,i,s){let o=e;n&&(o=Uut(t,o)),s&&(o=yae(o,i,s)),o=await $ut(t,o,r,i,s);let a=t._options.cwd;return mae(o,r,a)}function Iut(t){return async e=>{if(!e)return null;let r=Vd.dirname(e.filepath||""),{config:n}=e;return{config:mae(n,r,t),filepath:e.filepath}}}async function Nut(t,e,r){if(!r)return null;let n=r.config,i=r.filepath,s=t._options.configBasedir||Vd.dirname(i||""),o=await gae(t,n,s,!0,s,e);if(o=Wut(o),o=zut(o),!o.rules)throw aM('No rules found within configuration. Have you provided a "rules" property?');return o=Lut(o),{config:o,filepath:r.filepath}}function mae(t,e,r){return t.ignoreFiles&&(t.ignoreFiles=[t.ignoreFiles].flat().map(n=>Vd.isAbsolute(n.replace(/^!/,""))?n:hae(e,n))),t.plugins&&(t.plugins=[t.plugins].flat().map(n=>typeof n=="string"?j1(e,n,r):n)),t.processors&&(t.processors=jut(t.processors,e)),t}function jut(t,e){return(Array.isArray(t)?t:[t]).map(n=>typeof n=="string"?j1(e,n):[j1(e,n[0]),n[1]])}async function $ut(t,e,r,n,i){if(e.extends===void 0)return e;let{extends:s,...o}=e,a=[s].flat(),u=o;for(let l of a){let c=await But(t,r,l);if(c){let f=c.config,d=Vd.dirname(c.filepath||"");f=await gae(t,f,d,!1,n,i),u=uM(u,f)}}return uM(u,o)}function But(t,e,r){let n=j1(e,r,t._options.cwd);return t._extendExplorer.load(n)}function uM(t,e){let r={};(t.plugins||e.plugins)&&(r.plugins=[],t.plugins&&(r.plugins=r.plugins.concat(t.plugins)),e.plugins&&(r.plugins=[...new Set(r.plugins.concat(e.plugins))]));let n={};(t.processors||e.processors)&&(n.processors=[],t.processors&&(n.processors=n.processors.concat(t.processors)),e.processors&&(n.processors=[...new Set(n.processors.concat(e.processors))]));let i={};(t.overrides||e.overrides)&&(i.overrides=[],t.overrides&&(i.overrides=i.overrides.concat(t.overrides)),e.overrides&&(i.overrides=[...new Set(i.overrides.concat(e.overrides))]));let s={};return(t.rules||e.rules)&&(s.rules={...t.rules,...e.rules}),{...t,...e,...n,...r,...i,...s}}function Wut(t){if(!t.plugins)return t;let e=[t.plugins].flat(),r={};for(let n of e){let i;typeof n=="string"?i=H(n):i=n,i=i.default||i;let s=[i].flat();for(let o of s){if(!o.ruleName)throw aM(`stylelint requires plugins to expose a ruleName. The plugin "${n}" is not doing this, so will not work with stylelint. Please file an issue with the plugin.`);if(!o.ruleName.includes("/"))throw aM(`stylelint requires plugin rules to be namespaced, i.e. only \`plugin-namespace/plugin-rule-name\` plugin rule names are supported. The plugin rule "${o.ruleName}" does not do this, so will not work. Please file an issue with the plugin.`);r[o.ruleName]=o.rule}}return t.pluginFunctions=r,t}var oM=new Map;function zut(t){if(!t.processors)return t;let e=[],r=[];for(let n of[t.processors].flat()){let i=JSON.stringify(n),s;if(oM.has(i))s=oM.get(i);else{let o=typeof n=="string"?n:n[0],a=typeof n=="string"?void 0:n[1],u=H(o);u=u.default||u,s=u(a),oM.set(i,s)}s&&s.code&&e.push(s.code),s&&s.result&&r.push(s.result)}return t.codeProcessors=e,t.resultProcessors=r,t}function yae(t,e,r){let{overrides:n,...i}=t;if(!n)return i;if(!Array.isArray(n))throw new TypeError('The `overrides` configuration property should be an array, e.g. { "overrides": [{ "files": "*.css", "rules": {} }] }.');for(let s of n){let{files:o,...a}=s;if(!o)throw new Error('Every object in the `overrides` configuration property should have a `files` property with globs, e.g. { "overrides": [{ "files": "*.css", "rules": {} }] }.');let u=[o].flat().map(l=>Vd.isAbsolute(l.replace(/^!/,""))?l:hae(e,l)).map(l=>Fut(l));Mut.isMatch(r,u,{dot:!0})&&(i=uM(i,a))}return i}function Uut(t,e){let r={...e};return t._options.ignoreDisables&&(r.ignoreDisables=t._options.ignoreDisables),t._options.quiet&&(r.quiet=t._options.quiet),t._options.reportNeedlessDisables&&(r.reportNeedlessDisables=t._options.reportNeedlessDisables),t._options.reportInvalidScopeDisables&&(r.reportInvalidScopeDisables=t._options.reportInvalidScopeDisables),t._options.reportDescriptionlessDisables&&(r.reportDescriptionlessDisables=t._options.reportDescriptionlessDisables),t._options.customSyntax&&(r.customSyntax=t._options.customSyntax),r}bae.exports={augmentConfigExtended:Iut,augmentConfigFull:Nut,applyOverrides:yae}});var wae=m((dIt,vae)=>{var fl=1e3,dl=fl*60,pl=dl*60,ba=pl*24,Hut=ba*7,Vut=ba*365.25;vae.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Gut(t);if(r==="number"&&isFinite(t))return e.long?Yut(t):Kut(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Gut(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Vut;case"weeks":case"week":case"w":return r*Hut;case"days":case"day":case"d":return r*ba;case"hours":case"hour":case"hrs":case"hr":case"h":return r*pl;case"minutes":case"minute":case"mins":case"min":case"m":return r*dl;case"seconds":case"second":case"secs":case"sec":case"s":return r*fl;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Kut(t){var e=Math.abs(t);return e>=ba?Math.round(t/ba)+"d":e>=pl?Math.round(t/pl)+"h":e>=dl?Math.round(t/dl)+"m":e>=fl?Math.round(t/fl)+"s":t+"ms"}function Yut(t){var e=Math.abs(t);return e>=ba?$1(t,e,ba,"day"):e>=pl?$1(t,e,pl,"hour"):e>=dl?$1(t,e,dl,"minute"):e>=fl?$1(t,e,fl,"second"):t+" ms"}function $1(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var cM=m((pIt,_ae)=>{function Qut(t){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=i,r.enabled=o,r.humanize=wae(),r.destroy=l,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let f=0;for(let d=0;d<c.length;d++)f=(f<<5)-f+c.charCodeAt(d),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=e;function r(c){let f,d=null,p,h;function y(...v){if(!y.enabled)return;let g=y,b=Number(new Date),w=b-(f||b);g.diff=w,g.prev=f,g.curr=b,f=b,v[0]=r.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let _=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(q,C)=>{if(q==="%%")return"%";_++;let R=r.formatters[C];if(typeof R=="function"){let O=v[_];q=R.call(g,O),v.splice(_,1),_--}return q}),r.formatArgs.call(g,v),(g.log||r.log).apply(g,v)}return y.namespace=c,y.useColors=r.useColors(),y.color=r.selectColor(c),y.extend=n,y.destroy=r.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(p!==r.namespaces&&(p=r.namespaces,h=r.enabled(c)),h),set:v=>{d=v}}),typeof r.init=="function"&&r.init(y),y}function n(c,f){let d=r(this.namespace+(typeof f>"u"?":":f)+c);return d.log=this.log,d}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let f,d=(typeof c=="string"?c:"").split(/[\s,]+/),p=d.length;for(f=0;f<p;f++)d[f]&&(c=d[f].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function s(){let c=[...r.names.map(a),...r.skips.map(a).map(f=>"-"+f)].join(",");return r.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let f,d;for(f=0,d=r.skips.length;f<d;f++)if(r.skips[f].test(c))return!1;for(f=0,d=r.names.length;f<d;f++)if(r.names[f].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function u(c){return c instanceof Error?c.stack||c.message:c}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}_ae.exports=Qut});var xae=m((_n,B1)=>{_n.formatArgs=Xut;_n.save=Zut;_n.load=elt;_n.useColors=Jut;_n.storage=tlt();_n.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();_n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Jut(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Xut(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+B1.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}_n.log=console.debug||console.log||(()=>{});function Zut(t){try{t?_n.storage.setItem("debug",t):_n.storage.removeItem("debug")}catch{}}function elt(){let t;try{t=_n.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function tlt(){try{return localStorage}catch{}}B1.exports=cM()(_n);var{formatters:rlt}=B1.exports;rlt.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var fM=m((hIt,Sae)=>{"use strict";Sae.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var hM=m((gIt,Eae)=>{"use strict";var nlt=H("os"),kae=H("tty"),Wn=fM(),{env:fr}=process,no;Wn("no-color")||Wn("no-colors")||Wn("color=false")||Wn("color=never")?no=0:(Wn("color")||Wn("colors")||Wn("color=true")||Wn("color=always"))&&(no=1);"FORCE_COLOR"in fr&&(fr.FORCE_COLOR==="true"?no=1:fr.FORCE_COLOR==="false"?no=0:no=fr.FORCE_COLOR.length===0?1:Math.min(parseInt(fr.FORCE_COLOR,10),3));function dM(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function pM(t,e){if(no===0)return 0;if(Wn("color=16m")||Wn("color=full")||Wn("color=truecolor"))return 3;if(Wn("color=256"))return 2;if(t&&!e&&no===void 0)return 0;let r=no||0;if(fr.TERM==="dumb")return r;if(process.platform==="win32"){let n=nlt.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in fr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in fr)||fr.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in fr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(fr.TEAMCITY_VERSION)?1:0;if(fr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in fr){let n=parseInt((fr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(fr.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(fr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(fr.TERM)||"COLORTERM"in fr?1:r}function ilt(t){let e=pM(t,t&&t.isTTY);return dM(e)}Eae.exports={supportsColor:ilt,stdout:dM(pM(!0,kae.isatty(1))),stderr:dM(pM(!0,kae.isatty(2)))}});var Dae=m((Dr,z1)=>{var slt=H("tty"),W1=H("util");Dr.init=dlt;Dr.log=llt;Dr.formatArgs=alt;Dr.save=clt;Dr.load=flt;Dr.useColors=olt;Dr.destroy=W1.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Dr.colors=[6,2,3,4,5,1];try{let t=hM();t&&(t.stderr||t).level>=2&&(Dr.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Dr.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function olt(){return"colors"in Dr.inspectOpts?Boolean(Dr.inspectOpts.colors):slt.isatty(process.stderr.fd)}function alt(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
|
|
313
|
+
`}):u&&typeof u=="object"?r.push(s):n+=cl(s)+i+cl(u)+ZT}),e.section&&n.length&&(n="["+cl(e.section)+"]"+ZT+n),r.forEach(function(s,o,a){var u=Coe(s).join("\\."),l=(e.section?e.section+".":"")+u,c=Eoe(t[s],{section:l,whitespace:e.whitespace});n.length&&c.length&&(n+=ZT),n+=c}),n}function Coe(t){return t.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function dut(t){var e={},r=e,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=t.split(/[\r\n]+/g);return s.forEach(function(o,a,u){if(!(!o||o.match(/^\s*[;#]/))){var l=o.match(i);if(l){if(l[1]!==void 0){if(n=F1(l[1]),n==="__proto__"){r={};return}r=e[n]=e[n]||{};return}var c=F1(l[2]);if(c!=="__proto__"){var f=l[3]?F1(l[4]):!0;switch(f){case"true":case"false":case"null":f=JSON.parse(f)}if(c.length>2&&c.slice(-2)==="[]"){if(c=c.substring(0,c.length-2),c==="__proto__")return;r[c]?Array.isArray(r[c])||(r[c]=[r[c]]):r[c]=[]}Array.isArray(r[c])?r[c].push(f):r[c]=f}}}}),Object.keys(e).filter(function(o,a,u){if(!e[o]||typeof e[o]!="object"||Array.isArray(e[o]))return!1;var l=Coe(o),c=e,f=l.pop(),d=f.replace(/\\\./g,".");return l.forEach(function(p,h,y){p!=="__proto__"&&((!c[p]||typeof c[p]!="object")&&(c[p]={}),c=c[p])}),c===e&&d===f?!1:(c[d]=e[o],!0)}).forEach(function(o,a,u){delete e[o]}),e}function Doe(t){return t.charAt(0)==='"'&&t.slice(-1)==='"'||t.charAt(0)==="'"&&t.slice(-1)==="'"}function cl(t){return typeof t!="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&Doe(t)||t!==t.trim()?JSON.stringify(t):t.replace(/;/g,"\\;").replace(/#/g,"\\#")}function F1(t,e){if(t=(t||"").trim(),Doe(t)){t.charAt(0)==="'"&&(t=t.substr(1,t.length-2));try{t=JSON.parse(t)}catch{}}else{for(var r=!1,n="",i=0,s=t.length;i<s;i++){var o=t.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return t}});var Toe=m((XFt,Poe)=>{Poe.exports=Aoe;Aoe.sync=hut;var qoe=H("fs");function put(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function Roe(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:put(e,r)}function Aoe(t,e,r){qoe.stat(t,function(n,i){r(n,n?!1:Roe(i,t,e))})}function hut(t,e){return Roe(qoe.statSync(t),t,e)}});var Noe=m((ZFt,Ioe)=>{Ioe.exports=Loe;Loe.sync=gut;var Moe=H("fs");function Loe(t,e,r){Moe.stat(t,function(n,i){r(n,n?!1:Foe(i,e))})}function gut(t,e){return Foe(Moe.statSync(t),e)}function Foe(t,e){return t.isFile()&&mut(t,e)}function mut(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),o=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),l=parseInt("001",8),c=a|u,f=r&l||r&u&&i===o||r&a&&n===s||r&c&&s===0;return f}});var $oe=m((tIt,joe)=>{var eIt=H("fs"),I1;process.platform==="win32"||global.TESTING_WINDOWS?I1=Toe():I1=Noe();joe.exports=eM;eM.sync=yut;function eM(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){eM(t,e||{},function(s,o){s?i(s):n(o)})})}I1(t,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),r(n,i)})}function yut(t,e){try{return I1.sync(t,e||{})}catch(r){if(e&&e.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Goe=m((rIt,Voe)=>{Voe.exports=Hoe;Hoe.sync=vut;var tM=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Boe=H("path"),but=tM?";":":",Woe=$oe();function zoe(t){var e=new Error("not found: "+t);return e.code="ENOENT",e}function Uoe(t,e){var r=e.colon||but,n=e.path||process.env.PATH||"",i=[""];n=n.split(r);var s="";return tM&&(n.unshift(process.cwd()),s=e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM",i=s.split(r),t.indexOf(".")!==-1&&i[0]!==""&&i.unshift("")),(t.match(/\//)||tM&&t.match(/\\/))&&(n=[""]),{env:n,ext:i,extExe:s}}function Hoe(t,e,r){typeof e=="function"&&(r=e,e={});var n=Uoe(t,e),i=n.env,s=n.ext,o=n.extExe,a=[];(function u(l,c){if(l===c)return e.all&&a.length?r(null,a):r(zoe(t));var f=i[l];f.charAt(0)==='"'&&f.slice(-1)==='"'&&(f=f.slice(1,-1));var d=Boe.join(f,t);!f&&/^\.[\\\/]/.test(t)&&(d=t.slice(0,2)+d),function p(h,y){if(h===y)return u(l+1,c);var v=s[h];Woe(d+v,{pathExt:o},function(g,b){if(!g&&b)if(e.all)a.push(d+v);else return r(null,d+v);return p(h+1,y)})}(0,s.length)})(0,i.length)}function vut(t,e){e=e||{};for(var r=Uoe(t,e),n=r.env,i=r.ext,s=r.extExe,o=[],a=0,u=n.length;a<u;a++){var l=n[a];l.charAt(0)==='"'&&l.slice(-1)==='"'&&(l=l.slice(1,-1));var c=Boe.join(l,t);!l&&/^\.[\\\/]/.test(t)&&(c=t.slice(0,2)+c);for(var f=0,d=i.length;f<d;f++){var p=c+i[f],h;try{if(h=Woe.sync(p,{pathExt:s}),h)if(e.all)o.push(p);else return p}catch{}}}if(e.all&&o.length)return o;if(e.nothrow)return null;throw zoe(t)}});var Qoe=m((nIt,Yoe)=>{"use strict";var Koe=H("fs"),wut=H("os"),ro=H("path"),_ut=Ooe(),Cr,xut=()=>{if(process.env.PREFIX)return process.env.PREFIX;if(Cr)return Cr;let t=wut.homedir();if(t&&(Cr=rM(ro.resolve(t,".npmrc"))),Cr)return Cr;let e=Sut();if(e&&(Cr=rM(ro.resolve(e,"..","..","npmrc")),Cr&&(Cr=rM(ro.resolve(Cr,"etc","npmrc"))||Cr)),!Cr){let{APPDATA:r,DESTDIR:n,OSTYPE:i}=process.env;if(process.platform==="win32"||i==="msys"||i==="cygwin")return Cr=r?ro.join(r,"npm"):ro.dirname(process.execPath),Cr;Cr=ro.dirname(ro.dirname(process.execPath)),n&&(Cr=ro.join(n,Cr))}return Cr};function Sut(){try{return Koe.realpathSync(Goe().sync("npm"))}catch{}}function rM(t){try{return _ut.parse(Koe.readFileSync(t,"utf-8")).prefix}catch{}}Reflect.defineProperty(Yoe,"exports",{get(){return xut()}})});var tae=m((iIt,eae)=>{"use strict";var Joe=H("path"),Xoe=Qoe(),Zoe;function kut(){return process.platform==="win32"||process.env.OSTYPE==="msys"||process.env.OSTYPE==="cygwin"?Joe.resolve(Xoe,"node_modules"):Joe.resolve(Xoe,"lib/node_modules")}Reflect.defineProperty(eae,"exports",{get(){return Zoe||(Zoe=kut())}})});var sae=m((sIt,nM)=>{"use strict";var rae=H("path"),nae=H("module"),Eut=H("fs"),iae=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof t}\``);if(typeof e!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof e}\``);try{t=Eut.realpathSync(t)}catch(s){if(s.code==="ENOENT")t=rae.resolve(t);else{if(r)return;throw s}}let n=rae.join(t,"noop.js"),i=()=>nae._resolveFilename(e,{id:n,filename:n,paths:nae._nodeModulePaths(t)});if(r)try{return i()}catch{return}return i()};nM.exports=(t,e)=>iae(t,e);nM.exports.silent=(t,e)=>iae(t,e,!0)});var sM=m((oIt,oae)=>{"use strict";var Cut=Lc(),Dut=tae(),iM=sae();oae.exports=function(e,r,n=process.cwd()){let i=iM.silent(e,r);if(i||(i=iM.silent(n,r)),i||(i=iM.silent(Dut,r)),!i)throw Cut(`Could not find "${r}". Do you need the "configBasedir" or "--config-basedir" option?`);return i}});var cae=m((aIt,lae)=>{"use strict";var aae=H("path"),Out=Array.prototype.slice;function qut(){var t;return t=Out.call(arguments,0),t.reduce(function(e,r){return uae(e,function(n){return uae(r,function(i){return Rut(n,i)})})},"")}function uae(t,e){return Array.isArray(t)?t.reduce(function(r,n){return r.concat(e(n))},[]):e(t)}function Rut(t,e){var r,n;return e[0]==="!"?(n=e.substr(1),t[0]==="!"?r="":r="!",r+aae.join(t,n)):aae.join(t,e)}lae.exports=qut});var dae=m((uIt,fae)=>{"use strict";var Aut=o2(),Put=r1();function Tut(t){if(!t.rules)return t;let e={};for(let[r,n]of Object.entries(t.rules)){let i=Put(r,t);i?e[r]=Aut(n,i):e[r]=[]}return t.rules=e,t}fae.exports=Tut});var N1=m((lIt,pae)=>{pae.exports=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var r=t.length;if(r<=1)return t;var n="";if(r>4&&t[3]==="\\"){var i=t[2];(i==="?"||i===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),n="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),n+s.join("/")}});var lM=m((cIt,bae)=>{"use strict";var aM=Lc(),j1=sM(),hae=cae(),Mut=wg(),Lut=dae(),Fut=N1(),Vd=H("path");async function gae(t,e,r,n,i,s){let o=e;n&&(o=Uut(t,o)),s&&(o=yae(o,i,s)),o=await $ut(t,o,r,i,s);let a=t._options.cwd;return mae(o,r,a)}function Iut(t){return async e=>{if(!e)return null;let r=Vd.dirname(e.filepath||""),{config:n}=e;return{config:mae(n,r,t),filepath:e.filepath}}}async function Nut(t,e,r){if(!r)return null;let n=r.config,i=r.filepath,s=t._options.configBasedir||Vd.dirname(i||""),o=await gae(t,n,s,!0,s,e);if(o=Wut(o),o=zut(o),!o.rules)throw aM('No rules found within configuration. Have you provided a "rules" property?');return o=Lut(o),{config:o,filepath:r.filepath}}function mae(t,e,r){return t.ignoreFiles&&(t.ignoreFiles=[t.ignoreFiles].flat().map(n=>Vd.isAbsolute(n.replace(/^!/,""))?n:hae(e,n))),t.plugins&&(t.plugins=[t.plugins].flat().map(n=>typeof n=="string"?j1(e,n,r):n)),t.processors&&(t.processors=jut(t.processors,e)),t}function jut(t,e){return(Array.isArray(t)?t:[t]).map(n=>typeof n=="string"?j1(e,n):[j1(e,n[0]),n[1]])}async function $ut(t,e,r,n,i){if(e.extends===void 0)return e;let{extends:s,...o}=e,a=[s].flat(),u=o;for(let l of a){let c=await But(t,r,l);if(c){let f=c.config,d=Vd.dirname(c.filepath||"");f=await gae(t,f,d,!1,n,i),u=uM(u,f)}}return uM(u,o)}function But(t,e,r){let n=j1(e,r,t._options.cwd);return t._extendExplorer.load(n)}function uM(t,e){let r={};(t.plugins||e.plugins)&&(r.plugins=[],t.plugins&&(r.plugins=r.plugins.concat(t.plugins)),e.plugins&&(r.plugins=[...new Set(r.plugins.concat(e.plugins))]));let n={};(t.processors||e.processors)&&(n.processors=[],t.processors&&(n.processors=n.processors.concat(t.processors)),e.processors&&(n.processors=[...new Set(n.processors.concat(e.processors))]));let i={};(t.overrides||e.overrides)&&(i.overrides=[],t.overrides&&(i.overrides=i.overrides.concat(t.overrides)),e.overrides&&(i.overrides=[...new Set(i.overrides.concat(e.overrides))]));let s={};return(t.rules||e.rules)&&(s.rules={...t.rules,...e.rules}),{...t,...e,...n,...r,...i,...s}}function Wut(t){if(!t.plugins)return t;let e=[t.plugins].flat(),r={};for(let n of e){let i;typeof n=="string"?i=H(n):i=n,i=i.default||i;let s=[i].flat();for(let o of s){if(!o.ruleName)throw aM(`stylelint requires plugins to expose a ruleName. The plugin "${n}" is not doing this, so will not work with stylelint. Please file an issue with the plugin.`);if(!o.ruleName.includes("/"))throw aM(`stylelint requires plugin rules to be namespaced, i.e. only \`plugin-namespace/plugin-rule-name\` plugin rule names are supported. The plugin rule "${o.ruleName}" does not do this, so will not work. Please file an issue with the plugin.`);r[o.ruleName]=o.rule}}return t.pluginFunctions=r,t}var oM=new Map;function zut(t){if(!t.processors)return t;let e=[],r=[];for(let n of[t.processors].flat()){let i=JSON.stringify(n),s;if(oM.has(i))s=oM.get(i);else{let o=typeof n=="string"?n:n[0],a=typeof n=="string"?void 0:n[1],u=H(o);u=u.default||u,s=u(a),oM.set(i,s)}s&&s.code&&e.push(s.code),s&&s.result&&r.push(s.result)}return t.codeProcessors=e,t.resultProcessors=r,t}function yae(t,e,r){let{overrides:n,...i}=t;if(!n)return i;if(!Array.isArray(n))throw new TypeError('The `overrides` configuration property should be an array, e.g. { "overrides": [{ "files": "*.css", "rules": {} }] }.');for(let s of n){let{files:o,...a}=s;if(!o)throw new Error('Every object in the `overrides` configuration property should have a `files` property with globs, e.g. { "overrides": [{ "files": "*.css", "rules": {} }] }.');let u=[o].flat().map(l=>Vd.isAbsolute(l.replace(/^!/,""))?l:hae(e,l)).map(l=>Fut(l));Mut.isMatch(r,u,{dot:!0})&&(i=uM(i,a))}return i}function Uut(t,e){let r={...e};return t._options.ignoreDisables&&(r.ignoreDisables=t._options.ignoreDisables),t._options.quiet&&(r.quiet=t._options.quiet),t._options.reportNeedlessDisables&&(r.reportNeedlessDisables=t._options.reportNeedlessDisables),t._options.reportInvalidScopeDisables&&(r.reportInvalidScopeDisables=t._options.reportInvalidScopeDisables),t._options.reportDescriptionlessDisables&&(r.reportDescriptionlessDisables=t._options.reportDescriptionlessDisables),t._options.customSyntax&&(r.customSyntax=t._options.customSyntax),r}bae.exports={augmentConfigExtended:Iut,augmentConfigFull:Nut,applyOverrides:yae}});var wae=m((dIt,vae)=>{var fl=1e3,dl=fl*60,pl=dl*60,ba=pl*24,Hut=ba*7,Vut=ba*365.25;vae.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return Gut(t);if(r==="number"&&isFinite(t))return e.long?Yut(t):Kut(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Gut(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*Vut;case"weeks":case"week":case"w":return r*Hut;case"days":case"day":case"d":return r*ba;case"hours":case"hour":case"hrs":case"hr":case"h":return r*pl;case"minutes":case"minute":case"mins":case"min":case"m":return r*dl;case"seconds":case"second":case"secs":case"sec":case"s":return r*fl;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Kut(t){var e=Math.abs(t);return e>=ba?Math.round(t/ba)+"d":e>=pl?Math.round(t/pl)+"h":e>=dl?Math.round(t/dl)+"m":e>=fl?Math.round(t/fl)+"s":t+"ms"}function Yut(t){var e=Math.abs(t);return e>=ba?$1(t,e,ba,"day"):e>=pl?$1(t,e,pl,"hour"):e>=dl?$1(t,e,dl,"minute"):e>=fl?$1(t,e,fl,"second"):t+" ms"}function $1(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var cM=m((pIt,_ae)=>{function Qut(t){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=i,r.enabled=o,r.humanize=wae(),r.destroy=l,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let f=0;for(let d=0;d<c.length;d++)f=(f<<5)-f+c.charCodeAt(d),f|=0;return r.colors[Math.abs(f)%r.colors.length]}r.selectColor=e;function r(c){let f,d=null,p,h;function y(...v){if(!y.enabled)return;let g=y,b=Number(new Date),w=b-(f||b);g.diff=w,g.prev=f,g.curr=b,f=b,v[0]=r.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let _=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(q,C)=>{if(q==="%%")return"%";_++;let R=r.formatters[C];if(typeof R=="function"){let O=v[_];q=R.call(g,O),v.splice(_,1),_--}return q}),r.formatArgs.call(g,v),(g.log||r.log).apply(g,v)}return y.namespace=c,y.useColors=r.useColors(),y.color=r.selectColor(c),y.extend=n,y.destroy=r.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(p!==r.namespaces&&(p=r.namespaces,h=r.enabled(c)),h),set:v=>{d=v}}),typeof r.init=="function"&&r.init(y),y}function n(c,f){let d=r(this.namespace+(typeof f>"u"?":":f)+c);return d.log=this.log,d}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let f,d=(typeof c=="string"?c:"").split(/[\s,]+/),p=d.length;for(f=0;f<p;f++)d[f]&&(c=d[f].replace(/\*/g,".*?"),c[0]==="-"?r.skips.push(new RegExp("^"+c.slice(1)+"$")):r.names.push(new RegExp("^"+c+"$")))}function s(){let c=[...r.names.map(a),...r.skips.map(a).map(f=>"-"+f)].join(",");return r.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let f,d;for(f=0,d=r.skips.length;f<d;f++)if(r.skips[f].test(c))return!1;for(f=0,d=r.names.length;f<d;f++)if(r.names[f].test(c))return!0;return!1}function a(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}function u(c){return c instanceof Error?c.stack||c.message:c}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}_ae.exports=Qut});var xae=m((_n,B1)=>{_n.formatArgs=Xut;_n.save=Zut;_n.load=elt;_n.useColors=Jut;_n.storage=tlt();_n.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();_n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Jut(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Xut(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+B1.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}_n.log=console.debug||console.log||(()=>{});function Zut(t){try{t?_n.storage.setItem("debug",t):_n.storage.removeItem("debug")}catch{}}function elt(){let t;try{t=_n.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function tlt(){try{return localStorage}catch{}}B1.exports=cM()(_n);var{formatters:rlt}=B1.exports;rlt.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var fM=m((hIt,Sae)=>{"use strict";Sae.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var hM=m((gIt,Eae)=>{"use strict";var nlt=H("os"),kae=H("tty"),Wn=fM(),{env:dr}=process,no;Wn("no-color")||Wn("no-colors")||Wn("color=false")||Wn("color=never")?no=0:(Wn("color")||Wn("colors")||Wn("color=true")||Wn("color=always"))&&(no=1);"FORCE_COLOR"in dr&&(dr.FORCE_COLOR==="true"?no=1:dr.FORCE_COLOR==="false"?no=0:no=dr.FORCE_COLOR.length===0?1:Math.min(parseInt(dr.FORCE_COLOR,10),3));function dM(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function pM(t,e){if(no===0)return 0;if(Wn("color=16m")||Wn("color=full")||Wn("color=truecolor"))return 3;if(Wn("color=256"))return 2;if(t&&!e&&no===void 0)return 0;let r=no||0;if(dr.TERM==="dumb")return r;if(process.platform==="win32"){let n=nlt.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in dr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in dr)||dr.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in dr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(dr.TEAMCITY_VERSION)?1:0;if(dr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in dr){let n=parseInt((dr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(dr.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(dr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(dr.TERM)||"COLORTERM"in dr?1:r}function ilt(t){let e=pM(t,t&&t.isTTY);return dM(e)}Eae.exports={supportsColor:ilt,stdout:dM(pM(!0,kae.isatty(1))),stderr:dM(pM(!0,kae.isatty(2)))}});var Dae=m((Dr,z1)=>{var slt=H("tty"),W1=H("util");Dr.init=dlt;Dr.log=llt;Dr.formatArgs=alt;Dr.save=clt;Dr.load=flt;Dr.useColors=olt;Dr.destroy=W1.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Dr.colors=[6,2,3,4,5,1];try{let t=hM();t&&(t.stderr||t).level>=2&&(Dr.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Dr.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,s)=>s.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function olt(){return"colors"in Dr.inspectOpts?Boolean(Dr.inspectOpts.colors):slt.isatty(process.stderr.fd)}function alt(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${i};1m${e} \x1B[0m`;t[0]=s+t[0].split(`
|
|
314
314
|
`).join(`
|
|
315
315
|
`+s),t.push(i+"m+"+z1.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=ult()+e+" "+t[0]}function ult(){return Dr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function llt(...t){return process.stderr.write(W1.format(...t)+`
|
|
316
316
|
`)}function clt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function flt(){return process.env.DEBUG}function dlt(t){t.inspectOpts={};let e=Object.keys(Dr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Dr.inspectOpts[e[r]]}z1.exports=cM()(Dr);var{formatters:Cae}=z1.exports;Cae.o=function(t){return this.inspectOpts.colors=this.useColors,W1.inspect(t,this.inspectOpts).split(`
|
|
@@ -321,14 +321,14 @@ globstar while`,t,c,e,f,d),this.matchOne(t.slice(c),e.slice(f),r))return this.de
|
|
|
321
321
|
See: https://github.com/isaacs/node-glob/issues/167`);return new sr(t,e).found}function sr(t,e){if(!t)throw new Error("must provide pattern");if(typeof e=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
|
|
322
322
|
See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof sr))return new sr(t,e);if(tct(this,t,e),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}sr.prototype._finish=function(){if(gue(this instanceof sr),this.realpath){var t=this;this.matches.forEach(function(e,r){var n=t.matches[r]=Object.create(null);for(var i in e)try{i=t._makeAbs(i);var s=ect.realpathSync(i,t.realpathCache);n[s]=!0}catch(o){if(o.syscall==="stat")n[t._makeAbs(i)]=!0;else throw o}})}wa.finish(this)};sr.prototype._process=function(t,e,r){gue(this instanceof sr);for(var n=0;typeof t[n]=="string";)n++;var i;switch(n){case t.length:this._processSimple(t.join("/"),e);return;case 0:i=null;break;default:i=t.slice(0,n).join("/");break}var s=t.slice(n),o;i===null?o=".":((Q1(i)||Q1(t.join("/")))&&(!i||!Q1(i))&&(i="/"+i),o=i);var a=this._makeAbs(o);if(!rct(this,o)){var u=s[0]===hue.GLOBSTAR;u?this._processGlobStar(i,o,a,s,e,r):this._processReaddir(i,o,a,s,e,r)}};sr.prototype._processReaddir=function(t,e,r,n,i,s){var o=this._readdir(r,s);if(o){for(var a=n[0],u=!!this.minimatch.negate,l=a._glob,c=this.dot||l.charAt(0)===".",f=[],d=0;d<o.length;d++){var p=o[d];if(p.charAt(0)!=="."||c){var h;u&&!t?h=!p.match(a):h=p.match(a),h&&f.push(p)}}var y=f.length;if(y!==0){if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var d=0;d<y;d++){var p=f[d];t&&(t.slice(-1)!=="/"?p=t+"/"+p:p=t+p),p.charAt(0)==="/"&&!this.nomount&&(p=TM.join(this.root,p)),this._emitMatch(i,p)}return}n.shift();for(var d=0;d<y;d++){var p=f[d],v;t?v=[t,p]:v=[p],this._process(v.concat(n),i,s)}}}};sr.prototype._emitMatch=function(t,e){if(!nct(this,e)){var r=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[t][e]=!0,this.stat&&this._stat(e)}}};sr.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,!1);var e,r,n;try{r=J1.lstatSync(t)}catch(s){if(s.code==="ENOENT")return null}var i=r&&r.isSymbolicLink();return this.symlinks[t]=i,!i&&r&&!r.isDirectory()?this.cache[t]="FILE":e=this._readdir(t,!1),e};sr.prototype._readdir=function(t,e){var r;if(e&&!MM(this.symlinks,t))return this._readdirInGlobStar(t);if(MM(this.cache,t)){var n=this.cache[t];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(t,J1.readdirSync(t))}catch(i){return this._readdirError(t,i),null}};sr.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat)for(var r=0;r<e.length;r++){var n=e[r];t==="/"?n=t+n:n=t+"/"+n,this.cache[n]=!0}return this.cache[t]=e,e};sr.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(e.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=e.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:if(this.cache[this._makeAbs(t)]=!1,this.strict)throw e;this.silent||console.error("glob error",e);break}};sr.prototype._processGlobStar=function(t,e,r,n,i,s){var o=this._readdir(r,s);if(o){var a=n.slice(1),u=t?[t]:[],l=u.concat(a);this._process(l,i,!1);var c=o.length,f=this.symlinks[r];if(!(f&&s))for(var d=0;d<c;d++){var p=o[d];if(!(p.charAt(0)==="."&&!this.dot)){var h=u.concat(o[d],a);this._process(h,i,!0);var y=u.concat(o[d],n);this._process(y,i,!0)}}}};sr.prototype._processSimple=function(t,e){var r=this._stat(t);if(this.matches[e]||(this.matches[e]=Object.create(null)),!!r){if(t&&Q1(t)&&!this.nomount){var n=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=TM.join(this.root,t):(t=TM.resolve(this.root,t),n&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t)}};sr.prototype._stat=function(t){var e=this._makeAbs(t),r=t.slice(-1)==="/";if(t.length>this.maxLength)return!1;if(!this.stat&&MM(this.cache,e)){var o=this.cache[e];if(Array.isArray(o)&&(o="DIR"),!r||o==="DIR")return o;if(r&&o==="FILE")return!1}var n,i=this.statCache[e];if(!i){var s;try{s=J1.lstatSync(e)}catch(a){if(a&&(a.code==="ENOENT"||a.code==="ENOTDIR"))return this.statCache[e]=!1,!1}if(s&&s.isSymbolicLink())try{i=J1.statSync(e)}catch{i=s}else i=s}this.statCache[e]=i;var o=!0;return i&&(o=i.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||o,r&&o==="FILE"?!1:o};sr.prototype._mark=function(t){return wa.mark(this,t)};sr.prototype._makeAbs=function(t){return wa.makeAbs(this,t)}});var FM=m((TIt,wue)=>{wue.exports=vue;function vue(t,e){if(t&&e)return vue(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=t.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var NM=m((MIt,IM)=>{var _ue=FM();IM.exports=_ue(X1);IM.exports.strict=_ue(xue);X1.proto=X1(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return X1(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return xue(this)},configurable:!0})});function X1(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function xue(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}});var kue=m((LIt,Sue)=>{var ict=FM(),Xd=Object.create(null),sct=NM();Sue.exports=ict(oct);function oct(t,e){return Xd[t]?(Xd[t].push(e),null):(Xd[t]=[e],act(t))}function act(t){return sct(function e(){var r=Xd[t],n=r.length,i=uct(arguments);try{for(var s=0;s<n;s++)r[s].apply(null,i)}finally{r.length>n?(r.splice(0,n),process.nextTick(function(){e.apply(null,i)})):delete Xd[t]}})}function uct(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n]=t[n];return r}});var LM=m((NIt,Cue)=>{Cue.exports=_a;var Z1=H("fs"),lct=xM(),Eue=G1(),FIt=Eue.Minimatch,cct=uue(),fct=H("events").EventEmitter,jM=H("path"),$M=H("assert"),Zd=Y1(),WM=bue(),xa=PM(),dct=xa.setopts,BM=xa.ownProp,zM=kue(),IIt=H("util"),pct=xa.childrenIgnored,hct=xa.isIgnored,gct=NM();function _a(t,e,r){if(typeof e=="function"&&(r=e,e={}),e||(e={}),e.sync){if(r)throw new TypeError("callback provided to sync glob");return WM(t,e)}return new ut(t,e,r)}_a.sync=WM;var mct=_a.GlobSync=WM.GlobSync;_a.glob=_a;function yct(t,e){if(e===null||typeof e!="object")return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}_a.hasMagic=function(t,e){var r=yct({},e);r.noprocess=!0;var n=new ut(t,r),i=n.minimatch.set;if(!t)return!1;if(i.length>1)return!0;for(var s=0;s<i[0].length;s++)if(typeof i[0][s]!="string")return!0;return!1};_a.Glob=ut;cct(ut,fct);function ut(t,e,r){if(typeof e=="function"&&(r=e,e=null),e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new mct(t,e)}if(!(this instanceof ut))return new ut(t,e,r);dct(this,t,e),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),typeof r=="function"&&(r=gct(r),this.on("error",r),this.on("end",function(u){r(null,u)}));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(n===0)return a();for(var s=!0,o=0;o<n;o++)this._process(this.minimatch.set[o],o,!1,a);s=!1;function a(){--i._processing,i._processing<=0&&(s?process.nextTick(function(){i._finish()}):i._finish())}}ut.prototype._finish=function(){if($M(this instanceof ut),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();xa.finish(this),this.emit("end",this.found)}};ut.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var t=this.matches.length;if(t===0)return this._finish();for(var e=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n);function n(){--t===0&&e._finish()}};ut.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var n=Object.keys(r),i=this,s=n.length;if(s===0)return e();var o=this.matches[t]=Object.create(null);n.forEach(function(a,u){a=i._makeAbs(a),lct.realpath(a,i.realpathCache,function(l,c){l?l.syscall==="stat"?o[a]=!0:i.emit("error",l):o[c]=!0,--s===0&&(i.matches[t]=o,e())})})};ut.prototype._mark=function(t){return xa.mark(this,t)};ut.prototype._makeAbs=function(t){return xa.makeAbs(this,t)};ut.prototype.abort=function(){this.aborted=!0,this.emit("abort")};ut.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};ut.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<n.length;e++){var i=n[e];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}};ut.prototype._process=function(t,e,r,n){if($M(this instanceof ut),$M(typeof n=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([t,e,r,n]);return}for(var i=0;typeof t[i]=="string";)i++;var s;switch(i){case t.length:this._processSimple(t.join("/"),e,n);return;case 0:s=null;break;default:s=t.slice(0,i).join("/");break}var o=t.slice(i),a;s===null?a=".":((Zd(s)||Zd(t.join("/")))&&(!s||!Zd(s))&&(s="/"+s),a=s);var u=this._makeAbs(a);if(pct(this,a))return n();var l=o[0]===Eue.GLOBSTAR;l?this._processGlobStar(s,a,u,o,e,r,n):this._processReaddir(s,a,u,o,e,r,n)}};ut.prototype._processReaddir=function(t,e,r,n,i,s,o){var a=this;this._readdir(r,s,function(u,l){return a._processReaddir2(t,e,r,n,i,s,l,o)})};ut.prototype._processReaddir2=function(t,e,r,n,i,s,o,a){if(!o)return a();for(var u=n[0],l=!!this.minimatch.negate,c=u._glob,f=this.dot||c.charAt(0)===".",d=[],p=0;p<o.length;p++){var h=o[p];if(h.charAt(0)!=="."||f){var y;l&&!t?y=!h.match(u):y=h.match(u),y&&d.push(h)}}var v=d.length;if(v===0)return a();if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var p=0;p<v;p++){var h=d[p];t&&(t!=="/"?h=t+"/"+h:h=t+h),h.charAt(0)==="/"&&!this.nomount&&(h=jM.join(this.root,h)),this._emitMatch(i,h)}return a()}n.shift();for(var p=0;p<v;p++){var h=d[p],g;t&&(t!=="/"?h=t+"/"+h:h=t+h),this._process([h].concat(n),i,s,a)}a()};ut.prototype._emitMatch=function(t,e){if(!this.aborted&&!hct(this,e)){if(this.paused){this._emitQueue.push([t,e]);return}var r=Zd(e)?e:this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[t][e]=!0;var i=this.statCache[r];i&&this.emit("stat",e,i),this.emit("match",e)}}};ut.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,!1,e);var r="lstat\0"+t,n=this,i=zM(r,s);i&&Z1.lstat(t,i);function s(o,a){if(o&&o.code==="ENOENT")return e();var u=a&&a.isSymbolicLink();n.symlinks[t]=u,!u&&a&&!a.isDirectory()?(n.cache[t]="FILE",e()):n._readdir(t,!1,e)}};ut.prototype._readdir=function(t,e,r){if(!this.aborted&&(r=zM("readdir\0"+t+"\0"+e,r),!!r)){if(e&&!BM(this.symlinks,t))return this._readdirInGlobStar(t,r);if(BM(this.cache,t)){var n=this.cache[t];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var i=this;Z1.readdir(t,bct(this,t,r))}};function bct(t,e,r){return function(n,i){n?t._readdirError(e,n,r):t._readdirEntries(e,i,r)}}ut.prototype._readdirEntries=function(t,e,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<e.length;n++){var i=e[n];t==="/"?i=t+i:i=t+"/"+i,this.cache[i]=!0}return this.cache[t]=e,r(null,e)}};ut.prototype._readdirError=function(t,e,r){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(t);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=e.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:this.cache[this._makeAbs(t)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e);break}return r()}};ut.prototype._processGlobStar=function(t,e,r,n,i,s,o){var a=this;this._readdir(r,s,function(u,l){a._processGlobStar2(t,e,r,n,i,s,l,o)})};ut.prototype._processGlobStar2=function(t,e,r,n,i,s,o,a){if(!o)return a();var u=n.slice(1),l=t?[t]:[],c=l.concat(u);this._process(c,i,!1,a);var f=this.symlinks[r],d=o.length;if(f&&s)return a();for(var p=0;p<d;p++){var h=o[p];if(!(h.charAt(0)==="."&&!this.dot)){var y=l.concat(o[p],u);this._process(y,i,!0,a);var v=l.concat(o[p],n);this._process(v,i,!0,a)}}a()};ut.prototype._processSimple=function(t,e,r){var n=this;this._stat(t,function(i,s){n._processSimple2(t,e,i,s,r)})};ut.prototype._processSimple2=function(t,e,r,n,i){if(this.matches[e]||(this.matches[e]=Object.create(null)),!n)return i();if(t&&Zd(t)&&!this.nomount){var s=/[\/\\]$/.test(t);t.charAt(0)==="/"?t=jM.join(this.root,t):(t=jM.resolve(this.root,t),s&&(t+="/"))}process.platform==="win32"&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t),i()};ut.prototype._stat=function(t,e){var r=this._makeAbs(t),n=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&BM(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||i==="DIR")return e(null,i);if(n&&i==="FILE")return e()}var s,o=this.statCache[r];if(o!==void 0){if(o===!1)return e(null,o);var a=o.isDirectory()?"DIR":"FILE";return n&&a==="FILE"?e():e(null,a,o)}var u=this,l=zM("stat\0"+r,c);l&&Z1.lstat(r,l);function c(f,d){if(d&&d.isSymbolicLink())return Z1.stat(r,function(p,h){p?u._stat2(t,r,null,d,e):u._stat2(t,r,p,h,e)});u._stat2(t,r,f,d,e)}};ut.prototype._stat2=function(t,e,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return this.statCache[e]=!1,i();var s=t.slice(-1)==="/";if(this.statCache[e]=n,e.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,!1,n);var o=!0;return n&&(o=n.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||o,s&&o==="FILE"?i():i(null,o,n)}});var Mue=m((jIt,Tue)=>{var mt=H("assert"),Rue=H("path"),Due=H("fs"),yl;try{yl=LM()}catch{}var vct={nosort:!0,silent:!0},UM=0,ep=process.platform==="win32",Aue=t=>{if(["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{t[r]=t[r]||Due[r],r=r+"Sync",t[r]=t[r]||Due[r]}),t.maxBusyTries=t.maxBusyTries||3,t.emfileWait=t.emfileWait||1e3,t.glob===!1&&(t.disableGlob=!0),t.disableGlob!==!0&&yl===void 0)throw Error("glob dependency not found, set `options.disableGlob = true` if intentional");t.disableGlob=t.disableGlob||!1,t.glob=t.glob||vct},VM=(t,e,r)=>{typeof e=="function"&&(r=e,e={}),mt(t,"rimraf: missing path"),mt.equal(typeof t,"string","rimraf: path should be a string"),mt.equal(typeof r,"function","rimraf: callback function required"),mt(e,"rimraf: invalid options argument provided"),mt.equal(typeof e,"object","rimraf: options should be object"),Aue(e);let n=0,i=null,s=0,o=u=>{i=i||u,--s===0&&r(i)},a=(u,l)=>{if(u)return r(u);if(s=l.length,s===0)return r();l.forEach(c=>{let f=d=>{if(d){if((d.code==="EBUSY"||d.code==="ENOTEMPTY"||d.code==="EPERM")&&n<e.maxBusyTries)return n++,setTimeout(()=>HM(c,e,f),n*100);if(d.code==="EMFILE"&&UM<e.emfileWait)return setTimeout(()=>HM(c,e,f),UM++);d.code==="ENOENT"&&(d=null)}UM=0,o(d)};HM(c,e,f)})};if(e.disableGlob||!yl.hasMagic(t))return a(null,[t]);e.lstat(t,(u,l)=>{if(!u)return a(null,[t]);yl(t,e.glob,a)})},HM=(t,e,r)=>{mt(t),mt(e),mt(typeof r=="function"),e.lstat(t,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&ep&&Oue(t,e,n,r),i&&i.isDirectory())return eS(t,e,n,r);e.unlink(t,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return ep?Oue(t,e,s,r):eS(t,e,s,r);if(s.code==="EISDIR")return eS(t,e,s,r)}return r(s)})})},Oue=(t,e,r,n)=>{mt(t),mt(e),mt(typeof n=="function"),e.chmod(t,438,i=>{i?n(i.code==="ENOENT"?null:r):e.stat(t,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?eS(t,e,r,n):e.unlink(t,n)})})},que=(t,e,r)=>{mt(t),mt(e);try{e.chmodSync(t,438)}catch(i){if(i.code==="ENOENT")return;throw r}let n;try{n=e.statSync(t)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?tS(t,e,r):e.unlinkSync(t)},eS=(t,e,r,n)=>{mt(t),mt(e),mt(typeof n=="function"),e.rmdir(t,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?wct(t,e,n):i&&i.code==="ENOTDIR"?n(r):n(i)})},wct=(t,e,r)=>{mt(t),mt(e),mt(typeof r=="function"),e.readdir(t,(n,i)=>{if(n)return r(n);let s=i.length;if(s===0)return e.rmdir(t,r);let o;i.forEach(a=>{VM(Rue.join(t,a),e,u=>{if(!o){if(u)return r(o=u);--s===0&&e.rmdir(t,r)}})})})},Pue=(t,e)=>{e=e||{},Aue(e),mt(t,"rimraf: missing path"),mt.equal(typeof t,"string","rimraf: path should be a string"),mt(e,"rimraf: missing options"),mt.equal(typeof e,"object","rimraf: options should be object");let r;if(e.disableGlob||!yl.hasMagic(t))r=[t];else try{e.lstatSync(t),r=[t]}catch{r=yl.sync(t,e.glob)}if(r.length)for(let n=0;n<r.length;n++){let i=r[n],s;try{s=e.lstatSync(i)}catch(o){if(o.code==="ENOENT")return;o.code==="EPERM"&&ep&&que(i,e,o)}try{s&&s.isDirectory()?tS(i,e,null):e.unlinkSync(i)}catch(o){if(o.code==="ENOENT")return;if(o.code==="EPERM")return ep?que(i,e,o):tS(i,e,o);if(o.code!=="EISDIR")throw o;tS(i,e,o)}}},tS=(t,e,r)=>{mt(t),mt(e);try{e.rmdirSync(t)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw r;(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")&&_ct(t,e)}},_ct=(t,e)=>{mt(t),mt(e),e.readdirSync(t).forEach(i=>Pue(Rue.join(t,i),e));let r=ep?100:1,n=0;do{let i=!0;try{let s=e.rmdirSync(t,e);return i=!1,s}finally{if(++n<r&&i)continue}}while(!0)};Tue.exports=VM;VM.sync=Pue});var Fue=m(($It,Lue)=>{var xct=Mue().sync,Sct=H("fs");Lue.exports=function(e){return Sct.existsSync(e)?(xct(e,{glob:!1}),!0):!1}});var $ue=m((BIt,jue)=>{var lo=H("path"),kct=H("fs"),Nue=$ae(),GM=Fue(),Ect=Nue.writeJSON,Iue={load:function(t,e){var r=this;r._visited={},r._persisted={},r._pathToFile=e?lo.resolve(e,t):lo.resolve(__dirname,"../.cache/",t),kct.existsSync(r._pathToFile)&&(r._persisted=Nue.tryParse(r._pathToFile,{}))},loadFile:function(t){var e=this,r=lo.dirname(t),n=lo.basename(t);e.load(n,r)},all:function(){return this._persisted},keys:function(){return Object.keys(this._persisted)},setKey:function(t,e){this._visited[t]=!0,this._persisted[t]=e},removeKey:function(t){delete this._visited[t],delete this._persisted[t]},getKey:function(t){return this._visited[t]=!0,this._persisted[t]},_prune:function(){var t=this,e={},r=Object.keys(t._visited);r.length!==0&&(r.forEach(function(n){e[n]=t._persisted[n]}),t._visited={},t._persisted=e)},save:function(t){var e=this;!t&&e._prune(),Ect(e._pathToFile,e._persisted)},removeCacheFile:function(){return GM(this._pathToFile)},destroy:function(){var t=this;t._visited={},t._persisted={},t.removeCacheFile()}};jue.exports={load:function(t,e){return this.create(t,e)},create:function(t,e){var r=Object.create(Iue);return r.load(t,e),r},createFromFile:function(t){var e=Object.create(Iue);return e.loadFile(t),e},clearCacheById:function(t,e){var r=e?lo.resolve(e,t):lo.resolve(__dirname,"../.cache/",t);return GM(r)},clearAll:function(t){var e=t?lo.resolve(t):lo.resolve(__dirname,"../.cache/");return GM(e)}}});var zue=m((WIt,Wue)=>{var Bue=H("path"),Cct=H("crypto");Wue.exports={createFromFile:function(t,e){var r=Bue.basename(t),n=Bue.dirname(t);return this.create(r,n,e)},create:function(t,e,r){var n=H("fs"),i=$ue(),s=i.load(t,e),o={},a=function(){s.keys().forEach(function(f){try{n.statSync(f)}catch(d){d.code==="ENOENT"&&s.removeKey(f)}})};return a(),{cache:s,getHash:function(u){return Cct.createHash("md5").update(u).digest("hex")},hasFileChanged:function(u){return this.getFileDescriptor(u).changed},analyzeFiles:function(u){var l=this;u=u||[];var c={changedFiles:[],notFoundFiles:[],notChangedFiles:[]};return l.normalizeEntries(u).forEach(function(f){if(f.changed){c.changedFiles.push(f.key);return}if(f.notFound){c.notFoundFiles.push(f.key);return}c.notChangedFiles.push(f.key)}),c},getFileDescriptor:function(u){var l;try{l=n.statSync(u)}catch(c){return this.removeEntry(u),{key:u,notFound:!0,err:c}}return r?this._getFileDescriptorUsingChecksum(u):this._getFileDescriptorUsingMtimeAndSize(u,l)},_getFileDescriptorUsingMtimeAndSize:function(u,l){var c=s.getKey(u),f=!!c,d=l.size,p=l.mtime.getTime(),h,y;c?(h=p!==c.mtime,y=d!==c.size):c={size:d,mtime:p};var v=o[u]={key:u,changed:!f||h||y,meta:c};return v},_getFileDescriptorUsingChecksum:function(u){var l=s.getKey(u),c=!!l,f;try{f=n.readFileSync(u)}catch{f=""}var d=!0,p=this.getHash(f);l?d=p!==l.hash:l={hash:p};var h=o[u]={key:u,changed:!c||d,meta:l};return h},getUpdatedFiles:function(u){var l=this;return u=u||[],l.normalizeEntries(u).filter(function(c){return c.changed}).map(function(c){return c.key})},normalizeEntries:function(u){u=u||[];var l=this,c=u.map(function(f){return l.getFileDescriptor(f)});return c},removeEntry:function(u){delete o[u],s.removeKey(u)},deleteCacheFile:function(){s.removeCacheFile()},destroy:function(){o={},s.destroy()},_getMetaForFileUsingCheckSum:function(u){var l=n.readFileSync(u.key),c=this.getHash(l),f=Object.assign(u.meta,{hash:c});return delete f.size,delete f.mtime,f},_getMetaForFileUsingMtimeAndSize:function(u){var l=n.statSync(u.key),c=Object.assign(u.meta,{size:l.size,mtime:l.mtime.getTime()});return delete c.hash,c},reconcile:function(u){a(),u=typeof u>"u"?!0:u;var l=o,c=Object.keys(l);if(c.length!==0){var f=this;c.forEach(function(d){var p=l[d];try{var h=r?f._getMetaForFileUsingCheckSum(p):f._getMetaForFileUsingMtimeAndSize(p);s.setKey(d,h)}catch(y){if(y.code!=="ENOENT")throw y}}),s.save(u)}}}}}});var YM=m((zIt,KM)=>{(function(){var t;function e(r,n){var i=this instanceof e?this:t;if(i.reset(n),typeof r=="string"&&r.length>0&&i.hash(r),i!==this)return i}e.prototype.hash=function(r){var n,i,s,o,a;switch(a=r.length,this.len+=a,i=this.k1,s=0,this.rem){case 0:i^=a>s?r.charCodeAt(s++)&65535:0;case 1:i^=a>s?(r.charCodeAt(s++)&65535)<<8:0;case 2:i^=a>s?(r.charCodeAt(s++)&65535)<<16:0;case 3:i^=a>s?(r.charCodeAt(s)&255)<<24:0,i^=a>s?(r.charCodeAt(s++)&65280)>>8:0}if(this.rem=a+this.rem&3,a-=this.rem,a>0){for(n=this.h1;i=i*11601+(i&65535)*3432906752&4294967295,i=i<<15|i>>>17,i=i*13715+(i&65535)*461832192&4294967295,n^=i,n=n<<13|n>>>19,n=n*5+3864292196&4294967295,!(s>=a);)i=r.charCodeAt(s++)&65535^(r.charCodeAt(s++)&65535)<<8^(r.charCodeAt(s++)&65535)<<16,o=r.charCodeAt(s++),i^=(o&255)<<24^(o&65280)>>8;switch(i=0,this.rem){case 3:i^=(r.charCodeAt(s+2)&65535)<<16;case 2:i^=(r.charCodeAt(s+1)&65535)<<8;case 1:i^=r.charCodeAt(s)&65535}this.h1=n}return this.k1=i,this},e.prototype.result=function(){var r,n;return r=this.k1,n=this.h1,r>0&&(r=r*11601+(r&65535)*3432906752&4294967295,r=r<<15|r>>>17,r=r*13715+(r&65535)*461832192&4294967295,n^=r),n^=this.len,n^=n>>>16,n=n*51819+(n&65535)*2246770688&4294967295,n^=n>>>13,n=n*44597+(n&65535)*3266445312&4294967295,n^=n>>>16,n>>>0},e.prototype.reset=function(r){return this.h1=typeof r=="number"?r:0,this.rem=this.k1=this.len=0,this},t=new e,typeof KM<"u"?KM.exports=e:this.MurmurHash3=e})()});var QM=m((UIt,Uue)=>{"use strict";var Dct=YM();Uue.exports=function(e){return Dct(e).result().toString(36)}});var Vue=m((HIt,Hue)=>{"use strict";var Oct=H("fs"),qct=QM(),rS=H("path");Hue.exports=function(e,r){e=rS.normalize(e);let n=rS.resolve(r,e),i=e[e.length-1]===rS.sep;function s(){return rS.join(n,`.stylelintcache_${qct(r)}`)}let o;try{o=Oct.lstatSync(n)}catch{o=null}return i||o&&o.isDirectory()?s():n}});var Gue=m((VIt,Rct)=>{Rct.exports={name:"stylelint",version:"14.16.1",description:"A mighty, modern CSS linter.",keywords:["css-in-js","css","less","lint","linter","markdown","sass","scss","stylelint","sugarss"],homepage:"https://stylelint.io",repository:"stylelint/stylelint",funding:{type:"opencollective",url:"https://opencollective.com/stylelint"},license:"MIT",author:"stylelint",main:"lib/index.js",types:"types/stylelint/index.d.ts",bin:{stylelint:"bin/stylelint.js"},files:["bin/**/*.js","lib/**/*.js","!**/__tests__/**","!lib/testUtils/**","types/stylelint/index.d.ts"],scripts:{"benchmark-rule":"node scripts/benchmark-rule.mjs",format:"prettier . --write --cache",jest:"jest",lint:"npm-run-all --parallel --continue-on-error lint:*","lint:formatting":"prettier . --check --cache","lint:js":"eslint . --cache --max-warnings=0 --ext .js,.mjs","lint:md":"remark . --quiet --frail","lint:types":"tsc",prepare:"husky install && patch-package",release:"np --no-release-draft",pretest:"npm run lint",test:"jest --coverage",version:"changeset version",postversion:"git restore package.json",watch:"jest --watch","changelog-to-github-release":"remark --quiet --use ./scripts/remark-changelog-to-github-release.mjs CHANGELOG.md"},"lint-staged":{"*.{js,mjs}":"eslint --cache --fix","*.{js,json,md,mjs,ts,yml}":"prettier --write"},prettier:"@stylelint/prettier-config",eslintConfig:{extends:["stylelint"],globals:{__dirname:!0,module:!0,require:!0,testRule:!0},root:!0},remarkConfig:{plugins:["@stylelint/remark-preset"]},jest:{clearMocks:!0,collectCoverage:!1,collectCoverageFrom:["lib/**/*.js","!lib/**/{__tests__,testUtils}/**/*.js"],coverageDirectory:"./.coverage/",coverageReporters:["lcov","text-summary"],coverageThreshold:{global:{branches:75,functions:75,lines:75,statements:75}},moduleNameMapper:{"^stylelint$":"<rootDir>/lib/index.js","stylelint/lib/utils/getOsEol":"<rootDir>/lib/utils/getOsEol.js"},preset:"jest-preset-stylelint",roots:["lib","system-tests"],testEnvironment:"node",testRegex:".*\\.test\\.js$|rules/.*/__tests__/.*\\.js$",watchPlugins:["jest-watch-typeahead/filename","jest-watch-typeahead/testname"]},dependencies:{"@csstools/selector-specificity":"^2.0.2","balanced-match":"^2.0.0",colord:"^2.9.3",cosmiconfig:"^7.1.0","css-functions-list":"^3.1.0",debug:"^4.3.4","fast-glob":"^3.2.12","fastest-levenshtein":"^1.0.16","file-entry-cache":"^6.0.1","global-modules":"^2.0.0",globby:"^11.1.0",globjoin:"^0.1.4","html-tags":"^3.2.0",ignore:"^5.2.1","import-lazy":"^4.0.0",imurmurhash:"^0.1.4","is-plain-object":"^5.0.0","known-css-properties":"^0.26.0","mathml-tag-names":"^2.1.3",meow:"^9.0.0",micromatch:"^4.0.5","normalize-path":"^3.0.0",picocolors:"^1.0.0",postcss:"^8.4.19","postcss-media-query-parser":"^0.2.3","postcss-resolve-nested-selector":"^0.1.1","postcss-safe-parser":"^6.0.0","postcss-selector-parser":"^6.0.11","postcss-value-parser":"^4.2.0","resolve-from":"^5.0.0","string-width":"^4.2.3","strip-ansi":"^6.0.1","style-search":"^0.1.0","supports-hyperlinks":"^2.3.0","svg-tags":"^1.0.0",table:"^6.8.1","v8-compile-cache":"^2.3.0","write-file-atomic":"^4.0.2"},devDependencies:{"@changesets/cli":"^2.25.2","@changesets/get-github-info":"^0.5.1","@stylelint/prettier-config":"^2.0.0","@stylelint/remark-preset":"^4.0.0","@types/balanced-match":"^1.0.2","@types/debug":"^4.1.7","@types/file-entry-cache":"^5.0.2","@types/global-modules":"^2.0.0","@types/globjoin":"^0.1.0","@types/imurmurhash":"^0.1.1","@types/micromatch":"^4.0.2","@types/normalize-path":"^3.0.0","@types/postcss-less":"^4.0.2","@types/postcss-safe-parser":"^5.0.1","@types/style-search":"^0.1.3","@types/svg-tags":"^1.0.0","@types/write-file-atomic":"^4.0.0",benchmark:"^2.1.4","common-tags":"^1.8.2",deepmerge:"^4.2.2",eslint:"^8.28.0","eslint-config-stylelint":"^17.1.0",husky:"^8.0.2",jest:"^28.1.3","jest-preset-stylelint":"^5.0.4","jest-watch-typeahead":"^2.2.0","lint-staged":"^13.0.4","node-fetch":"^3.3.0",np:"^7.6.2","npm-run-all":"^4.1.5","patch-package":"^6.5.0","postcss-html":"^1.5.0","postcss-import":"^14.1.0","postcss-less":"^6.0.0","postcss-sass":"^0.5.0","postcss-scss":"^4.0.6","remark-cli":"^11.0.0",sugarss:"^4.0.1",typescript:"^4.9.3"},engines:{node:"^12.20.0 || ^14.13.1 || >=16.0.0"}}});var Que=m((GIt,Yue)=>{"use strict";var Kue=mM()("stylelint:file-cache"),Act=zue(),Pct=Vue(),Tct=QM(),Mct=Gue(),Lct=H("path"),XM="metadata",JM="content",Fct="./.stylelintcache",Ict=XM,ZM=class{constructor(e=Fct,r=Ict,n=process.cwd()){if(![XM,JM].includes(r))throw new Error(`"${r}" cache strategy is unsupported. Specify either "${XM}" or "${JM}"`);let i=Lct.resolve(Pct(e,n)),s=r===JM;Kue(`Cache file is created at ${i}`),this._fileCache=Act.create(i,void 0,s),this._hashOfConfig=""}calcHashOfConfig(e){if(this._hashOfConfig)return;let r=Mct.version,n=JSON.stringify(e||{});this._hashOfConfig=Tct(`${r}_${n}`)}hasFileChanged(e){let r=this._fileCache.getFileDescriptor(e),n=r.meta||{},i=r.changed||n.hashOfConfig!==this._hashOfConfig;return i||Kue(`Skip linting ${e}. File hasn't changed.`),n.hashOfConfig!==this._hashOfConfig&&(n.hashOfConfig=this._hashOfConfig),i}reconcile(){this._fileCache.reconcile()}destroy(){this._fileCache.destroy()}removeEntry(e){this._fileCache.removeEntry(e)}};Yue.exports=ZM});var tp=m((KIt,Jue)=>{"use strict";var{cosmiconfig:Nct}=XT(),jct=lM(),$ct=Que(),Bct=process.env.NODE_ENV==="test",Wct=Bct?process.cwd():void 0;Jue.exports=function(e={}){let r=e.cwd||process.cwd();return{_options:{...e,cwd:r},_extendExplorer:Nct("",{transform:jct.augmentConfigExtended(r),stopDir:Wct}),_specifiedConfigCache:new Map,_postcssResultCache:new Map,_fileCache:new $ct(e.cacheLocation,e.cacheStrategy,r)}}});var bl=m((YIt,Xue)=>{"use strict";Xue.exports=function(e){for(let r of e.parseErrors||[])e.warnings.push(zct(r));for(let r of e.warnings)r.severity=Uct(r);return e.warnings.sort(Hct),e};function zct(t){return{line:t.line,column:t.column,rule:t.stylelintType,severity:"error",text:`${t.text} (${t.stylelintType})`}}function Uct(t){return t.severity||"error"}function Hct(t,e){return!t.line&&e.line?-1:t.line&&!e.line?1:t.line<e.line?-1:t.line>e.line?1:t.column<e.column?-1:t.column>e.column?1:0}});var ele=m((QIt,Zue)=>{"use strict";var Vct=bl();Zue.exports=function(e){return e.flatMap(r=>{let{warnings:n}=Vct(r);return n.map(i=>`${r.source}: line ${i.line}, col ${i.column}, ${i.severity} - ${i.text}`)}).join(`
|
|
323
323
|
`)}});var rle=m((JIt,tle)=>{"use strict";var Gct=bl();tle.exports=function(e,r){let n="Stylelint problem",i=r.ruleMetadata;return e.flatMap(s=>{let{source:o,warnings:a}=Gct(s);return a.map(({line:u,column:l,endLine:c,endColumn:f,text:d,severity:p,rule:h})=>{let y=Kct(d,i[h]);return c===void 0?`::${p} file=${o},line=${u},col=${l},title=${n}::${y}`:`::${p} file=${o},line=${u},col=${l},endLine=${c},endColumn=${f},title=${n}::${y}`})}).join(`
|
|
324
|
-
`)};function Kct(t,e){if(!e)return t;let r=e.url?` - ${e.url}`:"",n=e.fixable?" [maybe fixable]":"";return`${t}${n}${r}`}});var ile=m((XIt,nle)=>{"use strict";nle.exports=function(e){let r=e.map(n=>Object.entries(n).filter(([i])=>!i.startsWith("_")).reduce((i,[s,o])=>(i[s]=o,i),{}));return JSON.stringify(r)}});var ole=m((ZIt,sle)=>{"use strict";sle.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var nS=m((e3t,ale)=>{"use strict";var Yct=ole();ale.exports=t=>typeof t=="string"?t.replace(Yct(),""):t});var tL=m((t3t,eL)=>{"use strict";var ule=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);eL.exports=ule;eL.exports.default=ule});var cle=m((r3t,lle)=>{"use strict";lle.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var Sa=m((n3t,rL)=>{"use strict";var Qct=nS(),Jct=tL(),Xct=cle(),fle=t=>{if(typeof t!="string"||t.length===0||(t=Qct(t),t.length===0))return 0;t=t.replace(Xct()," ");let e=0;for(let r=0;r<t.length;r++){let n=t.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,e+=Jct(n)?2:1)}return e};rL.exports=fle;rL.exports.default=fle});var hle=m((i3t,ple)=>{"use strict";var dle="[\uD800-\uDBFF][\uDC00-\uDFFF]",Zct=t=>t&&t.exact?new RegExp(`^${dle}$`):new RegExp(dle,"g");ple.exports=Zct});var mle=m((s3t,gle)=>{"use strict";gle.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var nL=m((o3t,ble)=>{var rp=mle(),yle={};for(let t of Object.keys(rp))yle[rp[t]]=t;var Ee={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};ble.exports=Ee;for(let t of Object.keys(Ee)){if(!("channels"in Ee[t]))throw new Error("missing channels property: "+t);if(!("labels"in Ee[t]))throw new Error("missing channel labels property: "+t);if(Ee[t].labels.length!==Ee[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=Ee[t];delete Ee[t].channels,delete Ee[t].labels,Object.defineProperty(Ee[t],"channels",{value:e}),Object.defineProperty(Ee[t],"labels",{value:r})}Ee.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let l=(i+s)/2;return s===i?u=0:l<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,l*100]};Ee.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,l=Math.max(o,a,u),c=l-Math.min(o,a,u),f=function(d){return(l-d)/6/c+1/2};return c===0?(i=0,s=0):(s=c/l,e=f(o),r=f(a),n=f(u),o===l?i=n-r:a===l?i=1/3+e-n:u===l&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};Ee.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=Ee.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};Ee.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function eft(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}Ee.rgb.keyword=function(t){let e=yle[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(rp)){let s=rp[i],o=eft(t,s);o<r&&(r=o,n=i)}return n};Ee.keyword.rgb=function(t){return rp[t]};Ee.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};Ee.rgb.lab=function(t){let e=Ee.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};Ee.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)s=e+1/3*-(l-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,u[l]=o*255;return u};Ee.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};Ee.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};Ee.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};Ee.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let u=r+s*(a-r),l,c,f;switch(o){default:case 6:case 0:l=a,c=u,f=r;break;case 1:l=u,c=a,f=r;break;case 2:l=r,c=a,f=u;break;case 3:l=r,c=u,f=a;break;case 4:l=u,c=r,f=a;break;case 5:l=a,c=r,f=u;break}return[l*255,c*255,f*255]};Ee.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};Ee.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};Ee.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};Ee.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,l=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};Ee.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};Ee.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};Ee.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?Ee.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};Ee.hsv.ansi16=function(t){return Ee.rgb.ansi16(Ee.hsv.rgb(t),t[2])};Ee.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};Ee.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};Ee.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};Ee.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};Ee.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};Ee.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};Ee.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};Ee.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};Ee.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};Ee.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};Ee.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};Ee.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};Ee.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};Ee.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};Ee.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};Ee.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};Ee.gray.hsl=function(t){return[0,0,t[0]]};Ee.gray.hsv=Ee.gray.hsl;Ee.gray.hwb=function(t){return[0,100,t[0]]};Ee.gray.cmyk=function(t){return[0,0,0,t[0]]};Ee.gray.lab=function(t){return[t[0],0,0]};Ee.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};Ee.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var wle=m((a3t,vle)=>{var iS=nL();function tft(){let t={},e=Object.keys(iS);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function rft(t){let e=tft(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(iS[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function nft(t,e){return function(r){return e(t(r))}}function ift(t,e){let r=[e[t].parent,t],n=iS[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=nft(iS[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}vle.exports=function(t){let e=rft(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=ift(o,e))}return r}});var xle=m((u3t,_le)=>{var iL=nL(),sft=wle(),vl={},oft=Object.keys(iL);function aft(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function uft(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}oft.forEach(t=>{vl[t]={},Object.defineProperty(vl[t],"channels",{value:iL[t].channels}),Object.defineProperty(vl[t],"labels",{value:iL[t].labels});let e=sft(t);Object.keys(e).forEach(n=>{let i=e[n];vl[t][n]=uft(i),vl[t][n].raw=aft(i)})});_le.exports=vl});var Ole=m((l3t,Dle)=>{"use strict";var Sle=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,kle=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},Ele=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},sS=t=>t,Cle=(t,e,r)=>[t,e,r],wl=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},sL,_l=(t,e,r,n)=>{sL===void 0&&(sL=xle());let i=n?10:0,s={};for(let[o,a]of Object.entries(sL)){let u=o==="ansi16"?"ansi":o;o===e?s[u]=t(r,i):typeof a=="object"&&(s[u]=t(a[e],i))}return s};function lft(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",wl(e.color,"ansi",()=>_l(Sle,"ansi16",sS,!1)),wl(e.color,"ansi256",()=>_l(kle,"ansi256",sS,!1)),wl(e.color,"ansi16m",()=>_l(Ele,"rgb",Cle,!1)),wl(e.bgColor,"ansi",()=>_l(Sle,"ansi16",sS,!0)),wl(e.bgColor,"ansi256",()=>_l(kle,"ansi256",sS,!0)),wl(e.bgColor,"ansi16m",()=>_l(Ele,"rgb",Cle,!0)),e}Object.defineProperty(Dle,"exports",{enumerable:!0,get:lft})});var aS=m((c3t,Ple)=>{"use strict";var cft=tL(),fft=hle(),qle=Ole(),Ale=["\x1B","\x9B"],oS=t=>`${Ale[0]}[${t}m`,Rle=(t,e,r)=>{let n=[];t=[...t];for(let i of t){let s=i;i.includes(";")&&(i=i.split(";")[0][0]+"0");let o=qle.codes.get(Number.parseInt(i,10));if(o){let a=t.indexOf(o.toString());a===-1?n.push(oS(e?o:s)):t.splice(a,1)}else if(e){n.push(oS(0));break}else n.push(oS(s))}if(e&&(n=n.filter((i,s)=>n.indexOf(i)===s),r!==void 0)){let i=oS(qle.codes.get(Number.parseInt(r,10)));n=n.reduce((s,o)=>o===i?[o,...s]:[...s,o],[])}return n.join("")};Ple.exports=(t,e,r)=>{let n=[...t],i=[],s=typeof r=="number"?r:n.length,o=!1,a,u=0,l="";for(let[c,f]of n.entries()){let d=!1;if(Ale.includes(f)){let p=/\d[^m]*/.exec(t.slice(c,c+18));a=p&&p.length>0?p[0]:void 0,u<s&&(o=!0,a!==void 0&&i.push(a))}else o&&f==="m"&&(o=!1,d=!0);if(!o&&!d&&u++,!fft({exact:!0}).test(f)&&cft(f.codePointAt())&&(u++,typeof r!="number"&&s++),u>e&&u<=s)l+=f;else if(u===e&&!o&&a!==void 0)l=Rle(i);else if(u>=s){l+=Rle(i,!0,a);break}}return l}});var oL=m(uS=>{"use strict";Object.defineProperty(uS,"__esModule",{value:!0});uS.getBorderCharacters=void 0;var dft=t=>{if(t==="honeywell")return{topBody:"\u2550",topJoin:"\u2564",topLeft:"\u2554",topRight:"\u2557",bottomBody:"\u2550",bottomJoin:"\u2567",bottomLeft:"\u255A",bottomRight:"\u255D",bodyLeft:"\u2551",bodyRight:"\u2551",bodyJoin:"\u2502",headerJoin:"\u252C",joinBody:"\u2500",joinLeft:"\u255F",joinRight:"\u2562",joinJoin:"\u253C",joinMiddleDown:"\u252C",joinMiddleUp:"\u2534",joinMiddleLeft:"\u2524",joinMiddleRight:"\u251C"};if(t==="norc")return{topBody:"\u2500",topJoin:"\u252C",topLeft:"\u250C",topRight:"\u2510",bottomBody:"\u2500",bottomJoin:"\u2534",bottomLeft:"\u2514",bottomRight:"\u2518",bodyLeft:"\u2502",bodyRight:"\u2502",bodyJoin:"\u2502",headerJoin:"\u252C",joinBody:"\u2500",joinLeft:"\u251C",joinRight:"\u2524",joinJoin:"\u253C",joinMiddleDown:"\u252C",joinMiddleUp:"\u2534",joinMiddleLeft:"\u2524",joinMiddleRight:"\u251C"};if(t==="ramac")return{topBody:"-",topJoin:"+",topLeft:"+",topRight:"+",bottomBody:"-",bottomJoin:"+",bottomLeft:"+",bottomRight:"+",bodyLeft:"|",bodyRight:"|",bodyJoin:"|",headerJoin:"+",joinBody:"-",joinLeft:"|",joinRight:"|",joinJoin:"|",joinMiddleDown:"+",joinMiddleUp:"+",joinMiddleLeft:"+",joinMiddleRight:"+"};if(t==="void")return{topBody:"",topJoin:"",topLeft:"",topRight:"",bottomBody:"",bottomJoin:"",bottomLeft:"",bottomRight:"",bodyLeft:"",bodyRight:"",bodyJoin:"",headerJoin:"",joinBody:"",joinLeft:"",joinRight:"",joinJoin:"",joinMiddleDown:"",joinMiddleUp:"",joinMiddleLeft:"",joinMiddleRight:""};throw new Error('Unknown border template "'+t+'".')};uS.getBorderCharacters=dft});var dr=m(tt=>{"use strict";var aL=tt&&tt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tt,"__esModule",{value:!0});tt.isCellInRange=tt.areCellEqual=tt.calculateRangeCoordinate=tt.findOriginalRowIndex=tt.flatten=tt.extractTruncates=tt.sumArray=tt.sequence=tt.distributeUnevenly=tt.countSpaceSequence=tt.groupBySizes=tt.makeBorderConfig=tt.splitAnsi=tt.normalizeString=void 0;var pft=aL(aS()),hft=aL(Sa()),gft=aL(nS()),mft=oL(),yft=t=>t.replace(/\r\n/g,`
|
|
324
|
+
`)};function Kct(t,e){if(!e)return t;let r=e.url?` - ${e.url}`:"",n=e.fixable?" [maybe fixable]":"";return`${t}${n}${r}`}});var ile=m((XIt,nle)=>{"use strict";nle.exports=function(e){let r=e.map(n=>Object.entries(n).filter(([i])=>!i.startsWith("_")).reduce((i,[s,o])=>(i[s]=o,i),{}));return JSON.stringify(r)}});var ole=m((ZIt,sle)=>{"use strict";sle.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var nS=m((e3t,ale)=>{"use strict";var Yct=ole();ale.exports=t=>typeof t=="string"?t.replace(Yct(),""):t});var tL=m((t3t,eL)=>{"use strict";var ule=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);eL.exports=ule;eL.exports.default=ule});var cle=m((r3t,lle)=>{"use strict";lle.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var Sa=m((n3t,rL)=>{"use strict";var Qct=nS(),Jct=tL(),Xct=cle(),fle=t=>{if(typeof t!="string"||t.length===0||(t=Qct(t),t.length===0))return 0;t=t.replace(Xct()," ");let e=0;for(let r=0;r<t.length;r++){let n=t.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,e+=Jct(n)?2:1)}return e};rL.exports=fle;rL.exports.default=fle});var hle=m((i3t,ple)=>{"use strict";var dle="[\uD800-\uDBFF][\uDC00-\uDFFF]",Zct=t=>t&&t.exact?new RegExp(`^${dle}$`):new RegExp(dle,"g");ple.exports=Zct});var mle=m((s3t,gle)=>{"use strict";gle.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var nL=m((o3t,ble)=>{var rp=mle(),yle={};for(let t of Object.keys(rp))yle[rp[t]]=t;var Ee={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};ble.exports=Ee;for(let t of Object.keys(Ee)){if(!("channels"in Ee[t]))throw new Error("missing channels property: "+t);if(!("labels"in Ee[t]))throw new Error("missing channel labels property: "+t);if(Ee[t].labels.length!==Ee[t].channels)throw new Error("channel and label counts mismatch: "+t);let{channels:e,labels:r}=Ee[t];delete Ee[t].channels,delete Ee[t].labels,Object.defineProperty(Ee[t],"channels",{value:e}),Object.defineProperty(Ee[t],"labels",{value:r})}Ee.rgb.hsl=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=s-i,a,u;s===i?a=0:e===s?a=(r-n)/o:r===s?a=2+(n-e)/o:n===s&&(a=4+(e-r)/o),a=Math.min(a*60,360),a<0&&(a+=360);let l=(i+s)/2;return s===i?u=0:l<=.5?u=o/(s+i):u=o/(2-s-i),[a,u*100,l*100]};Ee.rgb.hsv=function(t){let e,r,n,i,s,o=t[0]/255,a=t[1]/255,u=t[2]/255,l=Math.max(o,a,u),c=l-Math.min(o,a,u),f=function(d){return(l-d)/6/c+1/2};return c===0?(i=0,s=0):(s=c/l,e=f(o),r=f(a),n=f(u),o===l?i=n-r:a===l?i=1/3+e-n:u===l&&(i=2/3+r-e),i<0?i+=1:i>1&&(i-=1)),[i*360,s*100,l*100]};Ee.rgb.hwb=function(t){let e=t[0],r=t[1],n=t[2],i=Ee.rgb.hsl(t)[0],s=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[i,s*100,n*100]};Ee.rgb.cmyk=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(1-e,1-r,1-n),s=(1-e-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,a=(1-n-i)/(1-i)||0;return[s*100,o*100,a*100,i*100]};function eft(t,e){return(t[0]-e[0])**2+(t[1]-e[1])**2+(t[2]-e[2])**2}Ee.rgb.keyword=function(t){let e=yle[t];if(e)return e;let r=1/0,n;for(let i of Object.keys(rp)){let s=rp[i],o=eft(t,s);o<r&&(r=o,n=i)}return n};Ee.keyword.rgb=function(t){return rp[t]};Ee.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let i=e*.4124+r*.3576+n*.1805,s=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};Ee.rgb.lab=function(t){let e=Ee.rgb.xyz(t),r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let s=116*n-16,o=500*(r-n),a=200*(n-i);return[s,o,a]};Ee.hsl.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i,s,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;let a=2*n-i,u=[0,0,0];for(let l=0;l<3;l++)s=e+1/3*-(l-1),s<0&&s++,s>1&&s--,6*s<1?o=a+(i-a)*6*s:2*s<1?o=i:3*s<2?o=a+(i-a)*(2/3-s)*6:o=a,u[l]=o*255;return u};Ee.hsl.hsv=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=r,s=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=s<=1?s:2-s;let o=(n+r)/2,a=n===0?2*i/(s+i):2*r/(n+r);return[e,a*100,o*100]};Ee.hsv.rgb=function(t){let e=t[0]/60,r=t[1]/100,n=t[2]/100,i=Math.floor(e)%6,s=e-Math.floor(e),o=255*n*(1-r),a=255*n*(1-r*s),u=255*n*(1-r*(1-s));switch(n*=255,i){case 0:return[n,u,o];case 1:return[a,n,o];case 2:return[o,n,u];case 3:return[o,a,n];case 4:return[u,o,n];case 5:return[n,o,a]}};Ee.hsv.hsl=function(t){let e=t[0],r=t[1]/100,n=t[2]/100,i=Math.max(n,.01),s,o;o=(2-r)*n;let a=(2-r)*i;return s=r*i,s/=a<=1?a:2-a,s=s||0,o/=2,[e,s*100,o*100]};Ee.hwb.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100,i=r+n,s;i>1&&(r/=i,n/=i);let o=Math.floor(6*e),a=1-n;s=6*e-o,o&1&&(s=1-s);let u=r+s*(a-r),l,c,f;switch(o){default:case 6:case 0:l=a,c=u,f=r;break;case 1:l=u,c=a,f=r;break;case 2:l=r,c=a,f=u;break;case 3:l=r,c=u,f=a;break;case 4:l=u,c=r,f=a;break;case 5:l=a,c=r,f=u;break}return[l*255,c*255,f*255]};Ee.cmyk.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i=t[3]/100,s=1-Math.min(1,e*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};Ee.xyz.rgb=function(t){let e=t[0]/100,r=t[1]/100,n=t[2]/100,i,s,o;return i=e*3.2406+r*-1.5372+n*-.4986,s=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[i*255,s*255,o*255]};Ee.xyz.lab=function(t){let e=t[0],r=t[1],n=t[2];e/=95.047,r/=100,n/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let i=116*r-16,s=500*(e-r),o=200*(r-n);return[i,s,o]};Ee.lab.xyz=function(t){let e=t[0],r=t[1],n=t[2],i,s,o;s=(e+16)/116,i=r/500+s,o=s-n/200;let a=s**3,u=i**3,l=o**3;return s=a>.008856?a:(s-16/116)/7.787,i=u>.008856?u:(i-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,i*=95.047,s*=100,o*=108.883,[i,s,o]};Ee.lab.lch=function(t){let e=t[0],r=t[1],n=t[2],i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);let o=Math.sqrt(r*r+n*n);return[e,o,i]};Ee.lch.lab=function(t){let e=t[0],r=t[1],i=t[2]/360*2*Math.PI,s=r*Math.cos(i),o=r*Math.sin(i);return[e,s,o]};Ee.rgb.ansi16=function(t,e=null){let[r,n,i]=t,s=e===null?Ee.rgb.hsv(t)[2]:e;if(s=Math.round(s/50),s===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return s===2&&(o+=60),o};Ee.hsv.ansi16=function(t){return Ee.rgb.ansi16(Ee.hsv.rgb(t),t[2])};Ee.rgb.ansi256=function(t){let e=t[0],r=t[1],n=t[2];return e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};Ee.ansi16.rgb=function(t){let e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];let r=(~~(t>50)+1)*.5,n=(e&1)*r*255,i=(e>>1&1)*r*255,s=(e>>2&1)*r*255;return[n,i,s]};Ee.ansi256.rgb=function(t){if(t>=232){let s=(t-232)*10+8;return[s,s,s]}t-=16;let e,r=Math.floor(t/36)/5*255,n=Math.floor((e=t%36)/6)/5*255,i=e%6/5*255;return[r,n,i]};Ee.rgb.hex=function(t){let r=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};Ee.hex.rgb=function(t){let e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];e[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16),i=n>>16&255,s=n>>8&255,o=n&255;return[i,s,o]};Ee.rgb.hcg=function(t){let e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.max(Math.max(e,r),n),s=Math.min(Math.min(e,r),n),o=i-s,a,u;return o<1?a=s/(1-o):a=0,o<=0?u=0:i===e?u=(r-n)/o%6:i===r?u=2+(n-e)/o:u=4+(e-r)/o,u/=6,u%=1,[u*360,o*100,a*100]};Ee.hsl.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=r<.5?2*e*r:2*e*(1-r),i=0;return n<1&&(i=(r-.5*n)/(1-n)),[t[0],n*100,i*100]};Ee.hsv.hcg=function(t){let e=t[1]/100,r=t[2]/100,n=e*r,i=0;return n<1&&(i=(r-n)/(1-n)),[t[0],n*100,i*100]};Ee.hcg.rgb=function(t){let e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];let i=[0,0,0],s=e%1*6,o=s%1,a=1-o,u=0;switch(Math.floor(s)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-r)*n,[(r*i[0]+u)*255,(r*i[1]+u)*255,(r*i[2]+u)*255]};Ee.hcg.hsv=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e),i=0;return n>0&&(i=e/n),[t[0],i*100,n*100]};Ee.hcg.hsl=function(t){let e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],i*100,n*100]};Ee.hcg.hwb=function(t){let e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};Ee.hwb.hcg=function(t){let e=t[1]/100,n=1-t[2]/100,i=n-e,s=0;return i<1&&(s=(n-i)/(1-i)),[t[0],i*100,s*100]};Ee.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};Ee.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};Ee.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};Ee.gray.hsl=function(t){return[0,0,t[0]]};Ee.gray.hsv=Ee.gray.hsl;Ee.gray.hwb=function(t){return[0,100,t[0]]};Ee.gray.cmyk=function(t){return[0,0,0,t[0]]};Ee.gray.lab=function(t){return[t[0],0,0]};Ee.gray.hex=function(t){let e=Math.round(t[0]/100*255)&255,n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n};Ee.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}});var wle=m((a3t,vle)=>{var iS=nL();function tft(){let t={},e=Object.keys(iS);for(let r=e.length,n=0;n<r;n++)t[e[n]]={distance:-1,parent:null};return t}function rft(t){let e=tft(),r=[t];for(e[t].distance=0;r.length;){let n=r.pop(),i=Object.keys(iS[n]);for(let s=i.length,o=0;o<s;o++){let a=i[o],u=e[a];u.distance===-1&&(u.distance=e[n].distance+1,u.parent=n,r.unshift(a))}}return e}function nft(t,e){return function(r){return e(t(r))}}function ift(t,e){let r=[e[t].parent,t],n=iS[e[t].parent][t],i=e[t].parent;for(;e[i].parent;)r.unshift(e[i].parent),n=nft(iS[e[i].parent][i],n),i=e[i].parent;return n.conversion=r,n}vle.exports=function(t){let e=rft(t),r={},n=Object.keys(e);for(let i=n.length,s=0;s<i;s++){let o=n[s];e[o].parent!==null&&(r[o]=ift(o,e))}return r}});var xle=m((u3t,_le)=>{var iL=nL(),sft=wle(),vl={},oft=Object.keys(iL);function aft(t){let e=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function uft(t){let e=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let i=t(r);if(typeof i=="object")for(let s=i.length,o=0;o<s;o++)i[o]=Math.round(i[o]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}oft.forEach(t=>{vl[t]={},Object.defineProperty(vl[t],"channels",{value:iL[t].channels}),Object.defineProperty(vl[t],"labels",{value:iL[t].labels});let e=sft(t);Object.keys(e).forEach(n=>{let i=e[n];vl[t][n]=uft(i),vl[t][n].raw=aft(i)})});_le.exports=vl});var Ole=m((l3t,Dle)=>{"use strict";var Sle=(t,e)=>(...r)=>`\x1B[${t(...r)+e}m`,kle=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};5;${n}m`},Ele=(t,e)=>(...r)=>{let n=t(...r);return`\x1B[${38+e};2;${n[0]};${n[1]};${n[2]}m`},sS=t=>t,Cle=(t,e,r)=>[t,e,r],wl=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{let n=r();return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},sL,_l=(t,e,r,n)=>{sL===void 0&&(sL=xle());let i=n?10:0,s={};for(let[o,a]of Object.entries(sL)){let u=o==="ansi16"?"ansi":o;o===e?s[u]=t(r,i):typeof a=="object"&&(s[u]=t(a[e],i))}return s};function lft(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[r,n]of Object.entries(e)){for(let[i,s]of Object.entries(n))e[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=e[i],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:n,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",wl(e.color,"ansi",()=>_l(Sle,"ansi16",sS,!1)),wl(e.color,"ansi256",()=>_l(kle,"ansi256",sS,!1)),wl(e.color,"ansi16m",()=>_l(Ele,"rgb",Cle,!1)),wl(e.bgColor,"ansi",()=>_l(Sle,"ansi16",sS,!0)),wl(e.bgColor,"ansi256",()=>_l(kle,"ansi256",sS,!0)),wl(e.bgColor,"ansi16m",()=>_l(Ele,"rgb",Cle,!0)),e}Object.defineProperty(Dle,"exports",{enumerable:!0,get:lft})});var aS=m((c3t,Ple)=>{"use strict";var cft=tL(),fft=hle(),qle=Ole(),Ale=["\x1B","\x9B"],oS=t=>`${Ale[0]}[${t}m`,Rle=(t,e,r)=>{let n=[];t=[...t];for(let i of t){let s=i;i.includes(";")&&(i=i.split(";")[0][0]+"0");let o=qle.codes.get(Number.parseInt(i,10));if(o){let a=t.indexOf(o.toString());a===-1?n.push(oS(e?o:s)):t.splice(a,1)}else if(e){n.push(oS(0));break}else n.push(oS(s))}if(e&&(n=n.filter((i,s)=>n.indexOf(i)===s),r!==void 0)){let i=oS(qle.codes.get(Number.parseInt(r,10)));n=n.reduce((s,o)=>o===i?[o,...s]:[...s,o],[])}return n.join("")};Ple.exports=(t,e,r)=>{let n=[...t],i=[],s=typeof r=="number"?r:n.length,o=!1,a,u=0,l="";for(let[c,f]of n.entries()){let d=!1;if(Ale.includes(f)){let p=/\d[^m]*/.exec(t.slice(c,c+18));a=p&&p.length>0?p[0]:void 0,u<s&&(o=!0,a!==void 0&&i.push(a))}else o&&f==="m"&&(o=!1,d=!0);if(!o&&!d&&u++,!fft({exact:!0}).test(f)&&cft(f.codePointAt())&&(u++,typeof r!="number"&&s++),u>e&&u<=s)l+=f;else if(u===e&&!o&&a!==void 0)l=Rle(i);else if(u>=s){l+=Rle(i,!0,a);break}}return l}});var oL=m(uS=>{"use strict";Object.defineProperty(uS,"__esModule",{value:!0});uS.getBorderCharacters=void 0;var dft=t=>{if(t==="honeywell")return{topBody:"\u2550",topJoin:"\u2564",topLeft:"\u2554",topRight:"\u2557",bottomBody:"\u2550",bottomJoin:"\u2567",bottomLeft:"\u255A",bottomRight:"\u255D",bodyLeft:"\u2551",bodyRight:"\u2551",bodyJoin:"\u2502",headerJoin:"\u252C",joinBody:"\u2500",joinLeft:"\u255F",joinRight:"\u2562",joinJoin:"\u253C",joinMiddleDown:"\u252C",joinMiddleUp:"\u2534",joinMiddleLeft:"\u2524",joinMiddleRight:"\u251C"};if(t==="norc")return{topBody:"\u2500",topJoin:"\u252C",topLeft:"\u250C",topRight:"\u2510",bottomBody:"\u2500",bottomJoin:"\u2534",bottomLeft:"\u2514",bottomRight:"\u2518",bodyLeft:"\u2502",bodyRight:"\u2502",bodyJoin:"\u2502",headerJoin:"\u252C",joinBody:"\u2500",joinLeft:"\u251C",joinRight:"\u2524",joinJoin:"\u253C",joinMiddleDown:"\u252C",joinMiddleUp:"\u2534",joinMiddleLeft:"\u2524",joinMiddleRight:"\u251C"};if(t==="ramac")return{topBody:"-",topJoin:"+",topLeft:"+",topRight:"+",bottomBody:"-",bottomJoin:"+",bottomLeft:"+",bottomRight:"+",bodyLeft:"|",bodyRight:"|",bodyJoin:"|",headerJoin:"+",joinBody:"-",joinLeft:"|",joinRight:"|",joinJoin:"|",joinMiddleDown:"+",joinMiddleUp:"+",joinMiddleLeft:"+",joinMiddleRight:"+"};if(t==="void")return{topBody:"",topJoin:"",topLeft:"",topRight:"",bottomBody:"",bottomJoin:"",bottomLeft:"",bottomRight:"",bodyLeft:"",bodyRight:"",bodyJoin:"",headerJoin:"",joinBody:"",joinLeft:"",joinRight:"",joinJoin:"",joinMiddleDown:"",joinMiddleUp:"",joinMiddleLeft:"",joinMiddleRight:""};throw new Error('Unknown border template "'+t+'".')};uS.getBorderCharacters=dft});var pr=m(tt=>{"use strict";var aL=tt&&tt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tt,"__esModule",{value:!0});tt.isCellInRange=tt.areCellEqual=tt.calculateRangeCoordinate=tt.findOriginalRowIndex=tt.flatten=tt.extractTruncates=tt.sumArray=tt.sequence=tt.distributeUnevenly=tt.countSpaceSequence=tt.groupBySizes=tt.makeBorderConfig=tt.splitAnsi=tt.normalizeString=void 0;var pft=aL(aS()),hft=aL(Sa()),gft=aL(nS()),mft=oL(),yft=t=>t.replace(/\r\n/g,`
|
|
325
325
|
`);tt.normalizeString=yft;var bft=t=>{let e=(0,gft.default)(t).split(`
|
|
326
|
-
`).map(hft.default),r=[],n=0;return e.forEach(i=>{r.push(i===0?"":(0,pft.default)(t,n,n+i)),n+=i+1}),r};tt.splitAnsi=bft;var vft=t=>({...(0,mft.getBorderCharacters)("honeywell"),...t});tt.makeBorderConfig=vft;var wft=(t,e)=>{let r=0;return e.map(n=>{let i=t.slice(r,r+n);return r+=n,i})};tt.groupBySizes=wft;var _ft=t=>{var e,r;return(r=(e=t.match(/\s+/g))===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0};tt.countSpaceSequence=_ft;var xft=(t,e)=>Array.from({length:e}).fill(Math.floor(t/e)).map((n,i)=>n+(i<t%e?1:0));tt.distributeUnevenly=xft;var Sft=(t,e)=>Array.from({length:e-t+1},(r,n)=>n+t);tt.sequence=Sft;var kft=t=>t.reduce((e,r)=>e+r,0);tt.sumArray=kft;var Eft=t=>t.columns.map(({truncate:e})=>e);tt.extractTruncates=Eft;var Cft=t=>[].concat(...t);tt.flatten=Cft;var Dft=(t,e)=>(0,tt.flatten)(t.map((n,i)=>Array.from({length:n},()=>i)))[e];tt.findOriginalRowIndex=Dft;var Oft=t=>{let{row:e,col:r,colSpan:n=1,rowSpan:i=1}=t;return{bottomRight:{col:r+n-1,row:e+i-1},topLeft:{col:r,row:e}}};tt.calculateRangeCoordinate=Oft;var qft=(t,e)=>t.row===e.row&&t.col===e.col;tt.areCellEqual=qft;var Rft=(t,{topLeft:e,bottomRight:r})=>e.row<=t.row&&t.row<=r.row&&e.col<=t.col&&t.col<=r.col;tt.isCellInRange=Rft});var lL=m(xl=>{"use strict";var Aft=xl&&xl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xl,"__esModule",{value:!0});xl.alignString=void 0;var Pft=Aft(Sa()),Tle=
|
|
326
|
+
`).map(hft.default),r=[],n=0;return e.forEach(i=>{r.push(i===0?"":(0,pft.default)(t,n,n+i)),n+=i+1}),r};tt.splitAnsi=bft;var vft=t=>({...(0,mft.getBorderCharacters)("honeywell"),...t});tt.makeBorderConfig=vft;var wft=(t,e)=>{let r=0;return e.map(n=>{let i=t.slice(r,r+n);return r+=n,i})};tt.groupBySizes=wft;var _ft=t=>{var e,r;return(r=(e=t.match(/\s+/g))===null||e===void 0?void 0:e.length)!==null&&r!==void 0?r:0};tt.countSpaceSequence=_ft;var xft=(t,e)=>Array.from({length:e}).fill(Math.floor(t/e)).map((n,i)=>n+(i<t%e?1:0));tt.distributeUnevenly=xft;var Sft=(t,e)=>Array.from({length:e-t+1},(r,n)=>n+t);tt.sequence=Sft;var kft=t=>t.reduce((e,r)=>e+r,0);tt.sumArray=kft;var Eft=t=>t.columns.map(({truncate:e})=>e);tt.extractTruncates=Eft;var Cft=t=>[].concat(...t);tt.flatten=Cft;var Dft=(t,e)=>(0,tt.flatten)(t.map((n,i)=>Array.from({length:n},()=>i)))[e];tt.findOriginalRowIndex=Dft;var Oft=t=>{let{row:e,col:r,colSpan:n=1,rowSpan:i=1}=t;return{bottomRight:{col:r+n-1,row:e+i-1},topLeft:{col:r,row:e}}};tt.calculateRangeCoordinate=Oft;var qft=(t,e)=>t.row===e.row&&t.col===e.col;tt.areCellEqual=qft;var Rft=(t,{topLeft:e,bottomRight:r})=>e.row<=t.row&&t.row<=r.row&&e.col<=t.col&&t.col<=r.col;tt.isCellInRange=Rft});var lL=m(xl=>{"use strict";var Aft=xl&&xl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xl,"__esModule",{value:!0});xl.alignString=void 0;var Pft=Aft(Sa()),Tle=pr(),uL=(t,e)=>t+" ".repeat(e),Tft=(t,e)=>" ".repeat(e)+t,Mft=(t,e)=>" ".repeat(Math.floor(e/2))+t+" ".repeat(Math.ceil(e/2)),Lft=(t,e)=>{let r=(0,Tle.countSpaceSequence)(t);if(r===0)return uL(t,e);let n=(0,Tle.distributeUnevenly)(e,r);if(Math.max(...n)>3)return uL(t,e);let i=0;return t.replace(/\s+/g,s=>s+" ".repeat(n[i++]))},Fft=(t,e,r)=>{let n=(0,Pft.default)(t);if(n===e)return t;if(n>e)throw new Error("Subject parameter value width cannot be greater than the container width.");if(n===0)return" ".repeat(e);let i=e-n;return r==="left"?uL(t,i):r==="right"?Tft(t,i):r==="justify"?Lft(t,i):Mft(t,i)};xl.alignString=Fft});var cL=m(lS=>{"use strict";Object.defineProperty(lS,"__esModule",{value:!0});lS.alignTableData=void 0;var Ift=lL(),Nft=(t,e)=>t.map((r,n)=>r.map((i,s)=>{var o;let{width:a,alignment:u}=e.columns[s];return((o=e.spanningCellManager)===null||o===void 0?void 0:o.getContainingRange({col:s,row:n},{mapped:!0}))?i:(0,Ift.alignString)(i,a,u)}));lS.alignTableData=Nft});var Fle=m(Sl=>{"use strict";var Lle=Sl&&Sl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Sl,"__esModule",{value:!0});Sl.wrapString=void 0;var Mle=Lle(aS()),jft=Lle(Sa()),$ft=(t,e)=>{let r=t,n=[];do n.push((0,Mle.default)(r,0,e)),r=(0,Mle.default)(r,e).trim();while((0,jft.default)(r));return n};Sl.wrapString=$ft});var Nle=m(kl=>{"use strict";var Ile=kl&&kl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(kl,"__esModule",{value:!0});kl.wrapWord=void 0;var Bft=Ile(aS()),Wft=Ile(nS()),zft=(t,e)=>{let r=(0,Wft.default)(t),n=[],i=new RegExp("(^.{1,"+String(Math.max(e,1))+"}(\\s+|$))|(^.{1,"+String(Math.max(e-1,1))+"}(\\\\|/|_|\\.|,|;|-))");do{let s,o=i.exec(r);if(o){s=o[0],r=r.slice(s.length);let a=s.trim().length,u=s.length-a;n.push([a,u])}else s=r.slice(0,e),r=r.slice(e),n.push([s.length,0])}while(r.length);return n},Uft=(t,e)=>{let r=[],n=0;return zft(t,e).forEach(([i,s])=>{r.push((0,Bft.default)(t,n,n+i)),n+=i+s}),r};kl.wrapWord=Uft});var fS=m(cS=>{"use strict";Object.defineProperty(cS,"__esModule",{value:!0});cS.wrapCell=void 0;var Hft=pr(),Vft=Fle(),Gft=Nle(),Kft=(t,e,r)=>{let n=(0,Hft.splitAnsi)(t);for(let i=0;i<n.length;){let s;r?s=(0,Gft.wrapWord)(n[i],e):s=(0,Vft.wrapString)(n[i],e),n.splice(i,1,...s),i+=s.length}return n};cS.wrapCell=Kft});var jle=m(dS=>{"use strict";Object.defineProperty(dS,"__esModule",{value:!0});dS.calculateCellHeight=void 0;var Yft=fS(),Qft=(t,e,r=!1)=>(0,Yft.wrapCell)(t,e,r).length;dS.calculateCellHeight=Qft});var fL=m(pS=>{"use strict";Object.defineProperty(pS,"__esModule",{value:!0});pS.calculateRowHeights=void 0;var Jft=jle(),$le=pr(),Xft=(t,e)=>{let r=[];for(let[n,i]of t.entries()){let s=1;i.forEach((o,a)=>{var u;let l=(u=e.spanningCellManager)===null||u===void 0?void 0:u.getContainingRange({col:a,row:n});if(!l){let p=(0,Jft.calculateCellHeight)(o,e.columns[a].width,e.columns[a].wrapWord);s=Math.max(s,p);return}let{topLeft:c,bottomRight:f,height:d}=l;if(n===f.row){let p=(0,$le.sumArray)(r.slice(c.row)),h=f.row-c.row,y=(0,$le.sequence)(c.row+1,f.row).filter(g=>{var b;return!(!((b=e.drawHorizontalLine)===null||b===void 0)&&b.call(e,g,t.length))}).length,v=d-p-h+y;s=Math.max(s,v)}}),r.push(s)}return r};pS.calculateRowHeights=Xft});var gS=m(hS=>{"use strict";Object.defineProperty(hS,"__esModule",{value:!0});hS.drawContent=void 0;var Zft=t=>{let{contents:e,separatorGetter:r,drawSeparator:n,spanningCellManager:i,rowIndex:s,elementType:o}=t,a=e.length,u=[];return n(0,a)&&u.push(r(0,a)),e.forEach((l,c)=>{if((!o||o==="border"||o==="row")&&u.push(l),o==="cell"&&s===void 0&&u.push(l),o==="cell"&&s!==void 0){let f=i?.getContainingRange({col:c,row:s});(!f||c===f.topLeft.col)&&u.push(l)}if(c+1<a&&n(c+1,a)){let f=r(c+1,a);if(o==="cell"&&s!==void 0){let d={col:c+1,row:s},p=i?.getContainingRange(d);(!p||p.topLeft.col===d.col)&&u.push(f)}else u.push(f)}}),n(a,a)&&u.push(r(a,a)),u.join("")};hS.drawContent=Zft});var dL=m(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.createTableBorderGetter=Ft.drawBorderBottom=Ft.drawBorderJoin=Ft.drawBorderTop=Ft.drawBorder=Ft.createSeparatorGetter=Ft.drawBorderSegments=void 0;var edt=gS(),tdt=(t,e)=>{let{separator:r,horizontalBorderIndex:n,spanningCellManager:i}=e;return t.map((s,o)=>{let a=r.body.repeat(s);if(n===void 0)return a;let u=i?.getContainingRange({col:o,row:n});if(!u)return a;let{topLeft:l}=u;return n===l.row?a:o!==l.col?"":u.extractBorderContent(n)})};Ft.drawBorderSegments=tdt;var rdt=t=>{let{separator:e,spanningCellManager:r,horizontalBorderIndex:n,rowCount:i}=t;return(s,o)=>{let a=r?.inSameRange;if(n!==void 0&&a){let u={col:s,row:n-1},l={col:s-1,row:n},c={col:s-1,row:n-1},f={col:s,row:n},d=[[c,u],[u,f],[f,l],[l,c]];if(s===0)return a(f,u)&&e.bodyJoinOuter?e.bodyJoinOuter:e.left;if(s===o)return a(c,l)&&e.bodyJoinOuter?e.bodyJoinOuter:e.right;if(n===0)return a(f,l)?e.body:e.join;if(n===i)return a(u,c)?e.body:e.join;let p=d.map(h=>a(...h)).filter(Boolean).length;if(p===0)return e.join;if(p===4)return"";if(p===2)return a(...d[1])&&a(...d[3])&&e.bodyJoinInner?e.bodyJoinInner:e.body;if(p===1){if(!e.joinRight||!e.joinLeft||!e.joinUp||!e.joinDown)throw new Error(`Can not get border separator for position [${n}, ${s}]`);return a(...d[0])?e.joinDown:a(...d[1])?e.joinLeft:a(...d[2])?e.joinUp:e.joinRight}throw new Error("Invalid case")}return s===0?e.left:s===o?e.right:e.join}};Ft.createSeparatorGetter=rdt;var ndt=(t,e)=>{let r=(0,Ft.drawBorderSegments)(t,e),{drawVerticalLine:n,horizontalBorderIndex:i,spanningCellManager:s}=e;return(0,edt.drawContent)({contents:r,drawSeparator:n,elementType:"border",rowIndex:i,separatorGetter:(0,Ft.createSeparatorGetter)(e),spanningCellManager:s})+`
|
|
327
327
|
`};Ft.drawBorder=ndt;var idt=(t,e)=>{let{border:r}=e,n=(0,Ft.drawBorder)(t,{...e,separator:{body:r.topBody,join:r.topJoin,left:r.topLeft,right:r.topRight}});return n===`
|
|
328
328
|
`?"":n};Ft.drawBorderTop=idt;var sdt=(t,e)=>{let{border:r}=e;return(0,Ft.drawBorder)(t,{...e,separator:{body:r.joinBody,bodyJoinInner:r.bodyJoin,bodyJoinOuter:r.bodyLeft,join:r.joinJoin,joinDown:r.joinMiddleDown,joinLeft:r.joinMiddleLeft,joinRight:r.joinMiddleRight,joinUp:r.joinMiddleUp,left:r.joinLeft,right:r.joinRight}})};Ft.drawBorderJoin=sdt;var odt=(t,e)=>{let{border:r}=e;return(0,Ft.drawBorder)(t,{...e,separator:{body:r.bottomBody,join:r.bottomJoin,left:r.bottomLeft,right:r.bottomRight}})};Ft.drawBorderBottom=odt;var adt=(t,e)=>(r,n)=>{let i={...e,horizontalBorderIndex:r};return r===0?(0,Ft.drawBorderTop)(t,i):r===n?(0,Ft.drawBorderBottom)(t,i):(0,Ft.drawBorderJoin)(t,i)};Ft.createTableBorderGetter=adt});var pL=m(mS=>{"use strict";Object.defineProperty(mS,"__esModule",{value:!0});mS.drawRow=void 0;var udt=gS(),ldt=(t,e)=>{let{border:r,drawVerticalLine:n,rowIndex:i,spanningCellManager:s}=e;return(0,udt.drawContent)({contents:t,drawSeparator:n,elementType:"cell",rowIndex:i,separatorGetter:(o,a)=>o===0?r.bodyLeft:o===a?r.bodyRight:r.bodyJoin,spanningCellManager:s})+`
|
|
329
|
-
`};mS.drawRow=ldt});var Wle=m((S3t,Ble)=>{"use strict";Ble.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var o=s[i];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}});var Ule=m(hL=>{"use strict";Object.defineProperty(hL,"__esModule",{value:!0});var zle=Wle();zle.code='require("ajv/dist/runtime/equal").default';hL.default=zle});var Qle=m(mL=>{"use strict";mL["config.json"]=Kle;var cdt={$id:"config.json",$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{border:{$ref:"shared.json#/definitions/borders"},header:{type:"object",properties:{content:{type:"string"},alignment:{$ref:"shared.json#/definitions/alignment"},wrapWord:{type:"boolean"},truncate:{type:"integer"},paddingLeft:{type:"integer"},paddingRight:{type:"integer"}},required:["content"],additionalProperties:!1},columns:{$ref:"shared.json#/definitions/columns"},columnDefault:{$ref:"shared.json#/definitions/column"},drawVerticalLine:{typeof:"function"},drawHorizontalLine:{typeof:"function"},singleLine:{typeof:"boolean"},spanningCells:{type:"array",items:{type:"object",properties:{col:{type:"integer",minimum:0},row:{type:"integer",minimum:0},colSpan:{type:"integer",minimum:1},rowSpan:{type:"integer",minimum:1},alignment:{$ref:"shared.json#/definitions/alignment"},verticalAlignment:{$ref:"shared.json#/definitions/verticalAlignment"},wrapWord:{type:"boolean"},truncate:{type:"integer"},paddingLeft:{type:"integer"},paddingRight:{type:"integer"}},required:["row","col"],additionalProperties:!1}}},additionalProperties:!1},Hle={type:"object",properties:{topBody:{$ref:"#/definitions/border"},topJoin:{$ref:"#/definitions/border"},topLeft:{$ref:"#/definitions/border"},topRight:{$ref:"#/definitions/border"},bottomBody:{$ref:"#/definitions/border"},bottomJoin:{$ref:"#/definitions/border"},bottomLeft:{$ref:"#/definitions/border"},bottomRight:{$ref:"#/definitions/border"},bodyLeft:{$ref:"#/definitions/border"},bodyRight:{$ref:"#/definitions/border"},bodyJoin:{$ref:"#/definitions/border"},headerJoin:{$ref:"#/definitions/border"},joinBody:{$ref:"#/definitions/border"},joinLeft:{$ref:"#/definitions/border"},joinRight:{$ref:"#/definitions/border"},joinJoin:{$ref:"#/definitions/border"},joinMiddleUp:{$ref:"#/definitions/border"},joinMiddleDown:{$ref:"#/definitions/border"},joinMiddleLeft:{$ref:"#/definitions/border"},joinMiddleRight:{$ref:"#/definitions/border"}},additionalProperties:!1},gL=Object.prototype.hasOwnProperty;function ee(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(typeof t!="string"){let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[a]:s.push(a),o++}return ee.errors=s,o===0}function yS(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let a in t)if(!gL.call(Hle.properties,a)){let u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};s===null?s=[u]:s.push(u),o++}t.topBody!==void 0&&(ee(t.topBody,{instancePath:e+"/topBody",parentData:t,parentDataProperty:"topBody",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.topJoin!==void 0&&(ee(t.topJoin,{instancePath:e+"/topJoin",parentData:t,parentDataProperty:"topJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.topLeft!==void 0&&(ee(t.topLeft,{instancePath:e+"/topLeft",parentData:t,parentDataProperty:"topLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.topRight!==void 0&&(ee(t.topRight,{instancePath:e+"/topRight",parentData:t,parentDataProperty:"topRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomBody!==void 0&&(ee(t.bottomBody,{instancePath:e+"/bottomBody",parentData:t,parentDataProperty:"bottomBody",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomJoin!==void 0&&(ee(t.bottomJoin,{instancePath:e+"/bottomJoin",parentData:t,parentDataProperty:"bottomJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomLeft!==void 0&&(ee(t.bottomLeft,{instancePath:e+"/bottomLeft",parentData:t,parentDataProperty:"bottomLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomRight!==void 0&&(ee(t.bottomRight,{instancePath:e+"/bottomRight",parentData:t,parentDataProperty:"bottomRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bodyLeft!==void 0&&(ee(t.bodyLeft,{instancePath:e+"/bodyLeft",parentData:t,parentDataProperty:"bodyLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bodyRight!==void 0&&(ee(t.bodyRight,{instancePath:e+"/bodyRight",parentData:t,parentDataProperty:"bodyRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bodyJoin!==void 0&&(ee(t.bodyJoin,{instancePath:e+"/bodyJoin",parentData:t,parentDataProperty:"bodyJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.headerJoin!==void 0&&(ee(t.headerJoin,{instancePath:e+"/headerJoin",parentData:t,parentDataProperty:"headerJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinBody!==void 0&&(ee(t.joinBody,{instancePath:e+"/joinBody",parentData:t,parentDataProperty:"joinBody",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinLeft!==void 0&&(ee(t.joinLeft,{instancePath:e+"/joinLeft",parentData:t,parentDataProperty:"joinLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinRight!==void 0&&(ee(t.joinRight,{instancePath:e+"/joinRight",parentData:t,parentDataProperty:"joinRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinJoin!==void 0&&(ee(t.joinJoin,{instancePath:e+"/joinJoin",parentData:t,parentDataProperty:"joinJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleUp!==void 0&&(ee(t.joinMiddleUp,{instancePath:e+"/joinMiddleUp",parentData:t,parentDataProperty:"joinMiddleUp",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleDown!==void 0&&(ee(t.joinMiddleDown,{instancePath:e+"/joinMiddleDown",parentData:t,parentDataProperty:"joinMiddleDown",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleLeft!==void 0&&(ee(t.joinMiddleLeft,{instancePath:e+"/joinMiddleLeft",parentData:t,parentDataProperty:"joinMiddleLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleRight!==void 0&&(ee(t.joinMiddleRight,{instancePath:e+"/joinMiddleRight",parentData:t,parentDataProperty:"joinMiddleRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length))}else{let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[a]:s.push(a),o++}return yS.errors=s,o===0}var Vle={type:"string",enum:["left","right","center","justify"]},E3t=Ule().default;function ka(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(typeof t!="string"){let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[a]:s.push(a),o++}if(!(t==="left"||t==="right"||t==="center"||t==="justify")){let a={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Vle.enum},message:"must be equal to one of the allowed values"};s===null?s=[a]:s.push(a),o++}return ka.errors=s,o===0}var kS=new RegExp("^[0-9]+$","u");function Ii(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(typeof t!="string"){let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[a]:s.push(a),o++}if(!(t==="left"||t==="right"||t==="center"||t==="justify")){let a={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Vle.enum},message:"must be equal to one of the allowed values"};s===null?s=[a]:s.push(a),o++}return Ii.errors=s,o===0}var Gle={type:"string",enum:["top","middle","bottom"]};function Ni(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(typeof t!="string"){let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[a]:s.push(a),o++}if(!(t==="top"||t==="middle"||t==="bottom")){let a={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Gle.enum},message:"must be equal to one of the allowed values"};s===null?s=[a]:s.push(a),o++}return Ni.errors=s,o===0}function Sn(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let a in t)if(!(a==="alignment"||a==="verticalAlignment"||a==="width"||a==="wrapWord"||a==="truncate"||a==="paddingLeft"||a==="paddingRight")){let u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};s===null?s=[u]:s.push(u),o++}if(t.alignment!==void 0&&(Ii(t.alignment,{instancePath:e+"/alignment",parentData:t,parentDataProperty:"alignment",rootData:i})||(s=s===null?Ii.errors:s.concat(Ii.errors),o=s.length)),t.verticalAlignment!==void 0&&(Ni(t.verticalAlignment,{instancePath:e+"/verticalAlignment",parentData:t,parentDataProperty:"verticalAlignment",rootData:i})||(s=s===null?Ni.errors:s.concat(Ni.errors),o=s.length)),t.width!==void 0){let a=t.width;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let u={instancePath:e+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};s===null?s=[u]:s.push(u),o++}}if(t.wrapWord!==void 0&&typeof t.wrapWord!="boolean"){let a={instancePath:e+"/wrapWord",schemaPath:"#/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[a]:s.push(a),o++}if(t.truncate!==void 0){let a=t.truncate;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}if(t.paddingLeft!==void 0){let a=t.paddingLeft;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}if(t.paddingRight!==void 0){let a=t.paddingRight;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}}else{let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[a]:s.push(a),o++}return Sn.errors=s,o===0}function bS(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0,a=o,u=!1,l=null,c=o;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let p in t)if(!kS.test(p)){let h={instancePath:e,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"};s===null?s=[h]:s.push(h),o++}for(let p in t)kS.test(p)&&(Sn(t[p],{instancePath:e+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:p,rootData:i})||(s=s===null?Sn.errors:s.concat(Sn.errors),o=s.length))}else{let p={instancePath:e,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[p]:s.push(p),o++}var d=c===o;d&&(u=!0,l=0);let f=o;if(Array.isArray(t)){let p=t.length;for(let h=0;h<p;h++)Sn(t[h],{instancePath:e+"/"+h,parentData:t,parentDataProperty:h,rootData:i})||(s=s===null?Sn.errors:s.concat(Sn.errors),o=s.length)}else{let p={instancePath:e,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[p]:s.push(p),o++}var d=f===o;if(d&&u?(u=!1,l=[l,1]):d&&(u=!0,l=1),u)o=a,s!==null&&(a?s.length=a:s=null);else{let p={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:l},message:"must match exactly one schema in oneOf"};s===null?s=[p]:s.push(p),o++}return bS.errors=s,o===0}function vS(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let a in t)if(!(a==="alignment"||a==="verticalAlignment"||a==="width"||a==="wrapWord"||a==="truncate"||a==="paddingLeft"||a==="paddingRight")){let u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};s===null?s=[u]:s.push(u),o++}if(t.alignment!==void 0&&(Ii(t.alignment,{instancePath:e+"/alignment",parentData:t,parentDataProperty:"alignment",rootData:i})||(s=s===null?Ii.errors:s.concat(Ii.errors),o=s.length)),t.verticalAlignment!==void 0&&(Ni(t.verticalAlignment,{instancePath:e+"/verticalAlignment",parentData:t,parentDataProperty:"verticalAlignment",rootData:i})||(s=s===null?Ni.errors:s.concat(Ni.errors),o=s.length)),t.width!==void 0){let a=t.width;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let u={instancePath:e+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};s===null?s=[u]:s.push(u),o++}}if(t.wrapWord!==void 0&&typeof t.wrapWord!="boolean"){let a={instancePath:e+"/wrapWord",schemaPath:"#/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[a]:s.push(a),o++}if(t.truncate!==void 0){let a=t.truncate;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}if(t.paddingLeft!==void 0){let a=t.paddingLeft;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}if(t.paddingRight!==void 0){let a=t.paddingRight;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}}else{let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[a]:s.push(a),o++}return vS.errors=s,o===0}function wS(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(typeof t!="string"){let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[a]:s.push(a),o++}if(!(t==="top"||t==="middle"||t==="bottom")){let a={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Gle.enum},message:"must be equal to one of the allowed values"};s===null?s=[a]:s.push(a),o++}return wS.errors=s,o===0}function Kle(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let a in t)if(!(a==="border"||a==="header"||a==="columns"||a==="columnDefault"||a==="drawVerticalLine"||a==="drawHorizontalLine"||a==="singleLine"||a==="spanningCells")){let u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};s===null?s=[u]:s.push(u),o++}if(t.border!==void 0&&(yS(t.border,{instancePath:e+"/border",parentData:t,parentDataProperty:"border",rootData:i})||(s=s===null?yS.errors:s.concat(yS.errors),o=s.length)),t.header!==void 0){let a=t.header;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.content===void 0){let u={instancePath:e+"/header",schemaPath:"#/properties/header/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};s===null?s=[u]:s.push(u),o++}for(let u in a)if(!(u==="content"||u==="alignment"||u==="wrapWord"||u==="truncate"||u==="paddingLeft"||u==="paddingRight")){let l={instancePath:e+"/header",schemaPath:"#/properties/header/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:u},message:"must NOT have additional properties"};s===null?s=[l]:s.push(l),o++}if(a.content!==void 0&&typeof a.content!="string"){let u={instancePath:e+"/header/content",schemaPath:"#/properties/header/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[u]:s.push(u),o++}if(a.alignment!==void 0&&(ka(a.alignment,{instancePath:e+"/header/alignment",parentData:a,parentDataProperty:"alignment",rootData:i})||(s=s===null?ka.errors:s.concat(ka.errors),o=s.length)),a.wrapWord!==void 0&&typeof a.wrapWord!="boolean"){let u={instancePath:e+"/header/wrapWord",schemaPath:"#/properties/header/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[u]:s.push(u),o++}if(a.truncate!==void 0){let u=a.truncate;if(!(typeof u=="number"&&!(u%1)&&!isNaN(u)&&isFinite(u))){let l={instancePath:e+"/header/truncate",schemaPath:"#/properties/header/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[l]:s.push(l),o++}}if(a.paddingLeft!==void 0){let u=a.paddingLeft;if(!(typeof u=="number"&&!(u%1)&&!isNaN(u)&&isFinite(u))){let l={instancePath:e+"/header/paddingLeft",schemaPath:"#/properties/header/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[l]:s.push(l),o++}}if(a.paddingRight!==void 0){let u=a.paddingRight;if(!(typeof u=="number"&&!(u%1)&&!isNaN(u)&&isFinite(u))){let l={instancePath:e+"/header/paddingRight",schemaPath:"#/properties/header/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[l]:s.push(l),o++}}}else{let u={instancePath:e+"/header",schemaPath:"#/properties/header/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[u]:s.push(u),o++}}if(t.columns!==void 0&&(bS(t.columns,{instancePath:e+"/columns",parentData:t,parentDataProperty:"columns",rootData:i})||(s=s===null?bS.errors:s.concat(bS.errors),o=s.length)),t.columnDefault!==void 0&&(vS(t.columnDefault,{instancePath:e+"/columnDefault",parentData:t,parentDataProperty:"columnDefault",rootData:i})||(s=s===null?vS.errors:s.concat(vS.errors),o=s.length)),t.drawVerticalLine!==void 0&&typeof t.drawVerticalLine!="function"){let a={instancePath:e+"/drawVerticalLine",schemaPath:"#/properties/drawVerticalLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};s===null?s=[a]:s.push(a),o++}if(t.drawHorizontalLine!==void 0&&typeof t.drawHorizontalLine!="function"){let a={instancePath:e+"/drawHorizontalLine",schemaPath:"#/properties/drawHorizontalLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};s===null?s=[a]:s.push(a),o++}if(t.singleLine!==void 0&&typeof t.singleLine!="boolean"){let a={instancePath:e+"/singleLine",schemaPath:"#/properties/singleLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};s===null?s=[a]:s.push(a),o++}if(t.spanningCells!==void 0){let a=t.spanningCells;if(Array.isArray(a)){let u=a.length;for(let l=0;l<u;l++){let c=a[l];if(c&&typeof c=="object"&&!Array.isArray(c)){if(c.row===void 0){let f={instancePath:e+"/spanningCells/"+l,schemaPath:"#/properties/spanningCells/items/required",keyword:"required",params:{missingProperty:"row"},message:"must have required property 'row'"};s===null?s=[f]:s.push(f),o++}if(c.col===void 0){let f={instancePath:e+"/spanningCells/"+l,schemaPath:"#/properties/spanningCells/items/required",keyword:"required",params:{missingProperty:"col"},message:"must have required property 'col'"};s===null?s=[f]:s.push(f),o++}for(let f in c)if(!gL.call(cdt.properties.spanningCells.items.properties,f)){let d={instancePath:e+"/spanningCells/"+l,schemaPath:"#/properties/spanningCells/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};s===null?s=[d]:s.push(d),o++}if(c.col!==void 0){let f=c.col;if(!(typeof f=="number"&&!(f%1)&&!isNaN(f)&&isFinite(f))){let d={instancePath:e+"/spanningCells/"+l+"/col",schemaPath:"#/properties/spanningCells/items/properties/col/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[d]:s.push(d),o++}if(typeof f=="number"&&isFinite(f)&&(f<0||isNaN(f))){let d={instancePath:e+"/spanningCells/"+l+"/col",schemaPath:"#/properties/spanningCells/items/properties/col/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};s===null?s=[d]:s.push(d),o++}}if(c.row!==void 0){let f=c.row;if(!(typeof f=="number"&&!(f%1)&&!isNaN(f)&&isFinite(f))){let d={instancePath:e+"/spanningCells/"+l+"/row",schemaPath:"#/properties/spanningCells/items/properties/row/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[d]:s.push(d),o++}if(typeof f=="number"&&isFinite(f)&&(f<0||isNaN(f))){let d={instancePath:e+"/spanningCells/"+l+"/row",schemaPath:"#/properties/spanningCells/items/properties/row/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};s===null?s=[d]:s.push(d),o++}}if(c.colSpan!==void 0){let f=c.colSpan;if(!(typeof f=="number"&&!(f%1)&&!isNaN(f)&&isFinite(f))){let d={instancePath:e+"/spanningCells/"+l+"/colSpan",schemaPath:"#/properties/spanningCells/items/properties/colSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[d]:s.push(d),o++}if(typeof f=="number"&&isFinite(f)&&(f<1||isNaN(f))){let d={instancePath:e+"/spanningCells/"+l+"/colSpan",schemaPath:"#/properties/spanningCells/items/properties/colSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};s===null?s=[d]:s.push(d),o++}}if(c.rowSpan!==void 0){let f=c.rowSpan;if(!(typeof f=="number"&&!(f%1)&&!isNaN(f)&&isFinite(f))){let d={instancePath:e+"/spanningCells/"+l+"/rowSpan",schemaPath:"#/properties/spanningCells/items/properties/rowSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[d]:s.push(d),o++}if(typeof f=="number"&&isFinite(f)&&(f<1||isNaN(f))){let d={instancePath:e+"/spanningCells/"+l+"/rowSpan",schemaPath:"#/properties/spanningCells/items/properties/rowSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};s===null?s=[d]:s.push(d),o++}}if(c.alignment!==void 0&&(ka(c.alignment,{instancePath:e+"/spanningCells/"+l+"/alignment",parentData:c,parentDataProperty:"alignment",rootData:i})||(s=s===null?ka.errors:s.concat(ka.errors),o=s.length)),c.verticalAlignment!==void 0&&(wS(c.verticalAlignment,{instancePath:e+"/spanningCells/"+l+"/verticalAlignment",parentData:c,parentDataProperty:"verticalAlignment",rootData:i})||(s=s===null?wS.errors:s.concat(wS.errors),o=s.length)),c.wrapWord!==void 0&&typeof c.wrapWord!="boolean"){let f={instancePath:e+"/spanningCells/"+l+"/wrapWord",schemaPath:"#/properties/spanningCells/items/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[f]:s.push(f),o++}if(c.truncate!==void 0){let f=c.truncate;if(!(typeof f=="number"&&!(f%1)&&!isNaN(f)&&isFinite(f))){let d={instancePath:e+"/spanningCells/"+l+"/truncate",schemaPath:"#/properties/spanningCells/items/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[d]:s.push(d),o++}}if(c.paddingLeft!==void 0){let f=c.paddingLeft;if(!(typeof f=="number"&&!(f%1)&&!isNaN(f)&&isFinite(f))){let d={instancePath:e+"/spanningCells/"+l+"/paddingLeft",schemaPath:"#/properties/spanningCells/items/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[d]:s.push(d),o++}}if(c.paddingRight!==void 0){let f=c.paddingRight;if(!(typeof f=="number"&&!(f%1)&&!isNaN(f)&&isFinite(f))){let d={instancePath:e+"/spanningCells/"+l+"/paddingRight",schemaPath:"#/properties/spanningCells/items/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[d]:s.push(d),o++}}}else{let f={instancePath:e+"/spanningCells/"+l,schemaPath:"#/properties/spanningCells/items/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[f]:s.push(f),o++}}}else{let u={instancePath:e+"/spanningCells",schemaPath:"#/properties/spanningCells/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[u]:s.push(u),o++}}}else{let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[a]:s.push(a),o++}return Kle.errors=s,o===0}mL["streamConfig.json"]=Yle;function _S(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let a in t)if(!gL.call(Hle.properties,a)){let u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};s===null?s=[u]:s.push(u),o++}t.topBody!==void 0&&(ee(t.topBody,{instancePath:e+"/topBody",parentData:t,parentDataProperty:"topBody",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.topJoin!==void 0&&(ee(t.topJoin,{instancePath:e+"/topJoin",parentData:t,parentDataProperty:"topJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.topLeft!==void 0&&(ee(t.topLeft,{instancePath:e+"/topLeft",parentData:t,parentDataProperty:"topLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.topRight!==void 0&&(ee(t.topRight,{instancePath:e+"/topRight",parentData:t,parentDataProperty:"topRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomBody!==void 0&&(ee(t.bottomBody,{instancePath:e+"/bottomBody",parentData:t,parentDataProperty:"bottomBody",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomJoin!==void 0&&(ee(t.bottomJoin,{instancePath:e+"/bottomJoin",parentData:t,parentDataProperty:"bottomJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomLeft!==void 0&&(ee(t.bottomLeft,{instancePath:e+"/bottomLeft",parentData:t,parentDataProperty:"bottomLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomRight!==void 0&&(ee(t.bottomRight,{instancePath:e+"/bottomRight",parentData:t,parentDataProperty:"bottomRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bodyLeft!==void 0&&(ee(t.bodyLeft,{instancePath:e+"/bodyLeft",parentData:t,parentDataProperty:"bodyLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bodyRight!==void 0&&(ee(t.bodyRight,{instancePath:e+"/bodyRight",parentData:t,parentDataProperty:"bodyRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bodyJoin!==void 0&&(ee(t.bodyJoin,{instancePath:e+"/bodyJoin",parentData:t,parentDataProperty:"bodyJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.headerJoin!==void 0&&(ee(t.headerJoin,{instancePath:e+"/headerJoin",parentData:t,parentDataProperty:"headerJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinBody!==void 0&&(ee(t.joinBody,{instancePath:e+"/joinBody",parentData:t,parentDataProperty:"joinBody",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinLeft!==void 0&&(ee(t.joinLeft,{instancePath:e+"/joinLeft",parentData:t,parentDataProperty:"joinLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinRight!==void 0&&(ee(t.joinRight,{instancePath:e+"/joinRight",parentData:t,parentDataProperty:"joinRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinJoin!==void 0&&(ee(t.joinJoin,{instancePath:e+"/joinJoin",parentData:t,parentDataProperty:"joinJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleUp!==void 0&&(ee(t.joinMiddleUp,{instancePath:e+"/joinMiddleUp",parentData:t,parentDataProperty:"joinMiddleUp",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleDown!==void 0&&(ee(t.joinMiddleDown,{instancePath:e+"/joinMiddleDown",parentData:t,parentDataProperty:"joinMiddleDown",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleLeft!==void 0&&(ee(t.joinMiddleLeft,{instancePath:e+"/joinMiddleLeft",parentData:t,parentDataProperty:"joinMiddleLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleRight!==void 0&&(ee(t.joinMiddleRight,{instancePath:e+"/joinMiddleRight",parentData:t,parentDataProperty:"joinMiddleRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length))}else{let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[a]:s.push(a),o++}return _S.errors=s,o===0}function xS(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0,a=o,u=!1,l=null,c=o;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let p in t)if(!kS.test(p)){let h={instancePath:e,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"};s===null?s=[h]:s.push(h),o++}for(let p in t)kS.test(p)&&(Sn(t[p],{instancePath:e+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:p,rootData:i})||(s=s===null?Sn.errors:s.concat(Sn.errors),o=s.length))}else{let p={instancePath:e,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[p]:s.push(p),o++}var d=c===o;d&&(u=!0,l=0);let f=o;if(Array.isArray(t)){let p=t.length;for(let h=0;h<p;h++)Sn(t[h],{instancePath:e+"/"+h,parentData:t,parentDataProperty:h,rootData:i})||(s=s===null?Sn.errors:s.concat(Sn.errors),o=s.length)}else{let p={instancePath:e,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[p]:s.push(p),o++}var d=f===o;if(d&&u?(u=!1,l=[l,1]):d&&(u=!0,l=1),u)o=a,s!==null&&(a?s.length=a:s=null);else{let p={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:l},message:"must match exactly one schema in oneOf"};s===null?s=[p]:s.push(p),o++}return xS.errors=s,o===0}function SS(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let a in t)if(!(a==="alignment"||a==="verticalAlignment"||a==="width"||a==="wrapWord"||a==="truncate"||a==="paddingLeft"||a==="paddingRight")){let u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};s===null?s=[u]:s.push(u),o++}if(t.alignment!==void 0&&(Ii(t.alignment,{instancePath:e+"/alignment",parentData:t,parentDataProperty:"alignment",rootData:i})||(s=s===null?Ii.errors:s.concat(Ii.errors),o=s.length)),t.verticalAlignment!==void 0&&(Ni(t.verticalAlignment,{instancePath:e+"/verticalAlignment",parentData:t,parentDataProperty:"verticalAlignment",rootData:i})||(s=s===null?Ni.errors:s.concat(Ni.errors),o=s.length)),t.width!==void 0){let a=t.width;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let u={instancePath:e+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};s===null?s=[u]:s.push(u),o++}}if(t.wrapWord!==void 0&&typeof t.wrapWord!="boolean"){let a={instancePath:e+"/wrapWord",schemaPath:"#/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[a]:s.push(a),o++}if(t.truncate!==void 0){let a=t.truncate;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}if(t.paddingLeft!==void 0){let a=t.paddingLeft;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}if(t.paddingRight!==void 0){let a=t.paddingRight;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}}else{let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[a]:s.push(a),o++}return SS.errors=s,o===0}function Yle(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.columnDefault===void 0){let a={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columnDefault"},message:"must have required property 'columnDefault'"};s===null?s=[a]:s.push(a),o++}if(t.columnCount===void 0){let a={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columnCount"},message:"must have required property 'columnCount'"};s===null?s=[a]:s.push(a),o++}for(let a in t)if(!(a==="border"||a==="columns"||a==="columnDefault"||a==="columnCount"||a==="drawVerticalLine")){let u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};s===null?s=[u]:s.push(u),o++}if(t.border!==void 0&&(_S(t.border,{instancePath:e+"/border",parentData:t,parentDataProperty:"border",rootData:i})||(s=s===null?_S.errors:s.concat(_S.errors),o=s.length)),t.columns!==void 0&&(xS(t.columns,{instancePath:e+"/columns",parentData:t,parentDataProperty:"columns",rootData:i})||(s=s===null?xS.errors:s.concat(xS.errors),o=s.length)),t.columnDefault!==void 0&&(SS(t.columnDefault,{instancePath:e+"/columnDefault",parentData:t,parentDataProperty:"columnDefault",rootData:i})||(s=s===null?SS.errors:s.concat(SS.errors),o=s.length)),t.columnCount!==void 0){let a=t.columnCount;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/columnCount",schemaPath:"#/properties/columnCount/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let u={instancePath:e+"/columnCount",schemaPath:"#/properties/columnCount/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};s===null?s=[u]:s.push(u),o++}}if(t.drawVerticalLine!==void 0&&typeof t.drawVerticalLine!="function"){let a={instancePath:e+"/drawVerticalLine",schemaPath:"#/properties/drawVerticalLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};s===null?s=[a]:s.push(a),o++}}else{let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[a]:s.push(a),o++}return Yle.errors=s,o===0}});var yL=m(El=>{"use strict";var fdt=El&&El.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(El,"__esModule",{value:!0});El.validateConfig=void 0;var ddt=fdt(Qle()),pdt=(t,e)=>{let r=ddt.default[t];if(!r(e)&&r.errors){let n=r.errors.map(i=>({message:i.message,params:i.params,schemaPath:i.schemaPath}));throw console.log("config",e),console.log("errors",n),new Error("Invalid config.")}};El.validateConfig=pdt});var Jle=m(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});ES.makeStreamConfig=void 0;var hdt=dr(),gdt=yL(),mdt=(t,e={},r)=>Array.from({length:t}).map((n,i)=>({alignment:"left",paddingLeft:1,paddingRight:1,truncate:Number.POSITIVE_INFINITY,verticalAlignment:"top",wrapWord:!1,...r,...e[i]})),ydt=t=>{if((0,gdt.validateConfig)("streamConfig.json",t),t.columnDefault.width===void 0)throw new Error("Must provide config.columnDefault.width when creating a stream.");return{drawVerticalLine:()=>!0,...t,border:(0,hdt.makeBorderConfig)(t.border),columns:mdt(t.columnCount,t.columns,t.columnDefault)}};ES.makeStreamConfig=ydt});var DS=m(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.mapDataUsingRowHeights=Ea.padCellVertically=void 0;var bdt=dr(),vdt=fS(),CS=t=>new Array(t).fill(""),wdt=(t,e,r)=>{let n=e-t.length;return r==="top"?[...t,...CS(n)]:r==="bottom"?[...CS(n),...t]:[...CS(Math.floor(n/2)),...t,...CS(Math.ceil(n/2))]};Ea.padCellVertically=wdt;var _dt=(t,e,r)=>{let n=t[0].length,i=t.map((s,o)=>{let a=e[o],u=Array.from({length:a},()=>new Array(n).fill(""));return s.forEach((l,c)=>{var f;let d=(f=r.spanningCellManager)===null||f===void 0?void 0:f.getContainingRange({col:c,row:o});if(d){d.extractCellContent(o).forEach((y,v)=>{u[v][c]=y});return}let p=(0,vdt.wrapCell)(l,r.columns[c].width,r.columns[c].wrapWord);(0,Ea.padCellVertically)(p,a,r.columns[c].verticalAlignment).forEach((y,v)=>{u[v][c]=y})}),u});return(0,bdt.flatten)(i)};Ea.mapDataUsingRowHeights=_dt});var OS=m(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.padTableData=Ca.padString=void 0;var xdt=(t,e,r)=>" ".repeat(e)+t+" ".repeat(r);Ca.padString=xdt;var Sdt=(t,e)=>t.map((r,n)=>r.map((i,s)=>{var o;if((o=e.spanningCellManager)===null||o===void 0?void 0:o.getContainingRange({col:s,row:n},{mapped:!0}))return i;let{paddingLeft:u,paddingRight:l}=e.columns[s];return(0,Ca.padString)(i,u,l)}));Ca.padTableData=Sdt});var bL=m(qS=>{"use strict";Object.defineProperty(qS,"__esModule",{value:!0});qS.stringifyTableData=void 0;var kdt=dr(),Edt=t=>t.map(e=>e.map(r=>(0,kdt.normalizeString)(String(r))));qS.stringifyTableData=Edt});var wce=m((np,Cl)=>{var Cdt=30,Ddt="...",vL=1/0,Odt=17976931348623157e292,Xle=0/0,qdt="[object RegExp]",Rdt="[object Symbol]",Adt=/^\s+|\s+$/g,Pdt=/\w*$/,Tdt=/^[-+]0x[0-9a-f]+$/i,Mdt=/^0b[01]+$/i,Ldt=/^0o[0-7]+$/i,kL="\\ud800-\\udfff",ace="\\u0300-\\u036f\\ufe20-\\ufe23",uce="\\u20d0-\\u20f0",lce="\\ufe0e\\ufe0f",Fdt="["+kL+"]",wL="["+ace+uce+"]",_L="\\ud83c[\\udffb-\\udfff]",Idt="(?:"+wL+"|"+_L+")",cce="[^"+kL+"]",fce="(?:\\ud83c[\\udde6-\\uddff]){2}",dce="[\\ud800-\\udbff][\\udc00-\\udfff]",pce="\\u200d",hce=Idt+"?",gce="["+lce+"]?",Ndt="(?:"+pce+"(?:"+[cce,fce,dce].join("|")+")"+gce+hce+")*",jdt=gce+hce+Ndt,$dt="(?:"+[cce+wL+"?",wL,fce,dce,Fdt].join("|")+")",xL=RegExp(_L+"(?="+_L+")|"+$dt+jdt,"g"),Bdt=RegExp("["+pce+kL+ace+uce+lce+"]"),Wdt=parseInt,mce=typeof global=="object"&&global&&global.Object===Object&&global,zdt=typeof self=="object"&&self&&self.Object===Object&&self,Udt=mce||zdt||Function("return this")(),yce=typeof np=="object"&&np&&!np.nodeType&&np,Zle=yce&&typeof Cl=="object"&&Cl&&!Cl.nodeType&&Cl,Hdt=Zle&&Zle.exports===yce,ece=Hdt&&mce.process,tce=function(){try{return ece&&ece.binding("util")}catch{}}(),rce=tce&&tce.isRegExp,Vdt=Kdt("length");function Gdt(t){return t.split("")}function Kdt(t){return function(e){return e?.[t]}}function Ydt(t){return function(e){return t(e)}}function EL(t){return Bdt.test(t)}function Qdt(t){return EL(t)?Xdt(t):Vdt(t)}function Jdt(t){return EL(t)?Zdt(t):Gdt(t)}function Xdt(t){for(var e=xL.lastIndex=0;xL.test(t);)e++;return e}function Zdt(t){return t.match(xL)||[]}var ept=Object.prototype,bce=ept.toString,nce=Udt.Symbol,ice=nce?nce.prototype:void 0,sce=ice?ice.toString:void 0;function tpt(t){return RS(t)&&bce.call(t)==qdt}function rpt(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),r=r>i?i:r,r<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var s=Array(i);++n<i;)s[n]=t[n+e];return s}function SL(t){if(typeof t=="string")return t;if(vce(t))return sce?sce.call(t):"";var e=t+"";return e=="0"&&1/t==-vL?"-0":e}function npt(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:rpt(t,e,r)}function RS(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function ipt(t){return!!t&&typeof t=="object"}var spt=rce?Ydt(rce):tpt;function vce(t){return typeof t=="symbol"||ipt(t)&&bce.call(t)==Rdt}function opt(t){if(!t)return t===0?t:0;if(t=upt(t),t===vL||t===-vL){var e=t<0?-1:1;return e*Odt}return t===t?t:0}function apt(t){var e=opt(t),r=e%1;return e===e?r?e-r:e:0}function upt(t){if(typeof t=="number")return t;if(vce(t))return Xle;if(RS(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=RS(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(Adt,"");var r=Mdt.test(t);return r||Ldt.test(t)?Wdt(t.slice(2),r?2:8):Tdt.test(t)?Xle:+t}function oce(t){return t==null?"":SL(t)}function lpt(t,e){var r=Cdt,n=Ddt;if(RS(e)){var i="separator"in e?e.separator:i;r="length"in e?apt(e.length):r,n="omission"in e?SL(e.omission):n}t=oce(t);var s=t.length;if(EL(t)){var o=Jdt(t);s=o.length}if(r>=s)return t;var a=r-Qdt(n);if(a<1)return n;var u=o?npt(o,0,a).join(""):t.slice(0,a);if(i===void 0)return u+n;if(o&&(a+=u.length-a),spt(i)){if(t.slice(a).search(i)){var l,c=u;for(i.global||(i=RegExp(i.source,oce(Pdt.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var f=l.index;u=u.slice(0,f===void 0?a:f)}}else if(t.indexOf(SL(i),a)!=a){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+n}Cl.exports=lpt});var AS=m(gs=>{"use strict";var cpt=gs&&gs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gs,"__esModule",{value:!0});gs.truncateTableData=gs.truncateString=void 0;var fpt=cpt(wce()),dpt=(t,e)=>(0,fpt.default)(t,{length:e,omission:"\u2026"});gs.truncateString=dpt;var ppt=(t,e)=>t.map(r=>r.map((n,i)=>(0,gs.truncateString)(n,e[i])));gs.truncateTableData=ppt});var Sce=m(TS=>{"use strict";Object.defineProperty(TS,"__esModule",{value:!0});TS.createStream=void 0;var hpt=cL(),gpt=fL(),PS=dL(),_ce=pL(),mpt=Jle(),ypt=DS(),bpt=OS(),vpt=bL(),wpt=AS(),_pt=dr(),xce=(t,e)=>{let r=(0,vpt.stringifyTableData)(t);r=(0,wpt.truncateTableData)(r,(0,_pt.extractTruncates)(e));let n=(0,gpt.calculateRowHeights)(r,e);return r=(0,ypt.mapDataUsingRowHeights)(r,n,e),r=(0,hpt.alignTableData)(r,e),r=(0,bpt.padTableData)(r,e),r},xpt=(t,e,r)=>{let i=xce([t],r).map(o=>(0,_ce.drawRow)(o,r)).join(""),s;s="",s+=(0,PS.drawBorderTop)(e,r),s+=i,s+=(0,PS.drawBorderBottom)(e,r),s=s.trimEnd(),process.stdout.write(s)},Spt=(t,e,r)=>{let i=xce([t],r).map(a=>(0,_ce.drawRow)(a,r)).join(""),s="",o=(0,PS.drawBorderBottom)(e,r);o!==`
|
|
330
|
-
`&&(s="\r\x1B[K"),s+=(0,PS.drawBorderJoin)(e,r),s+=i,s+=o,s=s.trimEnd(),process.stdout.write(s)},kpt=t=>{let e=(0,mpt.makeStreamConfig)(t),r=Object.values(e.columns).map(i=>i.width+i.paddingLeft+i.paddingRight),n=!0;return{write:i=>{if(i.length!==e.columnCount)throw new Error("Row cell count does not match the config.columnCount.");n?(n=!1,xpt(i,r,e)):Spt(i,r,e)}}};TS.createStream=kpt});var kce=m(MS=>{"use strict";Object.defineProperty(MS,"__esModule",{value:!0});MS.calculateOutputColumnWidths=void 0;var Ept=t=>t.columns.map(e=>e.paddingLeft+e.width+e.paddingRight);MS.calculateOutputColumnWidths=Ept});var Ece=m(LS=>{"use strict";Object.defineProperty(LS,"__esModule",{value:!0});LS.drawTable=void 0;var Cpt=dL(),Dpt=gS(),Opt=pL(),qpt=
|
|
331
|
-
`).map(Tpt.default));ms.calculateMaximumCellWidth=Mpt;var Lpt=(t,e=[])=>{let r=new Array(t[0].length).fill(0),n=e.map(Dce.calculateRangeCoordinate),i=(s,o)=>n.some(a=>(0,Dce.isCellInRange)({col:o,row:s},a));return t.forEach((s,o)=>{s.forEach((a,u)=>{i(o,u)||(r[u]=Math.max(r[u],(0,ms.calculateMaximumCellWidth)(a)))})}),r};ms.calculateMaximumColumnWidths=Lpt});var Rce=m(co=>{"use strict";var Fpt=co&&co.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(co,"__esModule",{value:!0});co.alignVerticalRangeContent=co.wrapRangeContent=void 0;var Ipt=Fpt(Sa()),Npt=lL(),jpt=DS(),$pt=OS(),Bpt=AS(),qce=dr(),Wpt=fS(),zpt=(t,e,r)=>{let{topLeft:n,paddingRight:i,paddingLeft:s,truncate:o,wrapWord:a,alignment:u}=t,l=r.rows[n.row][n.col],c=e-s-i;return(0,Wpt.wrapCell)((0,Bpt.truncateString)(l,o),c,a).map(f=>{let d=(0,Npt.alignString)(f,c,u);return(0,$pt.padString)(d,s,i)})};co.wrapRangeContent=zpt;var Upt=(t,e,r)=>{let{rows:n,drawHorizontalLine:i,rowHeights:s}=r,{topLeft:o,bottomRight:a,verticalAlignment:u}=t;if(s.length===0)return[];let l=(0,qce.sumArray)(s.slice(o.row,a.row+1)),c=a.row-o.row,f=(0,qce.sequence)(o.row+1,a.row).filter(p=>!i(p,n.length)).length,d=l+c-f;return(0,jpt.padCellVertically)(e,d,u).map(p=>p.length===0?" ".repeat((0,Ipt.default)(e[0])):p)};co.alignVerticalRangeContent=Upt});var Ace=m(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});IS.calculateSpanningCellWidth=void 0;var CL=dr(),Hpt=(t,e)=>{let{columnsConfig:r,drawVerticalLine:n}=e,{topLeft:i,bottomRight:s}=t,o=(0,CL.sumArray)(r.slice(i.col,s.col+1).map(({width:c})=>c)),a=i.col===s.col?r[i.col].paddingRight+r[s.col].paddingLeft:(0,CL.sumArray)(r.slice(i.col,s.col+1).map(({paddingLeft:c,paddingRight:f})=>c+f)),u=s.col-i.col,l=(0,CL.sequence)(i.col+1,s.col).filter(c=>!n(c,r.length)).length;return o+a+u-l};IS.calculateSpanningCellWidth=Hpt});var Pce=m(NS=>{"use strict";Object.defineProperty(NS,"__esModule",{value:!0});NS.makeRangeConfig=void 0;var Vpt=dr(),Gpt=(t,e)=>{var r;let{topLeft:n,bottomRight:i}=(0,Vpt.calculateRangeCoordinate)(t);return{...{...e[n.col],...t,paddingRight:(r=t.paddingRight)!==null&&r!==void 0?r:e[i.col].paddingRight},bottomRight:i,topLeft:n}};NS.makeRangeConfig=Gpt});var Lce=m(jS=>{"use strict";Object.defineProperty(jS,"__esModule",{value:!0});jS.createSpanningCellManager=void 0;var Tce=Rce(),Kpt=Ace(),Ypt=Pce(),Dl=dr(),DL=(t,e)=>e.find(r=>(0,Dl.isCellInRange)(t,r)),Mce=(t,e)=>{let r=(0,Kpt.calculateSpanningCellWidth)(t,e),n=(0,Tce.wrapRangeContent)(t,r,e),i=(0,Tce.alignVerticalRangeContent)(t,n,e);return{...t,extractBorderContent:a=>{let{topLeft:u}=t,l=(0,Dl.sumArray)(e.rowHeights.slice(u.row,a))+(a-u.row-1);return i[l]},extractCellContent:a=>{let{topLeft:u}=t,{drawHorizontalLine:l,rowHeights:c}=e,f=a-u.row,d=(0,Dl.sequence)(u.row+1,a).filter(h=>!l?.(h,c.length)).length,p=(0,Dl.sumArray)(c.slice(u.row,a))+f-d;return i.slice(p,p+c[a])},height:n.length,width:r}},Qpt=(t,e,r)=>{let n=DL(t,r),i=DL(e,r);return n&&i?(0,Dl.areCellEqual)(n.topLeft,i.topLeft):!1},Jpt=t=>{let{row:e,col:r}=t.topLeft;return`${e}/${r}`},Xpt=t=>{let{spanningCellConfigs:e,columnsConfig:r}=t,n=e.map(o=>(0,Ypt.makeRangeConfig)(o,r)),i={},s=[];return{getContainingRange:(o,a)=>{var u;let l=a?.mapped?(0,Dl.findOriginalRowIndex)(s,o.row):o.row,c=DL({...o,row:l},n);if(!c)return;if(s.length===0)return Mce(c,{...t,rowHeights:s});let f=Jpt(c);return(u=i[f])!==null&&u!==void 0||(i[f]=Mce(c,{...t,rowHeights:s})),i[f]},inSameRange:(o,a)=>Qpt(o,a,n),rowHeights:s,setRowHeights:o=>{s=o}}};jS.createSpanningCellManager=Xpt});var Fce=m(BS=>{"use strict";Object.defineProperty(BS,"__esModule",{value:!0});BS.validateSpanningCellConfig=void 0;var OL=dr(),$S=(t,e,r)=>t<=r&&r<=e,Zpt=(t,e)=>{let[r,n]=[t.length,t[0].length];e.forEach((o,a)=>{let{colSpan:u,rowSpan:l}=o;if(u===void 0&&l===void 0)throw new Error(`Expect at least colSpan or rowSpan is provided in config.spanningCells[${a}]`);if(u!==void 0&&u<1)throw new Error(`Expect colSpan is not equal zero, instead got: ${u} in config.spanningCells[${a}]`);if(l!==void 0&&l<1)throw new Error(`Expect rowSpan is not equal zero, instead got: ${l} in config.spanningCells[${a}]`)});let i=e.map(OL.calculateRangeCoordinate);i.forEach(({topLeft:o,bottomRight:a},u)=>{if(!$S(0,n-1,o.col)||!$S(0,r-1,o.row)||!$S(0,n-1,a.col)||!$S(0,r-1,a.row))throw new Error(`Some cells in config.spanningCells[${u}] are out of the table`)});let s=Array.from({length:r},()=>Array.from({length:n}));i.forEach(({topLeft:o,bottomRight:a},u)=>{(0,OL.sequence)(o.row,a.row).forEach(l=>{(0,OL.sequence)(o.col,a.col).forEach(c=>{if(s[l][c]!==void 0)throw new Error(`Spanning cells in config.spanningCells[${s[l][c]}] and config.spanningCells[${u}] are overlap each other`);s[l][c]=u})})})};BS.validateSpanningCellConfig=Zpt});var Ice=m(WS=>{"use strict";Object.defineProperty(WS,"__esModule",{value:!0});WS.makeTableConfig=void 0;var eht=Oce(),tht=Lce(),rht=dr(),nht=yL(),iht=Fce(),sht=(t,e,r,n)=>{let i=(0,eht.calculateMaximumColumnWidths)(t,n);return t[0].map((s,o)=>({alignment:"left",paddingLeft:1,paddingRight:1,truncate:Number.POSITIVE_INFINITY,verticalAlignment:"top",width:i[o],wrapWord:!1,...r,...e?.[o]}))},oht=(t,e={},r)=>{var n,i,s,o,a;(0,nht.validateConfig)("config.json",e),(0,iht.validateSpanningCellConfig)(t,(n=e.spanningCells)!==null&&n!==void 0?n:[]);let u=(i=r??e.spanningCells)!==null&&i!==void 0?i:[],l=sht(t,e.columns,e.columnDefault,u),c=(s=e.drawVerticalLine)!==null&&s!==void 0?s:()=>!0,f=(o=e.drawHorizontalLine)!==null&&o!==void 0?o:()=>!0;return{...e,border:(0,rht.makeBorderConfig)(e.border),columns:l,drawHorizontalLine:f,drawVerticalLine:c,singleLine:(a=e.singleLine)!==null&&a!==void 0?a:!1,spanningCellManager:(0,tht.createSpanningCellManager)({columnsConfig:l,drawHorizontalLine:f,drawVerticalLine:c,rows:t,spanningCellConfigs:u})}};WS.makeTableConfig=oht});var Nce=m(zS=>{"use strict";Object.defineProperty(zS,"__esModule",{value:!0});zS.validateTableData=void 0;var aht=dr(),uht=t=>{if(!Array.isArray(t))throw new TypeError("Table data must be an array.");if(t.length===0)throw new Error("Table must define at least one row.");if(t[0].length===0)throw new Error("Table must define at least one column.");let e=t[0].length;for(let r of t){if(!Array.isArray(r))throw new TypeError("Table row data must be an array.");if(r.length!==e)throw new Error("Table must have a consistent number of cells.");for(let n of r)if(/[\u0001-\u0006\u0008\u0009\u000B-\u001A]/.test((0,aht.normalizeString)(String(n))))throw new Error("Table data must not contain control characters.")}};zS.validateTableData=uht});var jce=m(US=>{"use strict";Object.defineProperty(US,"__esModule",{value:!0});US.table=void 0;var lht=cL(),cht=kce(),fht=fL(),dht=Ece(),pht=Cce(),hht=Ice(),ght=DS(),mht=OS(),yht=bL(),bht=AS(),vht=dr(),wht=Nce(),_ht=(t,e={})=>{(0,wht.validateTableData)(t);let r=(0,yht.stringifyTableData)(t),[n,i]=(0,pht.injectHeaderConfig)(r,e),s=(0,hht.makeTableConfig)(n,e,i);r=(0,bht.truncateTableData)(n,(0,vht.extractTruncates)(s));let o=(0,fht.calculateRowHeights)(r,s);s.spanningCellManager.setRowHeights(o),r=(0,ght.mapDataUsingRowHeights)(r,o,s),r=(0,lht.alignTableData)(r,s),r=(0,mht.padTableData)(r,s);let a=(0,cht.calculateOutputColumnWidths)(s);return(0,dht.drawTable)(r,a,o,s)};US.table=_ht});var Bce=m($ce=>{"use strict";Object.defineProperty($ce,"__esModule",{value:!0})});var Wce=m(kn=>{"use strict";var xht=kn&&kn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Sht=kn&&kn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&xht(e,t,r)};Object.defineProperty(kn,"__esModule",{value:!0});kn.getBorderCharacters=kn.createStream=kn.table=void 0;var kht=Sce();Object.defineProperty(kn,"createStream",{enumerable:!0,get:function(){return kht.createStream}});var Eht=oL();Object.defineProperty(kn,"getBorderCharacters",{enumerable:!0,get:function(){return Eht.getBorderCharacters}});var Cht=jce();Object.defineProperty(kn,"table",{enumerable:!0,get:function(){return Cht.table}});Sht(Bce(),kn)});var qL=m((K3t,zce)=>{"use strict";zce.exports=function(e,r){switch(e){case"error":r.error+=1;break;case"warning":r.warning+=1;break;default:throw new Error(`Unknown severity: "${e}"`)}}});var HS=m((Y3t,Uce)=>{"use strict";Uce.exports=function(e,r){return r===1?e:`${e}s`}});var Gce=m((Q3t,Vce)=>{"use strict";var Dht=hM(),Ol=fM();function Hce(t){if(/^\d{3,4}$/.test(t)){let r=/(\d{1,2})(\d{2})/.exec(t);return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let e=(t||"").split(".").map(r=>parseInt(r,10));return{major:e[0],minor:e[1],patch:e[2]}}function RL(t){let{env:e}=process;if("FORCE_HYPERLINK"in e)return!(e.FORCE_HYPERLINK.length>0&&parseInt(e.FORCE_HYPERLINK,10)===0);if(Ol("no-hyperlink")||Ol("no-hyperlinks")||Ol("hyperlink=false")||Ol("hyperlink=never"))return!1;if(Ol("hyperlink=true")||Ol("hyperlink=always")||"NETLIFY"in e)return!0;if(!Dht.supportsColor(t)||t&&!t.isTTY||process.platform==="win32"||"CI"in e||"TEAMCITY_VERSION"in e)return!1;if("TERM_PROGRAM"in e){let r=Hce(e.TERM_PROGRAM_VERSION);switch(e.TERM_PROGRAM){case"iTerm.app":return r.major===3?r.minor>=1:r.major>3;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72}}if("VTE_VERSION"in e){if(e.VTE_VERSION==="0.50.0")return!1;let r=Hce(e.VTE_VERSION);return r.major>0||r.minor>=50}return!1}Vce.exports={supportsHyperlink:RL,stdout:RL(process.stdout),stderr:RL(process.stderr)}});var AL=m((J3t,Qce)=>{"use strict";var Oht=Gce(),Kce="\x1B]",Yce="\x07",VS=";";Qce.exports=function(e,r){return Oht.stdout?[Kce,"8",VS,VS,r,Yce,e,Kce,"8",VS,VS,Yce].join(""):e}});var TL=m((X3t,sfe)=>{"use strict";var Jce=H("path"),qht=Sa(),Xce=Wce(),{yellow:KS,dim:GS,underline:rfe,blue:nfe,red:YS,green:Rht}=Bo(),Aht=qL(),PL=HS(),{assertNumber:ife}=re(),Pht=bl(),Tht=AL(),Zce=9;function Mht(t){return t}var Lht={info:nfe,warning:KS,error:YS,success:Mht},efe={info:nfe("\u2139"),warning:KS("\u26A0"),error:YS("\u2716"),success:Rht("\u2714")};function Fht(t){let e=t.flatMap(n=>n.deprecations||[]);if(e.length===0)return"";let r=new Set;return e.reduce((n,i)=>r.has(i.text)?n:(r.add(i.text),n+=KS("Deprecation Warning: "),n+=i.text,i.reference&&(n+=GS(" See: "),n+=GS(rfe(i.reference))),`${n}
|
|
329
|
+
`};mS.drawRow=ldt});var Wle=m((S3t,Ble)=>{"use strict";Ble.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,s;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,s[i]))return!1;for(i=n;i--!==0;){var o=s[i];if(!t(e[o],r[o]))return!1}return!0}return e!==e&&r!==r}});var Ule=m(hL=>{"use strict";Object.defineProperty(hL,"__esModule",{value:!0});var zle=Wle();zle.code='require("ajv/dist/runtime/equal").default';hL.default=zle});var Qle=m(mL=>{"use strict";mL["config.json"]=Kle;var cdt={$id:"config.json",$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{border:{$ref:"shared.json#/definitions/borders"},header:{type:"object",properties:{content:{type:"string"},alignment:{$ref:"shared.json#/definitions/alignment"},wrapWord:{type:"boolean"},truncate:{type:"integer"},paddingLeft:{type:"integer"},paddingRight:{type:"integer"}},required:["content"],additionalProperties:!1},columns:{$ref:"shared.json#/definitions/columns"},columnDefault:{$ref:"shared.json#/definitions/column"},drawVerticalLine:{typeof:"function"},drawHorizontalLine:{typeof:"function"},singleLine:{typeof:"boolean"},spanningCells:{type:"array",items:{type:"object",properties:{col:{type:"integer",minimum:0},row:{type:"integer",minimum:0},colSpan:{type:"integer",minimum:1},rowSpan:{type:"integer",minimum:1},alignment:{$ref:"shared.json#/definitions/alignment"},verticalAlignment:{$ref:"shared.json#/definitions/verticalAlignment"},wrapWord:{type:"boolean"},truncate:{type:"integer"},paddingLeft:{type:"integer"},paddingRight:{type:"integer"}},required:["row","col"],additionalProperties:!1}}},additionalProperties:!1},Hle={type:"object",properties:{topBody:{$ref:"#/definitions/border"},topJoin:{$ref:"#/definitions/border"},topLeft:{$ref:"#/definitions/border"},topRight:{$ref:"#/definitions/border"},bottomBody:{$ref:"#/definitions/border"},bottomJoin:{$ref:"#/definitions/border"},bottomLeft:{$ref:"#/definitions/border"},bottomRight:{$ref:"#/definitions/border"},bodyLeft:{$ref:"#/definitions/border"},bodyRight:{$ref:"#/definitions/border"},bodyJoin:{$ref:"#/definitions/border"},headerJoin:{$ref:"#/definitions/border"},joinBody:{$ref:"#/definitions/border"},joinLeft:{$ref:"#/definitions/border"},joinRight:{$ref:"#/definitions/border"},joinJoin:{$ref:"#/definitions/border"},joinMiddleUp:{$ref:"#/definitions/border"},joinMiddleDown:{$ref:"#/definitions/border"},joinMiddleLeft:{$ref:"#/definitions/border"},joinMiddleRight:{$ref:"#/definitions/border"}},additionalProperties:!1},gL=Object.prototype.hasOwnProperty;function ee(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(typeof t!="string"){let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[a]:s.push(a),o++}return ee.errors=s,o===0}function yS(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let a in t)if(!gL.call(Hle.properties,a)){let u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};s===null?s=[u]:s.push(u),o++}t.topBody!==void 0&&(ee(t.topBody,{instancePath:e+"/topBody",parentData:t,parentDataProperty:"topBody",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.topJoin!==void 0&&(ee(t.topJoin,{instancePath:e+"/topJoin",parentData:t,parentDataProperty:"topJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.topLeft!==void 0&&(ee(t.topLeft,{instancePath:e+"/topLeft",parentData:t,parentDataProperty:"topLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.topRight!==void 0&&(ee(t.topRight,{instancePath:e+"/topRight",parentData:t,parentDataProperty:"topRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomBody!==void 0&&(ee(t.bottomBody,{instancePath:e+"/bottomBody",parentData:t,parentDataProperty:"bottomBody",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomJoin!==void 0&&(ee(t.bottomJoin,{instancePath:e+"/bottomJoin",parentData:t,parentDataProperty:"bottomJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomLeft!==void 0&&(ee(t.bottomLeft,{instancePath:e+"/bottomLeft",parentData:t,parentDataProperty:"bottomLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomRight!==void 0&&(ee(t.bottomRight,{instancePath:e+"/bottomRight",parentData:t,parentDataProperty:"bottomRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bodyLeft!==void 0&&(ee(t.bodyLeft,{instancePath:e+"/bodyLeft",parentData:t,parentDataProperty:"bodyLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bodyRight!==void 0&&(ee(t.bodyRight,{instancePath:e+"/bodyRight",parentData:t,parentDataProperty:"bodyRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bodyJoin!==void 0&&(ee(t.bodyJoin,{instancePath:e+"/bodyJoin",parentData:t,parentDataProperty:"bodyJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.headerJoin!==void 0&&(ee(t.headerJoin,{instancePath:e+"/headerJoin",parentData:t,parentDataProperty:"headerJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinBody!==void 0&&(ee(t.joinBody,{instancePath:e+"/joinBody",parentData:t,parentDataProperty:"joinBody",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinLeft!==void 0&&(ee(t.joinLeft,{instancePath:e+"/joinLeft",parentData:t,parentDataProperty:"joinLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinRight!==void 0&&(ee(t.joinRight,{instancePath:e+"/joinRight",parentData:t,parentDataProperty:"joinRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinJoin!==void 0&&(ee(t.joinJoin,{instancePath:e+"/joinJoin",parentData:t,parentDataProperty:"joinJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleUp!==void 0&&(ee(t.joinMiddleUp,{instancePath:e+"/joinMiddleUp",parentData:t,parentDataProperty:"joinMiddleUp",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleDown!==void 0&&(ee(t.joinMiddleDown,{instancePath:e+"/joinMiddleDown",parentData:t,parentDataProperty:"joinMiddleDown",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleLeft!==void 0&&(ee(t.joinMiddleLeft,{instancePath:e+"/joinMiddleLeft",parentData:t,parentDataProperty:"joinMiddleLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleRight!==void 0&&(ee(t.joinMiddleRight,{instancePath:e+"/joinMiddleRight",parentData:t,parentDataProperty:"joinMiddleRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length))}else{let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[a]:s.push(a),o++}return yS.errors=s,o===0}var Vle={type:"string",enum:["left","right","center","justify"]},E3t=Ule().default;function ka(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(typeof t!="string"){let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[a]:s.push(a),o++}if(!(t==="left"||t==="right"||t==="center"||t==="justify")){let a={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Vle.enum},message:"must be equal to one of the allowed values"};s===null?s=[a]:s.push(a),o++}return ka.errors=s,o===0}var kS=new RegExp("^[0-9]+$","u");function Ii(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(typeof t!="string"){let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[a]:s.push(a),o++}if(!(t==="left"||t==="right"||t==="center"||t==="justify")){let a={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Vle.enum},message:"must be equal to one of the allowed values"};s===null?s=[a]:s.push(a),o++}return Ii.errors=s,o===0}var Gle={type:"string",enum:["top","middle","bottom"]};function Ni(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(typeof t!="string"){let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[a]:s.push(a),o++}if(!(t==="top"||t==="middle"||t==="bottom")){let a={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Gle.enum},message:"must be equal to one of the allowed values"};s===null?s=[a]:s.push(a),o++}return Ni.errors=s,o===0}function Sn(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let a in t)if(!(a==="alignment"||a==="verticalAlignment"||a==="width"||a==="wrapWord"||a==="truncate"||a==="paddingLeft"||a==="paddingRight")){let u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};s===null?s=[u]:s.push(u),o++}if(t.alignment!==void 0&&(Ii(t.alignment,{instancePath:e+"/alignment",parentData:t,parentDataProperty:"alignment",rootData:i})||(s=s===null?Ii.errors:s.concat(Ii.errors),o=s.length)),t.verticalAlignment!==void 0&&(Ni(t.verticalAlignment,{instancePath:e+"/verticalAlignment",parentData:t,parentDataProperty:"verticalAlignment",rootData:i})||(s=s===null?Ni.errors:s.concat(Ni.errors),o=s.length)),t.width!==void 0){let a=t.width;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let u={instancePath:e+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};s===null?s=[u]:s.push(u),o++}}if(t.wrapWord!==void 0&&typeof t.wrapWord!="boolean"){let a={instancePath:e+"/wrapWord",schemaPath:"#/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[a]:s.push(a),o++}if(t.truncate!==void 0){let a=t.truncate;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}if(t.paddingLeft!==void 0){let a=t.paddingLeft;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}if(t.paddingRight!==void 0){let a=t.paddingRight;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}}else{let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[a]:s.push(a),o++}return Sn.errors=s,o===0}function bS(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0,a=o,u=!1,l=null,c=o;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let p in t)if(!kS.test(p)){let h={instancePath:e,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"};s===null?s=[h]:s.push(h),o++}for(let p in t)kS.test(p)&&(Sn(t[p],{instancePath:e+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:p,rootData:i})||(s=s===null?Sn.errors:s.concat(Sn.errors),o=s.length))}else{let p={instancePath:e,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[p]:s.push(p),o++}var d=c===o;d&&(u=!0,l=0);let f=o;if(Array.isArray(t)){let p=t.length;for(let h=0;h<p;h++)Sn(t[h],{instancePath:e+"/"+h,parentData:t,parentDataProperty:h,rootData:i})||(s=s===null?Sn.errors:s.concat(Sn.errors),o=s.length)}else{let p={instancePath:e,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[p]:s.push(p),o++}var d=f===o;if(d&&u?(u=!1,l=[l,1]):d&&(u=!0,l=1),u)o=a,s!==null&&(a?s.length=a:s=null);else{let p={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:l},message:"must match exactly one schema in oneOf"};s===null?s=[p]:s.push(p),o++}return bS.errors=s,o===0}function vS(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let a in t)if(!(a==="alignment"||a==="verticalAlignment"||a==="width"||a==="wrapWord"||a==="truncate"||a==="paddingLeft"||a==="paddingRight")){let u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};s===null?s=[u]:s.push(u),o++}if(t.alignment!==void 0&&(Ii(t.alignment,{instancePath:e+"/alignment",parentData:t,parentDataProperty:"alignment",rootData:i})||(s=s===null?Ii.errors:s.concat(Ii.errors),o=s.length)),t.verticalAlignment!==void 0&&(Ni(t.verticalAlignment,{instancePath:e+"/verticalAlignment",parentData:t,parentDataProperty:"verticalAlignment",rootData:i})||(s=s===null?Ni.errors:s.concat(Ni.errors),o=s.length)),t.width!==void 0){let a=t.width;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let u={instancePath:e+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};s===null?s=[u]:s.push(u),o++}}if(t.wrapWord!==void 0&&typeof t.wrapWord!="boolean"){let a={instancePath:e+"/wrapWord",schemaPath:"#/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[a]:s.push(a),o++}if(t.truncate!==void 0){let a=t.truncate;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}if(t.paddingLeft!==void 0){let a=t.paddingLeft;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}if(t.paddingRight!==void 0){let a=t.paddingRight;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}}else{let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[a]:s.push(a),o++}return vS.errors=s,o===0}function wS(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(typeof t!="string"){let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[a]:s.push(a),o++}if(!(t==="top"||t==="middle"||t==="bottom")){let a={instancePath:e,schemaPath:"#/enum",keyword:"enum",params:{allowedValues:Gle.enum},message:"must be equal to one of the allowed values"};s===null?s=[a]:s.push(a),o++}return wS.errors=s,o===0}function Kle(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let a in t)if(!(a==="border"||a==="header"||a==="columns"||a==="columnDefault"||a==="drawVerticalLine"||a==="drawHorizontalLine"||a==="singleLine"||a==="spanningCells")){let u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};s===null?s=[u]:s.push(u),o++}if(t.border!==void 0&&(yS(t.border,{instancePath:e+"/border",parentData:t,parentDataProperty:"border",rootData:i})||(s=s===null?yS.errors:s.concat(yS.errors),o=s.length)),t.header!==void 0){let a=t.header;if(a&&typeof a=="object"&&!Array.isArray(a)){if(a.content===void 0){let u={instancePath:e+"/header",schemaPath:"#/properties/header/required",keyword:"required",params:{missingProperty:"content"},message:"must have required property 'content'"};s===null?s=[u]:s.push(u),o++}for(let u in a)if(!(u==="content"||u==="alignment"||u==="wrapWord"||u==="truncate"||u==="paddingLeft"||u==="paddingRight")){let l={instancePath:e+"/header",schemaPath:"#/properties/header/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:u},message:"must NOT have additional properties"};s===null?s=[l]:s.push(l),o++}if(a.content!==void 0&&typeof a.content!="string"){let u={instancePath:e+"/header/content",schemaPath:"#/properties/header/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[u]:s.push(u),o++}if(a.alignment!==void 0&&(ka(a.alignment,{instancePath:e+"/header/alignment",parentData:a,parentDataProperty:"alignment",rootData:i})||(s=s===null?ka.errors:s.concat(ka.errors),o=s.length)),a.wrapWord!==void 0&&typeof a.wrapWord!="boolean"){let u={instancePath:e+"/header/wrapWord",schemaPath:"#/properties/header/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[u]:s.push(u),o++}if(a.truncate!==void 0){let u=a.truncate;if(!(typeof u=="number"&&!(u%1)&&!isNaN(u)&&isFinite(u))){let l={instancePath:e+"/header/truncate",schemaPath:"#/properties/header/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[l]:s.push(l),o++}}if(a.paddingLeft!==void 0){let u=a.paddingLeft;if(!(typeof u=="number"&&!(u%1)&&!isNaN(u)&&isFinite(u))){let l={instancePath:e+"/header/paddingLeft",schemaPath:"#/properties/header/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[l]:s.push(l),o++}}if(a.paddingRight!==void 0){let u=a.paddingRight;if(!(typeof u=="number"&&!(u%1)&&!isNaN(u)&&isFinite(u))){let l={instancePath:e+"/header/paddingRight",schemaPath:"#/properties/header/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[l]:s.push(l),o++}}}else{let u={instancePath:e+"/header",schemaPath:"#/properties/header/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[u]:s.push(u),o++}}if(t.columns!==void 0&&(bS(t.columns,{instancePath:e+"/columns",parentData:t,parentDataProperty:"columns",rootData:i})||(s=s===null?bS.errors:s.concat(bS.errors),o=s.length)),t.columnDefault!==void 0&&(vS(t.columnDefault,{instancePath:e+"/columnDefault",parentData:t,parentDataProperty:"columnDefault",rootData:i})||(s=s===null?vS.errors:s.concat(vS.errors),o=s.length)),t.drawVerticalLine!==void 0&&typeof t.drawVerticalLine!="function"){let a={instancePath:e+"/drawVerticalLine",schemaPath:"#/properties/drawVerticalLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};s===null?s=[a]:s.push(a),o++}if(t.drawHorizontalLine!==void 0&&typeof t.drawHorizontalLine!="function"){let a={instancePath:e+"/drawHorizontalLine",schemaPath:"#/properties/drawHorizontalLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};s===null?s=[a]:s.push(a),o++}if(t.singleLine!==void 0&&typeof t.singleLine!="boolean"){let a={instancePath:e+"/singleLine",schemaPath:"#/properties/singleLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};s===null?s=[a]:s.push(a),o++}if(t.spanningCells!==void 0){let a=t.spanningCells;if(Array.isArray(a)){let u=a.length;for(let l=0;l<u;l++){let c=a[l];if(c&&typeof c=="object"&&!Array.isArray(c)){if(c.row===void 0){let f={instancePath:e+"/spanningCells/"+l,schemaPath:"#/properties/spanningCells/items/required",keyword:"required",params:{missingProperty:"row"},message:"must have required property 'row'"};s===null?s=[f]:s.push(f),o++}if(c.col===void 0){let f={instancePath:e+"/spanningCells/"+l,schemaPath:"#/properties/spanningCells/items/required",keyword:"required",params:{missingProperty:"col"},message:"must have required property 'col'"};s===null?s=[f]:s.push(f),o++}for(let f in c)if(!gL.call(cdt.properties.spanningCells.items.properties,f)){let d={instancePath:e+"/spanningCells/"+l,schemaPath:"#/properties/spanningCells/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};s===null?s=[d]:s.push(d),o++}if(c.col!==void 0){let f=c.col;if(!(typeof f=="number"&&!(f%1)&&!isNaN(f)&&isFinite(f))){let d={instancePath:e+"/spanningCells/"+l+"/col",schemaPath:"#/properties/spanningCells/items/properties/col/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[d]:s.push(d),o++}if(typeof f=="number"&&isFinite(f)&&(f<0||isNaN(f))){let d={instancePath:e+"/spanningCells/"+l+"/col",schemaPath:"#/properties/spanningCells/items/properties/col/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};s===null?s=[d]:s.push(d),o++}}if(c.row!==void 0){let f=c.row;if(!(typeof f=="number"&&!(f%1)&&!isNaN(f)&&isFinite(f))){let d={instancePath:e+"/spanningCells/"+l+"/row",schemaPath:"#/properties/spanningCells/items/properties/row/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[d]:s.push(d),o++}if(typeof f=="number"&&isFinite(f)&&(f<0||isNaN(f))){let d={instancePath:e+"/spanningCells/"+l+"/row",schemaPath:"#/properties/spanningCells/items/properties/row/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"};s===null?s=[d]:s.push(d),o++}}if(c.colSpan!==void 0){let f=c.colSpan;if(!(typeof f=="number"&&!(f%1)&&!isNaN(f)&&isFinite(f))){let d={instancePath:e+"/spanningCells/"+l+"/colSpan",schemaPath:"#/properties/spanningCells/items/properties/colSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[d]:s.push(d),o++}if(typeof f=="number"&&isFinite(f)&&(f<1||isNaN(f))){let d={instancePath:e+"/spanningCells/"+l+"/colSpan",schemaPath:"#/properties/spanningCells/items/properties/colSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};s===null?s=[d]:s.push(d),o++}}if(c.rowSpan!==void 0){let f=c.rowSpan;if(!(typeof f=="number"&&!(f%1)&&!isNaN(f)&&isFinite(f))){let d={instancePath:e+"/spanningCells/"+l+"/rowSpan",schemaPath:"#/properties/spanningCells/items/properties/rowSpan/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[d]:s.push(d),o++}if(typeof f=="number"&&isFinite(f)&&(f<1||isNaN(f))){let d={instancePath:e+"/spanningCells/"+l+"/rowSpan",schemaPath:"#/properties/spanningCells/items/properties/rowSpan/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};s===null?s=[d]:s.push(d),o++}}if(c.alignment!==void 0&&(ka(c.alignment,{instancePath:e+"/spanningCells/"+l+"/alignment",parentData:c,parentDataProperty:"alignment",rootData:i})||(s=s===null?ka.errors:s.concat(ka.errors),o=s.length)),c.verticalAlignment!==void 0&&(wS(c.verticalAlignment,{instancePath:e+"/spanningCells/"+l+"/verticalAlignment",parentData:c,parentDataProperty:"verticalAlignment",rootData:i})||(s=s===null?wS.errors:s.concat(wS.errors),o=s.length)),c.wrapWord!==void 0&&typeof c.wrapWord!="boolean"){let f={instancePath:e+"/spanningCells/"+l+"/wrapWord",schemaPath:"#/properties/spanningCells/items/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[f]:s.push(f),o++}if(c.truncate!==void 0){let f=c.truncate;if(!(typeof f=="number"&&!(f%1)&&!isNaN(f)&&isFinite(f))){let d={instancePath:e+"/spanningCells/"+l+"/truncate",schemaPath:"#/properties/spanningCells/items/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[d]:s.push(d),o++}}if(c.paddingLeft!==void 0){let f=c.paddingLeft;if(!(typeof f=="number"&&!(f%1)&&!isNaN(f)&&isFinite(f))){let d={instancePath:e+"/spanningCells/"+l+"/paddingLeft",schemaPath:"#/properties/spanningCells/items/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[d]:s.push(d),o++}}if(c.paddingRight!==void 0){let f=c.paddingRight;if(!(typeof f=="number"&&!(f%1)&&!isNaN(f)&&isFinite(f))){let d={instancePath:e+"/spanningCells/"+l+"/paddingRight",schemaPath:"#/properties/spanningCells/items/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[d]:s.push(d),o++}}}else{let f={instancePath:e+"/spanningCells/"+l,schemaPath:"#/properties/spanningCells/items/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[f]:s.push(f),o++}}}else{let u={instancePath:e+"/spanningCells",schemaPath:"#/properties/spanningCells/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[u]:s.push(u),o++}}}else{let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[a]:s.push(a),o++}return Kle.errors=s,o===0}mL["streamConfig.json"]=Yle;function _S(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let a in t)if(!gL.call(Hle.properties,a)){let u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};s===null?s=[u]:s.push(u),o++}t.topBody!==void 0&&(ee(t.topBody,{instancePath:e+"/topBody",parentData:t,parentDataProperty:"topBody",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.topJoin!==void 0&&(ee(t.topJoin,{instancePath:e+"/topJoin",parentData:t,parentDataProperty:"topJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.topLeft!==void 0&&(ee(t.topLeft,{instancePath:e+"/topLeft",parentData:t,parentDataProperty:"topLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.topRight!==void 0&&(ee(t.topRight,{instancePath:e+"/topRight",parentData:t,parentDataProperty:"topRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomBody!==void 0&&(ee(t.bottomBody,{instancePath:e+"/bottomBody",parentData:t,parentDataProperty:"bottomBody",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomJoin!==void 0&&(ee(t.bottomJoin,{instancePath:e+"/bottomJoin",parentData:t,parentDataProperty:"bottomJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomLeft!==void 0&&(ee(t.bottomLeft,{instancePath:e+"/bottomLeft",parentData:t,parentDataProperty:"bottomLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bottomRight!==void 0&&(ee(t.bottomRight,{instancePath:e+"/bottomRight",parentData:t,parentDataProperty:"bottomRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bodyLeft!==void 0&&(ee(t.bodyLeft,{instancePath:e+"/bodyLeft",parentData:t,parentDataProperty:"bodyLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bodyRight!==void 0&&(ee(t.bodyRight,{instancePath:e+"/bodyRight",parentData:t,parentDataProperty:"bodyRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.bodyJoin!==void 0&&(ee(t.bodyJoin,{instancePath:e+"/bodyJoin",parentData:t,parentDataProperty:"bodyJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.headerJoin!==void 0&&(ee(t.headerJoin,{instancePath:e+"/headerJoin",parentData:t,parentDataProperty:"headerJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinBody!==void 0&&(ee(t.joinBody,{instancePath:e+"/joinBody",parentData:t,parentDataProperty:"joinBody",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinLeft!==void 0&&(ee(t.joinLeft,{instancePath:e+"/joinLeft",parentData:t,parentDataProperty:"joinLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinRight!==void 0&&(ee(t.joinRight,{instancePath:e+"/joinRight",parentData:t,parentDataProperty:"joinRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinJoin!==void 0&&(ee(t.joinJoin,{instancePath:e+"/joinJoin",parentData:t,parentDataProperty:"joinJoin",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleUp!==void 0&&(ee(t.joinMiddleUp,{instancePath:e+"/joinMiddleUp",parentData:t,parentDataProperty:"joinMiddleUp",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleDown!==void 0&&(ee(t.joinMiddleDown,{instancePath:e+"/joinMiddleDown",parentData:t,parentDataProperty:"joinMiddleDown",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleLeft!==void 0&&(ee(t.joinMiddleLeft,{instancePath:e+"/joinMiddleLeft",parentData:t,parentDataProperty:"joinMiddleLeft",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length)),t.joinMiddleRight!==void 0&&(ee(t.joinMiddleRight,{instancePath:e+"/joinMiddleRight",parentData:t,parentDataProperty:"joinMiddleRight",rootData:i})||(s=s===null?ee.errors:s.concat(ee.errors),o=s.length))}else{let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[a]:s.push(a),o++}return _S.errors=s,o===0}function xS(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0,a=o,u=!1,l=null,c=o;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let p in t)if(!kS.test(p)){let h={instancePath:e,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"};s===null?s=[h]:s.push(h),o++}for(let p in t)kS.test(p)&&(Sn(t[p],{instancePath:e+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:t,parentDataProperty:p,rootData:i})||(s=s===null?Sn.errors:s.concat(Sn.errors),o=s.length))}else{let p={instancePath:e,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[p]:s.push(p),o++}var d=c===o;d&&(u=!0,l=0);let f=o;if(Array.isArray(t)){let p=t.length;for(let h=0;h<p;h++)Sn(t[h],{instancePath:e+"/"+h,parentData:t,parentDataProperty:h,rootData:i})||(s=s===null?Sn.errors:s.concat(Sn.errors),o=s.length)}else{let p={instancePath:e,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[p]:s.push(p),o++}var d=f===o;if(d&&u?(u=!1,l=[l,1]):d&&(u=!0,l=1),u)o=a,s!==null&&(a?s.length=a:s=null);else{let p={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:l},message:"must match exactly one schema in oneOf"};s===null?s=[p]:s.push(p),o++}return xS.errors=s,o===0}function SS(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let a in t)if(!(a==="alignment"||a==="verticalAlignment"||a==="width"||a==="wrapWord"||a==="truncate"||a==="paddingLeft"||a==="paddingRight")){let u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};s===null?s=[u]:s.push(u),o++}if(t.alignment!==void 0&&(Ii(t.alignment,{instancePath:e+"/alignment",parentData:t,parentDataProperty:"alignment",rootData:i})||(s=s===null?Ii.errors:s.concat(Ii.errors),o=s.length)),t.verticalAlignment!==void 0&&(Ni(t.verticalAlignment,{instancePath:e+"/verticalAlignment",parentData:t,parentDataProperty:"verticalAlignment",rootData:i})||(s=s===null?Ni.errors:s.concat(Ni.errors),o=s.length)),t.width!==void 0){let a=t.width;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/width",schemaPath:"#/properties/width/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let u={instancePath:e+"/width",schemaPath:"#/properties/width/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};s===null?s=[u]:s.push(u),o++}}if(t.wrapWord!==void 0&&typeof t.wrapWord!="boolean"){let a={instancePath:e+"/wrapWord",schemaPath:"#/properties/wrapWord/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[a]:s.push(a),o++}if(t.truncate!==void 0){let a=t.truncate;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/truncate",schemaPath:"#/properties/truncate/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}if(t.paddingLeft!==void 0){let a=t.paddingLeft;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/paddingLeft",schemaPath:"#/properties/paddingLeft/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}if(t.paddingRight!==void 0){let a=t.paddingRight;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/paddingRight",schemaPath:"#/properties/paddingRight/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}}}else{let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[a]:s.push(a),o++}return SS.errors=s,o===0}function Yle(t,{instancePath:e="",parentData:r,parentDataProperty:n,rootData:i=t}={}){let s=null,o=0;if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.columnDefault===void 0){let a={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columnDefault"},message:"must have required property 'columnDefault'"};s===null?s=[a]:s.push(a),o++}if(t.columnCount===void 0){let a={instancePath:e,schemaPath:"#/required",keyword:"required",params:{missingProperty:"columnCount"},message:"must have required property 'columnCount'"};s===null?s=[a]:s.push(a),o++}for(let a in t)if(!(a==="border"||a==="columns"||a==="columnDefault"||a==="columnCount"||a==="drawVerticalLine")){let u={instancePath:e,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"};s===null?s=[u]:s.push(u),o++}if(t.border!==void 0&&(_S(t.border,{instancePath:e+"/border",parentData:t,parentDataProperty:"border",rootData:i})||(s=s===null?_S.errors:s.concat(_S.errors),o=s.length)),t.columns!==void 0&&(xS(t.columns,{instancePath:e+"/columns",parentData:t,parentDataProperty:"columns",rootData:i})||(s=s===null?xS.errors:s.concat(xS.errors),o=s.length)),t.columnDefault!==void 0&&(SS(t.columnDefault,{instancePath:e+"/columnDefault",parentData:t,parentDataProperty:"columnDefault",rootData:i})||(s=s===null?SS.errors:s.concat(SS.errors),o=s.length)),t.columnCount!==void 0){let a=t.columnCount;if(!(typeof a=="number"&&!(a%1)&&!isNaN(a)&&isFinite(a))){let u={instancePath:e+"/columnCount",schemaPath:"#/properties/columnCount/type",keyword:"type",params:{type:"integer"},message:"must be integer"};s===null?s=[u]:s.push(u),o++}if(typeof a=="number"&&isFinite(a)&&(a<1||isNaN(a))){let u={instancePath:e+"/columnCount",schemaPath:"#/properties/columnCount/minimum",keyword:"minimum",params:{comparison:">=",limit:1},message:"must be >= 1"};s===null?s=[u]:s.push(u),o++}}if(t.drawVerticalLine!==void 0&&typeof t.drawVerticalLine!="function"){let a={instancePath:e+"/drawVerticalLine",schemaPath:"#/properties/drawVerticalLine/typeof",keyword:"typeof",params:{},message:'must pass "typeof" keyword validation'};s===null?s=[a]:s.push(a),o++}}else{let a={instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[a]:s.push(a),o++}return Yle.errors=s,o===0}});var yL=m(El=>{"use strict";var fdt=El&&El.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(El,"__esModule",{value:!0});El.validateConfig=void 0;var ddt=fdt(Qle()),pdt=(t,e)=>{let r=ddt.default[t];if(!r(e)&&r.errors){let n=r.errors.map(i=>({message:i.message,params:i.params,schemaPath:i.schemaPath}));throw console.log("config",e),console.log("errors",n),new Error("Invalid config.")}};El.validateConfig=pdt});var Jle=m(ES=>{"use strict";Object.defineProperty(ES,"__esModule",{value:!0});ES.makeStreamConfig=void 0;var hdt=pr(),gdt=yL(),mdt=(t,e={},r)=>Array.from({length:t}).map((n,i)=>({alignment:"left",paddingLeft:1,paddingRight:1,truncate:Number.POSITIVE_INFINITY,verticalAlignment:"top",wrapWord:!1,...r,...e[i]})),ydt=t=>{if((0,gdt.validateConfig)("streamConfig.json",t),t.columnDefault.width===void 0)throw new Error("Must provide config.columnDefault.width when creating a stream.");return{drawVerticalLine:()=>!0,...t,border:(0,hdt.makeBorderConfig)(t.border),columns:mdt(t.columnCount,t.columns,t.columnDefault)}};ES.makeStreamConfig=ydt});var DS=m(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.mapDataUsingRowHeights=Ea.padCellVertically=void 0;var bdt=pr(),vdt=fS(),CS=t=>new Array(t).fill(""),wdt=(t,e,r)=>{let n=e-t.length;return r==="top"?[...t,...CS(n)]:r==="bottom"?[...CS(n),...t]:[...CS(Math.floor(n/2)),...t,...CS(Math.ceil(n/2))]};Ea.padCellVertically=wdt;var _dt=(t,e,r)=>{let n=t[0].length,i=t.map((s,o)=>{let a=e[o],u=Array.from({length:a},()=>new Array(n).fill(""));return s.forEach((l,c)=>{var f;let d=(f=r.spanningCellManager)===null||f===void 0?void 0:f.getContainingRange({col:c,row:o});if(d){d.extractCellContent(o).forEach((y,v)=>{u[v][c]=y});return}let p=(0,vdt.wrapCell)(l,r.columns[c].width,r.columns[c].wrapWord);(0,Ea.padCellVertically)(p,a,r.columns[c].verticalAlignment).forEach((y,v)=>{u[v][c]=y})}),u});return(0,bdt.flatten)(i)};Ea.mapDataUsingRowHeights=_dt});var OS=m(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.padTableData=Ca.padString=void 0;var xdt=(t,e,r)=>" ".repeat(e)+t+" ".repeat(r);Ca.padString=xdt;var Sdt=(t,e)=>t.map((r,n)=>r.map((i,s)=>{var o;if((o=e.spanningCellManager)===null||o===void 0?void 0:o.getContainingRange({col:s,row:n},{mapped:!0}))return i;let{paddingLeft:u,paddingRight:l}=e.columns[s];return(0,Ca.padString)(i,u,l)}));Ca.padTableData=Sdt});var bL=m(qS=>{"use strict";Object.defineProperty(qS,"__esModule",{value:!0});qS.stringifyTableData=void 0;var kdt=pr(),Edt=t=>t.map(e=>e.map(r=>(0,kdt.normalizeString)(String(r))));qS.stringifyTableData=Edt});var wce=m((np,Cl)=>{var Cdt=30,Ddt="...",vL=1/0,Odt=17976931348623157e292,Xle=0/0,qdt="[object RegExp]",Rdt="[object Symbol]",Adt=/^\s+|\s+$/g,Pdt=/\w*$/,Tdt=/^[-+]0x[0-9a-f]+$/i,Mdt=/^0b[01]+$/i,Ldt=/^0o[0-7]+$/i,kL="\\ud800-\\udfff",ace="\\u0300-\\u036f\\ufe20-\\ufe23",uce="\\u20d0-\\u20f0",lce="\\ufe0e\\ufe0f",Fdt="["+kL+"]",wL="["+ace+uce+"]",_L="\\ud83c[\\udffb-\\udfff]",Idt="(?:"+wL+"|"+_L+")",cce="[^"+kL+"]",fce="(?:\\ud83c[\\udde6-\\uddff]){2}",dce="[\\ud800-\\udbff][\\udc00-\\udfff]",pce="\\u200d",hce=Idt+"?",gce="["+lce+"]?",Ndt="(?:"+pce+"(?:"+[cce,fce,dce].join("|")+")"+gce+hce+")*",jdt=gce+hce+Ndt,$dt="(?:"+[cce+wL+"?",wL,fce,dce,Fdt].join("|")+")",xL=RegExp(_L+"(?="+_L+")|"+$dt+jdt,"g"),Bdt=RegExp("["+pce+kL+ace+uce+lce+"]"),Wdt=parseInt,mce=typeof global=="object"&&global&&global.Object===Object&&global,zdt=typeof self=="object"&&self&&self.Object===Object&&self,Udt=mce||zdt||Function("return this")(),yce=typeof np=="object"&&np&&!np.nodeType&&np,Zle=yce&&typeof Cl=="object"&&Cl&&!Cl.nodeType&&Cl,Hdt=Zle&&Zle.exports===yce,ece=Hdt&&mce.process,tce=function(){try{return ece&&ece.binding("util")}catch{}}(),rce=tce&&tce.isRegExp,Vdt=Kdt("length");function Gdt(t){return t.split("")}function Kdt(t){return function(e){return e?.[t]}}function Ydt(t){return function(e){return t(e)}}function EL(t){return Bdt.test(t)}function Qdt(t){return EL(t)?Xdt(t):Vdt(t)}function Jdt(t){return EL(t)?Zdt(t):Gdt(t)}function Xdt(t){for(var e=xL.lastIndex=0;xL.test(t);)e++;return e}function Zdt(t){return t.match(xL)||[]}var ept=Object.prototype,bce=ept.toString,nce=Udt.Symbol,ice=nce?nce.prototype:void 0,sce=ice?ice.toString:void 0;function tpt(t){return RS(t)&&bce.call(t)==qdt}function rpt(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),r=r>i?i:r,r<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var s=Array(i);++n<i;)s[n]=t[n+e];return s}function SL(t){if(typeof t=="string")return t;if(vce(t))return sce?sce.call(t):"";var e=t+"";return e=="0"&&1/t==-vL?"-0":e}function npt(t,e,r){var n=t.length;return r=r===void 0?n:r,!e&&r>=n?t:rpt(t,e,r)}function RS(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function ipt(t){return!!t&&typeof t=="object"}var spt=rce?Ydt(rce):tpt;function vce(t){return typeof t=="symbol"||ipt(t)&&bce.call(t)==Rdt}function opt(t){if(!t)return t===0?t:0;if(t=upt(t),t===vL||t===-vL){var e=t<0?-1:1;return e*Odt}return t===t?t:0}function apt(t){var e=opt(t),r=e%1;return e===e?r?e-r:e:0}function upt(t){if(typeof t=="number")return t;if(vce(t))return Xle;if(RS(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=RS(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(Adt,"");var r=Mdt.test(t);return r||Ldt.test(t)?Wdt(t.slice(2),r?2:8):Tdt.test(t)?Xle:+t}function oce(t){return t==null?"":SL(t)}function lpt(t,e){var r=Cdt,n=Ddt;if(RS(e)){var i="separator"in e?e.separator:i;r="length"in e?apt(e.length):r,n="omission"in e?SL(e.omission):n}t=oce(t);var s=t.length;if(EL(t)){var o=Jdt(t);s=o.length}if(r>=s)return t;var a=r-Qdt(n);if(a<1)return n;var u=o?npt(o,0,a).join(""):t.slice(0,a);if(i===void 0)return u+n;if(o&&(a+=u.length-a),spt(i)){if(t.slice(a).search(i)){var l,c=u;for(i.global||(i=RegExp(i.source,oce(Pdt.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var f=l.index;u=u.slice(0,f===void 0?a:f)}}else if(t.indexOf(SL(i),a)!=a){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+n}Cl.exports=lpt});var AS=m(gs=>{"use strict";var cpt=gs&&gs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gs,"__esModule",{value:!0});gs.truncateTableData=gs.truncateString=void 0;var fpt=cpt(wce()),dpt=(t,e)=>(0,fpt.default)(t,{length:e,omission:"\u2026"});gs.truncateString=dpt;var ppt=(t,e)=>t.map(r=>r.map((n,i)=>(0,gs.truncateString)(n,e[i])));gs.truncateTableData=ppt});var Sce=m(TS=>{"use strict";Object.defineProperty(TS,"__esModule",{value:!0});TS.createStream=void 0;var hpt=cL(),gpt=fL(),PS=dL(),_ce=pL(),mpt=Jle(),ypt=DS(),bpt=OS(),vpt=bL(),wpt=AS(),_pt=pr(),xce=(t,e)=>{let r=(0,vpt.stringifyTableData)(t);r=(0,wpt.truncateTableData)(r,(0,_pt.extractTruncates)(e));let n=(0,gpt.calculateRowHeights)(r,e);return r=(0,ypt.mapDataUsingRowHeights)(r,n,e),r=(0,hpt.alignTableData)(r,e),r=(0,bpt.padTableData)(r,e),r},xpt=(t,e,r)=>{let i=xce([t],r).map(o=>(0,_ce.drawRow)(o,r)).join(""),s;s="",s+=(0,PS.drawBorderTop)(e,r),s+=i,s+=(0,PS.drawBorderBottom)(e,r),s=s.trimEnd(),process.stdout.write(s)},Spt=(t,e,r)=>{let i=xce([t],r).map(a=>(0,_ce.drawRow)(a,r)).join(""),s="",o=(0,PS.drawBorderBottom)(e,r);o!==`
|
|
330
|
+
`&&(s="\r\x1B[K"),s+=(0,PS.drawBorderJoin)(e,r),s+=i,s+=o,s=s.trimEnd(),process.stdout.write(s)},kpt=t=>{let e=(0,mpt.makeStreamConfig)(t),r=Object.values(e.columns).map(i=>i.width+i.paddingLeft+i.paddingRight),n=!0;return{write:i=>{if(i.length!==e.columnCount)throw new Error("Row cell count does not match the config.columnCount.");n?(n=!1,xpt(i,r,e)):Spt(i,r,e)}}};TS.createStream=kpt});var kce=m(MS=>{"use strict";Object.defineProperty(MS,"__esModule",{value:!0});MS.calculateOutputColumnWidths=void 0;var Ept=t=>t.columns.map(e=>e.paddingLeft+e.width+e.paddingRight);MS.calculateOutputColumnWidths=Ept});var Ece=m(LS=>{"use strict";Object.defineProperty(LS,"__esModule",{value:!0});LS.drawTable=void 0;var Cpt=dL(),Dpt=gS(),Opt=pL(),qpt=pr(),Rpt=(t,e,r,n)=>{let{drawHorizontalLine:i,singleLine:s}=n,o=(0,qpt.groupBySizes)(t,r).map((a,u)=>a.map(l=>(0,Opt.drawRow)(l,{...n,rowIndex:u})).join(""));return(0,Dpt.drawContent)({contents:o,drawSeparator:(a,u)=>(a===0||a===u||!s)&&i(a,u),elementType:"row",rowIndex:-1,separatorGetter:(0,Cpt.createTableBorderGetter)(e,{...n,rowCount:o.length}),spanningCellManager:n.spanningCellManager})};LS.drawTable=Rpt});var Cce=m(FS=>{"use strict";Object.defineProperty(FS,"__esModule",{value:!0});FS.injectHeaderConfig=void 0;var Apt=(t,e)=>{var r;let n=(r=e.spanningCells)!==null&&r!==void 0?r:[],i=e.header,s=[...t];if(i){n=n.map(({row:u,...l})=>({...l,row:u+1}));let{content:o,...a}=i;n.unshift({alignment:"center",col:0,colSpan:t[0].length,paddingLeft:1,paddingRight:1,row:0,wrapWord:!1,...a}),s.unshift([o,...Array.from({length:t[0].length-1}).fill("")])}return[s,n]};FS.injectHeaderConfig=Apt});var Oce=m(ms=>{"use strict";var Ppt=ms&&ms.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ms,"__esModule",{value:!0});ms.calculateMaximumColumnWidths=ms.calculateMaximumCellWidth=void 0;var Tpt=Ppt(Sa()),Dce=pr(),Mpt=t=>Math.max(...t.split(`
|
|
331
|
+
`).map(Tpt.default));ms.calculateMaximumCellWidth=Mpt;var Lpt=(t,e=[])=>{let r=new Array(t[0].length).fill(0),n=e.map(Dce.calculateRangeCoordinate),i=(s,o)=>n.some(a=>(0,Dce.isCellInRange)({col:o,row:s},a));return t.forEach((s,o)=>{s.forEach((a,u)=>{i(o,u)||(r[u]=Math.max(r[u],(0,ms.calculateMaximumCellWidth)(a)))})}),r};ms.calculateMaximumColumnWidths=Lpt});var Rce=m(co=>{"use strict";var Fpt=co&&co.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(co,"__esModule",{value:!0});co.alignVerticalRangeContent=co.wrapRangeContent=void 0;var Ipt=Fpt(Sa()),Npt=lL(),jpt=DS(),$pt=OS(),Bpt=AS(),qce=pr(),Wpt=fS(),zpt=(t,e,r)=>{let{topLeft:n,paddingRight:i,paddingLeft:s,truncate:o,wrapWord:a,alignment:u}=t,l=r.rows[n.row][n.col],c=e-s-i;return(0,Wpt.wrapCell)((0,Bpt.truncateString)(l,o),c,a).map(f=>{let d=(0,Npt.alignString)(f,c,u);return(0,$pt.padString)(d,s,i)})};co.wrapRangeContent=zpt;var Upt=(t,e,r)=>{let{rows:n,drawHorizontalLine:i,rowHeights:s}=r,{topLeft:o,bottomRight:a,verticalAlignment:u}=t;if(s.length===0)return[];let l=(0,qce.sumArray)(s.slice(o.row,a.row+1)),c=a.row-o.row,f=(0,qce.sequence)(o.row+1,a.row).filter(p=>!i(p,n.length)).length,d=l+c-f;return(0,jpt.padCellVertically)(e,d,u).map(p=>p.length===0?" ".repeat((0,Ipt.default)(e[0])):p)};co.alignVerticalRangeContent=Upt});var Ace=m(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});IS.calculateSpanningCellWidth=void 0;var CL=pr(),Hpt=(t,e)=>{let{columnsConfig:r,drawVerticalLine:n}=e,{topLeft:i,bottomRight:s}=t,o=(0,CL.sumArray)(r.slice(i.col,s.col+1).map(({width:c})=>c)),a=i.col===s.col?r[i.col].paddingRight+r[s.col].paddingLeft:(0,CL.sumArray)(r.slice(i.col,s.col+1).map(({paddingLeft:c,paddingRight:f})=>c+f)),u=s.col-i.col,l=(0,CL.sequence)(i.col+1,s.col).filter(c=>!n(c,r.length)).length;return o+a+u-l};IS.calculateSpanningCellWidth=Hpt});var Pce=m(NS=>{"use strict";Object.defineProperty(NS,"__esModule",{value:!0});NS.makeRangeConfig=void 0;var Vpt=pr(),Gpt=(t,e)=>{var r;let{topLeft:n,bottomRight:i}=(0,Vpt.calculateRangeCoordinate)(t);return{...{...e[n.col],...t,paddingRight:(r=t.paddingRight)!==null&&r!==void 0?r:e[i.col].paddingRight},bottomRight:i,topLeft:n}};NS.makeRangeConfig=Gpt});var Lce=m(jS=>{"use strict";Object.defineProperty(jS,"__esModule",{value:!0});jS.createSpanningCellManager=void 0;var Tce=Rce(),Kpt=Ace(),Ypt=Pce(),Dl=pr(),DL=(t,e)=>e.find(r=>(0,Dl.isCellInRange)(t,r)),Mce=(t,e)=>{let r=(0,Kpt.calculateSpanningCellWidth)(t,e),n=(0,Tce.wrapRangeContent)(t,r,e),i=(0,Tce.alignVerticalRangeContent)(t,n,e);return{...t,extractBorderContent:a=>{let{topLeft:u}=t,l=(0,Dl.sumArray)(e.rowHeights.slice(u.row,a))+(a-u.row-1);return i[l]},extractCellContent:a=>{let{topLeft:u}=t,{drawHorizontalLine:l,rowHeights:c}=e,f=a-u.row,d=(0,Dl.sequence)(u.row+1,a).filter(h=>!l?.(h,c.length)).length,p=(0,Dl.sumArray)(c.slice(u.row,a))+f-d;return i.slice(p,p+c[a])},height:n.length,width:r}},Qpt=(t,e,r)=>{let n=DL(t,r),i=DL(e,r);return n&&i?(0,Dl.areCellEqual)(n.topLeft,i.topLeft):!1},Jpt=t=>{let{row:e,col:r}=t.topLeft;return`${e}/${r}`},Xpt=t=>{let{spanningCellConfigs:e,columnsConfig:r}=t,n=e.map(o=>(0,Ypt.makeRangeConfig)(o,r)),i={},s=[];return{getContainingRange:(o,a)=>{var u;let l=a?.mapped?(0,Dl.findOriginalRowIndex)(s,o.row):o.row,c=DL({...o,row:l},n);if(!c)return;if(s.length===0)return Mce(c,{...t,rowHeights:s});let f=Jpt(c);return(u=i[f])!==null&&u!==void 0||(i[f]=Mce(c,{...t,rowHeights:s})),i[f]},inSameRange:(o,a)=>Qpt(o,a,n),rowHeights:s,setRowHeights:o=>{s=o}}};jS.createSpanningCellManager=Xpt});var Fce=m(BS=>{"use strict";Object.defineProperty(BS,"__esModule",{value:!0});BS.validateSpanningCellConfig=void 0;var OL=pr(),$S=(t,e,r)=>t<=r&&r<=e,Zpt=(t,e)=>{let[r,n]=[t.length,t[0].length];e.forEach((o,a)=>{let{colSpan:u,rowSpan:l}=o;if(u===void 0&&l===void 0)throw new Error(`Expect at least colSpan or rowSpan is provided in config.spanningCells[${a}]`);if(u!==void 0&&u<1)throw new Error(`Expect colSpan is not equal zero, instead got: ${u} in config.spanningCells[${a}]`);if(l!==void 0&&l<1)throw new Error(`Expect rowSpan is not equal zero, instead got: ${l} in config.spanningCells[${a}]`)});let i=e.map(OL.calculateRangeCoordinate);i.forEach(({topLeft:o,bottomRight:a},u)=>{if(!$S(0,n-1,o.col)||!$S(0,r-1,o.row)||!$S(0,n-1,a.col)||!$S(0,r-1,a.row))throw new Error(`Some cells in config.spanningCells[${u}] are out of the table`)});let s=Array.from({length:r},()=>Array.from({length:n}));i.forEach(({topLeft:o,bottomRight:a},u)=>{(0,OL.sequence)(o.row,a.row).forEach(l=>{(0,OL.sequence)(o.col,a.col).forEach(c=>{if(s[l][c]!==void 0)throw new Error(`Spanning cells in config.spanningCells[${s[l][c]}] and config.spanningCells[${u}] are overlap each other`);s[l][c]=u})})})};BS.validateSpanningCellConfig=Zpt});var Ice=m(WS=>{"use strict";Object.defineProperty(WS,"__esModule",{value:!0});WS.makeTableConfig=void 0;var eht=Oce(),tht=Lce(),rht=pr(),nht=yL(),iht=Fce(),sht=(t,e,r,n)=>{let i=(0,eht.calculateMaximumColumnWidths)(t,n);return t[0].map((s,o)=>({alignment:"left",paddingLeft:1,paddingRight:1,truncate:Number.POSITIVE_INFINITY,verticalAlignment:"top",width:i[o],wrapWord:!1,...r,...e?.[o]}))},oht=(t,e={},r)=>{var n,i,s,o,a;(0,nht.validateConfig)("config.json",e),(0,iht.validateSpanningCellConfig)(t,(n=e.spanningCells)!==null&&n!==void 0?n:[]);let u=(i=r??e.spanningCells)!==null&&i!==void 0?i:[],l=sht(t,e.columns,e.columnDefault,u),c=(s=e.drawVerticalLine)!==null&&s!==void 0?s:()=>!0,f=(o=e.drawHorizontalLine)!==null&&o!==void 0?o:()=>!0;return{...e,border:(0,rht.makeBorderConfig)(e.border),columns:l,drawHorizontalLine:f,drawVerticalLine:c,singleLine:(a=e.singleLine)!==null&&a!==void 0?a:!1,spanningCellManager:(0,tht.createSpanningCellManager)({columnsConfig:l,drawHorizontalLine:f,drawVerticalLine:c,rows:t,spanningCellConfigs:u})}};WS.makeTableConfig=oht});var Nce=m(zS=>{"use strict";Object.defineProperty(zS,"__esModule",{value:!0});zS.validateTableData=void 0;var aht=pr(),uht=t=>{if(!Array.isArray(t))throw new TypeError("Table data must be an array.");if(t.length===0)throw new Error("Table must define at least one row.");if(t[0].length===0)throw new Error("Table must define at least one column.");let e=t[0].length;for(let r of t){if(!Array.isArray(r))throw new TypeError("Table row data must be an array.");if(r.length!==e)throw new Error("Table must have a consistent number of cells.");for(let n of r)if(/[\u0001-\u0006\u0008\u0009\u000B-\u001A]/.test((0,aht.normalizeString)(String(n))))throw new Error("Table data must not contain control characters.")}};zS.validateTableData=uht});var jce=m(US=>{"use strict";Object.defineProperty(US,"__esModule",{value:!0});US.table=void 0;var lht=cL(),cht=kce(),fht=fL(),dht=Ece(),pht=Cce(),hht=Ice(),ght=DS(),mht=OS(),yht=bL(),bht=AS(),vht=pr(),wht=Nce(),_ht=(t,e={})=>{(0,wht.validateTableData)(t);let r=(0,yht.stringifyTableData)(t),[n,i]=(0,pht.injectHeaderConfig)(r,e),s=(0,hht.makeTableConfig)(n,e,i);r=(0,bht.truncateTableData)(n,(0,vht.extractTruncates)(s));let o=(0,fht.calculateRowHeights)(r,s);s.spanningCellManager.setRowHeights(o),r=(0,ght.mapDataUsingRowHeights)(r,o,s),r=(0,lht.alignTableData)(r,s),r=(0,mht.padTableData)(r,s);let a=(0,cht.calculateOutputColumnWidths)(s);return(0,dht.drawTable)(r,a,o,s)};US.table=_ht});var Bce=m($ce=>{"use strict";Object.defineProperty($ce,"__esModule",{value:!0})});var Wce=m(kn=>{"use strict";var xht=kn&&kn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Sht=kn&&kn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&xht(e,t,r)};Object.defineProperty(kn,"__esModule",{value:!0});kn.getBorderCharacters=kn.createStream=kn.table=void 0;var kht=Sce();Object.defineProperty(kn,"createStream",{enumerable:!0,get:function(){return kht.createStream}});var Eht=oL();Object.defineProperty(kn,"getBorderCharacters",{enumerable:!0,get:function(){return Eht.getBorderCharacters}});var Cht=jce();Object.defineProperty(kn,"table",{enumerable:!0,get:function(){return Cht.table}});Sht(Bce(),kn)});var qL=m((K3t,zce)=>{"use strict";zce.exports=function(e,r){switch(e){case"error":r.error+=1;break;case"warning":r.warning+=1;break;default:throw new Error(`Unknown severity: "${e}"`)}}});var HS=m((Y3t,Uce)=>{"use strict";Uce.exports=function(e,r){return r===1?e:`${e}s`}});var Gce=m((Q3t,Vce)=>{"use strict";var Dht=hM(),Ol=fM();function Hce(t){if(/^\d{3,4}$/.test(t)){let r=/(\d{1,2})(\d{2})/.exec(t);return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let e=(t||"").split(".").map(r=>parseInt(r,10));return{major:e[0],minor:e[1],patch:e[2]}}function RL(t){let{env:e}=process;if("FORCE_HYPERLINK"in e)return!(e.FORCE_HYPERLINK.length>0&&parseInt(e.FORCE_HYPERLINK,10)===0);if(Ol("no-hyperlink")||Ol("no-hyperlinks")||Ol("hyperlink=false")||Ol("hyperlink=never"))return!1;if(Ol("hyperlink=true")||Ol("hyperlink=always")||"NETLIFY"in e)return!0;if(!Dht.supportsColor(t)||t&&!t.isTTY||process.platform==="win32"||"CI"in e||"TEAMCITY_VERSION"in e)return!1;if("TERM_PROGRAM"in e){let r=Hce(e.TERM_PROGRAM_VERSION);switch(e.TERM_PROGRAM){case"iTerm.app":return r.major===3?r.minor>=1:r.major>3;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72}}if("VTE_VERSION"in e){if(e.VTE_VERSION==="0.50.0")return!1;let r=Hce(e.VTE_VERSION);return r.major>0||r.minor>=50}return!1}Vce.exports={supportsHyperlink:RL,stdout:RL(process.stdout),stderr:RL(process.stderr)}});var AL=m((J3t,Qce)=>{"use strict";var Oht=Gce(),Kce="\x1B]",Yce="\x07",VS=";";Qce.exports=function(e,r){return Oht.stdout?[Kce,"8",VS,VS,r,Yce,e,Kce,"8",VS,VS,Yce].join(""):e}});var TL=m((X3t,sfe)=>{"use strict";var Jce=H("path"),qht=Sa(),Xce=Wce(),{yellow:KS,dim:GS,underline:rfe,blue:nfe,red:YS,green:Rht}=Bo(),Aht=qL(),PL=HS(),{assertNumber:ife}=re(),Pht=bl(),Tht=AL(),Zce=9;function Mht(t){return t}var Lht={info:nfe,warning:KS,error:YS,success:Mht},efe={info:nfe("\u2139"),warning:KS("\u26A0"),error:YS("\u2716"),success:Rht("\u2714")};function Fht(t){let e=t.flatMap(n=>n.deprecations||[]);if(e.length===0)return"";let r=new Set;return e.reduce((n,i)=>r.has(i.text)?n:(r.add(i.text),n+=KS("Deprecation Warning: "),n+=i.text,i.reference&&(n+=GS(" See: "),n+=GS(rfe(i.reference))),`${n}
|
|
332
332
|
`),`
|
|
333
333
|
`)}function Iht(t){let e=t.flatMap(n=>(n.invalidOptionWarnings||[]).map(i=>i.text));return[...new Set(e)].reduce((n,i)=>(n+=YS("Invalid Option: "),n+=i,`${n}
|
|
334
334
|
`),`
|
|
@@ -391,11 +391,11 @@ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LAN
|
|
|
391
391
|
https://www.w3ctech.com/topic/2226`));let a=r(...o);return a.postcssPlugin=e,a.postcssVersion=new sF().version,a}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(o,a,u){return ct([i(u)]).process(o,a)},i};ct.stringify=Emt;ct.parse=Rmt;ct.fromJSON=Cmt;ct.list=Amt;ct.comment=t=>new Lde(t);ct.atRule=t=>new Fde(t);ct.decl=t=>new Tde(t);ct.rule=t=>new Ide(t);ct.root=t=>new Nde(t);ct.document=t=>new Mde(t);ct.CssSyntaxError=xmt;ct.Declaration=Tde;ct.Container=kmt;ct.Processor=sF;ct.Document=Mde;ct.Comment=Lde;ct.Warning=Dmt;ct.AtRule=Fde;ct.Result=Omt;ct.Input=qmt;ct.Rule=Ide;ct.Root=Nde;ct.Node=Pmt;Smt.registerPostcss(ct);jde.exports=ct;ct.default=ct});var Wde=m((PNt,Bde)=>{var Tmt=ik(),Mmt=Rl(),Lmt=tF(),oF=class extends Lmt{createTokenizer(){this.tokenizer=Tmt(this.input,{ignoreErrors:!0})}comment(e){let r=new Mmt;this.init(r,e[2]);let n=this.input.fromOffset(e[3])||this.input.fromOffset(this.input.css.length-1);r.source.end={offset:e[3],line:n.line,column:n.col};let i=e[1].slice(2);if(i.slice(-2)==="*/"&&(i=i.slice(0,-2)),/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{let s=i.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}}decl(e){e.length>1&&e.some(r=>r[0]==="word")&&super.decl(e)}unclosedBracket(){}unknownWord(e){this.spaces+=e.map(r=>r[1]).join("")}unexpectedClose(){this.current.raws.after+="}"}doubleColon(){}unnamedAtrule(e){e.name=""}precheckMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n,i;for(n=r-1;n>=0&&e[n][0]!=="word";n--);if(n===0)return;for(i=n-1;i>=0;i--)if(e[i][0]!=="space"){i+=1;break}let s=e.slice(n),o=e.slice(i,n);e.splice(i,e.length-i),this.spaces=o.map(a=>a[1]).join(""),this.decl(s)}checkMissedSemicolon(){}endFile(){for(this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.current.parent;)this.current=this.current.parent,this.current.raws.after=""}};Bde.exports=oF});var Ude=m((TNt,zde)=>{var{Input:Fmt}=$de(),Imt=Wde();zde.exports=function(e,r){let n=new Fmt(e,r),i=new Imt(n);return i.parse(),i.root}});var Gde=m((MNt,Vde)=>{"use strict";var Nmt=Jb().default,jmt=H("path"),{default:yk}=Xb(),{promises:$mt}=H("fs"),Bmt=sM(),Wmt=yk();Vde.exports=async function(e,r={}){let n=r.filePath?e._postcssResultCache.get(r.filePath):void 0;if(n)return n;if(e._options.syntax){let u='The "syntax" option is no longer available. ';return u+=e._options.syntax==="css"?'You can remove the "--syntax" CLI flag as stylelint will now parse files as CSS by default':'You should install an appropriate syntax, e.g. postcss-scss, and use the "customSyntax" option',Promise.reject(new Error(u))}let i=r.customSyntax?zmt(r.customSyntax,e._options.configBasedir):Umt(e,r.filePath),s={from:r.filePath,syntax:i},o;if(r.code!==void 0?o=r.code:r.filePath&&(o=await $mt.readFile(r.filePath,"utf8")),o===void 0)return Promise.reject(new Error("code or filePath required"));if(r.codeProcessors&&r.codeProcessors.length){e._options.fix&&(console.warn("Autofix is incompatible with processors and will be disabled. Are you sure you need a processor?"),e._options.fix=!1);let u=r.code?r.codeFilename:r.filePath;for(let l of r.codeProcessors)o=l(o,u)}let a=await new Nmt(Wmt,o,s);return r.filePath&&e._postcssResultCache.set(r.filePath,a),a};function zmt(t,e){if(typeof t=="string"){let r=e?Bmt(e,t):t,n;try{n=H(r)}catch(i){throw i&&typeof i=="object"&&"code"in i&&i.code==="MODULE_NOT_FOUND"&&"message"in i&&typeof i.message=="string"&&i.message.includes(t)?new Error(`Cannot resolve custom syntax module "${t}". Check that module "${t}" is available and spelled correctly.
|
|
392
392
|
|
|
393
393
|
Caused by: ${i}`):i}return n.parse||(n={parse:n,stringify:yk.stringify}),n}if(typeof t=="object"){if(typeof t.parse=="function")return{...t};throw new TypeError('An object provided to the "customSyntax" option must have a "parse" property. Ensure the "parse" property exists and its value is a function.')}throw new Error("Custom syntax must be a string or a Syntax object")}var Hde={html:"postcss-html",js:"@stylelint/postcss-css-in-js",jsx:"@stylelint/postcss-css-in-js",less:"postcss-less",md:"postcss-markdown",sass:"postcss-sass",sss:"sugarss",scss:"postcss-scss",svelte:"postcss-html",ts:"@stylelint/postcss-css-in-js",tsx:"@stylelint/postcss-css-in-js",vue:"postcss-html",xml:"postcss-html",xst:"postcss-html"};function Umt(t,e){let r=e?jmt.extname(e).slice(1).toLowerCase():"",n=["css","pcss","postcss"];return Hde[r]&&console.warn(`${e}: When linting something other than CSS, you should install an appropriate syntax, e.g. "${Hde[r]}", and use the "customSyntax" option`),{parse:t._options.fix&&n.includes(r)?Ude():yk.parse,stringify:yk.stringify}}});var vk=m((FNt,rpe)=>{function Kde(t){return Array.isArray(t)?t:[t]}var Xde="",Yde=" ",aF="\\",Hmt=/^\s+$/,Vmt=/(?:[^\\]|^)\\$/,Gmt=/^\\!/,Kmt=/^\\#/,Ymt=/\r?\n/g,Qmt=/^\.*\/|^\.+$/,uF="/",Zde="node-ignore";typeof Symbol<"u"&&(Zde=Symbol.for("node-ignore"));var Qde=Zde,Jmt=(t,e,r)=>Object.defineProperty(t,e,{value:r}),Xmt=/([0-z])-([0-z])/g,epe=()=>!1,Zmt=t=>t.replace(Xmt,(e,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?e:Xde),eyt=t=>{let{length:e}=t;return t.slice(0,e-e%2)},tyt=[[/\\?\s+$/,t=>t.indexOf("\\")===0?Yde:Xde],[/\\\s/g,()=>Yde],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t,e,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return e+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>aF],[/\\\\/g,()=>aF],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,n,i)=>e===aF?`\\[${r}${eyt(n)}${i}`:i==="]"&&n.length%2===0?`[${Zmt(r)}${n}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Jde=Object.create(null),ryt=(t,e)=>{let r=Jde[t];return r||(r=tyt.reduce((n,i)=>n.replace(i[0],i[1].bind(t)),t),Jde[t]=r),e?new RegExp(r,"i"):new RegExp(r)},fF=t=>typeof t=="string",nyt=t=>t&&fF(t)&&!Hmt.test(t)&&!Vmt.test(t)&&t.indexOf("#")!==0,iyt=t=>t.split(Ymt),lF=class{constructor(e,r,n,i){this.origin=e,this.pattern=r,this.negative=n,this.regex=i}},syt=(t,e)=>{let r=t,n=!1;t.indexOf("!")===0&&(n=!0,t=t.substr(1)),t=t.replace(Gmt,"!").replace(Kmt,"#");let i=ryt(t,e);return new lF(r,t,n,i)},oyt=(t,e)=>{throw new e(t)},ys=(t,e,r)=>fF(t)?t?ys.isNotRelative(t)?r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${e}\``,TypeError),tpe=t=>Qmt.test(t);ys.isNotRelative=tpe;ys.convert=t=>t;var cF=class{constructor({ignorecase:e=!0,ignoreCase:r=e,allowRelativePaths:n=!1}={}){Jmt(this,Qde,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[Qde]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(nyt(e)){let r=syt(e,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(e){return this._added=!1,Kde(fF(e)?iyt(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,r){let n=!1,i=!1;return this._rules.forEach(s=>{let{negative:o}=s;if(i===o&&n!==i||o&&!n&&!i&&!r)return;s.regex.test(e)&&(n=!o,i=o)}),{ignored:n,unignored:i}}_test(e,r,n,i){let s=e&&ys.convert(e);return ys(s,e,this._allowRelativePaths?epe:oyt),this._t(s,r,n,i)}_t(e,r,n,i){if(e in r)return r[e];if(i||(i=e.split(uF)),i.pop(),!i.length)return r[e]=this._testOne(e,n);let s=this._t(i.join(uF)+uF,r,n,i);return r[e]=s.ignored?s:this._testOne(e,n)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return Kde(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},bk=t=>new cF(t),ayt=t=>ys(t&&ys.convert(t),t,epe);bk.isPathValid=ayt;bk.default=bk;rpe.exports=bk;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");ys.convert=t;let e=/^[a-z]:\//i;ys.isNotRelative=r=>e.test(r)||tpe(r)}});var dF=m((INt,npe)=>{"use strict";var{isPathValid:uyt}=vk().default;npe.exports=function(e,r){let n=r.filter(uyt),i=new Set(r.filter(o=>!n.includes(o))),s=new Set(e.filter(n));return r.filter(o=>i.has(o)||s.has(o))}});var pF=m((NNt,ipe)=>{"use strict";var lyt=H("util");ipe.exports=function(e){return lyt.types.isNativeError(e)&&e.code==="ENOENT"}});var hF=m((jNt,ope)=>{"use strict";var cyt=H("fs"),spe=H("path"),{default:fyt}=vk(),dyt=pF(),pyt=".stylelintignore";ope.exports=function(e){let r=fyt(),n=[e.ignorePath||[]].flat();n.length===0&&n.push(pyt);for(let i of n){let s=spe.isAbsolute(i)?i:spe.resolve(e.cwd,i);try{let o=cyt.readFileSync(s,"utf8");r.add(o)}catch(o){if(!dyt(o))throw o}}return r.add(e.ignorePattern||[]),r}});var upe=m(($Nt,ape)=>{"use strict";var hyt=wg(),gyt=N1(),gF=H("path"),myt=dF(),yyt=ip(),byt=hF();ape.exports=async function(e,r){if(!r)return!1;let n=e._options.cwd,i=byt(e._options),s=await yyt(e,r,r);if(!s)return!0;let o=[s.config.ignoreFiles||[]].flat().map(u=>gyt(u)),a=gF.isAbsolute(r)?r:gF.resolve(n,r);return!!(hyt([a],o).length||myt(i,[gF.relative(n,a)]).length===0)}});var gpe=m((BNt,hpe)=>{"use strict";var lpe=qu(),{DISABLE_COMMAND:cpe,DISABLE_LINE_COMMAND:fpe,DISABLE_NEXT_LINE_COMMAND:dpe,ENABLE_COMMAND:ppe,extractStylelintCommand:vyt,isStylelintCommand:mF}=C2(),{assert:wyt,assertNumber:_yt,assertString:xyt}=re(),Un="all";function yF(t,e,r,n,i,s){return{comment:t,start:e,end:i||void 0,strictStart:r,strictEnd:typeof s=="boolean"?s:void 0,description:n}}hpe.exports=function(e,r){r.stylelint=r.stylelint||{disabledRanges:{},ruleSeverities:{},customMessages:{},ruleMetadata:{}};let n={[Un]:[]};r.stylelint.disabledRanges=n;let i;return e.walkComments(g=>{if(i){i===g&&(i=null);return}let b=g.next();if(!(!lpe(g)&&mF(g)&&b&&b.type==="comment"&&(g.text.includes("--")||b.text.startsWith("--")))){c(g);return}let w=g.source&&g.source.end&&g.source.end.line||0,_=g.clone(),S=b;for(;!lpe(S)&&!mF(S);){let q=S.source&&S.source.end&&S.source.end.line||0;if(w+1!==q)break;_.text+=`
|
|
394
|
-
${S.text}`,_.source&&S.source&&(_.source.end=S.source.end),i=S;let C=S.next();if(!C||C.type!=="comment")break;S=C,w=q}c(_)}),r;function s(g){if(g.source&&g.source.start){let b=g.source.start.line,w=d(g.text);for(let _ of f(fpe,g.text))a(g,b,_,w)}}function o(g){if(g.source&&g.source.end){let b=g.source.end.line,w=d(g.text);for(let _ of f(dpe,g.text))a(g,b+1,_,w)}}function a(g,b,w,_){if(v(Un))throw g.error("All rules have already been disabled",{plugin:"stylelint"});if(w===Un)for(let S of Object.keys(n)){if(v(S))continue;let q=S===Un;p(g,b,S,q,_),h(b,S,q)}else{if(v(w))throw g.error(`"${w}" has already been disabled`,{plugin:"stylelint"});p(g,b,w,!0,_),h(b,w,!0)}}function u(g){let b=d(g.text);for(let w of f(cpe,g.text)){let _=w===Un;if(v(w))throw g.error(_?"All rules have already been disabled":`"${w}" has already been disabled`,{plugin:"stylelint"});if(g.source&&g.source.start){let S=g.source.start.line;if(_)for(let q of Object.keys(n))p(g,S,q,q===Un,b);else p(g,S,w,!0,b)}}}function l(g){for(let b of f(ppe,g.text)){let w=g.source&&g.source.end&&g.source.end.line;if(_yt(w),b===Un){if(Object.values(n).every(_=>{if(_.length===0)return!0;let S=_[_.length-1];return S&&typeof S.end=="number"}))throw g.error("No rules have been disabled",{plugin:"stylelint"});for(let[_,S]of Object.entries(n)){let q=S[S.length-1];(!q||!q.end)&&h(w,_,_===Un)}continue}if(v(Un)&&n[b]===void 0){n[b]=n[Un].map(({start:_,end:S,description:q})=>yF(g,_,!1,q,S,!1)),h(w,b,!0);continue}if(v(b)){h(w,b,!0);continue}throw g.error(`"${b}" has not been disabled`,{plugin:"stylelint"})}}function c(g){if(mF(g))switch(vyt(g)){case fpe:s(g);break;case dpe:o(g);break;case cpe:u(g);break;case ppe:l(g);break}}function f(g,b){let w=b.slice(g.length).split(/\s-{2,}\s/u)[0];xyt(w);let _=w.trim().split(",").filter(Boolean).map(S=>S.trim());return _.length===0?[Un]:_}function d(g){let b=g.indexOf("--");if(b!==-1)return g.slice(b+2).trim()}function p(g,b,w,_,S){let q=yF(g,b,_,S);y(w);let C=n[w];wyt(C),C.push(q)}function h(g,b,w){let _=n[b],S=_?_[_.length-1]:null;S&&(S.end=g,S.strictEnd=w)}function y(g){n[g]||(n[g]=n[Un].map(({comment:b,start:w,end:_,description:S})=>yF(b,w,!1,S,_,!1)))}function v(g){let b=n[g];if(!b)return!1;let w=b[b.length-1];return w?!w.end:!1}}});var ype=m((WNt,mpe)=>{"use strict";var Syt=H("os");function kyt(){return Syt.EOL}mpe.exports=kyt});var vpe=m(Ll=>{"use strict";Ll.__esModule=!0;Ll.distance=Ll.closest=void 0;var bs=new Uint32Array(65536),Eyt=function(t,e){for(var r=t.length,n=e.length,i=1<<r-1,s=-1,o=0,a=r,u=r;u--;)bs[t.charCodeAt(u)]|=1<<u;for(u=0;u<n;u++){var l=bs[e.charCodeAt(u)],c=l|o;l|=(l&s)+s^s,o|=~(l|s),s&=l,o&i&&a++,s&i&&a--,o=o<<1|1,s=s<<1|~(c|o),o&=c}for(u=r;u--;)bs[t.charCodeAt(u)]=0;return a},Cyt=function(t,e){for(var r=e.length,n=t.length,i=[],s=[],o=Math.ceil(r/32),a=Math.ceil(n/32),u=0;u<o;u++)s[u]=-1,i[u]=0;for(var l=0;l<a-1;l++){for(var c=0,f=-1,d=l*32,p=Math.min(32,n)+d,h=d;h<p;h++)bs[t.charCodeAt(h)]|=1<<h;for(var u=0;u<r;u++){var y=bs[e.charCodeAt(u)],v=s[u/32|0]>>>u&1,g=i[u/32|0]>>>u&1,b=y|c,w=((y|g)&f)+f^f|y|g,_=c|~(w|f),S=f&w;_>>>31^v&&(s[u/32|0]^=1<<u),S>>>31^g&&(i[u/32|0]^=1<<u),_=_<<1|v,S=S<<1|g,f=S|~(b|_),c=_&b}for(var h=d;h<p;h++)bs[t.charCodeAt(h)]=0}for(var q=0,C=-1,R=l*32,O=Math.min(32,n-R)+R,h=R;h<O;h++)bs[t.charCodeAt(h)]|=1<<h;for(var z=n,u=0;u<r;u++){var y=bs[e.charCodeAt(u)],v=s[u/32|0]>>>u&1,g=i[u/32|0]>>>u&1,b=y|q,w=((y|g)&C)+C^C|y|g,_=q|~(w|C),S=C&w;z+=_>>>n-1&1,z-=S>>>n-1&1,_>>>31^v&&(s[u/32|0]^=1<<u),S>>>31^g&&(i[u/32|0]^=1<<u),_=_<<1|v,S=S<<1|g,C=S|~(b|_),q=_&b}for(var h=R;h<O;h++)bs[t.charCodeAt(h)]=0;return z},bpe=function(t,e){if(t.length<e.length){var r=e;e=t,t=r}return e.length===0?t.length:t.length<=32?Eyt(t,e):Cyt(t,e)};Ll.distance=bpe;var Dyt=function(t,e){for(var r=1/0,n=0,i=0;i<e.length;i++){var s=bpe(t,e[i]);s<r&&(r=s,n=i)}return e[n]};Ll.closest=Dyt});var Spe=m((UNt,xpe)=>{"use strict";var Oyt=vpe(),qyt=Cd(),wpe=6,_pe=3;function Ryt(t){let e=Array.from({length:wpe});for(let n=0;n<e.length;n++)e[n]=[];for(let n of Object.keys(qyt)){let i=Oyt.distance(n,t);i<=wpe&&e[i-1].push(n)}let r=[];for(let[n,i]of e.entries())if(i.length>0){if(n<3)return i.slice(0,_pe);r=r.concat(i)}return r.slice(0,_pe)}function Ayt(t,e=[]){return`Unknown rule ${t}.${e.length>0?` Did you mean ${e.join(", ")}?`:""}`}var bF=new Map;xpe.exports=function(e,r,n){let i=bF.has(e)?bF.get(e):Ryt(e);bF.set(e,i),n.warn(Ayt(e,i),{severity:"error",rule:e,node:r,index:0})}});var Epe=m((HNt,kpe)=>{"use strict";var Pyt=gpe(),Tyt=ype(),Myt=Spe(),Lyt=Cd(),Fyt=r1();function Iyt(t,e,r){e.stylelint.ruleSeverities={},e.stylelint.customMessages={},e.stylelint.ruleMetadata={},e.stylelint.stylelintError=!1,e.stylelint.stylelintWarning=!1,e.stylelint.quiet=r.quiet,e.stylelint.config=r;let n,i=e.root;if(i){if(!("type"in i))throw new Error("Unexpected Postcss root object!");let c=i.source&&i.source.input.css.match(/\r?\n/);n=c?c[0]:Tyt(),Pyt(i,e)}let s=Nyt(e);s||(e.stylelint.disableWritingFix=!0);let o=i&&i.constructor.name==="Document"?i.nodes:[i],a=[],u=Object.keys(Lyt),l=r.rules?Object.keys(r.rules).sort((c,f)=>u.indexOf(c)-u.indexOf(f)):[];for(let c of l){let f=Fyt(c,r);if(f===void 0){a.push(Promise.all(o.map(g=>Myt(c,g,e))));continue}let d=r.rules&&r.rules[c];if(d===null||d[0]===null)continue;let p=d[0],h=d[1],y=r.defaultSeverity||"error",v=h&&h.disableFix===!0||!1;e.stylelint.ruleSeverities[c]=h&&h.severity||y,e.stylelint.customMessages[c]=h&&h.message,e.stylelint.ruleMetadata[c]=f.meta||{},a.push(Promise.all(o.map(g=>f(p,h,{fix:!v&&t.fix&&s&&!e.stylelint.disabledRanges[c],newline:n})(g,e))))}return Promise.all(a)}function Nyt({stylelint:t}){return!(t.disabledRanges.all&&t.disabledRanges.all.length)}kpe.exports=Iyt});var wF=m((VNt,qpe)=>{"use strict";var jyt=H("path"),Cpe=ip(),$yt=Gde(),Byt=upe(),Dpe=pF(),Wyt=Epe();qpe.exports=async function(e,r={}){if(!r.filePath&&r.code===void 0&&!r.existingPostcssResult)return Promise.reject(new Error("You must provide filePath, code, or existingPostcssResult"));let n=r.code!==void 0,i=n?r.codeFilename:r.filePath;if(i!==void 0&&!jyt.isAbsolute(i))return n?Promise.reject(new Error("codeFilename must be an absolute path")):Promise.reject(new Error("filePath must be an absolute path"));if(await Byt(e,i).catch(h=>{if(n&&Dpe(h))return!1;throw h}))return r.existingPostcssResult?Object.assign(r.existingPostcssResult,{stylelint:vF()}):Ope(i);let o=e._options.configFile||i,a=e._options.cwd,u;try{u=await Cpe(e,o,i)}catch(h){if(n&&Dpe(h))u=await Cpe(e,a);else throw h}if(!u)return Promise.reject(new Error("Config file not found"));let l=u.config,c=r.existingPostcssResult;if(r.cache&&(e._fileCache.calcHashOfConfig(l),r.filePath&&!e._fileCache.hasFileChanged(r.filePath)))return c?Object.assign(c,{stylelint:vF()}):Ope(i);let f={ruleSeverities:{},customMessages:{},ruleMetadata:{},disabledRanges:{}},d=c||await $yt(e,{code:r.code,codeFilename:r.codeFilename,filePath:i,codeProcessors:l.codeProcessors,customSyntax:l.customSyntax}),p=Object.assign(d,{stylelint:f});return await Wyt(e._options,p,l),p};function vF(){return{ruleSeverities:{},customMessages:{},ruleMetadata:{},disabledRanges:{},ignored:!0,stylelintError:!1,stylelintWarning:!1}}function Ope(t){return{root:{source:{input:{file:t}}},messages:[],opts:void 0,stylelint:vF(),warn:()=>{}}}});var Ape=m((GNt,_F)=>{"use strict";var Rpe=H("path"),zyt=tp(),Uyt=wF();_F.exports=(t={})=>{let[e,r]=Hyt(t)?[process.cwd(),{config:t}]:[t.cwd||process.cwd(),t],n=zyt(r);return{postcssPlugin:"stylelint",Once(i,{result:s}){let o=i.source&&i.source.input.file;return o&&!Rpe.isAbsolute(o)&&(o=Rpe.join(e,o)),Uyt(n,{filePath:o,existingPostcssResult:s})}}};_F.exports.postcss=!0;function Hyt(t){return"rules"in t}});var Tpe=m((KNt,Ppe)=>{"use strict";var xF=H("path"),Vyt=tp(),Gyt=ip();Ppe.exports=async function(e,{cwd:r=process.cwd(),config:n,configBasedir:i,configFile:s}={}){if(!e)return;let o=Vyt({config:n,configFile:s,configBasedir:i,cwd:r}),a=xF.isAbsolute(e)?xF.normalize(e):xF.join(r,e),u=o._options.configFile||a,l=await Gyt(o,u,a);if(l)return l.config}});var Lpe=m((YNt,Mpe)=>{"use strict";Mpe.exports=(...t)=>[...new Set([].concat(...t))]});var $pe=m((QNt,SF)=>{"use strict";var Pa=H("path"),Fpe=VT(),Ipe=t=>t.length>1?`{${t.join(",")}}`:t[0],Npe=(t,e)=>{let r=t[0]==="!"?t.slice(1):t;return Pa.isAbsolute(r)?r:Pa.join(e,r)},Kyt=(t,e)=>Pa.extname(t)?`**/${t}`:`**/${t}.${Ipe(e)}`,jpe=(t,e)=>{if(e.files&&!Array.isArray(e.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof e.files}\``);if(e.extensions&&!Array.isArray(e.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof e.extensions}\``);return e.files&&e.extensions?e.files.map(r=>Pa.posix.join(t,Kyt(r,e.extensions))):e.files?e.files.map(r=>Pa.posix.join(t,`**/${r}`)):e.extensions?[Pa.posix.join(t,`**/*.${Ipe(e.extensions)}`)]:[Pa.posix.join(t,"**")]};SF.exports=async(t,e)=>{if(e={cwd:process.cwd(),...e},typeof e.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);let r=await Promise.all([].concat(t).map(async n=>await Fpe.isDirectory(Npe(n,e.cwd))?jpe(n,e):n));return[].concat.apply([],r)};SF.exports.sync=(t,e)=>{if(e={cwd:process.cwd(),...e},typeof e.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);let r=[].concat(t).map(n=>Fpe.isDirectorySync(Npe(n,e.cwd))?jpe(n,e):n);return[].concat.apply([],r)}});var Wpe=m((JNt,Bpe)=>{"use strict";Bpe.exports=t=>{let e=/^\\\\\?\\/.test(t),r=/[^\u0000-\u0080]+/.test(t);return e||r?t:t.replace(/\\/g,"/")}});var Ype=m((XNt,kF)=>{"use strict";var{promisify:Yyt}=H("util"),zpe=H("fs"),vs=H("path"),Upe=To(),Qyt=vk(),_p=Wpe(),Hpe=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],Jyt=Yyt(zpe.readFile),Xyt=t=>e=>e.startsWith("!")?"!"+vs.posix.join(t,e.slice(1)):vs.posix.join(t,e),Zyt=(t,e)=>{let r=_p(vs.relative(e.cwd,vs.dirname(e.fileName)));return t.split(/\r?\n/).filter(Boolean).filter(n=>!n.startsWith("#")).map(Xyt(r))},Vpe=t=>{let e=Qyt();for(let r of t)e.add(Zyt(r.content,{cwd:r.cwd,fileName:r.filePath}));return e},ebt=(t,e)=>{if(t=_p(t),vs.isAbsolute(e)){if(_p(e).startsWith(t))return e;throw new Error(`Path ${e} is not in cwd ${t}`)}return vs.join(t,e)},Gpe=(t,e)=>r=>t.ignores(_p(vs.relative(e,ebt(e,r.path||r)))),tbt=async(t,e)=>{let r=vs.join(e,t),n=await Jyt(r,"utf8");return{cwd:e,filePath:r,content:n}},rbt=(t,e)=>{let r=vs.join(e,t),n=zpe.readFileSync(r,"utf8");return{cwd:e,filePath:r,content:n}},Kpe=({ignore:t=[],cwd:e=_p(process.cwd())}={})=>({ignore:t,cwd:e});kF.exports=async t=>{t=Kpe(t);let e=await Upe("**/.gitignore",{ignore:Hpe.concat(t.ignore),cwd:t.cwd}),r=await Promise.all(e.map(i=>tbt(i,t.cwd))),n=Vpe(r);return Gpe(n,t.cwd)};kF.exports.sync=t=>{t=Kpe(t);let r=Upe.sync("**/.gitignore",{ignore:Hpe.concat(t.ignore),cwd:t.cwd}).map(i=>rbt(i,t.cwd)),n=Vpe(r);return Gpe(n,t.cwd)}});var Jpe=m((ZNt,Qpe)=>{"use strict";var{Transform:nbt}=H("stream"),wk=class extends nbt{constructor(){super({objectMode:!0})}},EF=class extends wk{constructor(e){super(),this._filter=e}_transform(e,r,n){this._filter(e)&&this.push(e),n()}},CF=class extends wk{constructor(){super(),this._pushed=new Set}_transform(e,r,n){this._pushed.has(e)||(this.push(e),this._pushed.add(e)),n()}};Qpe.exports={FilterStream:EF,UniqueStream:CF}});var rhe=m((e5t,Ta)=>{"use strict";var Zpe=H("fs"),_k=Lpe(),ibt=xO(),xk=To(),Sk=$pe(),DF=Ype(),{FilterStream:sbt,UniqueStream:obt}=Jpe(),ehe=()=>!1,Xpe=t=>t[0]==="!",abt=t=>{if(!t.every(e=>typeof e=="string"))throw new TypeError("Patterns must be a string or an array of strings")},ubt=(t={})=>{if(!t.cwd)return;let e;try{e=Zpe.statSync(t.cwd)}catch{return}if(!e.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},lbt=t=>t.stats instanceof Zpe.Stats?t.path:t,kk=(t,e)=>{t=_k([].concat(t)),abt(t),ubt(e);let r=[];e={ignore:[],expandDirectories:!0,...e};for(let[n,i]of t.entries()){if(Xpe(i))continue;let s=t.slice(n).filter(a=>Xpe(a)).map(a=>a.slice(1)),o={...e,ignore:e.ignore.concat(s)};r.push({pattern:i,options:o})}return r},cbt=(t,e)=>{let r={};return t.options.cwd&&(r.cwd=t.options.cwd),Array.isArray(t.options.expandDirectories)?r={...r,files:t.options.expandDirectories}:typeof t.options.expandDirectories=="object"&&(r={...r,...t.options.expandDirectories}),e(t.pattern,r)},OF=(t,e)=>t.options.expandDirectories?cbt(t,e):[t.pattern],the=t=>t&&t.gitignore?DF.sync({cwd:t.cwd,ignore:t.ignore}):ehe,qF=t=>e=>{let{options:r}=t;return r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories&&(r.ignore=Sk.sync(r.ignore)),{pattern:e,options:r}};Ta.exports=async(t,e)=>{let r=kk(t,e),n=async()=>e&&e.gitignore?DF({cwd:e.cwd,ignore:e.ignore}):ehe,i=async()=>{let u=await Promise.all(r.map(async l=>{let c=await OF(l,Sk);return Promise.all(c.map(qF(l)))}));return _k(...u)},[s,o]=await Promise.all([n(),i()]),a=await Promise.all(o.map(u=>xk(u.pattern,u.options)));return _k(...a).filter(u=>!s(lbt(u)))};Ta.exports.sync=(t,e)=>{let r=kk(t,e),n=[];for(let o of r){let a=OF(o,Sk.sync).map(qF(o));n.push(...a)}let i=the(e),s=[];for(let o of n)s=_k(s,xk.sync(o.pattern,o.options));return s.filter(o=>!i(o))};Ta.exports.stream=(t,e)=>{let r=kk(t,e),n=[];for(let a of r){let u=OF(a,Sk.sync).map(qF(a));n.push(...u)}let i=the(e),s=new sbt(a=>!i(a)),o=new obt;return ibt(n.map(a=>xk.stream(a.pattern,a.options))).pipe(s).pipe(o)};Ta.exports.generateGlobTasks=kk;Ta.exports.hasMagic=(t,e)=>[].concat(t).some(r=>xk.isDynamicPattern(r,e));Ta.exports.gitignore=DF});var ihe=m((t5t,nhe)=>{"use strict";nhe.exports=function(e,r){let n,i;if(e&&e.root){e.root.source&&(i=e.root.source.input.file,!i&&"id"in e.root.source.input&&(i=e.root.source.input.id));let o=e.messages.filter(c=>c.stylelintType==="deprecation").map(c=>({text:c.text,reference:c.stylelintReference})),u=e.messages.filter(c=>c.stylelintType==="invalidOption").map(c=>({text:c.text})),l=e.messages.filter(c=>c.stylelintType==="parseError");e.messages=e.messages.filter(c=>c.stylelintType!=="deprecation"&&c.stylelintType!=="invalidOption"&&c.stylelintType!=="parseError"),n={source:i,deprecations:o,invalidOptionWarnings:u,parseErrors:l,errored:e.stylelint.stylelintError,warnings:e.messages.map(c=>({line:c.line,column:c.column,endLine:c.endLine,endColumn:c.endColumn,rule:c.rule,severity:c.severity,text:c.text})),ignored:e.stylelint.ignored,_postcssResult:e}}else if(r){if(r.name!=="CssSyntaxError")throw r;n={source:r.file||"<input css 1>",deprecations:[],invalidOptionWarnings:[],parseErrors:[],errored:!0,warnings:[{line:r.line,column:r.column,endLine:r.endLine,endColumn:r.endColumn,rule:r.name,severity:"error",text:`${r.reason} (${r.name})`}]}}else throw new Error("createPartialStylelintResult must be called with either postcssResult or CssSyntaxError");return n}});var ohe=m((r5t,she)=>{"use strict";var fbt=ihe(),dbt=ip();she.exports=async function(e,r,n,i){let s=fbt(r,i),o=await dbt(e,n,n),a=o===null?{}:o.config,u=s.source||i&&i.file;if(a.resultProcessors)for(let l of a.resultProcessors){let c=l(s,u);c&&(s=c)}return s}});var uhe=m((n5t,ahe)=>{"use strict";var pbt=QS();ahe.exports=function(e={}){let r=Object.keys(pbt).map(n=>`"${n}"`).join(", ");return e.useOr&&(r=r.replace(/, ([a-z"]+)$/u," or $1")),r}});var che=m((i5t,lhe)=>{"use strict";var RF=class extends Error{constructor(e){super(),typeof e=="string"&&(e=[e]);let r=e.filter(n=>!n.startsWith("!")).join(", ");this.message=`No files matching the pattern "${r}" were found.`}};lhe.exports=RF});var dhe=m((s5t,fhe)=>{"use strict";var AF=class extends Error{constructor(){super(),this.message='All input files were ignored because of the ignore pattern. Either change your input, ignore pattern or use "--allow-empty-input" to allow no inputs'}};fhe.exports=AF});var Ek=m((o5t,phe)=>{"use strict";var hbt=j(),{isRegExp:gbt,isString:mbt}=re();phe.exports=function(e,r){if(!e)return null;let n=e.stylelint;if(!n.config)return null;let i=n.config[r],s,o;return Array.isArray(i)?(s=i[0],o=i[1]||{}):(s=i||!1,o={}),!hbt(e,r,{actual:s,possible:[!0,!1]},{actual:o,possible:{except:[mbt,gbt]}})||!s&&!o.except?null:[s,{except:o.except||[],severity:o.severity||n.config.defaultSeverity||"error"},n]}});var ghe=m((a5t,hhe)=>{"use strict";var ybt=xe(),bbt=Ek();hhe.exports=function(e){for(let r of e){let n=bbt(r._postcssResult,"reportDescriptionlessDisables");if(!n)continue;let[i,s,o]=n,a=new Set;for(let[u,l]of Object.entries(o.disabledRanges))for(let c of l)if(!c.description&&!a.has(c.comment)){if(i===ybt(s,"except",u)){!i&&u==="all"&&a.add(c.comment);continue}a.add(c.comment),!(!c.comment.source||!c.comment.source.start)&&r.warnings.push({text:`Disable for "${u}" is missing a description`,rule:"--report-descriptionless-disables",line:c.comment.source.start.line,column:c.comment.source.start.column,endLine:c.comment.source.end&&c.comment.source.end.line,endColumn:c.comment.source.end&&c.comment.source.end.column,severity:s.severity})}}}});var yhe=m((u5t,mhe)=>{"use strict";var vbt=xe(),wbt=Ek();mhe.exports=function(e){for(let r of e){let n=wbt(r._postcssResult,"reportInvalidScopeDisables");if(!n)continue;let[i,s,o]=n,a=(o.config||{}).rules||{},u=new Set(Object.keys(a));u.add("all");for(let[l,c]of Object.entries(o.disabledRanges))if(!u.has(l)&&i!==vbt(s,"except",l))for(let f of c)!f.strictStart&&!f.strictEnd||!f.comment.source||!f.comment.source.start||r.warnings.push({text:`Rule "${l}" isn't enabled`,rule:"--report-invalid-scope-disables",line:f.comment.source.start.line,column:f.comment.source.start.column,endLine:f.comment.source.end&&f.comment.source.end.line,endColumn:f.comment.source.end&&f.comment.source.end.column,severity:s.severity})}}});var vhe=m((l5t,bhe)=>{"use strict";bhe.exports=function(e,r,n){if(e.has(r))return e.get(r);let i=n();return e.set(r,i),i}});var She=m((c5t,xhe)=>{"use strict";var _bt=xe(),whe=vhe(),xbt=Ek();xhe.exports=function(e){for(let r of e){let n=xbt(r._postcssResult,"reportNeedlessDisables");if(!n)continue;let[i,s,o]=n,a=o.disabledRanges;if(!a)continue;let u=o.disabledWarnings||[],l=new Map;for(let f of u){let d=f.rule,p=a[d];if(p)for(let h of p)_he(f,h)&&whe(l,h.comment,()=>new Set).add(d);for(let h of a.all||[])_he(f,h)&&whe(l,h.comment,()=>new Set).add(d)}let c=new Set((a.all||[]).map(f=>f.comment));for(let[f,d]of Object.entries(a))for(let p of d){if(f!=="all"&&c.has(p.comment)||i===_bt(s,"except",f))continue;let h=l.get(p.comment)||new Set;(f==="all"?h.size!==0:h.has(f))||!p.comment.source||!p.comment.source.start||r.warnings.push({text:`Needless disable for "${f}"`,rule:"--report-needless-disables",line:p.comment.source.start.line,column:p.comment.source.start.column,endLine:p.comment.source.end&&p.comment.source.end.line,endColumn:p.comment.source.end&&p.comment.source.end.column,severity:s.severity})}}};function _he(t,e){let r=t.line;return e.start<=r&&(e.end!==void 0&&e.end>=r||e.end===void 0)}});var Che=m((f5t,Ehe)=>{"use strict";Ehe.exports=function(e){for(let r of e){if(!r._postcssResult)continue;let n=r._postcssResult.stylelint.disabledRanges;if(!n)continue;let i=r._postcssResult.stylelint.config;if(!(!i||!i.rules)&&Object.values(i.rules).some(s=>khe(s)))for(let[s,o]of Object.entries(n))for(let a of o)khe(i.rules[s]||[])&&(!a.comment.source||!a.comment.source.start||r.warnings.push({text:`Rule "${s}" may not be disabled`,rule:"reportDisables",line:a.comment.source.start.line,column:a.comment.source.start.column,endLine:a.comment.source.end&&a.comment.source.end.line,endColumn:a.comment.source.end&&a.comment.source.end.column,severity:"error"}))}};function khe(t){return!t||!t[1]?!1:Boolean(t[1].reportDisables)}});var Ohe=m((d5t,Dhe)=>{"use strict";var Sbt=ghe(),kbt=yhe(),Ebt=She(),Cbt=Che();Dhe.exports=function(e,r,n,i){Cbt(e),Ebt(e),kbt(e),Sbt(e);let s=e.some(a=>a.errored||a.parseErrors.length>0||a.warnings.some(u=>u.severity==="error")),o={cwd:i,errored:s,results:[],output:"",reportedDisables:[],ruleMetadata:Dbt(e)};if(r!==void 0){let a=e.reduce((u,l)=>u+l.warnings.length,0);a>r&&(o.maxWarningsExceeded={maxWarnings:r,foundWarnings:a})}return o.output=n(e,o),o.results=e,o};function Dbt(t){let[e]=t;return e===void 0?{}:e._postcssResult===void 0?{}:e._postcssResult.stylelint.ruleMetadata}});var qhe=m((p5t,Ck)=>{Ck.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ck.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ck.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Mhe=m((h5t,Nl)=>{var It=global.process,Ma=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};Ma(It)?(Rhe=H("assert"),Fl=qhe(),Ahe=/^win/i.test(It.platform),xp=H("events"),typeof xp!="function"&&(xp=xp.EventEmitter),It.__signal_exit_emitter__?pr=It.__signal_exit_emitter__:(pr=It.__signal_exit_emitter__=new xp,pr.count=0,pr.emitted={}),pr.infinite||(pr.setMaxListeners(1/0),pr.infinite=!0),Nl.exports=function(t,e){if(!Ma(global.process))return function(){};Rhe.equal(typeof t,"function","a callback must be provided for exit handler"),Il===!1&&PF();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){pr.removeListener(r,t),pr.listeners("exit").length===0&&pr.listeners("afterexit").length===0&&Dk()};return pr.on(r,t),n},Dk=function(){!Il||!Ma(global.process)||(Il=!1,Fl.forEach(function(e){try{It.removeListener(e,Ok[e])}catch{}}),It.emit=qk,It.reallyExit=TF,pr.count-=1)},Nl.exports.unload=Dk,La=function(e,r,n){pr.emitted[e]||(pr.emitted[e]=!0,pr.emit(e,r,n))},Ok={},Fl.forEach(function(t){Ok[t]=function(){if(Ma(global.process)){var r=It.listeners(t);r.length===pr.count&&(Dk(),La("exit",null,t),La("afterexit",null,t),Ahe&&t==="SIGHUP"&&(t="SIGINT"),It.kill(It.pid,t))}}}),Nl.exports.signals=function(){return Fl},Il=!1,PF=function(){Il||!Ma(global.process)||(Il=!0,pr.count+=1,Fl=Fl.filter(function(e){try{return It.on(e,Ok[e]),!0}catch{return!1}}),It.emit=The,It.reallyExit=Phe)},Nl.exports.load=PF,TF=It.reallyExit,Phe=function(e){Ma(global.process)&&(It.exitCode=e||0,La("exit",It.exitCode,null),La("afterexit",It.exitCode,null),TF.call(It,It.exitCode))},qk=It.emit,The=function(e,r){if(e==="exit"&&Ma(global.process)){r!==void 0&&(It.exitCode=r);var n=qk.apply(this,arguments);return La("exit",It.exitCode,null),La("afterexit",It.exitCode,null),n}else return qk.apply(this,arguments)}):Nl.exports=function(){return function(){}};var Rhe,Fl,Ahe,xp,pr,Dk,La,Ok,Il,PF,TF,Phe,qk,The});var Fhe=m((g5t,Sp)=>{"use strict";Sp.exports=Mbt;Sp.exports.sync=Lbt;Sp.exports._getTmpname=MF;Sp.exports._cleanupOnExit=LF;var Nt=H("fs"),Obt=YM(),Lhe=Mhe(),qbt=H("path"),{promisify:Hn}=H("util"),po={},Rbt=function(){try{return H("worker_threads").threadId}catch{return 0}}(),Abt=0;function MF(t){return t+"."+Obt(__filename).hash(String(process.pid)).hash(String(Rbt)).hash(String(++Abt)).result()}function LF(t){return()=>{try{Nt.unlinkSync(typeof t=="function"?t():t)}catch{}}}function Pbt(t){return new Promise(e=>{po[t]||(po[t]=[]),po[t].push(e),po[t].length===1&&e()})}function Rk(t){return t.code==="ENOSYS"||(!process.getuid||process.getuid()!==0)&&(t.code==="EINVAL"||t.code==="EPERM")}async function Tbt(t,e,r={}){typeof r=="string"&&(r={encoding:r});let n,i,s=Lhe(LF(()=>i)),o=qbt.resolve(t);try{await Pbt(o);let a=await Hn(Nt.realpath)(t).catch(()=>t);if(i=MF(a),!r.mode||!r.chown){let u=await Hn(Nt.stat)(a).catch(()=>{});u&&(r.mode==null&&(r.mode=u.mode),r.chown==null&&process.getuid&&(r.chown={uid:u.uid,gid:u.gid}))}n=await Hn(Nt.open)(i,"w",r.mode),r.tmpfileCreated&&await r.tmpfileCreated(i),ArrayBuffer.isView(e)?await Hn(Nt.write)(n,e,0,e.length,0):e!=null&&await Hn(Nt.write)(n,String(e),0,String(r.encoding||"utf8")),r.fsync!==!1&&await Hn(Nt.fsync)(n),await Hn(Nt.close)(n),n=null,r.chown&&await Hn(Nt.chown)(i,r.chown.uid,r.chown.gid).catch(u=>{if(!Rk(u))throw u}),r.mode&&await Hn(Nt.chmod)(i,r.mode).catch(u=>{if(!Rk(u))throw u}),await Hn(Nt.rename)(i,a)}finally{n&&await Hn(Nt.close)(n).catch(()=>{}),s(),await Hn(Nt.unlink)(i).catch(()=>{}),po[o].shift(),po[o].length>0?po[o][0]():delete po[o]}}async function Mbt(t,e,r,n){r instanceof Function&&(n=r,r={});let i=Tbt(t,e,r);if(n)try{let s=await i;return n(s)}catch(s){return n(s)}return i}function Lbt(t,e,r){typeof r=="string"?r={encoding:r}:r||(r={});try{t=Nt.realpathSync(t)}catch{}let n=MF(t);if(!r.mode||!r.chown)try{let u=Nt.statSync(t);r=Object.assign({},r),r.mode||(r.mode=u.mode),!r.chown&&process.getuid&&(r.chown={uid:u.uid,gid:u.gid})}catch{}let i,s=LF(n),o=Lhe(s),a=!0;try{if(i=Nt.openSync(n,"w",r.mode||438),r.tmpfileCreated&&r.tmpfileCreated(n),ArrayBuffer.isView(e)?Nt.writeSync(i,e,0,e.length,0):e!=null&&Nt.writeSync(i,String(e),0,String(r.encoding||"utf8")),r.fsync!==!1&&Nt.fsyncSync(i),Nt.closeSync(i),i=null,r.chown)try{Nt.chownSync(n,r.chown.uid,r.chown.gid)}catch(u){if(!Rk(u))throw u}if(r.mode)try{Nt.chmodSync(n,r.mode)}catch(u){if(!Rk(u))throw u}Nt.renameSync(n,t),a=!1}finally{if(i)try{Nt.closeSync(i)}catch{}o(),a&&s()}}});var Bhe=m((m5t,$he)=>{"use strict";var FF=mM()("stylelint:standalone"),Fbt=To(),Ibt=H("fs"),Nbt=rhe(),jbt=N1(),Bi=H("path"),$bt=tp(),jF=ohe(),Ihe=dF(),IF=QS(),Bbt=hF(),Wbt=uhe(),Nhe=wF(),zbt=che(),Ubt=dhe(),{assert:Hbt}=re(),NF=Ohe(),Vbt=["**/node_modules/**"],Gbt=Fhe();async function Kbt({allowEmptyInput:t=!1,cache:e=!1,cacheLocation:r,cacheStrategy:n,code:i,codeFilename:s,config:o,configBasedir:a,configFile:u,customSyntax:l,cwd:c=process.cwd(),disableDefaultIgnores:f,files:d,fix:p,formatter:h,globbyOptions:y,ignoreDisables:v,ignorePath:g,ignorePattern:b,maxWarnings:w,quiet:_,reportDescriptionlessDisables:S,reportInvalidScopeDisables:q,reportNeedlessDisables:C,syntax:R}){let O=Date.now(),z=typeof i=="string";if(!d&&!z||d&&(i||z))return Promise.reject(new Error("You must pass stylelint a `files` glob or a `code` string, though not both"));let F;try{F=Bbt({cwd:c,ignorePath:g,ignorePattern:b})}catch(se){return Promise.reject(se)}let te;try{te=Ybt(h)}catch(se){return Promise.reject(se)}let K=$bt({cacheLocation:r,cacheStrategy:n,config:o,configFile:u,configBasedir:a,cwd:c,ignoreDisables:v,ignorePath:g,reportNeedlessDisables:C,reportInvalidScopeDisables:q,reportDescriptionlessDisables:S,syntax:R,customSyntax:l,fix:p,quiet:_});if(!d){let se=s!==void 0&&!Bi.isAbsolute(s)?Bi.join(c,s):s;if(se&&!Ihe(F,[Bi.relative(c,se)]).length)return NF([],w,te,c);let he;try{let Je=await Nhe(K,{code:i,codeFilename:se});he=await jF(K,Je,se)}catch(Je){he=await jhe(K,Je)}let we=he._postcssResult,De=NF([he],w,te,c);return p&&we&&!we.stylelint.ignored&&(De.output=!we.stylelint.disableWritingFix&&we.opts?we.root.toString(we.opts.syntax):i),De}let ue=[d].flat().map(se=>{let he=y&&y.cwd||c,we=Bi.isAbsolute(se)?Bi.normalize(se):Bi.join(he,se);return Ibt.existsSync(we)?Fbt.escapePath(jbt(se)):se});f||(ue=ue.concat(Vbt.map(se=>`!${se}`))),e||K._fileCache.destroy();let L={cwd:c,...y||{},absolute:!0},M=L.cwd,ae=await Nbt(ue,L),ne=ae.length;ae=Ihe(F,ae.map(se=>Bi.relative(M,se)));let de;if(ae.length){let he=ae.map(we=>Bi.isAbsolute(we)?Bi.normalize(we):Bi.join(M,we)).map(async we=>{FF(`Processing ${we}`);try{let De=await Nhe(K,{filePath:we,cache:e});if((De.stylelint.stylelintError||De.stylelint.stylelintWarning)&&e&&(FF(`${we} contains linting errors and will not be cached.`),K._fileCache.removeEntry(we)),De.root&&De.opts&&!De.stylelint.ignored&&p&&!De.stylelint.disableWritingFix){let Je=De.root.toString(De.opts.syntax);De.root&&De.root.source&&De.root.source.input.css!==Je&&await Gbt(we,Je)}return jF(K,De,we)}catch(De){return K._fileCache.removeEntry(we),jhe(K,De,we)}});de=await Promise.all(he)}else t?de=await Promise.all([]):ne?de=await Promise.reject(new Ubt):de=await Promise.reject(new zbt(ue));e&&K._fileCache.reconcile();let le=NF(de,w,te,c);return FF(`Linting complete in ${Date.now()-O}ms`),le}function Ybt(t){if(typeof t=="string"){let e=IF[t];if(e===void 0)throw new Error(`You must use a valid formatter option: ${Wbt()} or a function`);return e}return typeof t=="function"?t:(Hbt(IF.json),IF.json)}function jhe(t,e,r=void 0){if(e.name==="CssSyntaxError")return jF(t,void 0,r,e);throw e}$he.exports=Kbt});var zhe=m((y5t,Whe)=>{"use strict";var Qbt=tie(),Jbt=nie(),Xbt=tp(),Zbt=QS(),e0t=Ape(),t0t=U(),r0t=Tpe(),n0t=$(),i0t=Cd(),{longhandSubPropertiesOfShorthandProperties:s0t}=Eu(),o0t=Bhe(),a0t=j(),u0t=Object.assign(e0t,{lint:o0t,rules:i0t,formatters:Zbt,createPlugin:Jbt,resolveConfig:r0t,createLinter:Xbt,utils:{report:t0t,ruleMessages:n0t,validateOptions:a0t,checkAgainstRule:Qbt},reference:{longhandSubPropertiesOfShorthandProperties:s0t}});Whe.exports=u0t});var Lk=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.thenable=Zt.typedArray=Zt.stringArray=Zt.array=Zt.func=Zt.error=Zt.number=Zt.string=Zt.boolean=void 0;function Z0t(t){return t===!0||t===!1}Zt.boolean=Z0t;function hge(t){return typeof t=="string"||t instanceof String}Zt.string=hge;function evt(t){return typeof t=="number"||t instanceof Number}Zt.number=evt;function tvt(t){return t instanceof Error}Zt.error=tvt;function gge(t){return typeof t=="function"}Zt.func=gge;function mge(t){return Array.isArray(t)}Zt.array=mge;function rvt(t){return mge(t)&&t.every(e=>hge(e))}Zt.stringArray=rvt;function nvt(t,e){return Array.isArray(t)&&t.every(e)}Zt.typedArray=nvt;function ivt(t){return t&&gge(t.then)}Zt.thenable=ivt});var ws=m(JF=>{"use strict";Object.defineProperty(JF,"__esModule",{value:!0});var YF;function QF(){if(YF===void 0)throw new Error("No runtime abstraction layer installed");return YF}(function(t){function e(r){if(r===void 0)throw new Error("No runtime abstraction layer provided");YF=r}t.install=e})(QF||(QF={}));JF.default=QF});var XF=m(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.Disposable=void 0;var svt;(function(t){function e(r){return{dispose:r}}t.create=e})(svt=Dp.Disposable||(Dp.Disposable={}))});var yge=m(Fk=>{"use strict";Object.defineProperty(Fk,"__esModule",{value:!0});Fk.AbstractMessageBuffer=void 0;var ovt=13,avt=10,uvt=`\r
|
|
395
|
-
`,ZF=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let r=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(r),this._totalLength+=r.byteLength}tryReadHeaders(){if(this._chunks.length===0)return;let e=0,r=0,n=0,i=0;e:for(;r<this._chunks.length;){let u=this._chunks[r];n=0;t:for(;n<u.length;){switch(u[n]){case ovt:switch(e){case 0:e=1;break;case 2:e=3;break;default:e=0}break;case avt:switch(e){case 1:e=2;break;case 3:e=4,n++;break e;default:e=0}break;default:e=0}n++}i+=u.byteLength,r++}if(e!==4)return;let s=this._read(i+n),o=new Map,a=this.toString(s,"ascii").split(uvt);if(a.length<2)return o;for(let u=0;u<a.length-2;u++){let l=a[u],c=l.indexOf(":");if(c===-1)throw new Error("Message header must separate key and value using :");let f=l.substr(0,c),d=l.substr(c+1).trim();o.set(f,d)}return o}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let s=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(s)}if(this._chunks[0].byteLength>e){let s=this._chunks[0],o=this.asNative(s,e);return this._chunks[0]=s.slice(e),this._totalLength-=e,o}let r=this.allocNative(e),n=0,i=0;for(;e>0;){let s=this._chunks[i];if(s.byteLength>e){let o=s.slice(0,e);r.set(o,n),n+=e,this._chunks[i]=s.slice(e),this._totalLength-=e,e-=e}else r.set(s,n),n+=s.byteLength,this._chunks.shift(),this._totalLength-=s.byteLength,e-=s.byteLength}return r}};Fk.AbstractMessageBuffer=ZF});var wge=m(nI=>{"use strict";Object.defineProperty(nI,"__esModule",{value:!0});var lvt=ws(),bge=H("util"),Fa=XF(),cvt=yge(),Bl=class extends cvt.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return Bl.emptyBuffer}fromString(e,r){return Buffer.from(e,r)}toString(e,r){return e instanceof Buffer?e.toString(r):new bge.TextDecoder(r).decode(e)}asNative(e,r){return r===void 0?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,r):Buffer.from(e,0,r)}allocNative(e){return Buffer.allocUnsafe(e)}};Bl.emptyBuffer=Buffer.allocUnsafe(0);var eI=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Fa.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Fa.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Fa.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),Fa.Disposable.create(()=>this.stream.off("data",e))}},tI=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Fa.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Fa.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Fa.Disposable.create(()=>this.stream.off("end",e))}write(e,r){return new Promise((n,i)=>{let s=o=>{o==null?n():i(o)};typeof e=="string"?this.stream.write(e,r,s):this.stream.write(e,s)})}end(){this.stream.end()}},vge=Object.freeze({messageBuffer:Object.freeze({create:t=>new Bl(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(t,void 0,0),e.charset))}catch(r){return Promise.reject(r)}}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{try{return t instanceof Buffer?Promise.resolve(JSON.parse(t.toString(e.charset))):Promise.resolve(JSON.parse(new bge.TextDecoder(e.charset).decode(t)))}catch(r){return Promise.reject(r)}}})}),stream:Object.freeze({asReadableStream:t=>new eI(t),asWritableStream:t=>new tI(t)}),console,timer:Object.freeze({setTimeout(t,e,...r){return setTimeout(t,e,...r)},clearTimeout(t){clearTimeout(t)},setImmediate(t,...e){return setImmediate(t,...e)},clearImmediate(t){clearImmediate(t)}})});function rI(){return vge}(function(t){function e(){lvt.default.install(vge)}t.install=e})(rI||(rI={}));nI.default=rI});var Wl=m($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.stringArray=$r.array=$r.func=$r.error=$r.number=$r.string=$r.boolean=void 0;function fvt(t){return t===!0||t===!1}$r.boolean=fvt;function _ge(t){return typeof t=="string"||t instanceof String}$r.string=_ge;function dvt(t){return typeof t=="number"||t instanceof Number}$r.number=dvt;function pvt(t){return t instanceof Error}$r.error=pvt;function hvt(t){return typeof t=="function"}$r.func=hvt;function xge(t){return Array.isArray(t)}$r.array=xge;function gvt(t){return xge(t)&&t.every(e=>_ge(e))}$r.stringArray=gvt});var CI=m(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.isResponseMessage=Ce.isNotificationMessage=Ce.isRequestMessage=Ce.NotificationType9=Ce.NotificationType8=Ce.NotificationType7=Ce.NotificationType6=Ce.NotificationType5=Ce.NotificationType4=Ce.NotificationType3=Ce.NotificationType2=Ce.NotificationType1=Ce.NotificationType0=Ce.NotificationType=Ce.RequestType9=Ce.RequestType8=Ce.RequestType7=Ce.RequestType6=Ce.RequestType5=Ce.RequestType4=Ce.RequestType3=Ce.RequestType2=Ce.RequestType1=Ce.RequestType=Ce.RequestType0=Ce.AbstractMessageSignature=Ce.ParameterStructures=Ce.ResponseError=Ce.ErrorCodes=void 0;var Ia=Wl(),Sge;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=t.jsonrpcReservedErrorRangeStart,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=t.jsonrpcReservedErrorRangeEnd})(Sge=Ce.ErrorCodes||(Ce.ErrorCodes={}));var Op=class extends Error{constructor(e,r,n){super(r),this.code=Ia.number(e)?e:Sge.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,Op.prototype)}toJson(){return{code:this.code,message:this.message,data:this.data}}};Ce.ResponseError=Op;var hr=class{constructor(e){this.kind=e}static is(e){return e===hr.auto||e===hr.byName||e===hr.byPosition}toString(){return this.kind}};Ce.ParameterStructures=hr;hr.auto=new hr("auto");hr.byPosition=new hr("byPosition");hr.byName=new hr("byName");var kt=class{constructor(e,r){this.method=e,this.numberOfParams=r}get parameterStructures(){return hr.auto}};Ce.AbstractMessageSignature=kt;var iI=class extends kt{constructor(e){super(e,0)}};Ce.RequestType0=iI;var sI=class extends kt{constructor(e,r=hr.auto){super(e,1),this._parameterStructures=r}get parameterStructures(){return this._parameterStructures}};Ce.RequestType=sI;var oI=class extends kt{constructor(e,r=hr.auto){super(e,1),this._parameterStructures=r}get parameterStructures(){return this._parameterStructures}};Ce.RequestType1=oI;var aI=class extends kt{constructor(e){super(e,2)}};Ce.RequestType2=aI;var uI=class extends kt{constructor(e){super(e,3)}};Ce.RequestType3=uI;var lI=class extends kt{constructor(e){super(e,4)}};Ce.RequestType4=lI;var cI=class extends kt{constructor(e){super(e,5)}};Ce.RequestType5=cI;var fI=class extends kt{constructor(e){super(e,6)}};Ce.RequestType6=fI;var dI=class extends kt{constructor(e){super(e,7)}};Ce.RequestType7=dI;var pI=class extends kt{constructor(e){super(e,8)}};Ce.RequestType8=pI;var hI=class extends kt{constructor(e){super(e,9)}};Ce.RequestType9=hI;var gI=class extends kt{constructor(e,r=hr.auto){super(e,1),this._parameterStructures=r}get parameterStructures(){return this._parameterStructures}};Ce.NotificationType=gI;var mI=class extends kt{constructor(e){super(e,0)}};Ce.NotificationType0=mI;var yI=class extends kt{constructor(e,r=hr.auto){super(e,1),this._parameterStructures=r}get parameterStructures(){return this._parameterStructures}};Ce.NotificationType1=yI;var bI=class extends kt{constructor(e){super(e,2)}};Ce.NotificationType2=bI;var vI=class extends kt{constructor(e){super(e,3)}};Ce.NotificationType3=vI;var wI=class extends kt{constructor(e){super(e,4)}};Ce.NotificationType4=wI;var _I=class extends kt{constructor(e){super(e,5)}};Ce.NotificationType5=_I;var xI=class extends kt{constructor(e){super(e,6)}};Ce.NotificationType6=xI;var SI=class extends kt{constructor(e){super(e,7)}};Ce.NotificationType7=SI;var kI=class extends kt{constructor(e){super(e,8)}};Ce.NotificationType8=kI;var EI=class extends kt{constructor(e){super(e,9)}};Ce.NotificationType9=EI;function mvt(t){let e=t;return e&&Ia.string(e.method)&&(Ia.string(e.id)||Ia.number(e.id))}Ce.isRequestMessage=mvt;function yvt(t){let e=t;return e&&Ia.string(e.method)&&t.id===void 0}Ce.isNotificationMessage=yvt;function bvt(t){let e=t;return e&&(e.result!==void 0||!!e.error)&&(Ia.string(e.id)||Ia.number(e.id)||e.id===null)}Ce.isResponseMessage=bvt});var Ul=m(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.Emitter=Na.Event=void 0;var vvt=ws(),wvt;(function(t){let e={dispose(){}};t.None=function(){return e}})(wvt=Na.Event||(Na.Event={}));var DI=class{add(e,r=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(r),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,r)})}remove(e,r=null){if(!this._callbacks)return;let n=!1;for(let i=0,s=this._callbacks.length;i<s;i++)if(this._callbacks[i]===e)if(this._contexts[i]===r){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else n=!0;if(n)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let r=[],n=this._callbacks.slice(0),i=this._contexts.slice(0);for(let s=0,o=n.length;s<o;s++)try{r.push(n[s].apply(i[s],e))}catch(a){vvt.default().console.error(a)}return r}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},zl=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,r,n)=>{this._callbacks||(this._callbacks=new DI),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,r);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,r),i.dispose=zl._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(n)&&n.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Na.Emitter=zl;zl._noop=function(){}});var AI=m(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.CancellationTokenSource=ja.CancellationToken=void 0;var kge=ws(),_vt=Wl(),OI=Ul(),qI;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:OI.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:OI.Event.None});function e(r){let n=r;return n&&(n===t.None||n===t.Cancelled||_vt.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}t.is=e})(qI=ja.CancellationToken||(ja.CancellationToken={}));var xvt=Object.freeze(function(t,e){let r=kge.default().timer.setTimeout(t.bind(e),0);return{dispose(){kge.default().timer.clearTimeout(r)}}}),Ik=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?xvt:(this._emitter||(this._emitter=new OI.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},RI=class{get token(){return this._token||(this._token=new Ik),this._token}cancel(){this._token?this._token.cancel():this._token=qI.Cancelled}dispose(){this._token?this._token instanceof Ik&&this._token.dispose():this._token=qI.None}};ja.CancellationTokenSource=RI});var Ege=m(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.ReadableStreamMessageReader=_s.AbstractMessageReader=_s.MessageReader=void 0;var Nk=ws(),Hl=Wl(),PI=Ul(),Svt;(function(t){function e(r){let n=r;return n&&Hl.func(n.listen)&&Hl.func(n.dispose)&&Hl.func(n.onError)&&Hl.func(n.onClose)&&Hl.func(n.onPartialMessage)}t.is=e})(Svt=_s.MessageReader||(_s.MessageReader={}));var jk=class{constructor(){this.errorEmitter=new PI.Emitter,this.closeEmitter=new PI.Emitter,this.partialMessageEmitter=new PI.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${Hl.string(e.message)?e.message:"unknown"}`)}};_s.AbstractMessageReader=jk;var TI;(function(t){function e(r){var n;let i,s,o,a=new Map,u,l=new Map;if(r===void 0||typeof r=="string")i=r??"utf-8";else{if(i=(n=r.charset)!==null&&n!==void 0?n:"utf-8",r.contentDecoder!==void 0&&(o=r.contentDecoder,a.set(o.name,o)),r.contentDecoders!==void 0)for(let c of r.contentDecoders)a.set(c.name,c);if(r.contentTypeDecoder!==void 0&&(u=r.contentTypeDecoder,l.set(u.name,u)),r.contentTypeDecoders!==void 0)for(let c of r.contentTypeDecoders)l.set(c.name,c)}return u===void 0&&(u=Nk.default().applicationJson.decoder,l.set(u.name,u)),{charset:i,contentDecoder:o,contentDecoders:a,contentTypeDecoder:u,contentTypeDecoders:l}}t.fromOptions=e})(TI||(TI={}));var MI=class extends jk{constructor(e,r){super(),this.readable=e,this.options=TI.fromOptions(r),this.buffer=Nk.default().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let r=this.readable.onData(n=>{this.onData(n)});return this.readable.onError(n=>this.fireError(n)),this.readable.onClose(()=>this.fireClose()),r}onData(e){for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let i=this.buffer.tryReadHeaders();if(!i)return;let s=i.get("Content-Length");if(!s)throw new Error("Header must provide a Content-Length property.");let o=parseInt(s);if(isNaN(o))throw new Error("Content-Length value must be a number.");this.nextMessageLength=o}let r=this.buffer.tryReadBody(this.nextMessageLength);if(r===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1;let n;this.options.contentDecoder!==void 0?n=this.options.contentDecoder.decode(r):n=Promise.resolve(r),n.then(i=>{this.options.contentTypeDecoder.decode(i,this.options).then(s=>{this.callback(s)},s=>{this.fireError(s)})},i=>{this.fireError(i)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(Nk.default().timer.clearTimeout(this.partialMessageTimer),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=Nk.default().timer.setTimeout((e,r)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:r}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};_s.ReadableStreamMessageReader=MI});var Cge=m($k=>{"use strict";Object.defineProperty($k,"__esModule",{value:!0});$k.Semaphore=void 0;var kvt=ws(),LI=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((r,n)=>{this._waiting.push({thunk:e,resolve:r,reject:n}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||kvt.default().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let r=e.thunk();r instanceof Promise?r.then(n=>{this._active--,e.resolve(n),this.runNext()},n=>{this._active--,e.reject(n),this.runNext()}):(this._active--,e.resolve(r),this.runNext())}catch(r){this._active--,e.reject(r),this.runNext()}}};$k.Semaphore=LI});var Rge=m(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.WriteableStreamMessageWriter=xs.AbstractMessageWriter=xs.MessageWriter=void 0;var Dge=ws(),qp=Wl(),Evt=Cge(),Oge=Ul(),Cvt="Content-Length: ",qge=`\r
|
|
396
|
-
`,Dvt;(function(t){function e(r){let n=r;return n&&qp.func(n.dispose)&&qp.func(n.onClose)&&qp.func(n.onError)&&qp.func(n.write)}t.is=e})(Dvt=xs.MessageWriter||(xs.MessageWriter={}));var Bk=class{constructor(){this.errorEmitter=new Oge.Emitter,this.closeEmitter=new Oge.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,r,n){this.errorEmitter.fire([this.asError(e),r,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${qp.string(e.message)?e.message:"unknown"}`)}};xs.AbstractMessageWriter=Bk;var FI;(function(t){function e(r){var n,i;return r===void 0||typeof r=="string"?{charset:r??"utf-8",contentTypeEncoder:Dge.default().applicationJson.encoder}:{charset:(n=r.charset)!==null&&n!==void 0?n:"utf-8",contentEncoder:r.contentEncoder,contentTypeEncoder:(i=r.contentTypeEncoder)!==null&&i!==void 0?i:Dge.default().applicationJson.encoder}}t.fromOptions=e})(FI||(FI={}));var II=class extends Bk{constructor(e,r){super(),this.writable=e,this.options=FI.fromOptions(r),this.errorCount=0,this.writeSemaphore=new Evt.Semaphore(1),this.writable.onError(n=>this.fireError(n)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(n=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(n):n).then(n=>{let i=[];return i.push(Cvt,n.byteLength.toString(),qge),i.push(qge),this.doWrite(e,i,n)},n=>{throw this.fireError(n),n}))}async doWrite(e,r,n){try{return await this.writable.write(r.join(""),"ascii"),this.writable.write(n)}catch(i){return this.handleError(i,e),Promise.reject(i)}}handleError(e,r){this.errorCount++,this.fireError(e,r,this.errorCount)}end(){this.writable.end()}};xs.WriteableStreamMessageWriter=II});var Age=m(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.LRUCache=Ss.LinkedMap=Ss.Touch=void 0;var Qr;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(Qr=Ss.Touch||(Ss.Touch={}));var Wk=class{constructor(){this[Symbol.toStringTag]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,r=Qr.None){let n=this._map.get(e);if(n)return r!==Qr.None&&this.touch(n,r),n.value}set(e,r,n=Qr.None){let i=this._map.get(e);if(i)i.value=r,n!==Qr.None&&this.touch(i,n);else{switch(i={key:e,value:r,next:void 0,previous:void 0},n){case Qr.None:this.addItemLast(i);break;case Qr.First:this.addItemFirst(i);break;case Qr.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let r=this._map.get(e);if(r)return this._map.delete(e),this.removeItem(r),this._size--,r.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,r){let n=this._state,i=this._head;for(;i;){if(r?e.bind(r)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this,r=this._state,n=this._head,i={[Symbol.iterator](){return i},next(){if(e._state!==r)throw new Error("LinkedMap got modified during iteration.");if(n){let s={value:n.key,done:!1};return n=n.next,s}else return{value:void 0,done:!0}}};return i}values(){let e=this,r=this._state,n=this._head,i={[Symbol.iterator](){return i},next(){if(e._state!==r)throw new Error("LinkedMap got modified during iteration.");if(n){let s={value:n.value,done:!1};return n=n.next,s}else return{value:void 0,done:!0}}};return i}entries(){let e=this,r=this._state,n=this._head,i={[Symbol.iterator](){return i},next(){if(e._state!==r)throw new Error("LinkedMap got modified during iteration.");if(n){let s={value:[n.key,n.value],done:!1};return n=n.next,s}else return{value:void 0,done:!0}}};return i}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let r=this._head,n=this.size;for(;r&&n>e;)this._map.delete(r.key),r=r.next,n--;this._head=r,this._size=n,r&&(r.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let r=e.next,n=e.previous;if(!r||!n)throw new Error("Invalid list");r.previous=n,n.next=r}e.next=void 0,e.previous=void 0,this._state++}touch(e,r){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(r!==Qr.First&&r!==Qr.Last)){if(r===Qr.First){if(e===this._head)return;let n=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(n.previous=i,i.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(r===Qr.Last){if(e===this._tail)return;let n=e.next,i=e.previous;e===this._head?(n.previous=void 0,this._head=n):(n.previous=i,i.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((r,n)=>{e.push([n,r])}),e}fromJSON(e){this.clear();for(let[r,n]of e)this.set(r,n)}};Ss.LinkedMap=Wk;var NI=class extends Wk{constructor(e,r=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,r),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,r=Qr.AsNew){return super.get(e,r)}peek(e){return super.get(e,Qr.None)}set(e,r){return super.set(e,r,Qr.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Ss.LRUCache=NI});var Fge=m(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.createMessageConnection=We.ConnectionOptions=We.CancellationStrategy=We.CancellationSenderStrategy=We.CancellationReceiverStrategy=We.ConnectionStrategy=We.ConnectionError=We.ConnectionErrors=We.LogTraceNotification=We.SetTraceNotification=We.TraceFormat=We.Trace=We.NullLogger=We.ProgressType=void 0;var Pge=ws(),gr=Wl(),Ne=CI(),Tge=Age(),Rp=Ul(),jI=AI(),Ap;(function(t){t.type=new Ne.NotificationType("$/cancelRequest")})(Ap||(Ap={}));var Uk;(function(t){t.type=new Ne.NotificationType("$/progress")})(Uk||(Uk={}));var $I=class{constructor(){}};We.ProgressType=$I;var BI;(function(t){function e(r){return gr.func(r)}t.is=e})(BI||(BI={}));We.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var er;(function(t){t[t.Off=0]="Off",t[t.Messages=1]="Messages",t[t.Verbose=2]="Verbose"})(er=We.Trace||(We.Trace={}));(function(t){function e(n){if(!gr.string(n))return t.Off;switch(n=n.toLowerCase(),n){case"off":return t.Off;case"messages":return t.Messages;case"verbose":return t.Verbose;default:return t.Off}}t.fromString=e;function r(n){switch(n){case t.Off:return"off";case t.Messages:return"messages";case t.Verbose:return"verbose";default:return"off"}}t.toString=r})(er=We.Trace||(We.Trace={}));var di;(function(t){t.Text="text",t.JSON="json"})(di=We.TraceFormat||(We.TraceFormat={}));(function(t){function e(r){return r=r.toLowerCase(),r==="json"?t.JSON:t.Text}t.fromString=e})(di=We.TraceFormat||(We.TraceFormat={}));var Mge;(function(t){t.type=new Ne.NotificationType("$/setTrace")})(Mge=We.SetTraceNotification||(We.SetTraceNotification={}));var WI;(function(t){t.type=new Ne.NotificationType("$/logTrace")})(WI=We.LogTraceNotification||(We.LogTraceNotification={}));var zk;(function(t){t[t.Closed=1]="Closed",t[t.Disposed=2]="Disposed",t[t.AlreadyListening=3]="AlreadyListening"})(zk=We.ConnectionErrors||(We.ConnectionErrors={}));var ho=class extends Error{constructor(e,r){super(r),this.code=e,Object.setPrototypeOf(this,ho.prototype)}};We.ConnectionError=ho;var Lge;(function(t){function e(r){let n=r;return n&&gr.func(n.cancelUndispatched)}t.is=e})(Lge=We.ConnectionStrategy||(We.ConnectionStrategy={}));var zI;(function(t){t.Message=Object.freeze({createCancellationTokenSource(r){return new jI.CancellationTokenSource}});function e(r){let n=r;return n&&gr.func(n.createCancellationTokenSource)}t.is=e})(zI=We.CancellationReceiverStrategy||(We.CancellationReceiverStrategy={}));var UI;(function(t){t.Message=Object.freeze({sendCancellation(r,n){r.sendNotification(Ap.type,{id:n})},cleanup(r){}});function e(r){let n=r;return n&&gr.func(n.sendCancellation)&&gr.func(n.cleanup)}t.is=e})(UI=We.CancellationSenderStrategy||(We.CancellationSenderStrategy={}));var HI;(function(t){t.Message=Object.freeze({receiver:zI.Message,sender:UI.Message});function e(r){let n=r;return n&&zI.is(n.receiver)&&UI.is(n.sender)}t.is=e})(HI=We.CancellationStrategy||(We.CancellationStrategy={}));var Ovt;(function(t){function e(r){let n=r;return n&&(HI.is(n.cancellationStrategy)||Lge.is(n.connectionStrategy))}t.is=e})(Ovt=We.ConnectionOptions||(We.ConnectionOptions={}));var pi;(function(t){t[t.New=1]="New",t[t.Listening=2]="Listening",t[t.Closed=3]="Closed",t[t.Disposed=4]="Disposed"})(pi||(pi={}));function qvt(t,e,r,n){let i=r!==void 0?r:We.NullLogger,s=0,o=0,a=0,u="2.0",l,c=Object.create(null),f,d=Object.create(null),p=new Map,h,y=new Tge.LinkedMap,v=Object.create(null),g=Object.create(null),b=er.Off,w=di.Text,_,S=pi.New,q=new Rp.Emitter,C=new Rp.Emitter,R=new Rp.Emitter,O=new Rp.Emitter,z=new Rp.Emitter,F=n&&n.cancellationStrategy?n.cancellationStrategy:HI.Message;function te(I){if(I===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+I.toString()}function K(I){return I===null?"res-unknown-"+(++a).toString():"res-"+I.toString()}function ue(){return"not-"+(++o).toString()}function L(I,P){Ne.isRequestMessage(P)?I.set(te(P.id),P):Ne.isResponseMessage(P)?I.set(K(P.id),P):I.set(ue(),P)}function M(I){}function ae(){return S===pi.Listening}function ne(){return S===pi.Closed}function de(){return S===pi.Disposed}function le(){(S===pi.New||S===pi.Listening)&&(S=pi.Closed,C.fire(void 0))}function se(I){q.fire([I,void 0,void 0])}function he(I){q.fire(I)}t.onClose(le),t.onError(se),e.onClose(le),e.onError(he);function we(){h||y.size===0||(h=Pge.default().timer.setImmediate(()=>{h=void 0,De()}))}function De(){if(y.size===0)return;let I=y.shift();try{Ne.isRequestMessage(I)?ve(I):Ne.isNotificationMessage(I)?dt(I):Ne.isResponseMessage(I)?Ct(I):pe(I)}finally{we()}}let Je=I=>{try{if(Ne.isNotificationMessage(I)&&I.method===Ap.type.method){let P=te(I.params.id),E=y.get(P);if(Ne.isRequestMessage(E)){let T=n?.connectionStrategy,W=T&&T.cancelUndispatched?T.cancelUndispatched(E,M):void 0;if(W&&(W.error!==void 0||W.result!==void 0)){y.delete(P),W.id=E.id,Fe(W,I.method,Date.now()),e.write(W);return}}}L(y,I)}finally{we()}};function ve(I){if(de())return;function P(Q,be,Oe){let Ve={jsonrpc:u,id:I.id};Q instanceof Ne.ResponseError?Ve.error=Q.toJson():Ve.result=Q===void 0?null:Q,Fe(Ve,be,Oe),e.write(Ve)}function E(Q,be,Oe){let Ve={jsonrpc:u,id:I.id,error:Q.toJson()};Fe(Ve,be,Oe),e.write(Ve)}function T(Q,be,Oe){Q===void 0&&(Q=null);let Ve={jsonrpc:u,id:I.id,result:Q};Fe(Ve,be,Oe),e.write(Ve)}at(I);let W=c[I.method],D,k;W&&(D=W.type,k=W.handler);let V=Date.now();if(k||l){let Q=String(I.id),be=F.receiver.createCancellationTokenSource(Q);g[Q]=be;try{let Oe;if(k)if(I.params===void 0){if(D!==void 0&&D.numberOfParams!==0){E(new Ne.ResponseError(Ne.ErrorCodes.InvalidParams,`Request ${I.method} defines ${D.numberOfParams} params but recevied none.`),I.method,V);return}Oe=k(be.token)}else if(Array.isArray(I.params)){if(D!==void 0&&D.parameterStructures===Ne.ParameterStructures.byName){E(new Ne.ResponseError(Ne.ErrorCodes.InvalidParams,`Request ${I.method} defines parameters by name but received parameters by position`),I.method,V);return}Oe=k(...I.params,be.token)}else{if(D!==void 0&&D.parameterStructures===Ne.ParameterStructures.byPosition){E(new Ne.ResponseError(Ne.ErrorCodes.InvalidParams,`Request ${I.method} defines parameters by position but received parameters by name`),I.method,V);return}Oe=k(I.params,be.token)}else l&&(Oe=l(I.method,I.params,be.token));let Ve=Oe;Oe?Ve.then?Ve.then(bt=>{delete g[Q],P(bt,I.method,V)},bt=>{delete g[Q],bt instanceof Ne.ResponseError?E(bt,I.method,V):bt&&gr.string(bt.message)?E(new Ne.ResponseError(Ne.ErrorCodes.InternalError,`Request ${I.method} failed with message: ${bt.message}`),I.method,V):E(new Ne.ResponseError(Ne.ErrorCodes.InternalError,`Request ${I.method} failed unexpectedly without providing any details.`),I.method,V)}):(delete g[Q],P(Oe,I.method,V)):(delete g[Q],T(Oe,I.method,V))}catch(Oe){delete g[Q],Oe instanceof Ne.ResponseError?P(Oe,I.method,V):Oe&&gr.string(Oe.message)?E(new Ne.ResponseError(Ne.ErrorCodes.InternalError,`Request ${I.method} failed with message: ${Oe.message}`),I.method,V):E(new Ne.ResponseError(Ne.ErrorCodes.InternalError,`Request ${I.method} failed unexpectedly without providing any details.`),I.method,V)}}else E(new Ne.ResponseError(Ne.ErrorCodes.MethodNotFound,`Unhandled method ${I.method}`),I.method,V)}function Ct(I){if(!de())if(I.id===null)I.error?i.error(`Received response message without id: Error is:
|
|
394
|
+
${S.text}`,_.source&&S.source&&(_.source.end=S.source.end),i=S;let C=S.next();if(!C||C.type!=="comment")break;S=C,w=q}c(_)}),r;function s(g){if(g.source&&g.source.start){let b=g.source.start.line,w=d(g.text);for(let _ of f(fpe,g.text))a(g,b,_,w)}}function o(g){if(g.source&&g.source.end){let b=g.source.end.line,w=d(g.text);for(let _ of f(dpe,g.text))a(g,b+1,_,w)}}function a(g,b,w,_){if(v(Un))throw g.error("All rules have already been disabled",{plugin:"stylelint"});if(w===Un)for(let S of Object.keys(n)){if(v(S))continue;let q=S===Un;p(g,b,S,q,_),h(b,S,q)}else{if(v(w))throw g.error(`"${w}" has already been disabled`,{plugin:"stylelint"});p(g,b,w,!0,_),h(b,w,!0)}}function u(g){let b=d(g.text);for(let w of f(cpe,g.text)){let _=w===Un;if(v(w))throw g.error(_?"All rules have already been disabled":`"${w}" has already been disabled`,{plugin:"stylelint"});if(g.source&&g.source.start){let S=g.source.start.line;if(_)for(let q of Object.keys(n))p(g,S,q,q===Un,b);else p(g,S,w,!0,b)}}}function l(g){for(let b of f(ppe,g.text)){let w=g.source&&g.source.end&&g.source.end.line;if(_yt(w),b===Un){if(Object.values(n).every(_=>{if(_.length===0)return!0;let S=_[_.length-1];return S&&typeof S.end=="number"}))throw g.error("No rules have been disabled",{plugin:"stylelint"});for(let[_,S]of Object.entries(n)){let q=S[S.length-1];(!q||!q.end)&&h(w,_,_===Un)}continue}if(v(Un)&&n[b]===void 0){n[b]=n[Un].map(({start:_,end:S,description:q})=>yF(g,_,!1,q,S,!1)),h(w,b,!0);continue}if(v(b)){h(w,b,!0);continue}throw g.error(`"${b}" has not been disabled`,{plugin:"stylelint"})}}function c(g){if(mF(g))switch(vyt(g)){case fpe:s(g);break;case dpe:o(g);break;case cpe:u(g);break;case ppe:l(g);break}}function f(g,b){let w=b.slice(g.length).split(/\s-{2,}\s/u)[0];xyt(w);let _=w.trim().split(",").filter(Boolean).map(S=>S.trim());return _.length===0?[Un]:_}function d(g){let b=g.indexOf("--");if(b!==-1)return g.slice(b+2).trim()}function p(g,b,w,_,S){let q=yF(g,b,_,S);y(w);let C=n[w];wyt(C),C.push(q)}function h(g,b,w){let _=n[b],S=_?_[_.length-1]:null;S&&(S.end=g,S.strictEnd=w)}function y(g){n[g]||(n[g]=n[Un].map(({comment:b,start:w,end:_,description:S})=>yF(b,w,!1,S,_,!1)))}function v(g){let b=n[g];if(!b)return!1;let w=b[b.length-1];return w?!w.end:!1}}});var ype=m((WNt,mpe)=>{"use strict";var Syt=H("os");function kyt(){return Syt.EOL}mpe.exports=kyt});var vpe=m(Ll=>{"use strict";Ll.__esModule=!0;Ll.distance=Ll.closest=void 0;var bs=new Uint32Array(65536),Eyt=function(t,e){for(var r=t.length,n=e.length,i=1<<r-1,s=-1,o=0,a=r,u=r;u--;)bs[t.charCodeAt(u)]|=1<<u;for(u=0;u<n;u++){var l=bs[e.charCodeAt(u)],c=l|o;l|=(l&s)+s^s,o|=~(l|s),s&=l,o&i&&a++,s&i&&a--,o=o<<1|1,s=s<<1|~(c|o),o&=c}for(u=r;u--;)bs[t.charCodeAt(u)]=0;return a},Cyt=function(t,e){for(var r=e.length,n=t.length,i=[],s=[],o=Math.ceil(r/32),a=Math.ceil(n/32),u=0;u<o;u++)s[u]=-1,i[u]=0;for(var l=0;l<a-1;l++){for(var c=0,f=-1,d=l*32,p=Math.min(32,n)+d,h=d;h<p;h++)bs[t.charCodeAt(h)]|=1<<h;for(var u=0;u<r;u++){var y=bs[e.charCodeAt(u)],v=s[u/32|0]>>>u&1,g=i[u/32|0]>>>u&1,b=y|c,w=((y|g)&f)+f^f|y|g,_=c|~(w|f),S=f&w;_>>>31^v&&(s[u/32|0]^=1<<u),S>>>31^g&&(i[u/32|0]^=1<<u),_=_<<1|v,S=S<<1|g,f=S|~(b|_),c=_&b}for(var h=d;h<p;h++)bs[t.charCodeAt(h)]=0}for(var q=0,C=-1,R=l*32,O=Math.min(32,n-R)+R,h=R;h<O;h++)bs[t.charCodeAt(h)]|=1<<h;for(var z=n,u=0;u<r;u++){var y=bs[e.charCodeAt(u)],v=s[u/32|0]>>>u&1,g=i[u/32|0]>>>u&1,b=y|q,w=((y|g)&C)+C^C|y|g,_=q|~(w|C),S=C&w;z+=_>>>n-1&1,z-=S>>>n-1&1,_>>>31^v&&(s[u/32|0]^=1<<u),S>>>31^g&&(i[u/32|0]^=1<<u),_=_<<1|v,S=S<<1|g,C=S|~(b|_),q=_&b}for(var h=R;h<O;h++)bs[t.charCodeAt(h)]=0;return z},bpe=function(t,e){if(t.length<e.length){var r=e;e=t,t=r}return e.length===0?t.length:t.length<=32?Eyt(t,e):Cyt(t,e)};Ll.distance=bpe;var Dyt=function(t,e){for(var r=1/0,n=0,i=0;i<e.length;i++){var s=bpe(t,e[i]);s<r&&(r=s,n=i)}return e[n]};Ll.closest=Dyt});var Spe=m((UNt,xpe)=>{"use strict";var Oyt=vpe(),qyt=Cd(),wpe=6,_pe=3;function Ryt(t){let e=Array.from({length:wpe});for(let n=0;n<e.length;n++)e[n]=[];for(let n of Object.keys(qyt)){let i=Oyt.distance(n,t);i<=wpe&&e[i-1].push(n)}let r=[];for(let[n,i]of e.entries())if(i.length>0){if(n<3)return i.slice(0,_pe);r=r.concat(i)}return r.slice(0,_pe)}function Ayt(t,e=[]){return`Unknown rule ${t}.${e.length>0?` Did you mean ${e.join(", ")}?`:""}`}var bF=new Map;xpe.exports=function(e,r,n){let i=bF.has(e)?bF.get(e):Ryt(e);bF.set(e,i),n.warn(Ayt(e,i),{severity:"error",rule:e,node:r,index:0})}});var Epe=m((HNt,kpe)=>{"use strict";var Pyt=gpe(),Tyt=ype(),Myt=Spe(),Lyt=Cd(),Fyt=r1();function Iyt(t,e,r){e.stylelint.ruleSeverities={},e.stylelint.customMessages={},e.stylelint.ruleMetadata={},e.stylelint.stylelintError=!1,e.stylelint.stylelintWarning=!1,e.stylelint.quiet=r.quiet,e.stylelint.config=r;let n,i=e.root;if(i){if(!("type"in i))throw new Error("Unexpected Postcss root object!");let c=i.source&&i.source.input.css.match(/\r?\n/);n=c?c[0]:Tyt(),Pyt(i,e)}let s=Nyt(e);s||(e.stylelint.disableWritingFix=!0);let o=i&&i.constructor.name==="Document"?i.nodes:[i],a=[],u=Object.keys(Lyt),l=r.rules?Object.keys(r.rules).sort((c,f)=>u.indexOf(c)-u.indexOf(f)):[];for(let c of l){let f=Fyt(c,r);if(f===void 0){a.push(Promise.all(o.map(g=>Myt(c,g,e))));continue}let d=r.rules&&r.rules[c];if(d===null||d[0]===null)continue;let p=d[0],h=d[1],y=r.defaultSeverity||"error",v=h&&h.disableFix===!0||!1;e.stylelint.ruleSeverities[c]=h&&h.severity||y,e.stylelint.customMessages[c]=h&&h.message,e.stylelint.ruleMetadata[c]=f.meta||{},a.push(Promise.all(o.map(g=>f(p,h,{fix:!v&&t.fix&&s&&!e.stylelint.disabledRanges[c],newline:n})(g,e))))}return Promise.all(a)}function Nyt({stylelint:t}){return!(t.disabledRanges.all&&t.disabledRanges.all.length)}kpe.exports=Iyt});var wF=m((VNt,qpe)=>{"use strict";var jyt=H("path"),Cpe=ip(),$yt=Gde(),Byt=upe(),Dpe=pF(),Wyt=Epe();qpe.exports=async function(e,r={}){if(!r.filePath&&r.code===void 0&&!r.existingPostcssResult)return Promise.reject(new Error("You must provide filePath, code, or existingPostcssResult"));let n=r.code!==void 0,i=n?r.codeFilename:r.filePath;if(i!==void 0&&!jyt.isAbsolute(i))return n?Promise.reject(new Error("codeFilename must be an absolute path")):Promise.reject(new Error("filePath must be an absolute path"));if(await Byt(e,i).catch(h=>{if(n&&Dpe(h))return!1;throw h}))return r.existingPostcssResult?Object.assign(r.existingPostcssResult,{stylelint:vF()}):Ope(i);let o=e._options.configFile||i,a=e._options.cwd,u;try{u=await Cpe(e,o,i)}catch(h){if(n&&Dpe(h))u=await Cpe(e,a);else throw h}if(!u)return Promise.reject(new Error("Config file not found"));let l=u.config,c=r.existingPostcssResult;if(r.cache&&(e._fileCache.calcHashOfConfig(l),r.filePath&&!e._fileCache.hasFileChanged(r.filePath)))return c?Object.assign(c,{stylelint:vF()}):Ope(i);let f={ruleSeverities:{},customMessages:{},ruleMetadata:{},disabledRanges:{}},d=c||await $yt(e,{code:r.code,codeFilename:r.codeFilename,filePath:i,codeProcessors:l.codeProcessors,customSyntax:l.customSyntax}),p=Object.assign(d,{stylelint:f});return await Wyt(e._options,p,l),p};function vF(){return{ruleSeverities:{},customMessages:{},ruleMetadata:{},disabledRanges:{},ignored:!0,stylelintError:!1,stylelintWarning:!1}}function Ope(t){return{root:{source:{input:{file:t}}},messages:[],opts:void 0,stylelint:vF(),warn:()=>{}}}});var Ape=m((GNt,_F)=>{"use strict";var Rpe=H("path"),zyt=tp(),Uyt=wF();_F.exports=(t={})=>{let[e,r]=Hyt(t)?[process.cwd(),{config:t}]:[t.cwd||process.cwd(),t],n=zyt(r);return{postcssPlugin:"stylelint",Once(i,{result:s}){let o=i.source&&i.source.input.file;return o&&!Rpe.isAbsolute(o)&&(o=Rpe.join(e,o)),Uyt(n,{filePath:o,existingPostcssResult:s})}}};_F.exports.postcss=!0;function Hyt(t){return"rules"in t}});var Tpe=m((KNt,Ppe)=>{"use strict";var xF=H("path"),Vyt=tp(),Gyt=ip();Ppe.exports=async function(e,{cwd:r=process.cwd(),config:n,configBasedir:i,configFile:s}={}){if(!e)return;let o=Vyt({config:n,configFile:s,configBasedir:i,cwd:r}),a=xF.isAbsolute(e)?xF.normalize(e):xF.join(r,e),u=o._options.configFile||a,l=await Gyt(o,u,a);if(l)return l.config}});var Lpe=m((YNt,Mpe)=>{"use strict";Mpe.exports=(...t)=>[...new Set([].concat(...t))]});var $pe=m((QNt,SF)=>{"use strict";var Pa=H("path"),Fpe=VT(),Ipe=t=>t.length>1?`{${t.join(",")}}`:t[0],Npe=(t,e)=>{let r=t[0]==="!"?t.slice(1):t;return Pa.isAbsolute(r)?r:Pa.join(e,r)},Kyt=(t,e)=>Pa.extname(t)?`**/${t}`:`**/${t}.${Ipe(e)}`,jpe=(t,e)=>{if(e.files&&!Array.isArray(e.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof e.files}\``);if(e.extensions&&!Array.isArray(e.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof e.extensions}\``);return e.files&&e.extensions?e.files.map(r=>Pa.posix.join(t,Kyt(r,e.extensions))):e.files?e.files.map(r=>Pa.posix.join(t,`**/${r}`)):e.extensions?[Pa.posix.join(t,`**/*.${Ipe(e.extensions)}`)]:[Pa.posix.join(t,"**")]};SF.exports=async(t,e)=>{if(e={cwd:process.cwd(),...e},typeof e.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);let r=await Promise.all([].concat(t).map(async n=>await Fpe.isDirectory(Npe(n,e.cwd))?jpe(n,e):n));return[].concat.apply([],r)};SF.exports.sync=(t,e)=>{if(e={cwd:process.cwd(),...e},typeof e.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);let r=[].concat(t).map(n=>Fpe.isDirectorySync(Npe(n,e.cwd))?jpe(n,e):n);return[].concat.apply([],r)}});var Wpe=m((JNt,Bpe)=>{"use strict";Bpe.exports=t=>{let e=/^\\\\\?\\/.test(t),r=/[^\u0000-\u0080]+/.test(t);return e||r?t:t.replace(/\\/g,"/")}});var Ype=m((XNt,kF)=>{"use strict";var{promisify:Yyt}=H("util"),zpe=H("fs"),vs=H("path"),Upe=To(),Qyt=vk(),_p=Wpe(),Hpe=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],Jyt=Yyt(zpe.readFile),Xyt=t=>e=>e.startsWith("!")?"!"+vs.posix.join(t,e.slice(1)):vs.posix.join(t,e),Zyt=(t,e)=>{let r=_p(vs.relative(e.cwd,vs.dirname(e.fileName)));return t.split(/\r?\n/).filter(Boolean).filter(n=>!n.startsWith("#")).map(Xyt(r))},Vpe=t=>{let e=Qyt();for(let r of t)e.add(Zyt(r.content,{cwd:r.cwd,fileName:r.filePath}));return e},ebt=(t,e)=>{if(t=_p(t),vs.isAbsolute(e)){if(_p(e).startsWith(t))return e;throw new Error(`Path ${e} is not in cwd ${t}`)}return vs.join(t,e)},Gpe=(t,e)=>r=>t.ignores(_p(vs.relative(e,ebt(e,r.path||r)))),tbt=async(t,e)=>{let r=vs.join(e,t),n=await Jyt(r,"utf8");return{cwd:e,filePath:r,content:n}},rbt=(t,e)=>{let r=vs.join(e,t),n=zpe.readFileSync(r,"utf8");return{cwd:e,filePath:r,content:n}},Kpe=({ignore:t=[],cwd:e=_p(process.cwd())}={})=>({ignore:t,cwd:e});kF.exports=async t=>{t=Kpe(t);let e=await Upe("**/.gitignore",{ignore:Hpe.concat(t.ignore),cwd:t.cwd}),r=await Promise.all(e.map(i=>tbt(i,t.cwd))),n=Vpe(r);return Gpe(n,t.cwd)};kF.exports.sync=t=>{t=Kpe(t);let r=Upe.sync("**/.gitignore",{ignore:Hpe.concat(t.ignore),cwd:t.cwd}).map(i=>rbt(i,t.cwd)),n=Vpe(r);return Gpe(n,t.cwd)}});var Jpe=m((ZNt,Qpe)=>{"use strict";var{Transform:nbt}=H("stream"),wk=class extends nbt{constructor(){super({objectMode:!0})}},EF=class extends wk{constructor(e){super(),this._filter=e}_transform(e,r,n){this._filter(e)&&this.push(e),n()}},CF=class extends wk{constructor(){super(),this._pushed=new Set}_transform(e,r,n){this._pushed.has(e)||(this.push(e),this._pushed.add(e)),n()}};Qpe.exports={FilterStream:EF,UniqueStream:CF}});var rhe=m((e5t,Ta)=>{"use strict";var Zpe=H("fs"),_k=Lpe(),ibt=xO(),xk=To(),Sk=$pe(),DF=Ype(),{FilterStream:sbt,UniqueStream:obt}=Jpe(),ehe=()=>!1,Xpe=t=>t[0]==="!",abt=t=>{if(!t.every(e=>typeof e=="string"))throw new TypeError("Patterns must be a string or an array of strings")},ubt=(t={})=>{if(!t.cwd)return;let e;try{e=Zpe.statSync(t.cwd)}catch{return}if(!e.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},lbt=t=>t.stats instanceof Zpe.Stats?t.path:t,kk=(t,e)=>{t=_k([].concat(t)),abt(t),ubt(e);let r=[];e={ignore:[],expandDirectories:!0,...e};for(let[n,i]of t.entries()){if(Xpe(i))continue;let s=t.slice(n).filter(a=>Xpe(a)).map(a=>a.slice(1)),o={...e,ignore:e.ignore.concat(s)};r.push({pattern:i,options:o})}return r},cbt=(t,e)=>{let r={};return t.options.cwd&&(r.cwd=t.options.cwd),Array.isArray(t.options.expandDirectories)?r={...r,files:t.options.expandDirectories}:typeof t.options.expandDirectories=="object"&&(r={...r,...t.options.expandDirectories}),e(t.pattern,r)},OF=(t,e)=>t.options.expandDirectories?cbt(t,e):[t.pattern],the=t=>t&&t.gitignore?DF.sync({cwd:t.cwd,ignore:t.ignore}):ehe,qF=t=>e=>{let{options:r}=t;return r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories&&(r.ignore=Sk.sync(r.ignore)),{pattern:e,options:r}};Ta.exports=async(t,e)=>{let r=kk(t,e),n=async()=>e&&e.gitignore?DF({cwd:e.cwd,ignore:e.ignore}):ehe,i=async()=>{let u=await Promise.all(r.map(async l=>{let c=await OF(l,Sk);return Promise.all(c.map(qF(l)))}));return _k(...u)},[s,o]=await Promise.all([n(),i()]),a=await Promise.all(o.map(u=>xk(u.pattern,u.options)));return _k(...a).filter(u=>!s(lbt(u)))};Ta.exports.sync=(t,e)=>{let r=kk(t,e),n=[];for(let o of r){let a=OF(o,Sk.sync).map(qF(o));n.push(...a)}let i=the(e),s=[];for(let o of n)s=_k(s,xk.sync(o.pattern,o.options));return s.filter(o=>!i(o))};Ta.exports.stream=(t,e)=>{let r=kk(t,e),n=[];for(let a of r){let u=OF(a,Sk.sync).map(qF(a));n.push(...u)}let i=the(e),s=new sbt(a=>!i(a)),o=new obt;return ibt(n.map(a=>xk.stream(a.pattern,a.options))).pipe(s).pipe(o)};Ta.exports.generateGlobTasks=kk;Ta.exports.hasMagic=(t,e)=>[].concat(t).some(r=>xk.isDynamicPattern(r,e));Ta.exports.gitignore=DF});var ihe=m((t5t,nhe)=>{"use strict";nhe.exports=function(e,r){let n,i;if(e&&e.root){e.root.source&&(i=e.root.source.input.file,!i&&"id"in e.root.source.input&&(i=e.root.source.input.id));let o=e.messages.filter(c=>c.stylelintType==="deprecation").map(c=>({text:c.text,reference:c.stylelintReference})),u=e.messages.filter(c=>c.stylelintType==="invalidOption").map(c=>({text:c.text})),l=e.messages.filter(c=>c.stylelintType==="parseError");e.messages=e.messages.filter(c=>c.stylelintType!=="deprecation"&&c.stylelintType!=="invalidOption"&&c.stylelintType!=="parseError"),n={source:i,deprecations:o,invalidOptionWarnings:u,parseErrors:l,errored:e.stylelint.stylelintError,warnings:e.messages.map(c=>({line:c.line,column:c.column,endLine:c.endLine,endColumn:c.endColumn,rule:c.rule,severity:c.severity,text:c.text})),ignored:e.stylelint.ignored,_postcssResult:e}}else if(r){if(r.name!=="CssSyntaxError")throw r;n={source:r.file||"<input css 1>",deprecations:[],invalidOptionWarnings:[],parseErrors:[],errored:!0,warnings:[{line:r.line,column:r.column,endLine:r.endLine,endColumn:r.endColumn,rule:r.name,severity:"error",text:`${r.reason} (${r.name})`}]}}else throw new Error("createPartialStylelintResult must be called with either postcssResult or CssSyntaxError");return n}});var ohe=m((r5t,she)=>{"use strict";var fbt=ihe(),dbt=ip();she.exports=async function(e,r,n,i){let s=fbt(r,i),o=await dbt(e,n,n),a=o===null?{}:o.config,u=s.source||i&&i.file;if(a.resultProcessors)for(let l of a.resultProcessors){let c=l(s,u);c&&(s=c)}return s}});var uhe=m((n5t,ahe)=>{"use strict";var pbt=QS();ahe.exports=function(e={}){let r=Object.keys(pbt).map(n=>`"${n}"`).join(", ");return e.useOr&&(r=r.replace(/, ([a-z"]+)$/u," or $1")),r}});var che=m((i5t,lhe)=>{"use strict";var RF=class extends Error{constructor(e){super(),typeof e=="string"&&(e=[e]);let r=e.filter(n=>!n.startsWith("!")).join(", ");this.message=`No files matching the pattern "${r}" were found.`}};lhe.exports=RF});var dhe=m((s5t,fhe)=>{"use strict";var AF=class extends Error{constructor(){super(),this.message='All input files were ignored because of the ignore pattern. Either change your input, ignore pattern or use "--allow-empty-input" to allow no inputs'}};fhe.exports=AF});var Ek=m((o5t,phe)=>{"use strict";var hbt=j(),{isRegExp:gbt,isString:mbt}=re();phe.exports=function(e,r){if(!e)return null;let n=e.stylelint;if(!n.config)return null;let i=n.config[r],s,o;return Array.isArray(i)?(s=i[0],o=i[1]||{}):(s=i||!1,o={}),!hbt(e,r,{actual:s,possible:[!0,!1]},{actual:o,possible:{except:[mbt,gbt]}})||!s&&!o.except?null:[s,{except:o.except||[],severity:o.severity||n.config.defaultSeverity||"error"},n]}});var ghe=m((a5t,hhe)=>{"use strict";var ybt=xe(),bbt=Ek();hhe.exports=function(e){for(let r of e){let n=bbt(r._postcssResult,"reportDescriptionlessDisables");if(!n)continue;let[i,s,o]=n,a=new Set;for(let[u,l]of Object.entries(o.disabledRanges))for(let c of l)if(!c.description&&!a.has(c.comment)){if(i===ybt(s,"except",u)){!i&&u==="all"&&a.add(c.comment);continue}a.add(c.comment),!(!c.comment.source||!c.comment.source.start)&&r.warnings.push({text:`Disable for "${u}" is missing a description`,rule:"--report-descriptionless-disables",line:c.comment.source.start.line,column:c.comment.source.start.column,endLine:c.comment.source.end&&c.comment.source.end.line,endColumn:c.comment.source.end&&c.comment.source.end.column,severity:s.severity})}}}});var yhe=m((u5t,mhe)=>{"use strict";var vbt=xe(),wbt=Ek();mhe.exports=function(e){for(let r of e){let n=wbt(r._postcssResult,"reportInvalidScopeDisables");if(!n)continue;let[i,s,o]=n,a=(o.config||{}).rules||{},u=new Set(Object.keys(a));u.add("all");for(let[l,c]of Object.entries(o.disabledRanges))if(!u.has(l)&&i!==vbt(s,"except",l))for(let f of c)!f.strictStart&&!f.strictEnd||!f.comment.source||!f.comment.source.start||r.warnings.push({text:`Rule "${l}" isn't enabled`,rule:"--report-invalid-scope-disables",line:f.comment.source.start.line,column:f.comment.source.start.column,endLine:f.comment.source.end&&f.comment.source.end.line,endColumn:f.comment.source.end&&f.comment.source.end.column,severity:s.severity})}}});var vhe=m((l5t,bhe)=>{"use strict";bhe.exports=function(e,r,n){if(e.has(r))return e.get(r);let i=n();return e.set(r,i),i}});var She=m((c5t,xhe)=>{"use strict";var _bt=xe(),whe=vhe(),xbt=Ek();xhe.exports=function(e){for(let r of e){let n=xbt(r._postcssResult,"reportNeedlessDisables");if(!n)continue;let[i,s,o]=n,a=o.disabledRanges;if(!a)continue;let u=o.disabledWarnings||[],l=new Map;for(let f of u){let d=f.rule,p=a[d];if(p)for(let h of p)_he(f,h)&&whe(l,h.comment,()=>new Set).add(d);for(let h of a.all||[])_he(f,h)&&whe(l,h.comment,()=>new Set).add(d)}let c=new Set((a.all||[]).map(f=>f.comment));for(let[f,d]of Object.entries(a))for(let p of d){if(f!=="all"&&c.has(p.comment)||i===_bt(s,"except",f))continue;let h=l.get(p.comment)||new Set;(f==="all"?h.size!==0:h.has(f))||!p.comment.source||!p.comment.source.start||r.warnings.push({text:`Needless disable for "${f}"`,rule:"--report-needless-disables",line:p.comment.source.start.line,column:p.comment.source.start.column,endLine:p.comment.source.end&&p.comment.source.end.line,endColumn:p.comment.source.end&&p.comment.source.end.column,severity:s.severity})}}};function _he(t,e){let r=t.line;return e.start<=r&&(e.end!==void 0&&e.end>=r||e.end===void 0)}});var Che=m((f5t,Ehe)=>{"use strict";Ehe.exports=function(e){for(let r of e){if(!r._postcssResult)continue;let n=r._postcssResult.stylelint.disabledRanges;if(!n)continue;let i=r._postcssResult.stylelint.config;if(!(!i||!i.rules)&&Object.values(i.rules).some(s=>khe(s)))for(let[s,o]of Object.entries(n))for(let a of o)khe(i.rules[s]||[])&&(!a.comment.source||!a.comment.source.start||r.warnings.push({text:`Rule "${s}" may not be disabled`,rule:"reportDisables",line:a.comment.source.start.line,column:a.comment.source.start.column,endLine:a.comment.source.end&&a.comment.source.end.line,endColumn:a.comment.source.end&&a.comment.source.end.column,severity:"error"}))}};function khe(t){return!t||!t[1]?!1:Boolean(t[1].reportDisables)}});var Ohe=m((d5t,Dhe)=>{"use strict";var Sbt=ghe(),kbt=yhe(),Ebt=She(),Cbt=Che();Dhe.exports=function(e,r,n,i){Cbt(e),Ebt(e),kbt(e),Sbt(e);let s=e.some(a=>a.errored||a.parseErrors.length>0||a.warnings.some(u=>u.severity==="error")),o={cwd:i,errored:s,results:[],output:"",reportedDisables:[],ruleMetadata:Dbt(e)};if(r!==void 0){let a=e.reduce((u,l)=>u+l.warnings.length,0);a>r&&(o.maxWarningsExceeded={maxWarnings:r,foundWarnings:a})}return o.output=n(e,o),o.results=e,o};function Dbt(t){let[e]=t;return e===void 0?{}:e._postcssResult===void 0?{}:e._postcssResult.stylelint.ruleMetadata}});var qhe=m((p5t,Ck)=>{Ck.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Ck.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ck.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Mhe=m((h5t,Nl)=>{var It=global.process,Ma=function(t){return t&&typeof t=="object"&&typeof t.removeListener=="function"&&typeof t.emit=="function"&&typeof t.reallyExit=="function"&&typeof t.listeners=="function"&&typeof t.kill=="function"&&typeof t.pid=="number"&&typeof t.on=="function"};Ma(It)?(Rhe=H("assert"),Fl=qhe(),Ahe=/^win/i.test(It.platform),xp=H("events"),typeof xp!="function"&&(xp=xp.EventEmitter),It.__signal_exit_emitter__?hr=It.__signal_exit_emitter__:(hr=It.__signal_exit_emitter__=new xp,hr.count=0,hr.emitted={}),hr.infinite||(hr.setMaxListeners(1/0),hr.infinite=!0),Nl.exports=function(t,e){if(!Ma(global.process))return function(){};Rhe.equal(typeof t,"function","a callback must be provided for exit handler"),Il===!1&&PF();var r="exit";e&&e.alwaysLast&&(r="afterexit");var n=function(){hr.removeListener(r,t),hr.listeners("exit").length===0&&hr.listeners("afterexit").length===0&&Dk()};return hr.on(r,t),n},Dk=function(){!Il||!Ma(global.process)||(Il=!1,Fl.forEach(function(e){try{It.removeListener(e,Ok[e])}catch{}}),It.emit=qk,It.reallyExit=TF,hr.count-=1)},Nl.exports.unload=Dk,La=function(e,r,n){hr.emitted[e]||(hr.emitted[e]=!0,hr.emit(e,r,n))},Ok={},Fl.forEach(function(t){Ok[t]=function(){if(Ma(global.process)){var r=It.listeners(t);r.length===hr.count&&(Dk(),La("exit",null,t),La("afterexit",null,t),Ahe&&t==="SIGHUP"&&(t="SIGINT"),It.kill(It.pid,t))}}}),Nl.exports.signals=function(){return Fl},Il=!1,PF=function(){Il||!Ma(global.process)||(Il=!0,hr.count+=1,Fl=Fl.filter(function(e){try{return It.on(e,Ok[e]),!0}catch{return!1}}),It.emit=The,It.reallyExit=Phe)},Nl.exports.load=PF,TF=It.reallyExit,Phe=function(e){Ma(global.process)&&(It.exitCode=e||0,La("exit",It.exitCode,null),La("afterexit",It.exitCode,null),TF.call(It,It.exitCode))},qk=It.emit,The=function(e,r){if(e==="exit"&&Ma(global.process)){r!==void 0&&(It.exitCode=r);var n=qk.apply(this,arguments);return La("exit",It.exitCode,null),La("afterexit",It.exitCode,null),n}else return qk.apply(this,arguments)}):Nl.exports=function(){return function(){}};var Rhe,Fl,Ahe,xp,hr,Dk,La,Ok,Il,PF,TF,Phe,qk,The});var Fhe=m((g5t,Sp)=>{"use strict";Sp.exports=Mbt;Sp.exports.sync=Lbt;Sp.exports._getTmpname=MF;Sp.exports._cleanupOnExit=LF;var Nt=H("fs"),Obt=YM(),Lhe=Mhe(),qbt=H("path"),{promisify:Hn}=H("util"),po={},Rbt=function(){try{return H("worker_threads").threadId}catch{return 0}}(),Abt=0;function MF(t){return t+"."+Obt(__filename).hash(String(process.pid)).hash(String(Rbt)).hash(String(++Abt)).result()}function LF(t){return()=>{try{Nt.unlinkSync(typeof t=="function"?t():t)}catch{}}}function Pbt(t){return new Promise(e=>{po[t]||(po[t]=[]),po[t].push(e),po[t].length===1&&e()})}function Rk(t){return t.code==="ENOSYS"||(!process.getuid||process.getuid()!==0)&&(t.code==="EINVAL"||t.code==="EPERM")}async function Tbt(t,e,r={}){typeof r=="string"&&(r={encoding:r});let n,i,s=Lhe(LF(()=>i)),o=qbt.resolve(t);try{await Pbt(o);let a=await Hn(Nt.realpath)(t).catch(()=>t);if(i=MF(a),!r.mode||!r.chown){let u=await Hn(Nt.stat)(a).catch(()=>{});u&&(r.mode==null&&(r.mode=u.mode),r.chown==null&&process.getuid&&(r.chown={uid:u.uid,gid:u.gid}))}n=await Hn(Nt.open)(i,"w",r.mode),r.tmpfileCreated&&await r.tmpfileCreated(i),ArrayBuffer.isView(e)?await Hn(Nt.write)(n,e,0,e.length,0):e!=null&&await Hn(Nt.write)(n,String(e),0,String(r.encoding||"utf8")),r.fsync!==!1&&await Hn(Nt.fsync)(n),await Hn(Nt.close)(n),n=null,r.chown&&await Hn(Nt.chown)(i,r.chown.uid,r.chown.gid).catch(u=>{if(!Rk(u))throw u}),r.mode&&await Hn(Nt.chmod)(i,r.mode).catch(u=>{if(!Rk(u))throw u}),await Hn(Nt.rename)(i,a)}finally{n&&await Hn(Nt.close)(n).catch(()=>{}),s(),await Hn(Nt.unlink)(i).catch(()=>{}),po[o].shift(),po[o].length>0?po[o][0]():delete po[o]}}async function Mbt(t,e,r,n){r instanceof Function&&(n=r,r={});let i=Tbt(t,e,r);if(n)try{let s=await i;return n(s)}catch(s){return n(s)}return i}function Lbt(t,e,r){typeof r=="string"?r={encoding:r}:r||(r={});try{t=Nt.realpathSync(t)}catch{}let n=MF(t);if(!r.mode||!r.chown)try{let u=Nt.statSync(t);r=Object.assign({},r),r.mode||(r.mode=u.mode),!r.chown&&process.getuid&&(r.chown={uid:u.uid,gid:u.gid})}catch{}let i,s=LF(n),o=Lhe(s),a=!0;try{if(i=Nt.openSync(n,"w",r.mode||438),r.tmpfileCreated&&r.tmpfileCreated(n),ArrayBuffer.isView(e)?Nt.writeSync(i,e,0,e.length,0):e!=null&&Nt.writeSync(i,String(e),0,String(r.encoding||"utf8")),r.fsync!==!1&&Nt.fsyncSync(i),Nt.closeSync(i),i=null,r.chown)try{Nt.chownSync(n,r.chown.uid,r.chown.gid)}catch(u){if(!Rk(u))throw u}if(r.mode)try{Nt.chmodSync(n,r.mode)}catch(u){if(!Rk(u))throw u}Nt.renameSync(n,t),a=!1}finally{if(i)try{Nt.closeSync(i)}catch{}o(),a&&s()}}});var Bhe=m((m5t,$he)=>{"use strict";var FF=mM()("stylelint:standalone"),Fbt=To(),Ibt=H("fs"),Nbt=rhe(),jbt=N1(),Bi=H("path"),$bt=tp(),jF=ohe(),Ihe=dF(),IF=QS(),Bbt=hF(),Wbt=uhe(),Nhe=wF(),zbt=che(),Ubt=dhe(),{assert:Hbt}=re(),NF=Ohe(),Vbt=["**/node_modules/**"],Gbt=Fhe();async function Kbt({allowEmptyInput:t=!1,cache:e=!1,cacheLocation:r,cacheStrategy:n,code:i,codeFilename:s,config:o,configBasedir:a,configFile:u,customSyntax:l,cwd:c=process.cwd(),disableDefaultIgnores:f,files:d,fix:p,formatter:h,globbyOptions:y,ignoreDisables:v,ignorePath:g,ignorePattern:b,maxWarnings:w,quiet:_,reportDescriptionlessDisables:S,reportInvalidScopeDisables:q,reportNeedlessDisables:C,syntax:R}){let O=Date.now(),z=typeof i=="string";if(!d&&!z||d&&(i||z))return Promise.reject(new Error("You must pass stylelint a `files` glob or a `code` string, though not both"));let F;try{F=Bbt({cwd:c,ignorePath:g,ignorePattern:b})}catch(se){return Promise.reject(se)}let te;try{te=Ybt(h)}catch(se){return Promise.reject(se)}let K=$bt({cacheLocation:r,cacheStrategy:n,config:o,configFile:u,configBasedir:a,cwd:c,ignoreDisables:v,ignorePath:g,reportNeedlessDisables:C,reportInvalidScopeDisables:q,reportDescriptionlessDisables:S,syntax:R,customSyntax:l,fix:p,quiet:_});if(!d){let se=s!==void 0&&!Bi.isAbsolute(s)?Bi.join(c,s):s;if(se&&!Ihe(F,[Bi.relative(c,se)]).length)return NF([],w,te,c);let he;try{let Je=await Nhe(K,{code:i,codeFilename:se});he=await jF(K,Je,se)}catch(Je){he=await jhe(K,Je)}let we=he._postcssResult,De=NF([he],w,te,c);return p&&we&&!we.stylelint.ignored&&(De.output=!we.stylelint.disableWritingFix&&we.opts?we.root.toString(we.opts.syntax):i),De}let ue=[d].flat().map(se=>{let he=y&&y.cwd||c,we=Bi.isAbsolute(se)?Bi.normalize(se):Bi.join(he,se);return Ibt.existsSync(we)?Fbt.escapePath(jbt(se)):se});f||(ue=ue.concat(Vbt.map(se=>`!${se}`))),e||K._fileCache.destroy();let L={cwd:c,...y||{},absolute:!0},M=L.cwd,ae=await Nbt(ue,L),ne=ae.length;ae=Ihe(F,ae.map(se=>Bi.relative(M,se)));let de;if(ae.length){let he=ae.map(we=>Bi.isAbsolute(we)?Bi.normalize(we):Bi.join(M,we)).map(async we=>{FF(`Processing ${we}`);try{let De=await Nhe(K,{filePath:we,cache:e});if((De.stylelint.stylelintError||De.stylelint.stylelintWarning)&&e&&(FF(`${we} contains linting errors and will not be cached.`),K._fileCache.removeEntry(we)),De.root&&De.opts&&!De.stylelint.ignored&&p&&!De.stylelint.disableWritingFix){let Je=De.root.toString(De.opts.syntax);De.root&&De.root.source&&De.root.source.input.css!==Je&&await Gbt(we,Je)}return jF(K,De,we)}catch(De){return K._fileCache.removeEntry(we),jhe(K,De,we)}});de=await Promise.all(he)}else t?de=await Promise.all([]):ne?de=await Promise.reject(new Ubt):de=await Promise.reject(new zbt(ue));e&&K._fileCache.reconcile();let le=NF(de,w,te,c);return FF(`Linting complete in ${Date.now()-O}ms`),le}function Ybt(t){if(typeof t=="string"){let e=IF[t];if(e===void 0)throw new Error(`You must use a valid formatter option: ${Wbt()} or a function`);return e}return typeof t=="function"?t:(Hbt(IF.json),IF.json)}function jhe(t,e,r=void 0){if(e.name==="CssSyntaxError")return jF(t,void 0,r,e);throw e}$he.exports=Kbt});var zhe=m((y5t,Whe)=>{"use strict";var Qbt=tie(),Jbt=nie(),Xbt=tp(),Zbt=QS(),e0t=Ape(),t0t=U(),r0t=Tpe(),n0t=$(),i0t=Cd(),{longhandSubPropertiesOfShorthandProperties:s0t}=Eu(),o0t=Bhe(),a0t=j(),u0t=Object.assign(e0t,{lint:o0t,rules:i0t,formatters:Zbt,createPlugin:Jbt,resolveConfig:r0t,createLinter:Xbt,utils:{report:t0t,ruleMessages:n0t,validateOptions:a0t,checkAgainstRule:Qbt},reference:{longhandSubPropertiesOfShorthandProperties:s0t}});Whe.exports=u0t});var Lk=m(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.thenable=Zt.typedArray=Zt.stringArray=Zt.array=Zt.func=Zt.error=Zt.number=Zt.string=Zt.boolean=void 0;function Z0t(t){return t===!0||t===!1}Zt.boolean=Z0t;function hge(t){return typeof t=="string"||t instanceof String}Zt.string=hge;function evt(t){return typeof t=="number"||t instanceof Number}Zt.number=evt;function tvt(t){return t instanceof Error}Zt.error=tvt;function gge(t){return typeof t=="function"}Zt.func=gge;function mge(t){return Array.isArray(t)}Zt.array=mge;function rvt(t){return mge(t)&&t.every(e=>hge(e))}Zt.stringArray=rvt;function nvt(t,e){return Array.isArray(t)&&t.every(e)}Zt.typedArray=nvt;function ivt(t){return t&&gge(t.then)}Zt.thenable=ivt});var ws=m(JF=>{"use strict";Object.defineProperty(JF,"__esModule",{value:!0});var YF;function QF(){if(YF===void 0)throw new Error("No runtime abstraction layer installed");return YF}(function(t){function e(r){if(r===void 0)throw new Error("No runtime abstraction layer provided");YF=r}t.install=e})(QF||(QF={}));JF.default=QF});var XF=m(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.Disposable=void 0;var svt;(function(t){function e(r){return{dispose:r}}t.create=e})(svt=Dp.Disposable||(Dp.Disposable={}))});var yge=m(Fk=>{"use strict";Object.defineProperty(Fk,"__esModule",{value:!0});Fk.AbstractMessageBuffer=void 0;var ovt=13,avt=10,uvt=`\r
|
|
395
|
+
`,ZF=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){let r=typeof e=="string"?this.fromString(e,this._encoding):e;this._chunks.push(r),this._totalLength+=r.byteLength}tryReadHeaders(){if(this._chunks.length===0)return;let e=0,r=0,n=0,i=0;e:for(;r<this._chunks.length;){let u=this._chunks[r];n=0;t:for(;n<u.length;){switch(u[n]){case ovt:switch(e){case 0:e=1;break;case 2:e=3;break;default:e=0}break;case avt:switch(e){case 1:e=2;break;case 3:e=4,n++;break e;default:e=0}break;default:e=0}n++}i+=u.byteLength,r++}if(e!==4)return;let s=this._read(i+n),o=new Map,a=this.toString(s,"ascii").split(uvt);if(a.length<2)return o;for(let u=0;u<a.length-2;u++){let l=a[u],c=l.indexOf(":");if(c===-1)throw new Error("Message header must separate key and value using :");let f=l.substr(0,c),d=l.substr(c+1).trim();o.set(f,d)}return o}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(e===0)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){let s=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(s)}if(this._chunks[0].byteLength>e){let s=this._chunks[0],o=this.asNative(s,e);return this._chunks[0]=s.slice(e),this._totalLength-=e,o}let r=this.allocNative(e),n=0,i=0;for(;e>0;){let s=this._chunks[i];if(s.byteLength>e){let o=s.slice(0,e);r.set(o,n),n+=e,this._chunks[i]=s.slice(e),this._totalLength-=e,e-=e}else r.set(s,n),n+=s.byteLength,this._chunks.shift(),this._totalLength-=s.byteLength,e-=s.byteLength}return r}};Fk.AbstractMessageBuffer=ZF});var wge=m(nI=>{"use strict";Object.defineProperty(nI,"__esModule",{value:!0});var lvt=ws(),bge=H("util"),Fa=XF(),cvt=yge(),Bl=class extends cvt.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return Bl.emptyBuffer}fromString(e,r){return Buffer.from(e,r)}toString(e,r){return e instanceof Buffer?e.toString(r):new bge.TextDecoder(r).decode(e)}asNative(e,r){return r===void 0?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,r):Buffer.from(e,0,r)}allocNative(e){return Buffer.allocUnsafe(e)}};Bl.emptyBuffer=Buffer.allocUnsafe(0);var eI=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Fa.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Fa.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Fa.Disposable.create(()=>this.stream.off("end",e))}onData(e){return this.stream.on("data",e),Fa.Disposable.create(()=>this.stream.off("data",e))}},tI=class{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),Fa.Disposable.create(()=>this.stream.off("close",e))}onError(e){return this.stream.on("error",e),Fa.Disposable.create(()=>this.stream.off("error",e))}onEnd(e){return this.stream.on("end",e),Fa.Disposable.create(()=>this.stream.off("end",e))}write(e,r){return new Promise((n,i)=>{let s=o=>{o==null?n():i(o)};typeof e=="string"?this.stream.write(e,r,s):this.stream.write(e,s)})}end(){this.stream.end()}},vge=Object.freeze({messageBuffer:Object.freeze({create:t=>new Bl(t)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(t,e)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(t,void 0,0),e.charset))}catch(r){return Promise.reject(r)}}}),decoder:Object.freeze({name:"application/json",decode:(t,e)=>{try{return t instanceof Buffer?Promise.resolve(JSON.parse(t.toString(e.charset))):Promise.resolve(JSON.parse(new bge.TextDecoder(e.charset).decode(t)))}catch(r){return Promise.reject(r)}}})}),stream:Object.freeze({asReadableStream:t=>new eI(t),asWritableStream:t=>new tI(t)}),console,timer:Object.freeze({setTimeout(t,e,...r){return setTimeout(t,e,...r)},clearTimeout(t){clearTimeout(t)},setImmediate(t,...e){return setImmediate(t,...e)},clearImmediate(t){clearImmediate(t)}})});function rI(){return vge}(function(t){function e(){lvt.default.install(vge)}t.install=e})(rI||(rI={}));nI.default=rI});var Wl=m($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.stringArray=$r.array=$r.func=$r.error=$r.number=$r.string=$r.boolean=void 0;function fvt(t){return t===!0||t===!1}$r.boolean=fvt;function _ge(t){return typeof t=="string"||t instanceof String}$r.string=_ge;function dvt(t){return typeof t=="number"||t instanceof Number}$r.number=dvt;function pvt(t){return t instanceof Error}$r.error=pvt;function hvt(t){return typeof t=="function"}$r.func=hvt;function xge(t){return Array.isArray(t)}$r.array=xge;function gvt(t){return xge(t)&&t.every(e=>_ge(e))}$r.stringArray=gvt});var CI=m(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.isResponseMessage=Ce.isNotificationMessage=Ce.isRequestMessage=Ce.NotificationType9=Ce.NotificationType8=Ce.NotificationType7=Ce.NotificationType6=Ce.NotificationType5=Ce.NotificationType4=Ce.NotificationType3=Ce.NotificationType2=Ce.NotificationType1=Ce.NotificationType0=Ce.NotificationType=Ce.RequestType9=Ce.RequestType8=Ce.RequestType7=Ce.RequestType6=Ce.RequestType5=Ce.RequestType4=Ce.RequestType3=Ce.RequestType2=Ce.RequestType1=Ce.RequestType=Ce.RequestType0=Ce.AbstractMessageSignature=Ce.ParameterStructures=Ce.ResponseError=Ce.ErrorCodes=void 0;var Ia=Wl(),Sge;(function(t){t.ParseError=-32700,t.InvalidRequest=-32600,t.MethodNotFound=-32601,t.InvalidParams=-32602,t.InternalError=-32603,t.jsonrpcReservedErrorRangeStart=-32099,t.serverErrorStart=t.jsonrpcReservedErrorRangeStart,t.MessageWriteError=-32099,t.MessageReadError=-32098,t.ServerNotInitialized=-32002,t.UnknownErrorCode=-32001,t.jsonrpcReservedErrorRangeEnd=-32e3,t.serverErrorEnd=t.jsonrpcReservedErrorRangeEnd})(Sge=Ce.ErrorCodes||(Ce.ErrorCodes={}));var Op=class extends Error{constructor(e,r,n){super(r),this.code=Ia.number(e)?e:Sge.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,Op.prototype)}toJson(){return{code:this.code,message:this.message,data:this.data}}};Ce.ResponseError=Op;var gr=class{constructor(e){this.kind=e}static is(e){return e===gr.auto||e===gr.byName||e===gr.byPosition}toString(){return this.kind}};Ce.ParameterStructures=gr;gr.auto=new gr("auto");gr.byPosition=new gr("byPosition");gr.byName=new gr("byName");var kt=class{constructor(e,r){this.method=e,this.numberOfParams=r}get parameterStructures(){return gr.auto}};Ce.AbstractMessageSignature=kt;var iI=class extends kt{constructor(e){super(e,0)}};Ce.RequestType0=iI;var sI=class extends kt{constructor(e,r=gr.auto){super(e,1),this._parameterStructures=r}get parameterStructures(){return this._parameterStructures}};Ce.RequestType=sI;var oI=class extends kt{constructor(e,r=gr.auto){super(e,1),this._parameterStructures=r}get parameterStructures(){return this._parameterStructures}};Ce.RequestType1=oI;var aI=class extends kt{constructor(e){super(e,2)}};Ce.RequestType2=aI;var uI=class extends kt{constructor(e){super(e,3)}};Ce.RequestType3=uI;var lI=class extends kt{constructor(e){super(e,4)}};Ce.RequestType4=lI;var cI=class extends kt{constructor(e){super(e,5)}};Ce.RequestType5=cI;var fI=class extends kt{constructor(e){super(e,6)}};Ce.RequestType6=fI;var dI=class extends kt{constructor(e){super(e,7)}};Ce.RequestType7=dI;var pI=class extends kt{constructor(e){super(e,8)}};Ce.RequestType8=pI;var hI=class extends kt{constructor(e){super(e,9)}};Ce.RequestType9=hI;var gI=class extends kt{constructor(e,r=gr.auto){super(e,1),this._parameterStructures=r}get parameterStructures(){return this._parameterStructures}};Ce.NotificationType=gI;var mI=class extends kt{constructor(e){super(e,0)}};Ce.NotificationType0=mI;var yI=class extends kt{constructor(e,r=gr.auto){super(e,1),this._parameterStructures=r}get parameterStructures(){return this._parameterStructures}};Ce.NotificationType1=yI;var bI=class extends kt{constructor(e){super(e,2)}};Ce.NotificationType2=bI;var vI=class extends kt{constructor(e){super(e,3)}};Ce.NotificationType3=vI;var wI=class extends kt{constructor(e){super(e,4)}};Ce.NotificationType4=wI;var _I=class extends kt{constructor(e){super(e,5)}};Ce.NotificationType5=_I;var xI=class extends kt{constructor(e){super(e,6)}};Ce.NotificationType6=xI;var SI=class extends kt{constructor(e){super(e,7)}};Ce.NotificationType7=SI;var kI=class extends kt{constructor(e){super(e,8)}};Ce.NotificationType8=kI;var EI=class extends kt{constructor(e){super(e,9)}};Ce.NotificationType9=EI;function mvt(t){let e=t;return e&&Ia.string(e.method)&&(Ia.string(e.id)||Ia.number(e.id))}Ce.isRequestMessage=mvt;function yvt(t){let e=t;return e&&Ia.string(e.method)&&t.id===void 0}Ce.isNotificationMessage=yvt;function bvt(t){let e=t;return e&&(e.result!==void 0||!!e.error)&&(Ia.string(e.id)||Ia.number(e.id)||e.id===null)}Ce.isResponseMessage=bvt});var Ul=m(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.Emitter=Na.Event=void 0;var vvt=ws(),wvt;(function(t){let e={dispose(){}};t.None=function(){return e}})(wvt=Na.Event||(Na.Event={}));var DI=class{add(e,r=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(r),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,r)})}remove(e,r=null){if(!this._callbacks)return;let n=!1;for(let i=0,s=this._callbacks.length;i<s;i++)if(this._callbacks[i]===e)if(this._contexts[i]===r){this._callbacks.splice(i,1),this._contexts.splice(i,1);return}else n=!0;if(n)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];let r=[],n=this._callbacks.slice(0),i=this._contexts.slice(0);for(let s=0,o=n.length;s<o;s++)try{r.push(n[s].apply(i[s],e))}catch(a){vvt.default().console.error(a)}return r}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}},zl=class{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,r,n)=>{this._callbacks||(this._callbacks=new DI),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,r);let i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,r),i.dispose=zl._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(n)&&n.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}};Na.Emitter=zl;zl._noop=function(){}});var AI=m(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.CancellationTokenSource=ja.CancellationToken=void 0;var kge=ws(),_vt=Wl(),OI=Ul(),qI;(function(t){t.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:OI.Event.None}),t.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:OI.Event.None});function e(r){let n=r;return n&&(n===t.None||n===t.Cancelled||_vt.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}t.is=e})(qI=ja.CancellationToken||(ja.CancellationToken={}));var xvt=Object.freeze(function(t,e){let r=kge.default().timer.setTimeout(t.bind(e),0);return{dispose(){kge.default().timer.clearTimeout(r)}}}),Ik=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?xvt:(this._emitter||(this._emitter=new OI.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}},RI=class{get token(){return this._token||(this._token=new Ik),this._token}cancel(){this._token?this._token.cancel():this._token=qI.Cancelled}dispose(){this._token?this._token instanceof Ik&&this._token.dispose():this._token=qI.None}};ja.CancellationTokenSource=RI});var Ege=m(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.ReadableStreamMessageReader=_s.AbstractMessageReader=_s.MessageReader=void 0;var Nk=ws(),Hl=Wl(),PI=Ul(),Svt;(function(t){function e(r){let n=r;return n&&Hl.func(n.listen)&&Hl.func(n.dispose)&&Hl.func(n.onError)&&Hl.func(n.onClose)&&Hl.func(n.onPartialMessage)}t.is=e})(Svt=_s.MessageReader||(_s.MessageReader={}));var jk=class{constructor(){this.errorEmitter=new PI.Emitter,this.closeEmitter=new PI.Emitter,this.partialMessageEmitter=new PI.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${Hl.string(e.message)?e.message:"unknown"}`)}};_s.AbstractMessageReader=jk;var TI;(function(t){function e(r){var n;let i,s,o,a=new Map,u,l=new Map;if(r===void 0||typeof r=="string")i=r??"utf-8";else{if(i=(n=r.charset)!==null&&n!==void 0?n:"utf-8",r.contentDecoder!==void 0&&(o=r.contentDecoder,a.set(o.name,o)),r.contentDecoders!==void 0)for(let c of r.contentDecoders)a.set(c.name,c);if(r.contentTypeDecoder!==void 0&&(u=r.contentTypeDecoder,l.set(u.name,u)),r.contentTypeDecoders!==void 0)for(let c of r.contentTypeDecoders)l.set(c.name,c)}return u===void 0&&(u=Nk.default().applicationJson.decoder,l.set(u.name,u)),{charset:i,contentDecoder:o,contentDecoders:a,contentTypeDecoder:u,contentTypeDecoders:l}}t.fromOptions=e})(TI||(TI={}));var MI=class extends jk{constructor(e,r){super(),this.readable=e,this.options=TI.fromOptions(r),this.buffer=Nk.default().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;let r=this.readable.onData(n=>{this.onData(n)});return this.readable.onError(n=>this.fireError(n)),this.readable.onClose(()=>this.fireClose()),r}onData(e){for(this.buffer.append(e);;){if(this.nextMessageLength===-1){let i=this.buffer.tryReadHeaders();if(!i)return;let s=i.get("Content-Length");if(!s)throw new Error("Header must provide a Content-Length property.");let o=parseInt(s);if(isNaN(o))throw new Error("Content-Length value must be a number.");this.nextMessageLength=o}let r=this.buffer.tryReadBody(this.nextMessageLength);if(r===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1;let n;this.options.contentDecoder!==void 0?n=this.options.contentDecoder.decode(r):n=Promise.resolve(r),n.then(i=>{this.options.contentTypeDecoder.decode(i,this.options).then(s=>{this.callback(s)},s=>{this.fireError(s)})},i=>{this.fireError(i)})}}clearPartialMessageTimer(){this.partialMessageTimer&&(Nk.default().timer.clearTimeout(this.partialMessageTimer),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),!(this._partialMessageTimeout<=0)&&(this.partialMessageTimer=Nk.default().timer.setTimeout((e,r)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:r}),this.setPartialMessageTimer())},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}};_s.ReadableStreamMessageReader=MI});var Cge=m($k=>{"use strict";Object.defineProperty($k,"__esModule",{value:!0});$k.Semaphore=void 0;var kvt=ws(),LI=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise((r,n)=>{this._waiting.push({thunk:e,resolve:r,reject:n}),this.runNext()})}get active(){return this._active}runNext(){this._waiting.length===0||this._active===this._capacity||kvt.default().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{let r=e.thunk();r instanceof Promise?r.then(n=>{this._active--,e.resolve(n),this.runNext()},n=>{this._active--,e.reject(n),this.runNext()}):(this._active--,e.resolve(r),this.runNext())}catch(r){this._active--,e.reject(r),this.runNext()}}};$k.Semaphore=LI});var Rge=m(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.WriteableStreamMessageWriter=xs.AbstractMessageWriter=xs.MessageWriter=void 0;var Dge=ws(),qp=Wl(),Evt=Cge(),Oge=Ul(),Cvt="Content-Length: ",qge=`\r
|
|
396
|
+
`,Dvt;(function(t){function e(r){let n=r;return n&&qp.func(n.dispose)&&qp.func(n.onClose)&&qp.func(n.onError)&&qp.func(n.write)}t.is=e})(Dvt=xs.MessageWriter||(xs.MessageWriter={}));var Bk=class{constructor(){this.errorEmitter=new Oge.Emitter,this.closeEmitter=new Oge.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,r,n){this.errorEmitter.fire([this.asError(e),r,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${qp.string(e.message)?e.message:"unknown"}`)}};xs.AbstractMessageWriter=Bk;var FI;(function(t){function e(r){var n,i;return r===void 0||typeof r=="string"?{charset:r??"utf-8",contentTypeEncoder:Dge.default().applicationJson.encoder}:{charset:(n=r.charset)!==null&&n!==void 0?n:"utf-8",contentEncoder:r.contentEncoder,contentTypeEncoder:(i=r.contentTypeEncoder)!==null&&i!==void 0?i:Dge.default().applicationJson.encoder}}t.fromOptions=e})(FI||(FI={}));var II=class extends Bk{constructor(e,r){super(),this.writable=e,this.options=FI.fromOptions(r),this.errorCount=0,this.writeSemaphore=new Evt.Semaphore(1),this.writable.onError(n=>this.fireError(n)),this.writable.onClose(()=>this.fireClose())}async write(e){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(e,this.options).then(n=>this.options.contentEncoder!==void 0?this.options.contentEncoder.encode(n):n).then(n=>{let i=[];return i.push(Cvt,n.byteLength.toString(),qge),i.push(qge),this.doWrite(e,i,n)},n=>{throw this.fireError(n),n}))}async doWrite(e,r,n){try{return await this.writable.write(r.join(""),"ascii"),this.writable.write(n)}catch(i){return this.handleError(i,e),Promise.reject(i)}}handleError(e,r){this.errorCount++,this.fireError(e,r,this.errorCount)}end(){this.writable.end()}};xs.WriteableStreamMessageWriter=II});var Age=m(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.LRUCache=Ss.LinkedMap=Ss.Touch=void 0;var Qr;(function(t){t.None=0,t.First=1,t.AsOld=t.First,t.Last=2,t.AsNew=t.Last})(Qr=Ss.Touch||(Ss.Touch={}));var Wk=class{constructor(){this[Symbol.toStringTag]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return(e=this._head)===null||e===void 0?void 0:e.value}get last(){var e;return(e=this._tail)===null||e===void 0?void 0:e.value}has(e){return this._map.has(e)}get(e,r=Qr.None){let n=this._map.get(e);if(n)return r!==Qr.None&&this.touch(n,r),n.value}set(e,r,n=Qr.None){let i=this._map.get(e);if(i)i.value=r,n!==Qr.None&&this.touch(i,n);else{switch(i={key:e,value:r,next:void 0,previous:void 0},n){case Qr.None:this.addItemLast(i);break;case Qr.First:this.addItemFirst(i);break;case Qr.Last:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){let r=this._map.get(e);if(r)return this._map.delete(e),this.removeItem(r),this._size--,r.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,r){let n=this._state,i=this._head;for(;i;){if(r?e.bind(r)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let e=this,r=this._state,n=this._head,i={[Symbol.iterator](){return i},next(){if(e._state!==r)throw new Error("LinkedMap got modified during iteration.");if(n){let s={value:n.key,done:!1};return n=n.next,s}else return{value:void 0,done:!0}}};return i}values(){let e=this,r=this._state,n=this._head,i={[Symbol.iterator](){return i},next(){if(e._state!==r)throw new Error("LinkedMap got modified during iteration.");if(n){let s={value:n.value,done:!1};return n=n.next,s}else return{value:void 0,done:!0}}};return i}entries(){let e=this,r=this._state,n=this._head,i={[Symbol.iterator](){return i},next(){if(e._state!==r)throw new Error("LinkedMap got modified during iteration.");if(n){let s={value:[n.key,n.value],done:!1};return n=n.next,s}else return{value:void 0,done:!0}}};return i}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(e===0){this.clear();return}let r=this._head,n=this.size;for(;r&&n>e;)this._map.delete(r.key),r=r.next,n--;this._head=r,this._size=n,r&&(r.previous=void 0),this._state++}addItemFirst(e){if(!this._head&&!this._tail)this._tail=e;else if(this._head)e.next=this._head,this._head.previous=e;else throw new Error("Invalid list");this._head=e,this._state++}addItemLast(e){if(!this._head&&!this._tail)this._head=e;else if(this._tail)e.previous=this._tail,this._tail.next=e;else throw new Error("Invalid list");this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{let r=e.next,n=e.previous;if(!r||!n)throw new Error("Invalid list");r.previous=n,n.next=r}e.next=void 0,e.previous=void 0,this._state++}touch(e,r){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(r!==Qr.First&&r!==Qr.Last)){if(r===Qr.First){if(e===this._head)return;let n=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(n.previous=i,i.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(r===Qr.Last){if(e===this._tail)return;let n=e.next,i=e.previous;e===this._head?(n.previous=void 0,this._head=n):(n.previous=i,i.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}}toJSON(){let e=[];return this.forEach((r,n)=>{e.push([n,r])}),e}fromJSON(e){this.clear();for(let[r,n]of e)this.set(r,n)}};Ss.LinkedMap=Wk;var NI=class extends Wk{constructor(e,r=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,r),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,r=Qr.AsNew){return super.get(e,r)}peek(e){return super.get(e,Qr.None)}set(e,r){return super.set(e,r,Qr.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}};Ss.LRUCache=NI});var Fge=m(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.createMessageConnection=We.ConnectionOptions=We.CancellationStrategy=We.CancellationSenderStrategy=We.CancellationReceiverStrategy=We.ConnectionStrategy=We.ConnectionError=We.ConnectionErrors=We.LogTraceNotification=We.SetTraceNotification=We.TraceFormat=We.Trace=We.NullLogger=We.ProgressType=void 0;var Pge=ws(),mr=Wl(),Ne=CI(),Tge=Age(),Rp=Ul(),jI=AI(),Ap;(function(t){t.type=new Ne.NotificationType("$/cancelRequest")})(Ap||(Ap={}));var Uk;(function(t){t.type=new Ne.NotificationType("$/progress")})(Uk||(Uk={}));var $I=class{constructor(){}};We.ProgressType=$I;var BI;(function(t){function e(r){return mr.func(r)}t.is=e})(BI||(BI={}));We.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var er;(function(t){t[t.Off=0]="Off",t[t.Messages=1]="Messages",t[t.Verbose=2]="Verbose"})(er=We.Trace||(We.Trace={}));(function(t){function e(n){if(!mr.string(n))return t.Off;switch(n=n.toLowerCase(),n){case"off":return t.Off;case"messages":return t.Messages;case"verbose":return t.Verbose;default:return t.Off}}t.fromString=e;function r(n){switch(n){case t.Off:return"off";case t.Messages:return"messages";case t.Verbose:return"verbose";default:return"off"}}t.toString=r})(er=We.Trace||(We.Trace={}));var di;(function(t){t.Text="text",t.JSON="json"})(di=We.TraceFormat||(We.TraceFormat={}));(function(t){function e(r){return r=r.toLowerCase(),r==="json"?t.JSON:t.Text}t.fromString=e})(di=We.TraceFormat||(We.TraceFormat={}));var Mge;(function(t){t.type=new Ne.NotificationType("$/setTrace")})(Mge=We.SetTraceNotification||(We.SetTraceNotification={}));var WI;(function(t){t.type=new Ne.NotificationType("$/logTrace")})(WI=We.LogTraceNotification||(We.LogTraceNotification={}));var zk;(function(t){t[t.Closed=1]="Closed",t[t.Disposed=2]="Disposed",t[t.AlreadyListening=3]="AlreadyListening"})(zk=We.ConnectionErrors||(We.ConnectionErrors={}));var ho=class extends Error{constructor(e,r){super(r),this.code=e,Object.setPrototypeOf(this,ho.prototype)}};We.ConnectionError=ho;var Lge;(function(t){function e(r){let n=r;return n&&mr.func(n.cancelUndispatched)}t.is=e})(Lge=We.ConnectionStrategy||(We.ConnectionStrategy={}));var zI;(function(t){t.Message=Object.freeze({createCancellationTokenSource(r){return new jI.CancellationTokenSource}});function e(r){let n=r;return n&&mr.func(n.createCancellationTokenSource)}t.is=e})(zI=We.CancellationReceiverStrategy||(We.CancellationReceiverStrategy={}));var UI;(function(t){t.Message=Object.freeze({sendCancellation(r,n){r.sendNotification(Ap.type,{id:n})},cleanup(r){}});function e(r){let n=r;return n&&mr.func(n.sendCancellation)&&mr.func(n.cleanup)}t.is=e})(UI=We.CancellationSenderStrategy||(We.CancellationSenderStrategy={}));var HI;(function(t){t.Message=Object.freeze({receiver:zI.Message,sender:UI.Message});function e(r){let n=r;return n&&zI.is(n.receiver)&&UI.is(n.sender)}t.is=e})(HI=We.CancellationStrategy||(We.CancellationStrategy={}));var Ovt;(function(t){function e(r){let n=r;return n&&(HI.is(n.cancellationStrategy)||Lge.is(n.connectionStrategy))}t.is=e})(Ovt=We.ConnectionOptions||(We.ConnectionOptions={}));var pi;(function(t){t[t.New=1]="New",t[t.Listening=2]="Listening",t[t.Closed=3]="Closed",t[t.Disposed=4]="Disposed"})(pi||(pi={}));function qvt(t,e,r,n){let i=r!==void 0?r:We.NullLogger,s=0,o=0,a=0,u="2.0",l,c=Object.create(null),f,d=Object.create(null),p=new Map,h,y=new Tge.LinkedMap,v=Object.create(null),g=Object.create(null),b=er.Off,w=di.Text,_,S=pi.New,q=new Rp.Emitter,C=new Rp.Emitter,R=new Rp.Emitter,O=new Rp.Emitter,z=new Rp.Emitter,F=n&&n.cancellationStrategy?n.cancellationStrategy:HI.Message;function te(I){if(I===null)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+I.toString()}function K(I){return I===null?"res-unknown-"+(++a).toString():"res-"+I.toString()}function ue(){return"not-"+(++o).toString()}function L(I,P){Ne.isRequestMessage(P)?I.set(te(P.id),P):Ne.isResponseMessage(P)?I.set(K(P.id),P):I.set(ue(),P)}function M(I){}function ae(){return S===pi.Listening}function ne(){return S===pi.Closed}function de(){return S===pi.Disposed}function le(){(S===pi.New||S===pi.Listening)&&(S=pi.Closed,C.fire(void 0))}function se(I){q.fire([I,void 0,void 0])}function he(I){q.fire(I)}t.onClose(le),t.onError(se),e.onClose(le),e.onError(he);function we(){h||y.size===0||(h=Pge.default().timer.setImmediate(()=>{h=void 0,De()}))}function De(){if(y.size===0)return;let I=y.shift();try{Ne.isRequestMessage(I)?ve(I):Ne.isNotificationMessage(I)?dt(I):Ne.isResponseMessage(I)?Ct(I):pe(I)}finally{we()}}let Je=I=>{try{if(Ne.isNotificationMessage(I)&&I.method===Ap.type.method){let P=te(I.params.id),E=y.get(P);if(Ne.isRequestMessage(E)){let T=n?.connectionStrategy,W=T&&T.cancelUndispatched?T.cancelUndispatched(E,M):void 0;if(W&&(W.error!==void 0||W.result!==void 0)){y.delete(P),W.id=E.id,Fe(W,I.method,Date.now()),e.write(W);return}}}L(y,I)}finally{we()}};function ve(I){if(de())return;function P(Q,be,Oe){let Ve={jsonrpc:u,id:I.id};Q instanceof Ne.ResponseError?Ve.error=Q.toJson():Ve.result=Q===void 0?null:Q,Fe(Ve,be,Oe),e.write(Ve)}function E(Q,be,Oe){let Ve={jsonrpc:u,id:I.id,error:Q.toJson()};Fe(Ve,be,Oe),e.write(Ve)}function T(Q,be,Oe){Q===void 0&&(Q=null);let Ve={jsonrpc:u,id:I.id,result:Q};Fe(Ve,be,Oe),e.write(Ve)}at(I);let W=c[I.method],D,k;W&&(D=W.type,k=W.handler);let V=Date.now();if(k||l){let Q=String(I.id),be=F.receiver.createCancellationTokenSource(Q);g[Q]=be;try{let Oe;if(k)if(I.params===void 0){if(D!==void 0&&D.numberOfParams!==0){E(new Ne.ResponseError(Ne.ErrorCodes.InvalidParams,`Request ${I.method} defines ${D.numberOfParams} params but recevied none.`),I.method,V);return}Oe=k(be.token)}else if(Array.isArray(I.params)){if(D!==void 0&&D.parameterStructures===Ne.ParameterStructures.byName){E(new Ne.ResponseError(Ne.ErrorCodes.InvalidParams,`Request ${I.method} defines parameters by name but received parameters by position`),I.method,V);return}Oe=k(...I.params,be.token)}else{if(D!==void 0&&D.parameterStructures===Ne.ParameterStructures.byPosition){E(new Ne.ResponseError(Ne.ErrorCodes.InvalidParams,`Request ${I.method} defines parameters by position but received parameters by name`),I.method,V);return}Oe=k(I.params,be.token)}else l&&(Oe=l(I.method,I.params,be.token));let Ve=Oe;Oe?Ve.then?Ve.then(bt=>{delete g[Q],P(bt,I.method,V)},bt=>{delete g[Q],bt instanceof Ne.ResponseError?E(bt,I.method,V):bt&&mr.string(bt.message)?E(new Ne.ResponseError(Ne.ErrorCodes.InternalError,`Request ${I.method} failed with message: ${bt.message}`),I.method,V):E(new Ne.ResponseError(Ne.ErrorCodes.InternalError,`Request ${I.method} failed unexpectedly without providing any details.`),I.method,V)}):(delete g[Q],P(Oe,I.method,V)):(delete g[Q],T(Oe,I.method,V))}catch(Oe){delete g[Q],Oe instanceof Ne.ResponseError?P(Oe,I.method,V):Oe&&mr.string(Oe.message)?E(new Ne.ResponseError(Ne.ErrorCodes.InternalError,`Request ${I.method} failed with message: ${Oe.message}`),I.method,V):E(new Ne.ResponseError(Ne.ErrorCodes.InternalError,`Request ${I.method} failed unexpectedly without providing any details.`),I.method,V)}}else E(new Ne.ResponseError(Ne.ErrorCodes.MethodNotFound,`Unhandled method ${I.method}`),I.method,V)}function Ct(I){if(!de())if(I.id===null)I.error?i.error(`Received response message without id: Error is:
|
|
397
397
|
${JSON.stringify(I.error,void 0,4)}`):i.error("Received response message without id. No further error information provided.");else{let P=String(I.id),E=v[P];if($t(I,E),E){delete v[P];try{if(I.error){let T=I.error;E.reject(new Ne.ResponseError(T.code,T.message,T.data))}else if(I.result!==void 0)E.resolve(I.result);else throw new Error("Should never happen.")}catch(T){T.message?i.error(`Response handler '${E.method}' failed with message: ${T.message}`):i.error(`Response handler '${E.method}' failed unexpectedly.`)}}}}function dt(I){if(de())return;let P,E;if(I.method===Ap.type.method)E=T=>{let W=T.id,D=g[String(W)];D&&D.cancel()};else{let T=d[I.method];T&&(E=T.handler,P=T.type)}if(E||f)try{zt(I),E?I.params===void 0?(P!==void 0&&P.numberOfParams!==0&&P.parameterStructures!==Ne.ParameterStructures.byName&&i.error(`Notification ${I.method} defines ${P.numberOfParams} params but recevied none.`),E()):Array.isArray(I.params)?(P!==void 0&&(P.parameterStructures===Ne.ParameterStructures.byName&&i.error(`Notification ${I.method} defines parameters by name but received parameters by position`),P.numberOfParams!==I.params.length&&i.error(`Notification ${I.method} defines ${P.numberOfParams} params but received ${I.params.length} argumennts`)),E(...I.params)):(P!==void 0&&P.parameterStructures===Ne.ParameterStructures.byPosition&&i.error(`Notification ${I.method} defines parameters by position but received parameters by name`),E(I.params)):f&&f(I.method,I.params)}catch(T){T.message?i.error(`Notification handler '${I.method}' failed with message: ${T.message}`):i.error(`Notification handler '${I.method}' failed unexpectedly.`)}else R.fire(I)}function pe(I){if(!I){i.error("Received empty message.");return}i.error(`Received message which is neither a response nor a notification message:
|
|
398
|
-
${JSON.stringify(I,null,4)}`);let P=I;if(
|
|
398
|
+
${JSON.stringify(I,null,4)}`);let P=I;if(mr.string(P.id)||mr.number(P.id)){let E=String(P.id),T=v[E];T&&T.reject(new Error("The received response has neither a result nor an error property."))}}function ce(I){if(!(b===er.Off||!_))if(w===di.Text){let P;b===er.Verbose&&I.params&&(P=`Params: ${JSON.stringify(I.params,null,4)}
|
|
399
399
|
|
|
400
400
|
`),_.log(`Sending request '${I.method} - (${I.id})'.`,P)}else Rn("send-request",I)}function ie(I){if(!(b===er.Off||!_))if(w===di.Text){let P;b===er.Verbose&&(I.params?P=`Params: ${JSON.stringify(I.params,null,4)}
|
|
401
401
|
|
|
@@ -419,18 +419,18 @@ ${JSON.stringify(I,null,4)}`);let P=I;if(gr.string(P.id)||gr.number(P.id)){let E
|
|
|
419
419
|
|
|
420
420
|
`:I.error===void 0&&(E=`No result returned.
|
|
421
421
|
|
|
422
|
-
`)),P){let T=I.error?` Request failed: ${I.error.message} (${I.error.code}).`:"";_.log(`Received response '${P.method} - (${I.id})' in ${Date.now()-P.timerStart}ms.${T}`,E)}else _.log(`Received response ${I.id} without active response promise.`,E)}else Rn("receive-response",I)}function Rn(I,P){if(!_||b===er.Off)return;let E={isLSPMessage:!0,type:I,message:P,timestamp:Date.now()};_.log(E)}function An(){if(ne())throw new ho(zk.Closed,"Connection is closed.");if(de())throw new ho(zk.Disposed,"Connection is disposed.")}function NE(){if(ae())throw new ho(zk.AlreadyListening,"Connection is already listening")}function jE(){if(!ae())throw new Error("Call listen() first.")}function Co(I){return I===void 0?null:I}function ah(I){if(I!==null)return I}function uh(I){return I!=null&&!Array.isArray(I)&&typeof I=="object"}function tc(I,P){switch(I){case Ne.ParameterStructures.auto:return uh(P)?ah(P):[Co(P)];case Ne.ParameterStructures.byName:if(!uh(P))throw new Error("Recevied parameters by name but param is not an object literal.");return ah(P);case Ne.ParameterStructures.byPosition:return[Co(P)];default:throw new Error(`Unknown parameter structure ${I.toString()}`)}}function lh(I,P){let E,T=I.numberOfParams;switch(T){case 0:E=void 0;break;case 1:E=tc(I.parameterStructures,P[0]);break;default:E=[];for(let W=0;W<P.length&&W<T;W++)E.push(Co(P[W]));if(P.length<T)for(let W=P.length;W<T;W++)E.push(null);break}return E}let Ds={sendNotification:(I,...P)=>{An();let E,T;if(gr.string(I)){E=I;let D=P[0],k=0,V=Ne.ParameterStructures.auto;Ne.ParameterStructures.is(D)&&(k=1,V=D);let Q=P.length,be=Q-k;switch(be){case 0:T=void 0;break;case 1:T=tc(V,P[k]);break;default:if(V===Ne.ParameterStructures.byName)throw new Error(`Recevied ${be} parameters for 'by Name' notification parameter structure.`);T=P.slice(k,Q).map(Oe=>Co(Oe));break}}else{let D=P;E=I.method,T=lh(I,D)}let W={jsonrpc:u,method:E,params:T};ie(W),e.write(W)},onNotification:(I,P)=>{An();let E;return gr.func(I)?f=I:P&&(gr.string(I)?(E=I,d[I]={type:void 0,handler:P}):(E=I.method,d[I.method]={type:I,handler:P})),{dispose:()=>{E!==void 0?delete d[E]:f=void 0}}},onProgress:(I,P,E)=>{if(p.has(P))throw new Error(`Progress handler for token ${P} already registered`);return p.set(P,E),{dispose:()=>{p.delete(P)}}},sendProgress:(I,P,E)=>{Ds.sendNotification(Uk.type,{token:P,value:E})},onUnhandledProgress:O.event,sendRequest:(I,...P)=>{An(),jE();let E,T,W;if(gr.string(I)){E=I;let Q=P[0],be=P[P.length-1],Oe=0,Ve=Ne.ParameterStructures.auto;Ne.ParameterStructures.is(Q)&&(Oe=1,Ve=Q);let bt=P.length;jI.CancellationToken.is(be)&&(bt=bt-1,W=be);let rr=bt-Oe;switch(rr){case 0:T=void 0;break;case 1:T=tc(Ve,P[Oe]);break;default:if(Ve===Ne.ParameterStructures.byName)throw new Error(`Recevied ${rr} parameters for 'by Name' request parameter structure.`);T=P.slice(Oe,bt).map(or=>Co(or));break}}else{let Q=P;E=I.method,T=lh(I,Q);let be=I.numberOfParams;W=jI.CancellationToken.is(Q[be])?Q[be]:void 0}let D=s++,k;return W&&(k=W.onCancellationRequested(()=>{F.sender.sendCancellation(Ds,D)})),new Promise((Q,be)=>{let Oe={jsonrpc:u,id:D,method:E,params:T},Ve=or=>{Q(or),F.sender.cleanup(D),k?.dispose()},bt=or=>{be(or),F.sender.cleanup(D),k?.dispose()},rr={method:E,timerStart:Date.now(),resolve:Ve,reject:bt};ce(Oe);try{e.write(Oe)}catch(or){rr.reject(new Ne.ResponseError(Ne.ErrorCodes.MessageWriteError,or.message?or.message:"Unknown reason")),rr=null}rr&&(v[String(D)]=rr)})},onRequest:(I,P)=>{An();let E=null;return BI.is(I)?(E=void 0,l=I):gr.string(I)?(E=null,P!==void 0&&(E=I,c[I]={handler:P,type:void 0})):P!==void 0&&(E=I.method,c[I.method]={type:I,handler:P}),{dispose:()=>{E!==null&&(E!==void 0?delete c[E]:l=void 0)}}},trace:(I,P,E)=>{let T=!1,W=di.Text;E!==void 0&&(gr.boolean(E)?T=E:(T=E.sendNotification||!1,W=E.traceFormat||di.Text)),b=I,w=W,b===er.Off?_=void 0:_=P,T&&!ne()&&!de()&&Ds.sendNotification(Mge.type,{value:er.toString(I)})},onError:q.event,onClose:C.event,onUnhandledNotification:R.event,onDispose:z.event,end:()=>{e.end()},dispose:()=>{if(de())return;S=pi.Disposed,z.fire(void 0);let I=new Error("Connection got disposed.");Object.keys(v).forEach(P=>{v[P].reject(I)}),v=Object.create(null),g=Object.create(null),y=new Tge.LinkedMap,gr.func(e.dispose)&&e.dispose(),gr.func(t.dispose)&&t.dispose()},listen:()=>{An(),NE(),S=pi.Listening,t.listen(Je)},inspect:()=>{Pge.default().console.log("inspect")}};return Ds.onNotification(WI.type,I=>{b===er.Off||!_||_.log(I.message,b===er.Verbose?I.verbose:void 0)}),Ds.onNotification(Uk.type,I=>{let P=p.get(I.token);P?P(I.value):O.fire(I)}),Ds}We.createMessageConnection=qvt});var KI=m(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.CancellationSenderStrategy=oe.CancellationReceiverStrategy=oe.ConnectionError=oe.ConnectionErrors=oe.LogTraceNotification=oe.SetTraceNotification=oe.TraceFormat=oe.Trace=oe.ProgressType=oe.createMessageConnection=oe.NullLogger=oe.ConnectionOptions=oe.ConnectionStrategy=oe.WriteableStreamMessageWriter=oe.AbstractMessageWriter=oe.MessageWriter=oe.ReadableStreamMessageReader=oe.AbstractMessageReader=oe.MessageReader=oe.CancellationToken=oe.CancellationTokenSource=oe.Emitter=oe.Event=oe.Disposable=oe.ParameterStructures=oe.NotificationType9=oe.NotificationType8=oe.NotificationType7=oe.NotificationType6=oe.NotificationType5=oe.NotificationType4=oe.NotificationType3=oe.NotificationType2=oe.NotificationType1=oe.NotificationType0=oe.NotificationType=oe.ErrorCodes=oe.ResponseError=oe.RequestType9=oe.RequestType8=oe.RequestType7=oe.RequestType6=oe.RequestType5=oe.RequestType4=oe.RequestType3=oe.RequestType2=oe.RequestType1=oe.RequestType0=oe.RequestType=oe.RAL=void 0;oe.CancellationStrategy=void 0;var Et=CI();Object.defineProperty(oe,"RequestType",{enumerable:!0,get:function(){return Et.RequestType}});Object.defineProperty(oe,"RequestType0",{enumerable:!0,get:function(){return Et.RequestType0}});Object.defineProperty(oe,"RequestType1",{enumerable:!0,get:function(){return Et.RequestType1}});Object.defineProperty(oe,"RequestType2",{enumerable:!0,get:function(){return Et.RequestType2}});Object.defineProperty(oe,"RequestType3",{enumerable:!0,get:function(){return Et.RequestType3}});Object.defineProperty(oe,"RequestType4",{enumerable:!0,get:function(){return Et.RequestType4}});Object.defineProperty(oe,"RequestType5",{enumerable:!0,get:function(){return Et.RequestType5}});Object.defineProperty(oe,"RequestType6",{enumerable:!0,get:function(){return Et.RequestType6}});Object.defineProperty(oe,"RequestType7",{enumerable:!0,get:function(){return Et.RequestType7}});Object.defineProperty(oe,"RequestType8",{enumerable:!0,get:function(){return Et.RequestType8}});Object.defineProperty(oe,"RequestType9",{enumerable:!0,get:function(){return Et.RequestType9}});Object.defineProperty(oe,"ResponseError",{enumerable:!0,get:function(){return Et.ResponseError}});Object.defineProperty(oe,"ErrorCodes",{enumerable:!0,get:function(){return Et.ErrorCodes}});Object.defineProperty(oe,"NotificationType",{enumerable:!0,get:function(){return Et.NotificationType}});Object.defineProperty(oe,"NotificationType0",{enumerable:!0,get:function(){return Et.NotificationType0}});Object.defineProperty(oe,"NotificationType1",{enumerable:!0,get:function(){return Et.NotificationType1}});Object.defineProperty(oe,"NotificationType2",{enumerable:!0,get:function(){return Et.NotificationType2}});Object.defineProperty(oe,"NotificationType3",{enumerable:!0,get:function(){return Et.NotificationType3}});Object.defineProperty(oe,"NotificationType4",{enumerable:!0,get:function(){return Et.NotificationType4}});Object.defineProperty(oe,"NotificationType5",{enumerable:!0,get:function(){return Et.NotificationType5}});Object.defineProperty(oe,"NotificationType6",{enumerable:!0,get:function(){return Et.NotificationType6}});Object.defineProperty(oe,"NotificationType7",{enumerable:!0,get:function(){return Et.NotificationType7}});Object.defineProperty(oe,"NotificationType8",{enumerable:!0,get:function(){return Et.NotificationType8}});Object.defineProperty(oe,"NotificationType9",{enumerable:!0,get:function(){return Et.NotificationType9}});Object.defineProperty(oe,"ParameterStructures",{enumerable:!0,get:function(){return Et.ParameterStructures}});var Rvt=XF();Object.defineProperty(oe,"Disposable",{enumerable:!0,get:function(){return Rvt.Disposable}});var Ige=Ul();Object.defineProperty(oe,"Event",{enumerable:!0,get:function(){return Ige.Event}});Object.defineProperty(oe,"Emitter",{enumerable:!0,get:function(){return Ige.Emitter}});var Nge=AI();Object.defineProperty(oe,"CancellationTokenSource",{enumerable:!0,get:function(){return Nge.CancellationTokenSource}});Object.defineProperty(oe,"CancellationToken",{enumerable:!0,get:function(){return Nge.CancellationToken}});var VI=Ege();Object.defineProperty(oe,"MessageReader",{enumerable:!0,get:function(){return VI.MessageReader}});Object.defineProperty(oe,"AbstractMessageReader",{enumerable:!0,get:function(){return VI.AbstractMessageReader}});Object.defineProperty(oe,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return VI.ReadableStreamMessageReader}});var GI=Rge();Object.defineProperty(oe,"MessageWriter",{enumerable:!0,get:function(){return GI.MessageWriter}});Object.defineProperty(oe,"AbstractMessageWriter",{enumerable:!0,get:function(){return GI.AbstractMessageWriter}});Object.defineProperty(oe,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return GI.WriteableStreamMessageWriter}});var on=Fge();Object.defineProperty(oe,"ConnectionStrategy",{enumerable:!0,get:function(){return on.ConnectionStrategy}});Object.defineProperty(oe,"ConnectionOptions",{enumerable:!0,get:function(){return on.ConnectionOptions}});Object.defineProperty(oe,"NullLogger",{enumerable:!0,get:function(){return on.NullLogger}});Object.defineProperty(oe,"createMessageConnection",{enumerable:!0,get:function(){return on.createMessageConnection}});Object.defineProperty(oe,"ProgressType",{enumerable:!0,get:function(){return on.ProgressType}});Object.defineProperty(oe,"Trace",{enumerable:!0,get:function(){return on.Trace}});Object.defineProperty(oe,"TraceFormat",{enumerable:!0,get:function(){return on.TraceFormat}});Object.defineProperty(oe,"SetTraceNotification",{enumerable:!0,get:function(){return on.SetTraceNotification}});Object.defineProperty(oe,"LogTraceNotification",{enumerable:!0,get:function(){return on.LogTraceNotification}});Object.defineProperty(oe,"ConnectionErrors",{enumerable:!0,get:function(){return on.ConnectionErrors}});Object.defineProperty(oe,"ConnectionError",{enumerable:!0,get:function(){return on.ConnectionError}});Object.defineProperty(oe,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return on.CancellationReceiverStrategy}});Object.defineProperty(oe,"CancellationSenderStrategy",{enumerable:!0,get:function(){return on.CancellationSenderStrategy}});Object.defineProperty(oe,"CancellationStrategy",{enumerable:!0,get:function(){return on.CancellationStrategy}});var Avt=ws();oe.RAL=Avt.default});var Gl=m(ot=>{"use strict";var Pvt=ot&&ot.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Tvt=ot&&ot.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Pvt(e,t,r)};Object.defineProperty(ot,"__esModule",{value:!0});ot.createMessageConnection=ot.createServerSocketTransport=ot.createClientSocketTransport=ot.createServerPipeTransport=ot.createClientPipeTransport=ot.generateRandomPipeName=ot.StreamMessageWriter=ot.StreamMessageReader=ot.SocketMessageWriter=ot.SocketMessageReader=ot.IPCMessageWriter=ot.IPCMessageReader=void 0;var Vl=wge();Vl.default.install();var Hi=KI(),jge=H("path"),Mvt=H("os"),Lvt=H("crypto"),Gk=H("net");Tvt(KI(),ot);var YI=class extends Hi.AbstractMessageReader{constructor(e){super(),this.process=e;let r=this.process;r.on("error",n=>this.fireError(n)),r.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),Hi.Disposable.create(()=>this.process.off("message",e))}};ot.IPCMessageReader=YI;var QI=class extends Hi.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let r=this.process;r.on("error",n=>this.fireError(n)),r.on("close",()=>this.fireClose)}write(e){try{return typeof this.process.send=="function"&&this.process.send(e,void 0,void 0,r=>{r?(this.errorCount++,this.handleError(r,e)):this.errorCount=0}),Promise.resolve()}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,r){this.errorCount++,this.fireError(e,r,this.errorCount)}end(){}};ot.IPCMessageWriter=QI;var $a=class extends Hi.ReadableStreamMessageReader{constructor(e,r="utf-8"){super(Vl.default().stream.asReadableStream(e),r)}};ot.SocketMessageReader=$a;var Ba=class extends Hi.WriteableStreamMessageWriter{constructor(e,r){super(Vl.default().stream.asWritableStream(e),r),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}};ot.SocketMessageWriter=Ba;var Hk=class extends Hi.ReadableStreamMessageReader{constructor(e,r){super(Vl.default().stream.asReadableStream(e),r)}};ot.StreamMessageReader=Hk;var Vk=class extends Hi.WriteableStreamMessageWriter{constructor(e,r){super(Vl.default().stream.asWritableStream(e),r)}};ot.StreamMessageWriter=Vk;var $ge=process.env.XDG_RUNTIME_DIR,Fvt=new Map([["linux",107],["darwin",103]]);function Ivt(){let t=Lvt.randomBytes(21).toString("hex");if(process.platform==="win32")return`\\\\.\\pipe\\vscode-jsonrpc-${t}-sock`;let e;$ge?e=jge.join($ge,`vscode-ipc-${t}.sock`):e=jge.join(Mvt.tmpdir(),`vscode-${t}.sock`);let r=Fvt.get(process.platform);return r!==void 0&&e.length>=r&&Vl.default().console.warn(`WARNING: IPC handle "${e}" is longer than ${r} characters.`),e}ot.generateRandomPipeName=Ivt;function Nvt(t,e="utf-8"){let r,n=new Promise((i,s)=>{r=i});return new Promise((i,s)=>{let o=Gk.createServer(a=>{o.close(),r([new $a(a,e),new Ba(a,e)])});o.on("error",s),o.listen(t,()=>{o.removeListener("error",s),i({onConnected:()=>n})})})}ot.createClientPipeTransport=Nvt;function jvt(t,e="utf-8"){let r=Gk.createConnection(t);return[new $a(r,e),new Ba(r,e)]}ot.createServerPipeTransport=jvt;function $vt(t,e="utf-8"){let r,n=new Promise((i,s)=>{r=i});return new Promise((i,s)=>{let o=Gk.createServer(a=>{o.close(),r([new $a(a,e),new Ba(a,e)])});o.on("error",s),o.listen(t,"127.0.0.1",()=>{o.removeListener("error",s),i({onConnected:()=>n})})})}ot.createClientSocketTransport=$vt;function Bvt(t,e="utf-8"){let r=Gk.createConnection(t,"127.0.0.1");return[new $a(r,e),new Ba(r,e)]}ot.createServerSocketTransport=Bvt;function Wvt(t){let e=t;return e.read!==void 0&&e.addListener!==void 0}function zvt(t){let e=t;return e.write!==void 0&&e.addListener!==void 0}function Uvt(t,e,r,n){r||(r=Hi.NullLogger);let i=Wvt(t)?new Hk(t):t,s=zvt(e)?new Vk(e):e;return Hi.ConnectionStrategy.is(n)&&(n={connectionStrategy:n}),Hi.createMessageConnection(i,s,r,n)}ot.createMessageConnection=Uvt});var JI=m((K5t,Bge)=>{"use strict";Bge.exports=Gl()});var zge=m((Wge,Kk)=>{(function(t){if(typeof Kk=="object"&&typeof Kk.exports=="object"){var e=t(H,Wge);e!==void 0&&(Kk.exports=e)}else typeof define=="function"&&define.amd&&define(["require","exports"],t)})(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextDocument=e.EOL=e.SelectionRange=e.DocumentLink=e.FormattingOptions=e.CodeLens=e.CodeAction=e.CodeActionContext=e.CodeActionKind=e.DocumentSymbol=e.SymbolInformation=e.SymbolTag=e.SymbolKind=e.DocumentHighlight=e.DocumentHighlightKind=e.SignatureInformation=e.ParameterInformation=e.Hover=e.MarkedString=e.CompletionList=e.CompletionItem=e.InsertTextMode=e.InsertReplaceEdit=e.CompletionItemTag=e.InsertTextFormat=e.CompletionItemKind=e.MarkupContent=e.MarkupKind=e.TextDocumentItem=e.OptionalVersionedTextDocumentIdentifier=e.VersionedTextDocumentIdentifier=e.TextDocumentIdentifier=e.WorkspaceChange=e.WorkspaceEdit=e.DeleteFile=e.RenameFile=e.CreateFile=e.TextDocumentEdit=e.AnnotatedTextEdit=e.ChangeAnnotationIdentifier=e.ChangeAnnotation=e.TextEdit=e.Command=e.Diagnostic=e.CodeDescription=e.DiagnosticTag=e.DiagnosticSeverity=e.DiagnosticRelatedInformation=e.FoldingRange=e.FoldingRangeKind=e.ColorPresentation=e.ColorInformation=e.Color=e.LocationLink=e.Location=e.Range=e.Position=e.uinteger=e.integer=void 0;var r;(function(E){E.MIN_VALUE=-2147483648,E.MAX_VALUE=2147483647})(r=e.integer||(e.integer={}));var n;(function(E){E.MIN_VALUE=0,E.MAX_VALUE=2147483647})(n=e.uinteger||(e.uinteger={}));var i;(function(E){function T(D,k){return D===Number.MAX_VALUE&&(D=n.MAX_VALUE),k===Number.MAX_VALUE&&(k=n.MAX_VALUE),{line:D,character:k}}E.create=T;function W(D){var k=D;return P.objectLiteral(k)&&P.uinteger(k.line)&&P.uinteger(k.character)}E.is=W})(i=e.Position||(e.Position={}));var s;(function(E){function T(D,k,V,Q){if(P.uinteger(D)&&P.uinteger(k)&&P.uinteger(V)&&P.uinteger(Q))return{start:i.create(D,k),end:i.create(V,Q)};if(i.is(D)&&i.is(k))return{start:D,end:k};throw new Error("Range#create called with invalid arguments["+D+", "+k+", "+V+", "+Q+"]")}E.create=T;function W(D){var k=D;return P.objectLiteral(k)&&i.is(k.start)&&i.is(k.end)}E.is=W})(s=e.Range||(e.Range={}));var o;(function(E){function T(D,k){return{uri:D,range:k}}E.create=T;function W(D){var k=D;return P.defined(k)&&s.is(k.range)&&(P.string(k.uri)||P.undefined(k.uri))}E.is=W})(o=e.Location||(e.Location={}));var a;(function(E){function T(D,k,V,Q){return{targetUri:D,targetRange:k,targetSelectionRange:V,originSelectionRange:Q}}E.create=T;function W(D){var k=D;return P.defined(k)&&s.is(k.targetRange)&&P.string(k.targetUri)&&(s.is(k.targetSelectionRange)||P.undefined(k.targetSelectionRange))&&(s.is(k.originSelectionRange)||P.undefined(k.originSelectionRange))}E.is=W})(a=e.LocationLink||(e.LocationLink={}));var u;(function(E){function T(D,k,V,Q){return{red:D,green:k,blue:V,alpha:Q}}E.create=T;function W(D){var k=D;return P.numberRange(k.red,0,1)&&P.numberRange(k.green,0,1)&&P.numberRange(k.blue,0,1)&&P.numberRange(k.alpha,0,1)}E.is=W})(u=e.Color||(e.Color={}));var l;(function(E){function T(D,k){return{range:D,color:k}}E.create=T;function W(D){var k=D;return s.is(k.range)&&u.is(k.color)}E.is=W})(l=e.ColorInformation||(e.ColorInformation={}));var c;(function(E){function T(D,k,V){return{label:D,textEdit:k,additionalTextEdits:V}}E.create=T;function W(D){var k=D;return P.string(k.label)&&(P.undefined(k.textEdit)||w.is(k))&&(P.undefined(k.additionalTextEdits)||P.typedArray(k.additionalTextEdits,w.is))}E.is=W})(c=e.ColorPresentation||(e.ColorPresentation={}));var f;(function(E){E.Comment="comment",E.Imports="imports",E.Region="region"})(f=e.FoldingRangeKind||(e.FoldingRangeKind={}));var d;(function(E){function T(D,k,V,Q,be){var Oe={startLine:D,endLine:k};return P.defined(V)&&(Oe.startCharacter=V),P.defined(Q)&&(Oe.endCharacter=Q),P.defined(be)&&(Oe.kind=be),Oe}E.create=T;function W(D){var k=D;return P.uinteger(k.startLine)&&P.uinteger(k.startLine)&&(P.undefined(k.startCharacter)||P.uinteger(k.startCharacter))&&(P.undefined(k.endCharacter)||P.uinteger(k.endCharacter))&&(P.undefined(k.kind)||P.string(k.kind))}E.is=W})(d=e.FoldingRange||(e.FoldingRange={}));var p;(function(E){function T(D,k){return{location:D,message:k}}E.create=T;function W(D){var k=D;return P.defined(k)&&o.is(k.location)&&P.string(k.message)}E.is=W})(p=e.DiagnosticRelatedInformation||(e.DiagnosticRelatedInformation={}));var h;(function(E){E.Error=1,E.Warning=2,E.Information=3,E.Hint=4})(h=e.DiagnosticSeverity||(e.DiagnosticSeverity={}));var y;(function(E){E.Unnecessary=1,E.Deprecated=2})(y=e.DiagnosticTag||(e.DiagnosticTag={}));var v;(function(E){function T(W){var D=W;return D!=null&&P.string(D.href)}E.is=T})(v=e.CodeDescription||(e.CodeDescription={}));var g;(function(E){function T(D,k,V,Q,be,Oe){var Ve={range:D,message:k};return P.defined(V)&&(Ve.severity=V),P.defined(Q)&&(Ve.code=Q),P.defined(be)&&(Ve.source=be),P.defined(Oe)&&(Ve.relatedInformation=Oe),Ve}E.create=T;function W(D){var k,V=D;return P.defined(V)&&s.is(V.range)&&P.string(V.message)&&(P.number(V.severity)||P.undefined(V.severity))&&(P.integer(V.code)||P.string(V.code)||P.undefined(V.code))&&(P.undefined(V.codeDescription)||P.string((k=V.codeDescription)===null||k===void 0?void 0:k.href))&&(P.string(V.source)||P.undefined(V.source))&&(P.undefined(V.relatedInformation)||P.typedArray(V.relatedInformation,p.is))}E.is=W})(g=e.Diagnostic||(e.Diagnostic={}));var b;(function(E){function T(D,k){for(var V=[],Q=2;Q<arguments.length;Q++)V[Q-2]=arguments[Q];var be={title:D,command:k};return P.defined(V)&&V.length>0&&(be.arguments=V),be}E.create=T;function W(D){var k=D;return P.defined(k)&&P.string(k.title)&&P.string(k.command)}E.is=W})(b=e.Command||(e.Command={}));var w;(function(E){function T(V,Q){return{range:V,newText:Q}}E.replace=T;function W(V,Q){return{range:{start:V,end:V},newText:Q}}E.insert=W;function D(V){return{range:V,newText:""}}E.del=D;function k(V){var Q=V;return P.objectLiteral(Q)&&P.string(Q.newText)&&s.is(Q.range)}E.is=k})(w=e.TextEdit||(e.TextEdit={}));var _;(function(E){function T(D,k,V){var Q={label:D};return k!==void 0&&(Q.needsConfirmation=k),V!==void 0&&(Q.description=V),Q}E.create=T;function W(D){var k=D;return k!==void 0&&P.objectLiteral(k)&&P.string(k.label)&&(P.boolean(k.needsConfirmation)||k.needsConfirmation===void 0)&&(P.string(k.description)||k.description===void 0)}E.is=W})(_=e.ChangeAnnotation||(e.ChangeAnnotation={}));var S;(function(E){function T(W){var D=W;return typeof D=="string"}E.is=T})(S=e.ChangeAnnotationIdentifier||(e.ChangeAnnotationIdentifier={}));var q;(function(E){function T(V,Q,be){return{range:V,newText:Q,annotationId:be}}E.replace=T;function W(V,Q,be){return{range:{start:V,end:V},newText:Q,annotationId:be}}E.insert=W;function D(V,Q){return{range:V,newText:"",annotationId:Q}}E.del=D;function k(V){var Q=V;return w.is(Q)&&(_.is(Q.annotationId)||S.is(Q.annotationId))}E.is=k})(q=e.AnnotatedTextEdit||(e.AnnotatedTextEdit={}));var C;(function(E){function T(D,k){return{textDocument:D,edits:k}}E.create=T;function W(D){var k=D;return P.defined(k)&&ae.is(k.textDocument)&&Array.isArray(k.edits)}E.is=W})(C=e.TextDocumentEdit||(e.TextDocumentEdit={}));var R;(function(E){function T(D,k,V){var Q={kind:"create",uri:D};return k!==void 0&&(k.overwrite!==void 0||k.ignoreIfExists!==void 0)&&(Q.options=k),V!==void 0&&(Q.annotationId=V),Q}E.create=T;function W(D){var k=D;return k&&k.kind==="create"&&P.string(k.uri)&&(k.options===void 0||(k.options.overwrite===void 0||P.boolean(k.options.overwrite))&&(k.options.ignoreIfExists===void 0||P.boolean(k.options.ignoreIfExists)))&&(k.annotationId===void 0||S.is(k.annotationId))}E.is=W})(R=e.CreateFile||(e.CreateFile={}));var O;(function(E){function T(D,k,V,Q){var be={kind:"rename",oldUri:D,newUri:k};return V!==void 0&&(V.overwrite!==void 0||V.ignoreIfExists!==void 0)&&(be.options=V),Q!==void 0&&(be.annotationId=Q),be}E.create=T;function W(D){var k=D;return k&&k.kind==="rename"&&P.string(k.oldUri)&&P.string(k.newUri)&&(k.options===void 0||(k.options.overwrite===void 0||P.boolean(k.options.overwrite))&&(k.options.ignoreIfExists===void 0||P.boolean(k.options.ignoreIfExists)))&&(k.annotationId===void 0||S.is(k.annotationId))}E.is=W})(O=e.RenameFile||(e.RenameFile={}));var z;(function(E){function T(D,k,V){var Q={kind:"delete",uri:D};return k!==void 0&&(k.recursive!==void 0||k.ignoreIfNotExists!==void 0)&&(Q.options=k),V!==void 0&&(Q.annotationId=V),Q}E.create=T;function W(D){var k=D;return k&&k.kind==="delete"&&P.string(k.uri)&&(k.options===void 0||(k.options.recursive===void 0||P.boolean(k.options.recursive))&&(k.options.ignoreIfNotExists===void 0||P.boolean(k.options.ignoreIfNotExists)))&&(k.annotationId===void 0||S.is(k.annotationId))}E.is=W})(z=e.DeleteFile||(e.DeleteFile={}));var F;(function(E){function T(W){var D=W;return D&&(D.changes!==void 0||D.documentChanges!==void 0)&&(D.documentChanges===void 0||D.documentChanges.every(function(k){return P.string(k.kind)?R.is(k)||O.is(k)||z.is(k):C.is(k)}))}E.is=T})(F=e.WorkspaceEdit||(e.WorkspaceEdit={}));var te=function(){function E(T,W){this.edits=T,this.changeAnnotations=W}return E.prototype.insert=function(T,W,D){var k,V;if(D===void 0?k=w.insert(T,W):S.is(D)?(V=D,k=q.insert(T,W,D)):(this.assertChangeAnnotations(this.changeAnnotations),V=this.changeAnnotations.manage(D),k=q.insert(T,W,V)),this.edits.push(k),V!==void 0)return V},E.prototype.replace=function(T,W,D){var k,V;if(D===void 0?k=w.replace(T,W):S.is(D)?(V=D,k=q.replace(T,W,D)):(this.assertChangeAnnotations(this.changeAnnotations),V=this.changeAnnotations.manage(D),k=q.replace(T,W,V)),this.edits.push(k),V!==void 0)return V},E.prototype.delete=function(T,W){var D,k;if(W===void 0?D=w.del(T):S.is(W)?(k=W,D=q.del(T,W)):(this.assertChangeAnnotations(this.changeAnnotations),k=this.changeAnnotations.manage(W),D=q.del(T,k)),this.edits.push(D),k!==void 0)return k},E.prototype.add=function(T){this.edits.push(T)},E.prototype.all=function(){return this.edits},E.prototype.clear=function(){this.edits.splice(0,this.edits.length)},E.prototype.assertChangeAnnotations=function(T){if(T===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},E}(),K=function(){function E(T){this._annotations=T===void 0?Object.create(null):T,this._counter=0,this._size=0}return E.prototype.all=function(){return this._annotations},Object.defineProperty(E.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),E.prototype.manage=function(T,W){var D;if(S.is(T)?D=T:(D=this.nextId(),W=T),this._annotations[D]!==void 0)throw new Error("Id "+D+" is already in use.");if(W===void 0)throw new Error("No annotation provided for id "+D);return this._annotations[D]=W,this._size++,D},E.prototype.nextId=function(){return this._counter++,this._counter.toString()},E}(),ue=function(){function E(T){var W=this;this._textEditChanges=Object.create(null),T!==void 0?(this._workspaceEdit=T,T.documentChanges?(this._changeAnnotations=new K(T.changeAnnotations),T.changeAnnotations=this._changeAnnotations.all(),T.documentChanges.forEach(function(D){if(C.is(D)){var k=new te(D.edits,W._changeAnnotations);W._textEditChanges[D.textDocument.uri]=k}})):T.changes&&Object.keys(T.changes).forEach(function(D){var k=new te(T.changes[D]);W._textEditChanges[D]=k})):this._workspaceEdit={}}return Object.defineProperty(E.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),E.prototype.getTextEditChange=function(T){if(ae.is(T)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var W={uri:T.uri,version:T.version},D=this._textEditChanges[W.uri];if(!D){var k=[],V={textDocument:W,edits:k};this._workspaceEdit.documentChanges.push(V),D=new te(k,this._changeAnnotations),this._textEditChanges[W.uri]=D}return D}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var D=this._textEditChanges[T];if(!D){var k=[];this._workspaceEdit.changes[T]=k,D=new te(k),this._textEditChanges[T]=D}return D}},E.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new K,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},E.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},E.prototype.createFile=function(T,W,D){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var k;_.is(W)||S.is(W)?k=W:D=W;var V,Q;if(k===void 0?V=R.create(T,D):(Q=S.is(k)?k:this._changeAnnotations.manage(k),V=R.create(T,D,Q)),this._workspaceEdit.documentChanges.push(V),Q!==void 0)return Q},E.prototype.renameFile=function(T,W,D,k){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var V;_.is(D)||S.is(D)?V=D:k=D;var Q,be;if(V===void 0?Q=O.create(T,W,k):(be=S.is(V)?V:this._changeAnnotations.manage(V),Q=O.create(T,W,k,be)),this._workspaceEdit.documentChanges.push(Q),be!==void 0)return be},E.prototype.deleteFile=function(T,W,D){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var k;_.is(W)||S.is(W)?k=W:D=W;var V,Q;if(k===void 0?V=z.create(T,D):(Q=S.is(k)?k:this._changeAnnotations.manage(k),V=z.create(T,D,Q)),this._workspaceEdit.documentChanges.push(V),Q!==void 0)return Q},E}();e.WorkspaceChange=ue;var L;(function(E){function T(D){return{uri:D}}E.create=T;function W(D){var k=D;return P.defined(k)&&P.string(k.uri)}E.is=W})(L=e.TextDocumentIdentifier||(e.TextDocumentIdentifier={}));var M;(function(E){function T(D,k){return{uri:D,version:k}}E.create=T;function W(D){var k=D;return P.defined(k)&&P.string(k.uri)&&P.integer(k.version)}E.is=W})(M=e.VersionedTextDocumentIdentifier||(e.VersionedTextDocumentIdentifier={}));var ae;(function(E){function T(D,k){return{uri:D,version:k}}E.create=T;function W(D){var k=D;return P.defined(k)&&P.string(k.uri)&&(k.version===null||P.integer(k.version))}E.is=W})(ae=e.OptionalVersionedTextDocumentIdentifier||(e.OptionalVersionedTextDocumentIdentifier={}));var ne;(function(E){function T(D,k,V,Q){return{uri:D,languageId:k,version:V,text:Q}}E.create=T;function W(D){var k=D;return P.defined(k)&&P.string(k.uri)&&P.string(k.languageId)&&P.integer(k.version)&&P.string(k.text)}E.is=W})(ne=e.TextDocumentItem||(e.TextDocumentItem={}));var de;(function(E){E.PlainText="plaintext",E.Markdown="markdown"})(de=e.MarkupKind||(e.MarkupKind={})),function(E){function T(W){var D=W;return D===E.PlainText||D===E.Markdown}E.is=T}(de=e.MarkupKind||(e.MarkupKind={}));var le;(function(E){function T(W){var D=W;return P.objectLiteral(W)&&de.is(D.kind)&&P.string(D.value)}E.is=T})(le=e.MarkupContent||(e.MarkupContent={}));var se;(function(E){E.Text=1,E.Method=2,E.Function=3,E.Constructor=4,E.Field=5,E.Variable=6,E.Class=7,E.Interface=8,E.Module=9,E.Property=10,E.Unit=11,E.Value=12,E.Enum=13,E.Keyword=14,E.Snippet=15,E.Color=16,E.File=17,E.Reference=18,E.Folder=19,E.EnumMember=20,E.Constant=21,E.Struct=22,E.Event=23,E.Operator=24,E.TypeParameter=25})(se=e.CompletionItemKind||(e.CompletionItemKind={}));var he;(function(E){E.PlainText=1,E.Snippet=2})(he=e.InsertTextFormat||(e.InsertTextFormat={}));var we;(function(E){E.Deprecated=1})(we=e.CompletionItemTag||(e.CompletionItemTag={}));var De;(function(E){function T(D,k,V){return{newText:D,insert:k,replace:V}}E.create=T;function W(D){var k=D;return k&&P.string(k.newText)&&s.is(k.insert)&&s.is(k.replace)}E.is=W})(De=e.InsertReplaceEdit||(e.InsertReplaceEdit={}));var Je;(function(E){E.asIs=1,E.adjustIndentation=2})(Je=e.InsertTextMode||(e.InsertTextMode={}));var ve;(function(E){function T(W){return{label:W}}E.create=T})(ve=e.CompletionItem||(e.CompletionItem={}));var Ct;(function(E){function T(W,D){return{items:W||[],isIncomplete:!!D}}E.create=T})(Ct=e.CompletionList||(e.CompletionList={}));var dt;(function(E){function T(D){return D.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}E.fromPlainText=T;function W(D){var k=D;return P.string(k)||P.objectLiteral(k)&&P.string(k.language)&&P.string(k.value)}E.is=W})(dt=e.MarkedString||(e.MarkedString={}));var pe;(function(E){function T(W){var D=W;return!!D&&P.objectLiteral(D)&&(le.is(D.contents)||dt.is(D.contents)||P.typedArray(D.contents,dt.is))&&(W.range===void 0||s.is(W.range))}E.is=T})(pe=e.Hover||(e.Hover={}));var ce;(function(E){function T(W,D){return D?{label:W,documentation:D}:{label:W}}E.create=T})(ce=e.ParameterInformation||(e.ParameterInformation={}));var ie;(function(E){function T(W,D){for(var k=[],V=2;V<arguments.length;V++)k[V-2]=arguments[V];var Q={label:W};return P.defined(D)&&(Q.documentation=D),P.defined(k)?Q.parameters=k:Q.parameters=[],Q}E.create=T})(ie=e.SignatureInformation||(e.SignatureInformation={}));var Fe;(function(E){E.Text=1,E.Read=2,E.Write=3})(Fe=e.DocumentHighlightKind||(e.DocumentHighlightKind={}));var at;(function(E){function T(W,D){var k={range:W};return P.number(D)&&(k.kind=D),k}E.create=T})(at=e.DocumentHighlight||(e.DocumentHighlight={}));var zt;(function(E){E.File=1,E.Module=2,E.Namespace=3,E.Package=4,E.Class=5,E.Method=6,E.Property=7,E.Field=8,E.Constructor=9,E.Enum=10,E.Interface=11,E.Function=12,E.Variable=13,E.Constant=14,E.String=15,E.Number=16,E.Boolean=17,E.Array=18,E.Object=19,E.Key=20,E.Null=21,E.EnumMember=22,E.Struct=23,E.Event=24,E.Operator=25,E.TypeParameter=26})(zt=e.SymbolKind||(e.SymbolKind={}));var $t;(function(E){E.Deprecated=1})($t=e.SymbolTag||(e.SymbolTag={}));var Rn;(function(E){function T(W,D,k,V,Q){var be={name:W,kind:D,location:{uri:V,range:k}};return Q&&(be.containerName=Q),be}E.create=T})(Rn=e.SymbolInformation||(e.SymbolInformation={}));var An;(function(E){function T(D,k,V,Q,be,Oe){var Ve={name:D,detail:k,kind:V,range:Q,selectionRange:be};return Oe!==void 0&&(Ve.children=Oe),Ve}E.create=T;function W(D){var k=D;return k&&P.string(k.name)&&P.number(k.kind)&&s.is(k.range)&&s.is(k.selectionRange)&&(k.detail===void 0||P.string(k.detail))&&(k.deprecated===void 0||P.boolean(k.deprecated))&&(k.children===void 0||Array.isArray(k.children))&&(k.tags===void 0||Array.isArray(k.tags))}E.is=W})(An=e.DocumentSymbol||(e.DocumentSymbol={}));var NE;(function(E){E.Empty="",E.QuickFix="quickfix",E.Refactor="refactor",E.RefactorExtract="refactor.extract",E.RefactorInline="refactor.inline",E.RefactorRewrite="refactor.rewrite",E.Source="source",E.SourceOrganizeImports="source.organizeImports",E.SourceFixAll="source.fixAll"})(NE=e.CodeActionKind||(e.CodeActionKind={}));var jE;(function(E){function T(D,k){var V={diagnostics:D};return k!=null&&(V.only=k),V}E.create=T;function W(D){var k=D;return P.defined(k)&&P.typedArray(k.diagnostics,g.is)&&(k.only===void 0||P.typedArray(k.only,P.string))}E.is=W})(jE=e.CodeActionContext||(e.CodeActionContext={}));var Co;(function(E){function T(D,k,V){var Q={title:D},be=!0;return typeof k=="string"?(be=!1,Q.kind=k):b.is(k)?Q.command=k:Q.edit=k,be&&V!==void 0&&(Q.kind=V),Q}E.create=T;function W(D){var k=D;return k&&P.string(k.title)&&(k.diagnostics===void 0||P.typedArray(k.diagnostics,g.is))&&(k.kind===void 0||P.string(k.kind))&&(k.edit!==void 0||k.command!==void 0)&&(k.command===void 0||b.is(k.command))&&(k.isPreferred===void 0||P.boolean(k.isPreferred))&&(k.edit===void 0||F.is(k.edit))}E.is=W})(Co=e.CodeAction||(e.CodeAction={}));var ah;(function(E){function T(D,k){var V={range:D};return P.defined(k)&&(V.data=k),V}E.create=T;function W(D){var k=D;return P.defined(k)&&s.is(k.range)&&(P.undefined(k.command)||b.is(k.command))}E.is=W})(ah=e.CodeLens||(e.CodeLens={}));var uh;(function(E){function T(D,k){return{tabSize:D,insertSpaces:k}}E.create=T;function W(D){var k=D;return P.defined(k)&&P.uinteger(k.tabSize)&&P.boolean(k.insertSpaces)}E.is=W})(uh=e.FormattingOptions||(e.FormattingOptions={}));var tc;(function(E){function T(D,k,V){return{range:D,target:k,data:V}}E.create=T;function W(D){var k=D;return P.defined(k)&&s.is(k.range)&&(P.undefined(k.target)||P.string(k.target))}E.is=W})(tc=e.DocumentLink||(e.DocumentLink={}));var lh;(function(E){function T(D,k){return{range:D,parent:k}}E.create=T;function W(D){var k=D;return k!==void 0&&s.is(k.range)&&(k.parent===void 0||E.is(k.parent))}E.is=W})(lh=e.SelectionRange||(e.SelectionRange={})),e.EOL=[`
|
|
422
|
+
`)),P){let T=I.error?` Request failed: ${I.error.message} (${I.error.code}).`:"";_.log(`Received response '${P.method} - (${I.id})' in ${Date.now()-P.timerStart}ms.${T}`,E)}else _.log(`Received response ${I.id} without active response promise.`,E)}else Rn("receive-response",I)}function Rn(I,P){if(!_||b===er.Off)return;let E={isLSPMessage:!0,type:I,message:P,timestamp:Date.now()};_.log(E)}function An(){if(ne())throw new ho(zk.Closed,"Connection is closed.");if(de())throw new ho(zk.Disposed,"Connection is disposed.")}function NE(){if(ae())throw new ho(zk.AlreadyListening,"Connection is already listening")}function jE(){if(!ae())throw new Error("Call listen() first.")}function Co(I){return I===void 0?null:I}function ah(I){if(I!==null)return I}function uh(I){return I!=null&&!Array.isArray(I)&&typeof I=="object"}function tc(I,P){switch(I){case Ne.ParameterStructures.auto:return uh(P)?ah(P):[Co(P)];case Ne.ParameterStructures.byName:if(!uh(P))throw new Error("Recevied parameters by name but param is not an object literal.");return ah(P);case Ne.ParameterStructures.byPosition:return[Co(P)];default:throw new Error(`Unknown parameter structure ${I.toString()}`)}}function lh(I,P){let E,T=I.numberOfParams;switch(T){case 0:E=void 0;break;case 1:E=tc(I.parameterStructures,P[0]);break;default:E=[];for(let W=0;W<P.length&&W<T;W++)E.push(Co(P[W]));if(P.length<T)for(let W=P.length;W<T;W++)E.push(null);break}return E}let Ds={sendNotification:(I,...P)=>{An();let E,T;if(mr.string(I)){E=I;let D=P[0],k=0,V=Ne.ParameterStructures.auto;Ne.ParameterStructures.is(D)&&(k=1,V=D);let Q=P.length,be=Q-k;switch(be){case 0:T=void 0;break;case 1:T=tc(V,P[k]);break;default:if(V===Ne.ParameterStructures.byName)throw new Error(`Recevied ${be} parameters for 'by Name' notification parameter structure.`);T=P.slice(k,Q).map(Oe=>Co(Oe));break}}else{let D=P;E=I.method,T=lh(I,D)}let W={jsonrpc:u,method:E,params:T};ie(W),e.write(W)},onNotification:(I,P)=>{An();let E;return mr.func(I)?f=I:P&&(mr.string(I)?(E=I,d[I]={type:void 0,handler:P}):(E=I.method,d[I.method]={type:I,handler:P})),{dispose:()=>{E!==void 0?delete d[E]:f=void 0}}},onProgress:(I,P,E)=>{if(p.has(P))throw new Error(`Progress handler for token ${P} already registered`);return p.set(P,E),{dispose:()=>{p.delete(P)}}},sendProgress:(I,P,E)=>{Ds.sendNotification(Uk.type,{token:P,value:E})},onUnhandledProgress:O.event,sendRequest:(I,...P)=>{An(),jE();let E,T,W;if(mr.string(I)){E=I;let Q=P[0],be=P[P.length-1],Oe=0,Ve=Ne.ParameterStructures.auto;Ne.ParameterStructures.is(Q)&&(Oe=1,Ve=Q);let bt=P.length;jI.CancellationToken.is(be)&&(bt=bt-1,W=be);let rr=bt-Oe;switch(rr){case 0:T=void 0;break;case 1:T=tc(Ve,P[Oe]);break;default:if(Ve===Ne.ParameterStructures.byName)throw new Error(`Recevied ${rr} parameters for 'by Name' request parameter structure.`);T=P.slice(Oe,bt).map(or=>Co(or));break}}else{let Q=P;E=I.method,T=lh(I,Q);let be=I.numberOfParams;W=jI.CancellationToken.is(Q[be])?Q[be]:void 0}let D=s++,k;return W&&(k=W.onCancellationRequested(()=>{F.sender.sendCancellation(Ds,D)})),new Promise((Q,be)=>{let Oe={jsonrpc:u,id:D,method:E,params:T},Ve=or=>{Q(or),F.sender.cleanup(D),k?.dispose()},bt=or=>{be(or),F.sender.cleanup(D),k?.dispose()},rr={method:E,timerStart:Date.now(),resolve:Ve,reject:bt};ce(Oe);try{e.write(Oe)}catch(or){rr.reject(new Ne.ResponseError(Ne.ErrorCodes.MessageWriteError,or.message?or.message:"Unknown reason")),rr=null}rr&&(v[String(D)]=rr)})},onRequest:(I,P)=>{An();let E=null;return BI.is(I)?(E=void 0,l=I):mr.string(I)?(E=null,P!==void 0&&(E=I,c[I]={handler:P,type:void 0})):P!==void 0&&(E=I.method,c[I.method]={type:I,handler:P}),{dispose:()=>{E!==null&&(E!==void 0?delete c[E]:l=void 0)}}},trace:(I,P,E)=>{let T=!1,W=di.Text;E!==void 0&&(mr.boolean(E)?T=E:(T=E.sendNotification||!1,W=E.traceFormat||di.Text)),b=I,w=W,b===er.Off?_=void 0:_=P,T&&!ne()&&!de()&&Ds.sendNotification(Mge.type,{value:er.toString(I)})},onError:q.event,onClose:C.event,onUnhandledNotification:R.event,onDispose:z.event,end:()=>{e.end()},dispose:()=>{if(de())return;S=pi.Disposed,z.fire(void 0);let I=new Error("Connection got disposed.");Object.keys(v).forEach(P=>{v[P].reject(I)}),v=Object.create(null),g=Object.create(null),y=new Tge.LinkedMap,mr.func(e.dispose)&&e.dispose(),mr.func(t.dispose)&&t.dispose()},listen:()=>{An(),NE(),S=pi.Listening,t.listen(Je)},inspect:()=>{Pge.default().console.log("inspect")}};return Ds.onNotification(WI.type,I=>{b===er.Off||!_||_.log(I.message,b===er.Verbose?I.verbose:void 0)}),Ds.onNotification(Uk.type,I=>{let P=p.get(I.token);P?P(I.value):O.fire(I)}),Ds}We.createMessageConnection=qvt});var KI=m(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.CancellationSenderStrategy=oe.CancellationReceiverStrategy=oe.ConnectionError=oe.ConnectionErrors=oe.LogTraceNotification=oe.SetTraceNotification=oe.TraceFormat=oe.Trace=oe.ProgressType=oe.createMessageConnection=oe.NullLogger=oe.ConnectionOptions=oe.ConnectionStrategy=oe.WriteableStreamMessageWriter=oe.AbstractMessageWriter=oe.MessageWriter=oe.ReadableStreamMessageReader=oe.AbstractMessageReader=oe.MessageReader=oe.CancellationToken=oe.CancellationTokenSource=oe.Emitter=oe.Event=oe.Disposable=oe.ParameterStructures=oe.NotificationType9=oe.NotificationType8=oe.NotificationType7=oe.NotificationType6=oe.NotificationType5=oe.NotificationType4=oe.NotificationType3=oe.NotificationType2=oe.NotificationType1=oe.NotificationType0=oe.NotificationType=oe.ErrorCodes=oe.ResponseError=oe.RequestType9=oe.RequestType8=oe.RequestType7=oe.RequestType6=oe.RequestType5=oe.RequestType4=oe.RequestType3=oe.RequestType2=oe.RequestType1=oe.RequestType0=oe.RequestType=oe.RAL=void 0;oe.CancellationStrategy=void 0;var Et=CI();Object.defineProperty(oe,"RequestType",{enumerable:!0,get:function(){return Et.RequestType}});Object.defineProperty(oe,"RequestType0",{enumerable:!0,get:function(){return Et.RequestType0}});Object.defineProperty(oe,"RequestType1",{enumerable:!0,get:function(){return Et.RequestType1}});Object.defineProperty(oe,"RequestType2",{enumerable:!0,get:function(){return Et.RequestType2}});Object.defineProperty(oe,"RequestType3",{enumerable:!0,get:function(){return Et.RequestType3}});Object.defineProperty(oe,"RequestType4",{enumerable:!0,get:function(){return Et.RequestType4}});Object.defineProperty(oe,"RequestType5",{enumerable:!0,get:function(){return Et.RequestType5}});Object.defineProperty(oe,"RequestType6",{enumerable:!0,get:function(){return Et.RequestType6}});Object.defineProperty(oe,"RequestType7",{enumerable:!0,get:function(){return Et.RequestType7}});Object.defineProperty(oe,"RequestType8",{enumerable:!0,get:function(){return Et.RequestType8}});Object.defineProperty(oe,"RequestType9",{enumerable:!0,get:function(){return Et.RequestType9}});Object.defineProperty(oe,"ResponseError",{enumerable:!0,get:function(){return Et.ResponseError}});Object.defineProperty(oe,"ErrorCodes",{enumerable:!0,get:function(){return Et.ErrorCodes}});Object.defineProperty(oe,"NotificationType",{enumerable:!0,get:function(){return Et.NotificationType}});Object.defineProperty(oe,"NotificationType0",{enumerable:!0,get:function(){return Et.NotificationType0}});Object.defineProperty(oe,"NotificationType1",{enumerable:!0,get:function(){return Et.NotificationType1}});Object.defineProperty(oe,"NotificationType2",{enumerable:!0,get:function(){return Et.NotificationType2}});Object.defineProperty(oe,"NotificationType3",{enumerable:!0,get:function(){return Et.NotificationType3}});Object.defineProperty(oe,"NotificationType4",{enumerable:!0,get:function(){return Et.NotificationType4}});Object.defineProperty(oe,"NotificationType5",{enumerable:!0,get:function(){return Et.NotificationType5}});Object.defineProperty(oe,"NotificationType6",{enumerable:!0,get:function(){return Et.NotificationType6}});Object.defineProperty(oe,"NotificationType7",{enumerable:!0,get:function(){return Et.NotificationType7}});Object.defineProperty(oe,"NotificationType8",{enumerable:!0,get:function(){return Et.NotificationType8}});Object.defineProperty(oe,"NotificationType9",{enumerable:!0,get:function(){return Et.NotificationType9}});Object.defineProperty(oe,"ParameterStructures",{enumerable:!0,get:function(){return Et.ParameterStructures}});var Rvt=XF();Object.defineProperty(oe,"Disposable",{enumerable:!0,get:function(){return Rvt.Disposable}});var Ige=Ul();Object.defineProperty(oe,"Event",{enumerable:!0,get:function(){return Ige.Event}});Object.defineProperty(oe,"Emitter",{enumerable:!0,get:function(){return Ige.Emitter}});var Nge=AI();Object.defineProperty(oe,"CancellationTokenSource",{enumerable:!0,get:function(){return Nge.CancellationTokenSource}});Object.defineProperty(oe,"CancellationToken",{enumerable:!0,get:function(){return Nge.CancellationToken}});var VI=Ege();Object.defineProperty(oe,"MessageReader",{enumerable:!0,get:function(){return VI.MessageReader}});Object.defineProperty(oe,"AbstractMessageReader",{enumerable:!0,get:function(){return VI.AbstractMessageReader}});Object.defineProperty(oe,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return VI.ReadableStreamMessageReader}});var GI=Rge();Object.defineProperty(oe,"MessageWriter",{enumerable:!0,get:function(){return GI.MessageWriter}});Object.defineProperty(oe,"AbstractMessageWriter",{enumerable:!0,get:function(){return GI.AbstractMessageWriter}});Object.defineProperty(oe,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return GI.WriteableStreamMessageWriter}});var on=Fge();Object.defineProperty(oe,"ConnectionStrategy",{enumerable:!0,get:function(){return on.ConnectionStrategy}});Object.defineProperty(oe,"ConnectionOptions",{enumerable:!0,get:function(){return on.ConnectionOptions}});Object.defineProperty(oe,"NullLogger",{enumerable:!0,get:function(){return on.NullLogger}});Object.defineProperty(oe,"createMessageConnection",{enumerable:!0,get:function(){return on.createMessageConnection}});Object.defineProperty(oe,"ProgressType",{enumerable:!0,get:function(){return on.ProgressType}});Object.defineProperty(oe,"Trace",{enumerable:!0,get:function(){return on.Trace}});Object.defineProperty(oe,"TraceFormat",{enumerable:!0,get:function(){return on.TraceFormat}});Object.defineProperty(oe,"SetTraceNotification",{enumerable:!0,get:function(){return on.SetTraceNotification}});Object.defineProperty(oe,"LogTraceNotification",{enumerable:!0,get:function(){return on.LogTraceNotification}});Object.defineProperty(oe,"ConnectionErrors",{enumerable:!0,get:function(){return on.ConnectionErrors}});Object.defineProperty(oe,"ConnectionError",{enumerable:!0,get:function(){return on.ConnectionError}});Object.defineProperty(oe,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return on.CancellationReceiverStrategy}});Object.defineProperty(oe,"CancellationSenderStrategy",{enumerable:!0,get:function(){return on.CancellationSenderStrategy}});Object.defineProperty(oe,"CancellationStrategy",{enumerable:!0,get:function(){return on.CancellationStrategy}});var Avt=ws();oe.RAL=Avt.default});var Gl=m(ot=>{"use strict";var Pvt=ot&&ot.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Tvt=ot&&ot.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Pvt(e,t,r)};Object.defineProperty(ot,"__esModule",{value:!0});ot.createMessageConnection=ot.createServerSocketTransport=ot.createClientSocketTransport=ot.createServerPipeTransport=ot.createClientPipeTransport=ot.generateRandomPipeName=ot.StreamMessageWriter=ot.StreamMessageReader=ot.SocketMessageWriter=ot.SocketMessageReader=ot.IPCMessageWriter=ot.IPCMessageReader=void 0;var Vl=wge();Vl.default.install();var Hi=KI(),jge=H("path"),Mvt=H("os"),Lvt=H("crypto"),Gk=H("net");Tvt(KI(),ot);var YI=class extends Hi.AbstractMessageReader{constructor(e){super(),this.process=e;let r=this.process;r.on("error",n=>this.fireError(n)),r.on("close",()=>this.fireClose())}listen(e){return this.process.on("message",e),Hi.Disposable.create(()=>this.process.off("message",e))}};ot.IPCMessageReader=YI;var QI=class extends Hi.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let r=this.process;r.on("error",n=>this.fireError(n)),r.on("close",()=>this.fireClose)}write(e){try{return typeof this.process.send=="function"&&this.process.send(e,void 0,void 0,r=>{r?(this.errorCount++,this.handleError(r,e)):this.errorCount=0}),Promise.resolve()}catch(r){return this.handleError(r,e),Promise.reject(r)}}handleError(e,r){this.errorCount++,this.fireError(e,r,this.errorCount)}end(){}};ot.IPCMessageWriter=QI;var $a=class extends Hi.ReadableStreamMessageReader{constructor(e,r="utf-8"){super(Vl.default().stream.asReadableStream(e),r)}};ot.SocketMessageReader=$a;var Ba=class extends Hi.WriteableStreamMessageWriter{constructor(e,r){super(Vl.default().stream.asWritableStream(e),r),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}};ot.SocketMessageWriter=Ba;var Hk=class extends Hi.ReadableStreamMessageReader{constructor(e,r){super(Vl.default().stream.asReadableStream(e),r)}};ot.StreamMessageReader=Hk;var Vk=class extends Hi.WriteableStreamMessageWriter{constructor(e,r){super(Vl.default().stream.asWritableStream(e),r)}};ot.StreamMessageWriter=Vk;var $ge=process.env.XDG_RUNTIME_DIR,Fvt=new Map([["linux",107],["darwin",103]]);function Ivt(){let t=Lvt.randomBytes(21).toString("hex");if(process.platform==="win32")return`\\\\.\\pipe\\vscode-jsonrpc-${t}-sock`;let e;$ge?e=jge.join($ge,`vscode-ipc-${t}.sock`):e=jge.join(Mvt.tmpdir(),`vscode-${t}.sock`);let r=Fvt.get(process.platform);return r!==void 0&&e.length>=r&&Vl.default().console.warn(`WARNING: IPC handle "${e}" is longer than ${r} characters.`),e}ot.generateRandomPipeName=Ivt;function Nvt(t,e="utf-8"){let r,n=new Promise((i,s)=>{r=i});return new Promise((i,s)=>{let o=Gk.createServer(a=>{o.close(),r([new $a(a,e),new Ba(a,e)])});o.on("error",s),o.listen(t,()=>{o.removeListener("error",s),i({onConnected:()=>n})})})}ot.createClientPipeTransport=Nvt;function jvt(t,e="utf-8"){let r=Gk.createConnection(t);return[new $a(r,e),new Ba(r,e)]}ot.createServerPipeTransport=jvt;function $vt(t,e="utf-8"){let r,n=new Promise((i,s)=>{r=i});return new Promise((i,s)=>{let o=Gk.createServer(a=>{o.close(),r([new $a(a,e),new Ba(a,e)])});o.on("error",s),o.listen(t,"127.0.0.1",()=>{o.removeListener("error",s),i({onConnected:()=>n})})})}ot.createClientSocketTransport=$vt;function Bvt(t,e="utf-8"){let r=Gk.createConnection(t,"127.0.0.1");return[new $a(r,e),new Ba(r,e)]}ot.createServerSocketTransport=Bvt;function Wvt(t){let e=t;return e.read!==void 0&&e.addListener!==void 0}function zvt(t){let e=t;return e.write!==void 0&&e.addListener!==void 0}function Uvt(t,e,r,n){r||(r=Hi.NullLogger);let i=Wvt(t)?new Hk(t):t,s=zvt(e)?new Vk(e):e;return Hi.ConnectionStrategy.is(n)&&(n={connectionStrategy:n}),Hi.createMessageConnection(i,s,r,n)}ot.createMessageConnection=Uvt});var JI=m((K5t,Bge)=>{"use strict";Bge.exports=Gl()});var zge=m((Wge,Kk)=>{(function(t){if(typeof Kk=="object"&&typeof Kk.exports=="object"){var e=t(H,Wge);e!==void 0&&(Kk.exports=e)}else typeof define=="function"&&define.amd&&define(["require","exports"],t)})(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextDocument=e.EOL=e.SelectionRange=e.DocumentLink=e.FormattingOptions=e.CodeLens=e.CodeAction=e.CodeActionContext=e.CodeActionKind=e.DocumentSymbol=e.SymbolInformation=e.SymbolTag=e.SymbolKind=e.DocumentHighlight=e.DocumentHighlightKind=e.SignatureInformation=e.ParameterInformation=e.Hover=e.MarkedString=e.CompletionList=e.CompletionItem=e.InsertTextMode=e.InsertReplaceEdit=e.CompletionItemTag=e.InsertTextFormat=e.CompletionItemKind=e.MarkupContent=e.MarkupKind=e.TextDocumentItem=e.OptionalVersionedTextDocumentIdentifier=e.VersionedTextDocumentIdentifier=e.TextDocumentIdentifier=e.WorkspaceChange=e.WorkspaceEdit=e.DeleteFile=e.RenameFile=e.CreateFile=e.TextDocumentEdit=e.AnnotatedTextEdit=e.ChangeAnnotationIdentifier=e.ChangeAnnotation=e.TextEdit=e.Command=e.Diagnostic=e.CodeDescription=e.DiagnosticTag=e.DiagnosticSeverity=e.DiagnosticRelatedInformation=e.FoldingRange=e.FoldingRangeKind=e.ColorPresentation=e.ColorInformation=e.Color=e.LocationLink=e.Location=e.Range=e.Position=e.uinteger=e.integer=void 0;var r;(function(E){E.MIN_VALUE=-2147483648,E.MAX_VALUE=2147483647})(r=e.integer||(e.integer={}));var n;(function(E){E.MIN_VALUE=0,E.MAX_VALUE=2147483647})(n=e.uinteger||(e.uinteger={}));var i;(function(E){function T(D,k){return D===Number.MAX_VALUE&&(D=n.MAX_VALUE),k===Number.MAX_VALUE&&(k=n.MAX_VALUE),{line:D,character:k}}E.create=T;function W(D){var k=D;return P.objectLiteral(k)&&P.uinteger(k.line)&&P.uinteger(k.character)}E.is=W})(i=e.Position||(e.Position={}));var s;(function(E){function T(D,k,V,Q){if(P.uinteger(D)&&P.uinteger(k)&&P.uinteger(V)&&P.uinteger(Q))return{start:i.create(D,k),end:i.create(V,Q)};if(i.is(D)&&i.is(k))return{start:D,end:k};throw new Error("Range#create called with invalid arguments["+D+", "+k+", "+V+", "+Q+"]")}E.create=T;function W(D){var k=D;return P.objectLiteral(k)&&i.is(k.start)&&i.is(k.end)}E.is=W})(s=e.Range||(e.Range={}));var o;(function(E){function T(D,k){return{uri:D,range:k}}E.create=T;function W(D){var k=D;return P.defined(k)&&s.is(k.range)&&(P.string(k.uri)||P.undefined(k.uri))}E.is=W})(o=e.Location||(e.Location={}));var a;(function(E){function T(D,k,V,Q){return{targetUri:D,targetRange:k,targetSelectionRange:V,originSelectionRange:Q}}E.create=T;function W(D){var k=D;return P.defined(k)&&s.is(k.targetRange)&&P.string(k.targetUri)&&(s.is(k.targetSelectionRange)||P.undefined(k.targetSelectionRange))&&(s.is(k.originSelectionRange)||P.undefined(k.originSelectionRange))}E.is=W})(a=e.LocationLink||(e.LocationLink={}));var u;(function(E){function T(D,k,V,Q){return{red:D,green:k,blue:V,alpha:Q}}E.create=T;function W(D){var k=D;return P.numberRange(k.red,0,1)&&P.numberRange(k.green,0,1)&&P.numberRange(k.blue,0,1)&&P.numberRange(k.alpha,0,1)}E.is=W})(u=e.Color||(e.Color={}));var l;(function(E){function T(D,k){return{range:D,color:k}}E.create=T;function W(D){var k=D;return s.is(k.range)&&u.is(k.color)}E.is=W})(l=e.ColorInformation||(e.ColorInformation={}));var c;(function(E){function T(D,k,V){return{label:D,textEdit:k,additionalTextEdits:V}}E.create=T;function W(D){var k=D;return P.string(k.label)&&(P.undefined(k.textEdit)||w.is(k))&&(P.undefined(k.additionalTextEdits)||P.typedArray(k.additionalTextEdits,w.is))}E.is=W})(c=e.ColorPresentation||(e.ColorPresentation={}));var f;(function(E){E.Comment="comment",E.Imports="imports",E.Region="region"})(f=e.FoldingRangeKind||(e.FoldingRangeKind={}));var d;(function(E){function T(D,k,V,Q,be){var Oe={startLine:D,endLine:k};return P.defined(V)&&(Oe.startCharacter=V),P.defined(Q)&&(Oe.endCharacter=Q),P.defined(be)&&(Oe.kind=be),Oe}E.create=T;function W(D){var k=D;return P.uinteger(k.startLine)&&P.uinteger(k.startLine)&&(P.undefined(k.startCharacter)||P.uinteger(k.startCharacter))&&(P.undefined(k.endCharacter)||P.uinteger(k.endCharacter))&&(P.undefined(k.kind)||P.string(k.kind))}E.is=W})(d=e.FoldingRange||(e.FoldingRange={}));var p;(function(E){function T(D,k){return{location:D,message:k}}E.create=T;function W(D){var k=D;return P.defined(k)&&o.is(k.location)&&P.string(k.message)}E.is=W})(p=e.DiagnosticRelatedInformation||(e.DiagnosticRelatedInformation={}));var h;(function(E){E.Error=1,E.Warning=2,E.Information=3,E.Hint=4})(h=e.DiagnosticSeverity||(e.DiagnosticSeverity={}));var y;(function(E){E.Unnecessary=1,E.Deprecated=2})(y=e.DiagnosticTag||(e.DiagnosticTag={}));var v;(function(E){function T(W){var D=W;return D!=null&&P.string(D.href)}E.is=T})(v=e.CodeDescription||(e.CodeDescription={}));var g;(function(E){function T(D,k,V,Q,be,Oe){var Ve={range:D,message:k};return P.defined(V)&&(Ve.severity=V),P.defined(Q)&&(Ve.code=Q),P.defined(be)&&(Ve.source=be),P.defined(Oe)&&(Ve.relatedInformation=Oe),Ve}E.create=T;function W(D){var k,V=D;return P.defined(V)&&s.is(V.range)&&P.string(V.message)&&(P.number(V.severity)||P.undefined(V.severity))&&(P.integer(V.code)||P.string(V.code)||P.undefined(V.code))&&(P.undefined(V.codeDescription)||P.string((k=V.codeDescription)===null||k===void 0?void 0:k.href))&&(P.string(V.source)||P.undefined(V.source))&&(P.undefined(V.relatedInformation)||P.typedArray(V.relatedInformation,p.is))}E.is=W})(g=e.Diagnostic||(e.Diagnostic={}));var b;(function(E){function T(D,k){for(var V=[],Q=2;Q<arguments.length;Q++)V[Q-2]=arguments[Q];var be={title:D,command:k};return P.defined(V)&&V.length>0&&(be.arguments=V),be}E.create=T;function W(D){var k=D;return P.defined(k)&&P.string(k.title)&&P.string(k.command)}E.is=W})(b=e.Command||(e.Command={}));var w;(function(E){function T(V,Q){return{range:V,newText:Q}}E.replace=T;function W(V,Q){return{range:{start:V,end:V},newText:Q}}E.insert=W;function D(V){return{range:V,newText:""}}E.del=D;function k(V){var Q=V;return P.objectLiteral(Q)&&P.string(Q.newText)&&s.is(Q.range)}E.is=k})(w=e.TextEdit||(e.TextEdit={}));var _;(function(E){function T(D,k,V){var Q={label:D};return k!==void 0&&(Q.needsConfirmation=k),V!==void 0&&(Q.description=V),Q}E.create=T;function W(D){var k=D;return k!==void 0&&P.objectLiteral(k)&&P.string(k.label)&&(P.boolean(k.needsConfirmation)||k.needsConfirmation===void 0)&&(P.string(k.description)||k.description===void 0)}E.is=W})(_=e.ChangeAnnotation||(e.ChangeAnnotation={}));var S;(function(E){function T(W){var D=W;return typeof D=="string"}E.is=T})(S=e.ChangeAnnotationIdentifier||(e.ChangeAnnotationIdentifier={}));var q;(function(E){function T(V,Q,be){return{range:V,newText:Q,annotationId:be}}E.replace=T;function W(V,Q,be){return{range:{start:V,end:V},newText:Q,annotationId:be}}E.insert=W;function D(V,Q){return{range:V,newText:"",annotationId:Q}}E.del=D;function k(V){var Q=V;return w.is(Q)&&(_.is(Q.annotationId)||S.is(Q.annotationId))}E.is=k})(q=e.AnnotatedTextEdit||(e.AnnotatedTextEdit={}));var C;(function(E){function T(D,k){return{textDocument:D,edits:k}}E.create=T;function W(D){var k=D;return P.defined(k)&&ae.is(k.textDocument)&&Array.isArray(k.edits)}E.is=W})(C=e.TextDocumentEdit||(e.TextDocumentEdit={}));var R;(function(E){function T(D,k,V){var Q={kind:"create",uri:D};return k!==void 0&&(k.overwrite!==void 0||k.ignoreIfExists!==void 0)&&(Q.options=k),V!==void 0&&(Q.annotationId=V),Q}E.create=T;function W(D){var k=D;return k&&k.kind==="create"&&P.string(k.uri)&&(k.options===void 0||(k.options.overwrite===void 0||P.boolean(k.options.overwrite))&&(k.options.ignoreIfExists===void 0||P.boolean(k.options.ignoreIfExists)))&&(k.annotationId===void 0||S.is(k.annotationId))}E.is=W})(R=e.CreateFile||(e.CreateFile={}));var O;(function(E){function T(D,k,V,Q){var be={kind:"rename",oldUri:D,newUri:k};return V!==void 0&&(V.overwrite!==void 0||V.ignoreIfExists!==void 0)&&(be.options=V),Q!==void 0&&(be.annotationId=Q),be}E.create=T;function W(D){var k=D;return k&&k.kind==="rename"&&P.string(k.oldUri)&&P.string(k.newUri)&&(k.options===void 0||(k.options.overwrite===void 0||P.boolean(k.options.overwrite))&&(k.options.ignoreIfExists===void 0||P.boolean(k.options.ignoreIfExists)))&&(k.annotationId===void 0||S.is(k.annotationId))}E.is=W})(O=e.RenameFile||(e.RenameFile={}));var z;(function(E){function T(D,k,V){var Q={kind:"delete",uri:D};return k!==void 0&&(k.recursive!==void 0||k.ignoreIfNotExists!==void 0)&&(Q.options=k),V!==void 0&&(Q.annotationId=V),Q}E.create=T;function W(D){var k=D;return k&&k.kind==="delete"&&P.string(k.uri)&&(k.options===void 0||(k.options.recursive===void 0||P.boolean(k.options.recursive))&&(k.options.ignoreIfNotExists===void 0||P.boolean(k.options.ignoreIfNotExists)))&&(k.annotationId===void 0||S.is(k.annotationId))}E.is=W})(z=e.DeleteFile||(e.DeleteFile={}));var F;(function(E){function T(W){var D=W;return D&&(D.changes!==void 0||D.documentChanges!==void 0)&&(D.documentChanges===void 0||D.documentChanges.every(function(k){return P.string(k.kind)?R.is(k)||O.is(k)||z.is(k):C.is(k)}))}E.is=T})(F=e.WorkspaceEdit||(e.WorkspaceEdit={}));var te=function(){function E(T,W){this.edits=T,this.changeAnnotations=W}return E.prototype.insert=function(T,W,D){var k,V;if(D===void 0?k=w.insert(T,W):S.is(D)?(V=D,k=q.insert(T,W,D)):(this.assertChangeAnnotations(this.changeAnnotations),V=this.changeAnnotations.manage(D),k=q.insert(T,W,V)),this.edits.push(k),V!==void 0)return V},E.prototype.replace=function(T,W,D){var k,V;if(D===void 0?k=w.replace(T,W):S.is(D)?(V=D,k=q.replace(T,W,D)):(this.assertChangeAnnotations(this.changeAnnotations),V=this.changeAnnotations.manage(D),k=q.replace(T,W,V)),this.edits.push(k),V!==void 0)return V},E.prototype.delete=function(T,W){var D,k;if(W===void 0?D=w.del(T):S.is(W)?(k=W,D=q.del(T,W)):(this.assertChangeAnnotations(this.changeAnnotations),k=this.changeAnnotations.manage(W),D=q.del(T,k)),this.edits.push(D),k!==void 0)return k},E.prototype.add=function(T){this.edits.push(T)},E.prototype.all=function(){return this.edits},E.prototype.clear=function(){this.edits.splice(0,this.edits.length)},E.prototype.assertChangeAnnotations=function(T){if(T===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},E}(),K=function(){function E(T){this._annotations=T===void 0?Object.create(null):T,this._counter=0,this._size=0}return E.prototype.all=function(){return this._annotations},Object.defineProperty(E.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),E.prototype.manage=function(T,W){var D;if(S.is(T)?D=T:(D=this.nextId(),W=T),this._annotations[D]!==void 0)throw new Error("Id "+D+" is already in use.");if(W===void 0)throw new Error("No annotation provided for id "+D);return this._annotations[D]=W,this._size++,D},E.prototype.nextId=function(){return this._counter++,this._counter.toString()},E}(),ue=function(){function E(T){var W=this;this._textEditChanges=Object.create(null),T!==void 0?(this._workspaceEdit=T,T.documentChanges?(this._changeAnnotations=new K(T.changeAnnotations),T.changeAnnotations=this._changeAnnotations.all(),T.documentChanges.forEach(function(D){if(C.is(D)){var k=new te(D.edits,W._changeAnnotations);W._textEditChanges[D.textDocument.uri]=k}})):T.changes&&Object.keys(T.changes).forEach(function(D){var k=new te(T.changes[D]);W._textEditChanges[D]=k})):this._workspaceEdit={}}return Object.defineProperty(E.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),E.prototype.getTextEditChange=function(T){if(ae.is(T)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var W={uri:T.uri,version:T.version},D=this._textEditChanges[W.uri];if(!D){var k=[],V={textDocument:W,edits:k};this._workspaceEdit.documentChanges.push(V),D=new te(k,this._changeAnnotations),this._textEditChanges[W.uri]=D}return D}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var D=this._textEditChanges[T];if(!D){var k=[];this._workspaceEdit.changes[T]=k,D=new te(k),this._textEditChanges[T]=D}return D}},E.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new K,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},E.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},E.prototype.createFile=function(T,W,D){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var k;_.is(W)||S.is(W)?k=W:D=W;var V,Q;if(k===void 0?V=R.create(T,D):(Q=S.is(k)?k:this._changeAnnotations.manage(k),V=R.create(T,D,Q)),this._workspaceEdit.documentChanges.push(V),Q!==void 0)return Q},E.prototype.renameFile=function(T,W,D,k){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var V;_.is(D)||S.is(D)?V=D:k=D;var Q,be;if(V===void 0?Q=O.create(T,W,k):(be=S.is(V)?V:this._changeAnnotations.manage(V),Q=O.create(T,W,k,be)),this._workspaceEdit.documentChanges.push(Q),be!==void 0)return be},E.prototype.deleteFile=function(T,W,D){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var k;_.is(W)||S.is(W)?k=W:D=W;var V,Q;if(k===void 0?V=z.create(T,D):(Q=S.is(k)?k:this._changeAnnotations.manage(k),V=z.create(T,D,Q)),this._workspaceEdit.documentChanges.push(V),Q!==void 0)return Q},E}();e.WorkspaceChange=ue;var L;(function(E){function T(D){return{uri:D}}E.create=T;function W(D){var k=D;return P.defined(k)&&P.string(k.uri)}E.is=W})(L=e.TextDocumentIdentifier||(e.TextDocumentIdentifier={}));var M;(function(E){function T(D,k){return{uri:D,version:k}}E.create=T;function W(D){var k=D;return P.defined(k)&&P.string(k.uri)&&P.integer(k.version)}E.is=W})(M=e.VersionedTextDocumentIdentifier||(e.VersionedTextDocumentIdentifier={}));var ae;(function(E){function T(D,k){return{uri:D,version:k}}E.create=T;function W(D){var k=D;return P.defined(k)&&P.string(k.uri)&&(k.version===null||P.integer(k.version))}E.is=W})(ae=e.OptionalVersionedTextDocumentIdentifier||(e.OptionalVersionedTextDocumentIdentifier={}));var ne;(function(E){function T(D,k,V,Q){return{uri:D,languageId:k,version:V,text:Q}}E.create=T;function W(D){var k=D;return P.defined(k)&&P.string(k.uri)&&P.string(k.languageId)&&P.integer(k.version)&&P.string(k.text)}E.is=W})(ne=e.TextDocumentItem||(e.TextDocumentItem={}));var de;(function(E){E.PlainText="plaintext",E.Markdown="markdown"})(de=e.MarkupKind||(e.MarkupKind={})),function(E){function T(W){var D=W;return D===E.PlainText||D===E.Markdown}E.is=T}(de=e.MarkupKind||(e.MarkupKind={}));var le;(function(E){function T(W){var D=W;return P.objectLiteral(W)&&de.is(D.kind)&&P.string(D.value)}E.is=T})(le=e.MarkupContent||(e.MarkupContent={}));var se;(function(E){E.Text=1,E.Method=2,E.Function=3,E.Constructor=4,E.Field=5,E.Variable=6,E.Class=7,E.Interface=8,E.Module=9,E.Property=10,E.Unit=11,E.Value=12,E.Enum=13,E.Keyword=14,E.Snippet=15,E.Color=16,E.File=17,E.Reference=18,E.Folder=19,E.EnumMember=20,E.Constant=21,E.Struct=22,E.Event=23,E.Operator=24,E.TypeParameter=25})(se=e.CompletionItemKind||(e.CompletionItemKind={}));var he;(function(E){E.PlainText=1,E.Snippet=2})(he=e.InsertTextFormat||(e.InsertTextFormat={}));var we;(function(E){E.Deprecated=1})(we=e.CompletionItemTag||(e.CompletionItemTag={}));var De;(function(E){function T(D,k,V){return{newText:D,insert:k,replace:V}}E.create=T;function W(D){var k=D;return k&&P.string(k.newText)&&s.is(k.insert)&&s.is(k.replace)}E.is=W})(De=e.InsertReplaceEdit||(e.InsertReplaceEdit={}));var Je;(function(E){E.asIs=1,E.adjustIndentation=2})(Je=e.InsertTextMode||(e.InsertTextMode={}));var ve;(function(E){function T(W){return{label:W}}E.create=T})(ve=e.CompletionItem||(e.CompletionItem={}));var Ct;(function(E){function T(W,D){return{items:W||[],isIncomplete:!!D}}E.create=T})(Ct=e.CompletionList||(e.CompletionList={}));var dt;(function(E){function T(D){return D.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}E.fromPlainText=T;function W(D){var k=D;return P.string(k)||P.objectLiteral(k)&&P.string(k.language)&&P.string(k.value)}E.is=W})(dt=e.MarkedString||(e.MarkedString={}));var pe;(function(E){function T(W){var D=W;return!!D&&P.objectLiteral(D)&&(le.is(D.contents)||dt.is(D.contents)||P.typedArray(D.contents,dt.is))&&(W.range===void 0||s.is(W.range))}E.is=T})(pe=e.Hover||(e.Hover={}));var ce;(function(E){function T(W,D){return D?{label:W,documentation:D}:{label:W}}E.create=T})(ce=e.ParameterInformation||(e.ParameterInformation={}));var ie;(function(E){function T(W,D){for(var k=[],V=2;V<arguments.length;V++)k[V-2]=arguments[V];var Q={label:W};return P.defined(D)&&(Q.documentation=D),P.defined(k)?Q.parameters=k:Q.parameters=[],Q}E.create=T})(ie=e.SignatureInformation||(e.SignatureInformation={}));var Fe;(function(E){E.Text=1,E.Read=2,E.Write=3})(Fe=e.DocumentHighlightKind||(e.DocumentHighlightKind={}));var at;(function(E){function T(W,D){var k={range:W};return P.number(D)&&(k.kind=D),k}E.create=T})(at=e.DocumentHighlight||(e.DocumentHighlight={}));var zt;(function(E){E.File=1,E.Module=2,E.Namespace=3,E.Package=4,E.Class=5,E.Method=6,E.Property=7,E.Field=8,E.Constructor=9,E.Enum=10,E.Interface=11,E.Function=12,E.Variable=13,E.Constant=14,E.String=15,E.Number=16,E.Boolean=17,E.Array=18,E.Object=19,E.Key=20,E.Null=21,E.EnumMember=22,E.Struct=23,E.Event=24,E.Operator=25,E.TypeParameter=26})(zt=e.SymbolKind||(e.SymbolKind={}));var $t;(function(E){E.Deprecated=1})($t=e.SymbolTag||(e.SymbolTag={}));var Rn;(function(E){function T(W,D,k,V,Q){var be={name:W,kind:D,location:{uri:V,range:k}};return Q&&(be.containerName=Q),be}E.create=T})(Rn=e.SymbolInformation||(e.SymbolInformation={}));var An;(function(E){function T(D,k,V,Q,be,Oe){var Ve={name:D,detail:k,kind:V,range:Q,selectionRange:be};return Oe!==void 0&&(Ve.children=Oe),Ve}E.create=T;function W(D){var k=D;return k&&P.string(k.name)&&P.number(k.kind)&&s.is(k.range)&&s.is(k.selectionRange)&&(k.detail===void 0||P.string(k.detail))&&(k.deprecated===void 0||P.boolean(k.deprecated))&&(k.children===void 0||Array.isArray(k.children))&&(k.tags===void 0||Array.isArray(k.tags))}E.is=W})(An=e.DocumentSymbol||(e.DocumentSymbol={}));var NE;(function(E){E.Empty="",E.QuickFix="quickfix",E.Refactor="refactor",E.RefactorExtract="refactor.extract",E.RefactorInline="refactor.inline",E.RefactorRewrite="refactor.rewrite",E.Source="source",E.SourceOrganizeImports="source.organizeImports",E.SourceFixAll="source.fixAll"})(NE=e.CodeActionKind||(e.CodeActionKind={}));var jE;(function(E){function T(D,k){var V={diagnostics:D};return k!=null&&(V.only=k),V}E.create=T;function W(D){var k=D;return P.defined(k)&&P.typedArray(k.diagnostics,g.is)&&(k.only===void 0||P.typedArray(k.only,P.string))}E.is=W})(jE=e.CodeActionContext||(e.CodeActionContext={}));var Co;(function(E){function T(D,k,V){var Q={title:D},be=!0;return typeof k=="string"?(be=!1,Q.kind=k):b.is(k)?Q.command=k:Q.edit=k,be&&V!==void 0&&(Q.kind=V),Q}E.create=T;function W(D){var k=D;return k&&P.string(k.title)&&(k.diagnostics===void 0||P.typedArray(k.diagnostics,g.is))&&(k.kind===void 0||P.string(k.kind))&&(k.edit!==void 0||k.command!==void 0)&&(k.command===void 0||b.is(k.command))&&(k.isPreferred===void 0||P.boolean(k.isPreferred))&&(k.edit===void 0||F.is(k.edit))}E.is=W})(Co=e.CodeAction||(e.CodeAction={}));var ah;(function(E){function T(D,k){var V={range:D};return P.defined(k)&&(V.data=k),V}E.create=T;function W(D){var k=D;return P.defined(k)&&s.is(k.range)&&(P.undefined(k.command)||b.is(k.command))}E.is=W})(ah=e.CodeLens||(e.CodeLens={}));var uh;(function(E){function T(D,k){return{tabSize:D,insertSpaces:k}}E.create=T;function W(D){var k=D;return P.defined(k)&&P.uinteger(k.tabSize)&&P.boolean(k.insertSpaces)}E.is=W})(uh=e.FormattingOptions||(e.FormattingOptions={}));var tc;(function(E){function T(D,k,V){return{range:D,target:k,data:V}}E.create=T;function W(D){var k=D;return P.defined(k)&&s.is(k.range)&&(P.undefined(k.target)||P.string(k.target))}E.is=W})(tc=e.DocumentLink||(e.DocumentLink={}));var lh;(function(E){function T(D,k){return{range:D,parent:k}}E.create=T;function W(D){var k=D;return k!==void 0&&s.is(k.range)&&(k.parent===void 0||E.is(k.parent))}E.is=W})(lh=e.SelectionRange||(e.SelectionRange={})),e.EOL=[`
|
|
423
423
|
`,`\r
|
|
424
424
|
`,"\r"];var Ds;(function(E){function T(V,Q,be,Oe){return new I(V,Q,be,Oe)}E.create=T;function W(V){var Q=V;return!!(P.defined(Q)&&P.string(Q.uri)&&(P.undefined(Q.languageId)||P.string(Q.languageId))&&P.uinteger(Q.lineCount)&&P.func(Q.getText)&&P.func(Q.positionAt)&&P.func(Q.offsetAt))}E.is=W;function D(V,Q){for(var be=V.getText(),Oe=k(Q,function(Qa,ch){var uN=Qa.range.start.line-ch.range.start.line;return uN===0?Qa.range.start.character-ch.range.start.character:uN}),Ve=be.length,bt=Oe.length-1;bt>=0;bt--){var rr=Oe[bt],or=V.offsetAt(rr.range.start),Xe=V.offsetAt(rr.range.end);if(Xe<=Ve)be=be.substring(0,or)+rr.newText+be.substring(Xe,be.length);else throw new Error("Overlapping edit");Ve=or}return be}E.applyEdits=D;function k(V,Q){if(V.length<=1)return V;var be=V.length/2|0,Oe=V.slice(0,be),Ve=V.slice(be);k(Oe,Q),k(Ve,Q);for(var bt=0,rr=0,or=0;bt<Oe.length&&rr<Ve.length;){var Xe=Q(Oe[bt],Ve[rr]);Xe<=0?V[or++]=Oe[bt++]:V[or++]=Ve[rr++]}for(;bt<Oe.length;)V[or++]=Oe[bt++];for(;rr<Ve.length;)V[or++]=Ve[rr++];return V}})(Ds=e.TextDocument||(e.TextDocument={}));var I=function(){function E(T,W,D,k){this._uri=T,this._languageId=W,this._version=D,this._content=k,this._lineOffsets=void 0}return Object.defineProperty(E.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),E.prototype.getText=function(T){if(T){var W=this.offsetAt(T.start),D=this.offsetAt(T.end);return this._content.substring(W,D)}return this._content},E.prototype.update=function(T,W){this._content=T.text,this._version=W,this._lineOffsets=void 0},E.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var T=[],W=this._content,D=!0,k=0;k<W.length;k++){D&&(T.push(k),D=!1);var V=W.charAt(k);D=V==="\r"||V===`
|
|
425
425
|
`,V==="\r"&&k+1<W.length&&W.charAt(k+1)===`
|
|
426
|
-
`&&k++}D&&W.length>0&&T.push(W.length),this._lineOffsets=T}return this._lineOffsets},E.prototype.positionAt=function(T){T=Math.max(Math.min(T,this._content.length),0);var W=this.getLineOffsets(),D=0,k=W.length;if(k===0)return i.create(0,T);for(;D<k;){var V=Math.floor((D+k)/2);W[V]>T?k=V:D=V+1}var Q=D-1;return i.create(Q,T-W[Q])},E.prototype.offsetAt=function(T){var W=this.getLineOffsets();if(T.line>=W.length)return this._content.length;if(T.line<0)return 0;var D=W[T.line],k=T.line+1<W.length?W[T.line+1]:this._content.length;return Math.max(Math.min(D+T.character,k),D)},Object.defineProperty(E.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),E}(),P;(function(E){var T=Object.prototype.toString;function W(Xe){return typeof Xe<"u"}E.defined=W;function D(Xe){return typeof Xe>"u"}E.undefined=D;function k(Xe){return Xe===!0||Xe===!1}E.boolean=k;function V(Xe){return T.call(Xe)==="[object String]"}E.string=V;function Q(Xe){return T.call(Xe)==="[object Number]"}E.number=Q;function be(Xe,Qa,ch){return T.call(Xe)==="[object Number]"&&Qa<=Xe&&Xe<=ch}E.numberRange=be;function Oe(Xe){return T.call(Xe)==="[object Number]"&&-2147483648<=Xe&&Xe<=2147483647}E.integer=Oe;function Ve(Xe){return T.call(Xe)==="[object Number]"&&0<=Xe&&Xe<=2147483647}E.uinteger=Ve;function bt(Xe){return T.call(Xe)==="[object Function]"}E.func=bt;function rr(Xe){return Xe!==null&&typeof Xe=="object"}E.objectLiteral=rr;function or(Xe,Qa){return Array.isArray(Xe)&&Xe.every(Qa)}E.typedArray=or})(P||(P={}))})});var mr=m(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.ProtocolNotificationType=Gn.ProtocolNotificationType0=Gn.ProtocolRequestType=Gn.ProtocolRequestType0=Gn.RegistrationType=void 0;var Kl=Gl(),XI=class{constructor(e){this.method=e}};Gn.RegistrationType=XI;var ZI=class extends Kl.RequestType0{constructor(e){super(e)}};Gn.ProtocolRequestType0=ZI;var e3=class extends Kl.RequestType{constructor(e){super(e,Kl.ParameterStructures.byName)}};Gn.ProtocolRequestType=e3;var t3=class extends Kl.NotificationType0{constructor(e){super(e)}};Gn.ProtocolNotificationType0=t3;var r3=class extends Kl.NotificationType{constructor(e){super(e,Kl.ParameterStructures.byName)}};Gn.ProtocolNotificationType=r3});var Vge=m(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.objectLiteral=tr.typedArray=tr.stringArray=tr.array=tr.func=tr.error=tr.number=tr.string=tr.boolean=void 0;function Hvt(t){return t===!0||t===!1}tr.boolean=Hvt;function Uge(t){return typeof t=="string"||t instanceof String}tr.string=Uge;function Vvt(t){return typeof t=="number"||t instanceof Number}tr.number=Vvt;function Gvt(t){return t instanceof Error}tr.error=Gvt;function Kvt(t){return typeof t=="function"}tr.func=Kvt;function Hge(t){return Array.isArray(t)}tr.array=Hge;function Yvt(t){return Hge(t)&&t.every(e=>Uge(e))}tr.stringArray=Yvt;function Qvt(t,e){return Array.isArray(t)&&t.every(e)}tr.typedArray=Qvt;function Jvt(t){return t!==null&&typeof t=="object"}tr.objectLiteral=Jvt});var Gge=m(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.ImplementationRequest=void 0;var Xvt=mr(),Zvt;(function(t){t.method="textDocument/implementation",t.type=new Xvt.ProtocolRequestType(t.method)})(Zvt=Pp.ImplementationRequest||(Pp.ImplementationRequest={}))});var Kge=m(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.TypeDefinitionRequest=void 0;var ewt=mr(),twt;(function(t){t.method="textDocument/typeDefinition",t.type=new ewt.ProtocolRequestType(t.method)})(twt=Tp.TypeDefinitionRequest||(Tp.TypeDefinitionRequest={}))});var Qge=m(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.DidChangeWorkspaceFoldersNotification=go.WorkspaceFoldersRequest=void 0;var Yge=mr(),rwt;(function(t){t.type=new Yge.ProtocolRequestType0("workspace/workspaceFolders")})(rwt=go.WorkspaceFoldersRequest||(go.WorkspaceFoldersRequest={}));var nwt;(function(t){t.type=new Yge.ProtocolNotificationType("workspace/didChangeWorkspaceFolders")})(nwt=go.DidChangeWorkspaceFoldersNotification||(go.DidChangeWorkspaceFoldersNotification={}))});var Jge=m(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});Mp.ConfigurationRequest=void 0;var iwt=mr(),swt;(function(t){t.type=new iwt.ProtocolRequestType("workspace/configuration")})(swt=Mp.ConfigurationRequest||(Mp.ConfigurationRequest={}))});var Zge=m(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.ColorPresentationRequest=mo.DocumentColorRequest=void 0;var Xge=mr(),owt;(function(t){t.method="textDocument/documentColor",t.type=new Xge.ProtocolRequestType(t.method)})(owt=mo.DocumentColorRequest||(mo.DocumentColorRequest={}));var awt;(function(t){t.type=new Xge.ProtocolRequestType("textDocument/colorPresentation")})(awt=mo.ColorPresentationRequest||(mo.ColorPresentationRequest={}))});var eme=m(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.FoldingRangeRequest=yo.FoldingRangeKind=void 0;var uwt=mr(),lwt;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(lwt=yo.FoldingRangeKind||(yo.FoldingRangeKind={}));var cwt;(function(t){t.method="textDocument/foldingRange",t.type=new uwt.ProtocolRequestType(t.method)})(cwt=yo.FoldingRangeRequest||(yo.FoldingRangeRequest={}))});var tme=m(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.DeclarationRequest=void 0;var fwt=mr(),dwt;(function(t){t.method="textDocument/declaration",t.type=new fwt.ProtocolRequestType(t.method)})(dwt=Lp.DeclarationRequest||(Lp.DeclarationRequest={}))});var rme=m(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.SelectionRangeRequest=void 0;var pwt=mr(),hwt;(function(t){t.method="textDocument/selectionRange",t.type=new pwt.ProtocolRequestType(t.method)})(hwt=Fp.SelectionRangeRequest||(Fp.SelectionRangeRequest={}))});var ime=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.WorkDoneProgressCancelNotification=hi.WorkDoneProgressCreateRequest=hi.WorkDoneProgress=void 0;var gwt=Gl(),nme=mr(),mwt;(function(t){t.type=new gwt.ProgressType;function e(r){return r===t.type}t.is=e})(mwt=hi.WorkDoneProgress||(hi.WorkDoneProgress={}));var ywt;(function(t){t.type=new nme.ProtocolRequestType("window/workDoneProgress/create")})(ywt=hi.WorkDoneProgressCreateRequest||(hi.WorkDoneProgressCreateRequest={}));var bwt;(function(t){t.type=new nme.ProtocolNotificationType("window/workDoneProgress/cancel")})(bwt=hi.WorkDoneProgressCancelNotification||(hi.WorkDoneProgressCancelNotification={}))});var sme=m(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.CallHierarchyOutgoingCallsRequest=gi.CallHierarchyIncomingCallsRequest=gi.CallHierarchyPrepareRequest=void 0;var n3=mr(),vwt;(function(t){t.method="textDocument/prepareCallHierarchy",t.type=new n3.ProtocolRequestType(t.method)})(vwt=gi.CallHierarchyPrepareRequest||(gi.CallHierarchyPrepareRequest={}));var wwt;(function(t){t.method="callHierarchy/incomingCalls",t.type=new n3.ProtocolRequestType(t.method)})(wwt=gi.CallHierarchyIncomingCallsRequest||(gi.CallHierarchyIncomingCallsRequest={}));var _wt;(function(t){t.method="callHierarchy/outgoingCalls",t.type=new n3.ProtocolRequestType(t.method)})(_wt=gi.CallHierarchyOutgoingCallsRequest||(gi.CallHierarchyOutgoingCallsRequest={}))});var ome=m(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.SemanticTokensRefreshRequest=ft.SemanticTokensRangeRequest=ft.SemanticTokensDeltaRequest=ft.SemanticTokensRequest=ft.SemanticTokensRegistrationType=ft.TokenFormat=ft.SemanticTokens=ft.SemanticTokenModifiers=ft.SemanticTokenTypes=void 0;var Ip=mr(),xwt;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator"})(xwt=ft.SemanticTokenTypes||(ft.SemanticTokenTypes={}));var Swt;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Swt=ft.SemanticTokenModifiers||(ft.SemanticTokenModifiers={}));var kwt;(function(t){function e(r){let n=r;return n!==void 0&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}t.is=e})(kwt=ft.SemanticTokens||(ft.SemanticTokens={}));var Ewt;(function(t){t.Relative="relative"})(Ewt=ft.TokenFormat||(ft.TokenFormat={}));var Cwt;(function(t){t.method="textDocument/semanticTokens",t.type=new Ip.RegistrationType(t.method)})(Cwt=ft.SemanticTokensRegistrationType||(ft.SemanticTokensRegistrationType={}));var Dwt;(function(t){t.method="textDocument/semanticTokens/full",t.type=new Ip.ProtocolRequestType(t.method)})(Dwt=ft.SemanticTokensRequest||(ft.SemanticTokensRequest={}));var Owt;(function(t){t.method="textDocument/semanticTokens/full/delta",t.type=new Ip.ProtocolRequestType(t.method)})(Owt=ft.SemanticTokensDeltaRequest||(ft.SemanticTokensDeltaRequest={}));var qwt;(function(t){t.method="textDocument/semanticTokens/range",t.type=new Ip.ProtocolRequestType(t.method)})(qwt=ft.SemanticTokensRangeRequest||(ft.SemanticTokensRangeRequest={}));var Rwt;(function(t){t.method="workspace/semanticTokens/refresh",t.type=new Ip.ProtocolRequestType0(t.method)})(Rwt=ft.SemanticTokensRefreshRequest||(ft.SemanticTokensRefreshRequest={}))});var ame=m(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.ShowDocumentRequest=void 0;var Awt=mr(),Pwt;(function(t){t.method="window/showDocument",t.type=new Awt.ProtocolRequestType(t.method)})(Pwt=Np.ShowDocumentRequest||(Np.ShowDocumentRequest={}))});var ume=m(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.LinkedEditingRangeRequest=void 0;var Twt=mr(),Mwt;(function(t){t.method="textDocument/linkedEditingRange",t.type=new Twt.ProtocolRequestType(t.method)})(Mwt=jp.LinkedEditingRangeRequest||(jp.LinkedEditingRangeRequest={}))});var lme=m(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.WillDeleteFilesRequest=Wt.DidDeleteFilesNotification=Wt.DidRenameFilesNotification=Wt.WillRenameFilesRequest=Wt.DidCreateFilesNotification=Wt.WillCreateFilesRequest=Wt.FileOperationPatternKind=void 0;var Yl=mr(),Lwt;(function(t){t.file="file",t.folder="folder"})(Lwt=Wt.FileOperationPatternKind||(Wt.FileOperationPatternKind={}));var Fwt;(function(t){t.method="workspace/willCreateFiles",t.type=new Yl.ProtocolRequestType(t.method)})(Fwt=Wt.WillCreateFilesRequest||(Wt.WillCreateFilesRequest={}));var Iwt;(function(t){t.method="workspace/didCreateFiles",t.type=new Yl.ProtocolNotificationType(t.method)})(Iwt=Wt.DidCreateFilesNotification||(Wt.DidCreateFilesNotification={}));var Nwt;(function(t){t.method="workspace/willRenameFiles",t.type=new Yl.ProtocolRequestType(t.method)})(Nwt=Wt.WillRenameFilesRequest||(Wt.WillRenameFilesRequest={}));var jwt;(function(t){t.method="workspace/didRenameFiles",t.type=new Yl.ProtocolNotificationType(t.method)})(jwt=Wt.DidRenameFilesNotification||(Wt.DidRenameFilesNotification={}));var $wt;(function(t){t.method="workspace/didDeleteFiles",t.type=new Yl.ProtocolNotificationType(t.method)})($wt=Wt.DidDeleteFilesNotification||(Wt.DidDeleteFilesNotification={}));var Bwt;(function(t){t.method="workspace/willDeleteFiles",t.type=new Yl.ProtocolRequestType(t.method)})(Bwt=Wt.WillDeleteFilesRequest||(Wt.WillDeleteFilesRequest={}))});var cme=m(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.MonikerRequest=mi.MonikerKind=mi.UniquenessLevel=void 0;var Wwt=mr(),zwt;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(zwt=mi.UniquenessLevel||(mi.UniquenessLevel={}));var Uwt;(function(t){t.import="import",t.export="export",t.local="local"})(Uwt=mi.MonikerKind||(mi.MonikerKind={}));var Hwt;(function(t){t.method="textDocument/moniker",t.type=new Wwt.ProtocolRequestType(t.method)})(Hwt=mi.MonikerRequest||(mi.MonikerRequest={}))});var gme=m(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.DocumentLinkRequest=A.CodeLensRefreshRequest=A.CodeLensResolveRequest=A.CodeLensRequest=A.WorkspaceSymbolRequest=A.CodeActionResolveRequest=A.CodeActionRequest=A.DocumentSymbolRequest=A.DocumentHighlightRequest=A.ReferencesRequest=A.DefinitionRequest=A.SignatureHelpRequest=A.SignatureHelpTriggerKind=A.HoverRequest=A.CompletionResolveRequest=A.CompletionRequest=A.CompletionTriggerKind=A.PublishDiagnosticsNotification=A.WatchKind=A.FileChangeType=A.DidChangeWatchedFilesNotification=A.WillSaveTextDocumentWaitUntilRequest=A.WillSaveTextDocumentNotification=A.TextDocumentSaveReason=A.DidSaveTextDocumentNotification=A.DidCloseTextDocumentNotification=A.DidChangeTextDocumentNotification=A.TextDocumentContentChangeEvent=A.DidOpenTextDocumentNotification=A.TextDocumentSyncKind=A.TelemetryEventNotification=A.LogMessageNotification=A.ShowMessageRequest=A.ShowMessageNotification=A.MessageType=A.DidChangeConfigurationNotification=A.ExitNotification=A.ShutdownRequest=A.InitializedNotification=A.InitializeError=A.InitializeRequest=A.WorkDoneProgressOptions=A.TextDocumentRegistrationOptions=A.StaticRegistrationOptions=A.FailureHandlingKind=A.ResourceOperationKind=A.UnregistrationRequest=A.RegistrationRequest=A.DocumentSelector=A.DocumentFilter=void 0;A.MonikerRequest=A.MonikerKind=A.UniquenessLevel=A.WillDeleteFilesRequest=A.DidDeleteFilesNotification=A.WillRenameFilesRequest=A.DidRenameFilesNotification=A.WillCreateFilesRequest=A.DidCreateFilesNotification=A.FileOperationPatternKind=A.LinkedEditingRangeRequest=A.ShowDocumentRequest=A.SemanticTokensRegistrationType=A.SemanticTokensRefreshRequest=A.SemanticTokensRangeRequest=A.SemanticTokensDeltaRequest=A.SemanticTokensRequest=A.TokenFormat=A.SemanticTokens=A.SemanticTokenModifiers=A.SemanticTokenTypes=A.CallHierarchyPrepareRequest=A.CallHierarchyOutgoingCallsRequest=A.CallHierarchyIncomingCallsRequest=A.WorkDoneProgressCancelNotification=A.WorkDoneProgressCreateRequest=A.WorkDoneProgress=A.SelectionRangeRequest=A.DeclarationRequest=A.FoldingRangeRequest=A.ColorPresentationRequest=A.DocumentColorRequest=A.ConfigurationRequest=A.DidChangeWorkspaceFoldersNotification=A.WorkspaceFoldersRequest=A.TypeDefinitionRequest=A.ImplementationRequest=A.ApplyWorkspaceEditRequest=A.ExecuteCommandRequest=A.PrepareRenameRequest=A.RenameRequest=A.PrepareSupportDefaultBehavior=A.DocumentOnTypeFormattingRequest=A.DocumentRangeFormattingRequest=A.DocumentFormattingRequest=A.DocumentLinkResolveRequest=void 0;var bo=Vge(),Ue=mr(),Vwt=Gge();Object.defineProperty(A,"ImplementationRequest",{enumerable:!0,get:function(){return Vwt.ImplementationRequest}});var Gwt=Kge();Object.defineProperty(A,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Gwt.TypeDefinitionRequest}});var fme=Qge();Object.defineProperty(A,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return fme.WorkspaceFoldersRequest}});Object.defineProperty(A,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return fme.DidChangeWorkspaceFoldersNotification}});var Kwt=Jge();Object.defineProperty(A,"ConfigurationRequest",{enumerable:!0,get:function(){return Kwt.ConfigurationRequest}});var dme=Zge();Object.defineProperty(A,"DocumentColorRequest",{enumerable:!0,get:function(){return dme.DocumentColorRequest}});Object.defineProperty(A,"ColorPresentationRequest",{enumerable:!0,get:function(){return dme.ColorPresentationRequest}});var Ywt=eme();Object.defineProperty(A,"FoldingRangeRequest",{enumerable:!0,get:function(){return Ywt.FoldingRangeRequest}});var Qwt=tme();Object.defineProperty(A,"DeclarationRequest",{enumerable:!0,get:function(){return Qwt.DeclarationRequest}});var Jwt=rme();Object.defineProperty(A,"SelectionRangeRequest",{enumerable:!0,get:function(){return Jwt.SelectionRangeRequest}});var i3=ime();Object.defineProperty(A,"WorkDoneProgress",{enumerable:!0,get:function(){return i3.WorkDoneProgress}});Object.defineProperty(A,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return i3.WorkDoneProgressCreateRequest}});Object.defineProperty(A,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return i3.WorkDoneProgressCancelNotification}});var s3=sme();Object.defineProperty(A,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return s3.CallHierarchyIncomingCallsRequest}});Object.defineProperty(A,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return s3.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(A,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return s3.CallHierarchyPrepareRequest}});var ks=ome();Object.defineProperty(A,"SemanticTokenTypes",{enumerable:!0,get:function(){return ks.SemanticTokenTypes}});Object.defineProperty(A,"SemanticTokenModifiers",{enumerable:!0,get:function(){return ks.SemanticTokenModifiers}});Object.defineProperty(A,"SemanticTokens",{enumerable:!0,get:function(){return ks.SemanticTokens}});Object.defineProperty(A,"TokenFormat",{enumerable:!0,get:function(){return ks.TokenFormat}});Object.defineProperty(A,"SemanticTokensRequest",{enumerable:!0,get:function(){return ks.SemanticTokensRequest}});Object.defineProperty(A,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ks.SemanticTokensDeltaRequest}});Object.defineProperty(A,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ks.SemanticTokensRangeRequest}});Object.defineProperty(A,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ks.SemanticTokensRefreshRequest}});Object.defineProperty(A,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ks.SemanticTokensRegistrationType}});var Xwt=ame();Object.defineProperty(A,"ShowDocumentRequest",{enumerable:!0,get:function(){return Xwt.ShowDocumentRequest}});var Zwt=ume();Object.defineProperty(A,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return Zwt.LinkedEditingRangeRequest}});var Wa=lme();Object.defineProperty(A,"FileOperationPatternKind",{enumerable:!0,get:function(){return Wa.FileOperationPatternKind}});Object.defineProperty(A,"DidCreateFilesNotification",{enumerable:!0,get:function(){return Wa.DidCreateFilesNotification}});Object.defineProperty(A,"WillCreateFilesRequest",{enumerable:!0,get:function(){return Wa.WillCreateFilesRequest}});Object.defineProperty(A,"DidRenameFilesNotification",{enumerable:!0,get:function(){return Wa.DidRenameFilesNotification}});Object.defineProperty(A,"WillRenameFilesRequest",{enumerable:!0,get:function(){return Wa.WillRenameFilesRequest}});Object.defineProperty(A,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return Wa.DidDeleteFilesNotification}});Object.defineProperty(A,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return Wa.WillDeleteFilesRequest}});var o3=cme();Object.defineProperty(A,"UniquenessLevel",{enumerable:!0,get:function(){return o3.UniquenessLevel}});Object.defineProperty(A,"MonikerKind",{enumerable:!0,get:function(){return o3.MonikerKind}});Object.defineProperty(A,"MonikerRequest",{enumerable:!0,get:function(){return o3.MonikerRequest}});var pme;(function(t){function e(r){let n=r;return bo.string(n.language)||bo.string(n.scheme)||bo.string(n.pattern)}t.is=e})(pme=A.DocumentFilter||(A.DocumentFilter={}));var hme;(function(t){function e(r){if(!Array.isArray(r))return!1;for(let n of r)if(!bo.string(n)&&!pme.is(n))return!1;return!0}t.is=e})(hme=A.DocumentSelector||(A.DocumentSelector={}));var e_t;(function(t){t.type=new Ue.ProtocolRequestType("client/registerCapability")})(e_t=A.RegistrationRequest||(A.RegistrationRequest={}));var t_t;(function(t){t.type=new Ue.ProtocolRequestType("client/unregisterCapability")})(t_t=A.UnregistrationRequest||(A.UnregistrationRequest={}));var r_t;(function(t){t.Create="create",t.Rename="rename",t.Delete="delete"})(r_t=A.ResourceOperationKind||(A.ResourceOperationKind={}));var n_t;(function(t){t.Abort="abort",t.Transactional="transactional",t.TextOnlyTransactional="textOnlyTransactional",t.Undo="undo"})(n_t=A.FailureHandlingKind||(A.FailureHandlingKind={}));var i_t;(function(t){function e(r){let n=r;return n&&bo.string(n.id)&&n.id.length>0}t.hasId=e})(i_t=A.StaticRegistrationOptions||(A.StaticRegistrationOptions={}));var s_t;(function(t){function e(r){let n=r;return n&&(n.documentSelector===null||hme.is(n.documentSelector))}t.is=e})(s_t=A.TextDocumentRegistrationOptions||(A.TextDocumentRegistrationOptions={}));var o_t;(function(t){function e(n){let i=n;return bo.objectLiteral(i)&&(i.workDoneProgress===void 0||bo.boolean(i.workDoneProgress))}t.is=e;function r(n){let i=n;return i&&bo.boolean(i.workDoneProgress)}t.hasWorkDoneProgress=r})(o_t=A.WorkDoneProgressOptions||(A.WorkDoneProgressOptions={}));var a_t;(function(t){t.type=new Ue.ProtocolRequestType("initialize")})(a_t=A.InitializeRequest||(A.InitializeRequest={}));var u_t;(function(t){t.unknownProtocolVersion=1})(u_t=A.InitializeError||(A.InitializeError={}));var l_t;(function(t){t.type=new Ue.ProtocolNotificationType("initialized")})(l_t=A.InitializedNotification||(A.InitializedNotification={}));var c_t;(function(t){t.type=new Ue.ProtocolRequestType0("shutdown")})(c_t=A.ShutdownRequest||(A.ShutdownRequest={}));var f_t;(function(t){t.type=new Ue.ProtocolNotificationType0("exit")})(f_t=A.ExitNotification||(A.ExitNotification={}));var d_t;(function(t){t.type=new Ue.ProtocolNotificationType("workspace/didChangeConfiguration")})(d_t=A.DidChangeConfigurationNotification||(A.DidChangeConfigurationNotification={}));var p_t;(function(t){t.Error=1,t.Warning=2,t.Info=3,t.Log=4})(p_t=A.MessageType||(A.MessageType={}));var h_t;(function(t){t.type=new Ue.ProtocolNotificationType("window/showMessage")})(h_t=A.ShowMessageNotification||(A.ShowMessageNotification={}));var g_t;(function(t){t.type=new Ue.ProtocolRequestType("window/showMessageRequest")})(g_t=A.ShowMessageRequest||(A.ShowMessageRequest={}));var m_t;(function(t){t.type=new Ue.ProtocolNotificationType("window/logMessage")})(m_t=A.LogMessageNotification||(A.LogMessageNotification={}));var y_t;(function(t){t.type=new Ue.ProtocolNotificationType("telemetry/event")})(y_t=A.TelemetryEventNotification||(A.TelemetryEventNotification={}));var b_t;(function(t){t.None=0,t.Full=1,t.Incremental=2})(b_t=A.TextDocumentSyncKind||(A.TextDocumentSyncKind={}));var v_t;(function(t){t.method="textDocument/didOpen",t.type=new Ue.ProtocolNotificationType(t.method)})(v_t=A.DidOpenTextDocumentNotification||(A.DidOpenTextDocumentNotification={}));var w_t;(function(t){function e(n){let i=n;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}t.isIncremental=e;function r(n){let i=n;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}t.isFull=r})(w_t=A.TextDocumentContentChangeEvent||(A.TextDocumentContentChangeEvent={}));var __t;(function(t){t.method="textDocument/didChange",t.type=new Ue.ProtocolNotificationType(t.method)})(__t=A.DidChangeTextDocumentNotification||(A.DidChangeTextDocumentNotification={}));var x_t;(function(t){t.method="textDocument/didClose",t.type=new Ue.ProtocolNotificationType(t.method)})(x_t=A.DidCloseTextDocumentNotification||(A.DidCloseTextDocumentNotification={}));var S_t;(function(t){t.method="textDocument/didSave",t.type=new Ue.ProtocolNotificationType(t.method)})(S_t=A.DidSaveTextDocumentNotification||(A.DidSaveTextDocumentNotification={}));var k_t;(function(t){t.Manual=1,t.AfterDelay=2,t.FocusOut=3})(k_t=A.TextDocumentSaveReason||(A.TextDocumentSaveReason={}));var E_t;(function(t){t.method="textDocument/willSave",t.type=new Ue.ProtocolNotificationType(t.method)})(E_t=A.WillSaveTextDocumentNotification||(A.WillSaveTextDocumentNotification={}));var C_t;(function(t){t.method="textDocument/willSaveWaitUntil",t.type=new Ue.ProtocolRequestType(t.method)})(C_t=A.WillSaveTextDocumentWaitUntilRequest||(A.WillSaveTextDocumentWaitUntilRequest={}));var D_t;(function(t){t.type=new Ue.ProtocolNotificationType("workspace/didChangeWatchedFiles")})(D_t=A.DidChangeWatchedFilesNotification||(A.DidChangeWatchedFilesNotification={}));var O_t;(function(t){t.Created=1,t.Changed=2,t.Deleted=3})(O_t=A.FileChangeType||(A.FileChangeType={}));var q_t;(function(t){t.Create=1,t.Change=2,t.Delete=4})(q_t=A.WatchKind||(A.WatchKind={}));var R_t;(function(t){t.type=new Ue.ProtocolNotificationType("textDocument/publishDiagnostics")})(R_t=A.PublishDiagnosticsNotification||(A.PublishDiagnosticsNotification={}));var A_t;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.TriggerForIncompleteCompletions=3})(A_t=A.CompletionTriggerKind||(A.CompletionTriggerKind={}));var P_t;(function(t){t.method="textDocument/completion",t.type=new Ue.ProtocolRequestType(t.method)})(P_t=A.CompletionRequest||(A.CompletionRequest={}));var T_t;(function(t){t.method="completionItem/resolve",t.type=new Ue.ProtocolRequestType(t.method)})(T_t=A.CompletionResolveRequest||(A.CompletionResolveRequest={}));var M_t;(function(t){t.method="textDocument/hover",t.type=new Ue.ProtocolRequestType(t.method)})(M_t=A.HoverRequest||(A.HoverRequest={}));var L_t;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.ContentChange=3})(L_t=A.SignatureHelpTriggerKind||(A.SignatureHelpTriggerKind={}));var F_t;(function(t){t.method="textDocument/signatureHelp",t.type=new Ue.ProtocolRequestType(t.method)})(F_t=A.SignatureHelpRequest||(A.SignatureHelpRequest={}));var I_t;(function(t){t.method="textDocument/definition",t.type=new Ue.ProtocolRequestType(t.method)})(I_t=A.DefinitionRequest||(A.DefinitionRequest={}));var N_t;(function(t){t.method="textDocument/references",t.type=new Ue.ProtocolRequestType(t.method)})(N_t=A.ReferencesRequest||(A.ReferencesRequest={}));var j_t;(function(t){t.method="textDocument/documentHighlight",t.type=new Ue.ProtocolRequestType(t.method)})(j_t=A.DocumentHighlightRequest||(A.DocumentHighlightRequest={}));var $_t;(function(t){t.method="textDocument/documentSymbol",t.type=new Ue.ProtocolRequestType(t.method)})($_t=A.DocumentSymbolRequest||(A.DocumentSymbolRequest={}));var B_t;(function(t){t.method="textDocument/codeAction",t.type=new Ue.ProtocolRequestType(t.method)})(B_t=A.CodeActionRequest||(A.CodeActionRequest={}));var W_t;(function(t){t.method="codeAction/resolve",t.type=new Ue.ProtocolRequestType(t.method)})(W_t=A.CodeActionResolveRequest||(A.CodeActionResolveRequest={}));var z_t;(function(t){t.method="workspace/symbol",t.type=new Ue.ProtocolRequestType(t.method)})(z_t=A.WorkspaceSymbolRequest||(A.WorkspaceSymbolRequest={}));var U_t;(function(t){t.method="textDocument/codeLens",t.type=new Ue.ProtocolRequestType(t.method)})(U_t=A.CodeLensRequest||(A.CodeLensRequest={}));var H_t;(function(t){t.method="codeLens/resolve",t.type=new Ue.ProtocolRequestType(t.method)})(H_t=A.CodeLensResolveRequest||(A.CodeLensResolveRequest={}));var V_t;(function(t){t.method="workspace/codeLens/refresh",t.type=new Ue.ProtocolRequestType0(t.method)})(V_t=A.CodeLensRefreshRequest||(A.CodeLensRefreshRequest={}));var G_t;(function(t){t.method="textDocument/documentLink",t.type=new Ue.ProtocolRequestType(t.method)})(G_t=A.DocumentLinkRequest||(A.DocumentLinkRequest={}));var K_t;(function(t){t.method="documentLink/resolve",t.type=new Ue.ProtocolRequestType(t.method)})(K_t=A.DocumentLinkResolveRequest||(A.DocumentLinkResolveRequest={}));var Y_t;(function(t){t.method="textDocument/formatting",t.type=new Ue.ProtocolRequestType(t.method)})(Y_t=A.DocumentFormattingRequest||(A.DocumentFormattingRequest={}));var Q_t;(function(t){t.method="textDocument/rangeFormatting",t.type=new Ue.ProtocolRequestType(t.method)})(Q_t=A.DocumentRangeFormattingRequest||(A.DocumentRangeFormattingRequest={}));var J_t;(function(t){t.method="textDocument/onTypeFormatting",t.type=new Ue.ProtocolRequestType(t.method)})(J_t=A.DocumentOnTypeFormattingRequest||(A.DocumentOnTypeFormattingRequest={}));var X_t;(function(t){t.Identifier=1})(X_t=A.PrepareSupportDefaultBehavior||(A.PrepareSupportDefaultBehavior={}));var Z_t;(function(t){t.method="textDocument/rename",t.type=new Ue.ProtocolRequestType(t.method)})(Z_t=A.RenameRequest||(A.RenameRequest={}));var ext;(function(t){t.method="textDocument/prepareRename",t.type=new Ue.ProtocolRequestType(t.method)})(ext=A.PrepareRenameRequest||(A.PrepareRenameRequest={}));var txt;(function(t){t.type=new Ue.ProtocolRequestType("workspace/executeCommand")})(txt=A.ExecuteCommandRequest||(A.ExecuteCommandRequest={}));var rxt;(function(t){t.type=new Ue.ProtocolRequestType("workspace/applyEdit")})(rxt=A.ApplyWorkspaceEditRequest||(A.ApplyWorkspaceEditRequest={}))});var yme=m(Yk=>{"use strict";Object.defineProperty(Yk,"__esModule",{value:!0});Yk.createProtocolConnection=void 0;var mme=Gl();function nxt(t,e,r,n){return mme.ConnectionStrategy.is(n)&&(n={connectionStrategy:n}),mme.createMessageConnection(t,e,r,n)}Yk.createProtocolConnection=nxt});var bme=m(Jr=>{"use strict";var ixt=Jr&&Jr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Qk=Jr&&Jr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ixt(e,t,r)};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.LSPErrorCodes=Jr.createProtocolConnection=void 0;Qk(Gl(),Jr);Qk(zge(),Jr);Qk(mr(),Jr);Qk(gme(),Jr);var sxt=yme();Object.defineProperty(Jr,"createProtocolConnection",{enumerable:!0,get:function(){return sxt.createProtocolConnection}});var oxt;(function(t){t.lspReservedErrorRangeStart=-32899,t.ContentModified=-32801,t.RequestCancelled=-32800,t.lspReservedErrorRangeEnd=-32800})(oxt=Jr.LSPErrorCodes||(Jr.LSPErrorCodes={}))});var Cn=m(Vi=>{"use strict";var axt=Vi&&Vi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),vme=Vi&&Vi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&axt(e,t,r)};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.createProtocolConnection=void 0;var uxt=JI();vme(JI(),Vi);vme(bme(),Vi);function lxt(t,e,r,n){return uxt.createMessageConnection(t,e,r,n)}Vi.createProtocolConnection=lxt});var a3=m(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.generateUuid=Kn.parse=Kn.isUUID=Kn.v4=Kn.empty=void 0;var $p=class{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}},Ke=class extends $p{constructor(){super([Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),"-",Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),"-","4",Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),"-",Ke._oneOf(Ke._timeHighBits),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),"-",Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return Ke._oneOf(Ke._chars)}};Ke._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Ke._timeHighBits=["8","9","a","b"];Kn.empty=new $p("00000000-0000-0000-0000-000000000000");function wme(){return new Ke}Kn.v4=wme;var cxt=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function _me(t){return cxt.test(t)}Kn.isUUID=_me;function fxt(t){if(!_me(t))throw new Error("invalid uuid");return new $p(t)}Kn.parse=fxt;function dxt(){return wme().asHex()}Kn.generateUuid=dxt});var xme=m(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.attachPartialResult=wo.ProgressFeature=wo.attachWorkDone=void 0;var vo=Cn(),pxt=a3(),Gi=class{constructor(e,r){this._connection=e,this._token=r,Gi.Instances.set(this._token,this)}begin(e,r,n,i){let s={kind:"begin",title:e,percentage:r,message:n,cancellable:i};this._connection.sendProgress(vo.WorkDoneProgress.type,this._token,s)}report(e,r){let n={kind:"report"};typeof e=="number"?(n.percentage=e,r!==void 0&&(n.message=r)):n.message=e,this._connection.sendProgress(vo.WorkDoneProgress.type,this._token,n)}done(){Gi.Instances.delete(this._token),this._connection.sendProgress(vo.WorkDoneProgress.type,this._token,{kind:"end"})}};Gi.Instances=new Map;var Jk=class extends Gi{constructor(e,r){super(e,r),this._source=new vo.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Bp=class{constructor(){}begin(){}report(){}done(){}},Xk=class extends Bp{constructor(){super(),this._source=new vo.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function hxt(t,e){if(e===void 0||e.workDoneToken===void 0)return new Bp;let r=e.workDoneToken;return delete e.workDoneToken,new Gi(t,r)}wo.attachWorkDone=hxt;var gxt=t=>class extends t{constructor(){super(),this._progressSupported=!1}initialize(e){var r;((r=e?.window)===null||r===void 0?void 0:r.workDoneProgress)===!0&&(this._progressSupported=!0,this.connection.onNotification(vo.WorkDoneProgressCancelNotification.type,n=>{let i=Gi.Instances.get(n.token);(i instanceof Jk||i instanceof Xk)&&i.cancel()}))}attachWorkDoneProgress(e){return e===void 0?new Bp:new Gi(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){let e=pxt.generateUuid();return this.connection.sendRequest(vo.WorkDoneProgressCreateRequest.type,{token:e}).then(()=>new Jk(this.connection,e))}else return Promise.resolve(new Xk)}};wo.ProgressFeature=gxt;var u3;(function(t){t.type=new vo.ProgressType})(u3||(u3={}));var l3=class{constructor(e,r){this._connection=e,this._token=r}report(e){this._connection.sendProgress(u3.type,this._token,e)}};function mxt(t,e){if(e===void 0||e.partialResultToken===void 0)return;let r=e.partialResultToken;return delete e.partialResultToken,new l3(t,r)}wo.attachPartialResult=mxt});var Sme=m(Zk=>{"use strict";Object.defineProperty(Zk,"__esModule",{value:!0});Zk.ConfigurationFeature=void 0;var yxt=Cn(),bxt=Lk(),vxt=t=>class extends t{getConfiguration(e){return e?bxt.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let r={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(yxt.ConfigurationRequest.type,r).then(n=>Array.isArray(e)?n:n[0])}};Zk.ConfigurationFeature=vxt});var kme=m(tE=>{"use strict";Object.defineProperty(tE,"__esModule",{value:!0});tE.WorkspaceFoldersFeature=void 0;var eE=Cn(),wxt=t=>class extends t{initialize(e){let r=e.workspace;r&&r.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new eE.Emitter,this.connection.onNotification(eE.DidChangeWorkspaceFoldersNotification.type,n=>{this._onDidChangeWorkspaceFolders.fire(n.event)}))}getWorkspaceFolders(){return this.connection.sendRequest(eE.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return this._unregistration||(this._unregistration=this.connection.client.register(eE.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};tE.WorkspaceFoldersFeature=wxt});var Eme=m(rE=>{"use strict";Object.defineProperty(rE,"__esModule",{value:!0});rE.CallHierarchyFeature=void 0;var c3=Cn(),_xt=t=>class extends t{get callHierarchy(){return{onPrepare:e=>{this.connection.onRequest(c3.CallHierarchyPrepareRequest.type,(r,n)=>e(r,n,this.attachWorkDoneProgress(r),void 0))},onIncomingCalls:e=>{let r=c3.CallHierarchyIncomingCallsRequest.type;this.connection.onRequest(r,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(r,n)))},onOutgoingCalls:e=>{let r=c3.CallHierarchyOutgoingCallsRequest.type;this.connection.onRequest(r,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(r,n)))}}}};rE.CallHierarchyFeature=_xt});var p3=m(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.SemanticTokensBuilder=Ql.SemanticTokensFeature=void 0;var f3=Cn(),xxt=t=>class extends t{get semanticTokens(){return{on:e=>{let r=f3.SemanticTokensRequest.type;this.connection.onRequest(r,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(r,n)))},onDelta:e=>{let r=f3.SemanticTokensDeltaRequest.type;this.connection.onRequest(r,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(r,n)))},onRange:e=>{let r=f3.SemanticTokensRangeRequest.type;this.connection.onRequest(r,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(r,n)))}}}};Ql.SemanticTokensFeature=xxt;var d3=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,r,n,i,s){let o=e,a=r;this._dataLen>0&&(o-=this._prevLine,o===0&&(a-=this._prevChar)),this._data[this._dataLen++]=o,this._data[this._dataLen++]=a,this._data[this._dataLen++]=n,this._data[this._dataLen++]=i,this._data[this._dataLen++]=s,this._prevLine=e,this._prevChar=r}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){if(this._prevData!==void 0){let e=this._prevData.length,r=this._data.length,n=0;for(;n<r&&n<e&&this._prevData[n]===this._data[n];)n++;if(n<r&&n<e){let i=0;for(;i<r&&i<e&&this._prevData[e-1-i]===this._data[r-1-i];)i++;let s=this._data.slice(n,r-i);return{resultId:this.id,edits:[{start:n,deleteCount:e-i-n,data:s}]}}else return n<r?{resultId:this.id,edits:[{start:n,deleteCount:0,data:this._data.slice(n)}]}:n<e?{resultId:this.id,edits:[{start:n,deleteCount:e-n}]}:{resultId:this.id,edits:[]}}else return this.build()}};Ql.SemanticTokensBuilder=d3});var Cme=m(nE=>{"use strict";Object.defineProperty(nE,"__esModule",{value:!0});nE.ShowDocumentFeature=void 0;var Sxt=Cn(),kxt=t=>class extends t{showDocument(e){return this.connection.sendRequest(Sxt.ShowDocumentRequest.type,e)}};nE.ShowDocumentFeature=kxt});var Dme=m(iE=>{"use strict";Object.defineProperty(iE,"__esModule",{value:!0});iE.FileOperationsFeature=void 0;var Jl=Cn(),Ext=t=>class extends t{onDidCreateFiles(e){this.connection.onNotification(Jl.DidCreateFilesNotification.type,r=>{e(r)})}onDidRenameFiles(e){this.connection.onNotification(Jl.DidRenameFilesNotification.type,r=>{e(r)})}onDidDeleteFiles(e){this.connection.onNotification(Jl.DidDeleteFilesNotification.type,r=>{e(r)})}onWillCreateFiles(e){return this.connection.onRequest(Jl.WillCreateFilesRequest.type,(r,n)=>e(r,n))}onWillRenameFiles(e){return this.connection.onRequest(Jl.WillRenameFilesRequest.type,(r,n)=>e(r,n))}onWillDeleteFiles(e){return this.connection.onRequest(Jl.WillDeleteFilesRequest.type,(r,n)=>e(r,n))}};iE.FileOperationsFeature=Ext});var Ome=m(sE=>{"use strict";Object.defineProperty(sE,"__esModule",{value:!0});sE.LinkedEditingRangeFeature=void 0;var Cxt=Cn(),Dxt=t=>class extends t{onLinkedEditingRange(e){this.connection.onRequest(Cxt.LinkedEditingRangeRequest.type,(r,n)=>e(r,n,this.attachWorkDoneProgress(r),void 0))}};sE.LinkedEditingRangeFeature=Dxt});var qme=m(oE=>{"use strict";Object.defineProperty(oE,"__esModule",{value:!0});oE.MonikerFeature=void 0;var Oxt=Cn(),qxt=t=>class extends t{get moniker(){return{on:e=>{let r=Oxt.MonikerRequest.type;this.connection.onRequest(r,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(r,n)))}}}};oE.MonikerFeature=qxt});var w3=m(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.createConnection=nt.combineFeatures=nt.combineLanguagesFeatures=nt.combineWorkspaceFeatures=nt.combineWindowFeatures=nt.combineClientFeatures=nt.combineTracerFeatures=nt.combineTelemetryFeatures=nt.combineConsoleFeatures=nt._LanguagesImpl=nt.BulkUnregistration=nt.BulkRegistration=nt.ErrorMessageTracker=nt.TextDocuments=void 0;var ge=Cn(),Yn=Lk(),g3=a3(),He=xme(),Rxt=Sme(),Axt=kme(),Pxt=Eme(),Txt=p3(),Mxt=Cme(),Lxt=Dme(),Fxt=Ome(),Ixt=qme();function h3(t){if(t!==null)return t}var m3=class{constructor(e){this._documents=Object.create(null),this._configuration=e,this._onDidChangeContent=new ge.Emitter,this._onDidOpen=new ge.Emitter,this._onDidClose=new ge.Emitter,this._onDidSave=new ge.Emitter,this._onWillSave=new ge.Emitter}get onDidChangeContent(){return this._onDidChangeContent.event}get onDidOpen(){return this._onDidOpen.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._documents[e]}all(){return Object.keys(this._documents).map(e=>this._documents[e])}keys(){return Object.keys(this._documents)}listen(e){e.__textDocumentSync=ge.TextDocumentSyncKind.Full,e.onDidOpenTextDocument(r=>{let n=r.textDocument,i=this._configuration.create(n.uri,n.languageId,n.version,n.text);this._documents[n.uri]=i;let s=Object.freeze({document:i});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)}),e.onDidChangeTextDocument(r=>{let n=r.textDocument,i=r.contentChanges;if(i.length===0)return;let s=this._documents[n.uri],{version:o}=n;if(o==null)throw new Error(`Received document change event for ${n.uri} without valid version identifier`);s=this._configuration.update(s,i,o),this._documents[n.uri]=s,this._onDidChangeContent.fire(Object.freeze({document:s}))}),e.onDidCloseTextDocument(r=>{let n=this._documents[r.textDocument.uri];n&&(delete this._documents[r.textDocument.uri],this._onDidClose.fire(Object.freeze({document:n})))}),e.onWillSaveTextDocument(r=>{let n=this._documents[r.textDocument.uri];n&&this._onWillSave.fire(Object.freeze({document:n,reason:r.reason}))}),e.onWillSaveTextDocumentWaitUntil((r,n)=>{let i=this._documents[r.textDocument.uri];return i&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:i,reason:r.reason}),n):[]}),e.onDidSaveTextDocument(r=>{let n=this._documents[r.textDocument.uri];n&&this._onDidSave.fire(Object.freeze({document:n}))})}};nt.TextDocuments=m3;var y3=class{constructor(){this._messages=Object.create(null)}add(e){let r=this._messages[e];r||(r=0),r++,this._messages[e]=r}sendErrors(e){Object.keys(this._messages).forEach(r=>{e.window.showErrorMessage(r)})}};nt.ErrorMessageTracker=y3;var aE=class{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(ge.MessageType.Error,e)}warn(e){this.send(ge.MessageType.Warning,e)}info(e){this.send(ge.MessageType.Info,e)}log(e){this.send(ge.MessageType.Log,e)}send(e,r){this._rawConnection&&this._rawConnection.sendNotification(ge.LogMessageNotification.type,{type:e,message:r})}},b3=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...r){let n={type:ge.MessageType.Error,message:e,actions:r};return this.connection.sendRequest(ge.ShowMessageRequest.type,n).then(h3)}showWarningMessage(e,...r){let n={type:ge.MessageType.Warning,message:e,actions:r};return this.connection.sendRequest(ge.ShowMessageRequest.type,n).then(h3)}showInformationMessage(e,...r){let n={type:ge.MessageType.Info,message:e,actions:r};return this.connection.sendRequest(ge.ShowMessageRequest.type,n).then(h3)}},Rme=Mxt.ShowDocumentFeature(He.ProgressFeature(b3)),Nxt;(function(t){function e(){return new uE}t.create=e})(Nxt=nt.BulkRegistration||(nt.BulkRegistration={}));var uE=class{constructor(){this._registrations=[],this._registered=new Set}add(e,r){let n=Yn.string(e)?e:e.method;if(this._registered.has(n))throw new Error(`${n} is already added to this registration`);let i=g3.generateUuid();this._registrations.push({id:i,method:n,registerOptions:r||{}}),this._registered.add(n)}asRegistrationParams(){return{registrations:this._registrations}}},jxt;(function(t){function e(){return new Wp(void 0,[])}t.create=e})(jxt=nt.BulkUnregistration||(nt.BulkUnregistration={}));var Wp=class{constructor(e,r){this._connection=e,this._unregistrations=new Map,r.forEach(n=>{this._unregistrations.set(n.method,n)})}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let n of this._unregistrations.values())e.push(n);let r={unregisterations:e};this._connection.sendRequest(ge.UnregistrationRequest.type,r).then(void 0,n=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(e){let r=Yn.string(e)?e:e.method,n=this._unregistrations.get(r);if(!n)return!1;let i={unregisterations:[n]};return this._connection.sendRequest(ge.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(r)},s=>{this._connection.console.info(`Un-registering request handler for ${n.id} failed.`)}),!0}},lE=class{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,r,n){return e instanceof uE?this.registerMany(e):e instanceof Wp?this.registerSingle1(e,r,n):this.registerSingle2(e,r)}registerSingle1(e,r,n){let i=Yn.string(r)?r:r.method,s=g3.generateUuid(),o={registrations:[{id:s,method:i,registerOptions:n||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(ge.RegistrationRequest.type,o).then(a=>(e.add({id:s,method:i}),e),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(e,r){let n=Yn.string(e)?e:e.method,i=g3.generateUuid(),s={registrations:[{id:i,method:n,registerOptions:r||{}}]};return this.connection.sendRequest(ge.RegistrationRequest.type,s).then(o=>ge.Disposable.create(()=>{this.unregisterSingle(i,n)}),o=>(this.connection.console.info(`Registering request handler for ${n} failed.`),Promise.reject(o)))}unregisterSingle(e,r){let n={unregisterations:[{id:e,method:r}]};return this.connection.sendRequest(ge.UnregistrationRequest.type,n).then(void 0,i=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)})}registerMany(e){let r=e.asRegistrationParams();return this.connection.sendRequest(ge.RegistrationRequest.type,r).then(()=>new Wp(this._connection,r.registrations.map(n=>({id:n.id,method:n.method}))),n=>(this.connection.console.info("Bulk registration failed."),Promise.reject(n)))}},v3=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){function r(i){return i&&!!i.edit}let n=r(e)?e:{edit:e};return this.connection.sendRequest(ge.ApplyWorkspaceEditRequest.type,n)}},Ame=Lxt.FileOperationsFeature(Axt.WorkspaceFoldersFeature(Rxt.ConfigurationFeature(v3))),cE=class{constructor(){this._trace=ge.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,r){this._trace!==ge.Trace.Off&&this.connection.sendNotification(ge.LogTraceNotification.type,{message:e,verbose:this._trace===ge.Trace.Verbose?r:void 0})}},fE=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(ge.TelemetryEventNotification.type,e)}},dE=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return He.attachWorkDone(this.connection,e)}attachPartialResultProgress(e,r){return He.attachPartialResult(this.connection,r)}};nt._LanguagesImpl=dE;var Pme=Ixt.MonikerFeature(Fxt.LinkedEditingRangeFeature(Txt.SemanticTokensFeature(Pxt.CallHierarchyFeature(dE))));function Tme(t,e){return function(r){return e(t(r))}}nt.combineConsoleFeatures=Tme;function Mme(t,e){return function(r){return e(t(r))}}nt.combineTelemetryFeatures=Mme;function Lme(t,e){return function(r){return e(t(r))}}nt.combineTracerFeatures=Lme;function Fme(t,e){return function(r){return e(t(r))}}nt.combineClientFeatures=Fme;function Ime(t,e){return function(r){return e(t(r))}}nt.combineWindowFeatures=Ime;function Nme(t,e){return function(r){return e(t(r))}}nt.combineWorkspaceFeatures=Nme;function $xt(t,e){return function(r){return e(t(r))}}nt.combineLanguagesFeatures=$xt;function Bxt(t,e){function r(i,s,o){return i&&s?o(i,s):i||s}return{__brand:"features",console:r(t.console,e.console,Tme),tracer:r(t.tracer,e.tracer,Lme),telemetry:r(t.telemetry,e.telemetry,Mme),client:r(t.client,e.client,Fme),window:r(t.window,e.window,Ime),workspace:r(t.workspace,e.workspace,Nme)}}nt.combineFeatures=Bxt;function Wxt(t,e,r){let n=r&&r.console?new(r.console(aE)):new aE,i=t(n);n.rawAttach(i);let s=r&&r.tracer?new(r.tracer(cE)):new cE,o=r&&r.telemetry?new(r.telemetry(fE)):new fE,a=r&&r.client?new(r.client(lE)):new lE,u=r&&r.window?new(r.window(Rme)):new Rme,l=r&&r.workspace?new(r.workspace(Ame)):new Ame,c=r&&r.languages?new(r.languages(Pme)):new Pme,f=[n,s,o,a,u,l,c];function d(g){return g instanceof Promise?g:Yn.thenable(g)?new Promise((b,w)=>{g.then(_=>b(_),_=>w(_))}):Promise.resolve(g)}let p,h,y,v={listen:()=>i.listen(),sendRequest:(g,...b)=>i.sendRequest(Yn.string(g)?g:g.method,...b),onRequest:(g,b)=>i.onRequest(g,b),sendNotification:(g,b)=>{let w=Yn.string(g)?g:g.method;arguments.length===1?i.sendNotification(w):i.sendNotification(w,b)},onNotification:(g,b)=>i.onNotification(g,b),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:g=>h=g,onInitialized:g=>i.onNotification(ge.InitializedNotification.type,g),onShutdown:g=>p=g,onExit:g=>y=g,get console(){return n},get telemetry(){return o},get tracer(){return s},get client(){return a},get window(){return u},get workspace(){return l},get languages(){return c},onDidChangeConfiguration:g=>i.onNotification(ge.DidChangeConfigurationNotification.type,g),onDidChangeWatchedFiles:g=>i.onNotification(ge.DidChangeWatchedFilesNotification.type,g),__textDocumentSync:void 0,onDidOpenTextDocument:g=>i.onNotification(ge.DidOpenTextDocumentNotification.type,g),onDidChangeTextDocument:g=>i.onNotification(ge.DidChangeTextDocumentNotification.type,g),onDidCloseTextDocument:g=>i.onNotification(ge.DidCloseTextDocumentNotification.type,g),onWillSaveTextDocument:g=>i.onNotification(ge.WillSaveTextDocumentNotification.type,g),onWillSaveTextDocumentWaitUntil:g=>i.onRequest(ge.WillSaveTextDocumentWaitUntilRequest.type,g),onDidSaveTextDocument:g=>i.onNotification(ge.DidSaveTextDocumentNotification.type,g),sendDiagnostics:g=>i.sendNotification(ge.PublishDiagnosticsNotification.type,g),onHover:g=>i.onRequest(ge.HoverRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),void 0)),onCompletion:g=>i.onRequest(ge.CompletionRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onCompletionResolve:g=>i.onRequest(ge.CompletionResolveRequest.type,g),onSignatureHelp:g=>i.onRequest(ge.SignatureHelpRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),void 0)),onDeclaration:g=>i.onRequest(ge.DeclarationRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onDefinition:g=>i.onRequest(ge.DefinitionRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onTypeDefinition:g=>i.onRequest(ge.TypeDefinitionRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onImplementation:g=>i.onRequest(ge.ImplementationRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onReferences:g=>i.onRequest(ge.ReferencesRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onDocumentHighlight:g=>i.onRequest(ge.DocumentHighlightRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onDocumentSymbol:g=>i.onRequest(ge.DocumentSymbolRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onWorkspaceSymbol:g=>i.onRequest(ge.WorkspaceSymbolRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onCodeAction:g=>i.onRequest(ge.CodeActionRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onCodeActionResolve:g=>i.onRequest(ge.CodeActionResolveRequest.type,(b,w)=>g(b,w)),onCodeLens:g=>i.onRequest(ge.CodeLensRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onCodeLensResolve:g=>i.onRequest(ge.CodeLensResolveRequest.type,(b,w)=>g(b,w)),onDocumentFormatting:g=>i.onRequest(ge.DocumentFormattingRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),void 0)),onDocumentRangeFormatting:g=>i.onRequest(ge.DocumentRangeFormattingRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),void 0)),onDocumentOnTypeFormatting:g=>i.onRequest(ge.DocumentOnTypeFormattingRequest.type,(b,w)=>g(b,w)),onRenameRequest:g=>i.onRequest(ge.RenameRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),void 0)),onPrepareRename:g=>i.onRequest(ge.PrepareRenameRequest.type,(b,w)=>g(b,w)),onDocumentLinks:g=>i.onRequest(ge.DocumentLinkRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onDocumentLinkResolve:g=>i.onRequest(ge.DocumentLinkResolveRequest.type,(b,w)=>g(b,w)),onDocumentColor:g=>i.onRequest(ge.DocumentColorRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onColorPresentation:g=>i.onRequest(ge.ColorPresentationRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onFoldingRanges:g=>i.onRequest(ge.FoldingRangeRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onSelectionRanges:g=>i.onRequest(ge.SelectionRangeRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onExecuteCommand:g=>i.onRequest(ge.ExecuteCommandRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),void 0)),dispose:()=>i.dispose()};for(let g of f)g.attach(v);return i.onRequest(ge.InitializeRequest.type,g=>{e.initialize(g),Yn.string(g.trace)&&(s.trace=ge.Trace.fromString(g.trace));for(let b of f)b.initialize(g.capabilities);if(h){let b=h(g,new ge.CancellationTokenSource().token,He.attachWorkDone(i,g),void 0);return d(b).then(w=>{if(w instanceof ge.ResponseError)return w;let _=w;_||(_={capabilities:{}});let S=_.capabilities;S||(S={},_.capabilities=S),S.textDocumentSync===void 0||S.textDocumentSync===null?S.textDocumentSync=Yn.number(v.__textDocumentSync)?v.__textDocumentSync:ge.TextDocumentSyncKind.None:!Yn.number(S.textDocumentSync)&&!Yn.number(S.textDocumentSync.change)&&(S.textDocumentSync.change=Yn.number(v.__textDocumentSync)?v.__textDocumentSync:ge.TextDocumentSyncKind.None);for(let q of f)q.fillServerCapabilities(S);return _})}else{let b={capabilities:{textDocumentSync:ge.TextDocumentSyncKind.None}};for(let w of f)w.fillServerCapabilities(b.capabilities);return b}}),i.onRequest(ge.ShutdownRequest.type,()=>{if(e.shutdownReceived=!0,p)return p(new ge.CancellationTokenSource().token)}),i.onNotification(ge.ExitNotification.type,()=>{try{y&&y()}finally{e.shutdownReceived?e.exit(0):e.exit(1)}}),i.onNotification(ge.SetTraceNotification.type,g=>{s.trace=ge.Trace.fromString(g.value)}),v}nt.createConnection=Wxt});var $me=m(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.resolveModulePath=Xr.FileSystem=Xr.resolveGlobalYarnPath=Xr.resolveGlobalNodePath=Xr.resolve=Xr.uriToFilePath=void 0;var zxt=H("url"),yi=H("path"),_3=H("fs"),k3=H("child_process");function Uxt(t){let e=zxt.parse(t);if(e.protocol!=="file:"||!e.path)return;let r=e.path.split("/");for(var n=0,i=r.length;n<i;n++)r[n]=decodeURIComponent(r[n]);if(process.platform==="win32"&&r.length>1){let s=r[0],o=r[1];s.length===0&&o.length>1&&o[1]===":"&&r.shift()}return yi.normalize(r.join("/"))}Xr.uriToFilePath=Uxt;function x3(){return process.platform==="win32"}function pE(t,e,r,n){let i="NODE_PATH",s=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise((o,a)=>{let u=process.env,l=Object.create(null);Object.keys(u).forEach(c=>l[c]=u[c]),e&&_3.existsSync(e)&&(l[i]?l[i]=e+yi.delimiter+l[i]:l[i]=e,n&&n(`NODE_PATH value is: ${l[i]}`)),l.ELECTRON_RUN_AS_NODE="1";try{let c=k3.fork("",[],{cwd:r,env:l,execArgv:["-e",s]});if(c.pid===void 0){a(new Error(`Starting process to resolve node module ${t} failed`));return}c.on("error",d=>{a(d)}),c.on("message",d=>{d.c==="r"&&(c.send({c:"e"}),d.s?o(d.r):a(new Error(`Failed to resolve module: ${t}`)))});let f={c:"rs",a:t};c.send(f)}catch(c){a(c)}})}Xr.resolve=pE;function S3(t){let e="npm",r=Object.create(null);Object.keys(process.env).forEach(s=>r[s]=process.env[s]),r.NO_UPDATE_NOTIFIER="true";let n={encoding:"utf8",env:r};x3()&&(e="npm.cmd",n.shell=!0);let i=()=>{};try{process.on("SIGPIPE",i);let s=k3.spawnSync(e,["config","get","prefix"],n).stdout;if(!s){t&&t("'npm config get prefix' didn't return a value.");return}let o=s.trim();return t&&t(`'npm config get prefix' value is: ${o}`),o.length>0?x3()?yi.join(o,"node_modules"):yi.join(o,"lib","node_modules"):void 0}catch{return}finally{process.removeListener("SIGPIPE",i)}}Xr.resolveGlobalNodePath=S3;function Hxt(t){let e="yarn",r={encoding:"utf8"};x3()&&(e="yarn.cmd",r.shell=!0);let n=()=>{};try{process.on("SIGPIPE",n);let i=k3.spawnSync(e,["global","dir","--json"],r),s=i.stdout;if(!s){t&&(t("'yarn global dir' didn't return a value."),i.stderr&&t(i.stderr));return}let o=s.trim().split(/\r?\n/);for(let a of o)try{let u=JSON.parse(a);if(u.type==="log")return yi.join(u.data,"node_modules")}catch{}return}catch{return}finally{process.removeListener("SIGPIPE",n)}}Xr.resolveGlobalYarnPath=Hxt;var jme;(function(t){let e;function r(){return e!==void 0||(process.platform==="win32"?e=!1:e=!_3.existsSync(__filename.toUpperCase())||!_3.existsSync(__filename.toLowerCase())),e}t.isCaseSensitive=r;function n(i,s){return r()?yi.normalize(s).indexOf(yi.normalize(i))===0:yi.normalize(s).toLowerCase().indexOf(yi.normalize(i).toLowerCase())===0}t.isParent=n})(jme=Xr.FileSystem||(Xr.FileSystem={}));function Vxt(t,e,r,n){return r?(yi.isAbsolute(r)||(r=yi.join(t,r)),pE(e,r,r,n).then(i=>jme.isParent(r,i)?i:Promise.reject(new Error(`Failed to load ${e} from node path location.`))).then(void 0,i=>pE(e,S3(n),t,n))):pE(e,S3(n),t,n)}Xr.resolveModulePath=Vxt});var E3=m((Njt,Bme)=>{"use strict";Bme.exports=Cn()});var zme=m(Dn=>{"use strict";var Gxt=Dn&&Dn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Wme=Dn&&Dn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Gxt(e,t,r)};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.ProposedFeatures=Dn.SemanticTokensBuilder=void 0;var Kxt=p3();Object.defineProperty(Dn,"SemanticTokensBuilder",{enumerable:!0,get:function(){return Kxt.SemanticTokensBuilder}});Wme(Cn(),Dn);Wme(w3(),Dn);var Yxt;(function(t){t.all={__brand:"features"}})(Yxt=Dn.ProposedFeatures||(Dn.ProposedFeatures={}))});var D3=m(On=>{"use strict";var Qxt=On&&On.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hme=On&&On.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Qxt(e,t,r)};Object.defineProperty(On,"__esModule",{value:!0});On.createConnection=On.Files=void 0;var C3=Lk(),Jxt=w3(),zp=$me(),za=E3();Hme(E3(),On);Hme(zme(),On);var Xxt;(function(t){t.uriToFilePath=zp.uriToFilePath,t.resolveGlobalNodePath=zp.resolveGlobalNodePath,t.resolveGlobalYarnPath=zp.resolveGlobalYarnPath,t.resolve=zp.resolve,t.resolveModulePath=zp.resolveModulePath})(Xxt=On.Files||(On.Files={}));var Ume;function hE(){if(Ume!==void 0)try{Ume.end()}catch{}}var Xl=!1,Vme;function Zxt(){let t="--clientProcessId";function e(r){try{let n=parseInt(r);isNaN(n)||(Vme=setInterval(()=>{try{process.kill(n,0)}catch{hE(),process.exit(Xl?0:1)}},3e3))}catch{}}for(let r=2;r<process.argv.length;r++){let n=process.argv[r];if(n===t&&r+1<process.argv.length){e(process.argv[r+1]);return}else{let i=n.split("=");i[0]===t&&e(i[1])}}}Zxt();var e1t={initialize:t=>{let e=t.processId;C3.number(e)&&Vme===void 0&&setInterval(()=>{try{process.kill(e,0)}catch{process.exit(Xl?0:1)}},3e3)},get shutdownReceived(){return Xl},set shutdownReceived(t){Xl=t},exit:t=>{hE(),process.exit(t)}};function t1t(t,e,r,n){let i,s,o,a;return t!==void 0&&t.__brand==="features"&&(i=t,t=e,e=r,r=n),za.ConnectionStrategy.is(t)||za.ConnectionOptions.is(t)?a=t:(s=t,o=e,a=r),r1t(s,o,a,i)}On.createConnection=t1t;function r1t(t,e,r,n){if(!t&&!e&&process.argv.length>2){let a,u,l=process.argv.slice(2);for(let c=0;c<l.length;c++){let f=l[c];if(f==="--node-ipc"){t=new za.IPCMessageReader(process),e=new za.IPCMessageWriter(process);break}else if(f==="--stdio"){t=process.stdin,e=process.stdout;break}else if(f==="--socket"){a=parseInt(l[c+1]);break}else if(f==="--pipe"){u=l[c+1];break}else{var i=f.split("=");if(i[0]==="--socket"){a=parseInt(i[1]);break}else if(i[0]==="--pipe"){u=i[1];break}}}if(a){let c=za.createServerSocketTransport(a);t=c[0],e=c[1]}else if(u){let c=za.createServerPipeTransport(u);t=c[0],e=c[1]}}var s="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!t)throw new Error("Connection input stream is not set. "+s);if(!e)throw new Error("Connection output stream is not set. "+s);if(C3.func(t.read)&&C3.func(t.on)){let a=t;a.on("end",()=>{hE(),process.exit(Xl?0:1)}),a.on("close",()=>{hE(),process.exit(Xl?0:1)})}let o=a=>za.createProtocolConnection(t,e,a,r);return Jxt.createConnection(o,e1t,n)}});var Up=m((Bjt,Gme)=>{"use strict";Gme.exports=D3()});var Yme=m((Wjt,Kme)=>{"use strict";var gE=H("path");function n1t(t){if(typeof t!="string"||t.length<=7||t.substring(0,7)!=="file://")throw new TypeError("must pass in a file:// URI to convert to a file path");let e=decodeURI(t.substring(7)),r=e.indexOf("/"),n=e.substring(0,r),i=e.substring(r+1);return n==="localhost"&&(n=""),n&&(n=gE.sep+gE.sep+n),i=i.replace(/^(.+)\|/,"$1:"),gE.sep==="\\"&&(i=i.replace(/\//g,"\\")),/^.+:/.test(i)||(i=gE.sep+i),n+i}Kme.exports=n1t});var Jme=m((zjt,Qme)=>{var i1t=typeof process=="object"&&process&&process.platform==="win32";Qme.exports=i1t?{sep:"\\"}:{sep:"/"}});var sye=m((Ujt,iye)=>{var Xme=Bg();iye.exports=a1t;var Zme="\0SLASH"+Math.random()+"\0",eye="\0OPEN"+Math.random()+"\0",q3="\0CLOSE"+Math.random()+"\0",tye="\0COMMA"+Math.random()+"\0",rye="\0PERIOD"+Math.random()+"\0";function O3(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function s1t(t){return t.split("\\\\").join(Zme).split("\\{").join(eye).split("\\}").join(q3).split("\\,").join(tye).split("\\.").join(rye)}function o1t(t){return t.split(Zme).join("\\").split(eye).join("{").split(q3).join("}").split(tye).join(",").split(rye).join(".")}function nye(t){if(!t)return[""];var e=[],r=Xme("{","}",t);if(!r)return t.split(",");var n=r.pre,i=r.body,s=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var a=nye(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function a1t(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Hp(s1t(t),!0).map(o1t)):[]}function u1t(t){return"{"+t+"}"}function l1t(t){return/^-?0\d/.test(t)}function c1t(t,e){return t<=e}function f1t(t,e){return t>=e}function Hp(t,e){var r=[],n=Xme("{","}",t);if(!n)return[t];var i=n.pre,s=n.post.length?Hp(n.post,!1):[""];if(/\$$/.test(n.pre))for(var o=0;o<s.length;o++){var a=i+"{"+n.body+"}"+s[o];r.push(a)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),c=u||l,f=n.body.indexOf(",")>=0;if(!c&&!f)return n.post.match(/,.*\}/)?(t=n.pre+"{"+n.body+q3+n.post,Hp(t)):[t];var d;if(c)d=n.body.split(/\.\./);else if(d=nye(n.body),d.length===1&&(d=Hp(d[0],!1).map(u1t),d.length===1))return s.map(function(z){return n.pre+d[0]+z});var p;if(c){var h=O3(d[0]),y=O3(d[1]),v=Math.max(d[0].length,d[1].length),g=d.length==3?Math.abs(O3(d[2])):1,b=c1t,w=y<h;w&&(g*=-1,b=f1t);var _=d.some(l1t);p=[];for(var S=h;b(S,y);S+=g){var q;if(l)q=String.fromCharCode(S),q==="\\"&&(q="");else if(q=String(S),_){var C=v-q.length;if(C>0){var R=new Array(C+1).join("0");S<0?q="-"+R+q.slice(1):q=R+q}}p.push(q)}}else{p=[];for(var O=0;O<d.length;O++)p.push.apply(p,Hp(d[O],!1))}for(var O=0;O<p.length;O++)for(var o=0;o<s.length;o++){var a=i+p[O]+s[o];(!e||c||a)&&r.push(a)}}return r}});var fye=m((Vjt,M3)=>{var qn=M3.exports=(t,e,r={})=>(mE(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Zl(e,r).match(t));M3.exports=qn;var P3=Jme();qn.sep=P3.sep;var bi=Symbol("globstar **");qn.GLOBSTAR=bi;var d1t=sye(),oye={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},T3="[^/]",R3=T3+"*?",p1t="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",h1t="(?:(?!(?:\\/|^)\\.).)*?",lye=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),aye=lye("().*{}+?[]^$\\!"),g1t=lye("[.("),uye=/\/+/;qn.filter=(t,e={})=>(r,n,i)=>qn(r,t,e);var _o=(t,e={})=>{let r={};return Object.keys(t).forEach(n=>r[n]=t[n]),Object.keys(e).forEach(n=>r[n]=e[n]),r};qn.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return qn;let e=qn,r=(n,i,s)=>e(n,i,_o(t,s));return r.Minimatch=class extends e.Minimatch{constructor(i,s){super(i,_o(t,s))}},r.Minimatch.defaults=n=>e.defaults(_o(t,n)).Minimatch,r.filter=(n,i)=>e.filter(n,_o(t,i)),r.defaults=n=>e.defaults(_o(t,n)),r.makeRe=(n,i)=>e.makeRe(n,_o(t,i)),r.braceExpand=(n,i)=>e.braceExpand(n,_o(t,i)),r.match=(n,i,s)=>e.match(n,i,_o(t,s)),r};qn.braceExpand=(t,e)=>cye(t,e);var cye=(t,e={})=>(mE(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:d1t(t)),m1t=1024*64,mE=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>m1t)throw new TypeError("pattern is too long")},A3=Symbol("subparse");qn.makeRe=(t,e)=>new Zl(t,e||{}).makeRe();qn.match=(t,e,r={})=>{let n=new Zl(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t};var y1t=t=>t.replace(/\\(.)/g,"$1"),b1t=t=>t.replace(/\\([^-\]])/g,"$1"),v1t=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),w1t=t=>t.replace(/[[\]\\]/g,"\\$&"),Zl=class{constructor(e,r){mE(e),r||(r={}),this.options=r,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}debug(){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let n=this.globSet=this.braceExpand();r.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,n),n=this.globParts=n.map(i=>i.split(uye)),this.debug(this.pattern,n),n=n.map((i,s,o)=>i.map(this.parse,this)),this.debug(this.pattern,n),n=n.filter(i=>i.indexOf(!1)===-1),this.debug(this.pattern,n),this.set=n}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,r=!1,n=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=e.slice(n)),this.negate=r}matchOne(e,r,n){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:r}),this.debug("matchOne",e.length,r.length);for(var s=0,o=0,a=e.length,u=r.length;s<a&&o<u;s++,o++){this.debug("matchOne loop");var l=r[o],c=e[s];if(this.debug(r,l,c),l===!1)return!1;if(l===bi){this.debug("GLOBSTAR",[r,l,c]);var f=s,d=o+1;if(d===u){for(this.debug("** at the end");s<a;s++)if(e[s]==="."||e[s]===".."||!i.dot&&e[s].charAt(0)===".")return!1;return!0}for(;f<a;){var p=e[f];if(this.debug(`
|
|
426
|
+
`&&k++}D&&W.length>0&&T.push(W.length),this._lineOffsets=T}return this._lineOffsets},E.prototype.positionAt=function(T){T=Math.max(Math.min(T,this._content.length),0);var W=this.getLineOffsets(),D=0,k=W.length;if(k===0)return i.create(0,T);for(;D<k;){var V=Math.floor((D+k)/2);W[V]>T?k=V:D=V+1}var Q=D-1;return i.create(Q,T-W[Q])},E.prototype.offsetAt=function(T){var W=this.getLineOffsets();if(T.line>=W.length)return this._content.length;if(T.line<0)return 0;var D=W[T.line],k=T.line+1<W.length?W[T.line+1]:this._content.length;return Math.max(Math.min(D+T.character,k),D)},Object.defineProperty(E.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),E}(),P;(function(E){var T=Object.prototype.toString;function W(Xe){return typeof Xe<"u"}E.defined=W;function D(Xe){return typeof Xe>"u"}E.undefined=D;function k(Xe){return Xe===!0||Xe===!1}E.boolean=k;function V(Xe){return T.call(Xe)==="[object String]"}E.string=V;function Q(Xe){return T.call(Xe)==="[object Number]"}E.number=Q;function be(Xe,Qa,ch){return T.call(Xe)==="[object Number]"&&Qa<=Xe&&Xe<=ch}E.numberRange=be;function Oe(Xe){return T.call(Xe)==="[object Number]"&&-2147483648<=Xe&&Xe<=2147483647}E.integer=Oe;function Ve(Xe){return T.call(Xe)==="[object Number]"&&0<=Xe&&Xe<=2147483647}E.uinteger=Ve;function bt(Xe){return T.call(Xe)==="[object Function]"}E.func=bt;function rr(Xe){return Xe!==null&&typeof Xe=="object"}E.objectLiteral=rr;function or(Xe,Qa){return Array.isArray(Xe)&&Xe.every(Qa)}E.typedArray=or})(P||(P={}))})});var yr=m(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.ProtocolNotificationType=Gn.ProtocolNotificationType0=Gn.ProtocolRequestType=Gn.ProtocolRequestType0=Gn.RegistrationType=void 0;var Kl=Gl(),XI=class{constructor(e){this.method=e}};Gn.RegistrationType=XI;var ZI=class extends Kl.RequestType0{constructor(e){super(e)}};Gn.ProtocolRequestType0=ZI;var e3=class extends Kl.RequestType{constructor(e){super(e,Kl.ParameterStructures.byName)}};Gn.ProtocolRequestType=e3;var t3=class extends Kl.NotificationType0{constructor(e){super(e)}};Gn.ProtocolNotificationType0=t3;var r3=class extends Kl.NotificationType{constructor(e){super(e,Kl.ParameterStructures.byName)}};Gn.ProtocolNotificationType=r3});var Vge=m(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.objectLiteral=tr.typedArray=tr.stringArray=tr.array=tr.func=tr.error=tr.number=tr.string=tr.boolean=void 0;function Hvt(t){return t===!0||t===!1}tr.boolean=Hvt;function Uge(t){return typeof t=="string"||t instanceof String}tr.string=Uge;function Vvt(t){return typeof t=="number"||t instanceof Number}tr.number=Vvt;function Gvt(t){return t instanceof Error}tr.error=Gvt;function Kvt(t){return typeof t=="function"}tr.func=Kvt;function Hge(t){return Array.isArray(t)}tr.array=Hge;function Yvt(t){return Hge(t)&&t.every(e=>Uge(e))}tr.stringArray=Yvt;function Qvt(t,e){return Array.isArray(t)&&t.every(e)}tr.typedArray=Qvt;function Jvt(t){return t!==null&&typeof t=="object"}tr.objectLiteral=Jvt});var Gge=m(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.ImplementationRequest=void 0;var Xvt=yr(),Zvt;(function(t){t.method="textDocument/implementation",t.type=new Xvt.ProtocolRequestType(t.method)})(Zvt=Pp.ImplementationRequest||(Pp.ImplementationRequest={}))});var Kge=m(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.TypeDefinitionRequest=void 0;var ewt=yr(),twt;(function(t){t.method="textDocument/typeDefinition",t.type=new ewt.ProtocolRequestType(t.method)})(twt=Tp.TypeDefinitionRequest||(Tp.TypeDefinitionRequest={}))});var Qge=m(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.DidChangeWorkspaceFoldersNotification=go.WorkspaceFoldersRequest=void 0;var Yge=yr(),rwt;(function(t){t.type=new Yge.ProtocolRequestType0("workspace/workspaceFolders")})(rwt=go.WorkspaceFoldersRequest||(go.WorkspaceFoldersRequest={}));var nwt;(function(t){t.type=new Yge.ProtocolNotificationType("workspace/didChangeWorkspaceFolders")})(nwt=go.DidChangeWorkspaceFoldersNotification||(go.DidChangeWorkspaceFoldersNotification={}))});var Jge=m(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});Mp.ConfigurationRequest=void 0;var iwt=yr(),swt;(function(t){t.type=new iwt.ProtocolRequestType("workspace/configuration")})(swt=Mp.ConfigurationRequest||(Mp.ConfigurationRequest={}))});var Zge=m(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.ColorPresentationRequest=mo.DocumentColorRequest=void 0;var Xge=yr(),owt;(function(t){t.method="textDocument/documentColor",t.type=new Xge.ProtocolRequestType(t.method)})(owt=mo.DocumentColorRequest||(mo.DocumentColorRequest={}));var awt;(function(t){t.type=new Xge.ProtocolRequestType("textDocument/colorPresentation")})(awt=mo.ColorPresentationRequest||(mo.ColorPresentationRequest={}))});var eme=m(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.FoldingRangeRequest=yo.FoldingRangeKind=void 0;var uwt=yr(),lwt;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(lwt=yo.FoldingRangeKind||(yo.FoldingRangeKind={}));var cwt;(function(t){t.method="textDocument/foldingRange",t.type=new uwt.ProtocolRequestType(t.method)})(cwt=yo.FoldingRangeRequest||(yo.FoldingRangeRequest={}))});var tme=m(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.DeclarationRequest=void 0;var fwt=yr(),dwt;(function(t){t.method="textDocument/declaration",t.type=new fwt.ProtocolRequestType(t.method)})(dwt=Lp.DeclarationRequest||(Lp.DeclarationRequest={}))});var rme=m(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});Fp.SelectionRangeRequest=void 0;var pwt=yr(),hwt;(function(t){t.method="textDocument/selectionRange",t.type=new pwt.ProtocolRequestType(t.method)})(hwt=Fp.SelectionRangeRequest||(Fp.SelectionRangeRequest={}))});var ime=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.WorkDoneProgressCancelNotification=hi.WorkDoneProgressCreateRequest=hi.WorkDoneProgress=void 0;var gwt=Gl(),nme=yr(),mwt;(function(t){t.type=new gwt.ProgressType;function e(r){return r===t.type}t.is=e})(mwt=hi.WorkDoneProgress||(hi.WorkDoneProgress={}));var ywt;(function(t){t.type=new nme.ProtocolRequestType("window/workDoneProgress/create")})(ywt=hi.WorkDoneProgressCreateRequest||(hi.WorkDoneProgressCreateRequest={}));var bwt;(function(t){t.type=new nme.ProtocolNotificationType("window/workDoneProgress/cancel")})(bwt=hi.WorkDoneProgressCancelNotification||(hi.WorkDoneProgressCancelNotification={}))});var sme=m(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.CallHierarchyOutgoingCallsRequest=gi.CallHierarchyIncomingCallsRequest=gi.CallHierarchyPrepareRequest=void 0;var n3=yr(),vwt;(function(t){t.method="textDocument/prepareCallHierarchy",t.type=new n3.ProtocolRequestType(t.method)})(vwt=gi.CallHierarchyPrepareRequest||(gi.CallHierarchyPrepareRequest={}));var wwt;(function(t){t.method="callHierarchy/incomingCalls",t.type=new n3.ProtocolRequestType(t.method)})(wwt=gi.CallHierarchyIncomingCallsRequest||(gi.CallHierarchyIncomingCallsRequest={}));var _wt;(function(t){t.method="callHierarchy/outgoingCalls",t.type=new n3.ProtocolRequestType(t.method)})(_wt=gi.CallHierarchyOutgoingCallsRequest||(gi.CallHierarchyOutgoingCallsRequest={}))});var ome=m(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.SemanticTokensRefreshRequest=ft.SemanticTokensRangeRequest=ft.SemanticTokensDeltaRequest=ft.SemanticTokensRequest=ft.SemanticTokensRegistrationType=ft.TokenFormat=ft.SemanticTokens=ft.SemanticTokenModifiers=ft.SemanticTokenTypes=void 0;var Ip=yr(),xwt;(function(t){t.namespace="namespace",t.type="type",t.class="class",t.enum="enum",t.interface="interface",t.struct="struct",t.typeParameter="typeParameter",t.parameter="parameter",t.variable="variable",t.property="property",t.enumMember="enumMember",t.event="event",t.function="function",t.method="method",t.macro="macro",t.keyword="keyword",t.modifier="modifier",t.comment="comment",t.string="string",t.number="number",t.regexp="regexp",t.operator="operator"})(xwt=ft.SemanticTokenTypes||(ft.SemanticTokenTypes={}));var Swt;(function(t){t.declaration="declaration",t.definition="definition",t.readonly="readonly",t.static="static",t.deprecated="deprecated",t.abstract="abstract",t.async="async",t.modification="modification",t.documentation="documentation",t.defaultLibrary="defaultLibrary"})(Swt=ft.SemanticTokenModifiers||(ft.SemanticTokenModifiers={}));var kwt;(function(t){function e(r){let n=r;return n!==void 0&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}t.is=e})(kwt=ft.SemanticTokens||(ft.SemanticTokens={}));var Ewt;(function(t){t.Relative="relative"})(Ewt=ft.TokenFormat||(ft.TokenFormat={}));var Cwt;(function(t){t.method="textDocument/semanticTokens",t.type=new Ip.RegistrationType(t.method)})(Cwt=ft.SemanticTokensRegistrationType||(ft.SemanticTokensRegistrationType={}));var Dwt;(function(t){t.method="textDocument/semanticTokens/full",t.type=new Ip.ProtocolRequestType(t.method)})(Dwt=ft.SemanticTokensRequest||(ft.SemanticTokensRequest={}));var Owt;(function(t){t.method="textDocument/semanticTokens/full/delta",t.type=new Ip.ProtocolRequestType(t.method)})(Owt=ft.SemanticTokensDeltaRequest||(ft.SemanticTokensDeltaRequest={}));var qwt;(function(t){t.method="textDocument/semanticTokens/range",t.type=new Ip.ProtocolRequestType(t.method)})(qwt=ft.SemanticTokensRangeRequest||(ft.SemanticTokensRangeRequest={}));var Rwt;(function(t){t.method="workspace/semanticTokens/refresh",t.type=new Ip.ProtocolRequestType0(t.method)})(Rwt=ft.SemanticTokensRefreshRequest||(ft.SemanticTokensRefreshRequest={}))});var ame=m(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.ShowDocumentRequest=void 0;var Awt=yr(),Pwt;(function(t){t.method="window/showDocument",t.type=new Awt.ProtocolRequestType(t.method)})(Pwt=Np.ShowDocumentRequest||(Np.ShowDocumentRequest={}))});var ume=m(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.LinkedEditingRangeRequest=void 0;var Twt=yr(),Mwt;(function(t){t.method="textDocument/linkedEditingRange",t.type=new Twt.ProtocolRequestType(t.method)})(Mwt=jp.LinkedEditingRangeRequest||(jp.LinkedEditingRangeRequest={}))});var lme=m(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.WillDeleteFilesRequest=Wt.DidDeleteFilesNotification=Wt.DidRenameFilesNotification=Wt.WillRenameFilesRequest=Wt.DidCreateFilesNotification=Wt.WillCreateFilesRequest=Wt.FileOperationPatternKind=void 0;var Yl=yr(),Lwt;(function(t){t.file="file",t.folder="folder"})(Lwt=Wt.FileOperationPatternKind||(Wt.FileOperationPatternKind={}));var Fwt;(function(t){t.method="workspace/willCreateFiles",t.type=new Yl.ProtocolRequestType(t.method)})(Fwt=Wt.WillCreateFilesRequest||(Wt.WillCreateFilesRequest={}));var Iwt;(function(t){t.method="workspace/didCreateFiles",t.type=new Yl.ProtocolNotificationType(t.method)})(Iwt=Wt.DidCreateFilesNotification||(Wt.DidCreateFilesNotification={}));var Nwt;(function(t){t.method="workspace/willRenameFiles",t.type=new Yl.ProtocolRequestType(t.method)})(Nwt=Wt.WillRenameFilesRequest||(Wt.WillRenameFilesRequest={}));var jwt;(function(t){t.method="workspace/didRenameFiles",t.type=new Yl.ProtocolNotificationType(t.method)})(jwt=Wt.DidRenameFilesNotification||(Wt.DidRenameFilesNotification={}));var $wt;(function(t){t.method="workspace/didDeleteFiles",t.type=new Yl.ProtocolNotificationType(t.method)})($wt=Wt.DidDeleteFilesNotification||(Wt.DidDeleteFilesNotification={}));var Bwt;(function(t){t.method="workspace/willDeleteFiles",t.type=new Yl.ProtocolRequestType(t.method)})(Bwt=Wt.WillDeleteFilesRequest||(Wt.WillDeleteFilesRequest={}))});var cme=m(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.MonikerRequest=mi.MonikerKind=mi.UniquenessLevel=void 0;var Wwt=yr(),zwt;(function(t){t.document="document",t.project="project",t.group="group",t.scheme="scheme",t.global="global"})(zwt=mi.UniquenessLevel||(mi.UniquenessLevel={}));var Uwt;(function(t){t.import="import",t.export="export",t.local="local"})(Uwt=mi.MonikerKind||(mi.MonikerKind={}));var Hwt;(function(t){t.method="textDocument/moniker",t.type=new Wwt.ProtocolRequestType(t.method)})(Hwt=mi.MonikerRequest||(mi.MonikerRequest={}))});var gme=m(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.DocumentLinkRequest=A.CodeLensRefreshRequest=A.CodeLensResolveRequest=A.CodeLensRequest=A.WorkspaceSymbolRequest=A.CodeActionResolveRequest=A.CodeActionRequest=A.DocumentSymbolRequest=A.DocumentHighlightRequest=A.ReferencesRequest=A.DefinitionRequest=A.SignatureHelpRequest=A.SignatureHelpTriggerKind=A.HoverRequest=A.CompletionResolveRequest=A.CompletionRequest=A.CompletionTriggerKind=A.PublishDiagnosticsNotification=A.WatchKind=A.FileChangeType=A.DidChangeWatchedFilesNotification=A.WillSaveTextDocumentWaitUntilRequest=A.WillSaveTextDocumentNotification=A.TextDocumentSaveReason=A.DidSaveTextDocumentNotification=A.DidCloseTextDocumentNotification=A.DidChangeTextDocumentNotification=A.TextDocumentContentChangeEvent=A.DidOpenTextDocumentNotification=A.TextDocumentSyncKind=A.TelemetryEventNotification=A.LogMessageNotification=A.ShowMessageRequest=A.ShowMessageNotification=A.MessageType=A.DidChangeConfigurationNotification=A.ExitNotification=A.ShutdownRequest=A.InitializedNotification=A.InitializeError=A.InitializeRequest=A.WorkDoneProgressOptions=A.TextDocumentRegistrationOptions=A.StaticRegistrationOptions=A.FailureHandlingKind=A.ResourceOperationKind=A.UnregistrationRequest=A.RegistrationRequest=A.DocumentSelector=A.DocumentFilter=void 0;A.MonikerRequest=A.MonikerKind=A.UniquenessLevel=A.WillDeleteFilesRequest=A.DidDeleteFilesNotification=A.WillRenameFilesRequest=A.DidRenameFilesNotification=A.WillCreateFilesRequest=A.DidCreateFilesNotification=A.FileOperationPatternKind=A.LinkedEditingRangeRequest=A.ShowDocumentRequest=A.SemanticTokensRegistrationType=A.SemanticTokensRefreshRequest=A.SemanticTokensRangeRequest=A.SemanticTokensDeltaRequest=A.SemanticTokensRequest=A.TokenFormat=A.SemanticTokens=A.SemanticTokenModifiers=A.SemanticTokenTypes=A.CallHierarchyPrepareRequest=A.CallHierarchyOutgoingCallsRequest=A.CallHierarchyIncomingCallsRequest=A.WorkDoneProgressCancelNotification=A.WorkDoneProgressCreateRequest=A.WorkDoneProgress=A.SelectionRangeRequest=A.DeclarationRequest=A.FoldingRangeRequest=A.ColorPresentationRequest=A.DocumentColorRequest=A.ConfigurationRequest=A.DidChangeWorkspaceFoldersNotification=A.WorkspaceFoldersRequest=A.TypeDefinitionRequest=A.ImplementationRequest=A.ApplyWorkspaceEditRequest=A.ExecuteCommandRequest=A.PrepareRenameRequest=A.RenameRequest=A.PrepareSupportDefaultBehavior=A.DocumentOnTypeFormattingRequest=A.DocumentRangeFormattingRequest=A.DocumentFormattingRequest=A.DocumentLinkResolveRequest=void 0;var bo=Vge(),Ue=yr(),Vwt=Gge();Object.defineProperty(A,"ImplementationRequest",{enumerable:!0,get:function(){return Vwt.ImplementationRequest}});var Gwt=Kge();Object.defineProperty(A,"TypeDefinitionRequest",{enumerable:!0,get:function(){return Gwt.TypeDefinitionRequest}});var fme=Qge();Object.defineProperty(A,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return fme.WorkspaceFoldersRequest}});Object.defineProperty(A,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return fme.DidChangeWorkspaceFoldersNotification}});var Kwt=Jge();Object.defineProperty(A,"ConfigurationRequest",{enumerable:!0,get:function(){return Kwt.ConfigurationRequest}});var dme=Zge();Object.defineProperty(A,"DocumentColorRequest",{enumerable:!0,get:function(){return dme.DocumentColorRequest}});Object.defineProperty(A,"ColorPresentationRequest",{enumerable:!0,get:function(){return dme.ColorPresentationRequest}});var Ywt=eme();Object.defineProperty(A,"FoldingRangeRequest",{enumerable:!0,get:function(){return Ywt.FoldingRangeRequest}});var Qwt=tme();Object.defineProperty(A,"DeclarationRequest",{enumerable:!0,get:function(){return Qwt.DeclarationRequest}});var Jwt=rme();Object.defineProperty(A,"SelectionRangeRequest",{enumerable:!0,get:function(){return Jwt.SelectionRangeRequest}});var i3=ime();Object.defineProperty(A,"WorkDoneProgress",{enumerable:!0,get:function(){return i3.WorkDoneProgress}});Object.defineProperty(A,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return i3.WorkDoneProgressCreateRequest}});Object.defineProperty(A,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return i3.WorkDoneProgressCancelNotification}});var s3=sme();Object.defineProperty(A,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return s3.CallHierarchyIncomingCallsRequest}});Object.defineProperty(A,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return s3.CallHierarchyOutgoingCallsRequest}});Object.defineProperty(A,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return s3.CallHierarchyPrepareRequest}});var ks=ome();Object.defineProperty(A,"SemanticTokenTypes",{enumerable:!0,get:function(){return ks.SemanticTokenTypes}});Object.defineProperty(A,"SemanticTokenModifiers",{enumerable:!0,get:function(){return ks.SemanticTokenModifiers}});Object.defineProperty(A,"SemanticTokens",{enumerable:!0,get:function(){return ks.SemanticTokens}});Object.defineProperty(A,"TokenFormat",{enumerable:!0,get:function(){return ks.TokenFormat}});Object.defineProperty(A,"SemanticTokensRequest",{enumerable:!0,get:function(){return ks.SemanticTokensRequest}});Object.defineProperty(A,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return ks.SemanticTokensDeltaRequest}});Object.defineProperty(A,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return ks.SemanticTokensRangeRequest}});Object.defineProperty(A,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return ks.SemanticTokensRefreshRequest}});Object.defineProperty(A,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return ks.SemanticTokensRegistrationType}});var Xwt=ame();Object.defineProperty(A,"ShowDocumentRequest",{enumerable:!0,get:function(){return Xwt.ShowDocumentRequest}});var Zwt=ume();Object.defineProperty(A,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return Zwt.LinkedEditingRangeRequest}});var Wa=lme();Object.defineProperty(A,"FileOperationPatternKind",{enumerable:!0,get:function(){return Wa.FileOperationPatternKind}});Object.defineProperty(A,"DidCreateFilesNotification",{enumerable:!0,get:function(){return Wa.DidCreateFilesNotification}});Object.defineProperty(A,"WillCreateFilesRequest",{enumerable:!0,get:function(){return Wa.WillCreateFilesRequest}});Object.defineProperty(A,"DidRenameFilesNotification",{enumerable:!0,get:function(){return Wa.DidRenameFilesNotification}});Object.defineProperty(A,"WillRenameFilesRequest",{enumerable:!0,get:function(){return Wa.WillRenameFilesRequest}});Object.defineProperty(A,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return Wa.DidDeleteFilesNotification}});Object.defineProperty(A,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return Wa.WillDeleteFilesRequest}});var o3=cme();Object.defineProperty(A,"UniquenessLevel",{enumerable:!0,get:function(){return o3.UniquenessLevel}});Object.defineProperty(A,"MonikerKind",{enumerable:!0,get:function(){return o3.MonikerKind}});Object.defineProperty(A,"MonikerRequest",{enumerable:!0,get:function(){return o3.MonikerRequest}});var pme;(function(t){function e(r){let n=r;return bo.string(n.language)||bo.string(n.scheme)||bo.string(n.pattern)}t.is=e})(pme=A.DocumentFilter||(A.DocumentFilter={}));var hme;(function(t){function e(r){if(!Array.isArray(r))return!1;for(let n of r)if(!bo.string(n)&&!pme.is(n))return!1;return!0}t.is=e})(hme=A.DocumentSelector||(A.DocumentSelector={}));var e_t;(function(t){t.type=new Ue.ProtocolRequestType("client/registerCapability")})(e_t=A.RegistrationRequest||(A.RegistrationRequest={}));var t_t;(function(t){t.type=new Ue.ProtocolRequestType("client/unregisterCapability")})(t_t=A.UnregistrationRequest||(A.UnregistrationRequest={}));var r_t;(function(t){t.Create="create",t.Rename="rename",t.Delete="delete"})(r_t=A.ResourceOperationKind||(A.ResourceOperationKind={}));var n_t;(function(t){t.Abort="abort",t.Transactional="transactional",t.TextOnlyTransactional="textOnlyTransactional",t.Undo="undo"})(n_t=A.FailureHandlingKind||(A.FailureHandlingKind={}));var i_t;(function(t){function e(r){let n=r;return n&&bo.string(n.id)&&n.id.length>0}t.hasId=e})(i_t=A.StaticRegistrationOptions||(A.StaticRegistrationOptions={}));var s_t;(function(t){function e(r){let n=r;return n&&(n.documentSelector===null||hme.is(n.documentSelector))}t.is=e})(s_t=A.TextDocumentRegistrationOptions||(A.TextDocumentRegistrationOptions={}));var o_t;(function(t){function e(n){let i=n;return bo.objectLiteral(i)&&(i.workDoneProgress===void 0||bo.boolean(i.workDoneProgress))}t.is=e;function r(n){let i=n;return i&&bo.boolean(i.workDoneProgress)}t.hasWorkDoneProgress=r})(o_t=A.WorkDoneProgressOptions||(A.WorkDoneProgressOptions={}));var a_t;(function(t){t.type=new Ue.ProtocolRequestType("initialize")})(a_t=A.InitializeRequest||(A.InitializeRequest={}));var u_t;(function(t){t.unknownProtocolVersion=1})(u_t=A.InitializeError||(A.InitializeError={}));var l_t;(function(t){t.type=new Ue.ProtocolNotificationType("initialized")})(l_t=A.InitializedNotification||(A.InitializedNotification={}));var c_t;(function(t){t.type=new Ue.ProtocolRequestType0("shutdown")})(c_t=A.ShutdownRequest||(A.ShutdownRequest={}));var f_t;(function(t){t.type=new Ue.ProtocolNotificationType0("exit")})(f_t=A.ExitNotification||(A.ExitNotification={}));var d_t;(function(t){t.type=new Ue.ProtocolNotificationType("workspace/didChangeConfiguration")})(d_t=A.DidChangeConfigurationNotification||(A.DidChangeConfigurationNotification={}));var p_t;(function(t){t.Error=1,t.Warning=2,t.Info=3,t.Log=4})(p_t=A.MessageType||(A.MessageType={}));var h_t;(function(t){t.type=new Ue.ProtocolNotificationType("window/showMessage")})(h_t=A.ShowMessageNotification||(A.ShowMessageNotification={}));var g_t;(function(t){t.type=new Ue.ProtocolRequestType("window/showMessageRequest")})(g_t=A.ShowMessageRequest||(A.ShowMessageRequest={}));var m_t;(function(t){t.type=new Ue.ProtocolNotificationType("window/logMessage")})(m_t=A.LogMessageNotification||(A.LogMessageNotification={}));var y_t;(function(t){t.type=new Ue.ProtocolNotificationType("telemetry/event")})(y_t=A.TelemetryEventNotification||(A.TelemetryEventNotification={}));var b_t;(function(t){t.None=0,t.Full=1,t.Incremental=2})(b_t=A.TextDocumentSyncKind||(A.TextDocumentSyncKind={}));var v_t;(function(t){t.method="textDocument/didOpen",t.type=new Ue.ProtocolNotificationType(t.method)})(v_t=A.DidOpenTextDocumentNotification||(A.DidOpenTextDocumentNotification={}));var w_t;(function(t){function e(n){let i=n;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")}t.isIncremental=e;function r(n){let i=n;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0}t.isFull=r})(w_t=A.TextDocumentContentChangeEvent||(A.TextDocumentContentChangeEvent={}));var __t;(function(t){t.method="textDocument/didChange",t.type=new Ue.ProtocolNotificationType(t.method)})(__t=A.DidChangeTextDocumentNotification||(A.DidChangeTextDocumentNotification={}));var x_t;(function(t){t.method="textDocument/didClose",t.type=new Ue.ProtocolNotificationType(t.method)})(x_t=A.DidCloseTextDocumentNotification||(A.DidCloseTextDocumentNotification={}));var S_t;(function(t){t.method="textDocument/didSave",t.type=new Ue.ProtocolNotificationType(t.method)})(S_t=A.DidSaveTextDocumentNotification||(A.DidSaveTextDocumentNotification={}));var k_t;(function(t){t.Manual=1,t.AfterDelay=2,t.FocusOut=3})(k_t=A.TextDocumentSaveReason||(A.TextDocumentSaveReason={}));var E_t;(function(t){t.method="textDocument/willSave",t.type=new Ue.ProtocolNotificationType(t.method)})(E_t=A.WillSaveTextDocumentNotification||(A.WillSaveTextDocumentNotification={}));var C_t;(function(t){t.method="textDocument/willSaveWaitUntil",t.type=new Ue.ProtocolRequestType(t.method)})(C_t=A.WillSaveTextDocumentWaitUntilRequest||(A.WillSaveTextDocumentWaitUntilRequest={}));var D_t;(function(t){t.type=new Ue.ProtocolNotificationType("workspace/didChangeWatchedFiles")})(D_t=A.DidChangeWatchedFilesNotification||(A.DidChangeWatchedFilesNotification={}));var O_t;(function(t){t.Created=1,t.Changed=2,t.Deleted=3})(O_t=A.FileChangeType||(A.FileChangeType={}));var q_t;(function(t){t.Create=1,t.Change=2,t.Delete=4})(q_t=A.WatchKind||(A.WatchKind={}));var R_t;(function(t){t.type=new Ue.ProtocolNotificationType("textDocument/publishDiagnostics")})(R_t=A.PublishDiagnosticsNotification||(A.PublishDiagnosticsNotification={}));var A_t;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.TriggerForIncompleteCompletions=3})(A_t=A.CompletionTriggerKind||(A.CompletionTriggerKind={}));var P_t;(function(t){t.method="textDocument/completion",t.type=new Ue.ProtocolRequestType(t.method)})(P_t=A.CompletionRequest||(A.CompletionRequest={}));var T_t;(function(t){t.method="completionItem/resolve",t.type=new Ue.ProtocolRequestType(t.method)})(T_t=A.CompletionResolveRequest||(A.CompletionResolveRequest={}));var M_t;(function(t){t.method="textDocument/hover",t.type=new Ue.ProtocolRequestType(t.method)})(M_t=A.HoverRequest||(A.HoverRequest={}));var L_t;(function(t){t.Invoked=1,t.TriggerCharacter=2,t.ContentChange=3})(L_t=A.SignatureHelpTriggerKind||(A.SignatureHelpTriggerKind={}));var F_t;(function(t){t.method="textDocument/signatureHelp",t.type=new Ue.ProtocolRequestType(t.method)})(F_t=A.SignatureHelpRequest||(A.SignatureHelpRequest={}));var I_t;(function(t){t.method="textDocument/definition",t.type=new Ue.ProtocolRequestType(t.method)})(I_t=A.DefinitionRequest||(A.DefinitionRequest={}));var N_t;(function(t){t.method="textDocument/references",t.type=new Ue.ProtocolRequestType(t.method)})(N_t=A.ReferencesRequest||(A.ReferencesRequest={}));var j_t;(function(t){t.method="textDocument/documentHighlight",t.type=new Ue.ProtocolRequestType(t.method)})(j_t=A.DocumentHighlightRequest||(A.DocumentHighlightRequest={}));var $_t;(function(t){t.method="textDocument/documentSymbol",t.type=new Ue.ProtocolRequestType(t.method)})($_t=A.DocumentSymbolRequest||(A.DocumentSymbolRequest={}));var B_t;(function(t){t.method="textDocument/codeAction",t.type=new Ue.ProtocolRequestType(t.method)})(B_t=A.CodeActionRequest||(A.CodeActionRequest={}));var W_t;(function(t){t.method="codeAction/resolve",t.type=new Ue.ProtocolRequestType(t.method)})(W_t=A.CodeActionResolveRequest||(A.CodeActionResolveRequest={}));var z_t;(function(t){t.method="workspace/symbol",t.type=new Ue.ProtocolRequestType(t.method)})(z_t=A.WorkspaceSymbolRequest||(A.WorkspaceSymbolRequest={}));var U_t;(function(t){t.method="textDocument/codeLens",t.type=new Ue.ProtocolRequestType(t.method)})(U_t=A.CodeLensRequest||(A.CodeLensRequest={}));var H_t;(function(t){t.method="codeLens/resolve",t.type=new Ue.ProtocolRequestType(t.method)})(H_t=A.CodeLensResolveRequest||(A.CodeLensResolveRequest={}));var V_t;(function(t){t.method="workspace/codeLens/refresh",t.type=new Ue.ProtocolRequestType0(t.method)})(V_t=A.CodeLensRefreshRequest||(A.CodeLensRefreshRequest={}));var G_t;(function(t){t.method="textDocument/documentLink",t.type=new Ue.ProtocolRequestType(t.method)})(G_t=A.DocumentLinkRequest||(A.DocumentLinkRequest={}));var K_t;(function(t){t.method="documentLink/resolve",t.type=new Ue.ProtocolRequestType(t.method)})(K_t=A.DocumentLinkResolveRequest||(A.DocumentLinkResolveRequest={}));var Y_t;(function(t){t.method="textDocument/formatting",t.type=new Ue.ProtocolRequestType(t.method)})(Y_t=A.DocumentFormattingRequest||(A.DocumentFormattingRequest={}));var Q_t;(function(t){t.method="textDocument/rangeFormatting",t.type=new Ue.ProtocolRequestType(t.method)})(Q_t=A.DocumentRangeFormattingRequest||(A.DocumentRangeFormattingRequest={}));var J_t;(function(t){t.method="textDocument/onTypeFormatting",t.type=new Ue.ProtocolRequestType(t.method)})(J_t=A.DocumentOnTypeFormattingRequest||(A.DocumentOnTypeFormattingRequest={}));var X_t;(function(t){t.Identifier=1})(X_t=A.PrepareSupportDefaultBehavior||(A.PrepareSupportDefaultBehavior={}));var Z_t;(function(t){t.method="textDocument/rename",t.type=new Ue.ProtocolRequestType(t.method)})(Z_t=A.RenameRequest||(A.RenameRequest={}));var ext;(function(t){t.method="textDocument/prepareRename",t.type=new Ue.ProtocolRequestType(t.method)})(ext=A.PrepareRenameRequest||(A.PrepareRenameRequest={}));var txt;(function(t){t.type=new Ue.ProtocolRequestType("workspace/executeCommand")})(txt=A.ExecuteCommandRequest||(A.ExecuteCommandRequest={}));var rxt;(function(t){t.type=new Ue.ProtocolRequestType("workspace/applyEdit")})(rxt=A.ApplyWorkspaceEditRequest||(A.ApplyWorkspaceEditRequest={}))});var yme=m(Yk=>{"use strict";Object.defineProperty(Yk,"__esModule",{value:!0});Yk.createProtocolConnection=void 0;var mme=Gl();function nxt(t,e,r,n){return mme.ConnectionStrategy.is(n)&&(n={connectionStrategy:n}),mme.createMessageConnection(t,e,r,n)}Yk.createProtocolConnection=nxt});var bme=m(Jr=>{"use strict";var ixt=Jr&&Jr.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Qk=Jr&&Jr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&ixt(e,t,r)};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.LSPErrorCodes=Jr.createProtocolConnection=void 0;Qk(Gl(),Jr);Qk(zge(),Jr);Qk(yr(),Jr);Qk(gme(),Jr);var sxt=yme();Object.defineProperty(Jr,"createProtocolConnection",{enumerable:!0,get:function(){return sxt.createProtocolConnection}});var oxt;(function(t){t.lspReservedErrorRangeStart=-32899,t.ContentModified=-32801,t.RequestCancelled=-32800,t.lspReservedErrorRangeEnd=-32800})(oxt=Jr.LSPErrorCodes||(Jr.LSPErrorCodes={}))});var Cn=m(Vi=>{"use strict";var axt=Vi&&Vi.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),vme=Vi&&Vi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&axt(e,t,r)};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.createProtocolConnection=void 0;var uxt=JI();vme(JI(),Vi);vme(bme(),Vi);function lxt(t,e,r,n){return uxt.createMessageConnection(t,e,r,n)}Vi.createProtocolConnection=lxt});var a3=m(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.generateUuid=Kn.parse=Kn.isUUID=Kn.v4=Kn.empty=void 0;var $p=class{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}},Ke=class extends $p{constructor(){super([Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),"-",Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),"-","4",Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),"-",Ke._oneOf(Ke._timeHighBits),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),"-",Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex(),Ke._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return Ke._oneOf(Ke._chars)}};Ke._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"];Ke._timeHighBits=["8","9","a","b"];Kn.empty=new $p("00000000-0000-0000-0000-000000000000");function wme(){return new Ke}Kn.v4=wme;var cxt=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function _me(t){return cxt.test(t)}Kn.isUUID=_me;function fxt(t){if(!_me(t))throw new Error("invalid uuid");return new $p(t)}Kn.parse=fxt;function dxt(){return wme().asHex()}Kn.generateUuid=dxt});var xme=m(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.attachPartialResult=wo.ProgressFeature=wo.attachWorkDone=void 0;var vo=Cn(),pxt=a3(),Gi=class{constructor(e,r){this._connection=e,this._token=r,Gi.Instances.set(this._token,this)}begin(e,r,n,i){let s={kind:"begin",title:e,percentage:r,message:n,cancellable:i};this._connection.sendProgress(vo.WorkDoneProgress.type,this._token,s)}report(e,r){let n={kind:"report"};typeof e=="number"?(n.percentage=e,r!==void 0&&(n.message=r)):n.message=e,this._connection.sendProgress(vo.WorkDoneProgress.type,this._token,n)}done(){Gi.Instances.delete(this._token),this._connection.sendProgress(vo.WorkDoneProgress.type,this._token,{kind:"end"})}};Gi.Instances=new Map;var Jk=class extends Gi{constructor(e,r){super(e,r),this._source=new vo.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}},Bp=class{constructor(){}begin(){}report(){}done(){}},Xk=class extends Bp{constructor(){super(),this._source=new vo.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}};function hxt(t,e){if(e===void 0||e.workDoneToken===void 0)return new Bp;let r=e.workDoneToken;return delete e.workDoneToken,new Gi(t,r)}wo.attachWorkDone=hxt;var gxt=t=>class extends t{constructor(){super(),this._progressSupported=!1}initialize(e){var r;((r=e?.window)===null||r===void 0?void 0:r.workDoneProgress)===!0&&(this._progressSupported=!0,this.connection.onNotification(vo.WorkDoneProgressCancelNotification.type,n=>{let i=Gi.Instances.get(n.token);(i instanceof Jk||i instanceof Xk)&&i.cancel()}))}attachWorkDoneProgress(e){return e===void 0?new Bp:new Gi(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){let e=pxt.generateUuid();return this.connection.sendRequest(vo.WorkDoneProgressCreateRequest.type,{token:e}).then(()=>new Jk(this.connection,e))}else return Promise.resolve(new Xk)}};wo.ProgressFeature=gxt;var u3;(function(t){t.type=new vo.ProgressType})(u3||(u3={}));var l3=class{constructor(e,r){this._connection=e,this._token=r}report(e){this._connection.sendProgress(u3.type,this._token,e)}};function mxt(t,e){if(e===void 0||e.partialResultToken===void 0)return;let r=e.partialResultToken;return delete e.partialResultToken,new l3(t,r)}wo.attachPartialResult=mxt});var Sme=m(Zk=>{"use strict";Object.defineProperty(Zk,"__esModule",{value:!0});Zk.ConfigurationFeature=void 0;var yxt=Cn(),bxt=Lk(),vxt=t=>class extends t{getConfiguration(e){return e?bxt.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let r={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(yxt.ConfigurationRequest.type,r).then(n=>Array.isArray(e)?n:n[0])}};Zk.ConfigurationFeature=vxt});var kme=m(tE=>{"use strict";Object.defineProperty(tE,"__esModule",{value:!0});tE.WorkspaceFoldersFeature=void 0;var eE=Cn(),wxt=t=>class extends t{initialize(e){let r=e.workspace;r&&r.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new eE.Emitter,this.connection.onNotification(eE.DidChangeWorkspaceFoldersNotification.type,n=>{this._onDidChangeWorkspaceFolders.fire(n.event)}))}getWorkspaceFolders(){return this.connection.sendRequest(eE.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return this._unregistration||(this._unregistration=this.connection.client.register(eE.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};tE.WorkspaceFoldersFeature=wxt});var Eme=m(rE=>{"use strict";Object.defineProperty(rE,"__esModule",{value:!0});rE.CallHierarchyFeature=void 0;var c3=Cn(),_xt=t=>class extends t{get callHierarchy(){return{onPrepare:e=>{this.connection.onRequest(c3.CallHierarchyPrepareRequest.type,(r,n)=>e(r,n,this.attachWorkDoneProgress(r),void 0))},onIncomingCalls:e=>{let r=c3.CallHierarchyIncomingCallsRequest.type;this.connection.onRequest(r,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(r,n)))},onOutgoingCalls:e=>{let r=c3.CallHierarchyOutgoingCallsRequest.type;this.connection.onRequest(r,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(r,n)))}}}};rE.CallHierarchyFeature=_xt});var p3=m(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.SemanticTokensBuilder=Ql.SemanticTokensFeature=void 0;var f3=Cn(),xxt=t=>class extends t{get semanticTokens(){return{on:e=>{let r=f3.SemanticTokensRequest.type;this.connection.onRequest(r,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(r,n)))},onDelta:e=>{let r=f3.SemanticTokensDeltaRequest.type;this.connection.onRequest(r,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(r,n)))},onRange:e=>{let r=f3.SemanticTokensRangeRequest.type;this.connection.onRequest(r,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(r,n)))}}}};Ql.SemanticTokensFeature=xxt;var d3=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,r,n,i,s){let o=e,a=r;this._dataLen>0&&(o-=this._prevLine,o===0&&(a-=this._prevChar)),this._data[this._dataLen++]=o,this._data[this._dataLen++]=a,this._data[this._dataLen++]=n,this._data[this._dataLen++]=i,this._data[this._dataLen++]=s,this._prevLine=e,this._prevChar=r}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return this._prevData!==void 0}buildEdits(){if(this._prevData!==void 0){let e=this._prevData.length,r=this._data.length,n=0;for(;n<r&&n<e&&this._prevData[n]===this._data[n];)n++;if(n<r&&n<e){let i=0;for(;i<r&&i<e&&this._prevData[e-1-i]===this._data[r-1-i];)i++;let s=this._data.slice(n,r-i);return{resultId:this.id,edits:[{start:n,deleteCount:e-i-n,data:s}]}}else return n<r?{resultId:this.id,edits:[{start:n,deleteCount:0,data:this._data.slice(n)}]}:n<e?{resultId:this.id,edits:[{start:n,deleteCount:e-n}]}:{resultId:this.id,edits:[]}}else return this.build()}};Ql.SemanticTokensBuilder=d3});var Cme=m(nE=>{"use strict";Object.defineProperty(nE,"__esModule",{value:!0});nE.ShowDocumentFeature=void 0;var Sxt=Cn(),kxt=t=>class extends t{showDocument(e){return this.connection.sendRequest(Sxt.ShowDocumentRequest.type,e)}};nE.ShowDocumentFeature=kxt});var Dme=m(iE=>{"use strict";Object.defineProperty(iE,"__esModule",{value:!0});iE.FileOperationsFeature=void 0;var Jl=Cn(),Ext=t=>class extends t{onDidCreateFiles(e){this.connection.onNotification(Jl.DidCreateFilesNotification.type,r=>{e(r)})}onDidRenameFiles(e){this.connection.onNotification(Jl.DidRenameFilesNotification.type,r=>{e(r)})}onDidDeleteFiles(e){this.connection.onNotification(Jl.DidDeleteFilesNotification.type,r=>{e(r)})}onWillCreateFiles(e){return this.connection.onRequest(Jl.WillCreateFilesRequest.type,(r,n)=>e(r,n))}onWillRenameFiles(e){return this.connection.onRequest(Jl.WillRenameFilesRequest.type,(r,n)=>e(r,n))}onWillDeleteFiles(e){return this.connection.onRequest(Jl.WillDeleteFilesRequest.type,(r,n)=>e(r,n))}};iE.FileOperationsFeature=Ext});var Ome=m(sE=>{"use strict";Object.defineProperty(sE,"__esModule",{value:!0});sE.LinkedEditingRangeFeature=void 0;var Cxt=Cn(),Dxt=t=>class extends t{onLinkedEditingRange(e){this.connection.onRequest(Cxt.LinkedEditingRangeRequest.type,(r,n)=>e(r,n,this.attachWorkDoneProgress(r),void 0))}};sE.LinkedEditingRangeFeature=Dxt});var qme=m(oE=>{"use strict";Object.defineProperty(oE,"__esModule",{value:!0});oE.MonikerFeature=void 0;var Oxt=Cn(),qxt=t=>class extends t{get moniker(){return{on:e=>{let r=Oxt.MonikerRequest.type;this.connection.onRequest(r,(n,i)=>e(n,i,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(r,n)))}}}};oE.MonikerFeature=qxt});var w3=m(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.createConnection=nt.combineFeatures=nt.combineLanguagesFeatures=nt.combineWorkspaceFeatures=nt.combineWindowFeatures=nt.combineClientFeatures=nt.combineTracerFeatures=nt.combineTelemetryFeatures=nt.combineConsoleFeatures=nt._LanguagesImpl=nt.BulkUnregistration=nt.BulkRegistration=nt.ErrorMessageTracker=nt.TextDocuments=void 0;var ge=Cn(),Yn=Lk(),g3=a3(),He=xme(),Rxt=Sme(),Axt=kme(),Pxt=Eme(),Txt=p3(),Mxt=Cme(),Lxt=Dme(),Fxt=Ome(),Ixt=qme();function h3(t){if(t!==null)return t}var m3=class{constructor(e){this._documents=Object.create(null),this._configuration=e,this._onDidChangeContent=new ge.Emitter,this._onDidOpen=new ge.Emitter,this._onDidClose=new ge.Emitter,this._onDidSave=new ge.Emitter,this._onWillSave=new ge.Emitter}get onDidChangeContent(){return this._onDidChangeContent.event}get onDidOpen(){return this._onDidOpen.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._documents[e]}all(){return Object.keys(this._documents).map(e=>this._documents[e])}keys(){return Object.keys(this._documents)}listen(e){e.__textDocumentSync=ge.TextDocumentSyncKind.Full,e.onDidOpenTextDocument(r=>{let n=r.textDocument,i=this._configuration.create(n.uri,n.languageId,n.version,n.text);this._documents[n.uri]=i;let s=Object.freeze({document:i});this._onDidOpen.fire(s),this._onDidChangeContent.fire(s)}),e.onDidChangeTextDocument(r=>{let n=r.textDocument,i=r.contentChanges;if(i.length===0)return;let s=this._documents[n.uri],{version:o}=n;if(o==null)throw new Error(`Received document change event for ${n.uri} without valid version identifier`);s=this._configuration.update(s,i,o),this._documents[n.uri]=s,this._onDidChangeContent.fire(Object.freeze({document:s}))}),e.onDidCloseTextDocument(r=>{let n=this._documents[r.textDocument.uri];n&&(delete this._documents[r.textDocument.uri],this._onDidClose.fire(Object.freeze({document:n})))}),e.onWillSaveTextDocument(r=>{let n=this._documents[r.textDocument.uri];n&&this._onWillSave.fire(Object.freeze({document:n,reason:r.reason}))}),e.onWillSaveTextDocumentWaitUntil((r,n)=>{let i=this._documents[r.textDocument.uri];return i&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:i,reason:r.reason}),n):[]}),e.onDidSaveTextDocument(r=>{let n=this._documents[r.textDocument.uri];n&&this._onDidSave.fire(Object.freeze({document:n}))})}};nt.TextDocuments=m3;var y3=class{constructor(){this._messages=Object.create(null)}add(e){let r=this._messages[e];r||(r=0),r++,this._messages[e]=r}sendErrors(e){Object.keys(this._messages).forEach(r=>{e.window.showErrorMessage(r)})}};nt.ErrorMessageTracker=y3;var aE=class{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(ge.MessageType.Error,e)}warn(e){this.send(ge.MessageType.Warning,e)}info(e){this.send(ge.MessageType.Info,e)}log(e){this.send(ge.MessageType.Log,e)}send(e,r){this._rawConnection&&this._rawConnection.sendNotification(ge.LogMessageNotification.type,{type:e,message:r})}},b3=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...r){let n={type:ge.MessageType.Error,message:e,actions:r};return this.connection.sendRequest(ge.ShowMessageRequest.type,n).then(h3)}showWarningMessage(e,...r){let n={type:ge.MessageType.Warning,message:e,actions:r};return this.connection.sendRequest(ge.ShowMessageRequest.type,n).then(h3)}showInformationMessage(e,...r){let n={type:ge.MessageType.Info,message:e,actions:r};return this.connection.sendRequest(ge.ShowMessageRequest.type,n).then(h3)}},Rme=Mxt.ShowDocumentFeature(He.ProgressFeature(b3)),Nxt;(function(t){function e(){return new uE}t.create=e})(Nxt=nt.BulkRegistration||(nt.BulkRegistration={}));var uE=class{constructor(){this._registrations=[],this._registered=new Set}add(e,r){let n=Yn.string(e)?e:e.method;if(this._registered.has(n))throw new Error(`${n} is already added to this registration`);let i=g3.generateUuid();this._registrations.push({id:i,method:n,registerOptions:r||{}}),this._registered.add(n)}asRegistrationParams(){return{registrations:this._registrations}}},jxt;(function(t){function e(){return new Wp(void 0,[])}t.create=e})(jxt=nt.BulkUnregistration||(nt.BulkUnregistration={}));var Wp=class{constructor(e,r){this._connection=e,this._unregistrations=new Map,r.forEach(n=>{this._unregistrations.set(n.method,n)})}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let n of this._unregistrations.values())e.push(n);let r={unregisterations:e};this._connection.sendRequest(ge.UnregistrationRequest.type,r).then(void 0,n=>{this._connection.console.info("Bulk unregistration failed.")})}disposeSingle(e){let r=Yn.string(e)?e:e.method,n=this._unregistrations.get(r);if(!n)return!1;let i={unregisterations:[n]};return this._connection.sendRequest(ge.UnregistrationRequest.type,i).then(()=>{this._unregistrations.delete(r)},s=>{this._connection.console.info(`Un-registering request handler for ${n.id} failed.`)}),!0}},lE=class{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,r,n){return e instanceof uE?this.registerMany(e):e instanceof Wp?this.registerSingle1(e,r,n):this.registerSingle2(e,r)}registerSingle1(e,r,n){let i=Yn.string(r)?r:r.method,s=g3.generateUuid(),o={registrations:[{id:s,method:i,registerOptions:n||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(ge.RegistrationRequest.type,o).then(a=>(e.add({id:s,method:i}),e),a=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(a)))}registerSingle2(e,r){let n=Yn.string(e)?e:e.method,i=g3.generateUuid(),s={registrations:[{id:i,method:n,registerOptions:r||{}}]};return this.connection.sendRequest(ge.RegistrationRequest.type,s).then(o=>ge.Disposable.create(()=>{this.unregisterSingle(i,n)}),o=>(this.connection.console.info(`Registering request handler for ${n} failed.`),Promise.reject(o)))}unregisterSingle(e,r){let n={unregisterations:[{id:e,method:r}]};return this.connection.sendRequest(ge.UnregistrationRequest.type,n).then(void 0,i=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)})}registerMany(e){let r=e.asRegistrationParams();return this.connection.sendRequest(ge.RegistrationRequest.type,r).then(()=>new Wp(this._connection,r.registrations.map(n=>({id:n.id,method:n.method}))),n=>(this.connection.console.info("Bulk registration failed."),Promise.reject(n)))}},v3=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){function r(i){return i&&!!i.edit}let n=r(e)?e:{edit:e};return this.connection.sendRequest(ge.ApplyWorkspaceEditRequest.type,n)}},Ame=Lxt.FileOperationsFeature(Axt.WorkspaceFoldersFeature(Rxt.ConfigurationFeature(v3))),cE=class{constructor(){this._trace=ge.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,r){this._trace!==ge.Trace.Off&&this.connection.sendNotification(ge.LogTraceNotification.type,{message:e,verbose:this._trace===ge.Trace.Verbose?r:void 0})}},fE=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(ge.TelemetryEventNotification.type,e)}},dE=class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return He.attachWorkDone(this.connection,e)}attachPartialResultProgress(e,r){return He.attachPartialResult(this.connection,r)}};nt._LanguagesImpl=dE;var Pme=Ixt.MonikerFeature(Fxt.LinkedEditingRangeFeature(Txt.SemanticTokensFeature(Pxt.CallHierarchyFeature(dE))));function Tme(t,e){return function(r){return e(t(r))}}nt.combineConsoleFeatures=Tme;function Mme(t,e){return function(r){return e(t(r))}}nt.combineTelemetryFeatures=Mme;function Lme(t,e){return function(r){return e(t(r))}}nt.combineTracerFeatures=Lme;function Fme(t,e){return function(r){return e(t(r))}}nt.combineClientFeatures=Fme;function Ime(t,e){return function(r){return e(t(r))}}nt.combineWindowFeatures=Ime;function Nme(t,e){return function(r){return e(t(r))}}nt.combineWorkspaceFeatures=Nme;function $xt(t,e){return function(r){return e(t(r))}}nt.combineLanguagesFeatures=$xt;function Bxt(t,e){function r(i,s,o){return i&&s?o(i,s):i||s}return{__brand:"features",console:r(t.console,e.console,Tme),tracer:r(t.tracer,e.tracer,Lme),telemetry:r(t.telemetry,e.telemetry,Mme),client:r(t.client,e.client,Fme),window:r(t.window,e.window,Ime),workspace:r(t.workspace,e.workspace,Nme)}}nt.combineFeatures=Bxt;function Wxt(t,e,r){let n=r&&r.console?new(r.console(aE)):new aE,i=t(n);n.rawAttach(i);let s=r&&r.tracer?new(r.tracer(cE)):new cE,o=r&&r.telemetry?new(r.telemetry(fE)):new fE,a=r&&r.client?new(r.client(lE)):new lE,u=r&&r.window?new(r.window(Rme)):new Rme,l=r&&r.workspace?new(r.workspace(Ame)):new Ame,c=r&&r.languages?new(r.languages(Pme)):new Pme,f=[n,s,o,a,u,l,c];function d(g){return g instanceof Promise?g:Yn.thenable(g)?new Promise((b,w)=>{g.then(_=>b(_),_=>w(_))}):Promise.resolve(g)}let p,h,y,v={listen:()=>i.listen(),sendRequest:(g,...b)=>i.sendRequest(Yn.string(g)?g:g.method,...b),onRequest:(g,b)=>i.onRequest(g,b),sendNotification:(g,b)=>{let w=Yn.string(g)?g:g.method;arguments.length===1?i.sendNotification(w):i.sendNotification(w,b)},onNotification:(g,b)=>i.onNotification(g,b),onProgress:i.onProgress,sendProgress:i.sendProgress,onInitialize:g=>h=g,onInitialized:g=>i.onNotification(ge.InitializedNotification.type,g),onShutdown:g=>p=g,onExit:g=>y=g,get console(){return n},get telemetry(){return o},get tracer(){return s},get client(){return a},get window(){return u},get workspace(){return l},get languages(){return c},onDidChangeConfiguration:g=>i.onNotification(ge.DidChangeConfigurationNotification.type,g),onDidChangeWatchedFiles:g=>i.onNotification(ge.DidChangeWatchedFilesNotification.type,g),__textDocumentSync:void 0,onDidOpenTextDocument:g=>i.onNotification(ge.DidOpenTextDocumentNotification.type,g),onDidChangeTextDocument:g=>i.onNotification(ge.DidChangeTextDocumentNotification.type,g),onDidCloseTextDocument:g=>i.onNotification(ge.DidCloseTextDocumentNotification.type,g),onWillSaveTextDocument:g=>i.onNotification(ge.WillSaveTextDocumentNotification.type,g),onWillSaveTextDocumentWaitUntil:g=>i.onRequest(ge.WillSaveTextDocumentWaitUntilRequest.type,g),onDidSaveTextDocument:g=>i.onNotification(ge.DidSaveTextDocumentNotification.type,g),sendDiagnostics:g=>i.sendNotification(ge.PublishDiagnosticsNotification.type,g),onHover:g=>i.onRequest(ge.HoverRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),void 0)),onCompletion:g=>i.onRequest(ge.CompletionRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onCompletionResolve:g=>i.onRequest(ge.CompletionResolveRequest.type,g),onSignatureHelp:g=>i.onRequest(ge.SignatureHelpRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),void 0)),onDeclaration:g=>i.onRequest(ge.DeclarationRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onDefinition:g=>i.onRequest(ge.DefinitionRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onTypeDefinition:g=>i.onRequest(ge.TypeDefinitionRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onImplementation:g=>i.onRequest(ge.ImplementationRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onReferences:g=>i.onRequest(ge.ReferencesRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onDocumentHighlight:g=>i.onRequest(ge.DocumentHighlightRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onDocumentSymbol:g=>i.onRequest(ge.DocumentSymbolRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onWorkspaceSymbol:g=>i.onRequest(ge.WorkspaceSymbolRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onCodeAction:g=>i.onRequest(ge.CodeActionRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onCodeActionResolve:g=>i.onRequest(ge.CodeActionResolveRequest.type,(b,w)=>g(b,w)),onCodeLens:g=>i.onRequest(ge.CodeLensRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onCodeLensResolve:g=>i.onRequest(ge.CodeLensResolveRequest.type,(b,w)=>g(b,w)),onDocumentFormatting:g=>i.onRequest(ge.DocumentFormattingRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),void 0)),onDocumentRangeFormatting:g=>i.onRequest(ge.DocumentRangeFormattingRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),void 0)),onDocumentOnTypeFormatting:g=>i.onRequest(ge.DocumentOnTypeFormattingRequest.type,(b,w)=>g(b,w)),onRenameRequest:g=>i.onRequest(ge.RenameRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),void 0)),onPrepareRename:g=>i.onRequest(ge.PrepareRenameRequest.type,(b,w)=>g(b,w)),onDocumentLinks:g=>i.onRequest(ge.DocumentLinkRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onDocumentLinkResolve:g=>i.onRequest(ge.DocumentLinkResolveRequest.type,(b,w)=>g(b,w)),onDocumentColor:g=>i.onRequest(ge.DocumentColorRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onColorPresentation:g=>i.onRequest(ge.ColorPresentationRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onFoldingRanges:g=>i.onRequest(ge.FoldingRangeRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onSelectionRanges:g=>i.onRequest(ge.SelectionRangeRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),He.attachPartialResult(i,b))),onExecuteCommand:g=>i.onRequest(ge.ExecuteCommandRequest.type,(b,w)=>g(b,w,He.attachWorkDone(i,b),void 0)),dispose:()=>i.dispose()};for(let g of f)g.attach(v);return i.onRequest(ge.InitializeRequest.type,g=>{e.initialize(g),Yn.string(g.trace)&&(s.trace=ge.Trace.fromString(g.trace));for(let b of f)b.initialize(g.capabilities);if(h){let b=h(g,new ge.CancellationTokenSource().token,He.attachWorkDone(i,g),void 0);return d(b).then(w=>{if(w instanceof ge.ResponseError)return w;let _=w;_||(_={capabilities:{}});let S=_.capabilities;S||(S={},_.capabilities=S),S.textDocumentSync===void 0||S.textDocumentSync===null?S.textDocumentSync=Yn.number(v.__textDocumentSync)?v.__textDocumentSync:ge.TextDocumentSyncKind.None:!Yn.number(S.textDocumentSync)&&!Yn.number(S.textDocumentSync.change)&&(S.textDocumentSync.change=Yn.number(v.__textDocumentSync)?v.__textDocumentSync:ge.TextDocumentSyncKind.None);for(let q of f)q.fillServerCapabilities(S);return _})}else{let b={capabilities:{textDocumentSync:ge.TextDocumentSyncKind.None}};for(let w of f)w.fillServerCapabilities(b.capabilities);return b}}),i.onRequest(ge.ShutdownRequest.type,()=>{if(e.shutdownReceived=!0,p)return p(new ge.CancellationTokenSource().token)}),i.onNotification(ge.ExitNotification.type,()=>{try{y&&y()}finally{e.shutdownReceived?e.exit(0):e.exit(1)}}),i.onNotification(ge.SetTraceNotification.type,g=>{s.trace=ge.Trace.fromString(g.value)}),v}nt.createConnection=Wxt});var $me=m(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.resolveModulePath=Xr.FileSystem=Xr.resolveGlobalYarnPath=Xr.resolveGlobalNodePath=Xr.resolve=Xr.uriToFilePath=void 0;var zxt=H("url"),yi=H("path"),_3=H("fs"),k3=H("child_process");function Uxt(t){let e=zxt.parse(t);if(e.protocol!=="file:"||!e.path)return;let r=e.path.split("/");for(var n=0,i=r.length;n<i;n++)r[n]=decodeURIComponent(r[n]);if(process.platform==="win32"&&r.length>1){let s=r[0],o=r[1];s.length===0&&o.length>1&&o[1]===":"&&r.shift()}return yi.normalize(r.join("/"))}Xr.uriToFilePath=Uxt;function x3(){return process.platform==="win32"}function pE(t,e,r,n){let i="NODE_PATH",s=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise((o,a)=>{let u=process.env,l=Object.create(null);Object.keys(u).forEach(c=>l[c]=u[c]),e&&_3.existsSync(e)&&(l[i]?l[i]=e+yi.delimiter+l[i]:l[i]=e,n&&n(`NODE_PATH value is: ${l[i]}`)),l.ELECTRON_RUN_AS_NODE="1";try{let c=k3.fork("",[],{cwd:r,env:l,execArgv:["-e",s]});if(c.pid===void 0){a(new Error(`Starting process to resolve node module ${t} failed`));return}c.on("error",d=>{a(d)}),c.on("message",d=>{d.c==="r"&&(c.send({c:"e"}),d.s?o(d.r):a(new Error(`Failed to resolve module: ${t}`)))});let f={c:"rs",a:t};c.send(f)}catch(c){a(c)}})}Xr.resolve=pE;function S3(t){let e="npm",r=Object.create(null);Object.keys(process.env).forEach(s=>r[s]=process.env[s]),r.NO_UPDATE_NOTIFIER="true";let n={encoding:"utf8",env:r};x3()&&(e="npm.cmd",n.shell=!0);let i=()=>{};try{process.on("SIGPIPE",i);let s=k3.spawnSync(e,["config","get","prefix"],n).stdout;if(!s){t&&t("'npm config get prefix' didn't return a value.");return}let o=s.trim();return t&&t(`'npm config get prefix' value is: ${o}`),o.length>0?x3()?yi.join(o,"node_modules"):yi.join(o,"lib","node_modules"):void 0}catch{return}finally{process.removeListener("SIGPIPE",i)}}Xr.resolveGlobalNodePath=S3;function Hxt(t){let e="yarn",r={encoding:"utf8"};x3()&&(e="yarn.cmd",r.shell=!0);let n=()=>{};try{process.on("SIGPIPE",n);let i=k3.spawnSync(e,["global","dir","--json"],r),s=i.stdout;if(!s){t&&(t("'yarn global dir' didn't return a value."),i.stderr&&t(i.stderr));return}let o=s.trim().split(/\r?\n/);for(let a of o)try{let u=JSON.parse(a);if(u.type==="log")return yi.join(u.data,"node_modules")}catch{}return}catch{return}finally{process.removeListener("SIGPIPE",n)}}Xr.resolveGlobalYarnPath=Hxt;var jme;(function(t){let e;function r(){return e!==void 0||(process.platform==="win32"?e=!1:e=!_3.existsSync(__filename.toUpperCase())||!_3.existsSync(__filename.toLowerCase())),e}t.isCaseSensitive=r;function n(i,s){return r()?yi.normalize(s).indexOf(yi.normalize(i))===0:yi.normalize(s).toLowerCase().indexOf(yi.normalize(i).toLowerCase())===0}t.isParent=n})(jme=Xr.FileSystem||(Xr.FileSystem={}));function Vxt(t,e,r,n){return r?(yi.isAbsolute(r)||(r=yi.join(t,r)),pE(e,r,r,n).then(i=>jme.isParent(r,i)?i:Promise.reject(new Error(`Failed to load ${e} from node path location.`))).then(void 0,i=>pE(e,S3(n),t,n))):pE(e,S3(n),t,n)}Xr.resolveModulePath=Vxt});var E3=m((Njt,Bme)=>{"use strict";Bme.exports=Cn()});var zme=m(Dn=>{"use strict";var Gxt=Dn&&Dn.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Wme=Dn&&Dn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Gxt(e,t,r)};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.ProposedFeatures=Dn.SemanticTokensBuilder=void 0;var Kxt=p3();Object.defineProperty(Dn,"SemanticTokensBuilder",{enumerable:!0,get:function(){return Kxt.SemanticTokensBuilder}});Wme(Cn(),Dn);Wme(w3(),Dn);var Yxt;(function(t){t.all={__brand:"features"}})(Yxt=Dn.ProposedFeatures||(Dn.ProposedFeatures={}))});var D3=m(On=>{"use strict";var Qxt=On&&On.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Hme=On&&On.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Qxt(e,t,r)};Object.defineProperty(On,"__esModule",{value:!0});On.createConnection=On.Files=void 0;var C3=Lk(),Jxt=w3(),zp=$me(),za=E3();Hme(E3(),On);Hme(zme(),On);var Xxt;(function(t){t.uriToFilePath=zp.uriToFilePath,t.resolveGlobalNodePath=zp.resolveGlobalNodePath,t.resolveGlobalYarnPath=zp.resolveGlobalYarnPath,t.resolve=zp.resolve,t.resolveModulePath=zp.resolveModulePath})(Xxt=On.Files||(On.Files={}));var Ume;function hE(){if(Ume!==void 0)try{Ume.end()}catch{}}var Xl=!1,Vme;function Zxt(){let t="--clientProcessId";function e(r){try{let n=parseInt(r);isNaN(n)||(Vme=setInterval(()=>{try{process.kill(n,0)}catch{hE(),process.exit(Xl?0:1)}},3e3))}catch{}}for(let r=2;r<process.argv.length;r++){let n=process.argv[r];if(n===t&&r+1<process.argv.length){e(process.argv[r+1]);return}else{let i=n.split("=");i[0]===t&&e(i[1])}}}Zxt();var e1t={initialize:t=>{let e=t.processId;C3.number(e)&&Vme===void 0&&setInterval(()=>{try{process.kill(e,0)}catch{process.exit(Xl?0:1)}},3e3)},get shutdownReceived(){return Xl},set shutdownReceived(t){Xl=t},exit:t=>{hE(),process.exit(t)}};function t1t(t,e,r,n){let i,s,o,a;return t!==void 0&&t.__brand==="features"&&(i=t,t=e,e=r,r=n),za.ConnectionStrategy.is(t)||za.ConnectionOptions.is(t)?a=t:(s=t,o=e,a=r),r1t(s,o,a,i)}On.createConnection=t1t;function r1t(t,e,r,n){if(!t&&!e&&process.argv.length>2){let a,u,l=process.argv.slice(2);for(let c=0;c<l.length;c++){let f=l[c];if(f==="--node-ipc"){t=new za.IPCMessageReader(process),e=new za.IPCMessageWriter(process);break}else if(f==="--stdio"){t=process.stdin,e=process.stdout;break}else if(f==="--socket"){a=parseInt(l[c+1]);break}else if(f==="--pipe"){u=l[c+1];break}else{var i=f.split("=");if(i[0]==="--socket"){a=parseInt(i[1]);break}else if(i[0]==="--pipe"){u=i[1];break}}}if(a){let c=za.createServerSocketTransport(a);t=c[0],e=c[1]}else if(u){let c=za.createServerPipeTransport(u);t=c[0],e=c[1]}}var s="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!t)throw new Error("Connection input stream is not set. "+s);if(!e)throw new Error("Connection output stream is not set. "+s);if(C3.func(t.read)&&C3.func(t.on)){let a=t;a.on("end",()=>{hE(),process.exit(Xl?0:1)}),a.on("close",()=>{hE(),process.exit(Xl?0:1)})}let o=a=>za.createProtocolConnection(t,e,a,r);return Jxt.createConnection(o,e1t,n)}});var Up=m((Bjt,Gme)=>{"use strict";Gme.exports=D3()});var Yme=m((Wjt,Kme)=>{"use strict";var gE=H("path");function n1t(t){if(typeof t!="string"||t.length<=7||t.substring(0,7)!=="file://")throw new TypeError("must pass in a file:// URI to convert to a file path");let e=decodeURI(t.substring(7)),r=e.indexOf("/"),n=e.substring(0,r),i=e.substring(r+1);return n==="localhost"&&(n=""),n&&(n=gE.sep+gE.sep+n),i=i.replace(/^(.+)\|/,"$1:"),gE.sep==="\\"&&(i=i.replace(/\//g,"\\")),/^.+:/.test(i)||(i=gE.sep+i),n+i}Kme.exports=n1t});var Jme=m((zjt,Qme)=>{var i1t=typeof process=="object"&&process&&process.platform==="win32";Qme.exports=i1t?{sep:"\\"}:{sep:"/"}});var sye=m((Ujt,iye)=>{var Xme=Bg();iye.exports=a1t;var Zme="\0SLASH"+Math.random()+"\0",eye="\0OPEN"+Math.random()+"\0",q3="\0CLOSE"+Math.random()+"\0",tye="\0COMMA"+Math.random()+"\0",rye="\0PERIOD"+Math.random()+"\0";function O3(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function s1t(t){return t.split("\\\\").join(Zme).split("\\{").join(eye).split("\\}").join(q3).split("\\,").join(tye).split("\\.").join(rye)}function o1t(t){return t.split(Zme).join("\\").split(eye).join("{").split(q3).join("}").split(tye).join(",").split(rye).join(".")}function nye(t){if(!t)return[""];var e=[],r=Xme("{","}",t);if(!r)return t.split(",");var n=r.pre,i=r.body,s=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var a=nye(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function a1t(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),Hp(s1t(t),!0).map(o1t)):[]}function u1t(t){return"{"+t+"}"}function l1t(t){return/^-?0\d/.test(t)}function c1t(t,e){return t<=e}function f1t(t,e){return t>=e}function Hp(t,e){var r=[],n=Xme("{","}",t);if(!n)return[t];var i=n.pre,s=n.post.length?Hp(n.post,!1):[""];if(/\$$/.test(n.pre))for(var o=0;o<s.length;o++){var a=i+"{"+n.body+"}"+s[o];r.push(a)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),c=u||l,f=n.body.indexOf(",")>=0;if(!c&&!f)return n.post.match(/,.*\}/)?(t=n.pre+"{"+n.body+q3+n.post,Hp(t)):[t];var d;if(c)d=n.body.split(/\.\./);else if(d=nye(n.body),d.length===1&&(d=Hp(d[0],!1).map(u1t),d.length===1))return s.map(function(z){return n.pre+d[0]+z});var p;if(c){var h=O3(d[0]),y=O3(d[1]),v=Math.max(d[0].length,d[1].length),g=d.length==3?Math.abs(O3(d[2])):1,b=c1t,w=y<h;w&&(g*=-1,b=f1t);var _=d.some(l1t);p=[];for(var S=h;b(S,y);S+=g){var q;if(l)q=String.fromCharCode(S),q==="\\"&&(q="");else if(q=String(S),_){var C=v-q.length;if(C>0){var R=new Array(C+1).join("0");S<0?q="-"+R+q.slice(1):q=R+q}}p.push(q)}}else{p=[];for(var O=0;O<d.length;O++)p.push.apply(p,Hp(d[O],!1))}for(var O=0;O<p.length;O++)for(var o=0;o<s.length;o++){var a=i+p[O]+s[o];(!e||c||a)&&r.push(a)}}return r}});var fye=m((Vjt,M3)=>{var qn=M3.exports=(t,e,r={})=>(mE(e),!r.nocomment&&e.charAt(0)==="#"?!1:new Zl(e,r).match(t));M3.exports=qn;var P3=Jme();qn.sep=P3.sep;var bi=Symbol("globstar **");qn.GLOBSTAR=bi;var d1t=sye(),oye={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},T3="[^/]",R3=T3+"*?",p1t="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",h1t="(?:(?!(?:\\/|^)\\.).)*?",lye=t=>t.split("").reduce((e,r)=>(e[r]=!0,e),{}),aye=lye("().*{}+?[]^$\\!"),g1t=lye("[.("),uye=/\/+/;qn.filter=(t,e={})=>(r,n,i)=>qn(r,t,e);var _o=(t,e={})=>{let r={};return Object.keys(t).forEach(n=>r[n]=t[n]),Object.keys(e).forEach(n=>r[n]=e[n]),r};qn.defaults=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return qn;let e=qn,r=(n,i,s)=>e(n,i,_o(t,s));return r.Minimatch=class extends e.Minimatch{constructor(i,s){super(i,_o(t,s))}},r.Minimatch.defaults=n=>e.defaults(_o(t,n)).Minimatch,r.filter=(n,i)=>e.filter(n,_o(t,i)),r.defaults=n=>e.defaults(_o(t,n)),r.makeRe=(n,i)=>e.makeRe(n,_o(t,i)),r.braceExpand=(n,i)=>e.braceExpand(n,_o(t,i)),r.match=(n,i,s)=>e.match(n,i,_o(t,s)),r};qn.braceExpand=(t,e)=>cye(t,e);var cye=(t,e={})=>(mE(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:d1t(t)),m1t=1024*64,mE=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>m1t)throw new TypeError("pattern is too long")},A3=Symbol("subparse");qn.makeRe=(t,e)=>new Zl(t,e||{}).makeRe();qn.match=(t,e,r={})=>{let n=new Zl(e,r);return t=t.filter(i=>n.match(i)),n.options.nonull&&!t.length&&t.push(e),t};var y1t=t=>t.replace(/\\(.)/g,"$1"),b1t=t=>t.replace(/\\([^-\]])/g,"$1"),v1t=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),w1t=t=>t.replace(/[[\]\\]/g,"\\$&"),Zl=class{constructor(e,r){mE(e),r||(r={}),this.options=r,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}debug(){}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();let n=this.globSet=this.braceExpand();r.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,n),n=this.globParts=n.map(i=>i.split(uye)),this.debug(this.pattern,n),n=n.map((i,s,o)=>i.map(this.parse,this)),this.debug(this.pattern,n),n=n.filter(i=>i.indexOf(!1)===-1),this.debug(this.pattern,n),this.set=n}parseNegate(){if(this.options.nonegate)return;let e=this.pattern,r=!1,n=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=e.slice(n)),this.negate=r}matchOne(e,r,n){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:r}),this.debug("matchOne",e.length,r.length);for(var s=0,o=0,a=e.length,u=r.length;s<a&&o<u;s++,o++){this.debug("matchOne loop");var l=r[o],c=e[s];if(this.debug(r,l,c),l===!1)return!1;if(l===bi){this.debug("GLOBSTAR",[r,l,c]);var f=s,d=o+1;if(d===u){for(this.debug("** at the end");s<a;s++)if(e[s]==="."||e[s]===".."||!i.dot&&e[s].charAt(0)===".")return!1;return!0}for(;f<a;){var p=e[f];if(this.debug(`
|
|
427
427
|
globstar while`,e,f,r,d,p),this.matchOne(e.slice(f),r.slice(d),n))return this.debug("globstar found match!",f,a,p),!0;if(p==="."||p===".."||!i.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,f,r,d);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(n&&(this.debug(`
|
|
428
428
|
>>> no match, partial?`,e,f,r,d),f===a))}var h;if(typeof l=="string"?(h=c===l,this.debug("string match",l,c,h)):(h=c.match(l),this.debug("pattern match",l,c,h)),!h)return!1}if(s===a&&o===u)return!0;if(s===a)return n;if(o===u)return s===a-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return cye(this.pattern,this.options)}parse(e,r){mE(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return bi;if(e==="")return"";let i="",s=!1,o=!1,a=[],u=[],l,c=!1,f=-1,d=-1,p,h,y,v=e.charAt(0)===".",g=n.dot||v,b=()=>v?"":g?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",w=C=>C.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",_=()=>{if(l){switch(l){case"*":i+=R3,s=!0;break;case"?":i+=T3,s=!0;break;default:i+="\\"+l;break}this.debug("clearStateChar %j %j",l,i),l=!1}};for(let C=0,R;C<e.length&&(R=e.charAt(C));C++){if(this.debug("%s %s %s %j",e,C,i,R),o){if(R==="/")return!1;aye[R]&&(i+="\\"),i+=R,o=!1;continue}switch(R){case"/":return!1;case"\\":if(c&&e.charAt(C+1)==="-"){i+=R;continue}_(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,C,i,R),c){this.debug(" in class"),R==="!"&&C===d+1&&(R="^"),i+=R;continue}this.debug("call clearStateChar %j",l),_(),l=R,n.noext&&_();continue;case"(":{if(c){i+="(";continue}if(!l){i+="\\(";continue}let O={type:l,start:C-1,reStart:i.length,open:oye[l].open,close:oye[l].close};this.debug(this.pattern," ",O),a.push(O),i+=O.open,O.start===0&&O.type!=="!"&&(v=!0,i+=w(e.slice(C+1))),this.debug("plType %j %j",l,i),l=!1;continue}case")":{let O=a[a.length-1];if(c||!O){i+="\\)";continue}a.pop(),_(),s=!0,h=O,i+=h.close,h.type==="!"&&u.push(Object.assign(h,{reEnd:i.length}));continue}case"|":{let O=a[a.length-1];if(c||!O){i+="\\|";continue}_(),i+="|",O.start===0&&O.type!=="!"&&(v=!0,i+=w(e.slice(C+1)));continue}case"[":if(_(),c){i+="\\"+R;continue}c=!0,d=C,f=i.length,i+=R;continue;case"]":if(C===d+1||!c){i+="\\"+R;continue}p=e.substring(d+1,C);try{RegExp("["+w1t(b1t(p))+"]"),i+=R}catch{i=i.substring(0,f)+"(?:$.)"}s=!0,c=!1;continue;default:_(),aye[R]&&!(R==="^"&&c)&&(i+="\\"),i+=R;break}}for(c&&(p=e.slice(d+1),y=this.parse(p,A3),i=i.substring(0,f)+"\\["+y[0],s=s||y[1]),h=a.pop();h;h=a.pop()){let C;C=i.slice(h.reStart+h.open.length),this.debug("setting tail",i,h),C=C.replace(/((?:\\{2}){0,64})(\\?)\|/g,(O,z,F)=>(F||(F="\\"),z+z+F+"|")),this.debug(`tail=%j
|
|
429
|
-
%s`,C,C,h,i);let R=h.type==="*"?R3:h.type==="?"?T3:"\\"+h.type;s=!0,i=i.slice(0,h.reStart)+R+"\\("+C}_(),o&&(i+="\\\\");let S=g1t[i.charAt(0)];for(let C=u.length-1;C>-1;C--){let R=u[C],O=i.slice(0,R.reStart),z=i.slice(R.reStart,R.reEnd-8),F=i.slice(R.reEnd),te=i.slice(R.reEnd-8,R.reEnd)+F,K=O.split(")").length,ue=O.split("(").length-K,L=F;for(let ae=0;ae<ue;ae++)L=L.replace(/\)[+*?]?/,"");F=L;let M=F===""&&r!==A3?"(?:$|\\/)":"";i=O+z+F+M+te}if(i!==""&&s&&(i="(?=.)"+i),S&&(i=b()+i),r===A3)return[i,s];if(n.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return y1t(e);let q=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",q),{_glob:e,_src:i})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?R3:r.dot?p1t:h1t,i=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?v1t(a):a===bi?bi:a._src).reduce((a,u)=>(a[a.length-1]===bi&&u===bi||a.push(u),a),[]),o.forEach((a,u)=>{a!==bi||o[u-1]===bi||(u===0?o.length>1?o[u+1]="(?:\\/|"+n+"\\/)?"+o[u+1]:o[u]=n:u===o.length-1?o[u-1]+="(?:\\/|"+n+")?":(o[u-1]+="(?:\\/|\\/"+n+"\\/)"+o[u+1],o[u+1]=bi))}),o.filter(a=>a!==bi).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;P3.sep!=="/"&&(e=e.split(P3.sep).join("/")),e=e.split(uye),this.debug(this.pattern,"split",e);let i=this.set;this.debug(this.pattern,"set",i);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<i.length;o++){let a=i[o],u=e;if(n.matchBase&&a.length===1&&(u=[s]),this.matchOne(u,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return qn.defaults(e).Minimatch}};qn.Minimatch=Zl});var dye=m((bE,yE)=>{var _1t=bE&&bE.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;n<i;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))};(function(t){if(typeof yE=="object"&&typeof yE.exports=="object"){var e=t(H,bE);e!==void 0&&(yE.exports=e)}else typeof define=="function"&&define.amd&&define(["require","exports"],t)})(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextDocument=void 0;var r=function(){function u(l,c,f,d){this._uri=l,this._languageId=c,this._version=f,this._content=d,this._lineOffsets=void 0}return Object.defineProperty(u.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),u.prototype.getText=function(l){if(l){var c=this.offsetAt(l.start),f=this.offsetAt(l.end);return this._content.substring(c,f)}return this._content},u.prototype.update=function(l,c){for(var f=0,d=l;f<d.length;f++){var p=d[f];if(u.isIncremental(p)){var h=o(p.range),y=this.offsetAt(h.start),v=this.offsetAt(h.end);this._content=this._content.substring(0,y)+p.text+this._content.substring(v,this._content.length);var g=Math.max(h.start.line,0),b=Math.max(h.end.line,0),w=this._lineOffsets,_=s(p.text,!1,y);if(b-g===_.length)for(var S=0,q=_.length;S<q;S++)w[S+g+1]=_[S];else _.length<1e4?w.splice.apply(w,_1t([g+1,b-g],_,!1)):this._lineOffsets=w=w.slice(0,g+1).concat(_,w.slice(b+1));var C=p.text.length-(v-y);if(C!==0)for(var S=g+1+_.length,q=w.length;S<q;S++)w[S]=w[S]+C}else if(u.isFull(p))this._content=p.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=c},u.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=s(this._content,!0)),this._lineOffsets},u.prototype.positionAt=function(l){l=Math.max(Math.min(l,this._content.length),0);var c=this.getLineOffsets(),f=0,d=c.length;if(d===0)return{line:0,character:l};for(;f<d;){var p=Math.floor((f+d)/2);c[p]>l?d=p:f=p+1}var h=f-1;return{line:h,character:l-c[h]}},u.prototype.offsetAt=function(l){var c=this.getLineOffsets();if(l.line>=c.length)return this._content.length;if(l.line<0)return 0;var f=c[l.line],d=l.line+1<c.length?c[l.line+1]:this._content.length;return Math.max(Math.min(f+l.character,d),f)},Object.defineProperty(u.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),u.isIncremental=function(l){var c=l;return c!=null&&typeof c.text=="string"&&c.range!==void 0&&(c.rangeLength===void 0||typeof c.rangeLength=="number")},u.isFull=function(l){var c=l;return c!=null&&typeof c.text=="string"&&c.range===void 0&&c.rangeLength===void 0},u}(),n;(function(u){function l(d,p,h,y){return new r(d,p,h,y)}u.create=l;function c(d,p,h){if(d instanceof r)return d.update(p,h),d;throw new Error("TextDocument.update: document must be created by TextDocument.create")}u.update=c;function f(d,p){for(var h=d.getText(),y=i(p.map(a),function(q,C){var R=q.range.start.line-C.range.start.line;return R===0?q.range.start.character-C.range.start.character:R}),v=0,g=[],b=0,w=y;b<w.length;b++){var _=w[b],S=d.offsetAt(_.range.start);if(S<v)throw new Error("Overlapping edit");S>v&&g.push(h.substring(v,S)),_.newText.length&&g.push(_.newText),v=d.offsetAt(_.range.end)}return g.push(h.substr(v)),g.join("")}u.applyEdits=f})(n=e.TextDocument||(e.TextDocument={}));function i(u,l){if(u.length<=1)return u;var c=u.length/2|0,f=u.slice(0,c),d=u.slice(c);i(f,l),i(d,l);for(var p=0,h=0,y=0;p<f.length&&h<d.length;){var v=l(f[p],d[h]);v<=0?u[y++]=f[p++]:u[y++]=d[h++]}for(;p<f.length;)u[y++]=f[p++];for(;h<d.length;)u[y++]=d[h++];return u}function s(u,l,c){c===void 0&&(c=0);for(var f=l?[c]:[],d=0;d<u.length;d++){var p=u.charCodeAt(d);(p===13||p===10)&&(p===13&&d+1<u.length&&u.charCodeAt(d+1)===10&&d++,f.push(c+d+1))}return f}function o(u){var l=u.start,c=u.end;return l.line>c.line||l.line===c.line&&l.character>c.character?{start:c,end:l}:u}function a(u){var l=o(u.range);return l!==u.range?{newText:u.newText,range:l}:u}})});var bye={};Kbe(bye,{__assign:()=>I3,__asyncDelegator:()=>M1t,__asyncGenerator:()=>T1t,__asyncValues:()=>L1t,__await:()=>Gp,__awaiter:()=>D1t,__classPrivateFieldGet:()=>$1t,__classPrivateFieldIn:()=>W1t,__classPrivateFieldSet:()=>B1t,__createBinding:()=>j3,__decorate:()=>k1t,__exportStar:()=>q1t,__extends:()=>x1t,__generator:()=>O1t,__importDefault:()=>j1t,__importStar:()=>N1t,__makeTemplateObject:()=>F1t,__metadata:()=>C1t,__param:()=>E1t,__read:()=>yye,__rest:()=>S1t,__spread:()=>R1t,__spreadArray:()=>P1t,__spreadArrays:()=>A1t,__values:()=>N3});function x1t(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");F3(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function S1t(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function k1t(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}function E1t(t,e){return function(r,n){e(r,n,t)}}function C1t(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function D1t(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(c){try{l(n.next(c))}catch(f){o(f)}}function u(c){try{l(n.throw(c))}catch(f){o(f)}}function l(c){c.done?s(c.value):i(c.value).then(a,u)}l((n=n.apply(t,e||[])).next())})}function O1t(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(s=l[0]&2?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){r.label=l[1];break}if(l[0]===6&&r.label<s[1]){r.label=s[1],s=l;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(l);break}s[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(c){l=[6,c],i=0}finally{n=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function q1t(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&j3(e,t,r)}function N3(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function yye(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,s=[],o;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s}function R1t(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(yye(arguments[e]));return t}function A1t(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),i=0,e=0;e<r;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,i++)n[i]=s[o];return n}function P1t(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;n<i;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))}function Gp(t){return this instanceof Gp?(this.v=t,this):new Gp(t)}function T1t(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,s=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(d){n[d]&&(i[d]=function(p){return new Promise(function(h,y){s.push([d,p,h,y])>1||a(d,p)})})}function a(d,p){try{u(n[d](p))}catch(h){f(s[0][3],h)}}function u(d){d.value instanceof Gp?Promise.resolve(d.value.v).then(l,c):f(s[0][2],d)}function l(d){a("next",d)}function c(d){a("throw",d)}function f(d,p){d(p),s.shift(),s.length&&a(s[0][0],s[0][1])}}function M1t(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,s){e[i]=t[i]?function(o){return(r=!r)?{value:Gp(t[i](o)),done:i==="return"}:s?s(o):o}:s}}function L1t(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof N3=="function"?N3(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(o){return new Promise(function(a,u){o=t[s](o),i(a,u,o.done,o.value)})}}function i(s,o,a,u){Promise.resolve(u).then(function(l){s({value:l,done:a})},o)}}function F1t(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function N1t(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&j3(e,t,r);return I1t(e,t),e}function j1t(t){return t&&t.__esModule?t:{default:t}}function $1t(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function B1t(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r}function W1t(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}var F3,I3,j3,I1t,vye=Gbe(()=>{F3=function(t,e){return F3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},F3(t,e)};I3=function(){return I3=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},I3.apply(this,arguments)};j3=Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]};I1t=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}});var wye=m(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.lowerCase=ec.localeLowerCase=void 0;var z1t={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{\u0130:"i",I:"\u0131",I\u0307:"i"}},az:{regexp:/\u0130/g,map:{\u0130:"i",I:"\u0131",I\u0307:"i"}},lt:{regexp:/\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,map:{I:"i\u0307",J:"j\u0307",\u012E:"\u012F\u0307",\u00CC:"i\u0307\u0300",\u00CD:"i\u0307\u0301",\u0128:"i\u0307\u0303"}}};function U1t(t,e){var r=z1t[e.toLowerCase()];return $3(r?t.replace(r.regexp,function(n){return r.map[n]}):t)}ec.localeLowerCase=U1t;function $3(t){return t.toLowerCase()}ec.lowerCase=$3});var xye=m(wE=>{"use strict";Object.defineProperty(wE,"__esModule",{value:!0});wE.noCase=void 0;var H1t=wye(),V1t=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],G1t=/[^A-Z0-9]+/gi;function K1t(t,e){e===void 0&&(e={});for(var r=e.splitRegexp,n=r===void 0?V1t:r,i=e.stripRegexp,s=i===void 0?G1t:i,o=e.transform,a=o===void 0?H1t.lowerCase:o,u=e.delimiter,l=u===void 0?" ":u,c=_ye(_ye(t,n,"$1\0$2"),s,"\0"),f=0,d=c.length;c.charAt(f)==="\0";)f++;for(;c.charAt(d-1)==="\0";)d--;return c.slice(f,d).split("\0").map(a).join(l)}wE.noCase=K1t;function _ye(t,e,r){return e instanceof RegExp?t.replace(e,r):e.reduce(function(n,i){return n.replace(i,r)},t)}});var kye=m(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.pascalCase=xo.pascalCaseTransformMerge=xo.pascalCaseTransform=void 0;var Y1t=(vye(),Ybe(bye)),Q1t=xye();function Sye(t,e){var r=t.charAt(0),n=t.substr(1).toLowerCase();return e>0&&r>="0"&&r<="9"?"_"+r+n:""+r.toUpperCase()+n}xo.pascalCaseTransform=Sye;function J1t(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}xo.pascalCaseTransformMerge=J1t;function X1t(t,e){return e===void 0&&(e={}),Q1t.noCase(t,Y1t.__assign({delimiter:"",transform:Sye},e))}xo.pascalCase=X1t});var _E=m((s6t,Oye)=>{"use strict";function br(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}br.prototype.clone_empty=function(){var t=new br(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t};br.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]};br.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1};br.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))};br.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)};br.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count};br.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,t.__items[0]===" "&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1};br.prototype.is_empty=function(){return this.__items.length===0};br.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]};br.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf(`
|
|
430
|
-
`);e!==-1?this.__character_count=t.length-e:this.__character_count+=t.length};
|
|
429
|
+
%s`,C,C,h,i);let R=h.type==="*"?R3:h.type==="?"?T3:"\\"+h.type;s=!0,i=i.slice(0,h.reStart)+R+"\\("+C}_(),o&&(i+="\\\\");let S=g1t[i.charAt(0)];for(let C=u.length-1;C>-1;C--){let R=u[C],O=i.slice(0,R.reStart),z=i.slice(R.reStart,R.reEnd-8),F=i.slice(R.reEnd),te=i.slice(R.reEnd-8,R.reEnd)+F,K=O.split(")").length,ue=O.split("(").length-K,L=F;for(let ae=0;ae<ue;ae++)L=L.replace(/\)[+*?]?/,"");F=L;let M=F===""&&r!==A3?"(?:$|\\/)":"";i=O+z+F+M+te}if(i!==""&&s&&(i="(?=.)"+i),S&&(i=b()+i),r===A3)return[i,s];if(n.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return y1t(e);let q=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",q),{_glob:e,_src:i})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?R3:r.dot?p1t:h1t,i=r.nocase?"i":"",s=e.map(o=>(o=o.map(a=>typeof a=="string"?v1t(a):a===bi?bi:a._src).reduce((a,u)=>(a[a.length-1]===bi&&u===bi||a.push(u),a),[]),o.forEach((a,u)=>{a!==bi||o[u-1]===bi||(u===0?o.length>1?o[u+1]="(?:\\/|"+n+"\\/)?"+o[u+1]:o[u]=n:u===o.length-1?o[u-1]+="(?:\\/|"+n+")?":(o[u-1]+="(?:\\/|\\/"+n+"\\/)"+o[u+1],o[u+1]=bi))}),o.filter(a=>a!==bi).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;P3.sep!=="/"&&(e=e.split(P3.sep).join("/")),e=e.split(uye),this.debug(this.pattern,"split",e);let i=this.set;this.debug(this.pattern,"set",i);let s;for(let o=e.length-1;o>=0&&(s=e[o],!s);o--);for(let o=0;o<i.length;o++){let a=i[o],u=e;if(n.matchBase&&a.length===1&&(u=[s]),this.matchOne(u,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return qn.defaults(e).Minimatch}};qn.Minimatch=Zl});var dye=m((bE,yE)=>{var _1t=bE&&bE.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;n<i;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))};(function(t){if(typeof yE=="object"&&typeof yE.exports=="object"){var e=t(H,bE);e!==void 0&&(yE.exports=e)}else typeof define=="function"&&define.amd&&define(["require","exports"],t)})(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextDocument=void 0;var r=function(){function u(l,c,f,d){this._uri=l,this._languageId=c,this._version=f,this._content=d,this._lineOffsets=void 0}return Object.defineProperty(u.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),u.prototype.getText=function(l){if(l){var c=this.offsetAt(l.start),f=this.offsetAt(l.end);return this._content.substring(c,f)}return this._content},u.prototype.update=function(l,c){for(var f=0,d=l;f<d.length;f++){var p=d[f];if(u.isIncremental(p)){var h=o(p.range),y=this.offsetAt(h.start),v=this.offsetAt(h.end);this._content=this._content.substring(0,y)+p.text+this._content.substring(v,this._content.length);var g=Math.max(h.start.line,0),b=Math.max(h.end.line,0),w=this._lineOffsets,_=s(p.text,!1,y);if(b-g===_.length)for(var S=0,q=_.length;S<q;S++)w[S+g+1]=_[S];else _.length<1e4?w.splice.apply(w,_1t([g+1,b-g],_,!1)):this._lineOffsets=w=w.slice(0,g+1).concat(_,w.slice(b+1));var C=p.text.length-(v-y);if(C!==0)for(var S=g+1+_.length,q=w.length;S<q;S++)w[S]=w[S]+C}else if(u.isFull(p))this._content=p.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=c},u.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=s(this._content,!0)),this._lineOffsets},u.prototype.positionAt=function(l){l=Math.max(Math.min(l,this._content.length),0);var c=this.getLineOffsets(),f=0,d=c.length;if(d===0)return{line:0,character:l};for(;f<d;){var p=Math.floor((f+d)/2);c[p]>l?d=p:f=p+1}var h=f-1;return{line:h,character:l-c[h]}},u.prototype.offsetAt=function(l){var c=this.getLineOffsets();if(l.line>=c.length)return this._content.length;if(l.line<0)return 0;var f=c[l.line],d=l.line+1<c.length?c[l.line+1]:this._content.length;return Math.max(Math.min(f+l.character,d),f)},Object.defineProperty(u.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),u.isIncremental=function(l){var c=l;return c!=null&&typeof c.text=="string"&&c.range!==void 0&&(c.rangeLength===void 0||typeof c.rangeLength=="number")},u.isFull=function(l){var c=l;return c!=null&&typeof c.text=="string"&&c.range===void 0&&c.rangeLength===void 0},u}(),n;(function(u){function l(d,p,h,y){return new r(d,p,h,y)}u.create=l;function c(d,p,h){if(d instanceof r)return d.update(p,h),d;throw new Error("TextDocument.update: document must be created by TextDocument.create")}u.update=c;function f(d,p){for(var h=d.getText(),y=i(p.map(a),function(q,C){var R=q.range.start.line-C.range.start.line;return R===0?q.range.start.character-C.range.start.character:R}),v=0,g=[],b=0,w=y;b<w.length;b++){var _=w[b],S=d.offsetAt(_.range.start);if(S<v)throw new Error("Overlapping edit");S>v&&g.push(h.substring(v,S)),_.newText.length&&g.push(_.newText),v=d.offsetAt(_.range.end)}return g.push(h.substr(v)),g.join("")}u.applyEdits=f})(n=e.TextDocument||(e.TextDocument={}));function i(u,l){if(u.length<=1)return u;var c=u.length/2|0,f=u.slice(0,c),d=u.slice(c);i(f,l),i(d,l);for(var p=0,h=0,y=0;p<f.length&&h<d.length;){var v=l(f[p],d[h]);v<=0?u[y++]=f[p++]:u[y++]=d[h++]}for(;p<f.length;)u[y++]=f[p++];for(;h<d.length;)u[y++]=d[h++];return u}function s(u,l,c){c===void 0&&(c=0);for(var f=l?[c]:[],d=0;d<u.length;d++){var p=u.charCodeAt(d);(p===13||p===10)&&(p===13&&d+1<u.length&&u.charCodeAt(d+1)===10&&d++,f.push(c+d+1))}return f}function o(u){var l=u.start,c=u.end;return l.line>c.line||l.line===c.line&&l.character>c.character?{start:c,end:l}:u}function a(u){var l=o(u.range);return l!==u.range?{newText:u.newText,range:l}:u}})});var bye={};Kbe(bye,{__assign:()=>I3,__asyncDelegator:()=>M1t,__asyncGenerator:()=>T1t,__asyncValues:()=>L1t,__await:()=>Gp,__awaiter:()=>D1t,__classPrivateFieldGet:()=>$1t,__classPrivateFieldIn:()=>W1t,__classPrivateFieldSet:()=>B1t,__createBinding:()=>j3,__decorate:()=>k1t,__exportStar:()=>q1t,__extends:()=>x1t,__generator:()=>O1t,__importDefault:()=>j1t,__importStar:()=>N1t,__makeTemplateObject:()=>F1t,__metadata:()=>C1t,__param:()=>E1t,__read:()=>yye,__rest:()=>S1t,__spread:()=>R1t,__spreadArray:()=>P1t,__spreadArrays:()=>A1t,__values:()=>N3});function x1t(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");F3(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function S1t(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function k1t(t,e,r,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}function E1t(t,e){return function(r,n){e(r,n,t)}}function C1t(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function D1t(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(c){try{l(n.next(c))}catch(f){o(f)}}function u(c){try{l(n.throw(c))}catch(f){o(f)}}function l(c){c.done?s(c.value):i(c.value).then(a,u)}l((n=n.apply(t,e||[])).next())})}function O1t(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(c){return u([l,c])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)try{if(n=1,i&&(s=l[0]&2?i.return:l[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,l[1])).done)return s;switch(i=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){r.label=l[1];break}if(l[0]===6&&r.label<s[1]){r.label=s[1],s=l;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(l);break}s[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}catch(c){l=[6,c],i=0}finally{n=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function q1t(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&j3(e,t,r)}function N3(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function yye(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,s=[],o;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s}function R1t(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(yye(arguments[e]));return t}function A1t(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),i=0,e=0;e<r;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,i++)n[i]=s[o];return n}function P1t(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;n<i;n++)(s||!(n in e))&&(s||(s=Array.prototype.slice.call(e,0,n)),s[n]=e[n]);return t.concat(s||Array.prototype.slice.call(e))}function Gp(t){return this instanceof Gp?(this.v=t,this):new Gp(t)}function T1t(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,s=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(d){n[d]&&(i[d]=function(p){return new Promise(function(h,y){s.push([d,p,h,y])>1||a(d,p)})})}function a(d,p){try{u(n[d](p))}catch(h){f(s[0][3],h)}}function u(d){d.value instanceof Gp?Promise.resolve(d.value.v).then(l,c):f(s[0][2],d)}function l(d){a("next",d)}function c(d){a("throw",d)}function f(d,p){d(p),s.shift(),s.length&&a(s[0][0],s[0][1])}}function M1t(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,s){e[i]=t[i]?function(o){return(r=!r)?{value:Gp(t[i](o)),done:i==="return"}:s?s(o):o}:s}}function L1t(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof N3=="function"?N3(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(o){return new Promise(function(a,u){o=t[s](o),i(a,u,o.done,o.value)})}}function i(s,o,a,u){Promise.resolve(u).then(function(l){s({value:l,done:a})},o)}}function F1t(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function N1t(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&j3(e,t,r);return I1t(e,t),e}function j1t(t){return t&&t.__esModule?t:{default:t}}function $1t(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)}function B1t(t,e,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(t,r):i?i.value=r:e.set(t,r),r}function W1t(t,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof t=="function"?e===t:t.has(e)}var F3,I3,j3,I1t,vye=Gbe(()=>{F3=function(t,e){return F3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},F3(t,e)};I3=function(){return I3=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},I3.apply(this,arguments)};j3=Object.create?function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]};I1t=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}});var wye=m(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.lowerCase=ec.localeLowerCase=void 0;var z1t={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{\u0130:"i",I:"\u0131",I\u0307:"i"}},az:{regexp:/\u0130/g,map:{\u0130:"i",I:"\u0131",I\u0307:"i"}},lt:{regexp:/\u0049|\u004A|\u012E|\u00CC|\u00CD|\u0128/g,map:{I:"i\u0307",J:"j\u0307",\u012E:"\u012F\u0307",\u00CC:"i\u0307\u0300",\u00CD:"i\u0307\u0301",\u0128:"i\u0307\u0303"}}};function U1t(t,e){var r=z1t[e.toLowerCase()];return $3(r?t.replace(r.regexp,function(n){return r.map[n]}):t)}ec.localeLowerCase=U1t;function $3(t){return t.toLowerCase()}ec.lowerCase=$3});var xye=m(wE=>{"use strict";Object.defineProperty(wE,"__esModule",{value:!0});wE.noCase=void 0;var H1t=wye(),V1t=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],G1t=/[^A-Z0-9]+/gi;function K1t(t,e){e===void 0&&(e={});for(var r=e.splitRegexp,n=r===void 0?V1t:r,i=e.stripRegexp,s=i===void 0?G1t:i,o=e.transform,a=o===void 0?H1t.lowerCase:o,u=e.delimiter,l=u===void 0?" ":u,c=_ye(_ye(t,n,"$1\0$2"),s,"\0"),f=0,d=c.length;c.charAt(f)==="\0";)f++;for(;c.charAt(d-1)==="\0";)d--;return c.slice(f,d).split("\0").map(a).join(l)}wE.noCase=K1t;function _ye(t,e,r){return e instanceof RegExp?t.replace(e,r):e.reduce(function(n,i){return n.replace(i,r)},t)}});var kye=m(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.pascalCase=xo.pascalCaseTransformMerge=xo.pascalCaseTransform=void 0;var Y1t=(vye(),Ybe(bye)),Q1t=xye();function Sye(t,e){var r=t.charAt(0),n=t.substr(1).toLowerCase();return e>0&&r>="0"&&r<="9"?"_"+r+n:""+r.toUpperCase()+n}xo.pascalCaseTransform=Sye;function J1t(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}xo.pascalCaseTransformMerge=J1t;function X1t(t,e){return e===void 0&&(e={}),Q1t.noCase(t,Y1t.__assign({delimiter:"",transform:Sye},e))}xo.pascalCase=X1t});var _E=m((s6t,Oye)=>{"use strict";function vr(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}vr.prototype.clone_empty=function(){var t=new vr(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t};vr.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]};vr.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1};vr.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))};vr.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)};vr.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count};vr.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,t.__items[0]===" "&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1};vr.prototype.is_empty=function(){return this.__items.length===0};vr.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]};vr.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf(`
|
|
430
|
+
`);e!==-1?this.__character_count=t.length-e:this.__character_count+=t.length};vr.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t};vr.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)};vr.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)};vr.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1};vr.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t};function Yp(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}Yp.prototype.get_indent_size=function(t,e){var r=this.__base_string_length;return e=e||0,t<0&&(r=0),r+=t*this.__indent_size,r+=e,r};Yp.prototype.get_indent_string=function(t,e){var r=this.__base_string;return e=e||0,t<0&&(t=0,r=""),e+=t*this.__indent_size,this.__ensure_cache(e),r+=this.__cache[e],r};Yp.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()};Yp.prototype.__add_column=function(){var t=this.__cache.length,e=0,r="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,r=new Array(e+1).join(this.__indent_string)),t&&(r+=new Array(t+1).join(" ")),this.__cache.push(r)};function wr(t,e){this.__indent_cache=new Yp(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new vr(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}wr.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)};wr.prototype.get_line_number=function(){return this.__lines.length};wr.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)};wr.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)};wr.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()};wr.prototype.add_new_line=function(t){return this.is_empty()||!t&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)};wr.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&(e[e.length-1]===`
|
|
431
431
|
`&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var r=this.__lines.join(`
|
|
432
432
|
`);return t!==`
|
|
433
|
-
`&&(r=r.replace(/[\n]/g,t)),r};vr.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()};vr.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)};vr.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1};vr.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()};vr.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))};vr.prototype.remove_indent=function(t){for(var e=this.__lines.length;t<e;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()};vr.prototype.trim=function(t){for(t=t===void 0?!1:t,this.current_line.trim();t&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null};vr.prototype.just_added_newline=function(){return this.current_line.is_empty()};vr.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()};vr.prototype.ensure_empty_line_above=function(t,e){for(var r=this.__lines.length-2;r>=0;){var n=this.__lines[r];if(n.is_empty())break;if(n.item(0).indexOf(t)!==0&&n.item(-1)!==e){this.__lines.splice(r+1,0,new br(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}};Oye.exports.Output=vr});var B3=m((o6t,qye)=>{"use strict";function eSt(t,e,r,n){this.type=t,this.text=e,this.comments_before=null,this.newlines=r||0,this.whitespace_before=n||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}qye.exports.Token=eSt});var z3=m(Es=>{"use strict";var tSt="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",Rye="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",W3="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",Aye="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",Pye="(?:\\\\u[0-9a-fA-F]{4}|["+tSt+W3+"])",rSt="(?:\\\\u[0-9a-fA-F]{4}|["+Rye+W3+Aye+"])*";Es.identifier=new RegExp(Pye+rSt,"g");Es.identifierStart=new RegExp(Pye);Es.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+Rye+W3+Aye+"])+");Es.newline=/[\n\r\u2028\u2029]/;Es.lineBreak=new RegExp(`\r
|
|
433
|
+
`&&(r=r.replace(/[\n]/g,t)),r};wr.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()};wr.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)};wr.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1};wr.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()};wr.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))};wr.prototype.remove_indent=function(t){for(var e=this.__lines.length;t<e;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()};wr.prototype.trim=function(t){for(t=t===void 0?!1:t,this.current_line.trim();t&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null};wr.prototype.just_added_newline=function(){return this.current_line.is_empty()};wr.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()};wr.prototype.ensure_empty_line_above=function(t,e){for(var r=this.__lines.length-2;r>=0;){var n=this.__lines[r];if(n.is_empty())break;if(n.item(0).indexOf(t)!==0&&n.item(-1)!==e){this.__lines.splice(r+1,0,new vr(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}};Oye.exports.Output=wr});var B3=m((o6t,qye)=>{"use strict";function eSt(t,e,r,n){this.type=t,this.text=e,this.comments_before=null,this.newlines=r||0,this.whitespace_before=n||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}qye.exports.Token=eSt});var z3=m(Es=>{"use strict";var tSt="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",Rye="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",W3="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",Aye="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",Pye="(?:\\\\u[0-9a-fA-F]{4}|["+tSt+W3+"])",rSt="(?:\\\\u[0-9a-fA-F]{4}|["+Rye+W3+Aye+"])*";Es.identifier=new RegExp(Pye+rSt,"g");Es.identifierStart=new RegExp(Pye);Es.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+Rye+W3+Aye+"])+");Es.newline=/[\n\r\u2028\u2029]/;Es.lineBreak=new RegExp(`\r
|
|
434
434
|
|`+Es.newline.source);Es.allLineBreaks=new RegExp(Es.lineBreak.source,"g")});var SE=m((u6t,xE)=>{"use strict";function So(t,e){this.raw_options=Tye(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}So.prototype._get_array=function(t,e){var r=this.raw_options[t],n=e||[];return typeof r=="object"?r!==null&&typeof r.concat=="function"&&(n=r.concat()):typeof r=="string"&&(n=r.split(/[^a-zA-Z0-9_\/\-]+/)),n};So.prototype._get_boolean=function(t,e){var r=this.raw_options[t],n=r===void 0?!!e:!!r;return n};So.prototype._get_characters=function(t,e){var r=this.raw_options[t],n=e||"";return typeof r=="string"&&(n=r.replace(/\\r/,"\r").replace(/\\n/,`
|
|
435
435
|
`).replace(/\\t/," ")),n};So.prototype._get_number=function(t,e){var r=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var n=parseInt(r,10);return isNaN(n)&&(n=e),n};So.prototype._get_selection=function(t,e,r){var n=this._get_selection_list(t,e,r);if(n.length!==1)throw new Error("Invalid Option Value: The option '"+t+`' can only be one of the following values:
|
|
436
436
|
`+e+`
|
|
@@ -463,7 +463,7 @@ You passed in: '`+this.raw_options[t]+"'");return n};So.prototype._is_valid_sele
|
|
|
463
463
|
`)),i=l+i.replace(/\n/g,`
|
|
464
464
|
`+l)}a&&(i?i=a+i+`
|
|
465
465
|
`+u:i=a+u),t.print_newline(!1),i&&(e.text=i,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}};Xn.prototype._handle_tag_open=function(t,e,r,n){var i=this._get_tag_open_token(e);return(r.is_unformatted||r.is_content_unformatted)&&!r.is_empty_element&&e.type===ht.TAG_OPEN&&e.text.indexOf("</")===0?(t.add_raw_token(e),i.start_tag_token=this._tag_stack.try_pop(i.tag_name)):(t.traverse_whitespace(e),this._set_tag_position(t,e,i,r,n),i.is_inline_element||t.set_wrap_point(),t.print_token(e)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(i.alignment_size=e.text.length+1),!i.tag_complete&&!i.is_unformatted&&(t.alignment_size=i.alignment_size),i};var ybe=function(t,e){if(this.parent=t||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!e)this.tag_complete=!0;else{var r;this.tag_start_char=e.text[0],this.text=e.text,this.tag_start_char==="<"?(r=e.text.match(/^<([^\s>]*)/),this.tag_check=r?r[1]:""):(r=e.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=r?r[1]:"",(e.text.startsWith("{{#>")||e.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&e.next!==null?this.tag_check=e.next.text.split(" ")[0]:this.tag_check=e.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),e.type===ht.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||e.closed&&e.closed.text==="/>";var n=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(n=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(n)))}};Xn.prototype._get_tag_open_token=function(t){var e=new ybe(this._tag_stack.get_parser_token(),t);return e.alignment_size=this._options.wrap_attributes_indent_size,e.is_end_tag=e.is_end_tag||sh(e.tag_check,this._options.void_elements),e.is_empty_element=e.tag_complete||e.is_start_tag&&e.is_end_tag,e.is_unformatted=!e.tag_complete&&sh(e.tag_check,this._options.unformatted),e.is_content_unformatted=!e.is_empty_element&&sh(e.tag_check,this._options.content_unformatted),e.is_inline_element=sh(e.tag_name,this._options.inline)||e.tag_name.includes("-")||e.tag_start_char==="{",e};Xn.prototype._set_tag_position=function(t,e,r,n,i){if(r.is_empty_element||(r.is_end_tag?r.start_tag_token=this._tag_stack.try_pop(r.tag_name):(this._do_optional_end_element(r)&&(r.is_inline_element||t.print_newline(!1)),this._tag_stack.record_tag(r),(r.tag_name==="script"||r.tag_name==="style")&&!(r.is_unformatted||r.is_content_unformatted)&&(r.custom_beautifier_name=QSt(r.tag_check,e)))),sh(r.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),r.is_empty_element){if(r.tag_start_char==="{"&&r.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),r.indent_content=!0;var s=t.current_line_has_match(/{{#if/);s||t.print_newline(!1)}r.tag_name==="!--"&&i.type===ht.TAG_CLOSE&&n.is_end_tag&&r.text.indexOf(`
|
|
466
|
-
`)===-1||(r.is_inline_element||r.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,r))}else if(r.is_end_tag){var o=!1;o=r.start_tag_token&&r.start_tag_token.multiline_content,o=o||!r.is_inline_element&&!(n.is_inline_element||n.is_unformatted)&&!(i.type===ht.TAG_CLOSE&&r.start_tag_token===n)&&i.type!=="TK_CONTENT",(r.is_content_unformatted||r.is_unformatted)&&(o=!1),o&&t.print_newline(!1)}else r.indent_content=!r.custom_beautifier_name,r.tag_start_char==="<"&&(r.tag_name==="html"?r.indent_content=this._options.indent_inner_html:r.tag_name==="head"?r.indent_content=this._options.indent_head_inner_html:r.tag_name==="body"&&(r.indent_content=this._options.indent_body_inner_html)),!(r.is_inline_element||r.is_unformatted)&&(i.type!=="TK_CONTENT"||r.is_content_unformatted)&&t.print_newline(!1),this._calcluate_parent_multiline(t,r)};Xn.prototype._calcluate_parent_multiline=function(t,e){e.parent&&t._output.just_added_newline()&&!((e.is_inline_element||e.is_unformatted)&&e.parent.is_inline_element)&&(e.parent.multiline_content=!0)};var XSt=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],ZSt=["a","audio","del","ins","map","noscript","video"];Xn.prototype._do_optional_end_element=function(t){var e=null;if(!(t.is_empty_element||!t.is_start_tag||!t.parent)){if(t.tag_name==="body")e=e||this._tag_stack.try_pop("head");else if(t.tag_name==="li")e=e||this._tag_stack.try_pop("li",["ol","ul"]);else if(t.tag_name==="dd"||t.tag_name==="dt")e=e||this._tag_stack.try_pop("dt",["dl"]),e=e||this._tag_stack.try_pop("dd",["dl"]);else if(t.parent.tag_name==="p"&&XSt.indexOf(t.tag_name)!==-1){var r=t.parent.parent;(!r||ZSt.indexOf(r.tag_name)===-1)&&(e=e||this._tag_stack.try_pop("p"))}else t.tag_name==="rp"||t.tag_name==="rt"?(e=e||this._tag_stack.try_pop("rt",["ruby","rtc"]),e=e||this._tag_stack.try_pop("rp",["ruby","rtc"])):t.tag_name==="optgroup"?e=e||this._tag_stack.try_pop("optgroup",["select"]):t.tag_name==="option"?e=e||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):t.tag_name==="colgroup"?e=e||this._tag_stack.try_pop("caption",["table"]):t.tag_name==="thead"?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"])):t.tag_name==="tbody"||t.tag_name==="tfoot"?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("thead",["table"]),e=e||this._tag_stack.try_pop("tbody",["table"])):t.tag_name==="tr"?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(t.tag_name==="th"||t.tag_name==="td")&&(e=e||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),e=e||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return t.parent=this._tag_stack.get_parser_token(),e}};bbe.exports.Beautifier=Xn});var wbe=m((C6t,aN)=>{"use strict";var ekt=vbe().Beautifier,tkt=nN().Options;function rkt(t,e,r,n){var i=new ekt(t,e,r,n);return i.beautify()}aN.exports=rkt;aN.exports.defaultOptions=function(){return new tkt}});var Ebe=m((D6t,RE)=>{"use strict";var _be=rbe(),xbe=cbe(),Sbe=wbe();function kbe(t,e,r,n){return r=r||_be,n=n||xbe,Sbe(t,e,r,n)}kbe.defaultOptions=Sbe.defaultOptions;RE.exports.js=_be;RE.exports.css=xbe;RE.exports.html=kbe});var Obe=m((O6t,Dbe)=>{"use strict";function Cbe(t,e,r){var n=function(i,s){return t.js_beautify(i,s)};return n.js=t.js_beautify,n.css=e.css_beautify,n.html=r.html_beautify,n.js_beautify=t.js_beautify,n.css_beautify=e.css_beautify,n.html_beautify=r.html_beautify,n}typeof define=="function"&&define.amd?define(["./lib/beautify","./lib/beautify-css","./lib/beautify-html"],function(t,e,r){return Cbe(t,e,r)}):function(t){var e=Ebe();e.js_beautify=e.js,e.css_beautify=e.css,e.html_beautify=e.html,t.exports=Cbe(e,e,e)}(Dbe)});var Ak=Kt(ph(),1);var Xbe=Object.defineProperty,Zbe=(t,e,r)=>e in t?Xbe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e,r)=>(Zbe(t,typeof e!="symbol"?e+"":e,r),r),EN=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},Za=(t,e,r)=>(EN(t,e,"read from private field"),r?r.call(t):e.get(t)),hN=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},gN=(t,e,r,n)=>(EN(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),e0e={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},YE=e0e;function hh(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function CN(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function Yt(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let n in t)if(n&&+n>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let n=0,i="0"in t?hh(t[0]):[0,0,0],s,o,a=[],u=()=>{let l=s-n,c=o.map((f,d)=>(f-i[d])/l);for(let f of a){let d=f-n,p=i.map((h,y)=>Math.round(h+c[y]*d));t[f]="#"+CN.call(this,...p)}};for(let l=1;l<100;l++)l in t?(a.length?(s=l,o=hh(t[l]),u(),a.length=0,i=o):i=hh(t[l]),n=l):a.push(l);a.length&&(s=100,o="100"in t?hh(t[100]):[255,255,255],u())}return e||(t[""]=t[r?"500":"50"]),t}var t0e={slate:Yt({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:Yt({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:Yt({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:Yt({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:Yt({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:Yt({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:Yt({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:Yt({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:Yt({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:Yt({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:Yt({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:Yt({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:Yt({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:Yt({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:Yt({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:Yt({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:Yt({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:Yt({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:Yt({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:Yt({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"}),black:"#000000",white:"#ffffff"},r0e=t0e,n0e=16,i0e="",s0e=i0e,o0e={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("},a0e=o0e,u0e={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflow:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}},tO=u0e,l0e=["dark","light"],c0e=l0e,f0e={storage:{sync:!0,key:"scheme"}},d0e=f0e,ic={content:"content-box",border:"border-box",padding:"padding-box"},gh={min:"min-content",max:"max-content"},Os={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let t in YE)Os[t]=YE[t]/16+"rem";var p0e={BackgroundClip:ic,BackgroundOrigin:ic,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...ic,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},FlexDirection:{col:"column","col-reverse":"column-reverse"},FontFamily:{mono:"ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",sans:"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji",serif:"ui-serif,Georgia,Cambria,Times New Roman,Times,serif"},FontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},GridAutoColumns:gh,GridAutoRows:gh,GridTemplateColumns:gh,GridTemplateRows:gh,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...ic,margin:"margin-box"},TransformBox:{...ic,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:Os,MinWidth:Os,MinHeight:Os,MaxWidth:Os,MaxHeight:Os,Height:Os,FlexBasis:Os},h0e=p0e;function UE(t,e){return(t?t+":":"")+(e.unit?e.value+e.unit:e.value)+(e.important?"!important":"")}var g0e=/^([+-.]?\d+(\.?\d+)?)(.*)?/;function DN(t,e,r){if(r){let n="",i=t.match(g0e);if(i)if(t.includes("/")){let[s,o]=t.split("/");return{value:+s/+o*100+"%",unit:n}}else{let s=+i[1];return n=i[3]||"",n||((r==="rem"||r==="em")&&(s=s/e),n=r||""),{value:s,unit:n}}}}function m0e(t,e,r){let n=c=>c==="+"||c==="-"||c==="*"||c==="/",i="",s,o="",a=!1,u=!1;function l(c,f="",d=""){if(s===2&&!u){let p=DN(o,e,r);p&&(o=p.value+p.unit)}i+=o+f+c+d,s=null,u=!1,o=""}for(let c=0;c<t.length;c++){let f=t[c];if(f==="("||f===")")a=f===")",l(f);else if(f===",")l(f,""," ");else{switch(s){case 1:break;case 2:if(n(f)){l(f," "," ");continue}else/[0-9]/.test(f)||(u=!0);break;default:a&&(i+=" "),isNaN(+f)?n(f)||(s=1):s=2;break}s?o+=f:i+=f}}return o&&(i+=o),i}function HE(t,e,r,n,i,s){let o="",a="",u;if(typeof t=="number")o=t,a=e||"";else{if(n){let c=!1,f=!1;t=t.replace(new RegExp(`(^|,| |\\()((?:${r.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(d,p,h,y)=>{f=!0;let v=n[h];if(v){let g;for(let b of s)if(g=v[b])break;if(g){c=!0;let b=g;if(y){let w=y.endsWith("%")?parseFloat(y)/100:+y;w=isNaN(w)?1:Math.min(Math.max(w,0),1),b+=Math.round(w*255).toString(16).toUpperCase().padStart(2,"0")}return p+b}}return d}),f&&(u=c)}let l=DN(t,i,e);if(l)return l;o=(t.indexOf("calc(")===-1?t:m0e(t,i,e)).replace(/\$\(((\w|-)+)\)/g,"var(--$1)")}return{value:o,unit:a,colorMatched:u}}var ug={"(":")","'":"'",'"':'"',"{":"}"},y0e=["!","*",">","+","~",":","[","@","_"];function hc(t,e,r,n=[]){let i=[",",...n],s=[],o="",a=0;return function u(l,c,f,d="",p=[],h=[]){let y,v=!1;c&&(c===")"&&o.slice(-1)==="$"?y=o.length-1:(c==="'"||c==='"')&&(v=!0),o+=l[a++]);let g=()=>{let b=o;if(o="",e&&b in e&&!p.includes(b)){let w=a;a=0,u(e[b].toString(),void 0,void 0,void 0,[...p,b],h),a=w}else if(r&&b in r&&!h.includes(b)){let w=a;a=0,u(r[b].toString(),void 0,void 0,void 0,p,[...h,b]),a=w}else s.push({value:b})};for(;a<l.length;a++){let b=l[a];if(b===c){if(o+=b,v){let w=0;for(let _=o.length-2;o[_]==="\\";_--)w++;if(w%2)continue}y!==void 0&&(o=o.slice(0,y)+o.slice(y).replace(/\$\((.*)\)/,"var(--$1)")),f||(v?s.push(o):g(),d="",o="");break}else if(!v&&b in ug)u(l,ug[b],f===void 0?0:f+1,d,p,h);else if((b==="|"||b===" ")&&c!=="}"&&(!v||d==="path"))c?o+=" ":g();else{if(!c){if(b==="."){if(isNaN(+l[a+1]))break;l[a-1]==="-"&&(o+="0")}else if(i.includes(b)){o&&g(),s.push(b);continue}else if(b==="#"&&(o||s.length&&l[a-1]!=="|"&&s[a-1]!==" ")||y0e.includes(b))break;d+=b}o+=b}}f===void 0&&o&&g()}(t),[s,t.slice(a)]}var mN=[":disabled",":active",":focus",":hover"],sc="matches",b0e="semantics",yN="symbol",ON="width",VE="max-"+ON,GE="min-"+ON,QE="motion",qN="reduce",bN=qN+"d-"+QE,KE="px",v0e="rem",w0e=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,_0e=t=>t.split(w0e).map((e,r)=>r%3?e:e.replace(/_/g," ")).join(""),N=class{constructor(t,e,r){this.className=t,this.matching=e,this.css=r;let n=this.constructor,{id:i,unit:s,colorful:o,prop:a}=n,{rootSize:u,scope:l,important:c}=r.config,{themeNames:f,colorNames:d,colorThemesMap:p,selectors:h,globalValues:y,breakpoints:v,mediaQueries:g}=r,b=r.values[i],w=r.relationThemesMap[t],_=t,S,q,C,R;if(e.origin===b0e){let[K,ue]=e.value;C=_.slice(K.length),S=ue}else if(this.analyzeToken)[q,R,C]=this.analyzeToken(_,b,y);else{let K;if(e.origin===sc){let ue=_.indexOf(":");this.prefix=_.slice(0,ue+1),this.prefix.includes("(")?(this.prefix=void 0,K=_):K=_.slice(ue+1)}else e.origin===yN&&(this.symbol=_[0],K=_.slice(1));[R,C]=hc(K,b,y)}C[0]==="!"&&(this.important=!0,C=C.slice(1));let O=K=>{let ue=_0e(K),L=[],M="",ae=0;for(let ne=0;ne<ue.length;ne++){let de=ue[ne];if(de==="\\"){M+=de+ue[++ne];continue}!ae&&de===","?(L.push(M),M=""):(M+=de,ae&&de===")"?ae--:de==="("&&ae++)}return M&&L.push(M),L};this.prefixSelectors=q?O(q):[""];let z=C.split("@"),F=z[0];if(F){this.vendorSuffixSelectors={};let K=(ne,de,le,se)=>{for(let[he,we]of de)if(he.test(ne)){for(let De of we)K(ne.replace(he,De),de,le,!0);return}se&&le.push(ne)},ue=[];""in h?K(F,h[""],ue,!0):ue.push(F);let L={};for(let[ne,de]of Object.entries(h)){if(!ne)continue;let le=[];for(let se of ue)K(se,de,le,!1);le.length&&(L[ne]=le)}let M=(ne,de)=>{let le=de.reduce((se,he)=>(se.push(...O(he)),se),[]);ne in this.vendorSuffixSelectors?this.vendorSuffixSelectors[ne].push(...le):this.vendorSuffixSelectors[ne]=le},ae=Object.keys(L);if(ae.length)for(let ne of ae)M(ne,L[ne]);else M("",ue);for(let ne of Object.values(this.vendorSuffixSelectors))for(let de of ne){this.hasWhere!==!1&&(this.hasWhere=de.includes(":where("));for(let le=0;le<mN.length;le++)if(de.includes(mN[le])){(this.priority===-1||this.priority>le)&&(this.priority=le);break}}}else this.vendorSuffixSelectors={"":[""]};for(let K=1;K<z.length;K++){let ue=z[K];if(ue)if(f.includes(ue))this.theme=ue;else if(ue==="rtl"||ue==="ltr")this.direction=ue;else{let L,M,ae=ue.indexOf("_");if(ae!==-1)L=ue.slice(0,ae),M=ue.slice(ae);else{let ne=ue.indexOf("(");ne!==-1&&(L=ue.slice(0,ne),M=ue.slice(ne))}if(!L){L="media";let ne=[];this.media={token:ue,features:{}};let de=ue.split("&");for(let le of de)if(le==="all"||le==="print"||le==="screen"||le==="speech")this.media.type=le;else if(le==="\u{1F5A8}")this.media.type="print";else if(le==="landscape"||le==="portrait")ne.push("(orientation:"+le+")");else if(le===QE||le===bN)ne.push("(prefers-"+bN+":"+(le===QE?"no-preference":qN)+")");else if(g&&le in g)ne.push(g[le]);else{let se={token:le},he="",we="",De=0;le.startsWith("<=")?(we="<=",he=VE):le.startsWith(">=")||v[le]?(we=">=",he=GE):le.startsWith(">")?(we=">",he=GE,De=.02):le.startsWith("<")&&(we="<",he=VE,De=-.02);let Je=we?le.replace(we,""):le,ve=v[Je];switch(he){case VE:case GE:ve?Object.assign(se,HE(ve,KE)):Object.assign(se,HE(Je,KE)),se.unit===KE&&(se.value+=De),this.media.features[he]=se,ne.push("("+he+":"+(se.value+se.unit)+")");break}}M="",this.media.type&&(M=this.media.type),ne.length&&(M+=(M?" and ":"")+ne.join(" and "))}M&&(this.at[L]=(L in this.at?this.at[L]+" and ":"")+M.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let te=(K,ue)=>{let L,M,ae=(de,le,se)=>{let he="";this.direction&&(he+="[dir="+this.direction+"] ");let we=this.prefixSelectors.map(ve=>ve+he),De=(ve,Ct)=>we.map(dt=>(ve?"."+ve+" ":"")+(l?l+" ":"")+dt).reduce((dt,pe)=>(dt.push(se.reduce((ce,ie)=>(ce.push(pe+"."+CSS.escape(Ct)+ie),ce),[]).join(",")),dt),[]).join(","),Je=De(le,t)+(w?Object.entries(w).filter(([ve])=>this.theme||!o||!le||!ve||ve===le).map(([ve,Ct])=>Ct.reduce((dt,pe)=>dt+","+De(this.theme??((o||this.getThemeProps)&&le||ve),pe),"")).join(""):"")+"{"+de+"}";for(let ve of Object.keys(this.at).sort((Ct,dt)=>dt==="supports"?-1:1))Je="@"+ve+" "+this.at[ve]+"{"+Je+"}";return Je},ne=[];if(R){let de,le;for(let se of R)typeof se=="string"?ne.push(se):(de=HE(se.value,s,o&&d,o&&p,u,this.theme?[this.theme,""]:[K]),de.colorMatched!==void 0&&le!==!0&&(le=de.colorMatched),ne.push(de.value+de.unit));if(ue&&(le===void 0?K:!le))return;if(ne.length===1?de?(L=de.value,M=de.unit):L=ne[0]:L=ne.reduce((se,he,we)=>se+he+(he===","||R[we+1]===","||we===R.length-1?"":" "),""),typeof L!="object"){this.parseValue&&(L=this.parseValue(L,this.css.config)),o&&L==="current"&&(L="currentColor");let se={unit:M,value:L,important:this.important};if(this.getThemeProps){let he=this.getThemeProps(se,r);for(let we in he)for(let De of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:M,value:L,text:ae(Object.entries(he[we]).map(([Je,ve])=>UE(Je,{important:(this.important||c)&&!ve.endsWith("!important"),unit:"",value:ve})).join(";"),we,De),theme:we});return}else this.get&&(L=this.get(se))}}else L=S;for(let de of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:M,value:L,text:ae(typeof L=="object"?Object.entries(L).map(([le,se])=>UE(le,{...typeof se=="object"?se:{unit:"",value:se},important:this.important||c})).join(";"):UE(a,{unit:M,value:L,important:this.important||c}),K,de),theme:K})};if(this.getThemeProps)te(void 0,!1);else if(this.theme)te(this.theme,!1);else if(o)for(let K of f)te(K,!0);else te("",!1)}prefix;symbol;token;prefixSelectors;vendorSuffixSelectors;important;media;at={};direction;theme;unitToken;hasWhere;priority=-1;natives=[];static get prop(){return this.id?.replace(/(?!^)[A-Z]/g,t=>"-"+t).toLowerCase()}static match(t,e,r,n){let{colorStarts:i,symbol:s,prop:o}=this;if(e&&e.test(t))return{origin:sc};if(i){if(t.match("^"+i+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current|inherit))"))return{origin:sc};if(n.length&&t.indexOf("|")===-1){let a=t.match("^"+i+"((?:"+n.join("|")+")[0-9a-zA-Z-]*)");if(a&&a[1]in r)return{origin:sc}}}if(s&&t.startsWith(s))return{origin:yN};if(o&&t.startsWith(o+":"))return{origin:sc}}get text(){return this.natives.map(t=>t.text).join("")}};x(N,"id"),x(N,"matches"),x(N,"colorStarts"),x(N,"symbol"),x(N,"unit",v0e),x(N,"colorful");var yh=class extends N{};x(yh,"id","FontWeight"),x(yh,"matches","^f(?:ont)?:(?:bolder|$values)(?!\\|)"),x(yh,"unit","");var JE=class extends N{};x(JE,"id","FontFamily"),x(JE,"matches","^f(?:ont)?:(?:$values)(?!\\|)");var XE=class extends N{};x(XE,"id","FontSize"),x(XE,"matches","^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var ZE=class extends N{static get prop(){return""}get(t){let e=this.prefix[0]==="m"?"margin":"padding",r=e+"-left",n=e+"-right",i=e+"-top",s=e+"-bottom";switch(this.prefix[1]){case"x":return{[r]:t,[n]:t};case"y":return{[i]:t,[s]:t};case"l":return{[r]:t};case"r":return{[n]:t};case"t":return{[i]:t};case"b":return{[s]:t};default:return{[e]:t}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};x(ZE,"id","Spacing"),x(ZE,"matches","^[pm][xytblr]?:.");var eC=class extends N{};x(eC,"id","Width"),x(eC,"matches","^w:.");var tC=class extends N{};x(tC,"id","Height"),x(tC,"matches","^h:.");var rC=class extends N{};x(rC,"id","MinWidth"),x(rC,"matches","^min-w:.");var nC=class extends N{};x(nC,"id","MinHeight"),x(nC,"matches","^min-h:.");var bh=class extends N{};x(bh,"id","LetterSpacing"),x(bh,"matches","^ls:."),x(bh,"unit","em");var x0e="subpixel-antialiased",vN="-webkit-font-smoothing",wN="-moz-osx-font-smoothing",vh=class extends N{static get prop(){return""}get(t){let e={};switch(t.value){case x0e:e[vN]=e[wN]={...t,value:"auto"};break;case"antialiased":e[vN]={...t,value:"antialiased"},e[wN]={...t,value:"grayscale"};break}return e}};x(vh,"id","FontSmoothing"),x(vh,"matches","^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)"),x(vh,"unit","");var wh=class extends N{};x(wh,"id","FontStyle"),x(wh,"matches","^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)"),x(wh,"unit","deg");var iC=class extends N{};x(iC,"id","FontVariantNumeric"),x(iC,"matches","^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)");var sC=class extends N{};x(sC,"id","FontFeatureSettings"),x(sC,"matches","^font-feature:.");var _h=class extends N{};x(_h,"id","LineHeight"),x(_h,"matches","^lh:."),x(_h,"unit","");var oC=class extends N{};x(oC,"id","ObjectFit"),x(oC,"matches","^(?:object|obj):(?:contain|cover|fill|scale-down|$values)");var aC=class extends N{};x(aC,"id","ObjectPosition"),x(aC,"matches","^(?:object|obj):(?:top|bottom|right|left|center|$values)");var uC=class extends N{};x(uC,"id","TextAlign"),x(uC,"matches","^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)");var xh=class extends N{order=-1};x(xh,"id","TextDecoration"),x(xh,"matches","^t(?:ext)?:(?:underline|line-through|overline|$values)"),x(xh,"colorful",!0);var lC=class extends N{};x(lC,"id","TextTransform"),x(lC,"matches","^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)");var cC=class extends N{};x(cC,"id","VerticalAlign"),x(cC,"matches","^(?:v|vertical):.");var Sh=class extends N{static get prop(){return""}get(t){return{overflow:{...t,value:"hidden"},display:{...t,value:"-webkit-box"},"overflow-wrap":{...t,value:"break-word"},"text-overflow":{...t,value:"ellipsis"},"-webkit-box-orient":{...t,value:"vertical"},"-webkit-line-clamp":t}}};x(Sh,"id","Lines"),x(Sh,"matches","^lines:."),x(Sh,"unit","");var kh=class extends N{};x(kh,"id","TransformOrigin"),x(kh,"matches","^transform:(?:top|bottom|right|left|center|[0-9]|$values)"),x(kh,"unit","px");var fC=class extends N{};x(fC,"id","TransformStyle"),x(fC,"matches","^transform:(?:flat|preserve-3d|$values)(?!\\|)");var dC=class extends N{};x(dC,"id","TransformBox"),x(dC,"matches","^transform:(?:$values)(?!\\|)");var Eh=class extends N{parseValue(t,{rootSize:e}){return t.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(r,n,i,s)=>{let o,a;switch(n){case"translate":o="rem";break;case"skew":o="deg";break;case"rotate":i==="3d"&&(a=!0),o="deg";break;default:return r}let u=s.split(",");return r.replace(s,u.map((l,c)=>!a||u.length-1===c?Number.isNaN(+l)?l:l/(o==="rem"?e:1)+o:l).join(","))})}};x(Eh,"id","Transform"),x(Eh,"matches","^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\("),x(Eh,"unit","");var pC=class extends N{order=-1};x(pC,"id","Transition"),x(pC,"symbol","~");var Ch=class extends N{};x(Ch,"id","TransitionDelay"),x(Ch,"matches","^~delay:."),x(Ch,"unit","ms");var Dh=class extends N{};x(Dh,"id","TransitionDuration"),x(Dh,"matches","^~duration:."),x(Dh,"unit","ms");var hC=class extends N{};x(hC,"id","TransitionProperty"),x(hC,"matches","^~property:.");var gC=class extends N{};x(gC,"id","TransitionTimingFunction"),x(gC,"matches","^~easing:.");var mC=class extends N{};x(mC,"id","MaxHeight"),x(mC,"matches","^max-h:.");var yC=class extends N{};x(yC,"id","MaxWidth"),x(yC,"matches","^max-w:.");var bC=class extends N{};x(bC,"id","Display"),x(bC,"matches","^d:.");var vC=class extends N{};x(vC,"id","BoxSizing"),x(vC,"matches","^box:(?:$values)(?!\\|)");var wC=class extends N{};x(wC,"id","Opacity"),x(wC,"unit","");var RN=class extends N{};x(RN,"id","Visibility");var AN=class extends N{};x(AN,"id","Clear");var PN=class extends N{};x(PN,"id","Float");var TN=class extends N{};x(TN,"id","Isolation");var _C=class extends N{static get prop(){return""}get(t){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":t};case"y":return{"overflow-y":t}}return{overflow:t}}get order(){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":case"y":return 0}return-1}};x(_C,"id","Overflow"),x(_C,"matches","^overflow(?:-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\\$|var|$values)");var xC=class extends N{static get prop(){return""}get(t){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":t};case"y":return{"overscroll-behavior-y":t};default:return{"overscroll-behavior":t}}}};x(xC,"id","OverscrollBehavior"),x(xC,"matches","^overscroll-behavior(?:-[xy])?:");var Oh=class extends N{};x(Oh,"id","ZIndex"),x(Oh,"matches","^z:."),x(Oh,"unit","");var qh=class extends N{};x(qh,"id","AnimationDelay"),x(qh,"matches","^@delay:."),x(qh,"unit","ms");var SC=class extends N{};x(SC,"id","AnimationDirection"),x(SC,"matches","^@direction:.");var kC=class extends N{};x(kC,"id","AnimationFillMode"),x(kC,"matches","^@fill-mode:.");var Rh=class extends N{};x(Rh,"id","AnimationIterationCount"),x(Rh,"matches","^@iteration-count:."),x(Rh,"unit","");var EC=class extends N{};x(EC,"id","AnimationName"),x(EC,"matches","^@name:.");var CC=class extends N{};x(CC,"id","AnimationPlayState"),x(CC,"matches","^@play-state:.");var DC=class extends N{};x(DC,"id","AnimationTimingFunction"),x(DC,"matches","^@easing:.");var Ah=class extends N{order=-1};x(Ah,"id","Animation"),x(Ah,"symbol","@"),x(Ah,"unit","");var mh="border-";function fg(t,e,r=""){r&&(r="-"+r);let n=/^b(order)?-?(.)?/.exec(t)[2],i=mh+"left"+r,s=mh+"right"+r,o=mh+"top"+r,a=mh+"bottom"+r;switch(n){case"x":return{[i]:e,[s]:e};case"y":return{[o]:e,[a]:e};case"l":return{[i]:e};case"r":return{[s]:e};case"t":return{[o]:e};case"b":return{[a]:e};default:return{["border"+r]:e}}}var ac=class extends N{static get prop(){return""}get(t){return fg(this.prefix,t,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};x(ac,"id","BorderColor"),x(ac,"matches","^border(?:-(?:left|right|top|bottom))?-color:."),x(ac,"colorStarts","b(?:[xytblr]|(?:order(?:-(?:left|right|top|bottom))?))?:"),x(ac,"colorful",!0);var Ph="border-top-left-radius",Th="border-top-right-radius",Mh="border-bottom-left-radius",Lh="border-bottom-right-radius",_N="border-radius",S0e=[Ph,Th,Mh,Lh],OC=class extends N{static get prop(){return""}get(t){if(this.prefix){let r="",n=this.prefix.split("-");if(n.length>1)for(let i=1;i<n.length-1;i++)r+=n[i][0];else r=this.prefix.slice(1,-1);switch(r){case"t":return{[Ph]:t,[Th]:t};case"tl":case"lt":return{[Ph]:t};case"rt":case"tr":return{[Th]:t};case"b":return{[Mh]:t,[Lh]:t};case"bl":case"lb":return{[Mh]:t};case"br":case"rb":return{[Lh]:t};case"l":return{[Ph]:t,[Mh]:t};case"r":return{[Th]:t,[Lh]:t};default:return{[_N]:t}}}let e=this.prefix?.slice(0,-1);return{[S0e.includes(e)?e:_N]:t}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};x(OC,"id","BorderRadius"),x(OC,"matches","^(?:r[tblr]?[tblr]?|border(?:-(?:top|bottom)-(?:left|right))?-radius):.");var qC=class extends N{static get prop(){return""}get(t){return fg(this.prefix,t,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};x(qC,"id","BorderStyle"),x(qC,"matches","^(?:border(?:-(?:left|right|top|bottom))?-style:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|))");var RC=class extends N{static get prop(){return""}get(t){return fg(this.prefix,t,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};x(RC,"id","BorderWidth"),x(RC,"matches","^(?:border(?:-(?:left|right|top|bottom))?-width:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$)");var Fh=class extends N{static get prop(){return""}get(t){return fg(this.prefix,t)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};x(Fh,"id","Border"),x(Fh,"matches","^b(?:[xytblr]?|order(?:-(?:left|right|top|bottom))?):."),x(Fh,"colorful",!0);var AC=class extends N{};x(AC,"id","BackgroundAttachment"),x(AC,"matches","^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)");var MN=class extends N{};x(MN,"id","BackgroundBlendMode");var PC=class extends N{get(t){return{"-webkit-background-clip":t,"background-clip":t}}};x(PC,"id","BackgroundClip"),x(PC,"matches","^(?:bg|background):(?:text|$values)(?!\\|)");var uc=class extends N{};x(uc,"id","BackgroundColor"),x(uc,"colorStarts","(?:bg|background):"),x(uc,"unit",""),x(uc,"colorful",!0);var TC=class extends N{};x(TC,"id","BackgroundOrigin"),x(TC,"matches","^(?:bg|background):(?:$values)(?!\\|)");var Ih=class extends N{};x(Ih,"id","BackgroundPosition"),x(Ih,"matches","^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)"),x(Ih,"unit","px");var MC=class extends N{};x(MC,"id","BackgroundRepeat"),x(MC,"matches","^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])");var LC=class extends N{};x(LC,"id","BackgroundSize"),x(LC,"matches","^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)");var Nh=class extends N{};x(Nh,"id","BackgroundImage"),x(Nh,"matches","^(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)"),x(Nh,"colorful",!0);var jh=class extends N{order=-1};x(jh,"id","Background"),x(jh,"matches","^bg:."),x(jh,"colorful",!0);var FC=class extends N{};x(FC,"id","MixBlendMode"),x(FC,"matches","^blend:.");var LN=class extends N{};x(LN,"id","Position");function FN(t,e,{rootSize:r}){let n="",i=0;return function s(o,a){let u="",l=a?e(a):"",c=()=>{u&&(n+=!l||Number.isNaN(+u)?u:+u/(l==="rem"?r:1)+l,u="")};for(;i<t.length;i++){let f=t[i];if(f===o&&(o!=="'"||t[i+1]===")")){c(),n+=f;break}else f===","||f===" "?(c(),n+=f):!u&&f==="'"?(n+=f,i++,s(f),u=""):u&&f==="("?(n+=u+f,i++,s(")",u),u=""):u+=f}c()}(),n}var $h=class extends N{get(t){return{"backdrop-filter":t,"-webkit-backdrop-filter":t}}parseValue(t,e){return FN(t,r=>{switch(r){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},e)}};x($h,"id","BackdropFilter"),x($h,"matches","^bd:."),x($h,"colorful",!0);var Bh=class extends N{};x(Bh,"id","Fill"),x(Bh,"colorStarts","fill:"),x(Bh,"colorful",!0);var IC=class extends N{};x(IC,"id","Stroke"),x(IC,"colorful",!0);var NC=class extends N{};x(NC,"id","StrokeWidth"),x(NC,"matches","^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var Wh=class extends N{parseValue(t,e){return FN(t,r=>{switch(r){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},e)}};x(Wh,"id","Filter"),x(Wh,"matches","^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\("),x(Wh,"colorful",!0);var IN=class extends N{};x(IN,"id","Cursor");var NN=class extends N{};x(NN,"id","PointerEvents");var jN=class extends N{};x(jN,"id","Resize");var $N=class extends N{};x($N,"id","TouchAction");var BN=class extends N{get(t){return{"user-drag":t,"-webkit-user-drag":t}}};x(BN,"id","UserDrag");var WN=class extends N{get(t){return{"user-select":t,"-webkit-user-select":t}}};x(WN,"id","UserSelect");var zh=class extends N{};x(zh,"id","BoxShadow"),x(zh,"matches","^s(?:hadow)?:."),x(zh,"colorful",!0);var jC=class extends N{};x(jC,"id","TextShadow"),x(jC,"colorful",!0);var xN=.5,$C=class extends N{static get prop(){return""}get(t){let{unit:e,value:r}=t;return{"font-size":t,"line-height":{...t,value:e==="rem"?r+xN+e:`calc(${r}${e} + ${xN}rem)`,unit:""}}}};x($C,"id","TextSize"),x($C,"matches","^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var BC=class extends N{};x(BC,"id","WordBreak"),x(BC,"unit","");var Uh=class extends N{get(t){return{display:{...t,value:"grid"},"grid-template-columns":{...this,value:"repeat("+t.value+",minmax("+0+","+1+"fr))"}}}};x(Uh,"id","GridColumns"),x(Uh,"matches","^grid-cols:."),x(Uh,"unit","");var WC=class extends N{get(t){return{display:{...t,value:"grid"},"grid-auto-flow":{...t,value:"column"},"grid-template-rows":{...t,value:"repeat("+t.value+",minmax("+0+","+1+"fr))"}}}};x(WC,"id","GridRows"),x(WC,"unit","");var zC=class extends N{static get prop(){return""}get(t){switch(this.prefix[4]){case"x":return{"column-gap":t};case"y":return{"row-gap":t};default:return{gap:t}}}order=-1};x(zC,"id","Gap"),x(zC,"matches","^gap(?:-x|-y)?:.");var UC=class extends N{};x(UC,"id","WordSpacing"),x(UC,"unit","em");var Hh=class extends N{static get prop(){return""}get(t){return{["--"+this.prefix.slice(1,-1)]:t}}};x(Hh,"id","Variable"),x(Hh,"matches","^\\$[^ {}A-Z]+:[^ ]"),x(Hh,"unit","");var Vh=class extends N{};x(Vh,"id","AspectRatio"),x(Vh,"matches","^aspect:."),x(Vh,"unit","");var HC=class extends N{get(t){return{"box-decoration-break":t,"-webkit-box-decoration-break":t}}};x(HC,"id","BoxDecorationBreak"),x(HC,"matches","^box:(?:slice|clone|$values)(?!\\|)");var zN=class extends N{};x(zN,"id","BreakAfter");var UN=class extends N{};x(UN,"id","BreakBefore");var HN=class extends N{};x(HN,"id","BreakInside");var VC=class extends N{};x(VC,"id","FlexShrink"),x(VC,"unit","");var GC=class extends N{};x(GC,"id","FlexDirection"),x(GC,"matches","^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)");var KC=class extends N{};x(KC,"id","FlexGrow"),x(KC,"unit","");var YC=class extends N{};x(YC,"id","FlexWrap"),x(YC,"matches","^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)");var VN=class extends N{};x(VN,"id","FlexBasis");var QC=class extends N{order=-1};x(QC,"id","Flex"),x(QC,"unit","");var Gh=class extends N{};x(Gh,"id","Order"),x(Gh,"matches","^o:."),x(Gh,"unit","");var Kh=class extends N{parseValue(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}order=-1};x(Kh,"id","GridColumn"),x(Kh,"matches","^grid-col(?:umn)?(?:-span)?:."),x(Kh,"unit","");var JC=class extends N{};x(JC,"id","ColumnSpan"),x(JC,"matches","^col-span:.");var Yh=class extends N{parseValue(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}order=-1};x(Yh,"id","GridRow"),x(Yh,"matches","^grid-row-span:."),x(Yh,"unit","");var lc=class extends N{};x(lc,"id","Color"),x(lc,"matches","^(?:color|fg|foreground):."),x(lc,"colorful",!0),x(lc,"unit","");var XC=class extends N{};x(XC,"id","AlignContent"),x(XC,"matches","^ac:.");var ZC=class extends N{};x(ZC,"id","AlignItems"),x(ZC,"matches","^ai:.");var eD=class extends N{};x(eD,"id","AlignSelf"),x(eD,"matches","^as:");var tD=class extends N{};x(tD,"id","GridAutoColumns"),x(tD,"matches","^grid-auto-cols:.");var rD=class extends N{};x(rD,"id","GridAutoFlow"),x(rD,"matches","^grid-flow:.");var GN=class extends N{};x(GN,"id","GridAutoRows");var nD=class extends N{};x(nD,"id","JustifyContent"),x(nD,"matches","^jc:.");var iD=class extends N{};x(iD,"id","JustifyItems"),x(iD,"matches","^ji:.");var sD=class extends N{};x(sD,"id","JustifySelf"),x(sD,"matches","^js:.");var KN=class extends N{order=-1};x(KN,"id","PlaceContent");var YN=class extends N{order=-1};x(YN,"id","PlaceItems");var QN=class extends N{order=-1};x(QN,"id","PlaceSelf");var oD=class extends N{static get prop(){return""}get(t){return{[this.prefix.slice(0,-1)]:t}}get order(){return this.prefix==="padding:"?-1:0}};x(oD,"id","Padding"),x(oD,"matches","^padding(?:-(?:left|right|top|bottom))?:.");var aD=class extends N{static get prop(){return""}get(t){return{[this.prefix.slice(0,-1)]:t}}get order(){return this.prefix==="margin:"?-1:0}};x(aD,"id","Margin"),x(aD,"matches","^margin(?:-(?:left|right|top|bottom))?:.");var uD=class extends N{};x(uD,"id","TextOverflow"),x(uD,"matches","^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))");var lD=class extends N{};x(lD,"id","ListStylePosition"),x(lD,"matches","^list-style:(?:inside|outside|$values)(?!\\|)");var cD=class extends N{};x(cD,"id","ListStyleType"),x(cD,"matches","^list-style:(?:disc|decimal|$values)(?!\\|)");var JN=class extends N{order=-1};x(JN,"id","ListStyle");var Qh=class extends N{};x(Qh,"id","TextDecorationColor"),x(Qh,"colorStarts","text-decoration:"),x(Qh,"colorful",!0);var fD=class extends N{};x(fD,"id","TextDecorationStyle"),x(fD,"matches","^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)");var Jh=class extends N{};x(Jh,"id","TextDecorationThickness"),x(Jh,"matches","^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$"),x(Jh,"unit","em");var XN=class extends N{};x(XN,"id","TextIndent");var ZN=class extends N{};x(ZN,"id","Content");var Xh=class extends N{};x(Xh,"id","OutlineColor"),x(Xh,"colorStarts","outline:"),x(Xh,"colorful",!0);var e5=class extends N{};x(e5,"id","OutlineOffset");var dD=class extends N{};x(dD,"id","OutlineStyle"),x(dD,"matches","^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)");var pD=class extends N{};x(pD,"id","OutlineWidth"),x(pD,"matches","^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var hD=class extends N{order=-1};x(hD,"id","Outline"),x(hD,"colorful",!0);var gD=class extends N{};x(gD,"id","BorderCollapse"),x(gD,"matches","^b(?:order)?:(?:collapse|separate|$values)(?!\\|)");var t5=class extends N{};x(t5,"id","BorderSpacing");var r5=class extends N{};x(r5,"id","TableLayout");var Zh=class extends N{};x(Zh,"id","AccentColor"),x(Zh,"colorStarts","accent:"),x(Zh,"colorful",!0);var n5=class extends N{};x(n5,"id","Appearance");var eg=class extends N{};x(eg,"id","CaretColor"),x(eg,"colorStarts","caret:"),x(eg,"colorful",!0);var i5=class extends N{};x(i5,"id","ScrollBehavior");var mD=class extends N{static get prop(){return""}get(t){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":t,"scroll-margin-right":t};case"y":return{"scroll-margin-top":t,"scroll-margin-bottom":t};case"l":return{"scroll-margin-left":t};case"r":return{"scroll-margin-right":t};case"t":return{"scroll-margin-top":t};case"b":return{"scroll-margin-bottom":t}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:t}}get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}};x(mD,"id","ScrollMargin"),x(mD,"matches","^scroll-m(?:[xytblr]|argin(?:-(?:top|bottom|left|right))?)?:.");var yD=class extends N{static get prop(){return""}get(t){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":t,"scroll-padding-right":t};case"y":return{"scroll-padding-top":t,"scroll-padding-bottom":t};case"l":return{"scroll-padding-left":t};case"r":return{"scroll-padding-right":t};case"t":return{"scroll-padding-top":t};case"b":return{"scroll-padding-bottom":t}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:t}}get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}};x(yD,"id","ScrollPadding"),x(yD,"matches","^scroll-p(?:[xytblr]|adding(?:-(?:top|bottom|left|right))?)?:.");var bD=class extends N{};x(bD,"id","ScrollSnapAlign"),x(bD,"matches","^scroll-snap:(?:start|end|center|$values)");var vD=class extends N{};x(vD,"id","ScrollSnapStop"),x(vD,"matches","^scroll-snap:(?:normal|always|$values)(?!\\|)");var wD=class extends N{};x(wD,"id","ScrollSnapType"),x(wD,"matches","^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)");var s5=class extends N{};x(s5,"id","WillChange");var o5=class extends N{};x(o5,"id","TextUnderlineOffset");var _D=class extends N{get(t){return{[this.prefix.slice(0,-1)]:t}}};x(_D,"id","Inset"),x(_D,"matches","^(?:top|bottom|left|right):.");var tg=class extends N{order=-1};x(tg,"id","Columns"),x(tg,"matches","^(?:columns|cols):."),x(tg,"unit","");var xD=class extends N{};x(xD,"id","WhiteSpace"),x(xD,"unit","");var SD=class extends N{};x(SD,"id","TextOrientation"),x(SD,"matches","^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)");var kD=class extends N{};x(kD,"id","WritingMode"),x(kD,"matches","^writing:.");var a5=class extends N{};x(a5,"id","Contain");var rg=class extends N{};x(rg,"id","AnimationDuration"),x(rg,"matches","^@duration:."),x(rg,"unit","ms");var ED=class extends N{};x(ED,"id","TextRendering"),x(ED,"matches","^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)");var u5=class extends N{};x(u5,"id","Direction");var CD=class extends N{};x(CD,"id","TextDecorationLine"),x(CD,"matches","^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)");var ng=class extends N{};x(ng,"id","GridColumnStart"),x(ng,"matches","^grid-col-start:."),x(ng,"unit","");var DD=class extends N{};x(DD,"id","ListStyleImage"),x(DD,"matches","^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)");var OD=class extends N{};x(OD,"id","ShapeOutside"),x(OD,"matches","^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)");var qD=class extends N{};x(qD,"id","ShapeMargin"),x(qD,"matches","^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var RD=class extends N{};x(RD,"id","ShapeImageThreshold"),x(RD,"unit","");var AD=class extends N{};x(AD,"id","ClipPath"),x(AD,"matches","^clip:.");var l5=class extends N{order=-1};x(l5,"id","Grid");var ig=class extends N{order=-1};x(ig,"id","Font"),x(ig,"matches","^f:."),x(ig,"unit","");var c5=class extends N{};x(c5,"id","Quotes");var f5=class extends N{order=-1};x(f5,"id","GridTemplate");var PD=class extends N{};x(PD,"id","GridRowStart"),x(PD,"unit","");var d5=class extends N{};x(d5,"id","GridTemplateAreas");var TD=class extends N{};x(TD,"id","GridTemplateColumns"),x(TD,"matches","^grid-template-cols:.");var p5=class extends N{};x(p5,"id","GridTemplateRows");var MD=class extends N{order=-1};x(MD,"id","GridArea"),x(MD,"unit","");var sg=class extends N{};x(sg,"id","GridColumnEnd"),x(sg,"matches","^grid-col-end:."),x(sg,"unit","");var LD=class extends N{};x(LD,"id","GridRowEnd"),x(LD,"unit","");var h5=class extends N{get(t){return{"mask-image":t,"-webkit-mask-image":t}}};x(h5,"id","MaskImage");var cc=class extends N{static get prop(){return""}get(t){return{"-webkit-text-fill-color":t}}};x(cc,"id","TextFillColor"),x(cc,"matches","^text-fill-color:."),x(cc,"colorStarts","(?:text-fill|text|t):"),x(cc,"colorful",!0);var FD=class extends N{static get prop(){return""}get(t){return{"-webkit-text-stroke":t}}};x(FD,"id","TextStroke"),x(FD,"matches","^text-stroke:.");var ID=class extends N{static get prop(){return""}get(t){return{"-webkit-text-stroke-width":t}}};x(ID,"id","TextStrokeWidth"),x(ID,"matches","^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)");var fc=class extends N{static get prop(){return""}get(t){return{"-webkit-text-stroke-color":t}}};x(fc,"id","TextStrokeColor"),x(fc,"matches","^text-stroke-color:."),x(fc,"colorStarts","text-stroke:"),x(fc,"colorful",!0);var g5=class extends N{};x(g5,"id","StrokeDasharray");var m5=class extends N{};x(m5,"id","StrokeDashoffset");var ND=class extends N{};x(ND,"id","X"),x(ND,"unit","");var jD=class extends N{};x(jD,"id","Y"),x(jD,"unit","");var $D=class extends N{};x($D,"id","Cx"),x($D,"unit","");var BD=class extends N{};x(BD,"id","Cy"),x(BD,"unit","");var WD=class extends N{};x(WD,"id","Rx"),x(WD,"unit","");var zD=class extends N{};x(zD,"id","Ry"),x(zD,"unit","");var y5=class extends N{};x(y5,"id","BorderImageOutset");var UD=class extends N{};x(UD,"id","BorderImageRepeat"),x(UD,"matches","^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)");var HD=class extends N{};x(HD,"id","BorderImageSlice"),x(HD,"unit","");var VD=class extends N{};x(VD,"id","BorderImageSource"),x(VD,"matches","^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)");var GD=class extends N{};x(GD,"id","BorderImageWidth"),x(GD,"matches","^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var KD=class extends N{};x(KD,"id","BorderImage"),x(KD,"unit","");var k0e=/\{(.*)\}/,og=class extends N{static get prop(){return""}analyzeToken(t,e,r){let n=0;for(;n<t.length&&!(t[n]==="{"&&t[n-1]!=="\\");n++);return[t.slice(0,n),...hc(t.slice(n),e,r)]}getThemeProps(t,e){let r={},n=(l,c)=>{let f=c.indexOf(":");if(f!==-1){l in r||(r[l]={});let d=r[l],p=c.slice(0,f);p in d||(d[p]=c.slice(f+1))}},i=l=>{let c=(f,d)=>{let p=d.slice(CSS.escape(l.className).length).match(k0e)[1].split(";");for(let h of p)n(f,h)};if(this.theme){let f=l.natives.find(d=>d.theme===this.theme)??l.natives.find(d=>!d.theme);f&&c(this.theme,f.text)}else for(let f of l.natives)c(f.theme,f.text)},s=[],o="",a=()=>{o&&(s.push(o),o="")},u=1;(function l(c){for(;u<t.value.length;u++){let f=t.value[u];if(!c){if(f===";"){a();continue}if(f==="}")break}if(o+=f,c===f){if(c==="'"||c==='"'){let d=0;for(let p=o.length-2;o[p]==="\\";p--)d++;if(d%2)continue}break}else f in ug&&c!=="'"&&c!=='"'&&(u++,l(ug[f]))}})(void 0),a();for(let l of s){let c=e.create(l);if(Array.isArray(c))for(let f of c)i(f);else c?i(c):n(this.theme??"",l)}return r}};x(og,"id","Group"),x(og,"matches","^(?:.+?[*_>~+])?\\{.+?\\}"),x(og,"unit","");var YD=class extends N{};x(YD,"id","CounterIncrement"),x(YD,"unit","");var QD=class extends N{};x(QD,"id","CounterReset"),x(QD,"unit","");var JD=class extends N{static get prop(){return""}analyzeToken(t,e,r){return["",...hc(t,e,r,["x"])]}get(t){let[e,r]=t.value.split(" x ");return{width:{...t,value:e},height:{...t,value:r}}}};x(JD,"id","WH"),x(JD,"matches","^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)");var XD=class extends N{static get prop(){return""}analyzeToken(t,e,r){return["",...hc(t.slice(4),e,r,["x"])]}get(t){let[e,r]=t.value.split(" x ");return{"min-width":{...t,value:e},"min-height":{...t,value:r}}}};x(XD,"id","MinWH"),x(XD,"matches","^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)");var ZD=class extends N{static get prop(){return""}analyzeToken(t,e,r){return["",...hc(t.slice(4),e,r,["x"])]}get(t){let[e,r]=t.value.split(" x ");return{"max-width":{...t,value:e},"max-height":{...t,value:r}}}};x(ZD,"id","MaxWH"),x(ZD,"matches","^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)");var E0e=[og,Hh,XE,yh,JE,vh,wh,iC,sC,ig,lc,ZE,aD,oD,VN,YC,KC,VC,GC,QC,bC,eC,tC,rC,nC,JD,XD,ZD,a5,ZN,YD,QD,bh,_h,oC,aC,uC,Qh,fD,Jh,CD,xh,o5,uD,SD,lC,ED,XN,cC,tg,xD,_D,Sh,mC,yC,vC,wC,RN,AN,PN,TN,_C,xC,Oh,LN,IN,NN,jN,$N,BC,UC,BN,WN,jC,$C,cc,ID,fc,FD,zh,r5,dC,fC,kh,Eh,hC,gC,Dh,Ch,pC,qh,SC,rg,kC,Rh,EC,CC,DC,Ah,ac,OC,qC,RC,gD,t5,y5,UD,HD,VD,GD,KD,Fh,AC,MN,uc,PC,TC,Ih,MC,LC,Nh,jh,FC,$h,Wh,Bh,g5,m5,NC,IC,ND,jD,$D,BD,WD,zD,ng,sg,Kh,Uh,PD,LD,Yh,WC,tD,rD,GN,d5,TD,p5,f5,MD,l5,zC,Gh,HN,UN,zN,HC,Vh,JC,XC,ZC,eD,nD,iD,sD,KN,YN,QN,lD,cD,DD,JN,Xh,e5,dD,pD,hD,Zh,n5,eg,i5,mD,yD,bD,vD,wD,s5,kD,u5,OD,qD,RD,AD,c5,h5],C0e=E0e,D0e=!1,O0e=!0,q0e={colors:r0e,breakpoints:YE,semantics:tO,values:h0e,selectors:a0e,themes:c0e,scheme:d0e,Rules:C0e,rootSize:n0e,scope:s0e,override:D0e,observe:O0e},SN=q0e,eO=typeof Buffer<"u"?Buffer:null;function b5(t){return!!(eO&&t instanceof eO||t instanceof Date||t instanceof RegExp)}function v5(t){if(eO&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function w5(t){let e=[];return t.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?e[n]=w5(r):b5(r)?e[n]=v5(r):e[n]=lg({},r):e[n]=r}),e}function kN(t,e){return e==="__proto__"?void 0:t[e]}function lg(...t){let e={},r,n;return t.forEach(function(i){typeof i!="object"||i===null||Array.isArray(i)||Object.keys(i).forEach(function(s){if(n=kN(e,s),r=kN(i,s),r!==e)if(typeof r!="object"||r===null){e[s]=r;return}else if(Array.isArray(r)){e[s]=w5(r);return}else if(b5(r)){e[s]=v5(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[s]=lg({},r);return}else{e[s]=lg(n,r);return}})}),e}var R0e=[",",".","#","[","!","*",">","+","~",":","@"],A0e=/^::-[a-z]+-/m,P0e=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,cg,pc=typeof window<"u";pc&&(cg=document.createElement("style"),cg.title="master");var Zr="max-width",Wr="min-width",T0e="attributes",M0e=pc?window.MutationObserver:Object,dc,Do,ag=class extends M0e{constructor(t){super(e=>{let r={},n=[],i=[],s=[],o=(c,f)=>{f?c.classList.forEach(u):c.classList.forEach(a);let d=c.children;for(let p=0;p<d.length;p++){let h=d[p];h.classList&&(i.push(h),o(h,f))}},a=c=>{c in r?r[c]++:r[c]=1},u=c=>{c in r?r[c]--:c in this.countOfClass&&(r[c]=-1)},l=(c,f)=>{for(let d=0;d<c.length;d++){let p=c[d];p.classList&&!i.includes(p)&&!s.includes(p)&&(p.isConnected!==f?(i.push(p),o(p,f)):s.push(p))}};for(let c=0;c<e.length;c++){let f=e[c],{addedNodes:d,removedNodes:p,type:h,target:y,oldValue:v}=f;if(h===T0e){if(n.find(g=>g.target===y))continue;n.push(f)}else l(d,!1),(!y.isConnected||!i.includes(y))&&l(p,!0)}if(!(!n.length&&!Object.keys(r).length)){for(let{oldValue:c,target:f}of n){let d=i.includes(f),p=f.classList,h=c?c.split(" "):[];if(d){if(f.isConnected)continue;for(let y of h)p.contains(y)||u(y)}else if(f.isConnected){p.forEach(y=>{h.includes(y)||a(y)});for(let y of h)p.contains(y)||u(y)}}for(let c in r){let f=r[c],d=(this.countOfClass[c]||0)+f;d===0?(delete this.countOfClass[c],this.delete(c)):(c in this.countOfClass||this.insert(c),this.countOfClass[c]=d)}}}),this.config=t,x(this,"style"),x(this,"rules",[]),x(this,"ruleOfClass",{}),x(this,"countOfClass",{}),x(this,"host"),x(this,"root"),x(this,"ready",!1),x(this,"semantics"),x(this,"classes"),x(this,"colorThemesMap"),x(this,"colorNames"),x(this,"themeNames"),x(this,"relationThemesMap"),x(this,"relations"),x(this,"selectors"),x(this,"values"),x(this,"globalValues"),x(this,"breakpoints"),x(this,"mediaQueries"),x(this,"matches"),x(this,"schemeMQL"),hN(this,dc,void 0),hN(this,Do,void 0),x(this,"onThemeChange",e=>{this.theme=e.matches?"dark":"light"}),this.config?.override?this.config=SN:this.config=lg(SN,this.config),this.cache(),pc&&this.config.observe&&this.observe(document),ag.instances.push(this),this.ready=!0}static refresh(t){for(let e of this.instances)e.refresh(t)}get storageScheme(){let{storage:t}=this.config.scheme;return localStorage.getItem(t.key)}set scheme(t){if(t!==Za(this,dc)){gN(this,dc,t);let{storage:e}=this.config.scheme;t==="system"?(this.schemeMQL=window.matchMedia("(prefers-color-scheme:dark)"),this.schemeMQL.addEventListener("change",this.onThemeChange),this.theme=this.schemeMQL.matches?"dark":"light"):(this.removeSchemeListener(),this.theme=t),this.storageScheme!==t&&e.sync&&localStorage.setItem(e.key,t),this.ready&&this.host.dispatchEvent(new CustomEvent("scheme",{detail:this}))}}get scheme(){return Za(this,dc)}set theme(t){t!==Za(this,Do)&&(Za(this,Do)&&this.host.classList.remove(Za(this,Do)),gN(this,Do,t),this.host===document.documentElement&&(this.host.style.colorScheme=t),this.host.classList.add(t),this.ready&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}get theme(){return Za(this,Do)}removeSchemeListener(){this.schemeMQL&&(this.schemeMQL.removeEventListener("change",this.onThemeChange),this.schemeMQL=null)}cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={};let{semantics:t,classes:e,selectors:r,themes:n,colors:i,values:s,breakpoints:o,mediaQueries:a,Rules:u}=this.config;function l(g){return g.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function c(g,b,w="",_={}){let S=O=>O?(w?w+"-":"")+O:w,q=Object.entries(g),C=[],R=[];for(let O of q){let z=O[1];(typeof z=="object"&&!Array.isArray(z)?C:R).push(O)}for(let[O,z]of C)c(z,b,S(O),_);if(b&&w)R.length&&(_[w]=R.reduce((O,[z,F])=>(O[z]=F,O),{}));else for(let[O,z]of R)_[S(O)]=z;return _}if(t)for(let[g,b]of Object.entries(c(t,!0)))this.semantics.push([new RegExp("^"+l(g)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[g,b]]);if(r)for(let[g,b]of Object.entries(c(r,!1))){let w=new RegExp(l(g)+"(?![a-z-])");for(let _ of Array.isArray(b)?b:[b]){let S=_.match(A0e)?.[0]??"",q=this.selectors[S];q||(q=this.selectors[S]=[]);let C=q.find(([R])=>R===w);C||(C=[w,[]],q.push(C)),C[1].push(_)}}if(s)for(let[g,b]of Object.entries(s))typeof b=="object"?this.values[g]=c(b,!1):this.globalValues[g]=b;o&&(this.breakpoints=c(o,!1)),a&&(this.mediaQueries=c(a,!1));let f=e?c(e,!1):{},d=n&&!Array.isArray(n)?Object.entries(n).filter(([,{classes:g}])=>g).reduce((g,[b,{classes:w}])=>(g[b]=c(w,!1),g),{}):{},p=[...Object.keys(f),...Object.entries(d).flatMap(([g,b])=>Object.keys(b))],h=g=>{if(g in this.classes)return;let b=this.classes[g]=[],w=(_,S)=>{if(!S)return;let q=Array.isArray(S)?S:S.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let C of q){let R=O=>{O in this.relationThemesMap?_ in this.relationThemesMap[O]?this.relationThemesMap[O][_].push(g):this.relationThemesMap[O][_]=[g]:this.relationThemesMap[O]={[_]:[g]},b.includes(O)||b.push(O)};if(p.includes(C)){h(C);for(let O of this.classes[C])R(O)}else R(C)}};w("",f?.[g]);for(let[_,S]of Object.entries(d))w(_,S?.[g])};for(let g of p)h(g);for(let g in this.relationThemesMap){let b=this.relations[g]=[];for(let w of Object.values(this.relationThemesMap[g]))for(let _ of w)b.includes(_)||b.push(_)}let y=(g,b)=>{if(!b)return;let w=c(b,!0);for(let[_,S]of Object.entries(w)){let q=typeof S=="string"?{"":S}:S;for(let[C,R]of Object.entries(q)){let O=_+(C?"-"+C:"");O in this.colorThemesMap?this.colorThemesMap[O][g]=R:this.colorThemesMap[O]={[g]:R}}}for(let _ in b)this.colorNames.includes(_)||this.colorNames.push(_)};if(y("",i),n)if(Array.isArray(n))this.themeNames.push(...n);else for(let g in n){let b=n[g];y(g,b.colors),this.themeNames.push(g)}let v=g=>{for(let[b,w]of Object.entries(this.colorThemesMap))for(let[_,S]of Object.entries(w))S.startsWith("#")||g(b,w,_,S)};if(v((g,b,w,_)=>{let S=P0e.exec(_);if(S){let q="#"+CN(+S[1],+S[2],+S[3]);S[4]&&(q+=Math.round(255*+S[4]).toString(16)),b[w]=q}}),v((g,b,w,_)=>{let[S,q]=_.split("/"),C=this.colorThemesMap[S];if(C){let R=(w?C[w]:void 0)??C[""];b[w]=q?R.slice(0,7)+Math.round(255*+q).toString(16):R}else console.warn(`\`${_}\` doesn't exist in the extended config \`.colors\``),delete b[w],Object.keys(b).length||delete this.colorThemesMap[g]}),u)for(let g of u){let b=g.matches;if(b){let w=Object.keys(this.values[g.id]??{}),_=b.indexOf("$values");this.matches[g.id]=new RegExp(_===-1?b:w.length?b.slice(0,_)+w.join("|")+b.slice(_+7):b.slice(0,_-(b[_-1]==="|"?1:0))+b.slice(_+7+(b[_+7]==="|"?1:0)))}}}observe(t,e={subtree:!0,childList:!0}){if(pc&&t){this.root=t;let r=t===document;r&&(ag.root=this),this.host=r?document.documentElement:t.host,this.scheme=this.storageScheme||this.config.scheme.preference;let n=r?document.head:t,i=r?document.styleSheets:t.styleSheets;for(let o of i){let{title:a,href:u,ownerNode:l}=o;(a==="master"||u&&u.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(u))&&(this.style=l)}if(this.style)for(let o=0;o<this.style.sheet.cssRules.length;o++){let a=l=>{if(l.selectorText){let c=l.selectorText.split(", ")[0].split(" ");for(let f=0;f<c.length;f++){let d=c[f];if(d[0]==="."){let p=d.slice(1),h="";for(let y=0;y<p.length;y++){let v=p[y],g=p[y+1];if(v==="\\"){if(y++,g!=="\\"){h+=g;continue}}else if(R0e.includes(v))break;h+=v}if(!(h in this.ruleOfClass)&&!(h in this.classes)){let y=this.create(h)[0];if(y)return y}}}}else if(l.cssRules)for(let c=0;c<l.cssRules.length;c++){let f=a(l.cssRules[c]);if(f)return f}},u=a(this.style.sheet.cssRules[o]);if(u){this.rules.push(u),this.ruleOfClass[u.className]=u;for(let l=0;l<u.natives.length;l++)u.natives[l].cssRule=this.style.sheet.cssRules[o+l];o+=u.natives.length-1}}else this.style=cg.cloneNode(),n.prepend(this.style);let s=o=>{o.forEach(a=>{a in this.countOfClass?this.countOfClass[a]++:(this.countOfClass[a]=1,this.insert(a))})};s(this.host.classList),e.subtree&&this.host.querySelectorAll("[class]").forEach(o=>s(o.classList)),super.observe(t,{...e,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})}return this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfClass={},this.rules.length=0;let t=this.style.sheet;if(t)for(let e=t.cssRules.length-1;e>=0;e--)t.deleteRule(e)}match(t){for(let e of this.config.Rules){let r=e.match(t,this.matches[e.id],this.colorThemesMap,this.colorNames);if(r)return{...r,Rule:e}}for(let e of this.semantics)if(t.match(e[0]))return{origin:"semantics",value:e[1],Rule:N}}create(t){let e=r=>{if(r in this.ruleOfClass)return this.ruleOfClass[r];let n=this.match(r);if(n)return new n.Rule(r,n,this)};return(t in this.classes?this.classes[t].map(r=>e(r)):[e(t)]).filter(r=>r&&r.text)}refresh(t){if(this.config=t,this.cache(),!this.style)return;let e=cg.cloneNode();this.style.replaceWith(e),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let r in this.countOfClass)this.insert(r)}destroy(){let t=ag.instances;this.disconnect(),t.splice(t.indexOf(this),1),this.style.remove(),this.removeSchemeListener()}delete(t){let e=this.style.sheet,r=n=>{let i=this.ruleOfClass[n];if(!(!i||n in this.relations&&this.relations[n].some(s=>s in this.countOfClass))){if(i.natives.length){let s=i.natives[0];for(let o=0;o<e.cssRules.length;o++)if(e.cssRules[o]===s.cssRule){for(let a=0;a<i.natives.length;a++)e.deleteRule(o);this.rules.splice(this.rules.indexOf(i),1);break}}delete this.ruleOfClass[n]}};if(t in this.classes){for(let n of this.classes[t])n in this.countOfClass||r(n);delete this.ruleOfClass[t]}else r(t)}insert(t){let e=this.create(t);return e.length?(this.insertRules(e),!0):!1}insertRules(t){for(let e of t){if(this.ruleOfClass[e.className])continue;let r,n=this.rules.length-1,{media:i,order:s,priority:o,hasWhere:a,className:u}=e,l=(c,f,d,p)=>{let h=0,y;f&&(h=c.findIndex(f)),d&&(y=c.findIndex(d)),h===-1&&(h=c.length),(y===void 0||y===-1)&&(y=c.length);let v=c.slice(h,y);for(let g=0;g<v.length;g++){let b=v[g];if(!(b.priority===-1||p&&p(b))&&(b.priority<o||b.priority===o&&(a&&!b.hasWhere||b.order>=s)))return h+g}return h+v.length};if(i){let c=this.rules.findIndex(f=>f.media);if(c!==-1){let f=i.features[Zr],d=i.features[Wr];if(f&&d){let p=f.value-d.value;for(let h=n;h>=c;h--){r=h;let y=this.rules[h],v=y.media,g=v.features[Zr],b=v.features[Wr];if(!g||!b){r++;break}let w=g.value-b.value;if(w===p){if(a!==y.hasWhere)continue;if(o!==-1){let _=[this.rules[h]];for(let S=h-1;S>=c;S--){let q=this.rules[S];if(q.hasWhere!==a)break;let C=q.media,R=C.features[Zr],O=C.features[Wr];if(!R||!O||R.value-O.value!==w)break;_.unshift(this.rules[S])}r=l(this.rules,S=>S.media&&S.priority!==-1&&S.media.features[Wr]&&S.media.features[Zr])}break}else if(w>p)break}}else if(d)for(let p=c;p<=n;p++){r=p;let h=this.rules[p],y=h.media,v=y.features[Zr],g=y.features[Wr];if(v){if(g)break;continue}let b=g?.value;if(b===d.value){if(!a&&h.hasWhere){r++;continue}if(o!==-1)r=l(this.rules,w=>w.media,w=>w.media&&w.priority!==-1&&w.media.features[Wr]&&w.media.features[Zr],w=>!w.media.features[Wr]&&!w.media.features[Zr]);else for(let w=p;w<=n;w++){let _=this.rules[w],S=_.media,q=S.features[Wr];if(!S.features[Zr]){if(_.hasWhere!==a||q.value!==b||_.order>=s)break;r=w+1}}break}else{if(b>d.value)break;r++}}else if(f)for(let p=n;p>=c;p--){r=p;let h=this.rules[p],y=h.media,v=y.features[Zr];if(y.features[Wr])continue;let g=v?.value;if(!g||g>f.value){r++;break}else if(g===f.value){if(a&&!h.hasWhere)continue;if(o!==-1)r=l(this.rules,b=>b.media,b=>b.media&&b.priority!==-1&&b.media.features[Wr]&&b.media.features[Zr],b=>!b.media.features[Wr]&&!b.media.features[Zr]);else{let b=[this.rules[p]];for(let w=p-1;w>=c;w--){let _=this.rules[w],S=_.media,q=S.features[Wr],C=S.features[Zr];if(!q&&(!C||C.value!==g||_.hasWhere!==a))break;b.unshift(_)}for(let w=0;w<b.length;w++){let _=b[w];if(!_.media.features[Wr]){if(_.order>=s)break;r=p-b.length+2+w}}}break}}}if(r===void 0)if(c===-1)r=n+1;else if(o!==-1)r=c+l(this.rules.slice(c),void 0,f=>f.media.features[Zr]||f.media.features[Wr]);else if(a){let f=c;for(;f<this.rules.length;f++){let d=this.rules[f];if(d.priority!==-1||!d.hasWhere||d.order>=s){r=f;break}}r===void 0&&(r=f)}else for(let f=c;f<=n;f++){r=f;let d=this.rules[f],p=d.media;if(d.priority!==-1||p.features[Zr]||p.features[Wr])break;if(d.hasWhere)r++;else if(d.order>=s)break}}else if(o===-1)if(a)r=this.rules.findIndex(c=>!c.hasWhere||c.media||c.priority!==-1||c.order>=s),r===-1&&(r=n+1);else{let c=0;for(;c<this.rules.length;c++){let f=this.rules[c];if(f.media||!f.hasWhere&&(f.order>=s||f.priority!==-1)){r=c;break}}r===void 0&&(r=c)}else r=l(this.rules,void 0,c=>c.media);if(this.rules.splice(r,0,e),this.ruleOfClass[u]=e,this.style){let c=this.style.sheet,f=0,d=p=>{let h=this.rules[p];if(h){if(!h.natives.length)return d(p-1);let y=h.natives[h.natives.length-1].cssRule;for(let v=0;v<c.cssRules.length;v++)if(c.cssRules[v]===y){f=v+1;break}}};d(r-1);for(let p=0;p<e.natives.length;)try{let h=e.natives[p];c.insertRule(h.text,f),h.cssRule=c.cssRules[f++],p++}catch(h){console.error(h),e.natives.splice(p,1)}}}}get text(){return this.rules.map(t=>t.text).join("")}},_r=ag;dc=new WeakMap,Do=new WeakMap,x(_r,"instances",[]),x(_r,"root");pc&&(window.MasterCSS=_r);var oc=typeof global<"u"?global:window;if(!oc.CSS&&!oc.CSS?.escape){let t=function(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),n=r.length,i=-1,s="",o,a=r.charCodeAt(0);if(n==1&&a==45)return"\\"+r;for(;++i<n;){if(o=r.charCodeAt(i),o==0){s+="\uFFFD";continue}if(o>=1&&o<=31||o==127||i==0&&o>=48&&o<=57||i==1&&o>=48&&o<=57&&a==45){s+="\\"+o.toString(16)+" ";continue}if(o>=128||o==45||o==95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){s+=r.charAt(i);continue}s+="\\"+r.charAt(i)}return s};oc.CSS||(oc.CSS={}),oc.CSS.escape=t}function _5(t,e){if(!t?.length)return;let r=new _r({...e,observe:!1});for(let n of t)n in r.countOfClass||r.insert(n)&&(r.countOfClass[n]=1);return r.text}import{performance as Uhe}from"perf_hooks";var UF=Kt(To(),1),Pk=Kt(E$(),1);import g0t from"fs";var EB=Kt(ph(),1);import Qq from"node:process";import h1e from"node:os";import q$ from"node:tty";var e1e=Object.create,j$=Object.defineProperty,t1e=Object.getOwnPropertyDescriptor,r1e=Object.getOwnPropertyNames,n1e=Object.getPrototypeOf,i1e=Object.prototype.hasOwnProperty,s1e=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),o1e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of r1e(e))!i1e.call(t,i)&&i!==r&&j$(t,i,{get:()=>e[i],enumerable:!(n=t1e(e,i))||n.enumerable});return t},a1e=(t,e,r)=>(r=t!=null?e1e(n1e(t)):{},o1e(e||!t||!t.__esModule?j$(r,"default",{value:t,enumerable:!0}):r,t)),u1e=s1e((t,e)=>{"use strict";function r(n){var i=void 0;typeof n=="string"?i=[n]:i=n.raw;for(var s="",o=0;o<i.length;o++)s+=i[o].replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`"),o<(arguments.length<=1?0:arguments.length-1)&&(s+=arguments.length<=o+1?void 0:arguments[o+1]);var a=s.split(`
|
|
466
|
+
`)===-1||(r.is_inline_element||r.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,r))}else if(r.is_end_tag){var o=!1;o=r.start_tag_token&&r.start_tag_token.multiline_content,o=o||!r.is_inline_element&&!(n.is_inline_element||n.is_unformatted)&&!(i.type===ht.TAG_CLOSE&&r.start_tag_token===n)&&i.type!=="TK_CONTENT",(r.is_content_unformatted||r.is_unformatted)&&(o=!1),o&&t.print_newline(!1)}else r.indent_content=!r.custom_beautifier_name,r.tag_start_char==="<"&&(r.tag_name==="html"?r.indent_content=this._options.indent_inner_html:r.tag_name==="head"?r.indent_content=this._options.indent_head_inner_html:r.tag_name==="body"&&(r.indent_content=this._options.indent_body_inner_html)),!(r.is_inline_element||r.is_unformatted)&&(i.type!=="TK_CONTENT"||r.is_content_unformatted)&&t.print_newline(!1),this._calcluate_parent_multiline(t,r)};Xn.prototype._calcluate_parent_multiline=function(t,e){e.parent&&t._output.just_added_newline()&&!((e.is_inline_element||e.is_unformatted)&&e.parent.is_inline_element)&&(e.parent.multiline_content=!0)};var XSt=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],ZSt=["a","audio","del","ins","map","noscript","video"];Xn.prototype._do_optional_end_element=function(t){var e=null;if(!(t.is_empty_element||!t.is_start_tag||!t.parent)){if(t.tag_name==="body")e=e||this._tag_stack.try_pop("head");else if(t.tag_name==="li")e=e||this._tag_stack.try_pop("li",["ol","ul"]);else if(t.tag_name==="dd"||t.tag_name==="dt")e=e||this._tag_stack.try_pop("dt",["dl"]),e=e||this._tag_stack.try_pop("dd",["dl"]);else if(t.parent.tag_name==="p"&&XSt.indexOf(t.tag_name)!==-1){var r=t.parent.parent;(!r||ZSt.indexOf(r.tag_name)===-1)&&(e=e||this._tag_stack.try_pop("p"))}else t.tag_name==="rp"||t.tag_name==="rt"?(e=e||this._tag_stack.try_pop("rt",["ruby","rtc"]),e=e||this._tag_stack.try_pop("rp",["ruby","rtc"])):t.tag_name==="optgroup"?e=e||this._tag_stack.try_pop("optgroup",["select"]):t.tag_name==="option"?e=e||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):t.tag_name==="colgroup"?e=e||this._tag_stack.try_pop("caption",["table"]):t.tag_name==="thead"?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"])):t.tag_name==="tbody"||t.tag_name==="tfoot"?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("thead",["table"]),e=e||this._tag_stack.try_pop("tbody",["table"])):t.tag_name==="tr"?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(t.tag_name==="th"||t.tag_name==="td")&&(e=e||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),e=e||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return t.parent=this._tag_stack.get_parser_token(),e}};bbe.exports.Beautifier=Xn});var wbe=m((C6t,aN)=>{"use strict";var ekt=vbe().Beautifier,tkt=nN().Options;function rkt(t,e,r,n){var i=new ekt(t,e,r,n);return i.beautify()}aN.exports=rkt;aN.exports.defaultOptions=function(){return new tkt}});var Ebe=m((D6t,RE)=>{"use strict";var _be=rbe(),xbe=cbe(),Sbe=wbe();function kbe(t,e,r,n){return r=r||_be,n=n||xbe,Sbe(t,e,r,n)}kbe.defaultOptions=Sbe.defaultOptions;RE.exports.js=_be;RE.exports.css=xbe;RE.exports.html=kbe});var Obe=m((O6t,Dbe)=>{"use strict";function Cbe(t,e,r){var n=function(i,s){return t.js_beautify(i,s)};return n.js=t.js_beautify,n.css=e.css_beautify,n.html=r.html_beautify,n.js_beautify=t.js_beautify,n.css_beautify=e.css_beautify,n.html_beautify=r.html_beautify,n}typeof define=="function"&&define.amd?define(["./lib/beautify","./lib/beautify-css","./lib/beautify-html"],function(t,e,r){return Cbe(t,e,r)}):function(t){var e=Ebe();e.js_beautify=e.js,e.css_beautify=e.css,e.html_beautify=e.html,t.exports=Cbe(e,e,e)}(Dbe)});var Ak=Kt(ph(),1);var Xbe=Object.defineProperty,Zbe=(t,e,r)=>e in t?Xbe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e,r)=>(Zbe(t,typeof e!="symbol"?e+"":e,r),r),EN=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},Za=(t,e,r)=>(EN(t,e,"read from private field"),r?r.call(t):e.get(t)),hN=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},gN=(t,e,r,n)=>(EN(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),e0e={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},YE=e0e;function hh(t){t.startsWith("#")&&(t=t.slice(1));let e=t.match(/.{1,2}/g);return[parseInt(e[0],16),parseInt(e[1],16),parseInt(e[2],16)]}function CN(t,e,r){return((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1)}function Yt(t){typeof t=="string"&&(t={"":t});let e=""in t,r=!1;for(let n in t)if(n&&+n>=100){r=!0;break}if(!r&&(!e||Object.keys(t).length>1)){let n=0,i="0"in t?hh(t[0]):[0,0,0],s,o,a=[],u=()=>{let l=s-n,c=o.map((f,d)=>(f-i[d])/l);for(let f of a){let d=f-n,p=i.map((h,y)=>Math.round(h+c[y]*d));t[f]="#"+CN.call(this,...p)}};for(let l=1;l<100;l++)l in t?(a.length?(s=l,o=hh(t[l]),u(),a.length=0,i=o):i=hh(t[l]),n=l):a.push(l);a.length&&(s=100,o="100"in t?hh(t[100]):[255,255,255],u())}return e||(t[""]=t[r?"500":"50"]),t}var t0e={slate:Yt({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:Yt({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:Yt({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:Yt({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:Yt({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:Yt({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:Yt({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:Yt({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:Yt({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:Yt({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:Yt({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:Yt({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:Yt({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:Yt({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:Yt({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:Yt({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:Yt({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:Yt({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:Yt({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:Yt({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"}),black:"#000000",white:"#ffffff"},r0e=t0e,n0e=16,i0e="",s0e=i0e,o0e={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("},a0e=o0e,u0e={square:{"aspect-ratio":"1/1"},video:{"aspect-ratio":"16/9"},rounded:{"border-radius":"1e9em"},round:{"border-radius":"50%"},hidden:{display:"none"},hide:{display:"none"},block:{display:"block"},table:{display:"table"},flex:{display:"flex"},grid:{display:"grid"},contents:{display:"contents"},inline:{display:"inline"},"inline-block":{display:"inline-block"},"inline-flex":{display:"inline-flex"},"inline-grid":{display:"inline-grid"},"inline-table":{display:"inline-table"},"table-cell":{display:"table-cell"},"table-caption":{display:"table-caption"},"flow-root":{display:"flow-root"},"list-item":{display:"list-item"},"table-row":{display:"table-row"},"table-column":{display:"table-column"},"table-row-group":{display:"table-row-group"},"table-column-group":{display:"table-column-group"},"table-header-group":{display:"table-header-group"},"table-footer-group":{display:"table-footer-group"},italic:{"font-style":"italic"},oblique:{"font-style":"oblique"},isolate:{isolation:"isolate"},overflow:{overflow:"visible"},untouchable:{"pointer-events":"none"},static:{position:"static"},fixed:{position:"fixed"},abs:{position:"absolute"},rel:{position:"relative"},sticky:{position:"sticky"},uppercase:{"text-transform":"uppercase"},lowercase:{"text-transform":"lowercase"},capitalize:{"text-transform":"capitalize"},visible:{visibility:"visible"},invisible:{visibility:"hidden"},vw:{width:"100vw"},vh:{height:"100vh"},"max-vw":{"max-width":"100vw"},"max-vh":{"max-height":"100vh"},"min-vw":{"min-width":"100vw"},"min-vh":{"min-height":"100vh"},"center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}},tO=u0e,l0e=["dark","light"],c0e=l0e,f0e={storage:{sync:!0,key:"scheme"}},d0e=f0e,ic={content:"content-box",border:"border-box",padding:"padding-box"},gh={min:"min-content",max:"max-content"},Os={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let t in YE)Os[t]=YE[t]/16+"rem";var p0e={BackgroundClip:ic,BackgroundOrigin:ic,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...ic,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},FlexDirection:{col:"column","col-reverse":"column-reverse"},FontFamily:{mono:"ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",sans:"ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji",serif:"ui-serif,Georgia,Cambria,Times New Roman,Times,serif"},FontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},GridAutoColumns:gh,GridAutoRows:gh,GridTemplateColumns:gh,GridTemplateRows:gh,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...ic,margin:"margin-box"},TransformBox:{...ic,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:Os,MinWidth:Os,MinHeight:Os,MaxWidth:Os,MaxHeight:Os,Height:Os,FlexBasis:Os},h0e=p0e;function UE(t,e){return(t?t+":":"")+(e.unit?e.value+e.unit:e.value)+(e.important?"!important":"")}var g0e=/^([+-.]?\d+(\.?\d+)?)(.*)?/;function DN(t,e,r){if(r){let n="",i=t.match(g0e);if(i)if(t.includes("/")){let[s,o]=t.split("/");return{value:+s/+o*100+"%",unit:n}}else{let s=+i[1];return n=i[3]||"",n||((r==="rem"||r==="em")&&(s=s/e),n=r||""),{value:s,unit:n}}}}function m0e(t,e,r){let n=c=>c==="+"||c==="-"||c==="*"||c==="/",i="",s,o="",a=!1,u=!1;function l(c,f="",d=""){if(s===2&&!u){let p=DN(o,e,r);p&&(o=p.value+p.unit)}i+=o+f+c+d,s=null,u=!1,o=""}for(let c=0;c<t.length;c++){let f=t[c];if(f==="("||f===")")a=f===")",l(f);else if(f===",")l(f,""," ");else{switch(s){case 1:break;case 2:if(n(f)){l(f," "," ");continue}else/[0-9]/.test(f)||(u=!0);break;default:a&&(i+=" "),isNaN(+f)?n(f)||(s=1):s=2;break}s?o+=f:i+=f}}return o&&(i+=o),i}function HE(t,e,r,n,i,s){let o="",a="",u;if(typeof t=="number")o=t,a=e||"";else{if(n){let c=!1,f=!1;t=t.replace(new RegExp(`(^|,| |\\()((?:${r.join("|")})(?:-(?:[0-9A-Za-z-]+))?)(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(d,p,h,y)=>{f=!0;let v=n[h];if(v){let g;for(let b of s)if(g=v[b])break;if(g){c=!0;let b=g;if(y){let w=y.endsWith("%")?parseFloat(y)/100:+y;w=isNaN(w)?1:Math.min(Math.max(w,0),1),b+=Math.round(w*255).toString(16).toUpperCase().padStart(2,"0")}return p+b}}return d}),f&&(u=c)}let l=DN(t,i,e);if(l)return l;o=(t.indexOf("calc(")===-1?t:m0e(t,i,e)).replace(/\$\(((\w|-)+)\)/g,"var(--$1)")}return{value:o,unit:a,colorMatched:u}}var ug={"(":")","'":"'",'"':'"',"{":"}"},y0e=["!","*",">","+","~",":","[","@","_"];function hc(t,e,r,n=[]){let i=[",",...n],s=[],o="",a=0;return function u(l,c,f,d="",p=[],h=[]){let y,v=!1;c&&(c===")"&&o.slice(-1)==="$"?y=o.length-1:(c==="'"||c==='"')&&(v=!0),o+=l[a++]);let g=()=>{let b=o;if(o="",e&&b in e&&!p.includes(b)){let w=a;a=0,u(e[b].toString(),void 0,void 0,void 0,[...p,b],h),a=w}else if(r&&b in r&&!h.includes(b)){let w=a;a=0,u(r[b].toString(),void 0,void 0,void 0,p,[...h,b]),a=w}else s.push({value:b})};for(;a<l.length;a++){let b=l[a];if(b===c){if(o+=b,v){let w=0;for(let _=o.length-2;o[_]==="\\";_--)w++;if(w%2)continue}y!==void 0&&(o=o.slice(0,y)+o.slice(y).replace(/\$\((.*)\)/,"var(--$1)")),f||(v?s.push(o):g(),d="",o="");break}else if(!v&&b in ug)u(l,ug[b],f===void 0?0:f+1,d,p,h);else if((b==="|"||b===" ")&&c!=="}"&&(!v||d==="path"))c?o+=" ":g();else{if(!c){if(b==="."){if(isNaN(+l[a+1]))break;l[a-1]==="-"&&(o+="0")}else if(i.includes(b)){o&&g(),s.push(b);continue}else if(b==="#"&&(o||s.length&&l[a-1]!=="|"&&s[a-1]!==" ")||y0e.includes(b))break;d+=b}o+=b}}f===void 0&&o&&g()}(t),[s,t.slice(a)]}var mN=[":disabled",":active",":focus",":hover"],sc="matches",b0e="semantics",yN="symbol",ON="width",VE="max-"+ON,GE="min-"+ON,QE="motion",qN="reduce",bN=qN+"d-"+QE,KE="px",v0e="rem",w0e=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,_0e=t=>t.split(w0e).map((e,r)=>r%3?e:e.replace(/_/g," ")).join(""),N=class{constructor(t,e,r){this.className=t,this.matching=e,this.css=r;let n=this.constructor,{id:i,unit:s,colorful:o,prop:a}=n,{rootSize:u,scope:l,important:c}=r.config,{themeNames:f,colorNames:d,colorThemesMap:p,selectors:h,globalValues:y,breakpoints:v,mediaQueries:g}=r,b=r.values[i],w=r.relationThemesMap[t],_=t,S,q,C,R;if(e.origin===b0e){let[K,ue]=e.value;C=_.slice(K.length),S=ue}else if(this.analyzeToken)[q,R,C]=this.analyzeToken(_,b,y);else{let K;if(e.origin===sc){let ue=_.indexOf(":");this.prefix=_.slice(0,ue+1),this.prefix.includes("(")?(this.prefix=void 0,K=_):K=_.slice(ue+1)}else e.origin===yN&&(this.symbol=_[0],K=_.slice(1));[R,C]=hc(K,b,y)}C[0]==="!"&&(this.important=!0,C=C.slice(1));let O=K=>{let ue=_0e(K),L=[],M="",ae=0;for(let ne=0;ne<ue.length;ne++){let de=ue[ne];if(de==="\\"){M+=de+ue[++ne];continue}!ae&&de===","?(L.push(M),M=""):(M+=de,ae&&de===")"?ae--:de==="("&&ae++)}return M&&L.push(M),L};this.prefixSelectors=q?O(q):[""];let z=C.split("@"),F=z[0];if(F){this.vendorSuffixSelectors={};let K=(ne,de,le,se)=>{for(let[he,we]of de)if(he.test(ne)){for(let De of we)K(ne.replace(he,De),de,le,!0);return}se&&le.push(ne)},ue=[];""in h?K(F,h[""],ue,!0):ue.push(F);let L={};for(let[ne,de]of Object.entries(h)){if(!ne)continue;let le=[];for(let se of ue)K(se,de,le,!1);le.length&&(L[ne]=le)}let M=(ne,de)=>{let le=de.reduce((se,he)=>(se.push(...O(he)),se),[]);ne in this.vendorSuffixSelectors?this.vendorSuffixSelectors[ne].push(...le):this.vendorSuffixSelectors[ne]=le},ae=Object.keys(L);if(ae.length)for(let ne of ae)M(ne,L[ne]);else M("",ue);for(let ne of Object.values(this.vendorSuffixSelectors))for(let de of ne){this.hasWhere!==!1&&(this.hasWhere=de.includes(":where("));for(let le=0;le<mN.length;le++)if(de.includes(mN[le])){(this.priority===-1||this.priority>le)&&(this.priority=le);break}}}else this.vendorSuffixSelectors={"":[""]};for(let K=1;K<z.length;K++){let ue=z[K];if(ue)if(f.includes(ue))this.theme=ue;else if(ue==="rtl"||ue==="ltr")this.direction=ue;else{let L,M,ae=ue.indexOf("_");if(ae!==-1)L=ue.slice(0,ae),M=ue.slice(ae);else{let ne=ue.indexOf("(");ne!==-1&&(L=ue.slice(0,ne),M=ue.slice(ne))}if(!L){L="media";let ne=[];this.media={token:ue,features:{}};let de=ue.split("&");for(let le of de)if(le==="all"||le==="print"||le==="screen"||le==="speech")this.media.type=le;else if(le==="\u{1F5A8}")this.media.type="print";else if(le==="landscape"||le==="portrait")ne.push("(orientation:"+le+")");else if(le===QE||le===bN)ne.push("(prefers-"+bN+":"+(le===QE?"no-preference":qN)+")");else if(g&&le in g)ne.push(g[le]);else{let se={token:le},he="",we="",De=0;le.startsWith("<=")?(we="<=",he=VE):le.startsWith(">=")||v[le]?(we=">=",he=GE):le.startsWith(">")?(we=">",he=GE,De=.02):le.startsWith("<")&&(we="<",he=VE,De=-.02);let Je=we?le.replace(we,""):le,ve=v[Je];switch(he){case VE:case GE:ve?Object.assign(se,HE(ve,KE)):Object.assign(se,HE(Je,KE)),se.unit===KE&&(se.value+=De),this.media.features[he]=se,ne.push("("+he+":"+(se.value+se.unit)+")");break}}M="",this.media.type&&(M=this.media.type),ne.length&&(M+=(M?" and ":"")+ne.join(" and "))}M&&(this.at[L]=(L in this.at?this.at[L]+" and ":"")+M.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let te=(K,ue)=>{let L,M,ae=(de,le,se)=>{let he="";this.direction&&(he+="[dir="+this.direction+"] ");let we=this.prefixSelectors.map(ve=>ve+he),De=(ve,Ct)=>we.map(dt=>(ve?"."+ve+" ":"")+(l?l+" ":"")+dt).reduce((dt,pe)=>(dt.push(se.reduce((ce,ie)=>(ce.push(pe+"."+CSS.escape(Ct)+ie),ce),[]).join(",")),dt),[]).join(","),Je=De(le,t)+(w?Object.entries(w).filter(([ve])=>this.theme||!o||!le||!ve||ve===le).map(([ve,Ct])=>Ct.reduce((dt,pe)=>dt+","+De(this.theme??((o||this.getThemeProps)&&le||ve),pe),"")).join(""):"")+"{"+de+"}";for(let ve of Object.keys(this.at).sort((Ct,dt)=>dt==="supports"?-1:1))Je="@"+ve+" "+this.at[ve]+"{"+Je+"}";return Je},ne=[];if(R){let de,le;for(let se of R)typeof se=="string"?ne.push(se):(de=HE(se.value,s,o&&d,o&&p,u,this.theme?[this.theme,""]:[K]),de.colorMatched!==void 0&&le!==!0&&(le=de.colorMatched),ne.push(de.value+de.unit));if(ue&&(le===void 0?K:!le))return;if(ne.length===1?de?(L=de.value,M=de.unit):L=ne[0]:L=ne.reduce((se,he,we)=>se+he+(he===","||R[we+1]===","||we===R.length-1?"":" "),""),typeof L!="object"){this.parseValue&&(L=this.parseValue(L,this.css.config)),o&&L==="current"&&(L="currentColor");let se={unit:M,value:L,important:this.important};if(this.getThemeProps){let he=this.getThemeProps(se,r);for(let we in he)for(let De of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:M,value:L,text:ae(Object.entries(he[we]).map(([Je,ve])=>UE(Je,{important:(this.important||c)&&!ve.endsWith("!important"),unit:"",value:ve})).join(";"),we,De),theme:we});return}else this.get&&(L=this.get(se))}}else L=S;for(let de of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:M,value:L,text:ae(typeof L=="object"?Object.entries(L).map(([le,se])=>UE(le,{...typeof se=="object"?se:{unit:"",value:se},important:this.important||c})).join(";"):UE(a,{unit:M,value:L,important:this.important||c}),K,de),theme:K})};if(this.getThemeProps)te(void 0,!1);else if(this.theme)te(this.theme,!1);else if(o)for(let K of f)te(K,!0);else te("",!1)}prefix;symbol;token;prefixSelectors;vendorSuffixSelectors;important;media;at={};direction;theme;unitToken;hasWhere;priority=-1;natives=[];static get prop(){return this.id?.replace(/(?!^)[A-Z]/g,t=>"-"+t).toLowerCase()}static match(t,e,r,n){let{colorStarts:i,symbol:s,prop:o}=this;if(e&&e.test(t))return{origin:sc};if(i){if(t.match("^"+i+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current|inherit))"))return{origin:sc};if(n.length&&t.indexOf("|")===-1){let a=t.match("^"+i+"((?:"+n.join("|")+")[0-9a-zA-Z-]*)");if(a&&a[1]in r)return{origin:sc}}}if(s&&t.startsWith(s))return{origin:yN};if(o&&t.startsWith(o+":"))return{origin:sc}}get text(){return this.natives.map(t=>t.text).join("")}};x(N,"id"),x(N,"matches"),x(N,"colorStarts"),x(N,"symbol"),x(N,"unit",v0e),x(N,"colorful");var yh=class extends N{};x(yh,"id","FontWeight"),x(yh,"matches","^f(?:ont)?:(?:bolder|$values)(?!\\|)"),x(yh,"unit","");var JE=class extends N{};x(JE,"id","FontFamily"),x(JE,"matches","^f(?:ont)?:(?:$values)(?!\\|)");var XE=class extends N{};x(XE,"id","FontSize"),x(XE,"matches","^f(?:ont)?:(?:[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var ZE=class extends N{static get prop(){return""}get(t){let e=this.prefix[0]==="m"?"margin":"padding",r=e+"-left",n=e+"-right",i=e+"-top",s=e+"-bottom";switch(this.prefix[1]){case"x":return{[r]:t,[n]:t};case"y":return{[i]:t,[s]:t};case"l":return{[r]:t};case"r":return{[n]:t};case"t":return{[i]:t};case"b":return{[s]:t};default:return{[e]:t}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};x(ZE,"id","Spacing"),x(ZE,"matches","^[pm][xytblr]?:.");var eC=class extends N{};x(eC,"id","Width"),x(eC,"matches","^w:.");var tC=class extends N{};x(tC,"id","Height"),x(tC,"matches","^h:.");var rC=class extends N{};x(rC,"id","MinWidth"),x(rC,"matches","^min-w:.");var nC=class extends N{};x(nC,"id","MinHeight"),x(nC,"matches","^min-h:.");var bh=class extends N{};x(bh,"id","LetterSpacing"),x(bh,"matches","^ls:."),x(bh,"unit","em");var x0e="subpixel-antialiased",vN="-webkit-font-smoothing",wN="-moz-osx-font-smoothing",vh=class extends N{static get prop(){return""}get(t){let e={};switch(t.value){case x0e:e[vN]=e[wN]={...t,value:"auto"};break;case"antialiased":e[vN]={...t,value:"antialiased"},e[wN]={...t,value:"grayscale"};break}return e}};x(vh,"id","FontSmoothing"),x(vh,"matches","^f(?:ont)?:(?:antialiased|subpixel-antialiased|$values)(?!\\|)"),x(vh,"unit","");var wh=class extends N{};x(wh,"id","FontStyle"),x(wh,"matches","^f(?:ont)?:(?:normal|italic|oblique|$values)(?!\\|)"),x(wh,"unit","deg");var iC=class extends N{};x(iC,"id","FontVariantNumeric"),x(iC,"matches","^f(?:ont)?:(?:ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions|$values)(?!\\|)");var sC=class extends N{};x(sC,"id","FontFeatureSettings"),x(sC,"matches","^font-feature:.");var _h=class extends N{};x(_h,"id","LineHeight"),x(_h,"matches","^lh:."),x(_h,"unit","");var oC=class extends N{};x(oC,"id","ObjectFit"),x(oC,"matches","^(?:object|obj):(?:contain|cover|fill|scale-down|$values)");var aC=class extends N{};x(aC,"id","ObjectPosition"),x(aC,"matches","^(?:object|obj):(?:top|bottom|right|left|center|$values)");var uC=class extends N{};x(uC,"id","TextAlign"),x(uC,"matches","^t(?:ext)?:(?:justify|center|left|right|start|end|$values)(?!\\|)");var xh=class extends N{order=-1};x(xh,"id","TextDecoration"),x(xh,"matches","^t(?:ext)?:(?:underline|line-through|overline|$values)"),x(xh,"colorful",!0);var lC=class extends N{};x(lC,"id","TextTransform"),x(lC,"matches","^t(?:ext)?:(?:uppercase|lowercase|capitalize|$values)(?!\\|)");var cC=class extends N{};x(cC,"id","VerticalAlign"),x(cC,"matches","^(?:v|vertical):.");var Sh=class extends N{static get prop(){return""}get(t){return{overflow:{...t,value:"hidden"},display:{...t,value:"-webkit-box"},"overflow-wrap":{...t,value:"break-word"},"text-overflow":{...t,value:"ellipsis"},"-webkit-box-orient":{...t,value:"vertical"},"-webkit-line-clamp":t}}};x(Sh,"id","Lines"),x(Sh,"matches","^lines:."),x(Sh,"unit","");var kh=class extends N{};x(kh,"id","TransformOrigin"),x(kh,"matches","^transform:(?:top|bottom|right|left|center|[0-9]|$values)"),x(kh,"unit","px");var fC=class extends N{};x(fC,"id","TransformStyle"),x(fC,"matches","^transform:(?:flat|preserve-3d|$values)(?!\\|)");var dC=class extends N{};x(dC,"id","TransformBox"),x(dC,"matches","^transform:(?:$values)(?!\\|)");var Eh=class extends N{parseValue(t,{rootSize:e}){return t.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(r,n,i,s)=>{let o,a;switch(n){case"translate":o="rem";break;case"skew":o="deg";break;case"rotate":i==="3d"&&(a=!0),o="deg";break;default:return r}let u=s.split(",");return r.replace(s,u.map((l,c)=>!a||u.length-1===c?Number.isNaN(+l)?l:l/(o==="rem"?e:1)+o:l).join(","))})}};x(Eh,"id","Transform"),x(Eh,"matches","^(?:translate|scale|skew|rotate|perspective|matrix)(?:3d|[XYZ])?\\("),x(Eh,"unit","");var pC=class extends N{order=-1};x(pC,"id","Transition"),x(pC,"symbol","~");var Ch=class extends N{};x(Ch,"id","TransitionDelay"),x(Ch,"matches","^~delay:."),x(Ch,"unit","ms");var Dh=class extends N{};x(Dh,"id","TransitionDuration"),x(Dh,"matches","^~duration:."),x(Dh,"unit","ms");var hC=class extends N{};x(hC,"id","TransitionProperty"),x(hC,"matches","^~property:.");var gC=class extends N{};x(gC,"id","TransitionTimingFunction"),x(gC,"matches","^~easing:.");var mC=class extends N{};x(mC,"id","MaxHeight"),x(mC,"matches","^max-h:.");var yC=class extends N{};x(yC,"id","MaxWidth"),x(yC,"matches","^max-w:.");var bC=class extends N{};x(bC,"id","Display"),x(bC,"matches","^d:.");var vC=class extends N{};x(vC,"id","BoxSizing"),x(vC,"matches","^box:(?:$values)(?!\\|)");var wC=class extends N{};x(wC,"id","Opacity"),x(wC,"unit","");var RN=class extends N{};x(RN,"id","Visibility");var AN=class extends N{};x(AN,"id","Clear");var PN=class extends N{};x(PN,"id","Float");var TN=class extends N{};x(TN,"id","Isolation");var _C=class extends N{static get prop(){return""}get(t){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":t};case"y":return{"overflow-y":t}}return{overflow:t}}get order(){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":case"y":return 0}return-1}};x(_C,"id","Overflow"),x(_C,"matches","^overflow(?:-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\\$|var|$values)");var xC=class extends N{static get prop(){return""}get(t){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":t};case"y":return{"overscroll-behavior-y":t};default:return{"overscroll-behavior":t}}}};x(xC,"id","OverscrollBehavior"),x(xC,"matches","^overscroll-behavior(?:-[xy])?:");var Oh=class extends N{};x(Oh,"id","ZIndex"),x(Oh,"matches","^z:."),x(Oh,"unit","");var qh=class extends N{};x(qh,"id","AnimationDelay"),x(qh,"matches","^@delay:."),x(qh,"unit","ms");var SC=class extends N{};x(SC,"id","AnimationDirection"),x(SC,"matches","^@direction:.");var kC=class extends N{};x(kC,"id","AnimationFillMode"),x(kC,"matches","^@fill-mode:.");var Rh=class extends N{};x(Rh,"id","AnimationIterationCount"),x(Rh,"matches","^@iteration-count:."),x(Rh,"unit","");var EC=class extends N{};x(EC,"id","AnimationName"),x(EC,"matches","^@name:.");var CC=class extends N{};x(CC,"id","AnimationPlayState"),x(CC,"matches","^@play-state:.");var DC=class extends N{};x(DC,"id","AnimationTimingFunction"),x(DC,"matches","^@easing:.");var Ah=class extends N{order=-1};x(Ah,"id","Animation"),x(Ah,"symbol","@"),x(Ah,"unit","");var mh="border-";function fg(t,e,r=""){r&&(r="-"+r);let n=/^b(order)?-?(.)?/.exec(t)[2],i=mh+"left"+r,s=mh+"right"+r,o=mh+"top"+r,a=mh+"bottom"+r;switch(n){case"x":return{[i]:e,[s]:e};case"y":return{[o]:e,[a]:e};case"l":return{[i]:e};case"r":return{[s]:e};case"t":return{[o]:e};case"b":return{[a]:e};default:return{["border"+r]:e}}}var ac=class extends N{static get prop(){return""}get(t){return fg(this.prefix,t,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};x(ac,"id","BorderColor"),x(ac,"matches","^border(?:-(?:left|right|top|bottom))?-color:."),x(ac,"colorStarts","b(?:[xytblr]|(?:order(?:-(?:left|right|top|bottom))?))?:"),x(ac,"colorful",!0);var Ph="border-top-left-radius",Th="border-top-right-radius",Mh="border-bottom-left-radius",Lh="border-bottom-right-radius",_N="border-radius",S0e=[Ph,Th,Mh,Lh],OC=class extends N{static get prop(){return""}get(t){if(this.prefix){let r="",n=this.prefix.split("-");if(n.length>1)for(let i=1;i<n.length-1;i++)r+=n[i][0];else r=this.prefix.slice(1,-1);switch(r){case"t":return{[Ph]:t,[Th]:t};case"tl":case"lt":return{[Ph]:t};case"rt":case"tr":return{[Th]:t};case"b":return{[Mh]:t,[Lh]:t};case"bl":case"lb":return{[Mh]:t};case"br":case"rb":return{[Lh]:t};case"l":return{[Ph]:t,[Mh]:t};case"r":return{[Th]:t,[Lh]:t};default:return{[_N]:t}}}let e=this.prefix?.slice(0,-1);return{[S0e.includes(e)?e:_N]:t}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};x(OC,"id","BorderRadius"),x(OC,"matches","^(?:r[tblr]?[tblr]?|border(?:-(?:top|bottom)-(?:left|right))?-radius):.");var qC=class extends N{static get prop(){return""}get(t){return fg(this.prefix,t,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};x(qC,"id","BorderStyle"),x(qC,"matches","^(?:border(?:-(?:left|right|top|bottom))?-style:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|))");var RC=class extends N{static get prop(){return""}get(t){return fg(this.prefix,t,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};x(RC,"id","BorderWidth"),x(RC,"matches","^(?:border(?:-(?:left|right|top|bottom))?-width:.|b(?:[xytblr]|order(?:-(?:left|right|top|bottom))?)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$)");var Fh=class extends N{static get prop(){return""}get(t){return fg(this.prefix,t)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};x(Fh,"id","Border"),x(Fh,"matches","^b(?:[xytblr]?|order(?:-(?:left|right|top|bottom))?):."),x(Fh,"colorful",!0);var AC=class extends N{};x(AC,"id","BackgroundAttachment"),x(AC,"matches","^(?:bg|background):(?:fixed|local|scroll|$values)(?!\\|)");var MN=class extends N{};x(MN,"id","BackgroundBlendMode");var PC=class extends N{get(t){return{"-webkit-background-clip":t,"background-clip":t}}};x(PC,"id","BackgroundClip"),x(PC,"matches","^(?:bg|background):(?:text|$values)(?!\\|)");var uc=class extends N{};x(uc,"id","BackgroundColor"),x(uc,"colorStarts","(?:bg|background):"),x(uc,"unit",""),x(uc,"colorful",!0);var TC=class extends N{};x(TC,"id","BackgroundOrigin"),x(TC,"matches","^(?:bg|background):(?:$values)(?!\\|)");var Ih=class extends N{};x(Ih,"id","BackgroundPosition"),x(Ih,"matches","^(?:bg|background):(?:top|bottom|right|left|center|$values)(?!\\|)"),x(Ih,"unit","px");var MC=class extends N{};x(MC,"id","BackgroundRepeat"),x(MC,"matches","^(?:bg|background):(?:space|round|repeat|no-repeat|repeat-x|repeat-y|$values)(?![|a-zA-Z])");var LC=class extends N{};x(LC,"id","BackgroundSize"),x(LC,"matches","^(?:bg|background):(?:\\.?\\[0-9]+|auto|cover|contain|$values)(?!\\|)");var Nh=class extends N{};x(Nh,"id","BackgroundImage"),x(Nh,"matches","^(?:bg|background):(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)"),x(Nh,"colorful",!0);var jh=class extends N{order=-1};x(jh,"id","Background"),x(jh,"matches","^bg:."),x(jh,"colorful",!0);var FC=class extends N{};x(FC,"id","MixBlendMode"),x(FC,"matches","^blend:.");var LN=class extends N{};x(LN,"id","Position");function FN(t,e,{rootSize:r}){let n="",i=0;return function s(o,a){let u="",l=a?e(a):"",c=()=>{u&&(n+=!l||Number.isNaN(+u)?u:+u/(l==="rem"?r:1)+l,u="")};for(;i<t.length;i++){let f=t[i];if(f===o&&(o!=="'"||t[i+1]===")")){c(),n+=f;break}else f===","||f===" "?(c(),n+=f):!u&&f==="'"?(n+=f,i++,s(f),u=""):u&&f==="("?(n+=u+f,i++,s(")",u),u=""):u+=f}c()}(),n}var $h=class extends N{get(t){return{"backdrop-filter":t,"-webkit-backdrop-filter":t}}parseValue(t,e){return FN(t,r=>{switch(r){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},e)}};x($h,"id","BackdropFilter"),x($h,"matches","^bd:."),x($h,"colorful",!0);var Bh=class extends N{};x(Bh,"id","Fill"),x(Bh,"colorStarts","fill:"),x(Bh,"colorful",!0);var IC=class extends N{};x(IC,"id","Stroke"),x(IC,"colorful",!0);var NC=class extends N{};x(NC,"id","StrokeWidth"),x(NC,"matches","^stroke:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var Wh=class extends N{parseValue(t,e){return FN(t,r=>{switch(r){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},e)}};x(Wh,"id","Filter"),x(Wh,"matches","^(?:blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\\("),x(Wh,"colorful",!0);var IN=class extends N{};x(IN,"id","Cursor");var NN=class extends N{};x(NN,"id","PointerEvents");var jN=class extends N{};x(jN,"id","Resize");var $N=class extends N{};x($N,"id","TouchAction");var BN=class extends N{get(t){return{"user-drag":t,"-webkit-user-drag":t}}};x(BN,"id","UserDrag");var WN=class extends N{get(t){return{"user-select":t,"-webkit-user-select":t}}};x(WN,"id","UserSelect");var zh=class extends N{};x(zh,"id","BoxShadow"),x(zh,"matches","^s(?:hadow)?:."),x(zh,"colorful",!0);var jC=class extends N{};x(jC,"id","TextShadow"),x(jC,"colorful",!0);var xN=.5,$C=class extends N{static get prop(){return""}get(t){let{unit:e,value:r}=t;return{"font-size":t,"line-height":{...t,value:e==="rem"?r+xN+e:`calc(${r}${e} + ${xN}rem)`,unit:""}}}};x($C,"id","TextSize"),x($C,"matches","^t(?:ext)?:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var BC=class extends N{};x(BC,"id","WordBreak"),x(BC,"unit","");var Uh=class extends N{get(t){return{display:{...t,value:"grid"},"grid-template-columns":{...this,value:"repeat("+t.value+",minmax("+0+","+1+"fr))"}}}};x(Uh,"id","GridColumns"),x(Uh,"matches","^grid-cols:."),x(Uh,"unit","");var WC=class extends N{get(t){return{display:{...t,value:"grid"},"grid-auto-flow":{...t,value:"column"},"grid-template-rows":{...t,value:"repeat("+t.value+",minmax("+0+","+1+"fr))"}}}};x(WC,"id","GridRows"),x(WC,"unit","");var zC=class extends N{static get prop(){return""}get(t){switch(this.prefix[4]){case"x":return{"column-gap":t};case"y":return{"row-gap":t};default:return{gap:t}}}order=-1};x(zC,"id","Gap"),x(zC,"matches","^gap(?:-x|-y)?:.");var UC=class extends N{};x(UC,"id","WordSpacing"),x(UC,"unit","em");var Hh=class extends N{static get prop(){return""}get(t){return{["--"+this.prefix.slice(1,-1)]:t}}};x(Hh,"id","Variable"),x(Hh,"matches","^\\$[^ {}A-Z]+:[^ ]"),x(Hh,"unit","");var Vh=class extends N{};x(Vh,"id","AspectRatio"),x(Vh,"matches","^aspect:."),x(Vh,"unit","");var HC=class extends N{get(t){return{"box-decoration-break":t,"-webkit-box-decoration-break":t}}};x(HC,"id","BoxDecorationBreak"),x(HC,"matches","^box:(?:slice|clone|$values)(?!\\|)");var zN=class extends N{};x(zN,"id","BreakAfter");var UN=class extends N{};x(UN,"id","BreakBefore");var HN=class extends N{};x(HN,"id","BreakInside");var VC=class extends N{};x(VC,"id","FlexShrink"),x(VC,"unit","");var GC=class extends N{};x(GC,"id","FlexDirection"),x(GC,"matches","^flex:(?:(?:row|column)(?:-reverse)?|$values)(?!\\|)");var KC=class extends N{};x(KC,"id","FlexGrow"),x(KC,"unit","");var YC=class extends N{};x(YC,"id","FlexWrap"),x(YC,"matches","^flex:(?:wrap(?:-reverse)?|nowrap|$values)(?!\\|)");var VN=class extends N{};x(VN,"id","FlexBasis");var QC=class extends N{order=-1};x(QC,"id","Flex"),x(QC,"unit","");var Gh=class extends N{};x(Gh,"id","Order"),x(Gh,"matches","^o:."),x(Gh,"unit","");var Kh=class extends N{parseValue(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}order=-1};x(Kh,"id","GridColumn"),x(Kh,"matches","^grid-col(?:umn)?(?:-span)?:."),x(Kh,"unit","");var JC=class extends N{};x(JC,"id","ColumnSpan"),x(JC,"matches","^col-span:.");var Yh=class extends N{parseValue(t){return this.prefix.slice(-5,-1)==="span"&&t!=="auto"?"span "+t+"/span "+t:t}order=-1};x(Yh,"id","GridRow"),x(Yh,"matches","^grid-row-span:."),x(Yh,"unit","");var lc=class extends N{};x(lc,"id","Color"),x(lc,"matches","^(?:color|fg|foreground):."),x(lc,"colorful",!0),x(lc,"unit","");var XC=class extends N{};x(XC,"id","AlignContent"),x(XC,"matches","^ac:.");var ZC=class extends N{};x(ZC,"id","AlignItems"),x(ZC,"matches","^ai:.");var eD=class extends N{};x(eD,"id","AlignSelf"),x(eD,"matches","^as:");var tD=class extends N{};x(tD,"id","GridAutoColumns"),x(tD,"matches","^grid-auto-cols:.");var rD=class extends N{};x(rD,"id","GridAutoFlow"),x(rD,"matches","^grid-flow:.");var GN=class extends N{};x(GN,"id","GridAutoRows");var nD=class extends N{};x(nD,"id","JustifyContent"),x(nD,"matches","^jc:.");var iD=class extends N{};x(iD,"id","JustifyItems"),x(iD,"matches","^ji:.");var sD=class extends N{};x(sD,"id","JustifySelf"),x(sD,"matches","^js:.");var KN=class extends N{order=-1};x(KN,"id","PlaceContent");var YN=class extends N{order=-1};x(YN,"id","PlaceItems");var QN=class extends N{order=-1};x(QN,"id","PlaceSelf");var oD=class extends N{static get prop(){return""}get(t){return{[this.prefix.slice(0,-1)]:t}}get order(){return this.prefix==="padding:"?-1:0}};x(oD,"id","Padding"),x(oD,"matches","^padding(?:-(?:left|right|top|bottom))?:.");var aD=class extends N{static get prop(){return""}get(t){return{[this.prefix.slice(0,-1)]:t}}get order(){return this.prefix==="margin:"?-1:0}};x(aD,"id","Margin"),x(aD,"matches","^margin(?:-(?:left|right|top|bottom))?:.");var uD=class extends N{};x(uD,"id","TextOverflow"),x(uD,"matches","^(?:text-(?:overflow|ovf):.|t(?:ext)?:(?:ellipsis|clip|$values)(?!\\|))");var lD=class extends N{};x(lD,"id","ListStylePosition"),x(lD,"matches","^list-style:(?:inside|outside|$values)(?!\\|)");var cD=class extends N{};x(cD,"id","ListStyleType"),x(cD,"matches","^list-style:(?:disc|decimal|$values)(?!\\|)");var JN=class extends N{order=-1};x(JN,"id","ListStyle");var Qh=class extends N{};x(Qh,"id","TextDecorationColor"),x(Qh,"colorStarts","text-decoration:"),x(Qh,"colorful",!0);var fD=class extends N{};x(fD,"id","TextDecorationStyle"),x(fD,"matches","^t(?:ext)?:(?:solid|double|dotted|dashed|wavy|$values)(?!\\|)");var Jh=class extends N{};x(Jh,"id","TextDecorationThickness"),x(Jh,"matches","^text-decoration:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|from-font|$values)[^|]*$"),x(Jh,"unit","em");var XN=class extends N{};x(XN,"id","TextIndent");var ZN=class extends N{};x(ZN,"id","Content");var Xh=class extends N{};x(Xh,"id","OutlineColor"),x(Xh,"colorStarts","outline:"),x(Xh,"colorful",!0);var e5=class extends N{};x(e5,"id","OutlineOffset");var dD=class extends N{};x(dD,"id","OutlineStyle"),x(dD,"matches","^outline:(?:none|dotted|dashed|solid|double|groove|ridge|inset|outset|$values)(?!\\|)");var pD=class extends N{};x(pD,"id","OutlineWidth"),x(pD,"matches","^outline:(?:\\.?[0-9]|medium|thick|thin|(max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var hD=class extends N{order=-1};x(hD,"id","Outline"),x(hD,"colorful",!0);var gD=class extends N{};x(gD,"id","BorderCollapse"),x(gD,"matches","^b(?:order)?:(?:collapse|separate|$values)(?!\\|)");var t5=class extends N{};x(t5,"id","BorderSpacing");var r5=class extends N{};x(r5,"id","TableLayout");var Zh=class extends N{};x(Zh,"id","AccentColor"),x(Zh,"colorStarts","accent:"),x(Zh,"colorful",!0);var n5=class extends N{};x(n5,"id","Appearance");var eg=class extends N{};x(eg,"id","CaretColor"),x(eg,"colorStarts","caret:"),x(eg,"colorful",!0);var i5=class extends N{};x(i5,"id","ScrollBehavior");var mD=class extends N{static get prop(){return""}get(t){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":t,"scroll-margin-right":t};case"y":return{"scroll-margin-top":t,"scroll-margin-bottom":t};case"l":return{"scroll-margin-left":t};case"r":return{"scroll-margin-right":t};case"t":return{"scroll-margin-top":t};case"b":return{"scroll-margin-bottom":t}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:t}}get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}};x(mD,"id","ScrollMargin"),x(mD,"matches","^scroll-m(?:[xytblr]|argin(?:-(?:top|bottom|left|right))?)?:.");var yD=class extends N{static get prop(){return""}get(t){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":t,"scroll-padding-right":t};case"y":return{"scroll-padding-top":t,"scroll-padding-bottom":t};case"l":return{"scroll-padding-left":t};case"r":return{"scroll-padding-right":t};case"t":return{"scroll-padding-top":t};case"b":return{"scroll-padding-bottom":t}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:t}}get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}};x(yD,"id","ScrollPadding"),x(yD,"matches","^scroll-p(?:[xytblr]|adding(?:-(?:top|bottom|left|right))?)?:.");var bD=class extends N{};x(bD,"id","ScrollSnapAlign"),x(bD,"matches","^scroll-snap:(?:start|end|center|$values)");var vD=class extends N{};x(vD,"id","ScrollSnapStop"),x(vD,"matches","^scroll-snap:(?:normal|always|$values)(?!\\|)");var wD=class extends N{};x(wD,"id","ScrollSnapType"),x(wD,"matches","^scroll-snap:(?:(?:[xy]|block|inline|both)(?:\\|(?:proximity|mandatory))?|$values)(?!\\|)");var s5=class extends N{};x(s5,"id","WillChange");var o5=class extends N{};x(o5,"id","TextUnderlineOffset");var _D=class extends N{get(t){return{[this.prefix.slice(0,-1)]:t}}};x(_D,"id","Inset"),x(_D,"matches","^(?:top|bottom|left|right):.");var tg=class extends N{order=-1};x(tg,"id","Columns"),x(tg,"matches","^(?:columns|cols):."),x(tg,"unit","");var xD=class extends N{};x(xD,"id","WhiteSpace"),x(xD,"unit","");var SD=class extends N{};x(SD,"id","TextOrientation"),x(SD,"matches","^t(?:ext)?:(?:mixed|upright|sideways-right|sideways|use-glyph-orientation|$values)(?!\\|)");var kD=class extends N{};x(kD,"id","WritingMode"),x(kD,"matches","^writing:.");var a5=class extends N{};x(a5,"id","Contain");var rg=class extends N{};x(rg,"id","AnimationDuration"),x(rg,"matches","^@duration:."),x(rg,"unit","ms");var ED=class extends N{};x(ED,"id","TextRendering"),x(ED,"matches","^t(?:ext)?:(?:optimizeSpeed|optimizeLegibility|geometricPrecision|$values)(?!\\|)");var u5=class extends N{};x(u5,"id","Direction");var CD=class extends N{};x(CD,"id","TextDecorationLine"),x(CD,"matches","^t(?:ext)?:(?:none|underline|overline|line-through|$values)(?!\\|)");var ng=class extends N{};x(ng,"id","GridColumnStart"),x(ng,"matches","^grid-col-start:."),x(ng,"unit","");var DD=class extends N{};x(DD,"id","ListStyleImage"),x(DD,"matches","^list-style:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)");var OD=class extends N{};x(OD,"id","ShapeOutside"),x(OD,"matches","^shape:(?:(?:inset|circle|ellipse|polygon|url|linear-gradient)\\(.*\\)|$values)(?!\\|)");var qD=class extends N{};x(qD,"id","ShapeMargin"),x(qD,"matches","^shape:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var RD=class extends N{};x(RD,"id","ShapeImageThreshold"),x(RD,"unit","");var AD=class extends N{};x(AD,"id","ClipPath"),x(AD,"matches","^clip:.");var l5=class extends N{order=-1};x(l5,"id","Grid");var ig=class extends N{order=-1};x(ig,"id","Font"),x(ig,"matches","^f:."),x(ig,"unit","");var c5=class extends N{};x(c5,"id","Quotes");var f5=class extends N{order=-1};x(f5,"id","GridTemplate");var PD=class extends N{};x(PD,"id","GridRowStart"),x(PD,"unit","");var d5=class extends N{};x(d5,"id","GridTemplateAreas");var TD=class extends N{};x(TD,"id","GridTemplateColumns"),x(TD,"matches","^grid-template-cols:.");var p5=class extends N{};x(p5,"id","GridTemplateRows");var MD=class extends N{order=-1};x(MD,"id","GridArea"),x(MD,"unit","");var sg=class extends N{};x(sg,"id","GridColumnEnd"),x(sg,"matches","^grid-col-end:."),x(sg,"unit","");var LD=class extends N{};x(LD,"id","GridRowEnd"),x(LD,"unit","");var h5=class extends N{get(t){return{"mask-image":t,"-webkit-mask-image":t}}};x(h5,"id","MaskImage");var cc=class extends N{static get prop(){return""}get(t){return{"-webkit-text-fill-color":t}}};x(cc,"id","TextFillColor"),x(cc,"matches","^text-fill-color:."),x(cc,"colorStarts","(?:text-fill|text|t):"),x(cc,"colorful",!0);var FD=class extends N{static get prop(){return""}get(t){return{"-webkit-text-stroke":t}}};x(FD,"id","TextStroke"),x(FD,"matches","^text-stroke:.");var ID=class extends N{static get prop(){return""}get(t){return{"-webkit-text-stroke-width":t}}};x(ID,"id","TextStrokeWidth"),x(ID,"matches","^text-stroke(:(thin|medium|thick|\\.?[0-9]+|$values)(?!\\|)|-width:.)");var fc=class extends N{static get prop(){return""}get(t){return{"-webkit-text-stroke-color":t}}};x(fc,"id","TextStrokeColor"),x(fc,"matches","^text-stroke-color:."),x(fc,"colorStarts","text-stroke:"),x(fc,"colorful",!0);var g5=class extends N{};x(g5,"id","StrokeDasharray");var m5=class extends N{};x(m5,"id","StrokeDashoffset");var ND=class extends N{};x(ND,"id","X"),x(ND,"unit","");var jD=class extends N{};x(jD,"id","Y"),x(jD,"unit","");var $D=class extends N{};x($D,"id","Cx"),x($D,"unit","");var BD=class extends N{};x(BD,"id","Cy"),x(BD,"unit","");var WD=class extends N{};x(WD,"id","Rx"),x(WD,"unit","");var zD=class extends N{};x(zD,"id","Ry"),x(zD,"unit","");var y5=class extends N{};x(y5,"id","BorderImageOutset");var UD=class extends N{};x(UD,"id","BorderImageRepeat"),x(UD,"matches","^border-image:(?:stretch|repeat|round|space|$values)(?!\\|)");var HD=class extends N{};x(HD,"id","BorderImageSlice"),x(HD,"unit","");var VD=class extends N{};x(VD,"id","BorderImageSource"),x(VD,"matches","^border-image:(?:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\\(.*\\)|$values)(?!\\|)");var GD=class extends N{};x(GD,"id","BorderImageWidth"),x(GD,"matches","^border-image:(?:\\.?[0-9]|(?:max|min|calc|clamp)\\(.*\\)|$values)[^|]*$");var KD=class extends N{};x(KD,"id","BorderImage"),x(KD,"unit","");var k0e=/\{(.*)\}/,og=class extends N{static get prop(){return""}analyzeToken(t,e,r){let n=0;for(;n<t.length&&!(t[n]==="{"&&t[n-1]!=="\\");n++);return[t.slice(0,n),...hc(t.slice(n),e,r)]}getThemeProps(t,e){let r={},n=(l,c)=>{let f=c.indexOf(":");if(f!==-1){l in r||(r[l]={});let d=r[l],p=c.slice(0,f);p in d||(d[p]=c.slice(f+1))}},i=l=>{let c=(f,d)=>{let p=d.slice(CSS.escape(l.className).length).match(k0e)[1].split(";");for(let h of p)n(f,h)};if(this.theme){let f=l.natives.find(d=>d.theme===this.theme)??l.natives.find(d=>!d.theme);f&&c(this.theme,f.text)}else for(let f of l.natives)c(f.theme,f.text)},s=[],o="",a=()=>{o&&(s.push(o),o="")},u=1;(function l(c){for(;u<t.value.length;u++){let f=t.value[u];if(!c){if(f===";"){a();continue}if(f==="}")break}if(o+=f,c===f){if(c==="'"||c==='"'){let d=0;for(let p=o.length-2;o[p]==="\\";p--)d++;if(d%2)continue}break}else f in ug&&c!=="'"&&c!=='"'&&(u++,l(ug[f]))}})(void 0),a();for(let l of s){let c=e.create(l);if(Array.isArray(c))for(let f of c)i(f);else c?i(c):n(this.theme??"",l)}return r}};x(og,"id","Group"),x(og,"matches","^(?:.+?[*_>~+])?\\{.+?\\}"),x(og,"unit","");var YD=class extends N{};x(YD,"id","CounterIncrement"),x(YD,"unit","");var QD=class extends N{};x(QD,"id","CounterReset"),x(QD,"unit","");var JD=class extends N{static get prop(){return""}analyzeToken(t,e,r){return["",...hc(t,e,r,["x"])]}get(t){let[e,r]=t.value.split(" x ");return{width:{...t,value:e},height:{...t,value:r}}}};x(JD,"id","WH"),x(JD,"matches","^(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)");var XD=class extends N{static get prop(){return""}analyzeToken(t,e,r){return["",...hc(t.slice(4),e,r,["x"])]}get(t){let[e,r]=t.value.split(" x ");return{"min-width":{...t,value:e},"min-height":{...t,value:r}}}};x(XD,"id","MinWH"),x(XD,"matches","^min:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)");var ZD=class extends N{static get prop(){return""}analyzeToken(t,e,r){return["",...hc(t.slice(4),e,r,["x"])]}get(t){let[e,r]=t.value.split(" x ");return{"max-width":{...t,value:e},"max-height":{...t,value:r}}}};x(ZD,"id","MaxWH"),x(ZD,"matches","^max:(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)x(?:(?:max|min|clamp|calc)\\(.+\\)|[0-9]+[a-z]*?)");var E0e=[og,Hh,XE,yh,JE,vh,wh,iC,sC,ig,lc,ZE,aD,oD,VN,YC,KC,VC,GC,QC,bC,eC,tC,rC,nC,JD,XD,ZD,a5,ZN,YD,QD,bh,_h,oC,aC,uC,Qh,fD,Jh,CD,xh,o5,uD,SD,lC,ED,XN,cC,tg,xD,_D,Sh,mC,yC,vC,wC,RN,AN,PN,TN,_C,xC,Oh,LN,IN,NN,jN,$N,BC,UC,BN,WN,jC,$C,cc,ID,fc,FD,zh,r5,dC,fC,kh,Eh,hC,gC,Dh,Ch,pC,qh,SC,rg,kC,Rh,EC,CC,DC,Ah,ac,OC,qC,RC,gD,t5,y5,UD,HD,VD,GD,KD,Fh,AC,MN,uc,PC,TC,Ih,MC,LC,Nh,jh,FC,$h,Wh,Bh,g5,m5,NC,IC,ND,jD,$D,BD,WD,zD,ng,sg,Kh,Uh,PD,LD,Yh,WC,tD,rD,GN,d5,TD,p5,f5,MD,l5,zC,Gh,HN,UN,zN,HC,Vh,JC,XC,ZC,eD,nD,iD,sD,KN,YN,QN,lD,cD,DD,JN,Xh,e5,dD,pD,hD,Zh,n5,eg,i5,mD,yD,bD,vD,wD,s5,kD,u5,OD,qD,RD,AD,c5,h5],C0e=E0e,D0e=!1,O0e=!0,q0e={colors:r0e,breakpoints:YE,semantics:tO,values:h0e,selectors:a0e,themes:c0e,scheme:d0e,Rules:C0e,rootSize:n0e,scope:s0e,override:D0e,observe:O0e},SN=q0e,eO=typeof Buffer<"u"?Buffer:null;function b5(t){return!!(eO&&t instanceof eO||t instanceof Date||t instanceof RegExp)}function v5(t){if(eO&&t instanceof Buffer){let e=Buffer.alloc(t.length);return t.copy(e),e}else{if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}}function w5(t){let e=[];return t.forEach(function(r,n){typeof r=="object"&&r!==null?Array.isArray(r)?e[n]=w5(r):b5(r)?e[n]=v5(r):e[n]=lg({},r):e[n]=r}),e}function kN(t,e){return e==="__proto__"?void 0:t[e]}function lg(...t){let e={},r,n;return t.forEach(function(i){typeof i!="object"||i===null||Array.isArray(i)||Object.keys(i).forEach(function(s){if(n=kN(e,s),r=kN(i,s),r!==e)if(typeof r!="object"||r===null){e[s]=r;return}else if(Array.isArray(r)){e[s]=w5(r);return}else if(b5(r)){e[s]=v5(r);return}else if(typeof n!="object"||n===null||Array.isArray(n)){e[s]=lg({},r);return}else{e[s]=lg(n,r);return}})}),e}var R0e=[",",".","#","[","!","*",">","+","~",":","@"],A0e=/^::-[a-z]+-/m,P0e=/^rgba?\( *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?: |,) *([0-9]{1,3}) *(?:(?:\/|,) *0?(\.[0-9]))?\)$/,cg,pc=typeof window<"u";pc&&(cg=document.createElement("style"),cg.title="master");var Zr="max-width",Wr="min-width",T0e="attributes",M0e=pc?window.MutationObserver:Object,dc,Do,ag=class extends M0e{constructor(t){super(e=>{let r={},n=[],i=[],s=[],o=(c,f)=>{f?c.classList.forEach(u):c.classList.forEach(a);let d=c.children;for(let p=0;p<d.length;p++){let h=d[p];h.classList&&(i.push(h),o(h,f))}},a=c=>{c in r?r[c]++:r[c]=1},u=c=>{c in r?r[c]--:c in this.countOfClass&&(r[c]=-1)},l=(c,f)=>{for(let d=0;d<c.length;d++){let p=c[d];p.classList&&!i.includes(p)&&!s.includes(p)&&(p.isConnected!==f?(i.push(p),o(p,f)):s.push(p))}};for(let c=0;c<e.length;c++){let f=e[c],{addedNodes:d,removedNodes:p,type:h,target:y,oldValue:v}=f;if(h===T0e){if(n.find(g=>g.target===y))continue;n.push(f)}else l(d,!1),(!y.isConnected||!i.includes(y))&&l(p,!0)}if(!(!n.length&&!Object.keys(r).length)){for(let{oldValue:c,target:f}of n){let d=i.includes(f),p=f.classList,h=c?c.split(" "):[];if(d){if(f.isConnected)continue;for(let y of h)p.contains(y)||u(y)}else if(f.isConnected){p.forEach(y=>{h.includes(y)||a(y)});for(let y of h)p.contains(y)||u(y)}}for(let c in r){let f=r[c],d=(this.countOfClass[c]||0)+f;d===0?(delete this.countOfClass[c],this.delete(c)):(c in this.countOfClass||this.insert(c),this.countOfClass[c]=d)}}}),this.config=t,x(this,"style"),x(this,"rules",[]),x(this,"ruleOfClass",{}),x(this,"countOfClass",{}),x(this,"host"),x(this,"root"),x(this,"ready",!1),x(this,"semantics"),x(this,"classes"),x(this,"colorThemesMap"),x(this,"colorNames"),x(this,"themeNames"),x(this,"relationThemesMap"),x(this,"relations"),x(this,"selectors"),x(this,"values"),x(this,"globalValues"),x(this,"breakpoints"),x(this,"mediaQueries"),x(this,"matches"),x(this,"schemeMQL"),hN(this,dc,void 0),hN(this,Do,void 0),x(this,"onThemeChange",e=>{this.theme=e.matches?"dark":"light"}),this.config?.override?this.config=SN:this.config=lg(SN,this.config),this.cache(),pc&&this.config.observe&&this.observe(document),ag.instances.push(this),this.ready=!0}static refresh(t){for(let e of this.instances)e.refresh(t)}get storageScheme(){let{storage:t}=this.config.scheme;return localStorage.getItem(t.key)}set scheme(t){if(t!==Za(this,dc)){gN(this,dc,t);let{storage:e}=this.config.scheme;t==="system"?(this.schemeMQL=window.matchMedia("(prefers-color-scheme:dark)"),this.schemeMQL.addEventListener("change",this.onThemeChange),this.theme=this.schemeMQL.matches?"dark":"light"):(this.removeSchemeListener(),this.theme=t),this.storageScheme!==t&&e.sync&&localStorage.setItem(e.key,t),this.ready&&this.host.dispatchEvent(new CustomEvent("scheme",{detail:this}))}}get scheme(){return Za(this,dc)}set theme(t){t!==Za(this,Do)&&(Za(this,Do)&&this.host.classList.remove(Za(this,Do)),gN(this,Do,t),this.host===document.documentElement&&(this.host.style.colorScheme=t),this.host.classList.add(t),this.ready&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}get theme(){return Za(this,Do)}removeSchemeListener(){this.schemeMQL&&(this.schemeMQL.removeEventListener("change",this.onThemeChange),this.schemeMQL=null)}cache(){this.semantics=[],this.classes={},this.colorThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={},this.values={},this.globalValues={},this.breakpoints={},this.mediaQueries={},this.matches={};let{semantics:t,classes:e,selectors:r,themes:n,colors:i,values:s,breakpoints:o,mediaQueries:a,Rules:u}=this.config;function l(g){return g.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function c(g,b,w="",_={}){let S=O=>O?(w?w+"-":"")+O:w,q=Object.entries(g),C=[],R=[];for(let O of q){let z=O[1];(typeof z=="object"&&!Array.isArray(z)?C:R).push(O)}for(let[O,z]of C)c(z,b,S(O),_);if(b&&w)R.length&&(_[w]=R.reduce((O,[z,F])=>(O[z]=F,O),{}));else for(let[O,z]of R)_[S(O)]=z;return _}if(t)for(let[g,b]of Object.entries(c(t,!0)))this.semantics.push([new RegExp("^"+l(g)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),[g,b]]);if(r)for(let[g,b]of Object.entries(c(r,!1))){let w=new RegExp(l(g)+"(?![a-z-])");for(let _ of Array.isArray(b)?b:[b]){let S=_.match(A0e)?.[0]??"",q=this.selectors[S];q||(q=this.selectors[S]=[]);let C=q.find(([R])=>R===w);C||(C=[w,[]],q.push(C)),C[1].push(_)}}if(s)for(let[g,b]of Object.entries(s))typeof b=="object"?this.values[g]=c(b,!1):this.globalValues[g]=b;o&&(this.breakpoints=c(o,!1)),a&&(this.mediaQueries=c(a,!1));let f=e?c(e,!1):{},d=n&&!Array.isArray(n)?Object.entries(n).filter(([,{classes:g}])=>g).reduce((g,[b,{classes:w}])=>(g[b]=c(w,!1),g),{}):{},p=[...Object.keys(f),...Object.entries(d).flatMap(([g,b])=>Object.keys(b))],h=g=>{if(g in this.classes)return;let b=this.classes[g]=[],w=(_,S)=>{if(!S)return;let q=Array.isArray(S)?S:S.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let C of q){let R=O=>{O in this.relationThemesMap?_ in this.relationThemesMap[O]?this.relationThemesMap[O][_].push(g):this.relationThemesMap[O][_]=[g]:this.relationThemesMap[O]={[_]:[g]},b.includes(O)||b.push(O)};if(p.includes(C)){h(C);for(let O of this.classes[C])R(O)}else R(C)}};w("",f?.[g]);for(let[_,S]of Object.entries(d))w(_,S?.[g])};for(let g of p)h(g);for(let g in this.relationThemesMap){let b=this.relations[g]=[];for(let w of Object.values(this.relationThemesMap[g]))for(let _ of w)b.includes(_)||b.push(_)}let y=(g,b)=>{if(!b)return;let w=c(b,!0);for(let[_,S]of Object.entries(w)){let q=typeof S=="string"?{"":S}:S;for(let[C,R]of Object.entries(q)){let O=_+(C?"-"+C:"");O in this.colorThemesMap?this.colorThemesMap[O][g]=R:this.colorThemesMap[O]={[g]:R}}}for(let _ in b)this.colorNames.includes(_)||this.colorNames.push(_)};if(y("",i),n)if(Array.isArray(n))this.themeNames.push(...n);else for(let g in n){let b=n[g];y(g,b.colors),this.themeNames.push(g)}let v=g=>{for(let[b,w]of Object.entries(this.colorThemesMap))for(let[_,S]of Object.entries(w))S.startsWith("#")||g(b,w,_,S)};if(v((g,b,w,_)=>{let S=P0e.exec(_);if(S){let q="#"+CN(+S[1],+S[2],+S[3]);S[4]&&(q+=Math.round(255*+S[4]).toString(16)),b[w]=q}}),v((g,b,w,_)=>{let[S,q]=_.split("/"),C=this.colorThemesMap[S];if(C){let R=(w?C[w]:void 0)??C[""];b[w]=q?R.slice(0,7)+Math.round(255*+q).toString(16):R}else console.warn(`\`${_}\` doesn't exist in the extended config \`.colors\``),delete b[w],Object.keys(b).length||delete this.colorThemesMap[g]}),u)for(let g of u){let b=g.matches;if(b){let w=Object.keys(this.values[g.id]??{}),_=b.indexOf("$values");this.matches[g.id]=new RegExp(_===-1?b:w.length?b.slice(0,_)+w.join("|")+b.slice(_+7):b.slice(0,_-(b[_-1]==="|"?1:0))+b.slice(_+7+(b[_+7]==="|"?1:0)))}}}observe(t,e={subtree:!0,childList:!0}){if(pc&&t){this.root=t;let r=t===document;r&&(ag.root=this),this.host=r?document.documentElement:t.host,this.scheme=this.storageScheme||this.config.scheme.preference;let n=r?document.head:t,i=r?document.styleSheets:t.styleSheets;for(let o of i){let{title:a,href:u,ownerNode:l}=o;(a==="master"||u&&u.startsWith(window.location.origin)&&/master(?:\..+)?\.css/.test(u))&&(this.style=l)}if(this.style)for(let o=0;o<this.style.sheet.cssRules.length;o++){let a=l=>{if(l.selectorText){let c=l.selectorText.split(", ")[0].split(" ");for(let f=0;f<c.length;f++){let d=c[f];if(d[0]==="."){let p=d.slice(1),h="";for(let y=0;y<p.length;y++){let v=p[y],g=p[y+1];if(v==="\\"){if(y++,g!=="\\"){h+=g;continue}}else if(R0e.includes(v))break;h+=v}if(!(h in this.ruleOfClass)&&!(h in this.classes)){let y=this.create(h)[0];if(y)return y}}}}else if(l.cssRules)for(let c=0;c<l.cssRules.length;c++){let f=a(l.cssRules[c]);if(f)return f}},u=a(this.style.sheet.cssRules[o]);if(u){this.rules.push(u),this.ruleOfClass[u.className]=u;for(let l=0;l<u.natives.length;l++)u.natives[l].cssRule=this.style.sheet.cssRules[o+l];o+=u.natives.length-1}}else this.style=cg.cloneNode(),n.prepend(this.style);let s=o=>{o.forEach(a=>{a in this.countOfClass?this.countOfClass[a]++:(this.countOfClass[a]=1,this.insert(a))})};s(this.host.classList),e.subtree&&this.host.querySelectorAll("[class]").forEach(o=>s(o.classList)),super.observe(t,{...e,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]})}return this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfClass={},this.rules.length=0;let t=this.style.sheet;if(t)for(let e=t.cssRules.length-1;e>=0;e--)t.deleteRule(e)}match(t){for(let e of this.config.Rules){let r=e.match(t,this.matches[e.id],this.colorThemesMap,this.colorNames);if(r)return{...r,Rule:e}}for(let e of this.semantics)if(t.match(e[0]))return{origin:"semantics",value:e[1],Rule:N}}create(t){let e=r=>{if(r in this.ruleOfClass)return this.ruleOfClass[r];let n=this.match(r);if(n)return new n.Rule(r,n,this)};return(t in this.classes?this.classes[t].map(r=>e(r)):[e(t)]).filter(r=>r&&r.text)}refresh(t){if(this.config=t,this.cache(),!this.style)return;let e=cg.cloneNode();this.style.replaceWith(e),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let r in this.countOfClass)this.insert(r)}destroy(){let t=ag.instances;this.disconnect(),t.splice(t.indexOf(this),1),this.style.remove(),this.removeSchemeListener()}delete(t){let e=this.style.sheet,r=n=>{let i=this.ruleOfClass[n];if(!(!i||n in this.relations&&this.relations[n].some(s=>s in this.countOfClass))){if(i.natives.length){let s=i.natives[0];for(let o=0;o<e.cssRules.length;o++)if(e.cssRules[o]===s.cssRule){for(let a=0;a<i.natives.length;a++)e.deleteRule(o);this.rules.splice(this.rules.indexOf(i),1);break}}delete this.ruleOfClass[n]}};if(t in this.classes){for(let n of this.classes[t])n in this.countOfClass||r(n);delete this.ruleOfClass[t]}else r(t)}insert(t){let e=this.create(t);return e.length?(this.insertRules(e),!0):!1}insertRules(t){for(let e of t){if(this.ruleOfClass[e.className])continue;let r,n=this.rules.length-1,{media:i,order:s,priority:o,hasWhere:a,className:u}=e,l=(c,f,d,p)=>{let h=0,y;f&&(h=c.findIndex(f)),d&&(y=c.findIndex(d)),h===-1&&(h=c.length),(y===void 0||y===-1)&&(y=c.length);let v=c.slice(h,y);for(let g=0;g<v.length;g++){let b=v[g];if(!(b.priority===-1||p&&p(b))&&(b.priority<o||b.priority===o&&(a&&!b.hasWhere||b.order>=s)))return h+g}return h+v.length};if(i){let c=this.rules.findIndex(f=>f.media);if(c!==-1){let f=i.features[Zr],d=i.features[Wr];if(f&&d){let p=f.value-d.value;for(let h=n;h>=c;h--){r=h;let y=this.rules[h],v=y.media,g=v.features[Zr],b=v.features[Wr];if(!g||!b){r++;break}let w=g.value-b.value;if(w===p){if(a!==y.hasWhere)continue;if(o!==-1){let _=[this.rules[h]];for(let S=h-1;S>=c;S--){let q=this.rules[S];if(q.hasWhere!==a)break;let C=q.media,R=C.features[Zr],O=C.features[Wr];if(!R||!O||R.value-O.value!==w)break;_.unshift(this.rules[S])}r=l(this.rules,S=>S.media&&S.priority!==-1&&S.media.features[Wr]&&S.media.features[Zr])}break}else if(w>p)break}}else if(d)for(let p=c;p<=n;p++){r=p;let h=this.rules[p],y=h.media,v=y.features[Zr],g=y.features[Wr];if(v){if(g)break;continue}let b=g?.value;if(b===d.value){if(!a&&h.hasWhere){r++;continue}if(o!==-1)r=l(this.rules,w=>w.media,w=>w.media&&w.priority!==-1&&w.media.features[Wr]&&w.media.features[Zr],w=>!w.media.features[Wr]&&!w.media.features[Zr]);else for(let w=p;w<=n;w++){let _=this.rules[w],S=_.media,q=S.features[Wr];if(!S.features[Zr]){if(_.hasWhere!==a||q.value!==b||_.order>=s)break;r=w+1}}break}else{if(b>d.value)break;r++}}else if(f)for(let p=n;p>=c;p--){r=p;let h=this.rules[p],y=h.media,v=y.features[Zr];if(y.features[Wr])continue;let g=v?.value;if(!g||g>f.value){r++;break}else if(g===f.value){if(a&&!h.hasWhere)continue;if(o!==-1)r=l(this.rules,b=>b.media,b=>b.media&&b.priority!==-1&&b.media.features[Wr]&&b.media.features[Zr],b=>!b.media.features[Wr]&&!b.media.features[Zr]);else{let b=[this.rules[p]];for(let w=p-1;w>=c;w--){let _=this.rules[w],S=_.media,q=S.features[Wr],C=S.features[Zr];if(!q&&(!C||C.value!==g||_.hasWhere!==a))break;b.unshift(_)}for(let w=0;w<b.length;w++){let _=b[w];if(!_.media.features[Wr]){if(_.order>=s)break;r=p-b.length+2+w}}}break}}}if(r===void 0)if(c===-1)r=n+1;else if(o!==-1)r=c+l(this.rules.slice(c),void 0,f=>f.media.features[Zr]||f.media.features[Wr]);else if(a){let f=c;for(;f<this.rules.length;f++){let d=this.rules[f];if(d.priority!==-1||!d.hasWhere||d.order>=s){r=f;break}}r===void 0&&(r=f)}else for(let f=c;f<=n;f++){r=f;let d=this.rules[f],p=d.media;if(d.priority!==-1||p.features[Zr]||p.features[Wr])break;if(d.hasWhere)r++;else if(d.order>=s)break}}else if(o===-1)if(a)r=this.rules.findIndex(c=>!c.hasWhere||c.media||c.priority!==-1||c.order>=s),r===-1&&(r=n+1);else{let c=0;for(;c<this.rules.length;c++){let f=this.rules[c];if(f.media||!f.hasWhere&&(f.order>=s||f.priority!==-1)){r=c;break}}r===void 0&&(r=c)}else r=l(this.rules,void 0,c=>c.media);if(this.rules.splice(r,0,e),this.ruleOfClass[u]=e,this.style){let c=this.style.sheet,f=0,d=p=>{let h=this.rules[p];if(h){if(!h.natives.length)return d(p-1);let y=h.natives[h.natives.length-1].cssRule;for(let v=0;v<c.cssRules.length;v++)if(c.cssRules[v]===y){f=v+1;break}}};d(r-1);for(let p=0;p<e.natives.length;)try{let h=e.natives[p];c.insertRule(h.text,f),h.cssRule=c.cssRules[f++],p++}catch(h){console.error(h),e.natives.splice(p,1)}}}}get text(){return this.rules.map(t=>t.text).join("")}},ar=ag;dc=new WeakMap,Do=new WeakMap,x(ar,"instances",[]),x(ar,"root");pc&&(window.MasterCSS=ar);var oc=typeof global<"u"?global:window;if(!oc.CSS&&!oc.CSS?.escape){let t=function(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");let r=String(e),n=r.length,i=-1,s="",o,a=r.charCodeAt(0);if(n==1&&a==45)return"\\"+r;for(;++i<n;){if(o=r.charCodeAt(i),o==0){s+="\uFFFD";continue}if(o>=1&&o<=31||o==127||i==0&&o>=48&&o<=57||i==1&&o>=48&&o<=57&&a==45){s+="\\"+o.toString(16)+" ";continue}if(o>=128||o==45||o==95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){s+=r.charAt(i);continue}s+="\\"+r.charAt(i)}return s};oc.CSS||(oc.CSS={}),oc.CSS.escape=t}function _5(t,e){if(!t?.length)return;let r=new ar({...e,observe:!1});for(let n of t)n in r.countOfClass||r.insert(n)&&(r.countOfClass[n]=1);return r.text}import{performance as Uhe}from"perf_hooks";var UF=Kt(To(),1),Pk=Kt(E$(),1);import g0t from"fs";var EB=Kt(ph(),1);import Qq from"node:process";import h1e from"node:os";import q$ from"node:tty";var e1e=Object.create,j$=Object.defineProperty,t1e=Object.getOwnPropertyDescriptor,r1e=Object.getOwnPropertyNames,n1e=Object.getPrototypeOf,i1e=Object.prototype.hasOwnProperty,s1e=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),o1e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of r1e(e))!i1e.call(t,i)&&i!==r&&j$(t,i,{get:()=>e[i],enumerable:!(n=t1e(e,i))||n.enumerable});return t},a1e=(t,e,r)=>(r=t!=null?e1e(n1e(t)):{},o1e(e||!t||!t.__esModule?j$(r,"default",{value:t,enumerable:!0}):r,t)),u1e=s1e((t,e)=>{"use strict";function r(n){var i=void 0;typeof n=="string"?i=[n]:i=n.raw;for(var s="",o=0;o<i.length;o++)s+=i[o].replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`"),o<(arguments.length<=1?0:arguments.length-1)&&(s+=arguments.length<=o+1?void 0:arguments[o+1]);var a=s.split(`
|
|
467
467
|
`),u=null;return a.forEach(function(l){var c=l.match(/^(\s+)\S+/);if(c){var f=c[1].length;u?u=Math.min(u,f):u=f}}),u!==null&&(s=a.map(function(l){return l[0]===" "?l.slice(u):l}).join(`
|
|
468
468
|
`)),s=s.trim(),s.replace(/\\n/g,`
|
|
469
469
|
`)}typeof e<"u"&&(e.exports=r)}),Ei=(t,e)=>{if(!t)throw new Error(e)},l1e=t=>{let e={joined:!0,spacerNoNeighbour:" ",spacerNeighbour:"\u2502 ",keyNoNeighbour:"\u2514\u2500 ",keyNeighbour:"\u251C\u2500 ",separator:": ",renderFn:r=>["boolean","string","number"].includes(typeof r)?r:void 0,sortFn:null,breakCircularWith:" (circular ref.)",...t};return Ei(Object.keys(e).length===9,"Unexpected Option(s) provided"),Ei(typeof e.joined=="boolean",'Option "joined" has invalid format'),Ei(typeof e.spacerNoNeighbour=="string",'Option "spacerNoNeighbour" has invalid format'),Ei(typeof e.spacerNeighbour=="string",'Option "spacerNeighbour" has invalid format'),Ei(typeof e.keyNoNeighbour=="string",'Option "keyNoNeighbour" has invalid format'),Ei(typeof e.keyNeighbour=="string",'Option "keyNeighbour" has invalid format'),Ei(typeof e.separator=="string",'Option "separator" has invalid format'),Ei(typeof e.renderFn=="function",'Option "renderFn" has invalid format'),Ei(typeof e.sortFn=="function"||e.sortFn===null,'Option "sortFn" has invalid format'),Ei(typeof e.breakCircularWith=="string"||e.breakCircularWith===null,'Option "breakCircularWith" has invalid format'),e},$$=(t,e={})=>{let r=l1e(e),n=[],i=r.renderFn(t);i!==void 0&&n.push(String(i));let s=l=>r.sortFn===null?l.reverse():l.sort((c,f)=>r.sortFn(f,c)),o=[],a=s(Object.keys(t)).map(l=>[l]),u=[t];for(;a.length!==0;){let l=a.pop(),c=u[l.length-1][l[l.length-1]],f=r.breakCircularWith!==null&&u.includes(c);o[l.length-1]=a.length!==0&&a[a.length-1].length===l.length;let d=r.renderFn(c);n.push([o.slice(0,l.length-1).map(p=>p?r.spacerNeighbour:r.spacerNoNeighbour).join(""),o[l.length-1]?r.keyNeighbour:r.keyNoNeighbour,l[l.length-1],d===void 0?"":`${r.separator}${c}`,f?r.breakCircularWith:""].join("")),c instanceof Object&&!Array.isArray(c)&&!f&&(a.push(...s(Object.keys(c)).map(p=>l.concat(p))),u[l.length]=c)}return r.joined===!0?n.join(`
|
|
@@ -481,7 +481,7 @@ You passed in: '`+this.raw_options[t]+"'");return n};So.prototype._is_valid_sele
|
|
|
481
481
|
`)+r,i=n+1,n=t.indexOf(`
|
|
482
482
|
`,i)}while(n!==-1);return s+=t.slice(i),s}var{stdout:Jhe,stderr:Xhe}=L0t,HF=Symbol("GENERATOR"),jl=Symbol("STYLER"),Ep=Symbol("IS_EMPTY"),Zhe=["ansi","ansi","ansi256","ansi16m"],$l=Object.create(null),N0t=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Jhe?Jhe.level:0;t.level=e.level===void 0?r:e.level},j0t=t=>{let e=(...r)=>r.join(" ");return N0t(e,t),Object.setPrototypeOf(e,Cp.prototype),e};function Cp(t){return j0t(t)}Object.setPrototypeOf(Cp.prototype,Function.prototype);for(let[t,e]of Object.entries(zi))$l[t]={get(){let r=Mk(this,GF(e.open,e.close,this[jl]),this[Ep]);return Object.defineProperty(this,t,{value:r}),r}};$l.visible={get(){let t=Mk(this,this[jl],!0);return Object.defineProperty(this,"visible",{value:t}),t}};var VF=(t,e,r,...n)=>t==="rgb"?e==="ansi16m"?zi[r].ansi16m(...n):e==="ansi256"?zi[r].ansi256(zi.rgbToAnsi256(...n)):zi[r].ansi(zi.rgbToAnsi(...n)):t==="hex"?VF("rgb",e,r,...zi.hexToRgb(...n)):zi[r][t](...n),$0t=["rgb","hex","ansi256"];for(let t of $0t){$l[t]={get(){let{level:r}=this;return function(...n){let i=GF(VF(t,Zhe[r],"color",...n),zi.color.close,this[jl]);return Mk(this,i,this[Ep])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);$l[e]={get(){let{level:r}=this;return function(...n){let i=GF(VF(t,Zhe[r],"bgColor",...n),zi.bgColor.close,this[jl]);return Mk(this,i,this[Ep])}}}}var B0t=Object.defineProperties(()=>{},{...$l,level:{enumerable:!0,get(){return this[HF].level},set(t){this[HF].level=t}}}),GF=(t,e,r)=>{let n,i;return r===void 0?(n=t,i=e):(n=r.openAll+t,i=e+r.closeAll),{open:t,close:e,openAll:n,closeAll:i,parent:r}},Mk=(t,e,r)=>{let n=(...i)=>W0t(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,B0t),n[HF]=t,n[jl]=e,n[Ep]=r,n},W0t=(t,e)=>{if(t.level<=0||!e)return t[Ep]?"":e;let r=t[jl];if(r===void 0)return e;let{openAll:n,closeAll:i}=r;if(e.includes("\x1B"))for(;r!==void 0;)e=F0t(e,r.close,r.open),r=r.parent;let s=e.indexOf(`
|
|
483
483
|
`);return s!==-1&&(e=I0t(e,i,n,s)),n+e+i};Object.defineProperties(Cp.prototype,$l);var z0t=Cp(),O5t=Cp({level:Xhe?Xhe.level:0}),Pe=z0t;function Ui(t){return t.split(" ").map(e=>e.replace(/^(\d*\.?\d*)$/g,`${Pe.blue("$1")}`).replace(/^(\d*\.?\d*)(YB|ZB|EB|PB|TB|GB|MB|KB|B|mb|kb|bit|zs|as|fs|ps|ns|µs|ms|s|m|h|d|m|y)$/g,`${Pe.cyan("$1")}${Pe.magenta("$2")}`).replace(/^((?:[0-1]?[0-9]|[2][0-3]):[0-5][0-9]:[0-5][0-9] (?:AM|PM)?)$/g,`${Pe.dim("$1")}`).replace(/^\[(.*?)\]$/g,`${Pe.dim("[")}${Pe.magenta("$1")}${Pe.dim("]")}`).replace(/^`(.*?)`$/g,`${Pe.dim("`")}$1${Pe.dim("`")}`).replace(/^\((.*?)\)$/g,`${Pe.dim("(")}$1${Pe.dim(")")}`).replace(/^<(.*?)>$/g,`${Pe.dim("<")}${Pe.gray("$1")}${Pe.dim(">")}`).replace(/->/g,Pe.dim("\u2192")).replace(/<-/g,Pe.dim("\u2190")).replace(/^\$t$/g,`${Pe.dim(new Date().toLocaleTimeString())}`).replace(/^\*\*(.*?)\*\*$/g,`${Pe.bold.white("$1")}`).replace(/^~~(.*?)~~$/g,`${Pe.strikethrough("$1")}`).replace(/^__(.*?)__$/g,`${Pe.underline("$1")}`).replace(/^\.\.(.*?)\.\.$/g,`${Pe.dim("$1")}`).replace(/^!!(.*?)!!$/g,`${Pe.yellow("$1")}`).replace(/^\*(.*?)\*$/g,`${Pe.italic("$1")}`).replace(/^_(.*?)_$/g,`${Pe.italic("$1")}`).replace(/^\+(.*?)\+$/g,`${Pe.green("$1")}`).replace(/^-(.*?)-$/g,`${Pe.red("$1")}`)).join(" ")}function En(t,e){let r="";if(Array.isArray(t))for(let n=0;n<t.length;n++)r+=$F(t[n])+$F(e[n]);else r=[t,...e].map(n=>$F(n)).join(" ");return Ui(r)}var $F=t=>t?Array.isArray(t)?t.map(e=>{switch(typeof e){case"string":return`'${Pe.yellow(e)}'`;case"number":case"boolean":return Pe.blue(e);default:return e}}).join(Pe.gray(", ")):t:"",ege=(t,...e)=>{let r=Pe.green("+")+" "+En(t,e);return console.log(r),r},tge=(t,...e)=>{let r=Pe.bgRed.bold.white(" \u{1D5EB} ERROR ")+" "+En(t,e);return console.log(r),r},U0t=(t,...e)=>{let r=Pe.bgYellow.bold.white(" \u26A0\uFE0F CONFLICT ")+" "+Pe.yellow(En(t,e));return console.log(r),r},H0t=(t,...e)=>{let r=Pe.green("\u2713 ")+En(t,e);return console.log(r),r},BF=(t,...e)=>{let r=Pe.red("-")+" "+En(t,e);return console.log(r),r},rge=(t,...e)=>{let r=Pe.green("\u25CB ")+En(t,e);return console.log(r),r},nge=(t,...e)=>{let r=Pe.red("\u2717 ")+En(t,e);return console.log(r),r},ige=(t,...e)=>{let r=Ui("$t ")+En(t,e);return console.log(r),r},V0t=(t,...e)=>{let r=Pe.green("\u23FA Success ")+En(t,e);return console.log(r),r},G0t=(t,...e)=>{let r=Pe.yellow("\u23FA Warn ")+En(t,e);return console.log(r),r},K0t=(t,...e)=>{let r=Pe.bgGreen.bold.white(" \u2713 PASS ")+" "+En(t,e);return console.log(r),r},Y0t=t=>{console.log(lge(cge(JSON.parse(JSON.stringify(t))),{spacerNeighbour:Ui("..\u2502..")+" ",keyNoNeighbour:Ui("..\u2514\u2500..")+" ",keyNeighbour:Ui("..\u251C\u2500..")+" ",separator:Ui("..:..")+" "}))};function cge(t){for(let e in t){let r=t[e];Array.isArray(r)?t[e]=r.map(n=>Ui(`**${n}**`)).join(Ui("..,..")):typeof r=="object"?cge(r):t[e]=Ui(`**${r}**`)}return t}var Q0t=(t,...e)=>{let r=Pe.red("\u23FA Fail ")+En(t,e);return console.log(r),r},J0t=k0t(E0t());function X0t(t){let{message:e,stack:r}=typeof t=="string"?new Error(t):t,n={};return(0,J0t.default)(r.replace(e,"").replace(/^Error: /,"")).split(`
|
|
484
|
-
`).forEach(i=>{n[i.split(" ").map(s=>s.replace(/^\((.+)\)$/,`${Pe.cyan("$1")}`).replace(/\./g,`${Pe.dim(".")}`).replace(/^at$/,o=>Pe.dim(o))).join(" ")]=null}),{message:e.trim().replace(/Error: /g,""),stackTree:n}}var fge=(t,...e)=>{if(t instanceof Error){let{message:r,stackTree:n}=X0t(t);return console.log(""),console.log(Pe.bgRed.bold.white(" \u{1D5EB} ERROR ")+" "+Pe.bold.red(r)),console.log(lge(n,{spacerNeighbour:Pe.redBright.dim("\u2502\u2000\u2000"),keyNoNeighbour:Pe.redBright.dim("\u2514\u2500\u2000"),keyNeighbour:Pe.redBright.dim("\u251C\u2500 "),separator:Pe.redBright.dim(":\u2000")})),console.log(""),r}else{let r=En(t,e);return console.log(r),r}};Object.assign(fge,{a:ege,add:ege,d:BF,del:BF,delete:BF,o:rge,valid:rge,x:nge,invalid:nge,i:ige,info:ige,e:tge,error:tge,success:V0t,fail:Q0t,warn:G0t,pass:K0t,conflict:U0t,ok:H0t,tree:Y0t,paint:Ui});var kp=fge,pge=class extends DB{constructor(t){super(c0t),this.options=rs(this.options,this.readConfig(null)?.options,t)}css;extractions=new Set;get resolvedModuleId(){return"\0"+this.options.module}get moduleHMREvent(){return`HMR:${this.options.module}`}async init(){return this.extractions.clear(),console.log(""),this.css=new _r({...this.readConfig()}),await this.compile(),this}async compile(){if(this.options.classes?.fixed?.length)for(let t of this.options.classes.fixed)this.css.insert(t);return await Promise.all(this.sources.map(async t=>{let e=g0t.readFileSync(Ak.default.resolve(this.options.cwd,t),{encoding:"utf-8"}).toString();await this.insert(t,e)})),this}extract(t,e){if(!t||!e||!this.checkSourcePath(t))return[];let r=[];for(let n of f0t({content:e,name:t},this.css))this.extractions.has(n)||(this.extractions.add(n),r.push(n));return r}async insert(t,e){let r=this.extract(t,e);if(!r.length)return!1;let n=Uhe.now(),i=[];await Promise.all(r.map(async o=>{let a=await this.createRules(o);a.length&&(this.css.insertRules(a),i.push(o))}));let s=Math.round((Uhe.now()-n)*100)/100;if(r.length&&(console.log(""),kp`**${Ak.default.relative(this.options.cwd,t)}** ..${Ak.default.resolve(this.options.cwd,t)}..`,kp`[extract] ${r.length} potential`),this.css.rules.length){let o=i.filter(a=>!r.includes(a));o.length&&kp`[exclude] ${o.length} unknow ${o}`,kp`[compile] +${i.length}+ valid inserted ${Pe.gray("in")} ${s}ms ${i}`,kp`[virtual] ${this.css.rules.length} total ${Pe.gray("in")} ${this.options.module}`}return this.options.classes?.ignored?.length&&(r=r.filter(o=>{for(let a of this.options.classes.ignored)if(typeof a=="string"){if(a===o)return!1}else if(a.test(o))return!1;return!0})),!0}async createRules(t){return(await Promise.all(this.css.create(t).map(async e=>(await dge.default.lint({code:e.text,cache:!1,config:{rules:{"color-no-invalid-hex":!0,"named-grid-areas-no-invalid":!0,"at-rule-no-unknown":!0,"function-no-unknown":!0,"media-feature-name-no-unknown":!0,"property-no-unknown":!0,"selector-pseudo-class-no-unknown":!0,"selector-pseudo-element-no-unknown":!0,"selector-type-no-unknown":!0,"unit-no-unknown":!0}}})).errored?null:e))).filter(e=>e)}get sources(){let{include:t,exclude:e,sources:r}=this.options,n=UF.default.sync(t,{cwd:this.options.cwd,ignore:e});return r?.length&&n.push(...UF.default.sync(r,{cwd:this.options.cwd})),n}checkSourcePath(t){let{include:e,exclude:r,sources:n}=this.options;for(let i of n)if((0,Pk.default)(t,i))return!0;for(let i of e)if(!(0,Pk.default)(t,i))return!1;for(let i of r)if((0,Pk.default)(t,i))return!1;return!0}get config(){return this.css.config}};var Xi=Kt(Up());var Fbe=Kt(Yme()),Ibe=Kt(fye()),Nbe=Kt(dye());var J=Kt(D3()),vE=[{label:"lang()",kind:J.CompletionItemKind.Function},{label:"has()",kind:J.CompletionItemKind.Function},"any-link","link","visited","target","scope","hover","active","focus","focus-visible","focus-within","autofill","enabled","disabled","read-only","read-write","placeholder-shown","default","checked","indeterminate","valid","invalid","in-range","out-of-range","required","optional","root","empty",{label:"nth-child()",kind:J.CompletionItemKind.Function},{label:"nth-last-child()",kind:J.CompletionItemKind.Function},"first-child","last-child","only-child",{label:"nth-of-type()",kind:J.CompletionItemKind.Function},{label:"nth-last-of-type()",kind:J.CompletionItemKind.Function},"first-of-type","last-of-type","only-of-type","defined","first","fullscreen",{label:"host()",kind:J.CompletionItemKind.Function},{label:"host-context()",kind:J.CompletionItemKind.Function},{label:"is()",kind:J.CompletionItemKind.Function},"left",{label:"not()",kind:J.CompletionItemKind.Function},"right",{label:"where()",kind:J.CompletionItemKind.Function}],L3=["after","before","backdrop","cue","first-letter","first-line","file-selector-button","marker",{label:"part()",kind:J.CompletionItemKind.Function},"placeholder","selection",{label:"slotted()",kind:J.CompletionItemKind.Function},"resizer","search-cancel-button","search-results-button"],pye=["all","print","screen","portrait","landscape","motion","reduced-motion",{label:"media()",kind:J.CompletionItemKind.Function}],hye=["ext","gap","ont","ovf","quotes","bottom","center","left","middle","top","right","px","py","pt","pb","pl","pr","mx","my","mt","mb","ml","mr"],gye=[{label:"var()",kind:J.CompletionItemKind.Function},{label:"calc()",kind:J.CompletionItemKind.Function},"inherit","initial","unset"],Vp=[{key:["color","fg","foreground"],colorful:!0,values:[]},{key:["font-color","font","f"],colorful:!0,values:[]},{key:["accent-color","accent"],colorful:!0,values:[]},{key:["appearance"],colorful:!1,values:["none","auto","menulist-button","textfield","button","searchfield","textarea","push-button","slider-horizontal","checkbox","radio","square-button","menulist","listbox","meter","progress-bar"]},{key:["caret-color","caret"],colorful:!0,values:["transparent"]},{key:["cursor"],colorful:!1,values:["auto","alias","all-scroll","cell","col-resize","context-menu","copy","crosshair","default","e-resize","ew-resize","grab","grabbing","help","move","n-resize","ne-resize","nesw-resize","no-drop","none","not-allowed","ns-resize","nw-resize","nwse-resize","pointer","progress","row-resize","s-resize","se-resize","sw-resize","text","vertical-text","w-resize","wait","zoom-in","zoom-out"]},{key:["box-decoration-break","box"],colorful:!1,values:["slice","clone"]},{key:["break-after","break-before"],colorful:!1,values:["avoid-column","column","left","page","recto","right","recto","verso","auto","avoid","avoid-column","avoid-page","revert"]},{key:["break-inside"],colorful:!1,values:["auto","avoid","avoid-column","avoid-page","revert"]},{key:["clear"],colorful:!1,values:["both","left","none","right"]},{key:["columns","cols"],colorful:!1,values:[]},{key:["column-span","col-span"],colorful:!1,values:["all","none"]},{key:["direction"],colorful:!1,values:["ltr","rtl"]},{key:["display","d"],colorful:!1,values:["hidden","hide","flex","grid","inline","none","block","table","contents","inline-block","inline-flex","inline-grid","inline-table","table-cell","table-caption","flow-root","list-item","table-row","table-column","table-row-group","table-column-group","table-header-group","table-footer-group"]},{key:["float"],colorful:!1,values:["left","none","right"]},{key:["inset"],colorful:!1,values:[]},{key:["isolation"],colorful:!1,values:["auto","isolate"]},{key:["overflow","overflow-x","overflow-y"],colorful:!1,values:["auto","hidden","overlay","scroll","visible","clip"]},{key:["position"],colorful:!1,values:["absolute","relative","static","fixed","sticky"]},{key:["z-index","z"],colorful:!1,values:[]},{key:["flex"],colorful:!1,values:[]},{key:["flex-basis"],colorful:!1,values:["100%","fit-content","max-content","min-content"]},{key:["flex-direction","flex"],colorful:!1,values:["column","row","column-reverse","row-reverse"]},{key:["flex-grow","flex-shrink"],colorful:!1,values:[]},{key:["flex-wrap","flex"],colorful:!1,values:["wrap","wrap-reverse","nowrap"]},{key:["grid"],colorful:!1,values:[]},{key:["grid-auto-columns","grid-auto-cols"],colorful:!1,values:["auto","min-content","max-content",{label:"minmax(,)",kind:J.CompletionItemKind.Function}]},{key:["grid-auto-flow"],colorful:!1,values:["row","column","dense","row|dense","column|dense"]},{key:["grid-auto-rows"],colorful:!1,values:["auto","min-content","max-content",{label:"minmax(,)",kind:J.CompletionItemKind.Function}]},{key:["grid-column","grid-col","grid-column-span","grid-col-span","grid-column-start","grid-col-start","grid-column-end","grid-col-end"],colorful:!1,values:[]},{key:["grid-columns","grid-cols"],colorful:!1,values:[]},{key:["grid-row","grid-row-span","grid-row-start","grid-row-end"],colorful:!1,values:[]},{key:["grid-rows"],colorful:!1,values:[]},{key:["grid-template"],colorful:!1,values:["none"]},{key:["grid-template-areas","grid-area"],colorful:!1,values:["none"]},{key:["grid-template-columns","grid-template-cols"],colorful:!1,values:["none","min-content","max-content",{label:"repeat(,)",kind:J.CompletionItemKind.Function},{label:"fit-content()",kind:J.CompletionItemKind.Function},{label:"minmax()",kind:J.CompletionItemKind.Function}]},{key:["grid-template-rows"],colorful:!1,values:["none","min-content","max-content",{label:"repeat(,)",kind:J.CompletionItemKind.Function},{label:"fit-content()",kind:J.CompletionItemKind.Function},{label:"minmax()",kind:J.CompletionItemKind.Function}]},{key:["align-content","ac"],colorful:!1,values:["space-around","space-between","space-evenly","normal","baseline","center","stretch","start","end","flex-start","flex-end"]},{key:["align-items","ai"],colorful:!1,values:["self-start","self-end","normal","baseline","center","stretch","start","end","flex-start","flex-end"]},{key:["align-self","as"],colorful:!1,values:["auto","self-start","self-end","normal","baseline","center","stretch","start","end","flex-start","flex-end"]},{key:["justify-content","jc"],colorful:!1,values:["space-around","space-between","space-evenly","normal","left","center","right","stretch","start","end","flex-start","flex-end"]},{key:["justify-items","ji"],colorful:!1,values:["self-start","self-end","normal","left","center","right","stretch","start","end","flex-start","flex-end"]},{key:["justify-self","js"],colorful:!1,values:["auto","self-start","self-end","normal","left","center","right","stretch","start","end","flex-start","flex-end"]},{key:["order","o"],colorful:!1,values:[]},{key:["place-content"],colorful:!1,values:["space-around","space-between","space-evenly","normal","baseline","center","stretch","start","end","flex-start","flex-end"]},{key:["place-items"],colorful:!1,values:["self-start","self-end","normal","baseline","center","stretch","start","end","flex-start","flex-end"]},{key:["place-self"],colorful:!1,values:["auto","self-start","self-end","normal","baseline","center","stretch","start","end","flex-start","flex-end"]},{key:["border-collapse","border"],colorful:!1,values:["collapse","separate"]},{key:["table-layout"],colorful:!1,values:["auto","fixed"]},{key:["object-fit"],colorful:!1,values:["none"]},{key:["object-fit","object","obj"],colorful:!1,values:["contain","cover","fill","scale-down"]},{key:["object-position","object","obj"],colorful:!1,values:["top","bottom","left","right","center"]},{key:["font","f"],colorful:!1,values:["caption","icon","menu","message-box","small-caption","status-bar"]},{key:["font-color","font","f"],colorful:!0,values:[]},{key:["font-family","font","f"],colorful:!1,values:["'CourierNew',Courier,monospace","'FranklinGothicMedium','ArialNarrow',Arial,sans-serif","'GillSans','GillSansMT',Calibri,'TrebuchetMS',sans-serif","'LucidaSans','LucidaSansRegular','LucidaGrande','LucidaSansUnicode',Geneva,Verdana,sans-serif","'SegoeUI',Tahoma,Geneva,Verdana,sans-serif","'TimesNewRoman',Times,serif","'TrebuchetMS','LucidaSansUnicode','LucidaGrande','LucidaSans',Arial,sans-serif","Arial,Helvetica,sans-serif","Cambria,Cochin,Georgia,Times,'TimesNewRoman',serif","Georgia,'TimesNewRoman',Times,serif","Impact,Haettenschweiler,'ArialNarrowBold',sans-serif","Verdana,Geneva,Tahoma,sans-serif","cursive","fantasy","monospace","sans-serif","serif","-apple-system,BlinkMacSystemFont,'SegoeUI',Roboto,Oxygen,Ubuntu,Cantarell,'OpenSans','HelveticaNeue',sans-serif"]},{key:["font-size","font","f"],colorful:!1,values:[{label:"8",kind:J.CompletionItemKind.Unit,sortText:"!0"},{label:"9",kind:J.CompletionItemKind.Unit,sortText:"!1"},{label:"10",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"11",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"12",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"14",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"16",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"18",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"20",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"22",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"24",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"26",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"28",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"36",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"48",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"72",kind:J.CompletionItemKind.Unit,sortText:"!2"}]},{key:["font-style"],colorful:!1,values:["oblique|deg"]},{key:["font-style","font","f"],colorful:!1,values:["normal","italic","oblique"]},{key:["font-variant-numeric","font","f"],colorful:!1,values:["normal","ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]},{key:["font-weight","font","f"],colorful:!1,values:["100","200","300","400","500","600","700","800","900"]},{key:["font","f"],colorful:!1,values:["antialiased","subpixel-antialiased"]},{key:["text-align","text","t"],colorful:!1,values:["start","end","left","right","center","justify"]},{key:["text-decoration","text","t"],colorful:!1,values:["underline","line-through","overline"]},{key:["text-decoration-color","text-decoration"],colorful:!0,values:[]},{key:["text-decoration-line","text","t"],colorful:!1,values:["none","underline","overline","line-through"]},{key:["text-decoration-style","text","t"],colorful:!1,values:["dashed","dotted","double","solid","wavy"]},{key:["text-decoration-thickness"],colorful:!1,values:[]},{key:["text-fill-color","text-fill"],colorful:!0,values:[]},{key:["text-indent"],colorful:!1,values:[]},{key:["text-orientation","text","t"],colorful:!1,values:["mixed","sideways","sideways-right","upright","use-glyph-orientation"]},{key:["text-overflow","text","t"],colorful:!1,values:["clip","ellipsis"]},{key:["text-shadow"],colorful:!1,values:[]},{key:["text","t"],colorful:!1,values:[]},{key:["text-stroke"],colorful:!1,values:[]},{key:["text-stroke-color","text-stroke"],colorful:!0,values:[]},{key:["text-stroke-width","text-stroke"],colorful:!1,values:[]},{key:["text-transform"],colorful:!1,values:["none"]},{key:["text-transform","text","t"],colorful:!1,values:["capitalize","lowercase","uppercase"]},{key:["text-underline-offset"],colorful:!1,values:[]},{key:["text-rendering"],colorful:!1,values:["auto"]},{key:["text-rendering","t"],colorful:!1,values:["optimizeSpeed","optimizeLegibility","geometricPrecision"]},{key:["list-style"],colorful:!1,values:[]},{key:["list-style-image","list-style"],colorful:!1,values:[{label:"url()",kind:J.CompletionItemKind.Function},{label:"linear-gradient()",kind:J.CompletionItemKind.Function},{label:"radial-gradient()",kind:J.CompletionItemKind.Function},{label:"repeating-linear-gradient()",kind:J.CompletionItemKind.Function},{label:"repeating-radial-gradient()",kind:J.CompletionItemKind.Function},{label:"conic-gradient()",kind:J.CompletionItemKind.Function}]},{key:["list-style-position","list-style"],colorful:!1,values:["inside","outside"]},{key:["list-style-type"],colorful:!1,values:["circle","square","decimal-leading-zero","lower-roman","lower-greek","lower-alpha","lower-latin","upper-roman","upper-alpha","upper-latin","arabic-indic","armenian","bengali","cambodian/khmer","cjk-earthly-branch","cjk-heavenly-stem","devanagari","georgian","gurmukhi","kannada","lao","malayalam","myanmar","oriya","telugu","thai"]},{key:["list-style-type","list-style"],colorful:!1,values:["none","disc","decimal"]},{key:["letter-spacing","ls"],colorful:!1,values:[]},{key:["lines"],colorful:!1,values:[]},{key:["line-height","lh"],colorful:!1,values:[]},{key:["content"],colorful:!1,values:["normal","none","no-open-quote","no-close-quote",{label:"url()",kind:J.CompletionItemKind.Function},{label:"linear-gradient()",kind:J.CompletionItemKind.Function},{label:"image-set()",kind:J.CompletionItemKind.Function},{label:"counter()",kind:J.CompletionItemKind.Function},{label:"attr()",kind:J.CompletionItemKind.Function}]},{key:["vertical-align","v"],colorful:!1,values:["baseline","bottom","middle","sub","super","text-bottom","text-top","top"]},{key:["white-space"],colorful:!1,values:["break-spaces","normal","nowrap","pre","pre-line","pre-wrap"]},{key:["word-break"],colorful:!1,values:["normal","break-all","keep-all"]},{key:["word-spacing"],colorful:!1,values:[]},{key:["writing-mode"],colorful:!1,values:["horizontal-tb","vertical-rl","vertical-lr","lr","lr-tb","rl","rl-tb","tb","tb-rl"]},{key:["background","bg"],colorful:!1,values:[]},{key:["backdrop-filter","bd"],colorful:!1,values:["none",{label:"url()",kind:J.CompletionItemKind.Function},{label:"blur()",kind:J.CompletionItemKind.Function},{label:"brightness()",kind:J.CompletionItemKind.Function},{label:"contrast()",kind:J.CompletionItemKind.Function},{label:"grayscale()",kind:J.CompletionItemKind.Function},{label:"hue-rotate(degree)",kind:J.CompletionItemKind.Function},{label:"invert()",kind:J.CompletionItemKind.Function},{label:"sepia()",kind:J.CompletionItemKind.Function},{label:"saturate()",kind:J.CompletionItemKind.Function},{label:"opacity()",kind:J.CompletionItemKind.Function},{label:"drop-shadow()",kind:J.CompletionItemKind.Function}]},{key:["background-attachment","background","bg"],colorful:!1,values:["fixed","local","scroll"]},{key:["background-blend-mode"],colorful:!1,values:["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},{key:["background-clip","bg"],colorful:!1,values:["content-box","border-box","padding-box"]},{key:["background-color","background","bg"],colorful:!0,values:["transparent"]},{key:["background-image","background","bg"],colorful:!1,values:[{label:"url()",kind:J.CompletionItemKind.Function},{label:"linear-gradient()",kind:J.CompletionItemKind.Function},{label:"radial-gradient()",kind:J.CompletionItemKind.Function},{label:"repeating-linear-gradient()",kind:J.CompletionItemKind.Function},{label:"repeating-radial-gradient()",kind:J.CompletionItemKind.Function},{label:"conic-gradient()",kind:J.CompletionItemKind.Function}]},{key:["background-origin","bg"],colorful:!1,values:["content-box","border-box","padding-box"]},{key:["background-position","bg"],colorful:!1,values:["top","bottom","left","right","center"]},{key:["background-repeat","bg"],colorful:!1,values:["repeat","no-repeat","repeat-x","repeat-y"]},{key:["background-size","background","bg"],colorful:!1,values:["auto","cover","contain"]},{key:["mix-blend-mode","blend"],colorful:!1,values:["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},{key:["border","border-top","border-bottom","border-left","border-right","b","bt","bb","bl","br","bx","by"],colorful:!1,values:[]},{key:["border-spacing"],colorful:!1,values:[]},{key:["border-color","border","border-top-color","border-bottom-color","border-left-color","border-right-color","b","bt","bb","bl","br","bx","by"],colorful:!0,values:[]},{key:["border-radius","r","rt","rb","rl","rr","border-top-left-radius","rlt","rtl","border-top-right-radius","rrt","rtr","border-bottom-left-radius","rlb","rbl","border-bottom-right-radius","rbr","rrb"],colorful:!1,values:[]},{key:["border-style","border","b","border-top-style","border-top","bt","border-bottom-style","border-bottom","bb","border-left-style","border-left","bl","border-right-style","border-right","br","bx","by"],colorful:!1,values:["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]},{key:["border-width","border","b","border-top-width","border-top","bt","border-bottom-width","border-bottom","bb","border-left-width","border-left","bl","border-right-width","border-right","br","bx","by"],colorful:!1,values:[]},{key:["outline"],colorful:!1,values:[]},{key:["outline-color","outline"],colorful:!0,values:[]},{key:["outline-offset"],colorful:!1,values:[]},{key:["outline-style","outline"],colorful:!1,values:["none","dotted","dashed","solid","double","groove","ridge","inset","outset"]},{key:["outline-width","outline"],colorful:!1,values:["medium","thick","thin"]},{key:["shape-image-threshold"],colorful:!1,values:[]},{key:["shape-margin","shape"],colorful:!1,values:[{label:"max()",kind:J.CompletionItemKind.Function},{label:"min()",kind:J.CompletionItemKind.Function},{label:"calc()",kind:J.CompletionItemKind.Function},{label:"clamp()",kind:J.CompletionItemKind.Function}]},{key:["shape-outside","shape"],colorful:!1,values:["none","content-box","border-box","padding-box","margin-box",{label:"inset()",kind:J.CompletionItemKind.Function},{label:"circle()",kind:J.CompletionItemKind.Function},{label:"ellipse()",kind:J.CompletionItemKind.Function},{label:"polygon()",kind:J.CompletionItemKind.Function},{label:"url()",kind:J.CompletionItemKind.Function},{label:"linear-gradient()",kind:J.CompletionItemKind.Function}]},{key:["clip-path","clip"],colorful:!1,values:["none","content-box","border-box","padding-box","margin-box","fill-box","stroke-box","view-box",{label:"inset()",kind:J.CompletionItemKind.Function},{label:"circle()",kind:J.CompletionItemKind.Function},{label:"ellipse()",kind:J.CompletionItemKind.Function},{label:"polygon()",kind:J.CompletionItemKind.Function},{label:"path()",kind:J.CompletionItemKind.Function},{label:"url()",kind:J.CompletionItemKind.Function}]},{key:["aspect-ratio","aspect"],colorful:!1,values:[]},{key:["box-sizing","box"],colorful:!1,values:["content-box","border-box"]},{key:["width","w"],colorful:!1,values:["100%","fit-content","max-content","min-content"]},{key:["min-width","min-w"],colorful:!1,values:["100%","fit-content","max-content","min-content"]},{key:["max-width","max-w"],colorful:!1,values:["100%","fit-content","max-content","min-content"]},{key:["height","h"],colorful:!1,values:["100%","fit-content","max-content","min-content"]},{key:["min-height","min-h"],colorful:!1,values:["100%","fit-content","max-content","min-content"]},{key:["max-height","max-h"],colorful:!1,values:["100%","fit-content","max-content","min-content"]},{key:["letter-spacing","ls"],colorful:!1,values:[]},{key:["margin-top","mt","margin-bottom","mb","margin-left","ml","margin-right","mr","margin","m","mx","my"],colorful:!1,values:[]},{key:["padding-top","pt","padding-bottom","pb","padding-left","pl","padding-right","pr","padding","p","px","py"],colorful:!1,values:[]},{key:["word-spacing"],colorful:!1,values:[]},{key:["transition"],colorful:!1,values:[]},{key:["transition-delay","~delay"],colorful:!1,values:[]},{key:["transition-duration","~duration"],colorful:!1,values:[]},{key:["transition-property","~property"],colorful:!1,values:[]},{key:["transition-timing-function","~easing"],colorful:!1,values:["ease","ease-in","ease-out","linear","step-start","step-end",{label:"steps(,)",kind:J.CompletionItemKind.Function},{label:"cubic-bezier(,,,)",kind:J.CompletionItemKind.Function},{label:"frames()",kind:J.CompletionItemKind.Function}]},{key:["transform"],colorful:!1,values:[{label:"translate()",kind:J.CompletionItemKind.Function},{label:"translate3d()",kind:J.CompletionItemKind.Function},{label:"translateX()",kind:J.CompletionItemKind.Function},{label:"translateY()",kind:J.CompletionItemKind.Function},{label:"translateZ()",kind:J.CompletionItemKind.Function},{label:"scale()",kind:J.CompletionItemKind.Function},{label:"scale3d()",kind:J.CompletionItemKind.Function},{label:"scaleX()",kind:J.CompletionItemKind.Function},{label:"scaleY()",kind:J.CompletionItemKind.Function},{label:"scaleZ()",kind:J.CompletionItemKind.Function},{label:"skew()",kind:J.CompletionItemKind.Function},{label:"skewX()",kind:J.CompletionItemKind.Function},{label:"skewY()",kind:J.CompletionItemKind.Function},{label:"rotate()",kind:J.CompletionItemKind.Function},{label:"rotate3d()",kind:J.CompletionItemKind.Function},{label:"rotateX()",kind:J.CompletionItemKind.Function},{label:"rotateY()",kind:J.CompletionItemKind.Function},{label:"rotateZ()",kind:J.CompletionItemKind.Function},{label:"perspective()",kind:J.CompletionItemKind.Function},{label:"matrix()",kind:J.CompletionItemKind.Function},{label:"matrix3d()",kind:J.CompletionItemKind.Function}]},{key:["transform-box","transform"],colorful:!1,values:["content-box","fill-box","stroke-box","view-box","border-box"]},{key:["transform-origin","transform"],colorful:!1,values:["top","bottom","right","left","center"]},{key:["transform-style","transform"],colorful:!1,values:["flat","preserve-3d"]},{key:["animation"],colorful:!1,values:[]},{key:["animation-delay","@delay"],colorful:!1,values:[]},{key:["animation-direction","@direction"],colorful:!1,values:["normal","reverse","alternate","alternate-reverse"]},{key:["animation-duration","@duration"],colorful:!1,values:[]},{key:["animation-fill-mode","@fill-mode"],colorful:!1,values:["none","forwards","backwards","both"]},{key:["animation-iteration-count","@iteration-count"],colorful:!1,values:["infinite"]},{key:["animation-name","@name"],colorful:!1,values:[]},{key:["animation-play-state","@play-state"],colorful:!1,values:["running","paused"]},{key:["animation-timing-function","@easing"],colorful:!1,values:["ease","ease-in","ease-out","ease-in-out","linear","step-start","step-end",{label:"steps(,)",kind:J.CompletionItemKind.Function},{label:"cubic-bezier(,,,)",kind:J.CompletionItemKind.Function},{label:"frames()",kind:J.CompletionItemKind.Function}]},{key:["fill"],colorful:!0,values:[]},{key:["stroke"],colorful:!0,values:[]},{key:["stroke-width"],colorful:!1,values:[]},{key:["opacity"],colorful:!1,values:[]},{key:["visibility"],colorful:!1,values:["visible","invisible","collapse"]},{key:["backdrop-filter","bd"],colorful:!1,values:["none",{label:"url(svg)",kind:J.CompletionItemKind.Function},{label:"blur()",kind:J.CompletionItemKind.Function},{label:"brightness()",kind:J.CompletionItemKind.Function},{label:"contrast()",kind:J.CompletionItemKind.Function},{label:"grayscale()",kind:J.CompletionItemKind.Function},{label:"hue-rotate(degree)",kind:J.CompletionItemKind.Function},{label:"invert()",kind:J.CompletionItemKind.Function},{label:"sepia()",kind:J.CompletionItemKind.Function},{label:"saturate()",kind:J.CompletionItemKind.Function},{label:"opacity()",kind:J.CompletionItemKind.Function},{label:"drop-shadow()",kind:J.CompletionItemKind.Function}]},{key:["background-blend-mode"],colorful:!1,values:["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},{key:["box-shadow","shadow","s"],colorful:!0,values:["inset"]},{key:["filter"],colorful:!1,values:["none",{label:"url()",kind:J.CompletionItemKind.Function},{label:"blur()",kind:J.CompletionItemKind.Function},{label:"brightness()",kind:J.CompletionItemKind.Function},{label:"contrast()",kind:J.CompletionItemKind.Function},{label:"drop-shadow()",kind:J.CompletionItemKind.Function},{label:"grayscale()",kind:J.CompletionItemKind.Function},{label:"hue-rotate(degree)",kind:J.CompletionItemKind.Function},{label:"invert()",kind:J.CompletionItemKind.Function},{label:"opacity()",kind:J.CompletionItemKind.Function},{label:"saturate()",kind:J.CompletionItemKind.Function},{label:"sepia()",kind:J.CompletionItemKind.Function}]},{key:["mask-image"],colorful:!1,values:[]},{key:["mix-blend-mode","blend"],colorful:!1,values:["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},{key:["text-shadow"],colorful:!1,values:[]},{key:["overscroll-behavior","overscroll-behavior-x","overscroll-behavior-y"],colorful:!1,values:["auto","none","contain"]},{key:["scroll-behavior"],colorful:!1,values:["auto","smooth"]},{key:["scroll-margin","scroll-m","scroll-margin-top","scroll-mt","scroll-margin-bottom","scroll-mb","scroll-margin-left","scroll-ml","scroll-margin-right","scroll-mr","scroll-mx","scroll-my"],colorful:!1,values:[]},{key:["scroll-padding","scroll-p","scroll-padding","scroll-padding-top","scroll-pt","scroll-padding-bottom","scroll-pb","scroll-padding-left","scroll-pl","scroll-padding-right","scroll-pr","scroll-px","scroll-py"],colorful:!1,values:[]},{key:["scroll-snap-align","scroll-snap"],colorful:!1,values:["center","end","start","none"]},{key:["scroll-snap-stop","scroll-snap"],colorful:!1,values:["always","normal"]},{key:["scroll-snap-type"],colorful:!1,values:["none"]},{key:["scroll-snap-type","scroll-snap"],colorful:!1,values:["x","y","both","block","inline","x|mandatory","y|proximity","both|mandatory"]},{key:["pointer-events"],colorful:!1,values:["auto","none","visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","bounding-box"]},{key:["resize"],colorful:!1,values:["auto","none","both","horizontal","vertical","block","inline"]},{key:["touch-action"],colorful:!1,values:["auto","none","pan-x","pan-left","pan-right","pan-y","pan-up","pan-down","pinch-zoom","manipulation"]},{key:["user-drag"],colorful:!1,values:["auto","none","element"]},{key:["user-select"],colorful:!1,values:["all","auto","none","text"]},{key:["contain"],colorful:!1,values:["none","strict","content","size","layout","style","paint"]},{key:["font","f"],colorful:!1,values:["antialiased","subpixel-antialiased"]},{key:["text-rendering"],colorful:!1,values:["auto"]},{key:["text-rendering","t"],colorful:!1,values:["optimizeSpeed","optimizeLegibility","geometricPrecision"]},{key:["will-change"],colorful:!1,values:[]},{key:["$"],colorful:!1,values:[]}],mye=[{type:"color",values:["#",{label:"rgb()",kind:J.CompletionItemKind.Function},{label:"hsl()",kind:J.CompletionItemKind.Function}]}];var yr=Kt(Up());var Eye=Kt(kye()),Kp=[];Kp=Kp.concat(hye);Vp.forEach(t=>{Kp=Kp.concat(t.key)});var Ua=[...new Set(Kp)];function Cye(t,e){let r=t.textDocument.uri,n=r.substring(r.lastIndexOf(".")+1),i=t.position,s=/(?:[^"{'\s])+(?=>\s|\b)/g,o,a="",u=e.get(r),l=u?.getText({start:{line:i.line,character:0},end:{line:i.line,character:i.character}}),c=l??"";c=c.trim();let f=u?.getText({start:{line:0,character:0},end:{line:i.line,character:i.character}});if(c.match(s)===null)return{isInstance:!1,lastKey:"",triggerKey:"",isStart:!1,language:n};for(;(o=s.exec(c))!==null;)a=o[0];let d=c.charAt(c.length-1),p=i.character==1||c.charAt(c.length-2)===" "||c.charAt(c.length-2)===""||c.charAt(c.length-2)==='"'||c.charAt(c.length-2)==="'"||c.charAt(c.length-2)==="{";return c.charAt(c.length-2)===":"&&c.charAt(c.length-1)===":"&&(d="::",p=!1),{isInstance:!0,lastKey:a,triggerKey:d,isStart:p,language:n}}function Dye(t,e,r,n,i=new _r){let s=[],o=t.split(":").length,a=t.split(":")[0];a=a.trim();let u=t.split(":|@").length,l=t.split(":|@")[u-1],c=/[^\\s"]+@+([^\\s:"@]+)/g,f=/[^\\s"]+::+([^\\s:"@]+)/g,d=!1,p=!(c.exec(t)===null&&e!=="@"),h=!(f.exec(t)===null&&e!=="::"),y=[],v=Object.keys(i.config.selectors??{}).map(b=>b.endsWith("(")?`${b})`:b).filter(b=>b.match(/:[^:]+/)&&!vE.find(w=>(typeof w=="string"?w:w.label)===`:${b}`)).map(b=>(b=b.substring(1),b.endsWith(")")?{label:b,kind:yr.CompletionItemKind.Function}:b)),g=Object.keys(i.config.selectors??{}).map(b=>b.endsWith("(")?`${b})`:b).filter(b=>b.match(/::[^:]+/)&&!L3.find(w=>(typeof w=="string"?w:w.label)===`::${b}`)).map(b=>(b=b.substring(2),b.endsWith(")")?{label:b,kind:yr.CompletionItemKind.Function}:b));return Vp.forEach(b=>{if(b.key.includes(a)){y=y.concat(b.values.filter(_=>!y.find(S=>(typeof S=="string"?S:S.label)===(typeof _=="string"?_:_.label))));let w=(0,Eye.pascalCase)(b.key[0]);if(i.config.values?.[w]){let _=Object.keys(i.config.values[w]);y=y.concat(_.filter(S=>!y.find(q=>(typeof q=="string"?q:q.label)===S)))}if(b.colorful){d=!0;let _=mye.find(S=>S.type==="color")?.values.filter(S=>!y.find(q=>(typeof q=="string"?q:q.label)===(typeof S=="string"?S:S.label)));_&&(y=y.concat(_))}}}),r==!0&&e!=="@"&&e!==":"?(s=s.concat(an(Ua,yr.CompletionItemKind.Property,":")),s=s.concat(an(Object.keys(i.config.semantics??{}),yr.CompletionItemKind.Property)),n=="tsx"||n=="vue"||n=="jsx"?Ha(a,s):s):r==!0?[]:!Ua.includes(a)&&e!==":"?(s=s.concat(an(Ua,yr.CompletionItemKind.Property,":")),s=s.concat(an(Object.keys(i.config.semantics??{}),yr.CompletionItemKind.Property)),n=="tsx"||n=="vue"||n=="jsx"?Ha(a,s):s):Ua.includes(a)&&a!==null&&h===!0?(s=s.concat(an(L3,yr.CompletionItemKind.Property)),s=s.concat(an(g,yr.CompletionItemKind.Property)),(n=="tsx"||n=="vue"||n=="jsx")&&e!=="@"&&e!==":"?Ha(l,s):s):Ua.includes(a)&&a!==null&&p===!0?(s=s.concat(an(pye,yr.CompletionItemKind.Property)),s=s.concat(an(Object.keys(i.config.breakpoints??{}),yr.CompletionItemKind.Property)),(n=="tsx"||n=="vue"||n=="jsx")&&e!=="@"&&e!==":"?Ha("@"+l,s):s):Object.keys(i.config.semantics??{}).includes(a)&&!Vp.find(b=>b.key.includes(a))?(s=s.concat(an(vE,yr.CompletionItemKind.Property)),s=s.concat(an(v,yr.CompletionItemKind.Property)),(n=="tsx"||n=="vue"||n=="jsx")&&e!=="@"&&e!==":"?Ha(l,s):s):Ua.includes(a)&&o<=2&&!(o==2&&e===":")?(s=s.concat(an(y,yr.CompletionItemKind.Enum)),s=s.concat(an(gye,yr.CompletionItemKind.Enum).map(b=>(b.sortText="z"+b,b))),d&&(s=s.concat(Z1t(i))),(n=="tsx"||n=="vue"||n=="jsx")&&e!=="@"&&e!==":"?Ha(l,s):s):((Ua.includes(a)&&(o==2&&e===":"||o>=3)||Vp.find(b=>b.values.includes(a)))&&(s=s.concat(an(vE,yr.CompletionItemKind.Function)),s=s.concat(an(v,yr.CompletionItemKind.Property))),(n=="tsx"||n=="vue"||n=="jsx")&&e!=="@"&&e!==":"?Ha(l,s):s)}function an(t,e,r=""){let n=[];return t.forEach(i=>{typeof i=="string"?n.push({label:i+r,kind:e,insertText:i+r,insertTextMode:2,command:r===":"?{title:"triggerSuggest",command:"editor.action.triggerSuggest"}:void 0}):n.push({insertText:i.label+r,insertTextMode:2,command:r===":"?{title:"triggerSuggest",command:"editor.action.triggerSuggest"}:void 0,...i})}),n}function Z1t(t=new _r){let e=[];return Object.keys(t.colorThemesMap).forEach(r=>{let n=t.colorThemesMap[r];e.push({label:r,documentation:Object.values(n)[0],kind:yr.CompletionItemKind.Color,sortText:`${r}`})}),e}function Ha(t,e){let r=[];if(t.split("-").length-1<=0)return e;{let n=t.split("-")[0]+"-";return e.map(i=>{i.label.includes(n)&&r.push({label:i.label,kind:i.kind,insertText:i.insertText?.substring(n.length),insertTextMode:i.insertTextMode,command:i.command})}),r}}var qbe=Kt(Obe());function Rbe(t,e,r=new _r){let n=_5(t.split(" "),r.config);return!n||n==" "?null:{contents:{language:"css",value:(0,qbe.css_beautify)(n,{newline_between_rules:!0,end_with_newline:!0})},range:e}}var Ya=Kt(Up());var AE=/[^\s:]+:\w*\(?((?<!\\)["'`])((?:\\\1|(?:(?!\1))[\S\s])*)((?<!\\)\1)\)?|[^\s"'`]+/g;function PE(t,e,r,n){let i={IsMatch:!1,PositionIndex:0,classStartIndex:0,classEndIndex:0,classString:"",instance:{range:{start:Ya.Position.create(0,0),end:Ya.Position.create(0,0)},instanceString:""},instanceList:[]},s=r.get(t),o=s?.getText()??"",a=s?.offsetAt(e)??0,u=s?.offsetAt({line:e.line-100,character:0})??0,l=s?.offsetAt({line:e.line+100,character:0})??void 0;o=o.substring(u,l);let c,f;return i.PositionIndex=a,n.forEach(d=>{let p=new RegExp(d,"g");for(;(f=p.exec(o))!==null;)if(f.index<=a&&f.index+f[0].length-1>=a){for(i.IsMatch=!0,i.PositionIndex=a,i.classStartIndex=f.index,i.classEndIndex=f.index+f[0].length-1,i.classString=f[0];(c=AE.exec(f[2]))!==null;)i.instanceList.push({range:{start:s?.positionAt(f.index+f[1].length+c.index)??Ya.Position.create(0,0),end:s?.positionAt(f.index+f[1].length+c.index+c[0].length)??Ya.Position.create(0,0)},instanceString:c[0]}),f.index+f[1].length+c.index<=a&&f.index+f[1].length+c.index+c[0].length>=a&&(i.instance={range:{start:s?.positionAt(f.index+f[1].length+c.index)??Ya.Position.create(0,0),end:s?.positionAt(f.index+f[1].length+c.index+c[0].length)??Ya.Position.create(0,0)},instanceString:c[0]});return i}else if(f.index>a)break}),i}var wr=Kt(Up());function TE(t){let e=t.replace("#","").match(/.{1,2}/g);return{red:parseInt(e?.[0]??"0",16),green:parseInt(e?.[1]??"0",16),blue:parseInt(e?.[2]??"0",16),alpha:parseInt(e?.[3]??"FF",16)}}async function Pbe(t,e){let r=[],n=t.textDocument.uri,i=e.get(n),s=i?.getText()??"";if(typeof i==null)return[];let o,a=/(:\s*)'#([0-9a-fA-F]{6,8})'/g,u,l=new RegExp("(?<=colors:\\s*{\\s*.*)([^}]*)}","g");for(;(o=l.exec(s))!==null;)for(;u=a.exec(o[0]);){let c={range:{start:i?.positionAt(o.index+u.index+u[1].length)??wr.Position.create(0,0),end:i?.positionAt(o.index+u.index+u[0].length-1)??wr.Position.create(0,0)},color:ME(TE(u[2]))};r.push(c)}return r}async function Tbe(t,e,r,n=new _r){let i=[],s=t.textDocument.uri,o=e.get(s),a=o?.getText()??"";if(typeof o==null)return[];let u=Object.keys(n.colorThemesMap),l;for(;(l=AE.exec(a))!==null;){let f=l.index,d=n.themeNames.find(q=>l?.[0]?.endsWith(`@${q}`))??"",p=/(?<=[:;|])(?:#?\w+(?:-[\d]{1,2})?(?:\/.?[\d]*)?(?:\([^\s)]+\))?)/g,h=/rgba?\(([\d.]+),([\d.]+),([\d.]+)(?:,([\d.]+))?\)/g,y=/hsla?\(([\d.]+),([\d.]+)%,([\d.]+)%(?:,([\d.]+))?\)/g,v=/#([0-9a-fA-F]{6,8})/g,g,b,w,_,S;for(;(g=p.exec(l[0]))!==null;){if(b=h.exec(g[0])){let q={range:{start:o?.positionAt(f+g.index)??wr.Position.create(0,0),end:o?.positionAt(f+g.index+g[0].length)??wr.Position.create(0,0)},color:ME({red:Number(b[1]),green:Number(b[2]),blue:Number(b[3]),alpha:b[4]==null?1:Number(b[4])})};i.push(q)}else if(b=y.exec(g[0])){let q={range:{start:o?.positionAt(f+g.index)??wr.Position.create(0,0),end:o?.positionAt(f+g.index+g[0].length)??wr.Position.create(0,0)},color:ME(ikt(Number(b[1]),Number(b[2]),Number(b[3]),b[4]==null?1:Number(b[4])))};i.push(q)}else if(b=v.exec(g[0])){let q={range:{start:o?.positionAt(f+g.index)??wr.Position.create(0,0),end:o?.positionAt(f+g.index+g[0].length)??wr.Position.create(0,0)},color:ME(TE(b[1]))};i.push(q)}if(S=1,g[0].split("/").length==2&&(S=Number("0"+g[0].split("/")[1])),g[0].split("-").length==1){if(w=g[0].split("/")[0],w=w.endsWith("_")?w.replace("_",""):w,u.find(q=>q==w)){let q={range:{start:o?.positionAt(f+g.index)??wr.Position.create(0,0),end:o?.positionAt(f+g.index+g[0].length)??wr.Position.create(0,0)},color:Abe(w,S,d,n)};i.push(q)}}else if(g[0].split("-").length==2){if(w=g[0],u.find(q=>q==w)){let q={range:{start:o?.positionAt(f+g.index)??wr.Position.create(0,0),end:o?.positionAt(f+g.index+g[0].length)??wr.Position.create(0,0)},color:Abe(w,S,d,n)};i.push(q)}}else if(g[0].split("-").length!=2)continue}}let c=new Set;return i=i.filter(f=>c.has(o?.offsetAt(f.range.start))?!1:(c.add(o?.offsetAt(f.range.start)),!0)),i}function Abe(t,e=1,r="",n=new _r){try{let i=n.colorThemesMap[t],s=TE(i[r]??i[""]??Object.values(i)[0]);return{red:s.red/255,green:s.green/255,blue:s.blue/255,alpha:e}}catch{return{red:0,green:0,blue:0,alpha:1}}}function un(t){let e=t.toString(16);return e.length!==2?"0"+e:e}function nkt(t){let e=t.red,r=t.green,n=t.blue,i=t.alpha,s=Math.max(e,r,n),o=Math.min(e,r,n),a=0,u=0,l=(o+s)/2,c=s-o;if(c>0){switch(u=Math.min(l<=.5?c/(2*l):c/(2-2*l),1),s){case e:a=(r-n)/c+(r<n?6:0);break;case r:a=(n-e)/c+2;break;case n:a=(e-r)/c+4;break}a*=60,a=Math.round(a)}return{h:a,s:u,l,a:i}}function ikt(t,e,r,n){r/=100;let i=a=>(a+t/30)%12,s=e/100*Math.min(r,1-r),o=a=>r-s*Math.max(-1,Math.min(i(a)-3,Math.min(9-i(a),1)));return{red:255*o(0),green:255*o(8),blue:255*o(4),alpha:n??1}}function ME(t){return{red:t.red/255,green:t.green/255,blue:t.blue/255,alpha:t.alpha}}function Mbe(t,e=!1){let r=[],n=t.color,i=t.range,s=Math.round(n.red*255),o=Math.round(n.green*255),a=Math.round(n.blue*255),u;if(e)return n.alpha===1?u=`'#${un(s)}${un(o)}${un(a)}`:u=`'#${un(s)}${un(o)}${un(a)}${un(Math.round(n.alpha*255))}`,r.push({label:u,textEdit:wr.TextEdit.replace(i,u)}),r;n.alpha===1?u=`rgb(${s},${o},${a})`:u=`rgba(${s},${o},${a},${n.alpha})`,r.push({label:u,textEdit:wr.TextEdit.replace(i,u)}),n.alpha===1?u=`#${un(s)}${un(o)}${un(a)}`:u=`#${un(s)}${un(o)}${un(a)}${un(Math.round(n.alpha*255))}`,r.push({label:u,textEdit:wr.TextEdit.replace(i,u)});let l=nkt(n);return l.a===1?u=`hsl(${l.h},${Math.round(l.s*100)}%,${Math.round(l.l*100)}%)`:u=`hsla(${l.h},${Math.round(l.s*100)}%,${Math.round(l.l*100)}%,${l.a})`,r.push({label:u,textEdit:wr.TextEdit.replace(i,u)}),r}var ln=(0,Xi.createConnection)(Xi.ProposedFeatures.all),Ji=new Xi.TextDocuments(Nbe.TextDocument),FE=!1,Lbe=!1,skt=!1,Qi,oh,jbe={languages:["html","php","javascript","typescript","javascriptreact","typescriptreact","vue","svelte","rust"],classNameMatches:["(class(?:Name)?\\s?=\\s?)((?:\"[^\"]+\")|(?:'[^']+')|(?:`[^`]+`))","(class(?:Name)?={)([^}]*)}","(?:(\\$|(?:element\\.[^\\s.`]+)`)([^`]+)`)","(classList.(?:add|remove|replace|replace|toggle)\\()([^)]*)\\)"],files:{exclude:["**/.git/**","**/node_modules/**","**/.hg/**"]},suggestions:!0,PreviewOnHovers:!0,PreviewColor:!0},$be=jbe,LE=new Map;ln.onDidChangeConfiguration(t=>{FE?LE.clear():$be=t.settings.languageServerExample||jbe,Ji.all().forEach(Bbe)});async function okt(t){if(!FE)return Promise.resolve($be);let e=LE.get(t);e||(e=ln.workspace.getConfiguration({scopeUri:t,section:"masterCSS"}),LE.set(t,e)),ln.workspace.getWorkspaceFolders();let r=await ln.workspace.getWorkspaceFolders(),n;if(r?.length===1?n=r[0]:n=r?.find(i=>t.includes(i.uri)),n?.uri)try{try{let s=(await new pge({cwd:(0,Fbe.default)(n.uri.replace("%3A",":"))})).readConfig();console.log(s),oh=new _r(s)}catch{oh=new _r}}catch{}return e}Ji.onDidClose(t=>{LE.delete(t.document.uri)});Ji.onDidOpen(t=>{Bbe(t.document)});async function Bbe(t){Qi=await okt(t.uri)}ln.onInitialize(t=>{let e=t.capabilities;FE=!!(e.workspace&&e.workspace.configuration),Lbe=!!(e.workspace&&e.workspace.workspaceFolders),skt=!!(e.textDocument&&e.textDocument.publishDiagnostics&&e.textDocument.publishDiagnostics.relatedInformation);let r={capabilities:{textDocumentSync:Xi.TextDocumentSyncKind.Incremental,completionProvider:{resolveProvider:!0,workDoneProgress:!1,triggerCharacters:[":","@","~"]},colorProvider:{},hoverProvider:!0}};return Lbe&&(r.capabilities.workspace={workspaceFolders:{supported:!0}}),r});ln.onInitialized(()=>{FE&&ln.client.register(Xi.DidChangeConfigurationNotification.type,void 0)});ln.onCompletion(t=>{if(Qi.suggestions==!0&&IE(t.textDocument.uri)){let e=PE(t.textDocument.uri,t.position,Ji,Qi.classNameMatches).IsMatch,r=Cye(t,Ji);if(r.isInstance==!0&&e==!0)return Dye(r.lastKey,r.triggerKey,r.isStart,r.language,oh)}return[]});ln.onCompletionResolve(t=>t);ln.onDocumentColor(async t=>{if(Qi==null)return[];if(Qi.PreviewColor==!0&&IE(t.textDocument.uri)){let e=await Tbe(t,Ji,Qi.classNameMatches,oh);return e=e.concat(await Pbe(t,Ji)),e}return[]});ln.onColorPresentation(t=>{if(Qi.PreviewColor==!0&&IE(t.textDocument.uri)){let e=["(?<=colors:\\s*{\\s*.*)([^}]*)}"],r=PE(t.textDocument.uri,t.range.start,Ji,e);return Mbe(t,r.IsMatch)}return[]});ln.onHover(t=>{if(Qi.PreviewOnHovers==!0&&IE(t.textDocument.uri)){let e=PE(t.textDocument.uri,t.position,Ji,Qi.classNameMatches);if(e.IsMatch)return Rbe(e.instance.instanceString,e.instance.range,oh)}return null});function IE(t){for(let e of Qi.files.exclude)if((0,Ibe.default)(t,e))return!1;return!0}Ji.listen(ln);ln.listen();
|
|
484
|
+
`).forEach(i=>{n[i.split(" ").map(s=>s.replace(/^\((.+)\)$/,`${Pe.cyan("$1")}`).replace(/\./g,`${Pe.dim(".")}`).replace(/^at$/,o=>Pe.dim(o))).join(" ")]=null}),{message:e.trim().replace(/Error: /g,""),stackTree:n}}var fge=(t,...e)=>{if(t instanceof Error){let{message:r,stackTree:n}=X0t(t);return console.log(""),console.log(Pe.bgRed.bold.white(" \u{1D5EB} ERROR ")+" "+Pe.bold.red(r)),console.log(lge(n,{spacerNeighbour:Pe.redBright.dim("\u2502\u2000\u2000"),keyNoNeighbour:Pe.redBright.dim("\u2514\u2500\u2000"),keyNeighbour:Pe.redBright.dim("\u251C\u2500 "),separator:Pe.redBright.dim(":\u2000")})),console.log(""),r}else{let r=En(t,e);return console.log(r),r}};Object.assign(fge,{a:ege,add:ege,d:BF,del:BF,delete:BF,o:rge,valid:rge,x:nge,invalid:nge,i:ige,info:ige,e:tge,error:tge,success:V0t,fail:Q0t,warn:G0t,pass:K0t,conflict:U0t,ok:H0t,tree:Y0t,paint:Ui});var kp=fge,pge=class extends DB{css;extractions=new Set;get resolvedModuleId(){return"\0"+this.options.module}get moduleHMREvent(){return`HMR:${this.options.module}`}constructor(t){super(c0t,t);let e=this.readConfig(null);this.options=rs(this.options,e?.compilerOptions,t),console.log(""),this.css=e?.css??new ar(e?.config)}async refresh(){return this.extractions.clear(),console.log(""),this.css=new ar(this.readConfig()),await this.compile(),this}async compile(){if(this.options.classes?.fixed?.length)for(let t of this.options.classes.fixed)this.css.insert(t);return await Promise.all(this.sources.map(async t=>{let e=g0t.readFileSync(Ak.default.resolve(this.options.cwd,t),{encoding:"utf-8"}).toString();await this.insert(t,e)})),this}extract(t,e){if(!t||!e||!this.checkSourcePath(t))return[];let r=[];for(let n of f0t({content:e,name:t},this.css))this.extractions.has(n)||(this.extractions.add(n),r.push(n));return r}async insert(t,e){let r=this.extract(t,e);if(!r.length)return!1;let n=Uhe.now(),i=[];await Promise.all(r.map(async o=>{let a=await this.createRules(o);a.length&&(this.css.insertRules(a),i.push(o))}));let s=Math.round((Uhe.now()-n)*100)/100;if(r.length&&(console.log(""),kp`**${Ak.default.relative(this.options.cwd,t)}** ..${Ak.default.resolve(this.options.cwd,t)}..`,kp`[extract] ${r.length} potential`),this.css.rules.length){let o=i.filter(a=>!r.includes(a));o.length&&kp`[exclude] ${o.length} unknow ${o}`,kp`[compile] +${i.length}+ valid inserted ${Pe.gray("in")} ${s}ms ${i}`,kp`[virtual] ${this.css.rules.length} total ${Pe.gray("in")} ${this.options.module}`}return this.options.classes?.ignored?.length&&(r=r.filter(o=>{for(let a of this.options.classes.ignored)if(typeof a=="string"){if(a===o)return!1}else if(a.test(o))return!1;return!0})),!0}async createRules(t){return(await Promise.all(this.css.create(t).map(async e=>(await dge.default.lint({code:e.text,cache:!1,config:{rules:{"color-no-invalid-hex":!0,"named-grid-areas-no-invalid":!0,"at-rule-no-unknown":!0,"function-no-unknown":!0,"media-feature-name-no-unknown":!0,"property-no-unknown":!0,"selector-pseudo-class-no-unknown":!0,"selector-pseudo-element-no-unknown":!0,"selector-type-no-unknown":!0,"unit-no-unknown":!0}}})).errored?null:e))).filter(e=>e)}get sources(){let{include:t,exclude:e,sources:r}=this.options,n=UF.default.sync(t,{cwd:this.options.cwd,ignore:e});return r?.length&&n.push(...UF.default.sync(r,{cwd:this.options.cwd})),n}checkSourcePath(t){let{include:e,exclude:r,sources:n}=this.options;for(let i of n)if((0,Pk.default)(t,i))return!0;for(let i of e)if(!(0,Pk.default)(t,i))return!1;for(let i of r)if((0,Pk.default)(t,i))return!1;return!0}get config(){return this.css.config}};var Xi=Kt(Up());var Fbe=Kt(Yme()),Ibe=Kt(fye()),Nbe=Kt(dye());var J=Kt(D3()),vE=[{label:"lang()",kind:J.CompletionItemKind.Function},{label:"has()",kind:J.CompletionItemKind.Function},"any-link","link","visited","target","scope","hover","active","focus","focus-visible","focus-within","autofill","enabled","disabled","read-only","read-write","placeholder-shown","default","checked","indeterminate","valid","invalid","in-range","out-of-range","required","optional","root","empty",{label:"nth-child()",kind:J.CompletionItemKind.Function},{label:"nth-last-child()",kind:J.CompletionItemKind.Function},"first-child","last-child","only-child",{label:"nth-of-type()",kind:J.CompletionItemKind.Function},{label:"nth-last-of-type()",kind:J.CompletionItemKind.Function},"first-of-type","last-of-type","only-of-type","defined","first","fullscreen",{label:"host()",kind:J.CompletionItemKind.Function},{label:"host-context()",kind:J.CompletionItemKind.Function},{label:"is()",kind:J.CompletionItemKind.Function},"left",{label:"not()",kind:J.CompletionItemKind.Function},"right",{label:"where()",kind:J.CompletionItemKind.Function}],L3=["after","before","backdrop","cue","first-letter","first-line","file-selector-button","marker",{label:"part()",kind:J.CompletionItemKind.Function},"placeholder","selection",{label:"slotted()",kind:J.CompletionItemKind.Function},"resizer","search-cancel-button","search-results-button"],pye=["all","print","screen","portrait","landscape","motion","reduced-motion",{label:"media()",kind:J.CompletionItemKind.Function}],hye=["ext","gap","ont","ovf","quotes","bottom","center","left","middle","top","right","px","py","pt","pb","pl","pr","mx","my","mt","mb","ml","mr"],gye=[{label:"var()",kind:J.CompletionItemKind.Function},{label:"calc()",kind:J.CompletionItemKind.Function},"inherit","initial","unset"],Vp=[{key:["color","fg","foreground"],colorful:!0,values:[]},{key:["font-color","font","f"],colorful:!0,values:[]},{key:["accent-color","accent"],colorful:!0,values:[]},{key:["appearance"],colorful:!1,values:["none","auto","menulist-button","textfield","button","searchfield","textarea","push-button","slider-horizontal","checkbox","radio","square-button","menulist","listbox","meter","progress-bar"]},{key:["caret-color","caret"],colorful:!0,values:["transparent"]},{key:["cursor"],colorful:!1,values:["auto","alias","all-scroll","cell","col-resize","context-menu","copy","crosshair","default","e-resize","ew-resize","grab","grabbing","help","move","n-resize","ne-resize","nesw-resize","no-drop","none","not-allowed","ns-resize","nw-resize","nwse-resize","pointer","progress","row-resize","s-resize","se-resize","sw-resize","text","vertical-text","w-resize","wait","zoom-in","zoom-out"]},{key:["box-decoration-break","box"],colorful:!1,values:["slice","clone"]},{key:["break-after","break-before"],colorful:!1,values:["avoid-column","column","left","page","recto","right","recto","verso","auto","avoid","avoid-column","avoid-page","revert"]},{key:["break-inside"],colorful:!1,values:["auto","avoid","avoid-column","avoid-page","revert"]},{key:["clear"],colorful:!1,values:["both","left","none","right"]},{key:["columns","cols"],colorful:!1,values:[]},{key:["column-span","col-span"],colorful:!1,values:["all","none"]},{key:["direction"],colorful:!1,values:["ltr","rtl"]},{key:["display","d"],colorful:!1,values:["hidden","hide","flex","grid","inline","none","block","table","contents","inline-block","inline-flex","inline-grid","inline-table","table-cell","table-caption","flow-root","list-item","table-row","table-column","table-row-group","table-column-group","table-header-group","table-footer-group"]},{key:["float"],colorful:!1,values:["left","none","right"]},{key:["inset"],colorful:!1,values:[]},{key:["isolation"],colorful:!1,values:["auto","isolate"]},{key:["overflow","overflow-x","overflow-y"],colorful:!1,values:["auto","hidden","overlay","scroll","visible","clip"]},{key:["position"],colorful:!1,values:["absolute","relative","static","fixed","sticky"]},{key:["z-index","z"],colorful:!1,values:[]},{key:["flex"],colorful:!1,values:[]},{key:["flex-basis"],colorful:!1,values:["100%","fit-content","max-content","min-content"]},{key:["flex-direction","flex"],colorful:!1,values:["column","row","column-reverse","row-reverse"]},{key:["flex-grow","flex-shrink"],colorful:!1,values:[]},{key:["flex-wrap","flex"],colorful:!1,values:["wrap","wrap-reverse","nowrap"]},{key:["grid"],colorful:!1,values:[]},{key:["grid-auto-columns","grid-auto-cols"],colorful:!1,values:["auto","min-content","max-content",{label:"minmax(,)",kind:J.CompletionItemKind.Function}]},{key:["grid-auto-flow"],colorful:!1,values:["row","column","dense","row|dense","column|dense"]},{key:["grid-auto-rows"],colorful:!1,values:["auto","min-content","max-content",{label:"minmax(,)",kind:J.CompletionItemKind.Function}]},{key:["grid-column","grid-col","grid-column-span","grid-col-span","grid-column-start","grid-col-start","grid-column-end","grid-col-end"],colorful:!1,values:[]},{key:["grid-columns","grid-cols"],colorful:!1,values:[]},{key:["grid-row","grid-row-span","grid-row-start","grid-row-end"],colorful:!1,values:[]},{key:["grid-rows"],colorful:!1,values:[]},{key:["grid-template"],colorful:!1,values:["none"]},{key:["grid-template-areas","grid-area"],colorful:!1,values:["none"]},{key:["grid-template-columns","grid-template-cols"],colorful:!1,values:["none","min-content","max-content",{label:"repeat(,)",kind:J.CompletionItemKind.Function},{label:"fit-content()",kind:J.CompletionItemKind.Function},{label:"minmax()",kind:J.CompletionItemKind.Function}]},{key:["grid-template-rows"],colorful:!1,values:["none","min-content","max-content",{label:"repeat(,)",kind:J.CompletionItemKind.Function},{label:"fit-content()",kind:J.CompletionItemKind.Function},{label:"minmax()",kind:J.CompletionItemKind.Function}]},{key:["align-content","ac"],colorful:!1,values:["space-around","space-between","space-evenly","normal","baseline","center","stretch","start","end","flex-start","flex-end"]},{key:["align-items","ai"],colorful:!1,values:["self-start","self-end","normal","baseline","center","stretch","start","end","flex-start","flex-end"]},{key:["align-self","as"],colorful:!1,values:["auto","self-start","self-end","normal","baseline","center","stretch","start","end","flex-start","flex-end"]},{key:["justify-content","jc"],colorful:!1,values:["space-around","space-between","space-evenly","normal","left","center","right","stretch","start","end","flex-start","flex-end"]},{key:["justify-items","ji"],colorful:!1,values:["self-start","self-end","normal","left","center","right","stretch","start","end","flex-start","flex-end"]},{key:["justify-self","js"],colorful:!1,values:["auto","self-start","self-end","normal","left","center","right","stretch","start","end","flex-start","flex-end"]},{key:["order","o"],colorful:!1,values:[]},{key:["place-content"],colorful:!1,values:["space-around","space-between","space-evenly","normal","baseline","center","stretch","start","end","flex-start","flex-end"]},{key:["place-items"],colorful:!1,values:["self-start","self-end","normal","baseline","center","stretch","start","end","flex-start","flex-end"]},{key:["place-self"],colorful:!1,values:["auto","self-start","self-end","normal","baseline","center","stretch","start","end","flex-start","flex-end"]},{key:["border-collapse","border"],colorful:!1,values:["collapse","separate"]},{key:["table-layout"],colorful:!1,values:["auto","fixed"]},{key:["object-fit"],colorful:!1,values:["none"]},{key:["object-fit","object","obj"],colorful:!1,values:["contain","cover","fill","scale-down"]},{key:["object-position","object","obj"],colorful:!1,values:["top","bottom","left","right","center"]},{key:["font","f"],colorful:!1,values:["caption","icon","menu","message-box","small-caption","status-bar"]},{key:["font-color","font","f"],colorful:!0,values:[]},{key:["font-family","font","f"],colorful:!1,values:["'CourierNew',Courier,monospace","'FranklinGothicMedium','ArialNarrow',Arial,sans-serif","'GillSans','GillSansMT',Calibri,'TrebuchetMS',sans-serif","'LucidaSans','LucidaSansRegular','LucidaGrande','LucidaSansUnicode',Geneva,Verdana,sans-serif","'SegoeUI',Tahoma,Geneva,Verdana,sans-serif","'TimesNewRoman',Times,serif","'TrebuchetMS','LucidaSansUnicode','LucidaGrande','LucidaSans',Arial,sans-serif","Arial,Helvetica,sans-serif","Cambria,Cochin,Georgia,Times,'TimesNewRoman',serif","Georgia,'TimesNewRoman',Times,serif","Impact,Haettenschweiler,'ArialNarrowBold',sans-serif","Verdana,Geneva,Tahoma,sans-serif","cursive","fantasy","monospace","sans-serif","serif","-apple-system,BlinkMacSystemFont,'SegoeUI',Roboto,Oxygen,Ubuntu,Cantarell,'OpenSans','HelveticaNeue',sans-serif"]},{key:["font-size","font","f"],colorful:!1,values:[{label:"8",kind:J.CompletionItemKind.Unit,sortText:"!0"},{label:"9",kind:J.CompletionItemKind.Unit,sortText:"!1"},{label:"10",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"11",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"12",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"14",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"16",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"18",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"20",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"22",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"24",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"26",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"28",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"36",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"48",kind:J.CompletionItemKind.Unit,sortText:"!2"},{label:"72",kind:J.CompletionItemKind.Unit,sortText:"!2"}]},{key:["font-style"],colorful:!1,values:["oblique|deg"]},{key:["font-style","font","f"],colorful:!1,values:["normal","italic","oblique"]},{key:["font-variant-numeric","font","f"],colorful:!1,values:["normal","ordinal","slashed-zero","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions"]},{key:["font-weight","font","f"],colorful:!1,values:["100","200","300","400","500","600","700","800","900"]},{key:["font","f"],colorful:!1,values:["antialiased","subpixel-antialiased"]},{key:["text-align","text","t"],colorful:!1,values:["start","end","left","right","center","justify"]},{key:["text-decoration","text","t"],colorful:!1,values:["underline","line-through","overline"]},{key:["text-decoration-color","text-decoration"],colorful:!0,values:[]},{key:["text-decoration-line","text","t"],colorful:!1,values:["none","underline","overline","line-through"]},{key:["text-decoration-style","text","t"],colorful:!1,values:["dashed","dotted","double","solid","wavy"]},{key:["text-decoration-thickness"],colorful:!1,values:[]},{key:["text-fill-color","text-fill"],colorful:!0,values:[]},{key:["text-indent"],colorful:!1,values:[]},{key:["text-orientation","text","t"],colorful:!1,values:["mixed","sideways","sideways-right","upright","use-glyph-orientation"]},{key:["text-overflow","text","t"],colorful:!1,values:["clip","ellipsis"]},{key:["text-shadow"],colorful:!1,values:[]},{key:["text","t"],colorful:!1,values:[]},{key:["text-stroke"],colorful:!1,values:[]},{key:["text-stroke-color","text-stroke"],colorful:!0,values:[]},{key:["text-stroke-width","text-stroke"],colorful:!1,values:[]},{key:["text-transform"],colorful:!1,values:["none"]},{key:["text-transform","text","t"],colorful:!1,values:["capitalize","lowercase","uppercase"]},{key:["text-underline-offset"],colorful:!1,values:[]},{key:["text-rendering"],colorful:!1,values:["auto"]},{key:["text-rendering","t"],colorful:!1,values:["optimizeSpeed","optimizeLegibility","geometricPrecision"]},{key:["list-style"],colorful:!1,values:[]},{key:["list-style-image","list-style"],colorful:!1,values:[{label:"url()",kind:J.CompletionItemKind.Function},{label:"linear-gradient()",kind:J.CompletionItemKind.Function},{label:"radial-gradient()",kind:J.CompletionItemKind.Function},{label:"repeating-linear-gradient()",kind:J.CompletionItemKind.Function},{label:"repeating-radial-gradient()",kind:J.CompletionItemKind.Function},{label:"conic-gradient()",kind:J.CompletionItemKind.Function}]},{key:["list-style-position","list-style"],colorful:!1,values:["inside","outside"]},{key:["list-style-type"],colorful:!1,values:["circle","square","decimal-leading-zero","lower-roman","lower-greek","lower-alpha","lower-latin","upper-roman","upper-alpha","upper-latin","arabic-indic","armenian","bengali","cambodian/khmer","cjk-earthly-branch","cjk-heavenly-stem","devanagari","georgian","gurmukhi","kannada","lao","malayalam","myanmar","oriya","telugu","thai"]},{key:["list-style-type","list-style"],colorful:!1,values:["none","disc","decimal"]},{key:["letter-spacing","ls"],colorful:!1,values:[]},{key:["lines"],colorful:!1,values:[]},{key:["line-height","lh"],colorful:!1,values:[]},{key:["content"],colorful:!1,values:["normal","none","no-open-quote","no-close-quote",{label:"url()",kind:J.CompletionItemKind.Function},{label:"linear-gradient()",kind:J.CompletionItemKind.Function},{label:"image-set()",kind:J.CompletionItemKind.Function},{label:"counter()",kind:J.CompletionItemKind.Function},{label:"attr()",kind:J.CompletionItemKind.Function}]},{key:["vertical-align","v"],colorful:!1,values:["baseline","bottom","middle","sub","super","text-bottom","text-top","top"]},{key:["white-space"],colorful:!1,values:["break-spaces","normal","nowrap","pre","pre-line","pre-wrap"]},{key:["word-break"],colorful:!1,values:["normal","break-all","keep-all"]},{key:["word-spacing"],colorful:!1,values:[]},{key:["writing-mode"],colorful:!1,values:["horizontal-tb","vertical-rl","vertical-lr","lr","lr-tb","rl","rl-tb","tb","tb-rl"]},{key:["background","bg"],colorful:!1,values:[]},{key:["backdrop-filter","bd"],colorful:!1,values:["none",{label:"url()",kind:J.CompletionItemKind.Function},{label:"blur()",kind:J.CompletionItemKind.Function},{label:"brightness()",kind:J.CompletionItemKind.Function},{label:"contrast()",kind:J.CompletionItemKind.Function},{label:"grayscale()",kind:J.CompletionItemKind.Function},{label:"hue-rotate(degree)",kind:J.CompletionItemKind.Function},{label:"invert()",kind:J.CompletionItemKind.Function},{label:"sepia()",kind:J.CompletionItemKind.Function},{label:"saturate()",kind:J.CompletionItemKind.Function},{label:"opacity()",kind:J.CompletionItemKind.Function},{label:"drop-shadow()",kind:J.CompletionItemKind.Function}]},{key:["background-attachment","background","bg"],colorful:!1,values:["fixed","local","scroll"]},{key:["background-blend-mode"],colorful:!1,values:["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},{key:["background-clip","bg"],colorful:!1,values:["content-box","border-box","padding-box"]},{key:["background-color","background","bg"],colorful:!0,values:["transparent"]},{key:["background-image","background","bg"],colorful:!1,values:[{label:"url()",kind:J.CompletionItemKind.Function},{label:"linear-gradient()",kind:J.CompletionItemKind.Function},{label:"radial-gradient()",kind:J.CompletionItemKind.Function},{label:"repeating-linear-gradient()",kind:J.CompletionItemKind.Function},{label:"repeating-radial-gradient()",kind:J.CompletionItemKind.Function},{label:"conic-gradient()",kind:J.CompletionItemKind.Function}]},{key:["background-origin","bg"],colorful:!1,values:["content-box","border-box","padding-box"]},{key:["background-position","bg"],colorful:!1,values:["top","bottom","left","right","center"]},{key:["background-repeat","bg"],colorful:!1,values:["repeat","no-repeat","repeat-x","repeat-y"]},{key:["background-size","background","bg"],colorful:!1,values:["auto","cover","contain"]},{key:["mix-blend-mode","blend"],colorful:!1,values:["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},{key:["border","border-top","border-bottom","border-left","border-right","b","bt","bb","bl","br","bx","by"],colorful:!1,values:[]},{key:["border-spacing"],colorful:!1,values:[]},{key:["border-color","border","border-top-color","border-bottom-color","border-left-color","border-right-color","b","bt","bb","bl","br","bx","by"],colorful:!0,values:[]},{key:["border-radius","r","rt","rb","rl","rr","border-top-left-radius","rlt","rtl","border-top-right-radius","rrt","rtr","border-bottom-left-radius","rlb","rbl","border-bottom-right-radius","rbr","rrb"],colorful:!1,values:[]},{key:["border-style","border","b","border-top-style","border-top","bt","border-bottom-style","border-bottom","bb","border-left-style","border-left","bl","border-right-style","border-right","br","bx","by"],colorful:!1,values:["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"]},{key:["border-width","border","b","border-top-width","border-top","bt","border-bottom-width","border-bottom","bb","border-left-width","border-left","bl","border-right-width","border-right","br","bx","by"],colorful:!1,values:[]},{key:["outline"],colorful:!1,values:[]},{key:["outline-color","outline"],colorful:!0,values:[]},{key:["outline-offset"],colorful:!1,values:[]},{key:["outline-style","outline"],colorful:!1,values:["none","dotted","dashed","solid","double","groove","ridge","inset","outset"]},{key:["outline-width","outline"],colorful:!1,values:["medium","thick","thin"]},{key:["shape-image-threshold"],colorful:!1,values:[]},{key:["shape-margin","shape"],colorful:!1,values:[{label:"max()",kind:J.CompletionItemKind.Function},{label:"min()",kind:J.CompletionItemKind.Function},{label:"calc()",kind:J.CompletionItemKind.Function},{label:"clamp()",kind:J.CompletionItemKind.Function}]},{key:["shape-outside","shape"],colorful:!1,values:["none","content-box","border-box","padding-box","margin-box",{label:"inset()",kind:J.CompletionItemKind.Function},{label:"circle()",kind:J.CompletionItemKind.Function},{label:"ellipse()",kind:J.CompletionItemKind.Function},{label:"polygon()",kind:J.CompletionItemKind.Function},{label:"url()",kind:J.CompletionItemKind.Function},{label:"linear-gradient()",kind:J.CompletionItemKind.Function}]},{key:["clip-path","clip"],colorful:!1,values:["none","content-box","border-box","padding-box","margin-box","fill-box","stroke-box","view-box",{label:"inset()",kind:J.CompletionItemKind.Function},{label:"circle()",kind:J.CompletionItemKind.Function},{label:"ellipse()",kind:J.CompletionItemKind.Function},{label:"polygon()",kind:J.CompletionItemKind.Function},{label:"path()",kind:J.CompletionItemKind.Function},{label:"url()",kind:J.CompletionItemKind.Function}]},{key:["aspect-ratio","aspect"],colorful:!1,values:[]},{key:["box-sizing","box"],colorful:!1,values:["content-box","border-box"]},{key:["width","w"],colorful:!1,values:["100%","fit-content","max-content","min-content"]},{key:["min-width","min-w"],colorful:!1,values:["100%","fit-content","max-content","min-content"]},{key:["max-width","max-w"],colorful:!1,values:["100%","fit-content","max-content","min-content"]},{key:["height","h"],colorful:!1,values:["100%","fit-content","max-content","min-content"]},{key:["min-height","min-h"],colorful:!1,values:["100%","fit-content","max-content","min-content"]},{key:["max-height","max-h"],colorful:!1,values:["100%","fit-content","max-content","min-content"]},{key:["letter-spacing","ls"],colorful:!1,values:[]},{key:["margin-top","mt","margin-bottom","mb","margin-left","ml","margin-right","mr","margin","m","mx","my"],colorful:!1,values:[]},{key:["padding-top","pt","padding-bottom","pb","padding-left","pl","padding-right","pr","padding","p","px","py"],colorful:!1,values:[]},{key:["word-spacing"],colorful:!1,values:[]},{key:["transition"],colorful:!1,values:[]},{key:["transition-delay","~delay"],colorful:!1,values:[]},{key:["transition-duration","~duration"],colorful:!1,values:[]},{key:["transition-property","~property"],colorful:!1,values:[]},{key:["transition-timing-function","~easing"],colorful:!1,values:["ease","ease-in","ease-out","linear","step-start","step-end",{label:"steps(,)",kind:J.CompletionItemKind.Function},{label:"cubic-bezier(,,,)",kind:J.CompletionItemKind.Function},{label:"frames()",kind:J.CompletionItemKind.Function}]},{key:["transform"],colorful:!1,values:[{label:"translate()",kind:J.CompletionItemKind.Function},{label:"translate3d()",kind:J.CompletionItemKind.Function},{label:"translateX()",kind:J.CompletionItemKind.Function},{label:"translateY()",kind:J.CompletionItemKind.Function},{label:"translateZ()",kind:J.CompletionItemKind.Function},{label:"scale()",kind:J.CompletionItemKind.Function},{label:"scale3d()",kind:J.CompletionItemKind.Function},{label:"scaleX()",kind:J.CompletionItemKind.Function},{label:"scaleY()",kind:J.CompletionItemKind.Function},{label:"scaleZ()",kind:J.CompletionItemKind.Function},{label:"skew()",kind:J.CompletionItemKind.Function},{label:"skewX()",kind:J.CompletionItemKind.Function},{label:"skewY()",kind:J.CompletionItemKind.Function},{label:"rotate()",kind:J.CompletionItemKind.Function},{label:"rotate3d()",kind:J.CompletionItemKind.Function},{label:"rotateX()",kind:J.CompletionItemKind.Function},{label:"rotateY()",kind:J.CompletionItemKind.Function},{label:"rotateZ()",kind:J.CompletionItemKind.Function},{label:"perspective()",kind:J.CompletionItemKind.Function},{label:"matrix()",kind:J.CompletionItemKind.Function},{label:"matrix3d()",kind:J.CompletionItemKind.Function}]},{key:["transform-box","transform"],colorful:!1,values:["content-box","fill-box","stroke-box","view-box","border-box"]},{key:["transform-origin","transform"],colorful:!1,values:["top","bottom","right","left","center"]},{key:["transform-style","transform"],colorful:!1,values:["flat","preserve-3d"]},{key:["animation"],colorful:!1,values:[]},{key:["animation-delay","@delay"],colorful:!1,values:[]},{key:["animation-direction","@direction"],colorful:!1,values:["normal","reverse","alternate","alternate-reverse"]},{key:["animation-duration","@duration"],colorful:!1,values:[]},{key:["animation-fill-mode","@fill-mode"],colorful:!1,values:["none","forwards","backwards","both"]},{key:["animation-iteration-count","@iteration-count"],colorful:!1,values:["infinite"]},{key:["animation-name","@name"],colorful:!1,values:[]},{key:["animation-play-state","@play-state"],colorful:!1,values:["running","paused"]},{key:["animation-timing-function","@easing"],colorful:!1,values:["ease","ease-in","ease-out","ease-in-out","linear","step-start","step-end",{label:"steps(,)",kind:J.CompletionItemKind.Function},{label:"cubic-bezier(,,,)",kind:J.CompletionItemKind.Function},{label:"frames()",kind:J.CompletionItemKind.Function}]},{key:["fill"],colorful:!0,values:[]},{key:["stroke"],colorful:!0,values:[]},{key:["stroke-width"],colorful:!1,values:[]},{key:["opacity"],colorful:!1,values:[]},{key:["visibility"],colorful:!1,values:["visible","invisible","collapse"]},{key:["backdrop-filter","bd"],colorful:!1,values:["none",{label:"url(svg)",kind:J.CompletionItemKind.Function},{label:"blur()",kind:J.CompletionItemKind.Function},{label:"brightness()",kind:J.CompletionItemKind.Function},{label:"contrast()",kind:J.CompletionItemKind.Function},{label:"grayscale()",kind:J.CompletionItemKind.Function},{label:"hue-rotate(degree)",kind:J.CompletionItemKind.Function},{label:"invert()",kind:J.CompletionItemKind.Function},{label:"sepia()",kind:J.CompletionItemKind.Function},{label:"saturate()",kind:J.CompletionItemKind.Function},{label:"opacity()",kind:J.CompletionItemKind.Function},{label:"drop-shadow()",kind:J.CompletionItemKind.Function}]},{key:["background-blend-mode"],colorful:!1,values:["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},{key:["box-shadow","shadow","s"],colorful:!0,values:["inset"]},{key:["filter"],colorful:!1,values:["none",{label:"url()",kind:J.CompletionItemKind.Function},{label:"blur()",kind:J.CompletionItemKind.Function},{label:"brightness()",kind:J.CompletionItemKind.Function},{label:"contrast()",kind:J.CompletionItemKind.Function},{label:"drop-shadow()",kind:J.CompletionItemKind.Function},{label:"grayscale()",kind:J.CompletionItemKind.Function},{label:"hue-rotate(degree)",kind:J.CompletionItemKind.Function},{label:"invert()",kind:J.CompletionItemKind.Function},{label:"opacity()",kind:J.CompletionItemKind.Function},{label:"saturate()",kind:J.CompletionItemKind.Function},{label:"sepia()",kind:J.CompletionItemKind.Function}]},{key:["mask-image"],colorful:!1,values:[]},{key:["mix-blend-mode","blend"],colorful:!1,values:["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},{key:["text-shadow"],colorful:!1,values:[]},{key:["overscroll-behavior","overscroll-behavior-x","overscroll-behavior-y"],colorful:!1,values:["auto","none","contain"]},{key:["scroll-behavior"],colorful:!1,values:["auto","smooth"]},{key:["scroll-margin","scroll-m","scroll-margin-top","scroll-mt","scroll-margin-bottom","scroll-mb","scroll-margin-left","scroll-ml","scroll-margin-right","scroll-mr","scroll-mx","scroll-my"],colorful:!1,values:[]},{key:["scroll-padding","scroll-p","scroll-padding","scroll-padding-top","scroll-pt","scroll-padding-bottom","scroll-pb","scroll-padding-left","scroll-pl","scroll-padding-right","scroll-pr","scroll-px","scroll-py"],colorful:!1,values:[]},{key:["scroll-snap-align","scroll-snap"],colorful:!1,values:["center","end","start","none"]},{key:["scroll-snap-stop","scroll-snap"],colorful:!1,values:["always","normal"]},{key:["scroll-snap-type"],colorful:!1,values:["none"]},{key:["scroll-snap-type","scroll-snap"],colorful:!1,values:["x","y","both","block","inline","x|mandatory","y|proximity","both|mandatory"]},{key:["pointer-events"],colorful:!1,values:["auto","none","visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","bounding-box"]},{key:["resize"],colorful:!1,values:["auto","none","both","horizontal","vertical","block","inline"]},{key:["touch-action"],colorful:!1,values:["auto","none","pan-x","pan-left","pan-right","pan-y","pan-up","pan-down","pinch-zoom","manipulation"]},{key:["user-drag"],colorful:!1,values:["auto","none","element"]},{key:["user-select"],colorful:!1,values:["all","auto","none","text"]},{key:["contain"],colorful:!1,values:["none","strict","content","size","layout","style","paint"]},{key:["font","f"],colorful:!1,values:["antialiased","subpixel-antialiased"]},{key:["text-rendering"],colorful:!1,values:["auto"]},{key:["text-rendering","t"],colorful:!1,values:["optimizeSpeed","optimizeLegibility","geometricPrecision"]},{key:["will-change"],colorful:!1,values:[]},{key:["$"],colorful:!1,values:[]}],mye=[{type:"color",values:["#",{label:"rgb()",kind:J.CompletionItemKind.Function},{label:"hsl()",kind:J.CompletionItemKind.Function}]}];var br=Kt(Up());var Eye=Kt(kye()),Kp=[];Kp=Kp.concat(hye);Vp.forEach(t=>{Kp=Kp.concat(t.key)});var Ua=[...new Set(Kp)];function Cye(t,e){let r=t.textDocument.uri,n=r.substring(r.lastIndexOf(".")+1),i=t.position,s=/(?:[^"{'\s])+(?=>\s|\b)/g,o,a="",u=e.get(r),l=u?.getText({start:{line:i.line,character:0},end:{line:i.line,character:i.character}}),c=l??"";c=c.trim();let f=u?.getText({start:{line:0,character:0},end:{line:i.line,character:i.character}});if(c.match(s)===null)return{isInstance:!1,lastKey:"",triggerKey:"",isStart:!1,language:n};for(;(o=s.exec(c))!==null;)a=o[0];let d=c.charAt(c.length-1),p=i.character==1||c.charAt(c.length-2)===" "||c.charAt(c.length-2)===""||c.charAt(c.length-2)==='"'||c.charAt(c.length-2)==="'"||c.charAt(c.length-2)==="{";return c.charAt(c.length-2)===":"&&c.charAt(c.length-1)===":"&&(d="::",p=!1),{isInstance:!0,lastKey:a,triggerKey:d,isStart:p,language:n}}function Dye(t,e,r,n,i=new ar){let s=[],o=t.split(":").length,a=t.split(":")[0];a=a.trim();let u=t.split(":|@").length,l=t.split(":|@")[u-1],c=/[^\\s"]+@+([^\\s:"@]+)/g,f=/[^\\s"]+::+([^\\s:"@]+)/g,d=!1,p=!(c.exec(t)===null&&e!=="@"),h=!(f.exec(t)===null&&e!=="::"),y=[],v=Object.keys(i.config.selectors??{}).map(b=>b.endsWith("(")?`${b})`:b).filter(b=>b.match(/:[^:]+/)&&!vE.find(w=>(typeof w=="string"?w:w.label)===`:${b}`)).map(b=>(b=b.substring(1),b.endsWith(")")?{label:b,kind:br.CompletionItemKind.Function}:b)),g=Object.keys(i.config.selectors??{}).map(b=>b.endsWith("(")?`${b})`:b).filter(b=>b.match(/::[^:]+/)&&!L3.find(w=>(typeof w=="string"?w:w.label)===`::${b}`)).map(b=>(b=b.substring(2),b.endsWith(")")?{label:b,kind:br.CompletionItemKind.Function}:b));return Vp.forEach(b=>{if(b.key.includes(a)){y=y.concat(b.values.filter(_=>!y.find(S=>(typeof S=="string"?S:S.label)===(typeof _=="string"?_:_.label))));let w=(0,Eye.pascalCase)(b.key[0]);if(i.config.values?.[w]){let _=Object.keys(i.config.values[w]);y=y.concat(_.filter(S=>!y.find(q=>(typeof q=="string"?q:q.label)===S)))}if(b.colorful){d=!0;let _=mye.find(S=>S.type==="color")?.values.filter(S=>!y.find(q=>(typeof q=="string"?q:q.label)===(typeof S=="string"?S:S.label)));_&&(y=y.concat(_))}}}),r==!0&&e!=="@"&&e!==":"?(s=s.concat(an(Ua,br.CompletionItemKind.Property,":")),s=s.concat(an(Object.keys(i.config.semantics??{}),br.CompletionItemKind.Property)),n=="tsx"||n=="vue"||n=="jsx"?Ha(a,s):s):r==!0?[]:!Ua.includes(a)&&e!==":"?(s=s.concat(an(Ua,br.CompletionItemKind.Property,":")),s=s.concat(an(Object.keys(i.config.semantics??{}),br.CompletionItemKind.Property)),n=="tsx"||n=="vue"||n=="jsx"?Ha(a,s):s):Ua.includes(a)&&a!==null&&h===!0?(s=s.concat(an(L3,br.CompletionItemKind.Property)),s=s.concat(an(g,br.CompletionItemKind.Property)),(n=="tsx"||n=="vue"||n=="jsx")&&e!=="@"&&e!==":"?Ha(l,s):s):Ua.includes(a)&&a!==null&&p===!0?(s=s.concat(an(pye,br.CompletionItemKind.Property)),s=s.concat(an(Object.keys(i.config.breakpoints??{}),br.CompletionItemKind.Property)),(n=="tsx"||n=="vue"||n=="jsx")&&e!=="@"&&e!==":"?Ha("@"+l,s):s):Object.keys(i.config.semantics??{}).includes(a)&&!Vp.find(b=>b.key.includes(a))?(s=s.concat(an(vE,br.CompletionItemKind.Property)),s=s.concat(an(v,br.CompletionItemKind.Property)),(n=="tsx"||n=="vue"||n=="jsx")&&e!=="@"&&e!==":"?Ha(l,s):s):Ua.includes(a)&&o<=2&&!(o==2&&e===":")?(s=s.concat(an(y,br.CompletionItemKind.Enum)),s=s.concat(an(gye,br.CompletionItemKind.Enum).map(b=>(b.sortText="z"+b,b))),d&&(s=s.concat(Z1t(i))),(n=="tsx"||n=="vue"||n=="jsx")&&e!=="@"&&e!==":"?Ha(l,s):s):((Ua.includes(a)&&(o==2&&e===":"||o>=3)||Vp.find(b=>b.values.includes(a)))&&(s=s.concat(an(vE,br.CompletionItemKind.Function)),s=s.concat(an(v,br.CompletionItemKind.Property))),(n=="tsx"||n=="vue"||n=="jsx")&&e!=="@"&&e!==":"?Ha(l,s):s)}function an(t,e,r=""){let n=[];return t.forEach(i=>{typeof i=="string"?n.push({label:i+r,kind:e,insertText:i+r,insertTextMode:2,command:r===":"?{title:"triggerSuggest",command:"editor.action.triggerSuggest"}:void 0}):n.push({insertText:i.label+r,insertTextMode:2,command:r===":"?{title:"triggerSuggest",command:"editor.action.triggerSuggest"}:void 0,...i})}),n}function Z1t(t=new ar){let e=[];return Object.keys(t.colorThemesMap).forEach(r=>{let n=t.colorThemesMap[r];e.push({label:r,documentation:Object.values(n)[0],kind:br.CompletionItemKind.Color,sortText:`${r}`})}),e}function Ha(t,e){let r=[];if(t.split("-").length-1<=0)return e;{let n=t.split("-")[0]+"-";return e.map(i=>{i.label.includes(n)&&r.push({label:i.label,kind:i.kind,insertText:i.insertText?.substring(n.length),insertTextMode:i.insertTextMode,command:i.command})}),r}}var qbe=Kt(Obe());function Rbe(t,e,r=new ar){let n=_5(t.split(" "),r.config);return!n||n==" "?null:{contents:{language:"css",value:(0,qbe.css_beautify)(n,{newline_between_rules:!0,end_with_newline:!0})},range:e}}var Ya=Kt(Up());var AE=/[^\s:]+:\w*\(?((?<!\\)["'`])((?:\\\1|(?:(?!\1))[\S\s])*)((?<!\\)\1)\)?|[^\s"'`]+/g;function PE(t,e,r,n){let i={IsMatch:!1,PositionIndex:0,classStartIndex:0,classEndIndex:0,classString:"",instance:{range:{start:Ya.Position.create(0,0),end:Ya.Position.create(0,0)},instanceString:""},instanceList:[]},s=r.get(t),o=s?.getText()??"",a=s?.offsetAt(e)??0,u=s?.offsetAt({line:e.line-100,character:0})??0,l=s?.offsetAt({line:e.line+100,character:0})??void 0;o=o.substring(u,l);let c,f;return i.PositionIndex=a,n.forEach(d=>{let p=new RegExp(d,"g");for(;(f=p.exec(o))!==null;)if(f.index<=a&&f.index+f[0].length-1>=a){for(i.IsMatch=!0,i.PositionIndex=a,i.classStartIndex=f.index,i.classEndIndex=f.index+f[0].length-1,i.classString=f[0];(c=AE.exec(f[2]))!==null;)i.instanceList.push({range:{start:s?.positionAt(f.index+f[1].length+c.index)??Ya.Position.create(0,0),end:s?.positionAt(f.index+f[1].length+c.index+c[0].length)??Ya.Position.create(0,0)},instanceString:c[0]}),f.index+f[1].length+c.index<=a&&f.index+f[1].length+c.index+c[0].length>=a&&(i.instance={range:{start:s?.positionAt(f.index+f[1].length+c.index)??Ya.Position.create(0,0),end:s?.positionAt(f.index+f[1].length+c.index+c[0].length)??Ya.Position.create(0,0)},instanceString:c[0]});return i}else if(f.index>a)break}),i}var _r=Kt(Up());function TE(t){let e=t.replace("#","").match(/.{1,2}/g);return{red:parseInt(e?.[0]??"0",16),green:parseInt(e?.[1]??"0",16),blue:parseInt(e?.[2]??"0",16),alpha:parseInt(e?.[3]??"FF",16)}}async function Pbe(t,e){let r=[],n=t.textDocument.uri,i=e.get(n),s=i?.getText()??"";if(typeof i==null)return[];let o,a=/(:\s*)'#([0-9a-fA-F]{6,8})'/g,u,l=new RegExp("(?<=colors:\\s*{\\s*.*)([^}]*)}","g");for(;(o=l.exec(s))!==null;)for(;u=a.exec(o[0]);){let c={range:{start:i?.positionAt(o.index+u.index+u[1].length)??_r.Position.create(0,0),end:i?.positionAt(o.index+u.index+u[0].length-1)??_r.Position.create(0,0)},color:ME(TE(u[2]))};r.push(c)}return r}async function Tbe(t,e,r,n=new ar){let i=[],s=t.textDocument.uri,o=e.get(s),a=o?.getText()??"";if(typeof o==null)return[];let u=Object.keys(n.colorThemesMap),l;for(;(l=AE.exec(a))!==null;){let f=l.index,d=n.themeNames.find(q=>l?.[0]?.endsWith(`@${q}`))??"",p=/(?<=[:;|])(?:#?\w+(?:-[\d]{1,2})?(?:\/.?[\d]*)?(?:\([^\s)]+\))?)/g,h=/rgba?\(([\d.]+),([\d.]+),([\d.]+)(?:,([\d.]+))?\)/g,y=/hsla?\(([\d.]+),([\d.]+)%,([\d.]+)%(?:,([\d.]+))?\)/g,v=/#([0-9a-fA-F]{6,8})/g,g,b,w,_,S;for(;(g=p.exec(l[0]))!==null;){if(b=h.exec(g[0])){let q={range:{start:o?.positionAt(f+g.index)??_r.Position.create(0,0),end:o?.positionAt(f+g.index+g[0].length)??_r.Position.create(0,0)},color:ME({red:Number(b[1]),green:Number(b[2]),blue:Number(b[3]),alpha:b[4]==null?1:Number(b[4])})};i.push(q)}else if(b=y.exec(g[0])){let q={range:{start:o?.positionAt(f+g.index)??_r.Position.create(0,0),end:o?.positionAt(f+g.index+g[0].length)??_r.Position.create(0,0)},color:ME(ikt(Number(b[1]),Number(b[2]),Number(b[3]),b[4]==null?1:Number(b[4])))};i.push(q)}else if(b=v.exec(g[0])){let q={range:{start:o?.positionAt(f+g.index)??_r.Position.create(0,0),end:o?.positionAt(f+g.index+g[0].length)??_r.Position.create(0,0)},color:ME(TE(b[1]))};i.push(q)}if(S=1,g[0].split("/").length==2&&(S=Number("0"+g[0].split("/")[1])),g[0].split("-").length==1){if(w=g[0].split("/")[0],w=w.endsWith("_")?w.replace("_",""):w,u.find(q=>q==w)){let q={range:{start:o?.positionAt(f+g.index)??_r.Position.create(0,0),end:o?.positionAt(f+g.index+g[0].length)??_r.Position.create(0,0)},color:Abe(w,S,d,n)};i.push(q)}}else if(g[0].split("-").length==2){if(w=g[0],u.find(q=>q==w)){let q={range:{start:o?.positionAt(f+g.index)??_r.Position.create(0,0),end:o?.positionAt(f+g.index+g[0].length)??_r.Position.create(0,0)},color:Abe(w,S,d,n)};i.push(q)}}else if(g[0].split("-").length!=2)continue}}let c=new Set;return i=i.filter(f=>c.has(o?.offsetAt(f.range.start))?!1:(c.add(o?.offsetAt(f.range.start)),!0)),i}function Abe(t,e=1,r="",n=new ar){try{let i=n.colorThemesMap[t],s=TE(i[r]??i[""]??Object.values(i)[0]);return{red:s.red/255,green:s.green/255,blue:s.blue/255,alpha:e}}catch{return{red:0,green:0,blue:0,alpha:1}}}function un(t){let e=t.toString(16);return e.length!==2?"0"+e:e}function nkt(t){let e=t.red,r=t.green,n=t.blue,i=t.alpha,s=Math.max(e,r,n),o=Math.min(e,r,n),a=0,u=0,l=(o+s)/2,c=s-o;if(c>0){switch(u=Math.min(l<=.5?c/(2*l):c/(2-2*l),1),s){case e:a=(r-n)/c+(r<n?6:0);break;case r:a=(n-e)/c+2;break;case n:a=(e-r)/c+4;break}a*=60,a=Math.round(a)}return{h:a,s:u,l,a:i}}function ikt(t,e,r,n){r/=100;let i=a=>(a+t/30)%12,s=e/100*Math.min(r,1-r),o=a=>r-s*Math.max(-1,Math.min(i(a)-3,Math.min(9-i(a),1)));return{red:255*o(0),green:255*o(8),blue:255*o(4),alpha:n??1}}function ME(t){return{red:t.red/255,green:t.green/255,blue:t.blue/255,alpha:t.alpha}}function Mbe(t,e=!1){let r=[],n=t.color,i=t.range,s=Math.round(n.red*255),o=Math.round(n.green*255),a=Math.round(n.blue*255),u;if(e)return n.alpha===1?u=`'#${un(s)}${un(o)}${un(a)}`:u=`'#${un(s)}${un(o)}${un(a)}${un(Math.round(n.alpha*255))}`,r.push({label:u,textEdit:_r.TextEdit.replace(i,u)}),r;n.alpha===1?u=`rgb(${s},${o},${a})`:u=`rgba(${s},${o},${a},${n.alpha})`,r.push({label:u,textEdit:_r.TextEdit.replace(i,u)}),n.alpha===1?u=`#${un(s)}${un(o)}${un(a)}`:u=`#${un(s)}${un(o)}${un(a)}${un(Math.round(n.alpha*255))}`,r.push({label:u,textEdit:_r.TextEdit.replace(i,u)});let l=nkt(n);return l.a===1?u=`hsl(${l.h},${Math.round(l.s*100)}%,${Math.round(l.l*100)}%)`:u=`hsla(${l.h},${Math.round(l.s*100)}%,${Math.round(l.l*100)}%,${l.a})`,r.push({label:u,textEdit:_r.TextEdit.replace(i,u)}),r}var ln=(0,Xi.createConnection)(Xi.ProposedFeatures.all),Ji=new Xi.TextDocuments(Nbe.TextDocument),FE=!1,Lbe=!1,skt=!1,Qi,oh,jbe={languages:["html","php","javascript","typescript","javascriptreact","typescriptreact","vue","svelte","rust"],classNameMatches:["(class(?:Name)?\\s?=\\s?)((?:\"[^\"]+\")|(?:'[^']+')|(?:`[^`]+`))","(class(?:Name)?={)([^}]*)}","(?:(\\$|(?:element\\.[^\\s.`]+)`)([^`]+)`)","(classList.(?:add|remove|replace|replace|toggle)\\()([^)]*)\\)"],files:{exclude:["**/.git/**","**/node_modules/**","**/.hg/**"]},suggestions:!0,PreviewOnHovers:!0,PreviewColor:!0},$be=jbe,LE=new Map;ln.onDidChangeConfiguration(t=>{FE?LE.clear():$be=t.settings.languageServerExample||jbe,Ji.all().forEach(Bbe)});async function okt(t){if(!FE)return Promise.resolve($be);let e=LE.get(t);e||(e=ln.workspace.getConfiguration({scopeUri:t,section:"masterCSS"}),LE.set(t,e)),ln.workspace.getWorkspaceFolders();let r=await ln.workspace.getWorkspaceFolders(),n;if(r?.length===1?n=r[0]:n=r?.find(i=>t.includes(i.uri)),n?.uri)try{try{let s=(await new pge({cwd:(0,Fbe.default)(n.uri.replace("%3A",":"))})).readConfig();console.log(s),oh=new ar(s)}catch{oh=new ar}}catch{}return e}Ji.onDidClose(t=>{LE.delete(t.document.uri)});Ji.onDidOpen(t=>{Bbe(t.document)});async function Bbe(t){Qi=await okt(t.uri)}ln.onInitialize(t=>{let e=t.capabilities;FE=!!(e.workspace&&e.workspace.configuration),Lbe=!!(e.workspace&&e.workspace.workspaceFolders),skt=!!(e.textDocument&&e.textDocument.publishDiagnostics&&e.textDocument.publishDiagnostics.relatedInformation);let r={capabilities:{textDocumentSync:Xi.TextDocumentSyncKind.Incremental,completionProvider:{resolveProvider:!0,workDoneProgress:!1,triggerCharacters:[":","@","~"]},colorProvider:{},hoverProvider:!0}};return Lbe&&(r.capabilities.workspace={workspaceFolders:{supported:!0}}),r});ln.onInitialized(()=>{FE&&ln.client.register(Xi.DidChangeConfigurationNotification.type,void 0)});ln.onCompletion(t=>{if(Qi.suggestions==!0&&IE(t.textDocument.uri)){let e=PE(t.textDocument.uri,t.position,Ji,Qi.classNameMatches).IsMatch,r=Cye(t,Ji);if(r.isInstance==!0&&e==!0)return Dye(r.lastKey,r.triggerKey,r.isStart,r.language,oh)}return[]});ln.onCompletionResolve(t=>t);ln.onDocumentColor(async t=>{if(Qi==null)return[];if(Qi.PreviewColor==!0&&IE(t.textDocument.uri)){let e=await Tbe(t,Ji,Qi.classNameMatches,oh);return e=e.concat(await Pbe(t,Ji)),e}return[]});ln.onColorPresentation(t=>{if(Qi.PreviewColor==!0&&IE(t.textDocument.uri)){let e=["(?<=colors:\\s*{\\s*.*)([^}]*)}"],r=PE(t.textDocument.uri,t.range.start,Ji,e);return Mbe(t,r.IsMatch)}return[]});ln.onHover(t=>{if(Qi.PreviewOnHovers==!0&&IE(t.textDocument.uri)){let e=PE(t.textDocument.uri,t.position,Ji,Qi.classNameMatches);if(e.IsMatch)return Rbe(e.instance.instanceString,e.instance.range,oh)}return null});function IE(t){for(let e of Qi.files.exclude)if((0,Ibe.default)(t,e))return!1;return!0}Ji.listen(ln);ln.listen();
|
|
485
485
|
/*! Bundled license information:
|
|
486
486
|
|
|
487
487
|
is-extglob/index.js:
|