astro-vscode 2.7.0 → 2.7.1
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/node/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var w3=Object.create;var Id=Object.defineProperty;var _3=Object.getOwnPropertyDescriptor;var S3=Object.getOwnPropertyNames;var x3=Object.getPrototypeOf,C3=Object.prototype.hasOwnProperty;var ge=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),kv=(e,t)=>{for(var n in t)Id(e,n,{get:t[n],enumerable:!0})},k1=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of S3(t))!C3.call(e,i)&&i!==n&&Id(e,i,{get:()=>t[i],enumerable:!(r=_3(t,i))||r.enumerable});return e};var vn=(e,t,n)=>(n=e!=null?w3(x3(e)):{},k1(t||!e||!e.__esModule?Id(n,"default",{value:e,enumerable:!0}):n,e)),Eo=e=>k1(Id({},"__esModule",{value:!0}),e);var T1=O((Tde,k3)=>{k3.exports={name:"@astrojs/language-server",version:"2.7.
|
|
2
|
+
var w3=Object.create;var Id=Object.defineProperty;var _3=Object.getOwnPropertyDescriptor;var S3=Object.getOwnPropertyNames;var x3=Object.getPrototypeOf,C3=Object.prototype.hasOwnProperty;var ge=(e,t)=>()=>(e&&(t=e(e=0)),t);var O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),kv=(e,t)=>{for(var n in t)Id(e,n,{get:t[n],enumerable:!0})},k1=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of S3(t))!C3.call(e,i)&&i!==n&&Id(e,i,{get:()=>t[i],enumerable:!(r=_3(t,i))||r.enumerable});return e};var vn=(e,t,n)=>(n=e!=null?w3(x3(e)):{},k1(t||!e||!e.__esModule?Id(n,"default",{value:e,enumerable:!0}):n,e)),Eo=e=>k1(Id({},"__esModule",{value:!0}),e);var T1=O((Tde,k3)=>{k3.exports={name:"@astrojs/language-server",version:"2.7.1",author:"withastro",license:"MIT",repository:{type:"git",url:"https://github.com/withastro/language-tools",directory:"packages/language-server"},type:"commonjs",main:"dist/index.js",files:["bin","dist/**/*.js","dist/**/*.d.ts","types/**/*.d.ts"],bin:{"astro-ls":"./bin/nodeServer.js"},scripts:{build:"tsc",dev:"tsc --watch",test:"mocha --timeout 10000 --require tsx --require test/takedown.ts test/misc/init.test.ts test/**/*.test.ts","test:match":"pnpm run test -g"},dependencies:{"@astrojs/compiler":"^2.4.0","@jridgewell/sourcemap-codec":"^1.4.15","@volar/kit":"~2.0.2","@volar/language-core":"~2.0.2","@volar/language-server":"~2.0.2","@volar/language-service":"~2.0.2","@volar/typescript":"~2.0.2","fast-glob":"^3.2.12","volar-service-css":"0.0.28","volar-service-emmet":"0.0.28","volar-service-html":"0.0.28","volar-service-prettier":"0.0.28","volar-service-typescript":"0.0.28","volar-service-typescript-twoslash-queries":"0.0.28","vscode-html-languageservice":"^5.1.1","vscode-uri":"^3.0.8"},devDependencies:{"@astrojs/svelte":"^4.0.3","@astrojs/vue":"^3.0.1","@types/chai":"^4.3.5","@types/mocha":"^10.0.1","@types/node":"^18.17.8","@volar/test-utils":"~2.0.2",astro:"^4.1.0",chai:"^4.3.7",mocha:"^10.2.0",tsx:"^3.12.7",typescript:"^5.2.2","vscode-languageserver-protocol":"^3.17.5","vscode-languageserver-textdocument":"^1.0.11"},peerDependencies:{prettier:"^3.0.0","prettier-plugin-astro":">=0.11.0"},peerDependenciesMeta:{prettier:{optional:!0},"prettier-plugin-astro":{optional:!0}}}});var E1=O(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.resolveRenameEditText=Ee.resolveRenameNewName=Ee.shouldReportDiagnostics=Ee.isSignatureHelpEnabled=Ee.isAutoInsertEnabled=Ee.isCompletionEnabled=Ee.isFormattingEnabled=Ee.isCodeActionsEnabled=Ee.isDiagnosticsEnabled=Ee.isDocumentLinkEnabled=Ee.isColorEnabled=Ee.isLinkedEditingEnabled=Ee.isSelectionRangesEnabled=Ee.isFoldingRangesEnabled=Ee.isSymbolsEnabled=Ee.isHighlightEnabled=Ee.isImplementationEnabled=Ee.isReferencesEnabled=Ee.isTypeDefinitionEnabled=Ee.isDefinitionEnabled=Ee.isRenameEnabled=Ee.isCallHierarchyEnabled=Ee.isSemanticTokensEnabled=Ee.isCodeLensEnabled=Ee.isInlayHintsEnabled=Ee.isHoverEnabled=void 0;function T3(e){return!!e.semantic}Ee.isHoverEnabled=T3;function E3(e){return!!e.semantic}Ee.isInlayHintsEnabled=E3;function D3(e){return!!e.semantic}Ee.isCodeLensEnabled=D3;function R3(e){return typeof e.semantic=="object"?e.semantic.shouldHighlight?.()??!0:e.semantic}Ee.isSemanticTokensEnabled=R3;function A3(e){return!!e.navigation}Ee.isCallHierarchyEnabled=A3;function F3(e){return!!e.navigation}Ee.isRenameEnabled=F3;function P3(e){return!!e.navigation}Ee.isDefinitionEnabled=P3;function I3(e){return!!e.navigation}Ee.isTypeDefinitionEnabled=I3;function M3(e){return!!e.navigation}Ee.isReferencesEnabled=M3;function O3(e){return!!e.navigation}Ee.isImplementationEnabled=O3;function L3(e){return!!e.navigation}Ee.isHighlightEnabled=L3;function N3(e){return e.structure}Ee.isSymbolsEnabled=N3;function z3(e){return e.structure}Ee.isFoldingRangesEnabled=z3;function q3(e){return e.structure}Ee.isSelectionRangesEnabled=q3;function W3(e){return e.structure}Ee.isLinkedEditingEnabled=W3;function j3(e){return e.structure}Ee.isColorEnabled=j3;function U3(e){return e.structure}Ee.isDocumentLinkEnabled=U3;function H3(e){return!!e.verification}Ee.isDiagnosticsEnabled=H3;function $3(e){return!!e.verification}Ee.isCodeActionsEnabled=$3;function B3(e){return e.format}Ee.isFormattingEnabled=B3;function V3(e){return!!e.completion}Ee.isCompletionEnabled=V3;function G3(e){return!!e.completion}Ee.isAutoInsertEnabled=G3;function K3(e){return!!e.completion}Ee.isSignatureHelpEnabled=K3;function J3(e){return typeof e.verification=="object"?e.verification.shouldReport?.()??!0:e.verification}Ee.shouldReportDiagnostics=J3;function X3(e,t){return typeof t.navigation=="object"?t.navigation.resolveRenameNewName?.(e)??e:e}Ee.resolveRenameNewName=X3;function Q3(e,t){return typeof t.navigation=="object"?t.navigation.resolveRenameEditText?.(e)??e:e}Ee.resolveRenameEditText=Q3});var D1=O(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.binarySearch=void 0;function Y3(e,t){let n=0,r=e.length-1;for(;n<=r;){let i=Math.floor((n+r)/2),s=e[i];if(s<t)n=i+1;else if(s>t)r=i-1;else{n=i,r=i;break}}return Math.max(Math.min(n,r,e.length-1),0)}Md.binarySearch=Y3});var Ev=O(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.track=li.resetOffsetStack=li.offsetStack=li.setTracking=void 0;var R1=!0,Tv=0;function Z3(e){R1=e}li.setTracking=Z3;function eU(){Tv++}li.offsetStack=eU;function tU(){Tv--}li.resetOffsetStack=tU;function nU(e,t=[]){return[new Proxy(e,{get(u,d,h){if(R1){if(d==="push")return n;if(d==="pop")return r;if(d==="shift")return i;if(d==="unshift")return s;if(d==="splice")return o;if(d==="sort")return l;if(d==="reverse")return a}return Reflect.get(u,d,h)}}),t];function n(...u){return t.push({stack:c(),length:u.length}),e.push(...u)}function r(){if(t.length){let u=t[t.length-1];u.length>1?u.length--:t.pop()}return e.pop()}function i(){if(t.length){let u=t[0];u.length>1?u.length--:t.shift()}return e.shift()}function s(...u){return t.unshift({stack:c(),length:u.length}),e.unshift(...u)}function o(u,d,...h){d===void 0&&(d=e.length-u);let f=0,p;for(let g=0;g<t.length;g++){let b=t[g],y=f;if(f=y+b.length,u>=y){p=g+1;let T=b.length;b.length=u-y,t.splice(p,0,{stack:b.stack,length:T-b.length});break}}if(p===void 0)throw new Error("Invalid splice operation");let m=d;for(let g=p;g<t.length;g++){let b=t[g];for(;m>0&&b.length>0;)b.length--,m--;if(m===0)break}return t.splice(p,0,{stack:c(),length:h.length}),e.splice(u,d,...h)}function l(u){return t.splice(0,t.length,{stack:c(),length:e.length}),e.sort(u)}function a(){return t.splice(0,t.length,{stack:c(),length:e.length}),e.reverse()}function c(){let d=new Error().stack.split(`
|
|
3
3
|
`)[3+Tv].trim();return d.endsWith(")")?d=d.slice(d.lastIndexOf("(")+1,-1):d=d.slice(d.lastIndexOf(" ")+1),d}}li.track=nU});var F1=O(A1=>{"use strict";Object.defineProperty(A1,"__esModule",{value:!0})});var z1=O(zt=>{"use strict";var rU=zt&&zt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),I1=zt&&zt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&rU(t,e,n)};Object.defineProperty(zt,"__esModule",{value:!0});zt.replaceRange=zt.replaceSourceRange=zt.replaceAll=zt.replace=zt.create=zt.toString=zt.getLength=void 0;var P1=D1(),ci=Ev();I1(F1(),zt);I1(Ev(),zt);function M1(e){let t=0;for(let n of e)t+=typeof n=="string"?n.length:n[0].length;return t}zt.getLength=M1;function Dv(e){return e.map(t=>typeof t=="string"?t:t[0]).join("")}zt.toString=Dv;function iU(e){return[[e,void 0,0]]}zt.create=iU;function sU(e,t,...n){let i=Dv(e).match(t);if(i&&i.index!==void 0){let s=i.index,o=s+i[0].length;(0,ci.offsetStack)(),Rv(e,s,o,...n.map(l=>typeof l=="function"?l(i[0]):l)),(0,ci.resetOffsetStack)()}}zt.replace=sU;function oU(e,t,...n){let r=Dv(e),i=r.matchAll(t),s=r.length,o=0;for(let l of i)if(l.index!==void 0){let a=l.index+o,c=a+l[0].length;(0,ci.offsetStack)(),Rv(e,a,c,...n.map(d=>typeof d=="function"?d(l[0]):d)),(0,ci.resetOffsetStack)();let u=M1(e);o+=u-s,s=u}}zt.replaceAll=oU;function aU(e,t,n,r,...i){for(let s of e)if(typeof s!="string"&&s[1]===t){let o=s[2],l=s[2]+s[0].length;if(o<=n&&l>=r){let a=[];n>o&&a.push(L1(s,n-o));for(let c of i)a.push(c);return r<l&&a.push(N1(s,r-l)),O1(a),(0,ci.offsetStack)(),e.splice(e.indexOf(s),1,...a),(0,ci.resetOffsetStack)(),!0}}return!1}zt.replaceSourceRange=aU;function Rv(e,t,n,...r){let i=lU(e),s=(0,P1.binarySearch)(i,t),o=(0,P1.binarySearch)(i,n),l=e[s],a=e[o],c=i[s],u=i[o],d=i[o]+(typeof a=="string"?a.length:a[0].length),h=[];t>c&&h.push(L1(l,t-c));for(let f of r)h.push(f);n<d&&h.push(N1(a,n-u)),O1(h),(0,ci.offsetStack)(),e.splice(s,o-s+1,...h),(0,ci.resetOffsetStack)()}zt.replaceRange=Rv;function O1(e){for(let t=e.length-1;t>=1;t--)typeof e[t]=="string"&&typeof e[t-1]=="string"&&(e[t-1]=e[t-1]+e[t],(0,ci.offsetStack)(),e.splice(t,1),(0,ci.resetOffsetStack)())}function L1(e,t){return typeof e=="string"?e.slice(0,t):[e[0].slice(0,t),...e.slice(1)]}function N1(e,t){return typeof e=="string"?e.slice(t):(t<0&&(t+=e[0].length),[e[0].slice(t),e[1],e[2]+t,...e.slice(3)])}function lU(e){let t=[],n=0;for(let r of e)t.push(n),n+=typeof r=="string"?r.length:r[0].length;return t}});var q1=O(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.binarySearch=void 0;function cU(e,t){let n=0,r=e.length-1,i;for(;n<=r;){let l=Math.floor((n+r)/2),a=e[l];if(a<t)n=l+1;else if(a>t)r=l-1;else{n=l,r=l,i=l;break}}let s=Math.max(Math.min(n,r,e.length-1),0),o=Math.min(Math.max(n,r,0),e.length-1);return{low:s,high:o,match:i}}Od.binarySearch=cU});var Av=O(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.translateOffset=void 0;function uU(e,t,n,r){for(let i=0;i<t.length;i++){let s=t[i],o=n[i],l=r[i];if(e>=s&&e<=s+l)return o+e-s}}Ld.translateOffset=uU});var W1=O(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.SourceMap=void 0;var Fv=q1(),dU=Av(),Pv=class{constructor(t){this.mappings=t}getSourceOffset(t){for(let n of this.findMatching(t,"generatedOffsets","sourceOffsets"))return n}getGeneratedOffset(t){for(let n of this.findMatching(t,"sourceOffsets","generatedOffsets"))return n}getSourceOffsets(t){return this.findMatching(t,"generatedOffsets","sourceOffsets")}getGeneratedOffsets(t){return this.findMatching(t,"sourceOffsets","generatedOffsets")}*findMatching(t,n,r){let i=this.getMemoBasedOnRange(n);if(i.offsets.length===0)return;let{low:s,high:o}=(0,Fv.binarySearch)(i.offsets,t),l=new Set;for(let a=s;a<=o;a++)for(let c of i.mappings[a]){if(l.has(c))continue;l.add(c);let u=(0,dU.translateOffset)(t,c[n],c[r],c.lengths);u!==void 0&&(yield[u,c])}}getMemoBasedOnRange(t){return t==="sourceOffsets"?this.sourceCodeOffsetsMemo??=this.createMemo("sourceOffsets"):this.generatedCodeOffsetsMemo??=this.createMemo("generatedOffsets")}createMemo(t){let n=new Set;for(let s of this.mappings)for(let o=0;o<s[t].length;o++)n.add(s[t][o]),n.add(s[t][o]+s.lengths[o]);let r=[...n].sort((s,o)=>s-o),i=r.map(()=>new Set);for(let s of this.mappings)for(let o=0;o<s[t].length;o++){let l=(0,Fv.binarySearch)(r,s[t][o]).match,a=(0,Fv.binarySearch)(r,s[t][o]+s.lengths[o]).match;for(let c=l;c<=a;c++)i[c].add(s)}return{offsets:r,mappings:i}}};Nd.SourceMap=Pv});var j1=O(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.buildMappings=void 0;function hU(e){let t=0,n=[];for(let r of e)typeof r=="string"?t+=r.length:(n.push({source:r[1],sourceOffsets:[r[2]],generatedOffsets:[t],lengths:[r[0].length],data:r[3]}),t+=r[0].length);return n}zd.buildMappings=hU});var U1=O(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.buildStacks=void 0;function pU(e,t){let n=0,r=0,i=[];for(let s of t){let o=n;for(let l=0;l<s.length;l++){let a=e[r+l];typeof a=="string"?n+=a.length:n+=a[0].length}r+=s.length,i.push({source:s.stack,range:[o,n]})}return i}qd.buildStacks=pU});var Wd=O(Br=>{"use strict";var fU=Br&&Br.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Jc=Br&&Br.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&fU(t,e,n)};Object.defineProperty(Br,"__esModule",{value:!0});Jc(z1(),Br);Jc(W1(),Br);Jc(Av(),Br);Jc(j1(),Br);Jc(U1(),Br)});var Mv=O(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.LinkedCodeMap=void 0;var mU=Wd(),Iv=class extends mU.SourceMap{*getLinkedOffsets(t){for(let n of this.getGeneratedOffsets(t))yield n[0];for(let n of this.getSourceOffsets(t))yield n[0]}};jd.LinkedCodeMap=Iv});var Lv=O(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.FileMap=void 0;var Ov=class extends Map{constructor(t){super(),this.caseSensitive=t,this.originalFileNames=new Map}keys(){return this.originalFileNames.values()}get(t){return super.get(this.normalizeId(t))}has(t){return super.has(this.normalizeId(t))}set(t,n){return this.originalFileNames.set(this.normalizeId(t),t),super.set(this.normalizeId(t),n)}delete(t){return this.originalFileNames.delete(this.normalizeId(t)),super.delete(this.normalizeId(t))}clear(){return this.originalFileNames.clear(),super.clear()}normalizeId(t){return this.caseSensitive?t:t.toLowerCase()}};Ud.FileMap=Ov});var $1=O(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.forEachEmbeddedCode=Rs.updateVirtualCodeMaps=Rs.createFileRegistry=void 0;var gU=Wd(),bU=Mv(),vU=Lv();function yU(e,t,n){let r=new vU.FileMap(t),i=new WeakMap,s=new WeakMap,o=new WeakMap;return{languagePlugins:e,set(l,a,c){let u=r.get(l);if(u){if(u.languageId!==a)return this.delete(l),this.set(l,a,c);if(u.snapshot!==c){if(u.snapshot=c,u.generated){u.generated.code=u.generated.languagePlugin.updateVirtualCode(l,u.generated.code,c,this);for(let h of Xc(u.generated.code))i.set(h,u)}return u}else return u}let d={id:l,languageId:a,snapshot:c};r.set(l,d);for(let h of e){let f=h.createVirtualCode(l,a,c,this);if(f){d.generated={code:f,languagePlugin:h};for(let p of Xc(f))i.set(p,d);break}}return d},delete(l){let a=r.get(l);a&&(a.generated&&a.generated.languagePlugin.disposeVirtualCode?.(l,a.generated.code,this),r.delete(l))},get(l){return n(l),r.get(l)},getByVirtualCode(l){return i.get(l)},getLinkedCodeMap(l){return o.has(l.snapshot)||o.set(l.snapshot,l.linkedCodeMappings?new bU.LinkedCodeMap(l.linkedCodeMappings):void 0),o.get(l.snapshot)},getMaps(l){return s.has(l.snapshot)||s.set(l.snapshot,new Map),H1(l,a=>{if(a){let c=r.get(a);return[a,c.snapshot]}else{let c=i.get(l);return[c.id,c.snapshot]}},s.get(l.snapshot)),s.get(l.snapshot)},getVirtualCode(l,a){let c=this.get(l);if(c?.generated){for(let u of Xc(c.generated.code))if(u.id===a)return[u,c]}return[void 0,void 0]}}}Rs.createFileRegistry=yU;function H1(e,t,n=new Map){let r=new Set;for(let i of e.mappings){if(r.has(i.source))continue;r.add(i.source);let s=t(i.source);s&&(!n.has(s[0])||n.get(s[0])[0]!==s[1])&&n.set(s[0],[s[1],new gU.SourceMap(e.mappings.filter(o=>o.source===i.source))])}return n}Rs.updateVirtualCodeMaps=H1;function*Xc(e){yield e;for(let t of e.embeddedCodes)yield*Xc(t)}Rs.forEachEmbeddedCode=Xc});var Nv=O(B1=>{"use strict";Object.defineProperty(B1,"__esModule",{value:!0})});var qe=O(Ln=>{"use strict";var wU=Ln&&Ln.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Ea=Ln&&Ln.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&wU(t,e,n)};Object.defineProperty(Ln,"__esModule",{value:!0});Ln.resolveCommonLanguageId=void 0;Ea(E1(),Ln);Ea($1(),Ln);Ea(Mv(),Ln);Ea(Nv(),Ln);Ea(Lv(),Ln);Ea(Wd(),Ln);function _U(e){let t=e.split(".").pop();switch(t){case"js":return"javascript";case"cjs":return"javascript";case"mjs":return"javascript";case"ts":return"typescript";case"cts":return"typescript";case"mts":return"typescript";case"jsx":return"javascriptreact";case"tsx":return"typescriptreact";case"pug":return"jade";case"md":return"markdown"}return t}Ln.resolveCommonLanguageId=_U});var Bd=O(($d,Hd)=>{var SU=$d&&$d.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))};(function(e){if(typeof Hd=="object"&&typeof Hd.exports=="object"){var t=e(require,$d);t!==void 0&&(Hd.exports=t)}else typeof define=="function"&&define.amd&&define(["require","exports"],e)})(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocument=void 0;var n=function(){function a(c,u,d,h){this._uri=c,this._languageId=u,this._version=d,this._content=h,this._lineOffsets=void 0}return Object.defineProperty(a.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),a.prototype.getText=function(c){if(c){var u=this.offsetAt(c.start),d=this.offsetAt(c.end);return this._content.substring(u,d)}return this._content},a.prototype.update=function(c,u){for(var d=0,h=c;d<h.length;d++){var f=h[d];if(a.isIncremental(f)){var p=o(f.range),m=this.offsetAt(p.start),g=this.offsetAt(p.end);this._content=this._content.substring(0,m)+f.text+this._content.substring(g,this._content.length);var b=Math.max(p.start.line,0),y=Math.max(p.end.line,0),v=this._lineOffsets,T=s(f.text,!1,m);if(y-b===T.length)for(var k=0,R=T.length;k<R;k++)v[k+b+1]=T[k];else T.length<1e4?v.splice.apply(v,SU([b+1,y-b],T,!1)):this._lineOffsets=v=v.slice(0,b+1).concat(T,v.slice(y+1));var w=f.text.length-(g-m);if(w!==0)for(var k=b+1+T.length,R=v.length;k<R;k++)v[k]=v[k]+w}else if(a.isFull(f))this._content=f.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=u},a.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=s(this._content,!0)),this._lineOffsets},a.prototype.positionAt=function(c){c=Math.max(Math.min(c,this._content.length),0);var u=this.getLineOffsets(),d=0,h=u.length;if(h===0)return{line:0,character:c};for(;d<h;){var f=Math.floor((d+h)/2);u[f]>c?h=f:d=f+1}var p=d-1;return{line:p,character:c-u[p]}},a.prototype.offsetAt=function(c){var u=this.getLineOffsets();if(c.line>=u.length)return this._content.length;if(c.line<0)return 0;var d=u[c.line],h=c.line+1<u.length?u[c.line+1]:this._content.length;return Math.max(Math.min(d+c.character,h),d)},Object.defineProperty(a.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),a.isIncremental=function(c){var u=c;return u!=null&&typeof u.text=="string"&&u.range!==void 0&&(u.rangeLength===void 0||typeof u.rangeLength=="number")},a.isFull=function(c){var u=c;return u!=null&&typeof u.text=="string"&&u.range===void 0&&u.rangeLength===void 0},a}(),r;(function(a){function c(h,f,p,m){return new n(h,f,p,m)}a.create=c;function u(h,f,p){if(h instanceof n)return h.update(f,p),h;throw new Error("TextDocument.update: document must be created by TextDocument.create")}a.update=u;function d(h,f){for(var p=h.getText(),m=i(f.map(l),function(R,w){var _=R.range.start.line-w.range.start.line;return _===0?R.range.start.character-w.range.start.character:_}),g=0,b=[],y=0,v=m;y<v.length;y++){var T=v[y],k=h.offsetAt(T.range.start);if(k<g)throw new Error("Overlapping edit");k>g&&b.push(p.substring(g,k)),T.newText.length&&b.push(T.newText),g=h.offsetAt(T.range.end)}return b.push(p.substr(g)),b.join("")}a.applyEdits=d})(r||(t.TextDocument=r={}));function i(a,c){if(a.length<=1)return a;var u=a.length/2|0,d=a.slice(0,u),h=a.slice(u);i(d,c),i(h,c);for(var f=0,p=0,m=0;f<d.length&&p<h.length;){var g=c(d[f],h[p]);g<=0?a[m++]=d[f++]:a[m++]=h[p++]}for(;f<d.length;)a[m++]=d[f++];for(;p<h.length;)a[m++]=h[p++];return a}function s(a,c,u){u===void 0&&(u=0);for(var d=c?[u]:[],h=0;h<a.length;h++){var f=a.charCodeAt(h);(f===13||f===10)&&(f===13&&h+1<a.length&&a.charCodeAt(h+1)===10&&h++,d.push(u+h+1))}return d}function o(a){var c=a.start,u=a.end;return c.line>u.line||c.line===u.line&&c.character>u.character?{start:u,end:c}:a}function l(a){var c=o(a.range);return c!==a.range?{newText:a.newText,range:c}:a}})});var Gd=O(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.createDocumentProvider=As.LinkedCodeMapWithDocument=As.SourceMapWithDocuments=void 0;var V1=qe(),xU=Bd(),Qc=class{constructor(t,n,r){this.sourceFileDocument=t,this.virtualFileDocument=n,this.map=r}getSourceRange(t,n=()=>!0){for(let r of this.getSourceRanges(t,n))return r}getGeneratedRange(t,n=()=>!0){for(let r of this.getGeneratedRanges(t,n))return r}*getSourceRanges(t,n=()=>!0){for(let r of this.findRanges(t,n,"getSourcePositionsBase","matchSourcePosition"))yield r}*getGeneratedRanges(t,n=()=>!0){for(let r of this.findRanges(t,n,"getGeneratedPositionsBase","matchGeneratedPosition"))yield r}*findRanges(t,n,r,i){let s=[];for(let o of this[r](t.start,n)){let l=this[i](t.end,o[1]);l?yield{start:o[0],end:l}:s.push(o)}for(let o of s)for(let l of this[r](t.end,n))yield{start:o[0],end:l[0]}}getSourcePosition(t,n=()=>!0){for(let r of this.getSourcePositions(t,n))return r}getGeneratedPosition(t,n=()=>!0){for(let r of this.getGeneratedPositions(t,n))return r}*getSourcePositions(t,n=()=>!0){for(let r of this.getSourcePositionsBase(t,n))yield r[0]}*getGeneratedPositions(t,n=()=>!0){for(let r of this.getGeneratedPositionsBase(t,n))yield r[0]}*getSourcePositionsBase(t,n=()=>!0){for(let r of this.findPositions(t,n,this.virtualFileDocument,this.sourceFileDocument,"generatedOffsets","sourceOffsets"))yield r}*getGeneratedPositionsBase(t,n=()=>!0){for(let r of this.findPositions(t,n,this.sourceFileDocument,this.virtualFileDocument,"sourceOffsets","generatedOffsets"))yield r}*findPositions(t,n,r,i,s,o){for(let l of this.map.findMatching(r.offsetAt(t),s,o))n(l[1].data)&&(yield[i.positionAt(l[0]),l[1]])}matchSourcePosition(t,n){let r=(0,V1.translateOffset)(this.virtualFileDocument.offsetAt(t),n.generatedOffsets,n.sourceOffsets,n.lengths);if(r!==void 0)return this.sourceFileDocument.positionAt(r)}matchGeneratedPosition(t,n){let r=(0,V1.translateOffset)(this.sourceFileDocument.offsetAt(t),n.sourceOffsets,n.generatedOffsets,n.lengths);if(r!==void 0)return this.virtualFileDocument.positionAt(r)}};As.SourceMapWithDocuments=Qc;var Vd=class extends Qc{constructor(t,n){super(t,t,n),this.document=t,this.linkedMap=n}*getLinkedCodePositions(t){for(let n of this.linkedMap.getLinkedOffsets(this.document.offsetAt(t)))yield this.document.positionAt(n)}};As.LinkedCodeMapWithDocument=Vd;function CU(e){let t=0,n=new WeakMap,r=new WeakMap,i=new WeakMap;return{get:s,*getMaps(o){for(let[l,[a,c]]of e.getMaps(o))n.has(c)||n.set(c,new Qc(s(l,e.get(l).languageId,a),s(this.getVirtualCodeUri(l,o.id),o.languageId,o.snapshot),c)),yield n.get(c)},getLinkedCodeMap(o){let l=e.getLinkedCodeMap(o);if(l)return r.has(l)||r.set(l,new Vd(s(this.getVirtualCodeUri(e.getByVirtualCode(o).id,o.id),o.languageId,o.snapshot),l)),r.get(l)},getVirtualCodeByUri(o){if(o.includes("?virtualCodeId=")){let l=o.split("?virtualCodeId=")[0],a=o.split("?virtualCodeId=")[1];return e.getVirtualCode(l,a)}return[void 0,void 0]},getVirtualCodeUri(o,l){return o+`?virtualCodeId=${l}`}};function s(o,l,a){i.has(a)||i.set(a,new Map);let c=i.get(a);return c.has(o)||c.set(o,xU.TextDocument.create(o,l,t++,a.getText(0,a.getLength()))),c.get(o)}}As.createDocumentProvider=CU});var St=O(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.getEmbeddedFilesByLevel=dr.eachEmbeddedDocument=dr.safeCall=dr.languageFeatureWorker=dr.documentFeatureWorker=void 0;async function kU(e,t,n,r,i,s){return G1(e,t,()=>{},function*(o){n(o)&&(yield)},r,i,s)}dr.documentFeatureWorker=kU;async function G1(e,t,n,r,i,s,o){let l=e.language.files.get(t);if(!l)return;let a=[];if(l.generated)for(let c of qv(e,l.generated.code))for(let u of r(c))for(let[d,h]of Object.entries(e.services)){if(e.disabledServicePlugins.has(h[1]))continue;let f=await zv(()=>i(h,c.virtualFileDocument,u,c),"service "+d+" crashed on "+c.virtualFileDocument.uri);if(!f)continue;let p=s(f,c);if(p&&(a.push(p),!o))break}else{let c=e.documents.get(t,l.languageId,l.snapshot),u=n();for(let[d,h]of Object.entries(e.services)){if(e.disabledServicePlugins.has(h[1]))continue;let f=await zv(()=>i(h,c,u,void 0),"service "+d+" crashed on "+t);if(!f)continue;let p=s(f,void 0);if(p&&(a.push(p),!o))break}}if(o&&a.length>0)return o(a);if(a.length>0)return a[0]}dr.languageFeatureWorker=G1;async function zv(e,t){try{return await e()}catch(n){console.warn(t,n)}}dr.safeCall=zv;function*qv(e,t,n=t){for(let r of t.embeddedCodes)yield*qv(e,r,n);for(let r of e.documents.getMaps(t))e.language.files.get(r.sourceFileDocument.uri)?.generated?.code===n&&!e.disabledVirtualFileUris.has(e.documents.getVirtualCodeUri(e.language.files.getByVirtualCode(t).id,t.id))&&(yield r)}dr.eachEmbeddedDocument=qv;function TU(e,t,n,r){let i=[[n]];for(;;){if(i.length>r)return i[r];let s=[];for(let o of i[i.length-1])s=s.concat(o.embeddedCodes.filter(l=>!e.disabledVirtualFileUris.has(e.documents.getVirtualCodeUri(t,l.id))));i.push(s)}}dr.getEmbeddedFilesByLevel=TU});var et=O(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.NoneCancellationToken=void 0;Kd.NoneCancellationToken={isCancellationRequested:!1,onCancellationRequested:()=>({dispose:()=>{}})}});var J1=O(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.register=void 0;var EU=St(),DU=et(),K1=qe();function RU(e){return(t,n,r,i=DU.NoneCancellationToken)=>(0,EU.languageFeatureWorker)(e,t,()=>({position:n,lastChange:r}),function*(s){for(let o of s.getGeneratedPositions(n,K1.isAutoInsertEnabled)){let l=s.getGeneratedRange(r.range);l&&(yield{position:o,lastChange:{text:r.text,range:l}})}},(s,o,l)=>{if(!i.isCancellationRequested)return s[1].provideAutoInsertionEdit?.(o,l.position,l.lastChange,i)},(s,o)=>{if(!o||typeof s=="string")return s;let l=o.getSourceRange(s.range,K1.isAutoInsertEnabled);if(l)return s.range=l,s})}Jd.register=RU});var Yt=O(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.notEmpty=hr.sleep=hr.stringToSnapshot=hr.isInsideRange=hr.getOverlapRange=void 0;function AU(e,t,n,r){let i=Math.max(e,n),s=Math.min(t,r);if(!(i>s))return{start:i,end:s}}hr.getOverlapRange=AU;function FU(e,t){return!(t.start.line<e.start.line||t.end.line>e.end.line||t.start.line===e.start.line&&t.start.character<e.start.character||t.end.line===e.end.line&&t.end.character>e.end.character)}hr.isInsideRange=FU;function PU(e){return{getText:(t,n)=>e.substring(t,n),getLength:()=>e.length,getChangeRange:()=>{}}}hr.stringToSnapshot=PU;function IU(e){return new Promise(t=>setTimeout(t,e))}hr.sleep=IU;function MU(e){return e!=null}hr.notEmpty=MU});var ui=O(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.withRanges=qt.withCallHierarchyOutgoingCalls=qt.withCallHierarchyIncomingCalls=qt.withLocationLinks=qt.withLocations=qt.withDiagnostics=qt.withDocumentChanges=qt.withTextEdits=qt.withCodeAction=qt.createLocationSet=void 0;function OU(){let e=new Set;return{add:t,has:n};function t(i){return n(i)?!1:(e.add(r(i)),!0)}function n(i){return e.has(r(i))}function r(i){return[i.uri,i.range.start.line,i.range.start.character,i.range.end.line,i.range.end.character].join(":")}}qt.createLocationSet=OU;function LU(e){return Bi(e,t=>[t.title].join(":"))}qt.withCodeAction=LU;function NU(e){return Bi(e,t=>[t.range.start.line,t.range.start.character,t.range.end.line,t.range.end.character,t.newText].join(":"))}qt.withTextEdits=NU;function zU(e){return Bi(e,t=>JSON.stringify(t))}qt.withDocumentChanges=zU;function qU(e){return Bi(e,t=>[t.range.start.line,t.range.start.character,t.range.end.line,t.range.end.character,t.source,t.code,t.severity,t.message].join(":"))}qt.withDiagnostics=qU;function WU(e){return Bi(e,t=>[t.uri,t.range.start.line,t.range.start.character,t.range.end.line,t.range.end.character].join(":"))}qt.withLocations=WU;function jU(e){return Bi(e,t=>[t.targetUri,t.targetSelectionRange.start.line,t.targetSelectionRange.start.character,t.targetSelectionRange.end.line,t.targetSelectionRange.end.character].join(":"))}qt.withLocationLinks=jU;function UU(e){return Bi(e,t=>[t.from.uri,t.from.range.start.line,t.from.range.start.character,t.from.range.end.line,t.from.range.end.character].join(":"))}qt.withCallHierarchyIncomingCalls=UU;function HU(e){return Bi(e,t=>[t.to.uri,t.to.range.start.line,t.to.range.start.character,t.to.range.end.line,t.to.range.end.character].join(":"))}qt.withCallHierarchyOutgoingCalls=HU;function $U(e){return Bi(e,t=>[t.start.line,t.start.character,t.end.line,t.end.character].join(":"))}qt.withRanges=$U;function Bi(e,t){let n=new Map;for(let r of e.reverse())n.set(t(r),r);return[...n.values()]}});var Q1=O(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.register=void 0;var X1=Yt(),Wv=ui(),BU=St(),VU=et(),GU=qe();function KU(e){return{doPrepare(n,r,i=VU.NoneCancellationToken){return(0,BU.languageFeatureWorker)(e,n,()=>r,s=>s.getGeneratedPositions(r,o=>(0,GU.isCallHierarchyEnabled)(o)),async(s,o,l,a)=>{if(i.isCancellationRequested)return;let c=await s[1].provideCallHierarchyItems?.(o,l,i);return c?.forEach(u=>{u.data={uri:n,original:{data:u.data},serviceIndex:e.services.indexOf(s),virtualDocumentUri:a?.virtualFileDocument.uri}}),c},(s,o)=>o?s.map(l=>t(l,[])?.[0]).filter(X1.notEmpty):s,s=>Wv.withLocations(s.flat()))},async getIncomingCalls(n,r){let i=n.data,s=[];if(i){let o=e.services[i.serviceIndex];if(!o[1].provideCallHierarchyIncomingCalls)return s;if(Object.assign(n,i.original),i.virtualDocumentUri){let[l]=e.documents.getVirtualCodeByUri(i.virtualDocumentUri);if(l){let a=await o[1].provideCallHierarchyIncomingCalls(n,r);for(let c of a){let u=t(c.from,c.fromRanges);u&&s.push({from:u[0],fromRanges:u[1]})}}}else{let l=await o[1].provideCallHierarchyIncomingCalls(n,r);for(let a of l){let c=t(a.from,a.fromRanges);c&&s.push({from:c[0],fromRanges:c[1]})}}}return Wv.withCallHierarchyIncomingCalls(s)},async getOutgoingCalls(n,r){let i=n.data,s=[];if(i){let o=e.services[i.serviceIndex];if(!o[1].provideCallHierarchyOutgoingCalls)return s;if(Object.assign(n,i.original),i.virtualDocumentUri){let[l]=e.documents.getVirtualCodeByUri(i.virtualDocumentUri);if(l){let a=await o[1].provideCallHierarchyOutgoingCalls(n,r);for(let c of a){let u=t(c.to,c.fromRanges);u&&s.push({to:u[0],fromRanges:u[1]})}}}else{let l=await o[1].provideCallHierarchyOutgoingCalls(n,r);for(let a of l){let c=t(a.to,a.fromRanges);c&&s.push({to:c[0],fromRanges:c[1]})}}}return Wv.withCallHierarchyOutgoingCalls(s)}};function t(n,r){let[i]=e.documents.getVirtualCodeByUri(n.uri);if(!i)return[n,r];for(let s of e.documents.getMaps(i)){let o=s.getSourceRange(n.range);o||(o={start:s.sourceFileDocument.positionAt(0),end:s.sourceFileDocument.positionAt(s.sourceFileDocument.getText().length)});let l=s.getSourceRange(n.selectionRange);if(!l)continue;let a=r.map(u=>s.getSourceRange(u)).filter(X1.notEmpty);return[{...n,name:n.name===s.virtualFileDocument.uri.substring(s.virtualFileDocument.uri.lastIndexOf("/")+1)?s.sourceFileDocument.uri.substring(s.sourceFileDocument.uri.lastIndexOf("/")+1):n.name,uri:s.sourceFileDocument.uri,range:{start:o.start,end:o.end},selectionRange:{start:l.start,end:l.end}},a]}}}Xd.register=KU});var Nn=O(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.pushEditToDocumentChanges=gt.transformWorkspaceEdit=gt.transformWorkspaceSymbol=gt.transformTextEdit=gt.transformSelectionRanges=gt.transformSelectionRange=gt.transformLocations=gt.transformLocation=gt.transformHover=gt.transformFoldingRanges=gt.transformDocumentSymbol=gt.transformCompletionList=gt.transformCompletionItem=void 0;var Qd=qe(),Yd=Yt();function Y1(e,t,n){return{...e,additionalTextEdits:e.additionalTextEdits?.map(r=>Uv(r,t,n)).filter(Yd.notEmpty),textEdit:e.textEdit?Uv(e.textEdit,t,n):void 0}}gt.transformCompletionItem=Y1;function JU(e,t,n){return{isIncomplete:e.isIncomplete,itemDefaults:e.itemDefaults?{...e.itemDefaults,editRange:e.itemDefaults.editRange?"replace"in e.itemDefaults.editRange?{insert:t(e.itemDefaults.editRange.insert),replace:t(e.itemDefaults.editRange.replace)}:t(e.itemDefaults.editRange):void 0}:void 0,items:e.items.map(r=>Y1(r,t,n))}}gt.transformCompletionList=JU;function Z1(e,t){let n=t(e.range);if(!n)return;let r=t(e.selectionRange);if(r)return{...e,range:n,selectionRange:r,children:e.children?.map(i=>Z1(i,t)).filter(Yd.notEmpty)}}gt.transformDocumentSymbol=Z1;function XU(e,t){let n=[];for(let r of e){let i=t({start:{line:r.startLine,character:r.startCharacter??0},end:{line:r.endLine,character:r.endCharacter??0}});i&&(r.startLine=i.start.line,r.endLine=i.end.line,r.startCharacter!==void 0&&(r.startCharacter=i.start.character),r.endCharacter!==void 0&&(r.endCharacter=i.end.character),n.push(r))}return n}gt.transformFoldingRanges=XU;function QU(e,t){if(!e?.range)return e;let n=t(e.range);if(n)return{...e,range:n}}gt.transformHover=QU;function ek(e,t){let n=t(e.range);if(n)return{...e,range:n}}gt.transformLocation=ek;function YU(e,t){return e.map(n=>ek(n,t)).filter(Yd.notEmpty)}gt.transformLocations=YU;function Hv(e,t){let n=t(e.range);if(!n)return;let r=e.parent?Hv(e.parent,t):void 0;return{range:n,parent:r}}gt.transformSelectionRange=Hv;function ZU(e,t){return e.map(n=>Hv(n,t)).filter(Yd.notEmpty)}gt.transformSelectionRanges=ZU;function Uv(e,t,n){if("range"in e){let r=t(e.range);if(r)return{...e,range:r};let i=jv(t,e.range,e.newText,n);if(i)return{...e,range:i.range,newText:i.newText}}else if("replace"in e&&"insert"in e){let r=t(e.insert),i=r?t(e.replace):void 0;if(r&&i)return{...e,insert:r,replace:i};let s=jv(t,e.insert,e.newText,n),o=s?jv(t,e.replace,e.newText,n):void 0;if(s&&o&&s.newText===o.newText)return{...e,insert:s.range,replace:o.range,newText:s.newText}}}gt.transformTextEdit=Uv;function jv(e,t,n,r){if(t.start.line===t.end.line&&t.end.character>t.start.character){let i=t.start.character;for(;n.length&&t.end.character>i;){let s={line:t.start.line,character:t.start.character+1};if(r.getText({start:t.start,end:s})===n[0]){n=n.slice(1),i++;let o=e({start:s,end:t.end});if(o)return{newText:n,range:o}}else break}}}function e4(e,t){if(!("range"in e.location))return e;let n=t(e.location);if(n)return{...e,location:n}}gt.transformWorkspaceSymbol=e4;function t4(e,{documents:t},n,r={}){let i={},s=!1;for(let o in e.changeAnnotations){i.changeAnnotations??={};let l=e.changeAnnotations[o],[a]=t.getVirtualCodeByUri(o);if(a)for(let c of t.getMaps(a)){let u=c.sourceFileDocument.uri;i.changeAnnotations[u]=l}else i.changeAnnotations[o]=l}for(let o in e.changes){i.changes??={};let[l]=t.getVirtualCodeByUri(o);if(l)for(let a of t.getMaps(l)){let c=e.changes[o];for(let u of c)if(n==="rename"||n==="fileName"||n==="codeAction"){let d,h=a.getSourceRange(u.range,f=>(d=f,(0,Qd.isRenameEnabled)(f)));h&&(i.changes[a.sourceFileDocument.uri]??=[],i.changes[a.sourceFileDocument.uri].push({newText:(0,Qd.resolveRenameEditText)(u.newText,d),range:h}),s=!0)}else{let d=a.getSourceRange(u.range);d&&(i.changes[a.sourceFileDocument.uri]??=[],i.changes[a.sourceFileDocument.uri].push({newText:u.newText,range:d}),s=!0)}}else i.changes[o]=e.changes[o],s=!0}if(e.documentChanges)for(let o of e.documentChanges){i.documentChanges??=[];let l;if("textDocument"in o){let[a]=t.getVirtualCodeByUri(o.textDocument.uri);if(a)for(let c of t.getMaps(a)){l={textDocument:{uri:c.sourceFileDocument.uri,version:r[c.sourceFileDocument.uri]??null},edits:[]};for(let u of o.edits)if(n==="rename"||n==="fileName"||n==="codeAction"){let d,h=c.getSourceRange(u.range,f=>(d=f,(0,Qd.isRenameEnabled)(f)));h&&l.edits.push({annotationId:"annotationId"in u?u.annotationId:void 0,newText:(0,Qd.resolveRenameEditText)(u.newText,d),range:h})}else{let d=c.getSourceRange(u.range);d&&l.edits.push({annotationId:"annotationId"in u?u.annotationId:void 0,newText:u.newText,range:d})}l.edits.length||(l=void 0)}else l=o}else if(o.kind==="create")l=o;else if(o.kind==="rename"){let[a]=t.getVirtualCodeByUri(o.oldUri);if(a)for(let c of t.getMaps(a))l={kind:"rename",oldUri:c.sourceFileDocument.uri,newUri:o.newUri,options:o.options,annotationId:o.annotationId};else l=o}else if(o.kind==="delete"){let[a]=t.getVirtualCodeByUri(o.uri);if(a)for(let c of t.getMaps(a))l={kind:"delete",uri:c.sourceFileDocument.uri,options:o.options,annotationId:o.annotationId};else l=o}l&&(tk(i.documentChanges,l),s=!0)}if(s)return i}gt.transformWorkspaceEdit=t4;function tk(e,t){let n=e.find(r=>"textDocument"in r&&"textDocument"in t&&r.textDocument.uri===t.textDocument.uri);n?n.edits.push(...t.edits):e.push(t)}gt.pushEditToDocumentChanges=tk});var ik=O(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.register=void 0;var n4=et(),nk=Yt(),r4=ui(),i4=St(),rk=Nn(),s4=qe();function o4(e){return async(t,n,r,i=n4.NoneCancellationToken)=>{let s=e.language.files.get(t);if(!s)return;let o=e.documents.get(t,s.languageId,s.snapshot),l={start:o.offsetAt(n.start),end:o.offsetAt(n.end)},a=new WeakSet;return await(0,i4.languageFeatureWorker)(e,t,()=>({range:n,codeActionContext:r}),function*(c){if(c.map.mappings.some(u=>(0,s4.isCodeActionsEnabled)(u.data))){let u={diagnostics:(0,rk.transformLocations)(r.diagnostics,f=>c.getGeneratedRange(f)),only:r.only},d,h;for(let f of c.map.mappings){let p=(0,nk.getOverlapRange)(l.start,l.end,f.sourceOffsets[0],f.sourceOffsets[f.sourceOffsets.length-1]+f.lengths[f.lengths.length-1]);if(p){let m=c.map.getGeneratedOffset(p.start)?.[0],g=c.map.getGeneratedOffset(p.end)?.[0];m!==void 0&&g!==void 0&&(d=d===void 0?m:Math.min(m,d),h=h===void 0?g:Math.max(g,h))}}d!==void 0&&h!==void 0&&(yield{range:{start:c.virtualFileDocument.positionAt(d),end:c.virtualFileDocument.positionAt(h)},codeActionContext:u})}},async(c,u,{range:d,codeActionContext:h})=>{if(i.isCancellationRequested)return;let f=e.services.indexOf(c),p=h.diagnostics.filter(g=>{let b=g.data;return b&&b.version!==u.version?!1:b?.serviceIndex===f}).map(g=>{let b=g.data;return{...g,...b.original}}),m=await c[1].provideCodeActions?.(u,d,{...h,diagnostics:p},i);if(m?.forEach(g=>{g.data={uri:t,version:u.version,original:{data:g.data,edit:g.edit},serviceIndex:e.services.indexOf(c)}}),m&&c[1].transformCodeAction)for(let g=0;g<m.length;g++){let b=c[1].transformCodeAction(m[g]);b&&(m[g]=b,a.add(b))}return m},c=>c.map(u=>{if(a.has(u))return u;if(u.edit){let d=(0,rk.transformWorkspaceEdit)(u.edit,e,"codeAction");if(!d)return;u.edit=d}return u}).filter(nk.notEmpty),c=>r4.withCodeAction(c.flat()))}}Zd.register=o4});var ok=O(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.register=void 0;var a4=et(),l4=Yt(),c4=St(),sk=qe();function u4(e){return async(t,n=a4.NoneCancellationToken)=>await(0,c4.documentFeatureWorker)(e,t,r=>r.map.mappings.some(i=>(0,sk.isCodeLensEnabled)(i.data)),async(r,i)=>{if(n.isCancellationRequested)return;let s=await r[1].provideCodeLenses?.(i,n),o=e.services.indexOf(r);s?.forEach(c=>{c.data={kind:"normal",uri:t,original:{data:c.data},serviceIndex:o}});let a=(await r[1].provideReferencesCodeLensRanges?.(i,n))?.map(c=>({range:c,data:{kind:"references",sourceFileUri:t,workerFileUri:i.uri,workerFileRange:c,serviceIndex:o}}));return s=[...s??[],...a??[]],s},(r,i)=>i?r.map(s=>{let o=i.getSourceRange(s.range,sk.isCodeLensEnabled);if(o)return{...s,range:o}}).filter(l4.notEmpty):r,r=>r.flat())??[]}eh.register=u4});var ak=O(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.register=void 0;var d4=St(),h4=Yt(),p4=et(),f4=qe();function m4(e){return(t,n,r,i=p4.NoneCancellationToken)=>(0,d4.languageFeatureWorker)(e,t,()=>r,function*(s){for(let o of s.getGeneratedRanges(r,f4.isColorEnabled))yield o},(s,o,l)=>{if(!i.isCancellationRequested)return s[1].provideColorPresentations?.(o,n,l,i)},(s,o)=>o?s.map(l=>{if(l.textEdit){let a=o.getSourceRange(l.textEdit.range);if(!a)return;l.textEdit.range=a}if(l.additionalTextEdits)for(let a of l.additionalTextEdits){let c=o.getSourceRange(a.range);if(!c)return;a.range=c}return l}).filter(h4.notEmpty):s)}th.register=m4});var ck=O(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.register=void 0;var $v=qe(),g4=et(),lk=Nn(),b4=St();function v4(e){let t;return async(n,r,i={triggerKind:1},s=g4.NoneCancellationToken)=>{let o=e.language.files.get(n);if(!o)return{isIncomplete:!1,items:[]};if(i?.triggerKind===3&&t?.uri===n)for(let c of t.results){if(!c.list?.isIncomplete)continue;let u=e.services.findIndex(d=>d[1]===c.service);if(c.virtualDocumentUri){let[d]=e.documents.getVirtualCodeByUri(c.virtualDocumentUri);if(!d)continue;for(let h of e.documents.getMaps(d))for(let f of h.getGeneratedPositions(r,p=>(0,$v.isCompletionEnabled)(p)))if(c.service.provideCompletionItems&&(c.list=await c.service.provideCompletionItems(h.virtualFileDocument,f,i,s),!!c.list)){for(let p of c.list.items)p.data={uri:n,original:{additionalTextEdits:p.additionalTextEdits,textEdit:p.textEdit,data:p.data},serviceIndex:u,virtualDocumentUri:h.virtualFileDocument.uri};c.list=(0,lk.transformCompletionList)(c.list,p=>h.getSourceRange(p),h.virtualFileDocument)}}else{if(!c.service.provideCompletionItems)continue;let d=e.documents.get(n,o.languageId,o.snapshot);if(c.list=await c.service.provideCompletionItems(d,r,i,s),!c.list)continue;for(let h of c.list.items)h.data={uri:n,original:{additionalTextEdits:h.additionalTextEdits,textEdit:h.textEdit,data:h.data},serviceIndex:u,virtualDocumentUri:void 0}}}else{t={uri:n,results:[]};let c=!0,u,d=[...e.services].filter(f=>!e.disabledServicePlugins.has(f[1])).sort((f,p)=>l(f[1],p[1])),h=async(f,p,m,g)=>{for(let b of d){if(s.isCancellationRequested)break;if(!b[1].provideCompletionItems||b[1].isAdditionalCompletion&&!c||i?.triggerCharacter&&!b[0].triggerCharacters?.includes(i.triggerCharacter))continue;let y=g&&typeof g.completion=="object"&&g.completion.isAdditional||b[1].isAdditionalCompletion;if(u&&(!y||u!==f.uri)||b[1].isAdditionalCompletion&&t?.results.some(k=>k.service===b[1]))continue;let v=await b[1].provideCompletionItems(f,p,i,s);if(!v||!v.items.length)continue;typeof g?.completion=="object"&&g.completion.onlyImport&&(v.items=v.items.filter(k=>!!k.labelDetails)),y||(u=f.uri);let T=e.services.indexOf(b);for(let k of v.items)k.data={uri:n,original:{additionalTextEdits:k.additionalTextEdits,textEdit:k.textEdit,data:k.data},serviceIndex:T,virtualDocumentUri:m?f.uri:void 0};m&&(v=(0,lk.transformCompletionList)(v,k=>m.getSourceRange(k,$v.isCompletionEnabled),f)),t?.results.push({virtualDocumentUri:m?f.uri:void 0,service:b[1],list:v})}c=!1};if(o.generated)for(let f of(0,b4.eachEmbeddedDocument)(e,o.generated.code)){let p;for(let m of f.getGeneratedPositions(r,g=>(p=g,(0,$v.isCompletionEnabled)(g))))await h(f.virtualFileDocument,m,f,p)}else{let f=e.documents.get(n,o.languageId,o.snapshot);await h(f,r)}}return a(t.results.map(c=>c.list));function l(c,u){return(u.isAdditionalCompletion?-1:1)-(c.isAdditionalCompletion?-1:1)}function a(c){return{isIncomplete:c.some(u=>u?.isIncomplete),itemDefaults:c.find(u=>u?.itemDefaults)?.itemDefaults,items:c.map(u=>u?.items??[]).flat()}}}}nh.register=v4});var dk=O(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.register=void 0;var y4=et(),w4=Yt(),uk=ui(),_4=St();function S4(e,t,n){return(r,i,s=y4.NoneCancellationToken)=>(0,_4.languageFeatureWorker)(e,r,()=>i,o=>o.getGeneratedPositions(i,n),async(o,l,a)=>{if(s.isCancellationRequested)return;let c=uk.createLocationSet(),u=[];return await d(l,a,void 0),u;async function d(h,f,p){let m=o[1][t];if(!m||c.has({uri:h.uri,range:{start:f,end:f}}))return;c.add({uri:h.uri,range:{start:f,end:f}});let g=await m?.(h,f,s)??[];for(let b of g){let y=!1;c.add({uri:b.targetUri,range:{start:b.targetRange.start,end:b.targetRange.start}});let[v]=e.documents.getVirtualCodeByUri(b.targetUri),T=v?e.documents.getLinkedCodeMap(v):void 0;if(T)for(let k of T.getLinkedCodePositions(b.targetSelectionRange.start))c.has({uri:T.document.uri,range:{start:k,end:k}})||(y=!0,await d(T.document,k,p??b));y||(p?u.push({...b,originSelectionRange:p.originSelectionRange}):u.push(b))}}},(o,l)=>o.map(a=>{if(a.originSelectionRange&&l){let d=x4(l,a.originSelectionRange,i);if(!d)return;a.originSelectionRange=d}let c=!1,[u]=e.documents.getVirtualCodeByUri(a.targetUri);if(u){for(let d of e.documents.getMaps(u)){let h=d.getSourceRange(a.targetSelectionRange);if(!h)continue;c=!0;let f=d.getSourceRange(a.targetRange);a.targetUri=d.sourceFileDocument.uri,a.targetRange=f??h,a.targetSelectionRange=h}if(t==="provideDefinition"&&!c){for(let d of e.documents.getMaps(u))if(d&&d.sourceFileDocument.uri!==r)return{...a,targetUri:d.sourceFileDocument.uri,targetRange:{start:{line:0,character:0},end:{line:0,character:0}},targetSelectionRange:{start:{line:0,character:0},end:{line:0,character:0}}};return}}return a}).filter(w4.notEmpty),o=>uk.withLocationLinks(o.flat()))}rh.register=S4;function x4(e,t,n){let r;for(let i of e.getSourceRanges(t))if(r||(r=i),(i.start.line<n.line||i.start.line===n.line&&i.start.character<=n.character)&&(i.end.line>n.line||i.end.line===n.line&&i.end.character>=n.character))return i;return r}});var Bv=O(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.register=di.errorMarkups=di.updateRange=void 0;var hk=qe(),C4=et(),k4=Yt(),T4=ui(),E4=St();function fk(e,t){if(pk(e.start,t,!1)&&pk(e.end,t,!0))return e.end.line===e.start.line&&e.end.character<=e.start.character&&e.end.character++,e}di.updateRange=fk;function pk(e,t,n){if(t.range.end.line>e.line){if(t.newEnd.line>e.line)return!0;if(t.newEnd.line===e.line)return e.character=Math.min(e.character,t.newEnd.character),!0;if(t.newEnd.line<e.line)return e.line=t.newEnd.line,e.character=t.newEnd.character,!0}else if(t.range.end.line===e.line){let r=t.newEnd.character-t.range.end.character;if(e.character>=t.range.end.character){if(t.newEnd.line!==t.range.end.line)e.line=t.newEnd.line,e.character=t.newEnd.character+e.character-t.range.end.character;else if(n?t.range.end.character<e.character:t.range.end.character<=e.character)e.character+=r;else{let i=t.range.end.character-e.character;-r>i&&(e.character+=r+i)}return!0}else{if(t.newEnd.line===t.range.end.line){let i=t.range.end.character-e.character;-r>i&&(e.character+=r+i)}else t.newEnd.line<t.range.end.line&&(e.line=t.newEnd.line,e.character=t.newEnd.character);return!0}}else if(t.range.end.line<e.line)return e.line+=t.newEnd.line-t.range.end.line,!0;return!1}di.errorMarkups={};function D4(e){let t=new Map,n={semantic:new Map,syntactic:new Map};return e.env.onDidChangeConfiguration?.(()=>{t.clear(),n.semantic.clear(),n.syntactic.clear()}),async(i,s=C4.NoneCancellationToken,o)=>{let l=e.language.files.get(i);if(!l)return[];let a=e.documents.get(i,l.languageId,l.snapshot),c=t.get(i)??t.set(i,{semantic:{errors:[]},syntactic:{errors:[]}}).get(i),u=!1,d=!1,h=0;for(let g of Object.values(c)){let b=g.snapshot,y=g.document,v=b?l.snapshot.getChangeRange(b):void 0;if(g.snapshot=l.snapshot,g.document=a,!u&&y&&v){let T={range:{start:y.positionAt(v.span.start),end:y.positionAt(v.span.start+v.span.length)},newEnd:a.positionAt(v.span.start+v.newLength)};for(let k of g.errors)if(!fk(k.range,T)){u=!0;break}}}return await m("provideDiagnostics",n.syntactic,c.syntactic),await f(),await m("provideSemanticDiagnostics",n.semantic,c.semantic),await p();async function f(){d&&!u&&(o?.(await p()),d=!1)}async function p(){let g=Object.values(c).flatMap(({errors:b})=>b);di.errorMarkups[i]=[];for(let b of g)for(let y of e.services){if(e.disabledServicePlugins.has(y[1]))continue;let v=await y[1].provideDiagnosticMarkupContent?.(b,s);v&&di.errorMarkups[i].push({error:b,markup:v})}return g}async function m(g,b,y){let v=await(0,E4.documentFeatureWorker)(e,i,T=>T.map.mappings.some(k=>(0,hk.isDiagnosticsEnabled)(k.data)),async(T,k)=>{if(s&&(Date.now()-h>=5&&(await(0,k4.sleep)(5),h=Date.now()),s.isCancellationRequested))return;let R=e.services.indexOf(T),w=b.get(R)??b.set(R,new Map).get(R),_=w.get(k.uri);if(g!=="provideSemanticDiagnostics"&&_&&_.documentVersion===k.version)return _.errors;let S=await T[1][g]?.(k,s);return S?.forEach(D=>{D.data={uri:i,version:k.version,serviceIndex:R,isFormat:!1,original:{data:D.data},documentUri:k.uri}}),d=!0,w.set(k.uri,{documentVersion:k.version,errors:S}),S},(T,k)=>r(T,k,hk.shouldReportDiagnostics),T=>T4.withDiagnostics(T.flat()));v&&(y.errors=v,y.snapshot=l?.snapshot)}};function r(i,s,o){let l=[];for(let a of i){let c={...a};if(s){let u=s.getSourceRange(a.range,o);if(!u)continue;c.range=u}if(c.relatedInformation){let u=[];for(let d of c.relatedInformation){let[h]=e.documents.getVirtualCodeByUri(d.location.uri);if(h)for(let f of e.documents.getMaps(h)){let p=f.getSourceRange(d.location.range,o);p&&u.push({location:{uri:f.sourceFileDocument.uri,range:p},message:d.message})}else u.push(d)}c.relatedInformation=u}l.push(c)}return l}}di.register=D4});var gk=O(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.register=void 0;var mk=qe(),R4=et(),A4=Yt(),F4=St();function P4(e){return(t,n=R4.NoneCancellationToken)=>(0,F4.documentFeatureWorker)(e,t,r=>r.map.mappings.some(i=>(0,mk.isColorEnabled)(i.data)),(r,i)=>{if(!n.isCancellationRequested)return r[1].provideDocumentColors?.(i,n)},(r,i)=>i?r.map(s=>{let o=i.getSourceRange(s.range,mk.isColorEnabled);if(o)return{range:o,color:s.color}}).filter(A4.notEmpty):r,r=>r.flat())}ih.register=P4});var bk=O(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.register=void 0;var I4=St(),M4=et(),O4=Nn();function L4(e){return(t,n,r,i=M4.NoneCancellationToken)=>(0,I4.languageFeatureWorker)(e,t,()=>n,function*(s){for(let o of s.getGeneratedPositions(n))yield o},(s,o,l)=>{if(!i.isCancellationRequested)return s[1].provideDocumentDropEdits?.(o,l,r,i)},s=>(s.additionalEdit&&(s.additionalEdit=(0,O4.transformWorkspaceEdit)(s.additionalEdit,e,void 0)),s))}sh.register=L4});var vk=O(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.register=void 0;var oh=qe(),Da=Bd(),N4=Gd(),z4=et(),ah=Yt(),q4=St();function W4(e){let t=0;return async(r,i,s,o,l=z4.NoneCancellationToken)=>{let a=e.language.files.get(r);if(!a)return;let c=e.documents.get(r,a.languageId,a.snapshot);if(s??={start:c.positionAt(0),end:c.positionAt(c.getText().length)},!a.generated)return o?(await b(c,o.position,o.ch))?.edits:(await b(c,s,void 0))?.edits;let u=await e.env.getConfiguration?.("volar.format.initialIndent")??{html:!0},d=a.snapshot,h=a.generated.languagePlugin.createVirtualCode(r,a.languageId,a.snapshot,e.language.files),f=c,p=0;for(;;){let y=(0,q4.getEmbeddedFilesByLevel)(e,a.id,h,p++);if(y.length===0)break;let v=[],T=[];for(let k of y){if(!k.mappings.some(S=>(0,oh.isFormattingEnabled)(S.data)))continue;let R=k.mappings.length===1&&k.mappings[0].sourceOffsets.length===1&&k.mappings[0].generatedOffsets[0]===0&&k.mappings[0].lengths[0]===k.snapshot.getLength();if(o&&!R)continue;let w=n(k,r,a.languageId,d);if(!w)continue;let _;if(o){let S=w.getGeneratedPosition(o.position);S&&(_=await b(w.virtualFileDocument,S,o.ch))}else _=await b(w.virtualFileDocument,{start:w.virtualFileDocument.positionAt(0),end:w.virtualFileDocument.positionAt(w.virtualFileDocument.getText().length)});if(_){T.push({virtualCodeId:k.id,isCodeBlock:R,service:_.service[1]});for(let S of _.edits){let D=w.getSourceRange(S.range);D&&v.push({newText:S.newText,range:D})}}}if(v=v.filter(k=>(0,ah.isInsideRange)(s,k.range)),v.length>0){let k=Da.TextDocument.applyEdits(c,v);c=Da.TextDocument.create(c.uri,c.languageId,c.version+1,k),d=(0,ah.stringToSnapshot)(k),h=a.generated.languagePlugin.updateVirtualCode(r,h,d,e.language.files)}if(p>1){let k=i.insertSpaces?" ".repeat(i.tabSize):" ",R=new Set;if(o)for(let w of v)for(let _=w.range.start.line;_<=w.range.end.line;_++)R.add(_);for(let w of T){let _;for(let A of(0,oh.forEachEmbeddedCode)(h))if(A.id===w.virtualCodeId){_=A;break}let S=n(_,r,a.languageId,d);if(!S)continue;let D=new Set;for(let A of w.service.provideFormattingIndentSensitiveLines?[w.service]:e.services.map(P=>P[1])){if(l.isCancellationRequested)break;if(A.provideFormattingIndentSensitiveLines){let P=await A.provideFormattingIndentSensitiveLines(S.virtualFileDocument,l);if(P)for(let I of P){let C=S.getSourcePosition({line:I,character:0})?.line;C!==void 0&&D.add(C)}}}let x=j4(c,w.isCodeBlock,S.map,u[S.virtualFileDocument.languageId]?k:"");if(x=x.filter(A=>{for(let P=A.range.start.line;P<=A.range.end.line;P++)if(D.has(P)&&!A.newText.includes(`
|
|
4
4
|
`)||o&&!R.has(P)||!(0,ah.isInsideRange)(s,A.range))return!1;return!0}),x.length>0){let A=Da.TextDocument.applyEdits(c,x);c=Da.TextDocument.create(c.uri,c.languageId,c.version+1,A),d=(0,ah.stringToSnapshot)(A),h=a.generated.languagePlugin.updateVirtualCode(r,h,d,e.language.files)}}}}if(c.getText()===f.getText())return;return[{range:{start:f.positionAt(0),end:f.positionAt(f.getText().length)},newText:c.getText()}];async function b(y,v,T){let k=v;for(let R of e.services){if(e.disabledServicePlugins.has(R[1]))continue;if(l.isCancellationRequested)break;let w;try{T!==void 0&&"line"in k&&"character"in k?R[0].autoFormatTriggerCharacters?.includes(T)&&(w=await R[1].provideOnTypeFormattingEdits?.(y,k,T,i,l)):T===void 0&&"start"in k&&"end"in k&&(w=await R[1].provideDocumentFormattingEdits?.(y,k,i,l))}catch(_){console.warn(_)}if(w)return{service:R,edits:w}}}};function n(r,i,s,o){let l=(0,oh.updateVirtualCodeMaps)(r,a=>{if(!a)return[i,o]});if(l.has(i)&&l.get(i)[0]===o){let a=l.get(i),c=t++;return new N4.SourceMapWithDocuments(Da.TextDocument.create(i,s??(0,oh.resolveCommonLanguageId)(i),c,o.getText(0,o.getLength())),Da.TextDocument.create(e.documents.getVirtualCodeUri(i,r.id),r.languageId,c,r.snapshot.getText(0,r.snapshot.getLength())),a[1])}}}lh.register=W4;function j4(e,t,n,r){let i=[];t||(r="");for(let o=0;o<n.mappings.length;o++){let l=n.mappings[o];for(let a=0;a<l.sourceOffsets.length;a++){let c=s(l.sourceOffsets[a]),u=e.getText().substring(l.sourceOffsets[a],l.sourceOffsets[a]+l.lengths[a]),d=u.split(`
|
|
5
5
|
`),h=c+r,f=d[0].length+1,p=!1;if(u.trim()&&(t&&u.trimStart().length===u.length&&i.push({newText:`
|
|
@@ -530,7 +530,7 @@ See [Browser compatibility](#Browser_compatibility) for notes on browser support
|
|
|
530
530
|
* a _positive value_ means that the element should be focusable and reachable via sequential keyboard navigation; the order in which the elements are focused is the increasing value of the [**tabindex**](#attr-tabindex). If several elements share the same tabindex, their relative order follows their relative positions in the document.`},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/tabindex"}]},{name:"title",description:{kind:"markdown",value:"Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip."},references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/title"}]},{name:"translate",description:{kind:"markdown",value:"An enumerated attribute that is used to specify whether an element's attribute values and the values of its [`Text`](https://developer.mozilla.org/docs/Web/API/Text \"The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.\") node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:\n\n* empty string and `yes`, which indicates that the element will be translated.\n* `no`, which indicates that the element will not be translated."},valueSet:"y",references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/HTML/Global_attributes/translate"}]},{name:"onabort",description:{kind:"markdown",value:"The loading of a resource has been aborted."}},{name:"onblur",description:{kind:"markdown",value:"An element has lost focus (does not bubble)."}},{name:"oncanplay",description:{kind:"markdown",value:"The user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content."}},{name:"oncanplaythrough",description:{kind:"markdown",value:"The user agent can play the media up to its end without having to stop for further buffering of content."}},{name:"onchange",description:{kind:"markdown",value:"The change event is fired for <input>, <select>, and <textarea> elements when a change to the element's value is committed by the user."}},{name:"onclick",description:{kind:"markdown",value:"A pointing device button has been pressed and released on an element."}},{name:"oncontextmenu",description:{kind:"markdown",value:"The right button of the mouse is clicked (before the context menu is displayed)."}},{name:"ondblclick",description:{kind:"markdown",value:"A pointing device button is clicked twice on an element."}},{name:"ondrag",description:{kind:"markdown",value:"An element or text selection is being dragged (every 350ms)."}},{name:"ondragend",description:{kind:"markdown",value:"A drag operation is being ended (by releasing a mouse button or hitting the escape key)."}},{name:"ondragenter",description:{kind:"markdown",value:"A dragged element or text selection enters a valid drop target."}},{name:"ondragleave",description:{kind:"markdown",value:"A dragged element or text selection leaves a valid drop target."}},{name:"ondragover",description:{kind:"markdown",value:"An element or text selection is being dragged over a valid drop target (every 350ms)."}},{name:"ondragstart",description:{kind:"markdown",value:"The user starts dragging an element or text selection."}},{name:"ondrop",description:{kind:"markdown",value:"An element is dropped on a valid drop target."}},{name:"ondurationchange",description:{kind:"markdown",value:"The duration attribute has been updated."}},{name:"onemptied",description:{kind:"markdown",value:"The media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it."}},{name:"onended",description:{kind:"markdown",value:"Playback has stopped because the end of the media was reached."}},{name:"onerror",description:{kind:"markdown",value:"A resource failed to load."}},{name:"onfocus",description:{kind:"markdown",value:"An element has received focus (does not bubble)."}},{name:"onformchange"},{name:"onforminput"},{name:"oninput",description:{kind:"markdown",value:"The value of an element changes or the content of an element with the attribute contenteditable is modified."}},{name:"oninvalid",description:{kind:"markdown",value:"A submittable element has been checked and doesn't satisfy its constraints."}},{name:"onkeydown",description:{kind:"markdown",value:"A key is pressed down."}},{name:"onkeypress",description:{kind:"markdown",value:"A key is pressed down and that key normally produces a character value (use input instead)."}},{name:"onkeyup",description:{kind:"markdown",value:"A key is released."}},{name:"onload",description:{kind:"markdown",value:"A resource and its dependent resources have finished loading."}},{name:"onloadeddata",description:{kind:"markdown",value:"The first frame of the media has finished loading."}},{name:"onloadedmetadata",description:{kind:"markdown",value:"The metadata has been loaded."}},{name:"onloadstart",description:{kind:"markdown",value:"Progress has begun."}},{name:"onmousedown",description:{kind:"markdown",value:"A pointing device button (usually a mouse) is pressed on an element."}},{name:"onmousemove",description:{kind:"markdown",value:"A pointing device is moved over an element."}},{name:"onmouseout",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached or off one of its children."}},{name:"onmouseover",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached or onto one of its children."}},{name:"onmouseup",description:{kind:"markdown",value:"A pointing device button is released over an element."}},{name:"onmousewheel"},{name:"onmouseenter",description:{kind:"markdown",value:"A pointing device is moved onto the element that has the listener attached."}},{name:"onmouseleave",description:{kind:"markdown",value:"A pointing device is moved off the element that has the listener attached."}},{name:"onpause",description:{kind:"markdown",value:"Playback has been paused."}},{name:"onplay",description:{kind:"markdown",value:"Playback has begun."}},{name:"onplaying",description:{kind:"markdown",value:"Playback is ready to start after having been paused or delayed due to lack of data."}},{name:"onprogress",description:{kind:"markdown",value:"In progress."}},{name:"onratechange",description:{kind:"markdown",value:"The playback rate has changed."}},{name:"onreset",description:{kind:"markdown",value:"A form is reset."}},{name:"onresize",description:{kind:"markdown",value:"The document view has been resized."}},{name:"onreadystatechange",description:{kind:"markdown",value:"The readyState attribute of a document has changed."}},{name:"onscroll",description:{kind:"markdown",value:"The document view or an element has been scrolled."}},{name:"onseeked",description:{kind:"markdown",value:"A seek operation completed."}},{name:"onseeking",description:{kind:"markdown",value:"A seek operation began."}},{name:"onselect",description:{kind:"markdown",value:"Some text is being selected."}},{name:"onshow",description:{kind:"markdown",value:"A contextmenu event was fired on/bubbled to an element that has a contextmenu attribute"}},{name:"onstalled",description:{kind:"markdown",value:"The user agent is trying to fetch media data, but data is unexpectedly not forthcoming."}},{name:"onsubmit",description:{kind:"markdown",value:"A form is submitted."}},{name:"onsuspend",description:{kind:"markdown",value:"Media data loading has been suspended."}},{name:"ontimeupdate",description:{kind:"markdown",value:"The time indicated by the currentTime attribute has been updated."}},{name:"onvolumechange",description:{kind:"markdown",value:"The volume has changed."}},{name:"onwaiting",description:{kind:"markdown",value:"Playback has stopped because of a temporary lack of data."}},{name:"onpointercancel",description:{kind:"markdown",value:"The pointer is unlikely to produce any more events."}},{name:"onpointerdown",description:{kind:"markdown",value:"The pointer enters the active buttons state."}},{name:"onpointerenter",description:{kind:"markdown",value:"Pointing device is moved inside the hit-testing boundary."}},{name:"onpointerleave",description:{kind:"markdown",value:"Pointing device is moved out of the hit-testing boundary."}},{name:"onpointerlockchange",description:{kind:"markdown",value:"The pointer was locked or released."}},{name:"onpointerlockerror",description:{kind:"markdown",value:"It was impossible to lock the pointer for technical reasons or because the permission was denied."}},{name:"onpointermove",description:{kind:"markdown",value:"The pointer changed coordinates."}},{name:"onpointerout",description:{kind:"markdown",value:"The pointing device moved out of hit-testing boundary or leaves detectable hover range."}},{name:"onpointerover",description:{kind:"markdown",value:"The pointing device is moved into the hit-testing boundary."}},{name:"onpointerup",description:{kind:"markdown",value:"The pointer leaves the active buttons state."}},{name:"aria-activedescendant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-activedescendant"}],description:{kind:"markdown",value:"Identifies the currently active element when DOM focus is on a [`composite`](https://www.w3.org/TR/wai-aria-1.1/#composite) widget, [`textbox`](https://www.w3.org/TR/wai-aria-1.1/#textbox), [`group`](https://www.w3.org/TR/wai-aria-1.1/#group), or [`application`](https://www.w3.org/TR/wai-aria-1.1/#application)."}},{name:"aria-atomic",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-atomic"}],description:{kind:"markdown",value:"Indicates whether [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology) will present all, or only parts of, the changed region based on the change notifications defined by the [`aria-relevant`](https://www.w3.org/TR/wai-aria-1.1/#aria-relevant) attribute."}},{name:"aria-autocomplete",valueSet:"autocomplete",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-autocomplete"}],description:{kind:"markdown",value:"Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made."}},{name:"aria-busy",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-busy"}],description:{kind:"markdown",value:"Indicates an element is being modified and that assistive technologies _MAY_ want to wait until the modifications are complete before exposing them to the user."}},{name:"aria-checked",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-checked"}],description:{kind:"markdown",value:'Indicates the current "checked" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of checkboxes, radio buttons, and other [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-colcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colcount"}],description:{kind:"markdown",value:"Defines the total number of columns in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex)."}},{name:"aria-colindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) column index or position with respect to the total number of columns within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-colcount) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-colspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-colspan"}],description:{kind:"markdown",value:"Defines the number of columns spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-colindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-colindex) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-controls",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-controls"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) whose contents or presence are controlled by the current element. See related [`aria-owns`](https://www.w3.org/TR/wai-aria-1.1/#aria-owns)."}},{name:"aria-current",valueSet:"current",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-current"}],description:{kind:"markdown",value:"Indicates the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that represents the current item within a container or set of related elements."}},{name:"aria-describedby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-describedby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that describes the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-disabled",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-disabled"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is [perceivable](https://www.w3.org/TR/wai-aria-1.1/#dfn-perceivable) but disabled, so it is not editable or otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-hidden`](https://www.w3.org/TR/wai-aria-1.1/#aria-hidden) and [`aria-readonly`](https://www.w3.org/TR/wai-aria-1.1/#aria-readonly)."}},{name:"aria-dropeffect",valueSet:"dropeffect",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-dropeffect"}],description:{kind:"markdown",value:"\\[Deprecated in ARIA 1.1\\] Indicates what functions can be performed when a dragged object is released on the drop target."}},{name:"aria-errormessage",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides an error message for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-invalid`](https://www.w3.org/TR/wai-aria-1.1/#aria-invalid) and [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-expanded",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-expanded"}],description:{kind:"markdown",value:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed."}},{name:"aria-flowto",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-flowto"}],description:{kind:"markdown",value:"Identifies the next [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order."}},{name:"aria-grabbed",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-grabbed"}],description:{kind:"markdown",value:`\\[Deprecated in ARIA 1.1\\] Indicates an element's "grabbed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) in a drag-and-drop operation.`}},{name:"aria-haspopup",valueSet:"haspopup",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup"}],description:{kind:"markdown",value:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-hidden",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-hidden"}],description:{kind:"markdown",value:"Indicates whether the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is exposed to an accessibility API. See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-invalid",valueSet:"invalid",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-invalid"}],description:{kind:"markdown",value:"Indicates the entered value does not conform to the format expected by the application. See related [`aria-errormessage`](https://www.w3.org/TR/wai-aria-1.1/#aria-errormessage)."}},{name:"aria-label",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-label"}],description:{kind:"markdown",value:"Defines a string value that labels the current element. See related [`aria-labelledby`](https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby)."}},{name:"aria-labelledby",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby"}],description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) that labels the current element. See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-level",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-level"}],description:{kind:"markdown",value:"Defines the hierarchical level of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) within a structure."}},{name:"aria-live",valueSet:"live",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-live"}],description:{kind:"markdown",value:"Indicates that an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) will be updated, and describes the types of updates the [user agents](https://www.w3.org/TR/wai-aria-1.1/#dfn-user-agent), [assistive technologies](https://www.w3.org/TR/wai-aria-1.1/#dfn-assistive-technology), and user can expect from the [live region](https://www.w3.org/TR/wai-aria-1.1/#dfn-live-region)."}},{name:"aria-modal",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-modal"}],description:{kind:"markdown",value:"Indicates whether an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is modal when displayed."}},{name:"aria-multiline",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiline"}],description:{kind:"markdown",value:"Indicates whether a text box accepts multiple lines of input or only a single line."}},{name:"aria-multiselectable",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-multiselectable"}],description:{kind:"markdown",value:"Indicates that the user may select more than one item from the current selectable descendants."}},{name:"aria-orientation",valueSet:"orientation",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-orientation"}],description:{kind:"markdown",value:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous."}},{name:"aria-owns",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-owns"}],description:{kind:"markdown",value:"Identifies an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) (or elements) in order to define a visual, functional, or contextual parent/child [relationship](https://www.w3.org/TR/wai-aria-1.1/#dfn-relationship) between DOM elements where the DOM hierarchy cannot be used to represent the relationship. See related [`aria-controls`](https://www.w3.org/TR/wai-aria-1.1/#aria-controls)."}},{name:"aria-placeholder",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-placeholder"}],description:{kind:"markdown",value:"Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format."}},{name:"aria-posinset",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-posinset"}],description:{kind:"markdown",value:"Defines an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)'s number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-setsize`](https://www.w3.org/TR/wai-aria-1.1/#aria-setsize)."}},{name:"aria-pressed",valueSet:"tristate",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-pressed"}],description:{kind:"markdown",value:'Indicates the current "pressed" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of toggle buttons. See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-selected`](https://www.w3.org/TR/wai-aria-1.1/#aria-selected).'}},{name:"aria-readonly",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-readonly"}],description:{kind:"markdown",value:"Indicates that the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) is not editable, but is otherwise [operable](https://www.w3.org/TR/wai-aria-1.1/#dfn-operable). See related [`aria-disabled`](https://www.w3.org/TR/wai-aria-1.1/#aria-disabled)."}},{name:"aria-relevant",valueSet:"relevant",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-relevant"}],description:{kind:"markdown",value:"Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. See related [`aria-atomic`](https://www.w3.org/TR/wai-aria-1.1/#aria-atomic)."}},{name:"aria-required",valueSet:"b",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-required"}],description:{kind:"markdown",value:"Indicates that user input is required on the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) before a form may be submitted."}},{name:"aria-roledescription",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-roledescription"}],description:{kind:"markdown",value:"Defines a human-readable, author-localized description for the [role](https://www.w3.org/TR/wai-aria-1.1/#dfn-role) of an [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element)."}},{name:"aria-rowcount",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount"}],description:{kind:"markdown",value:"Defines the total number of rows in a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex)."}},{name:"aria-rowindex",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex"}],description:{kind:"markdown",value:"Defines an [element's](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) row index or position with respect to the total number of rows within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowcount`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowcount) and [`aria-rowspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan)."}},{name:"aria-rowspan",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-rowspan"}],description:{kind:"markdown",value:"Defines the number of rows spanned by a cell or gridcell within a [`table`](https://www.w3.org/TR/wai-aria-1.1/#table), [`grid`](https://www.w3.org/TR/wai-aria-1.1/#grid), or [`treegrid`](https://www.w3.org/TR/wai-aria-1.1/#treegrid). See related [`aria-rowindex`](https://www.w3.org/TR/wai-aria-1.1/#aria-rowindex) and [`aria-colspan`](https://www.w3.org/TR/wai-aria-1.1/#aria-colspan)."}},{name:"aria-selected",valueSet:"u",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-selected"}],description:{kind:"markdown",value:'Indicates the current "selected" [state](https://www.w3.org/TR/wai-aria-1.1/#dfn-state) of various [widgets](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-checked`](https://www.w3.org/TR/wai-aria-1.1/#aria-checked) and [`aria-pressed`](https://www.w3.org/TR/wai-aria-1.1/#aria-pressed).'}},{name:"aria-setsize",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-setsize"}],description:{kind:"markdown",value:"Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. See related [`aria-posinset`](https://www.w3.org/TR/wai-aria-1.1/#aria-posinset)."}},{name:"aria-sort",valueSet:"sort",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-sort"}],description:{kind:"markdown",value:"Indicates if items in a table or grid are sorted in ascending or descending order."}},{name:"aria-valuemax",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemax"}],description:{kind:"markdown",value:"Defines the maximum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuemin",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuemin"}],description:{kind:"markdown",value:"Defines the minimum allowed value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-valuenow",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow"}],description:{kind:"markdown",value:"Defines the current value for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget). See related [`aria-valuetext`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext)."}},{name:"aria-valuetext",references:[{name:"WAI-ARIA Reference",url:"https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext"}],description:{kind:"markdown",value:"Defines the human readable text alternative of [`aria-valuenow`](https://www.w3.org/TR/wai-aria-1.1/#aria-valuenow) for a range [widget](https://www.w3.org/TR/wai-aria-1.1/#dfn-widget)."}},{name:"aria-details",description:{kind:"markdown",value:"Identifies the [element](https://www.w3.org/TR/wai-aria-1.1/#dfn-element) that provides a detailed, extended description for the [object](https://www.w3.org/TR/wai-aria-1.1/#dfn-object). See related [`aria-describedby`](https://www.w3.org/TR/wai-aria-1.1/#aria-describedby)."}},{name:"aria-keyshortcuts",description:{kind:"markdown",value:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element."}}],valueSets:[{name:"b",values:[{name:"true"},{name:"false"}]},{name:"u",values:[{name:"true"},{name:"false"},{name:"undefined"}]},{name:"o",values:[{name:"on"},{name:"off"}]},{name:"y",values:[{name:"yes"},{name:"no"}]},{name:"w",values:[{name:"soft"},{name:"hard"}]},{name:"d",values:[{name:"ltr"},{name:"rtl"},{name:"auto"}]},{name:"m",values:[{name:"get",description:{kind:"markdown",value:"Corresponds to the HTTP [GET method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3); form data are appended to the `action` attribute URI with a '?' as separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters."}},{name:"post",description:{kind:"markdown",value:"Corresponds to the HTTP [POST method](https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5); form data are included in the body of the form and sent to the server."}},{name:"dialog",description:{kind:"markdown",value:"Use when the form is inside a [`<dialog>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element to close the dialog when submitted."}}]},{name:"fm",values:[{name:"get"},{name:"post"}]},{name:"s",values:[{name:"row"},{name:"col"},{name:"rowgroup"},{name:"colgroup"}]},{name:"t",values:[{name:"hidden"},{name:"text"},{name:"search"},{name:"tel"},{name:"url"},{name:"email"},{name:"password"},{name:"datetime"},{name:"date"},{name:"month"},{name:"week"},{name:"time"},{name:"datetime-local"},{name:"number"},{name:"range"},{name:"color"},{name:"checkbox"},{name:"radio"},{name:"file"},{name:"submit"},{name:"image"},{name:"reset"},{name:"button"}]},{name:"im",values:[{name:"verbatim"},{name:"latin"},{name:"latin-name"},{name:"latin-prose"},{name:"full-width-latin"},{name:"kana"},{name:"kana-name"},{name:"katakana"},{name:"numeric"},{name:"tel"},{name:"email"},{name:"url"}]},{name:"bt",values:[{name:"button"},{name:"submit"},{name:"reset"},{name:"menu"}]},{name:"lt",values:[{name:"1"},{name:"a"},{name:"A"},{name:"i"},{name:"I"}]},{name:"mt",values:[{name:"context"},{name:"toolbar"}]},{name:"mit",values:[{name:"command"},{name:"checkbox"},{name:"radio"}]},{name:"et",values:[{name:"application/x-www-form-urlencoded"},{name:"multipart/form-data"},{name:"text/plain"}]},{name:"tk",values:[{name:"subtitles"},{name:"captions"},{name:"descriptions"},{name:"chapters"},{name:"metadata"}]},{name:"pl",values:[{name:"none"},{name:"metadata"},{name:"auto"}]},{name:"sh",values:[{name:"circle"},{name:"default"},{name:"poly"},{name:"rect"}]},{name:"xo",values:[{name:"anonymous"},{name:"use-credentials"}]},{name:"target",values:[{name:"_self"},{name:"_blank"},{name:"_parent"},{name:"_top"}]},{name:"sb",values:[{name:"allow-forms"},{name:"allow-modals"},{name:"allow-pointer-lock"},{name:"allow-popups"},{name:"allow-popups-to-escape-sandbox"},{name:"allow-same-origin"},{name:"allow-scripts"},{name:"allow-top-navigation"}]},{name:"tristate",values:[{name:"true"},{name:"false"},{name:"mixed"},{name:"undefined"}]},{name:"inputautocomplete",values:[{name:"additional-name"},{name:"address-level1"},{name:"address-level2"},{name:"address-level3"},{name:"address-level4"},{name:"address-line1"},{name:"address-line2"},{name:"address-line3"},{name:"bday"},{name:"bday-year"},{name:"bday-day"},{name:"bday-month"},{name:"billing"},{name:"cc-additional-name"},{name:"cc-csc"},{name:"cc-exp"},{name:"cc-exp-month"},{name:"cc-exp-year"},{name:"cc-family-name"},{name:"cc-given-name"},{name:"cc-name"},{name:"cc-number"},{name:"cc-type"},{name:"country"},{name:"country-name"},{name:"current-password"},{name:"email"},{name:"family-name"},{name:"fax"},{name:"given-name"},{name:"home"},{name:"honorific-prefix"},{name:"honorific-suffix"},{name:"impp"},{name:"language"},{name:"mobile"},{name:"name"},{name:"new-password"},{name:"nickname"},{name:"off"},{name:"on"},{name:"organization"},{name:"organization-title"},{name:"pager"},{name:"photo"},{name:"postal-code"},{name:"sex"},{name:"shipping"},{name:"street-address"},{name:"tel-area-code"},{name:"tel"},{name:"tel-country-code"},{name:"tel-extension"},{name:"tel-local"},{name:"tel-local-prefix"},{name:"tel-local-suffix"},{name:"tel-national"},{name:"transaction-amount"},{name:"transaction-currency"},{name:"url"},{name:"username"},{name:"work"}]},{name:"autocomplete",values:[{name:"inline"},{name:"list"},{name:"both"},{name:"none"}]},{name:"current",values:[{name:"page"},{name:"step"},{name:"location"},{name:"date"},{name:"time"},{name:"true"},{name:"false"}]},{name:"dropeffect",values:[{name:"copy"},{name:"move"},{name:"link"},{name:"execute"},{name:"popup"},{name:"none"}]},{name:"invalid",values:[{name:"grammar"},{name:"false"},{name:"spelling"},{name:"true"}]},{name:"live",values:[{name:"off"},{name:"polite"},{name:"assertive"}]},{name:"orientation",values:[{name:"vertical"},{name:"horizontal"},{name:"undefined"}]},{name:"relevant",values:[{name:"additions"},{name:"removals"},{name:"text"},{name:"all"},{name:"additions text"}]},{name:"sort",values:[{name:"ascending"},{name:"descending"},{name:"none"},{name:"other"}]},{name:"roles",values:[{name:"alert"},{name:"alertdialog"},{name:"button"},{name:"checkbox"},{name:"dialog"},{name:"gridcell"},{name:"link"},{name:"log"},{name:"marquee"},{name:"menuitem"},{name:"menuitemcheckbox"},{name:"menuitemradio"},{name:"option"},{name:"progressbar"},{name:"radio"},{name:"scrollbar"},{name:"searchbox"},{name:"slider"},{name:"spinbutton"},{name:"status"},{name:"switch"},{name:"tab"},{name:"tabpanel"},{name:"textbox"},{name:"timer"},{name:"tooltip"},{name:"treeitem"},{name:"combobox"},{name:"grid"},{name:"listbox"},{name:"menu"},{name:"menubar"},{name:"radiogroup"},{name:"tablist"},{name:"tree"},{name:"treegrid"},{name:"application"},{name:"article"},{name:"cell"},{name:"columnheader"},{name:"definition"},{name:"directory"},{name:"document"},{name:"feed"},{name:"figure"},{name:"group"},{name:"heading"},{name:"img"},{name:"list"},{name:"listitem"},{name:"math"},{name:"none"},{name:"note"},{name:"presentation"},{name:"region"},{name:"row"},{name:"rowgroup"},{name:"rowheader"},{name:"separator"},{name:"table"},{name:"term"},{name:"text"},{name:"toolbar"},{name:"banner"},{name:"complementary"},{name:"contentinfo"},{name:"form"},{name:"main"},{name:"navigation"},{name:"region"},{name:"search"},{name:"doc-abstract"},{name:"doc-acknowledgments"},{name:"doc-afterword"},{name:"doc-appendix"},{name:"doc-backlink"},{name:"doc-biblioentry"},{name:"doc-bibliography"},{name:"doc-biblioref"},{name:"doc-chapter"},{name:"doc-colophon"},{name:"doc-conclusion"},{name:"doc-cover"},{name:"doc-credit"},{name:"doc-credits"},{name:"doc-dedication"},{name:"doc-endnote"},{name:"doc-endnotes"},{name:"doc-epigraph"},{name:"doc-epilogue"},{name:"doc-errata"},{name:"doc-example"},{name:"doc-footnote"},{name:"doc-foreword"},{name:"doc-glossary"},{name:"doc-glossref"},{name:"doc-index"},{name:"doc-introduction"},{name:"doc-noteref"},{name:"doc-notice"},{name:"doc-pagebreak"},{name:"doc-pagelist"},{name:"doc-part"},{name:"doc-preface"},{name:"doc-prologue"},{name:"doc-pullquote"},{name:"doc-qna"},{name:"doc-subtitle"},{name:"doc-tip"},{name:"doc-toc"}]},{name:"metanames",values:[{name:"application-name"},{name:"author"},{name:"description"},{name:"format-detection"},{name:"generator"},{name:"keywords"},{name:"publisher"},{name:"referrer"},{name:"robots"},{name:"theme-color"},{name:"viewport"}]},{name:"haspopup",values:[{name:"false",description:{kind:"markdown",value:"(default) Indicates the element does not have a popup."}},{name:"true",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"menu",description:{kind:"markdown",value:"Indicates the popup is a menu."}},{name:"listbox",description:{kind:"markdown",value:"Indicates the popup is a listbox."}},{name:"tree",description:{kind:"markdown",value:"Indicates the popup is a tree."}},{name:"grid",description:{kind:"markdown",value:"Indicates the popup is a grid."}},{name:"dialog",description:{kind:"markdown",value:"Indicates the popup is a dialog."}}]},{name:"decoding",values:[{name:"sync"},{name:"async"},{name:"auto"}]},{name:"loading",values:[{name:"eager",description:{kind:"markdown",value:"Loads the image immediately, regardless of whether or not the image is currently within the visible viewport (this is the default value)."}},{name:"lazy",description:{kind:"markdown",value:"Defers loading the image until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed. This generally improves the performance of the content in most typical use cases."}}]},{name:"referrerpolicy",values:[{name:"no-referrer"},{name:"no-referrer-when-downgrade"},{name:"origin"},{name:"origin-when-cross-origin"},{name:"same-origin"},{name:"strict-origin"},{name:"strict-origin-when-cross-origin"},{name:"unsafe-url"}]}]}});var Jf,OV,IP=ge(()=>{Cu();Z_();B_();Jf=class{constructor(t){this.dataProviders=[],this.setDataProviders(t.useDefaultDataProvider!==!1,t.customDataProviders||[])}setDataProviders(t,n){this.dataProviders=[],t&&this.dataProviders.push(new El("html5",Kf)),this.dataProviders.push(...n)}getDataProviders(){return this.dataProviders}isVoidElement(t,n){return!!t&&G2(n,t.toLowerCase(),(r,i)=>r.localeCompare(i))>=0}getVoidElements(t){let n=Array.isArray(t)?t:this.getDataProviders().filter(i=>i.isApplicable(t)),r=[];return n.forEach(i=>{i.provideTags().filter(s=>s.void).forEach(s=>r.push(s.name))}),r.sort()}isPathAttribute(t,n){if(n==="src"||n==="href")return!0;let r=OV[t];return r?typeof r=="string"?r===n:r.indexOf(n)!==-1:!1}},OV={a:"href",area:"href",body:"background",blockquote:"cite",del:"cite",form:"action",frame:["src","longdesc"],img:["src","longdesc"],ins:"cite",link:"href",object:"data",q:"cite",script:"src",audio:"src",button:"formaction",command:"icon",embed:"src",html:"manifest",input:["src","formaction"],source:"src",track:"src",video:["src","poster"]}});var Dl={};kv(Dl,{ClientCapabilities:()=>j_,Color:()=>Wo,ColorInformation:()=>dl,ColorPresentation:()=>hl,Command:()=>Sr,CompletionItem:()=>gl,CompletionItemKind:()=>be,CompletionItemTag:()=>xr,CompletionList:()=>bl,Diagnostic:()=>Xs,DocumentHighlight:()=>yl,DocumentHighlightKind:()=>Un,DocumentLink:()=>Sl,DocumentSymbol:()=>Zs,DocumentUri:()=>ul,FileType:()=>xu,FoldingRange:()=>pl,FoldingRangeKind:()=>Qi,FormattingOptions:()=>Lf,Hover:()=>vl,InsertReplaceEdit:()=>Pf,InsertTextFormat:()=>dt,InsertTextMode:()=>If,Location:()=>yi,MarkedString:()=>Qs,MarkupContent:()=>Yi,MarkupKind:()=>Dt,Position:()=>Xe,Range:()=>ve,ScannerState:()=>De,SelectionRange:()=>Cr,SymbolInformation:()=>Ys,SymbolKind:()=>kn,TextDocument:()=>xl,TextEdit:()=>ye,TokenType:()=>ce,WorkspaceEdit:()=>Ho,getDefaultHTMLDataProvider:()=>zV,getLanguageService:()=>NV,newHTMLDataProvider:()=>MP});function NV(e=LV){let t=new Jf(e),n=new Hf(e,t),r=new jf(e,t),i=new qf(t),s=new Gf(i),o=new Vf(t),l=new Bf(t);return{setDataProviders:t.setDataProviders.bind(t),createScanner:Bt,parseHTMLDocument:i.parseDocument.bind(i),doComplete:r.doComplete.bind(r),doComplete2:r.doComplete2.bind(r),setCompletionParticipants:r.setCompletionParticipants.bind(r),doHover:n.doHover.bind(n),format:fP,findDocumentHighlights:_P,findDocumentLinks:l.findDocumentLinks.bind(l),findDocumentSymbols:xP,findDocumentSymbols2:Q_,getFoldingRanges:o.getFoldingRanges.bind(o),getSelectionRanges:s.getSelectionRanges.bind(s),doQuoteComplete:r.doQuoteComplete.bind(r),doTagComplete:r.doTagComplete.bind(r),doRename:TP,findMatchingTagPosition:DP,findOnTypeRenameRanges:Y_,findLinkedEditingRanges:Y_}}function MP(e,t){return new El(e,t)}function zV(){return MP("default",Kf)}var LV,Rl=ge(()=>{es();K2();tP();rP();mP();bP();SP();kP();EP();RP();AP();FP();PP();Cu();IP();Z_();Hn();LV={}});var Xf=O(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.patchTSX=eo.classNameFromFilename=eo.framework2tsx=void 0;var eS=Kn(),OP=Rf();function qV(e,t,n){let r=n==="vue"?(0,OP.importVueIntegration)(e):(0,OP.importSvelteIntegration)(e);if(!r)return o("");let i=LP(e),s=NP(r.toTSX(t,i),e);return o(s);function o(l){return{id:"tsx",languageId:"typescript",snapshot:{getText:(a,c)=>l.substring(a,c),getLength:()=>l.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[0],generatedOffsets:[0],lengths:[l.length],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!0}}],embeddedCodes:[]}}}eo.framework2tsx=qV;function WV(e){return`${e}`.replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(new RegExp(/\s+(.)(\w*)/,"g"),(t,n,r)=>`${n.toUpperCase()+r.toLowerCase()}`).replace(new RegExp(/\w/),t=>t.toUpperCase())}function LP(e){let t=eS.URI.parse(e),r=eS.Utils.basename(t).slice(0,-eS.Utils.extname(t).length).split("").filter(a=>/[A-Za-z$_\d-]/.test(a)).join(""),i=r.split("").findIndex(a=>/[A-Za-z]/.test(a)),s=r.substring(i),o=WV(s);return i===-1?`A${o}`:o}eo.classNameFromFilename=LP;function NP(e,t){let n=t.split("/").pop(),r=n.startsWith("[")&&n.endsWith("]");return e.replace(/\b(\S*)__AstroComponent_/gm,(i,s)=>s?r?`_${s}_`:s[0].toUpperCase()+s.slice(1):n==="404"?"FourOhFour":i)}eo.patchTSX=NP});var jP=O(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.astro2tsx=to.getTSXRangesAsLSPRanges=to.safeConvertToTSX=void 0;var jV=require("@astrojs/compiler/sync"),UV=f2(),zP=Bs(),tS=(Rl(),Eo(Dl)),HV=Xf();function qP(e,t){try{return(0,jV.convertToTSX)(e,{filename:t.filename})}catch(n){return console.error(`There was an error transforming ${t.filename} to TSX. An empty file will be returned instead. Please create an issue: https://github.com/withastro/language-tools/issues
|
|
531
531
|
Error: ${n}.`),{code:"",map:{file:t.filename??"",sources:[],sourcesContent:[],names:[],mappings:"",version:0},diagnostics:[{code:1e3,location:{file:t.filename,line:1,column:1,length:e.length},severity:1,text:"The Astro compiler encountered an unknown error while transform this file to TSX. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/language-tools/issues"}],metaRanges:{frontmatter:{start:0,end:0},body:{start:0,end:0}}}}}to.safeConvertToTSX=qP;function WP(e){let t=tS.TextDocument.create("","typescriptreact",0,e.code);return{frontmatter:zP.Range.create(t.positionAt(e.metaRanges.frontmatter.start),t.positionAt(e.metaRanges.frontmatter.end)),body:zP.Range.create(t.positionAt(e.metaRanges.body.start),t.positionAt(e.metaRanges.body.end))}}to.getTSXRangesAsLSPRanges=WP;function $V(e,t,n){let r=qP(e,{filename:t});return{virtualCode:BV(e,r,t,n),diagnostics:r.diagnostics,ranges:WP(r)}}to.astro2tsx=$V;function BV(e,t,n,r){t.code=(0,HV.patchTSX)(t.code,n);let i=(0,UV.decode)(t.map.mappings),s=tS.TextDocument.create("","astro",0,e),o=tS.TextDocument.create("","typescriptreact",0,t.code),l=[],a;for(let c=0;c<i.length;c++)for(let u of i[c]){let d=u[0],h=o.offsetAt({line:c,character:d});if(a){let f=h-a.genOffset,p=e.substring(a.sourceOffset,a.sourceOffset+f),m=t.code.substring(a.genOffset,a.genOffset+f);if(p!==m){f=0;for(let g=0;g<h-a.genOffset&&p[g]===m[g];g++)f=g+1}if(f>0){let g=l.length?l[l.length-1]:void 0;if(g&&g.generatedOffsets[0]+g.lengths[0]===a.genOffset&&g.sourceOffsets[0]+g.lengths[0]===a.sourceOffset)g.lengths[0]+=f;else{let y=r.findNodeAt(a.sourceOffset).tag!=="script"?{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}:{verification:!1,completion:!1,semantic:!1,navigation:!1,structure:!1,format:!1};l.push({sourceOffsets:[a.sourceOffset],generatedOffsets:[a.genOffset],lengths:[f],data:y})}}a=void 0}if(u[2]!==void 0&&u[3]!==void 0){let f=s.offsetAt({line:u[2],character:u[3]});a={genOffset:h,sourceOffset:f}}}return{id:"tsx",languageId:"typescriptreact",snapshot:{getText:(c,u)=>t.code.substring(c,u),getLength:()=>t.code.length,getChangeRange:()=>{}},mappings:l,embeddedCodes:[]}}});var UP=O(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.getAstroMetadata=void 0;var VV=require("@astrojs/compiler/sync");function GV(e,t,n={position:!0}){let r=KV(e,t,n);return{...r,frontmatter:JV(r.ast,t)}}Qf.getAstroMetadata=GV;function KV(e,t,n){try{return(0,VV.parse)(t,n)}catch(r){return console.error(`There was an error parsing ${e}'s AST. An empty AST will be returned instead to avoid breaking the server. Please create an issue: https://github.com/withastro/language-tools/issues
|
|
532
532
|
Error: ${r}.`),{ast:{type:"root",children:[]},diagnostics:[{code:1e3,location:{file:e,line:1,column:1,length:t.length},severity:1,text:"The Astro compiler encountered an unknown error while parsing this file's AST. Please create an issue with your code and the error shown in the server's logs: https://github.com/withastro/language-tools/issues"}]}}}function JV(e,t){if(!e.children||e.children&&e.children.length===0)return{status:"doesnt-exist",position:void 0};if(e.children[0].type==="frontmatter"){let n=e.children[0];if(n.position)return n.position.end?n.position.end.offset===t.length&&!t.endsWith("---")?{status:"open",position:{start:n.position.start,end:void 0}}:{status:"closed",position:{start:n.position.start,end:n.position.end}}:{status:"open",position:{start:n.position.start,end:void 0}}}return{status:"doesnt-exist",position:void 0}}});var $P=O(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.collectClassesAndIdsFromDocument=Al.extractStylesheets=void 0;var Yf=require("@astrojs/compiler/utils"),HP=qe();function XV(e,t,n){let r=QV(e,t.roots),i=YV(n);if(i.length>0){let s=[];for(let a of i)s.push("x { "),s.push([a.value,void 0,a.position.start.offset+7,{completion:!0,verification:!1,semantic:!0,navigation:!0,structure:!0,format:!1}]),s.push(` }
|
|
533
|
-
`);let o=(0,HP.buildMappings)(s),l=(0,HP.toString)(s);r.push({id:"inline.css",languageId:"css",snapshot:{getText:(a,c)=>l.substring(a,c),getLength:()=>l.length,getChangeRange:()=>{}},embeddedCodes:[],mappings:o})}return r}Al.extractStylesheets=XV;function QV(e,t){let n=[],r=0;i(t);function i(s){for(let[o,l]of s.entries()){if(l.tag==="style"&&l.startTagEnd!==void 0&&l.endTagStart!==void 0){let a=e.getText(l.startTagEnd,l.endTagStart);n.push({id:`${r}.css`,languageId:"css",snapshot:{getText:(c,u)=>a.substring(c,u),getLength:()=>a.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[l.startTagEnd],generatedOffsets:[0],lengths:[a.length],data:{verification:!1,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}}],embeddedCodes:[]}),r++}l.children&&i(l.children)}}return n}function YV(e){let t=[];function n(r){r.children&&r.children.forEach(i=>{if(Yf.is.element(i)){let s=i.attributes.find(o=>o.name==="style"&&o.kind==="quoted");s&&s.position&&t.push(s)}Yf.is.parent(i)&&n(i)})}return n(e),t}function ZV(e){let t=[];function n(r){r.children&&r.children.forEach(i=>{if(Yf.is.element(i)){let s=i.attributes.filter(o=>o.kind==="quoted"&&(o.name==="class"||o.name==="id")).flatMap(o=>o.value.split(" "));t.push(...s)}Yf.is.parent(i)&&n(i)})}return n(e),t}Al.collectClassesAndIdsFromDocument=ZV});var Ko=O(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.editShouldBeInFrontmatter=Ht.getOpenFrontmatterEdit=Ht.getNewFrontmatterEdit=Ht.ensureRangeIsInFrontmatter=Ht.ensureProperEditForFrontmatter=Ht.isInsideFrontmatter=Ht.isInsideExpression=Ht.isInComponentStartTag=Ht.isPossibleComponent=Ht.isJSDocument=void 0;var Zf=(Rl(),Eo(Dl));function eG(e){return e==="javascript"||e==="typescript"||e==="javascriptreact"||e==="typescriptreact"}Ht.isJSDocument=eG;function BP(e){return!!e.tag?.[0].match(/[A-Z]/)||!!e.tag?.match(/.+[.][A-Z]?/)}Ht.isPossibleComponent=BP;function tG(e,t){let n=e.findNodeAt(t);return BP(n)&&(!n.startTagEnd||t<n.startTagEnd)}Ht.isInComponentStartTag=tG;function nG(e,t,n){let r=e.substring(t,n);return r.lastIndexOf("{")>r.lastIndexOf("}")}Ht.isInsideExpression=nG;function rG(e,t){switch(t.status){case"closed":return e>t.position.start.offset&&e<t.position.end.offset;case"open":return e>t.position.start.offset;case"doesnt-exist":return!1}}Ht.isInsideFrontmatter=rG;function iG(e,t,n,r="top"){switch(t.frontmatter.status){case"open":return KP(e,t,n);case"closed":let i=VP(e.range,t,r);return{newText:i.start.line===t.frontmatter.position.start.line&&e.newText.startsWith(n)?e.newText.trimStart():e.newText,range:i};case"doesnt-exist":return GP(e,t,n)}}Ht.ensureProperEditForFrontmatter=iG;function VP(e,t,n="top"){if(t.frontmatter.status==="open"||t.frontmatter.status==="closed"){let r=t.frontmatter.position.end?t.tsxRanges.frontmatter.end:void 0;return e.start.line<t.tsxRanges.frontmatter.start.line||r&&e.start.line>r.line?r&&n==="bottom"?Zf.Range.create(r,r):Zf.Range.create(t.tsxRanges.frontmatter.start,t.tsxRanges.frontmatter.start):e}return e}Ht.ensureRangeIsInFrontmatter=VP;function GP(e,t,n){return e.newText=`---${e.newText.startsWith(n)?"":n}${e.newText}---${n}${n}`,e.range=Zf.Range.create(t.tsxRanges.frontmatter.start,t.tsxRanges.frontmatter.start),e}Ht.getNewFrontmatterEdit=GP;function KP(e,t,n){return e.newText=e.newText.startsWith(n)?`${e.newText}---`:`${n}${e.newText}---`,e.range=Zf.Range.create(t.tsxRanges.frontmatter.start,t.tsxRanges.frontmatter.start),e}Ht.getOpenFrontmatterEdit=KP;function sG(e,t){let n=e.start.line<t.tsxRanges.frontmatter.start.line,r=e.start.line>t.tsxRanges.body.end.line;return n||r?{itShould:!0,position:r?"bottom":"top"}:{itShould:!1,position:void 0}}Ht.editShouldBeInFrontmatter=sG});var YP=O(kr=>{"use strict";var oG=kr&&kr.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),aG=kr&&kr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),lG=kr&&kr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&oG(t,e,n);return aG(t,e),t};Object.defineProperty(kr,"__esModule",{value:!0});kr.preprocessHTML=kr.parseHTML=void 0;var no=lG((Rl(),Eo(Dl))),cG=Ko(),XP=no.getLanguageService();function uG(e,t){let n=QP(e.getText(0,e.getLength()),t);return{virtualCode:dG(n),htmlDocument:hG(n)}}kr.parseHTML=uG;var JP=XP.createScanner;function QP(e,t){let n=e.split("").fill(" ",0,t).join(""),r=JP(n),i=r.scan(),s=null;for(;i!==no.TokenType.EOS;){let a=r.getTokenOffset();i===no.TokenType.StartTagOpen&&(s=a),i===no.TokenType.StartTagClose&&(o(a)?l(a):s=null),i===no.TokenType.StartTagSelfClose&&(s=null),i===no.TokenType.Unknown&&r.getScannerState()===no.ScannerState.WithinTag&&r.getTokenText()==="<"&&o(a)&&l(a),i=r.scan()}return n;function o(a){return s!==null&&(0,cG.isInsideExpression)(n,s,a)}function l(a,c){n=n.substring(0,a)+" "+n.substring(a+1),r=JP(n,a,c??no.ScannerState.WithinTag)}}kr.preprocessHTML=QP;function dG(e){return{id:"html",languageId:"html",snapshot:{getText:(t,n)=>e.substring(t,n),getLength:()=>e.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[0],generatedOffsets:[0],lengths:[e.length],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}}],embeddedCodes:[]}}function hG(e){return XP.parseHTMLDocument({getText:()=>e})}});var tI=O(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});tm.extractScriptTags=void 0;var ZP=require("@astrojs/compiler/utils"),eI=qe();function pG(e,t,n){let r=fG(e,t.roots),i=[...mG(t,e),...vG(n)].sort((s,o)=>s.startOffset-o.startOffset);return i.length>0&&r.push(yG(i)),r}tm.extractScriptTags=pG;function em(e){return!e.attributes||Object.entries(e.attributes).length===0?"processed module":e.attributes.type?.includes("module")===!0?"module":"classic"}function fG(e,t){let n=[],r=0;i(t);function i(s){for(let[o,l]of s.entries()){if(l.tag==="script"&&l.startTagEnd!==void 0&&l.endTagStart!==void 0&&em(l)!=="classic"){let a=e.getText(l.startTagEnd,l.endTagStart),c=em(l)==="processed module"?"mts":"mjs",u=em(l)==="processed module"?"typescript":"javascript";n.push({id:`${r}.${c}`,languageId:u,snapshot:{getText:(d,h)=>a.substring(d,h),getLength:()=>a.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[l.startTagEnd],generatedOffsets:[0],lengths:[a.length],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}}],embeddedCodes:[]}),r++}l.children&&i(l.children)}}return n}function mG(e,t){let n=[];r(e.roots);function r(i){for(let[s,o]of i.entries()){if(o.tag==="script"&&o.startTagEnd!==void 0&&o.endTagStart!==void 0&&!bG(o.attributes?.type)&&em(o)==="classic"){let l=t.getText(o.startTagEnd,o.endTagStart);n.push({startOffset:o.startTagEnd,content:l})}o.children&&r(o.children)}}return n}var gG=["application/json","application/ld+json","importmap","speculationrules"];function bG(e){return e?gG.includes(e.slice(1,-1)):!1}function vG(e){let t=[];function n(r){r.children&&r.children.forEach(i=>{if(ZP.is.element(i)){let s=i.attributes.find(o=>wG.includes(o.name)&&o.kind==="quoted");s&&s.position&&t.push({content:s.value+";",startOffset:s.position.start.offset+`${s.name}="`.length})}ZP.is.parent(i)&&n(i)})}return n(e),t}function yG(e){let t=[];for(let i of e)t.push([i.content,void 0,i.startOffset,{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}]);let n=(0,eI.buildMappings)(t),r=(0,eI.toString)(t);return{id:"inline.mjs",languageId:"javascript",snapshot:{getText:(i,s)=>r.substring(i,s),getLength:()=>r.length,getChangeRange:()=>{}},embeddedCodes:[],mappings:n}}var wG=["onabort","onafterprint","onauxclick","onbeforematch","onbeforeprint","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"]});var ro=O(Tr=>{"use strict";var _G=Tr&&Tr.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),SG=Tr&&Tr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),xG=Tr&&Tr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&_G(t,e,n);return SG(t,e),t};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.AstroVirtualCode=Tr.getLanguageModule=void 0;var nI=qe(),nS=xG(require("node:path")),CG=E_(),kG=jP(),TG=UP(),EG=$P(),DG=YP(),RG=tI();function AG(e,t){return{createVirtualCode(n,r,i){if(r==="astro"){let s=n.includes("://")?n.split("://")[1]:n;return new nm(s,i)}},updateVirtualCode(n,r,i){return r.update(i),r},typescript:{extraFileExtensions:[{extension:"astro",isMixedContent:!0,scriptKind:7}],getScript(n){for(let r of(0,nI.forEachEmbeddedCode)(n))if(r.id==="tsx")return{code:r,extension:".tsx",scriptKind:4}},getExtraScripts(n,r){let i=[];for(let s of(0,nI.forEachEmbeddedCode)(r))(s.id.endsWith(".mjs")||s.id.endsWith(".mts"))&&i.push({fileName:n+"."+s.id,code:s,extension:".mjs",scriptKind:1});return i},resolveLanguageServiceHost(n){return{...n,getScriptFileNames(){let r=(0,CG.getLanguageServerTypesDir)(t),i=n.getScriptFileNames(),s=[];return e?(s.push(...["./env.d.ts","./astro-jsx.d.ts"].map(o=>t.sys.resolvePath(nS.resolve(e.path,o)))),(e.version.major<4||e.version.major===4&&e.version.minor===0&&e.version.patch<8)&&s.push(...["./jsx-runtime-augment.d.ts"].map(o=>t.sys.resolvePath(nS.resolve(r,o))))):s.push(...["./env.d.ts","./astro-jsx.d.ts","./jsx-runtime-fallback.d.ts"].map(o=>t.sys.resolvePath(nS.resolve(r,o)))),[...i,...s]},getCompilationSettings(){let r=n.getCompilationSettings();return{...r,module:t.ModuleKind.ESNext??99,target:t.ScriptTarget.ESNext??99,jsx:t.JsxEmit.Preserve??1,resolveJsonModule:!0,allowJs:!0,isolatedModules:!0,moduleResolution:r.moduleResolution===t.ModuleResolutionKind.Classic||!r.moduleResolution?t.ModuleResolutionKind.Node10:r.moduleResolution}}}}}}}Tr.getLanguageModule=AG;var nm=class{constructor(t,n){this.fileName=t,this.snapshot=n,this.id="root",this.languageId="astro",this.codegenStacks=[],this.onSnapshotUpdated()}get hasCompilationErrors(){return this.compilerDiagnostics.filter(t=>t.severity===1).length>0}update(t){this.snapshot=t,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceOffsets:[0],generatedOffsets:[0],lengths:[this.snapshot.getLength()],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!0}}],this.compilerDiagnostics=[];let t=(0,TG.getAstroMetadata)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()));t.diagnostics.length>0&&this.compilerDiagnostics.push(...t.diagnostics);let{htmlDocument:n,virtualCode:r}=(0,DG.parseHTML)(this.snapshot,t.frontmatter.status==="closed"?t.frontmatter.position.end.offset:0);this.htmlDocument=n;let i=(0,RG.extractScriptTags)(this.snapshot,n,t.ast);this.scriptCodeIds=i.map(o=>o.id),r.embeddedCodes.push(...(0,EG.extractStylesheets)(this.snapshot,n,t.ast),...i),this.embeddedCodes=[],this.embeddedCodes.push(r);let s=(0,kG.astro2tsx)(this.snapshot.getText(0,this.snapshot.getLength()),this.fileName,n);this.astroMeta={...t,tsxRanges:s.ranges},this.compilerDiagnostics.push(...s.diagnostics),this.embeddedCodes.push(s.virtualCode)}};Tr.AstroVirtualCode=nm});var rI=O(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.getSvelteLanguageModule=void 0;var FG=qe(),PG=Xf();function IG(){return{createVirtualCode(e,t,n){if(t==="svelte"){let r=e.includes("://")?e.split("://")[1]:e;return new rS(r,n)}},updateVirtualCode(e,t,n){return t.update(n),t},typescript:{extraFileExtensions:[{extension:"svelte",isMixedContent:!0,scriptKind:7}],getScript(e){for(let t of(0,FG.forEachEmbeddedCode)(e))if(t.id==="tsx")return{code:t,extension:".tsx",scriptKind:4}}}}}rm.getSvelteLanguageModule=IG;var rS=class{constructor(t,n){this.fileName=t,this.snapshot=n,this.id="root",this.languageId="svelte",this.codegenStacks=[],this.onSnapshotUpdated()}update(t){this.snapshot=t,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceOffsets:[0],generatedOffsets:[0],lengths:[this.snapshot.getLength()],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!0}}],this.embeddedCodes=[],this.embeddedCodes.push((0,PG.framework2tsx)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"svelte"))}}});var iI=O(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.getVueLanguageModule=void 0;var MG=qe(),OG=Xf();function LG(){return{createVirtualCode(e,t,n){if(t==="vue"){let r=e.includes("://")?e.split("://")[1]:e;return new iS(r,n)}},updateVirtualCode(e,t,n){return t.update(n),t},typescript:{extraFileExtensions:[{extension:"vue",isMixedContent:!0,scriptKind:7}],getScript(e){for(let t of(0,MG.forEachEmbeddedCode)(e))if(t.id==="tsx")return{code:t,extension:".tsx",scriptKind:4}}}}}im.getVueLanguageModule=LG;var iS=class{constructor(t,n){this.fileName=t,this.snapshot=n,this.id="root",this.languageId="vue",this.codegenStacks=[],this.onSnapshotUpdated()}update(t){this.snapshot=t,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceOffsets:[0],generatedOffsets:[0],lengths:[this.snapshot.getLength()],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!0}}],this.embeddedCodes=[],this.embeddedCodes.push((0,OG.framework2tsx)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"vue"))}}});var F,am,sm,sI,oI,Nge,om,aI,lI,Tu,Eu,NG,zG,Du,qG,Jo,cI,WG,sS,mI,gI,jG,UG,HG,$G,BG,oS,uI,Fl,Pl,Ru,dI,hI,aS,lS,VG,GG,KG,JG,XG,QG,YG,pI,fI,ZG,eK,Si,kt,Er,io=ge(()=>{"use strict";(function(e){e[e.Ident=0]="Ident",e[e.AtKeyword=1]="AtKeyword",e[e.String=2]="String",e[e.BadString=3]="BadString",e[e.UnquotedString=4]="UnquotedString",e[e.Hash=5]="Hash",e[e.Num=6]="Num",e[e.Percentage=7]="Percentage",e[e.Dimension=8]="Dimension",e[e.UnicodeRange=9]="UnicodeRange",e[e.CDO=10]="CDO",e[e.CDC=11]="CDC",e[e.Colon=12]="Colon",e[e.SemiColon=13]="SemiColon",e[e.CurlyL=14]="CurlyL",e[e.CurlyR=15]="CurlyR",e[e.ParenthesisL=16]="ParenthesisL",e[e.ParenthesisR=17]="ParenthesisR",e[e.BracketL=18]="BracketL",e[e.BracketR=19]="BracketR",e[e.Whitespace=20]="Whitespace",e[e.Includes=21]="Includes",e[e.Dashmatch=22]="Dashmatch",e[e.SubstringOperator=23]="SubstringOperator",e[e.PrefixOperator=24]="PrefixOperator",e[e.SuffixOperator=25]="SuffixOperator",e[e.Delim=26]="Delim",e[e.EMS=27]="EMS",e[e.EXS=28]="EXS",e[e.Length=29]="Length",e[e.Angle=30]="Angle",e[e.Time=31]="Time",e[e.Freq=32]="Freq",e[e.Exclamation=33]="Exclamation",e[e.Resolution=34]="Resolution",e[e.Comma=35]="Comma",e[e.Charset=36]="Charset",e[e.EscapedJavaScript=37]="EscapedJavaScript",e[e.BadEscapedJavaScript=38]="BadEscapedJavaScript",e[e.Comment=39]="Comment",e[e.SingleLineComment=40]="SingleLineComment",e[e.EOF=41]="EOF",e[e.CustomToken=42]="CustomToken",e[e.ContainerQueryLength=43]="ContainerQueryLength"})(F||(F={}));am=class{constructor(t){this.source=t,this.len=t.length,this.position=0}substring(t,n=this.position){return this.source.substring(t,n)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(t){this.position=t}goBack(t){this.position-=t}advance(t){this.position+=t}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(t=0){return this.source.charCodeAt(this.position+t)||0}lookbackChar(t=0){return this.source.charCodeAt(this.position-t)||0}advanceIfChar(t){return t===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(t){if(this.position+t.length>this.source.length)return!1;let n=0;for(;n<t.length;n++)if(this.source.charCodeAt(this.position+n)!==t[n])return!1;return this.advance(n),!0}advanceWhileChar(t){let n=this.position;for(;this.position<this.len&&t(this.source.charCodeAt(this.position));)this.position++;return this.position-n}},sm="a".charCodeAt(0),sI="f".charCodeAt(0),oI="z".charCodeAt(0),Nge="u".charCodeAt(0),om="A".charCodeAt(0),aI="F".charCodeAt(0),lI="Z".charCodeAt(0),Tu="0".charCodeAt(0),Eu="9".charCodeAt(0),NG="~".charCodeAt(0),zG="^".charCodeAt(0),Du="=".charCodeAt(0),qG="|".charCodeAt(0),Jo="-".charCodeAt(0),cI="_".charCodeAt(0),WG="%".charCodeAt(0),sS="*".charCodeAt(0),mI="(".charCodeAt(0),gI=")".charCodeAt(0),jG="<".charCodeAt(0),UG=">".charCodeAt(0),HG="@".charCodeAt(0),$G="#".charCodeAt(0),BG="$".charCodeAt(0),oS="\\".charCodeAt(0),uI="/".charCodeAt(0),Fl=`
|
|
533
|
+
`);let o=(0,HP.buildMappings)(s),l=(0,HP.toString)(s);r.push({id:"inline.css",languageId:"css",snapshot:{getText:(a,c)=>l.substring(a,c),getLength:()=>l.length,getChangeRange:()=>{}},embeddedCodes:[],mappings:o})}return r}Al.extractStylesheets=XV;function QV(e,t){let n=[],r=0;i(t);function i(s){for(let[o,l]of s.entries()){if(l.tag==="style"&&l.startTagEnd!==void 0&&l.endTagStart!==void 0){let a=e.getText(l.startTagEnd,l.endTagStart);n.push({id:`${r}.css`,languageId:"css",snapshot:{getText:(c,u)=>a.substring(c,u),getLength:()=>a.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[l.startTagEnd],generatedOffsets:[0],lengths:[a.length],data:{verification:!1,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}}],embeddedCodes:[]}),r++}l.children&&i(l.children)}}return n}function YV(e){let t=[];function n(r){r.children&&r.children.forEach(i=>{if(Yf.is.element(i)){let s=i.attributes.find(o=>o.name==="style"&&o.kind==="quoted");s&&s.position&&t.push(s)}Yf.is.parent(i)&&n(i)})}return n(e),t}function ZV(e){let t=[];function n(r){r.children&&r.children.forEach(i=>{if(Yf.is.element(i)){let s=i.attributes.filter(o=>o.kind==="quoted"&&(o.name==="class"||o.name==="id")).flatMap(o=>o.value.split(" "));t.push(...s)}Yf.is.parent(i)&&n(i)})}return n(e),t}Al.collectClassesAndIdsFromDocument=ZV});var Ko=O(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.editShouldBeInFrontmatter=Ht.getOpenFrontmatterEdit=Ht.getNewFrontmatterEdit=Ht.ensureRangeIsInFrontmatter=Ht.ensureProperEditForFrontmatter=Ht.isInsideFrontmatter=Ht.isInsideExpression=Ht.isInComponentStartTag=Ht.isPossibleComponent=Ht.isJSDocument=void 0;var Zf=(Rl(),Eo(Dl));function eG(e){return e==="javascript"||e==="typescript"||e==="javascriptreact"||e==="typescriptreact"}Ht.isJSDocument=eG;function BP(e){return!!e.tag?.[0].match(/[A-Z]/)||!!e.tag?.match(/.+[.][A-Z]?/)}Ht.isPossibleComponent=BP;function tG(e,t){let n=e.findNodeAt(t);return BP(n)&&(!n.startTagEnd||t<n.startTagEnd)}Ht.isInComponentStartTag=tG;function nG(e,t,n){let r=e.substring(t,n);return r.lastIndexOf("{")>r.lastIndexOf("}")}Ht.isInsideExpression=nG;function rG(e,t){switch(t.status){case"closed":return e>t.position.start.offset&&e<t.position.end.offset;case"open":return e>t.position.start.offset;case"doesnt-exist":return!1}}Ht.isInsideFrontmatter=rG;function iG(e,t,n,r="top"){switch(t.frontmatter.status){case"open":return KP(e,t,n);case"closed":let i=VP(e.range,t,r);return{newText:i.start.line===t.frontmatter.position.start.line&&e.newText.startsWith(n)?e.newText.trimStart():e.newText,range:i};case"doesnt-exist":return GP(e,t,n)}}Ht.ensureProperEditForFrontmatter=iG;function VP(e,t,n="top"){if(t.frontmatter.status==="open"||t.frontmatter.status==="closed"){let r=t.frontmatter.position.end?t.tsxRanges.frontmatter.end:void 0;return e.start.line<t.tsxRanges.frontmatter.start.line||r&&e.start.line>r.line?r&&n==="bottom"?Zf.Range.create(r,r):Zf.Range.create(t.tsxRanges.frontmatter.start,t.tsxRanges.frontmatter.start):e}return e}Ht.ensureRangeIsInFrontmatter=VP;function GP(e,t,n){return e.newText=`---${e.newText.startsWith(n)?"":n}${e.newText}---${n}${n}`,e.range=Zf.Range.create(t.tsxRanges.frontmatter.start,t.tsxRanges.frontmatter.start),e}Ht.getNewFrontmatterEdit=GP;function KP(e,t,n){return e.newText=e.newText.startsWith(n)?`${e.newText}---`:`${n}${e.newText}---`,e.range=Zf.Range.create(t.tsxRanges.frontmatter.start,t.tsxRanges.frontmatter.start),e}Ht.getOpenFrontmatterEdit=KP;function sG(e,t){let n=e.start.line<t.tsxRanges.frontmatter.start.line,r=e.start.line>t.tsxRanges.body.end.line;return n||r?{itShould:!0,position:r?"bottom":"top"}:{itShould:!1,position:void 0}}Ht.editShouldBeInFrontmatter=sG});var YP=O(kr=>{"use strict";var oG=kr&&kr.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),aG=kr&&kr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),lG=kr&&kr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&oG(t,e,n);return aG(t,e),t};Object.defineProperty(kr,"__esModule",{value:!0});kr.preprocessHTML=kr.parseHTML=void 0;var no=lG((Rl(),Eo(Dl))),cG=Ko(),XP=no.getLanguageService();function uG(e,t){let n=QP(e.getText(0,e.getLength()),t);return{virtualCode:dG(n),htmlDocument:hG(n)}}kr.parseHTML=uG;var JP=XP.createScanner;function QP(e,t){let n=e.split("").fill(" ",0,t).join(""),r=JP(n),i=r.scan(),s=null;for(;i!==no.TokenType.EOS;){let a=r.getTokenOffset();i===no.TokenType.StartTagOpen&&(s=a),i===no.TokenType.StartTagClose&&(o(a)?l(a):s=null),i===no.TokenType.StartTagSelfClose&&(s=null),i===no.TokenType.Unknown&&r.getScannerState()===no.ScannerState.WithinTag&&r.getTokenText()==="<"&&o(a)&&l(a),i=r.scan()}return n;function o(a){return s!==null&&(0,cG.isInsideExpression)(n,s,a)}function l(a,c){n=n.substring(0,a)+" "+n.substring(a+1),r=JP(n,a,c??no.ScannerState.WithinTag)}}kr.preprocessHTML=QP;function dG(e){return{id:"html",languageId:"html",snapshot:{getText:(t,n)=>e.substring(t,n),getLength:()=>e.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[0],generatedOffsets:[0],lengths:[e.length],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}}],embeddedCodes:[]}}function hG(e){return XP.parseHTMLDocument({getText:()=>e})}});var tI=O(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});tm.extractScriptTags=void 0;var ZP=require("@astrojs/compiler/utils"),eI=qe();function pG(e,t,n){let r=fG(e,t.roots),i=[...mG(t,e),...vG(n)].sort((s,o)=>s.startOffset-o.startOffset);return i.length>0&&r.push(yG(i)),r}tm.extractScriptTags=pG;function em(e){return!e.attributes||Object.entries(e.attributes).length===0?"processed module":e.attributes.type?.includes("module")===!0?"module":"classic"}function fG(e,t){let n=[],r=0;i(t);function i(s){for(let[o,l]of s.entries()){if(l.tag==="script"&&l.startTagEnd!==void 0&&l.endTagStart!==void 0&&em(l)!=="classic"){let a=e.getText(l.startTagEnd,l.endTagStart),c=em(l)==="processed module"?"mts":"mjs",u=em(l)==="processed module"?"typescript":"javascript";n.push({id:`${r}.${c}`,languageId:u,snapshot:{getText:(d,h)=>a.substring(d,h),getLength:()=>a.length,getChangeRange:()=>{}},mappings:[{sourceOffsets:[l.startTagEnd],generatedOffsets:[0],lengths:[a.length],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}}],embeddedCodes:[]}),r++}l.children&&i(l.children)}}return n}function mG(e,t){let n=[];r(e.roots);function r(i){for(let[s,o]of i.entries()){if(o.tag==="script"&&o.startTagEnd!==void 0&&o.endTagStart!==void 0&&!bG(o.attributes?.type)&&em(o)==="classic"){let l=t.getText(o.startTagEnd,o.endTagStart);n.push({startOffset:o.startTagEnd,content:l})}o.children&&r(o.children)}}return n}var gG=["application/json","application/ld+json","importmap","speculationrules"];function bG(e){return e?gG.includes(e.slice(1,-1)):!1}function vG(e){let t=[];function n(r){r.children&&r.children.forEach(i=>{if(ZP.is.element(i)){let s=i.attributes.find(o=>wG.includes(o.name)&&o.kind==="quoted");s&&s.position&&t.push({content:s.value+";",startOffset:s.position.start.offset+`${s.name}="`.length})}ZP.is.parent(i)&&n(i)})}return n(e),t}function yG(e){let t=[];for(let i of e)t.push([i.content,void 0,i.startOffset,{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!1}]);let n=(0,eI.buildMappings)(t),r=(0,eI.toString)(t);return{id:"inline.mjs",languageId:"javascript",snapshot:{getText:(i,s)=>r.substring(i,s),getLength:()=>r.length,getChangeRange:()=>{}},embeddedCodes:[],mappings:n}}var wG=["onabort","onafterprint","onauxclick","onbeforematch","onbeforeprint","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"]});var ro=O(Tr=>{"use strict";var _G=Tr&&Tr.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),SG=Tr&&Tr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),xG=Tr&&Tr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&_G(t,e,n);return SG(t,e),t};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.AstroVirtualCode=Tr.getLanguageModule=void 0;var nS=xG(require("node:path")),nI=qe(),CG=E_(),kG=jP(),TG=UP(),EG=$P(),DG=YP(),RG=tI();function AG(e,t){return{createVirtualCode(n,r,i){if(r==="astro"){let s=n.includes("://")?n.split("://")[1]:n;return new nm(s,i)}},updateVirtualCode(n,r,i){return r.update(i),r},typescript:{extraFileExtensions:[{extension:"astro",isMixedContent:!0,scriptKind:7}],getScript(n){for(let r of(0,nI.forEachEmbeddedCode)(n))if(r.id==="tsx")return{code:r,extension:".tsx",scriptKind:4}},getExtraScripts(n,r){let i=[];for(let s of(0,nI.forEachEmbeddedCode)(r))if(s.id.endsWith(".mjs")||s.id.endsWith(".mts")){let o=s.id.endsWith(".mjs")?".mjs":".mts";i.push({fileName:n+"."+s.id,code:s,extension:o,scriptKind:o===".mjs"?1:3})}return i},resolveLanguageServiceHost(n){return{...n,getScriptFileNames(){let r=(0,CG.getLanguageServerTypesDir)(t),i=n.getScriptFileNames(),s=[];return e?(s.push(...["./env.d.ts","./astro-jsx.d.ts"].map(o=>t.sys.resolvePath(nS.resolve(e.path,o)))),(e.version.major<4||e.version.major===4&&e.version.minor===0&&e.version.patch<8)&&s.push(...["./jsx-runtime-augment.d.ts"].map(o=>t.sys.resolvePath(nS.resolve(r,o))))):s.push(...["./env.d.ts","./astro-jsx.d.ts","./jsx-runtime-fallback.d.ts"].map(o=>t.sys.resolvePath(nS.resolve(r,o)))),[...i,...s]},getCompilationSettings(){let r=n.getCompilationSettings();return{...r,module:t.ModuleKind.ESNext??99,target:t.ScriptTarget.ESNext??99,jsx:t.JsxEmit.Preserve??1,resolveJsonModule:!0,allowJs:!0,isolatedModules:!0,moduleResolution:r.moduleResolution===t.ModuleResolutionKind.Classic||!r.moduleResolution?t.ModuleResolutionKind.Node10:r.moduleResolution}}}}}}}Tr.getLanguageModule=AG;var nm=class{constructor(t,n){this.fileName=t,this.snapshot=n,this.id="root",this.languageId="astro",this.codegenStacks=[],this.onSnapshotUpdated()}get hasCompilationErrors(){return this.compilerDiagnostics.filter(t=>t.severity===1).length>0}update(t){this.snapshot=t,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceOffsets:[0],generatedOffsets:[0],lengths:[this.snapshot.getLength()],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!0}}],this.compilerDiagnostics=[];let t=(0,TG.getAstroMetadata)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()));t.diagnostics.length>0&&this.compilerDiagnostics.push(...t.diagnostics);let{htmlDocument:n,virtualCode:r}=(0,DG.parseHTML)(this.snapshot,t.frontmatter.status==="closed"?t.frontmatter.position.end.offset:0);this.htmlDocument=n;let i=(0,RG.extractScriptTags)(this.snapshot,n,t.ast);this.scriptCodeIds=i.map(o=>o.id),r.embeddedCodes.push(...(0,EG.extractStylesheets)(this.snapshot,n,t.ast),...i),this.embeddedCodes=[],this.embeddedCodes.push(r);let s=(0,kG.astro2tsx)(this.snapshot.getText(0,this.snapshot.getLength()),this.fileName,n);this.astroMeta={...t,tsxRanges:s.ranges},this.compilerDiagnostics.push(...s.diagnostics),this.embeddedCodes.push(s.virtualCode)}};Tr.AstroVirtualCode=nm});var rI=O(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.getSvelteLanguageModule=void 0;var FG=qe(),PG=Xf();function IG(){return{createVirtualCode(e,t,n){if(t==="svelte"){let r=e.includes("://")?e.split("://")[1]:e;return new rS(r,n)}},updateVirtualCode(e,t,n){return t.update(n),t},typescript:{extraFileExtensions:[{extension:"svelte",isMixedContent:!0,scriptKind:7}],getScript(e){for(let t of(0,FG.forEachEmbeddedCode)(e))if(t.id==="tsx")return{code:t,extension:".tsx",scriptKind:4}}}}}rm.getSvelteLanguageModule=IG;var rS=class{constructor(t,n){this.fileName=t,this.snapshot=n,this.id="root",this.languageId="svelte",this.codegenStacks=[],this.onSnapshotUpdated()}update(t){this.snapshot=t,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceOffsets:[0],generatedOffsets:[0],lengths:[this.snapshot.getLength()],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!0}}],this.embeddedCodes=[],this.embeddedCodes.push((0,PG.framework2tsx)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"svelte"))}}});var iI=O(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.getVueLanguageModule=void 0;var MG=qe(),OG=Xf();function LG(){return{createVirtualCode(e,t,n){if(t==="vue"){let r=e.includes("://")?e.split("://")[1]:e;return new iS(r,n)}},updateVirtualCode(e,t,n){return t.update(n),t},typescript:{extraFileExtensions:[{extension:"vue",isMixedContent:!0,scriptKind:7}],getScript(e){for(let t of(0,MG.forEachEmbeddedCode)(e))if(t.id==="tsx")return{code:t,extension:".tsx",scriptKind:4}}}}}im.getVueLanguageModule=LG;var iS=class{constructor(t,n){this.fileName=t,this.snapshot=n,this.id="root",this.languageId="vue",this.codegenStacks=[],this.onSnapshotUpdated()}update(t){this.snapshot=t,this.onSnapshotUpdated()}onSnapshotUpdated(){this.mappings=[{sourceOffsets:[0],generatedOffsets:[0],lengths:[this.snapshot.getLength()],data:{verification:!0,completion:!0,semantic:!0,navigation:!0,structure:!0,format:!0}}],this.embeddedCodes=[],this.embeddedCodes.push((0,OG.framework2tsx)(this.fileName,this.snapshot.getText(0,this.snapshot.getLength()),"vue"))}}});var F,am,sm,sI,oI,Nge,om,aI,lI,Tu,Eu,NG,zG,Du,qG,Jo,cI,WG,sS,mI,gI,jG,UG,HG,$G,BG,oS,uI,Fl,Pl,Ru,dI,hI,aS,lS,VG,GG,KG,JG,XG,QG,YG,pI,fI,ZG,eK,Si,kt,Er,io=ge(()=>{"use strict";(function(e){e[e.Ident=0]="Ident",e[e.AtKeyword=1]="AtKeyword",e[e.String=2]="String",e[e.BadString=3]="BadString",e[e.UnquotedString=4]="UnquotedString",e[e.Hash=5]="Hash",e[e.Num=6]="Num",e[e.Percentage=7]="Percentage",e[e.Dimension=8]="Dimension",e[e.UnicodeRange=9]="UnicodeRange",e[e.CDO=10]="CDO",e[e.CDC=11]="CDC",e[e.Colon=12]="Colon",e[e.SemiColon=13]="SemiColon",e[e.CurlyL=14]="CurlyL",e[e.CurlyR=15]="CurlyR",e[e.ParenthesisL=16]="ParenthesisL",e[e.ParenthesisR=17]="ParenthesisR",e[e.BracketL=18]="BracketL",e[e.BracketR=19]="BracketR",e[e.Whitespace=20]="Whitespace",e[e.Includes=21]="Includes",e[e.Dashmatch=22]="Dashmatch",e[e.SubstringOperator=23]="SubstringOperator",e[e.PrefixOperator=24]="PrefixOperator",e[e.SuffixOperator=25]="SuffixOperator",e[e.Delim=26]="Delim",e[e.EMS=27]="EMS",e[e.EXS=28]="EXS",e[e.Length=29]="Length",e[e.Angle=30]="Angle",e[e.Time=31]="Time",e[e.Freq=32]="Freq",e[e.Exclamation=33]="Exclamation",e[e.Resolution=34]="Resolution",e[e.Comma=35]="Comma",e[e.Charset=36]="Charset",e[e.EscapedJavaScript=37]="EscapedJavaScript",e[e.BadEscapedJavaScript=38]="BadEscapedJavaScript",e[e.Comment=39]="Comment",e[e.SingleLineComment=40]="SingleLineComment",e[e.EOF=41]="EOF",e[e.CustomToken=42]="CustomToken",e[e.ContainerQueryLength=43]="ContainerQueryLength"})(F||(F={}));am=class{constructor(t){this.source=t,this.len=t.length,this.position=0}substring(t,n=this.position){return this.source.substring(t,n)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(t){this.position=t}goBack(t){this.position-=t}advance(t){this.position+=t}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(t=0){return this.source.charCodeAt(this.position+t)||0}lookbackChar(t=0){return this.source.charCodeAt(this.position-t)||0}advanceIfChar(t){return t===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(t){if(this.position+t.length>this.source.length)return!1;let n=0;for(;n<t.length;n++)if(this.source.charCodeAt(this.position+n)!==t[n])return!1;return this.advance(n),!0}advanceWhileChar(t){let n=this.position;for(;this.position<this.len&&t(this.source.charCodeAt(this.position));)this.position++;return this.position-n}},sm="a".charCodeAt(0),sI="f".charCodeAt(0),oI="z".charCodeAt(0),Nge="u".charCodeAt(0),om="A".charCodeAt(0),aI="F".charCodeAt(0),lI="Z".charCodeAt(0),Tu="0".charCodeAt(0),Eu="9".charCodeAt(0),NG="~".charCodeAt(0),zG="^".charCodeAt(0),Du="=".charCodeAt(0),qG="|".charCodeAt(0),Jo="-".charCodeAt(0),cI="_".charCodeAt(0),WG="%".charCodeAt(0),sS="*".charCodeAt(0),mI="(".charCodeAt(0),gI=")".charCodeAt(0),jG="<".charCodeAt(0),UG=">".charCodeAt(0),HG="@".charCodeAt(0),$G="#".charCodeAt(0),BG="$".charCodeAt(0),oS="\\".charCodeAt(0),uI="/".charCodeAt(0),Fl=`
|
|
534
534
|
`.charCodeAt(0),Pl="\r".charCodeAt(0),Ru="\f".charCodeAt(0),dI='"'.charCodeAt(0),hI="'".charCodeAt(0),aS=" ".charCodeAt(0),lS=" ".charCodeAt(0),VG=";".charCodeAt(0),GG=":".charCodeAt(0),KG="{".charCodeAt(0),JG="}".charCodeAt(0),XG="[".charCodeAt(0),QG="]".charCodeAt(0),YG=",".charCodeAt(0),pI=".".charCodeAt(0),fI="!".charCodeAt(0),ZG="?".charCodeAt(0),eK="+".charCodeAt(0),Si={};Si[VG]=F.SemiColon;Si[GG]=F.Colon;Si[KG]=F.CurlyL;Si[JG]=F.CurlyR;Si[QG]=F.BracketR;Si[XG]=F.BracketL;Si[mI]=F.ParenthesisL;Si[gI]=F.ParenthesisR;Si[YG]=F.Comma;kt={};kt.em=F.EMS;kt.ex=F.EXS;kt.px=F.Length;kt.cm=F.Length;kt.mm=F.Length;kt.in=F.Length;kt.pt=F.Length;kt.pc=F.Length;kt.deg=F.Angle;kt.rad=F.Angle;kt.grad=F.Angle;kt.ms=F.Time;kt.s=F.Time;kt.hz=F.Freq;kt.khz=F.Freq;kt["%"]=F.Percentage;kt.fr=F.Percentage;kt.dpi=F.Resolution;kt.dpcm=F.Resolution;kt.cqw=F.ContainerQueryLength;kt.cqh=F.ContainerQueryLength;kt.cqi=F.ContainerQueryLength;kt.cqb=F.ContainerQueryLength;kt.cqmin=F.ContainerQueryLength;kt.cqmax=F.ContainerQueryLength;Er=class{constructor(){this.stream=new am(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(t){this.stream=new am(t)}finishToken(t,n,r){return{offset:t,len:this.stream.pos()-t,type:n,text:r||this.stream.substring(t)}}substring(t,n){return this.stream.substring(t,t+n)}pos(){return this.stream.pos()}goBackTo(t){this.stream.goBackTo(t)}scanUnquotedString(){let t=this.stream.pos(),n=[];return this._unquotedString(n)?this.finishToken(t,F.UnquotedString,n.join("")):null}scan(){let t=this.trivia();if(t!==null)return t;let n=this.stream.pos();return this.stream.eos()?this.finishToken(n,F.EOF):this.scanNext(n)}tryScanUnicode(){let t=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(t,F.UnicodeRange);this.stream.goBackTo(t)}scanNext(t){if(this.stream.advanceIfChars([jG,fI,Jo,Jo]))return this.finishToken(t,F.CDO);if(this.stream.advanceIfChars([Jo,Jo,UG]))return this.finishToken(t,F.CDC);let n=[];if(this.ident(n))return this.finishToken(t,F.Ident,n.join(""));if(this.stream.advanceIfChar(HG))if(n=["@"],this._name(n)){let i=n.join("");return i==="@charset"?this.finishToken(t,F.Charset,i):this.finishToken(t,F.AtKeyword,i)}else return this.finishToken(t,F.Delim);if(this.stream.advanceIfChar($G))return n=["#"],this._name(n)?this.finishToken(t,F.Hash,n.join("")):this.finishToken(t,F.Delim);if(this.stream.advanceIfChar(fI))return this.finishToken(t,F.Exclamation);if(this._number()){let i=this.stream.pos();if(n=[this.stream.substring(t,i)],this.stream.advanceIfChar(WG))return this.finishToken(t,F.Percentage);if(this.ident(n)){let s=this.stream.substring(i).toLowerCase(),o=kt[s];return typeof o<"u"?this.finishToken(t,o,n.join("")):this.finishToken(t,F.Dimension,n.join(""))}return this.finishToken(t,F.Num)}n=[];let r=this._string(n);return r!==null?this.finishToken(t,r,n.join("")):(r=Si[this.stream.peekChar()],typeof r<"u"?(this.stream.advance(1),this.finishToken(t,r)):this.stream.peekChar(0)===NG&&this.stream.peekChar(1)===Du?(this.stream.advance(2),this.finishToken(t,F.Includes)):this.stream.peekChar(0)===qG&&this.stream.peekChar(1)===Du?(this.stream.advance(2),this.finishToken(t,F.Dashmatch)):this.stream.peekChar(0)===sS&&this.stream.peekChar(1)===Du?(this.stream.advance(2),this.finishToken(t,F.SubstringOperator)):this.stream.peekChar(0)===zG&&this.stream.peekChar(1)===Du?(this.stream.advance(2),this.finishToken(t,F.PrefixOperator)):this.stream.peekChar(0)===BG&&this.stream.peekChar(1)===Du?(this.stream.advance(2),this.finishToken(t,F.SuffixOperator)):(this.stream.nextChar(),this.finishToken(t,F.Delim)))}trivia(){for(;;){let t=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(t,F.Whitespace)}else if(this.comment()){if(!this.ignoreComment)return this.finishToken(t,F.Comment)}else return null}}comment(){if(this.stream.advanceIfChars([uI,sS])){let t=!1,n=!1;return this.stream.advanceWhileChar(r=>n&&r===uI?(t=!0,!1):(n=r===sS,!0)),t&&this.stream.advance(1),!0}return!1}_number(){let t=0,n;return this.stream.peekChar()===pI&&(t=1),n=this.stream.peekChar(t),n>=Tu&&n<=Eu?(this.stream.advance(t+1),this.stream.advanceWhileChar(r=>r>=Tu&&r<=Eu||t===0&&r===pI),!0):!1}_newline(t){let n=this.stream.peekChar();switch(n){case Pl:case Ru:case Fl:return this.stream.advance(1),t.push(String.fromCharCode(n)),n===Pl&&this.stream.advanceIfChar(Fl)&&t.push(`
|
|
535
535
|
`),!0}return!1}_escape(t,n){let r=this.stream.peekChar();if(r===oS){this.stream.advance(1),r=this.stream.peekChar();let i=0;for(;i<6&&(r>=Tu&&r<=Eu||r>=sm&&r<=sI||r>=om&&r<=aI);)this.stream.advance(1),r=this.stream.peekChar(),i++;if(i>0){try{let s=parseInt(this.stream.substring(this.stream.pos()-i),16);s&&t.push(String.fromCharCode(s))}catch{}return r===aS||r===lS?this.stream.advance(1):this._newline([]),!0}if(r!==Pl&&r!==Ru&&r!==Fl)return this.stream.advance(1),t.push(String.fromCharCode(r)),!0;if(n)return this._newline(t)}return!1}_stringChar(t,n){let r=this.stream.peekChar();return r!==0&&r!==t&&r!==oS&&r!==Pl&&r!==Ru&&r!==Fl?(this.stream.advance(1),n.push(String.fromCharCode(r)),!0):!1}_string(t){if(this.stream.peekChar()===hI||this.stream.peekChar()===dI){let n=this.stream.nextChar();for(t.push(String.fromCharCode(n));this._stringChar(n,t)||this._escape(t,!0););return this.stream.peekChar()===n?(this.stream.nextChar(),t.push(String.fromCharCode(n)),F.String):F.BadString}return null}_unquotedChar(t){let n=this.stream.peekChar();return n!==0&&n!==oS&&n!==hI&&n!==dI&&n!==mI&&n!==gI&&n!==aS&&n!==lS&&n!==Fl&&n!==Ru&&n!==Pl?(this.stream.advance(1),t.push(String.fromCharCode(n)),!0):!1}_unquotedString(t){let n=!1;for(;this._unquotedChar(t)||this._escape(t);)n=!0;return n}_whitespace(){return this.stream.advanceWhileChar(n=>n===aS||n===lS||n===Fl||n===Ru||n===Pl)>0}_name(t){let n=!1;for(;this._identChar(t)||this._escape(t);)n=!0;return n}ident(t){let n=this.stream.pos();if(this._minus(t)){if(this._minus(t)||this._identFirstChar(t)||this._escape(t)){for(;this._identChar(t)||this._escape(t););return!0}}else if(this._identFirstChar(t)||this._escape(t)){for(;this._identChar(t)||this._escape(t););return!0}return this.stream.goBackTo(n),!1}_identFirstChar(t){let n=this.stream.peekChar();return n===cI||n>=sm&&n<=oI||n>=om&&n<=lI||n>=128&&n<=65535?(this.stream.advance(1),t.push(String.fromCharCode(n)),!0):!1}_minus(t){let n=this.stream.peekChar();return n===Jo?(this.stream.advance(1),t.push(String.fromCharCode(n)),!0):!1}_identChar(t){let n=this.stream.peekChar();return n===cI||n===Jo||n>=sm&&n<=oI||n>=om&&n<=lI||n>=Tu&&n<=Eu||n>=128&&n<=65535?(this.stream.advance(1),t.push(String.fromCharCode(n)),!0):!1}_unicodeRange(){if(this.stream.advanceIfChar(eK)){let t=r=>r>=Tu&&r<=Eu||r>=sm&&r<=sI||r>=om&&r<=aI,n=this.stream.advanceWhileChar(t)+this.stream.advanceWhileChar(r=>r===ZG);if(n>=1&&n<=6)if(this.stream.advanceIfChar(Jo)){let r=this.stream.advanceWhileChar(t);if(r>=1&&r<=6)return!0}else return!0}return!1}}});function Rt(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function lm(e,t){let n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function bI(e,t,n=4){let r=Math.abs(e.length-t.length);if(r>n)return 0;let i=[],s=[],o,l;for(o=0;o<t.length+1;++o)s.push(0);for(o=0;o<e.length+1;++o)i.push(s);for(o=1;o<e.length+1;++o)for(l=1;l<t.length+1;++l)e[o-1]===t[l-1]?i[o][l]=i[o-1][l-1]+1:i[o][l]=Math.max(i[o-1][l],i[o][l-1]);return i[e.length][t.length]-Math.sqrt(r)}function cS(e,t=!0){return e?e.length<140?e:e.slice(0,140)+(t?"\u2026":""):""}function vI(e,t){let n=t.exec(e);return n&&n[0].length?e.substr(0,e.length-n[0].length):e}function uS(e,t){let n="";for(;t>0;)(t&1)===1&&(n+=e),e+=e,t=t>>>1;return n}var ns=ge(()=>{"use strict"});function Wm(e,t){let n=null;return!e||t<e.offset||t>e.end?null:(e.accept(r=>r.offset===-1&&r.length===-1?!0:r.offset<=t&&r.end>=t?(n?r.length<=n.length&&(n=r):n=r,!0):!1),n)}function Hl(e,t){let n=Wm(e,t),r=[];for(;n;)r.unshift(n),n=n.parent;return r}function yI(e){let t=e.findParent($.Declaration),n=t&&t.getValue();return n&&n.encloses(e)?t:null}var $,Pe,me,sn,cm,tn,um,Xo,ht,er,Dr,Rr,Il,dm,nn,hm,so,dS,Zr,xi,tr,pm,fm,mm,gm,bm,rs,vm,Ml,Au,Ol,Fu,oo,ym,wm,_m,Sm,xm,Ll,Qo,Cm,km,Tm,Em,Nl,zl,Dm,Rm,is,Am,Fm,ql,ao,Pm,Im,Yo,Mm,rK,iK,sK,Zo,Ci,ea,lo,ki,Om,Lm,ss,ei,Wl,Nm,zm,qm,Pu,pn,jl,Ul,fn=ge(()=>{"use strict";ns();(function(e){e[e.Undefined=0]="Undefined",e[e.Identifier=1]="Identifier",e[e.Stylesheet=2]="Stylesheet",e[e.Ruleset=3]="Ruleset",e[e.Selector=4]="Selector",e[e.SimpleSelector=5]="SimpleSelector",e[e.SelectorInterpolation=6]="SelectorInterpolation",e[e.SelectorCombinator=7]="SelectorCombinator",e[e.SelectorCombinatorParent=8]="SelectorCombinatorParent",e[e.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",e[e.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",e[e.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",e[e.Page=12]="Page",e[e.PageBoxMarginBox=13]="PageBoxMarginBox",e[e.ClassSelector=14]="ClassSelector",e[e.IdentifierSelector=15]="IdentifierSelector",e[e.ElementNameSelector=16]="ElementNameSelector",e[e.PseudoSelector=17]="PseudoSelector",e[e.AttributeSelector=18]="AttributeSelector",e[e.Declaration=19]="Declaration",e[e.Declarations=20]="Declarations",e[e.Property=21]="Property",e[e.Expression=22]="Expression",e[e.BinaryExpression=23]="BinaryExpression",e[e.Term=24]="Term",e[e.Operator=25]="Operator",e[e.Value=26]="Value",e[e.StringLiteral=27]="StringLiteral",e[e.URILiteral=28]="URILiteral",e[e.EscapedValue=29]="EscapedValue",e[e.Function=30]="Function",e[e.NumericValue=31]="NumericValue",e[e.HexColorValue=32]="HexColorValue",e[e.RatioValue=33]="RatioValue",e[e.MixinDeclaration=34]="MixinDeclaration",e[e.MixinReference=35]="MixinReference",e[e.VariableName=36]="VariableName",e[e.VariableDeclaration=37]="VariableDeclaration",e[e.Prio=38]="Prio",e[e.Interpolation=39]="Interpolation",e[e.NestedProperties=40]="NestedProperties",e[e.ExtendsReference=41]="ExtendsReference",e[e.SelectorPlaceholder=42]="SelectorPlaceholder",e[e.Debug=43]="Debug",e[e.If=44]="If",e[e.Else=45]="Else",e[e.For=46]="For",e[e.Each=47]="Each",e[e.While=48]="While",e[e.MixinContentReference=49]="MixinContentReference",e[e.MixinContentDeclaration=50]="MixinContentDeclaration",e[e.Media=51]="Media",e[e.Keyframe=52]="Keyframe",e[e.FontFace=53]="FontFace",e[e.Import=54]="Import",e[e.Namespace=55]="Namespace",e[e.Invocation=56]="Invocation",e[e.FunctionDeclaration=57]="FunctionDeclaration",e[e.ReturnStatement=58]="ReturnStatement",e[e.MediaQuery=59]="MediaQuery",e[e.MediaCondition=60]="MediaCondition",e[e.MediaFeature=61]="MediaFeature",e[e.FunctionParameter=62]="FunctionParameter",e[e.FunctionArgument=63]="FunctionArgument",e[e.KeyframeSelector=64]="KeyframeSelector",e[e.ViewPort=65]="ViewPort",e[e.Document=66]="Document",e[e.AtApplyRule=67]="AtApplyRule",e[e.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",e[e.CustomPropertySet=69]="CustomPropertySet",e[e.ListEntry=70]="ListEntry",e[e.Supports=71]="Supports",e[e.SupportsCondition=72]="SupportsCondition",e[e.NamespacePrefix=73]="NamespacePrefix",e[e.GridLine=74]="GridLine",e[e.Plugin=75]="Plugin",e[e.UnknownAtRule=76]="UnknownAtRule",e[e.Use=77]="Use",e[e.ModuleConfiguration=78]="ModuleConfiguration",e[e.Forward=79]="Forward",e[e.ForwardVisibility=80]="ForwardVisibility",e[e.Module=81]="Module",e[e.UnicodeRange=82]="UnicodeRange",e[e.Layer=83]="Layer",e[e.LayerNameList=84]="LayerNameList",e[e.LayerName=85]="LayerName",e[e.PropertyAtRule=86]="PropertyAtRule",e[e.Container=87]="Container"})($||($={}));(function(e){e[e.Mixin=0]="Mixin",e[e.Rule=1]="Rule",e[e.Variable=2]="Variable",e[e.Function=3]="Function",e[e.Keyframe=4]="Keyframe",e[e.Unknown=5]="Unknown",e[e.Module=6]="Module",e[e.Forward=7]="Forward",e[e.ForwardVisibility=8]="ForwardVisibility",e[e.Property=9]="Property"})(Pe||(Pe={}));me=class{get end(){return this.offset+this.length}constructor(t=-1,n=-1,r){this.parent=null,this.offset=t,this.length=n,r&&(this.nodeType=r)}set type(t){this.nodeType=t}get type(){return this.nodeType||$.Undefined}getTextProvider(){let t=this;for(;t&&!t.textProvider;)t=t.parent;return t?t.textProvider:()=>"unknown"}getText(){return this.getTextProvider()(this.offset,this.length)}matches(t){return this.length===t.length&&this.getTextProvider()(this.offset,this.length)===t}startsWith(t){return this.length>=t.length&&this.getTextProvider()(this.offset,t.length)===t}endsWith(t){return this.length>=t.length&&this.getTextProvider()(this.end-t.length,t.length)===t}accept(t){if(t(this)&&this.children)for(let n of this.children)n.accept(t)}acceptVisitor(t){this.accept(t.visitNode.bind(t))}adoptChild(t,n=-1){if(t.parent&&t.parent.children){let i=t.parent.children.indexOf(t);i>=0&&t.parent.children.splice(i,1)}t.parent=this;let r=this.children;return r||(r=this.children=[]),n!==-1?r.splice(n,0,t):r.push(t),t}attachTo(t,n=-1){return t&&t.adoptChild(this,n),this}collectIssues(t){this.issues&&t.push.apply(t,this.issues)}addIssue(t){this.issues||(this.issues=[]),this.issues.push(t)}hasIssue(t){return Array.isArray(this.issues)&&this.issues.some(n=>n.getRule()===t)}isErroneous(t=!1){return this.issues&&this.issues.length>0?!0:t&&Array.isArray(this.children)&&this.children.some(n=>n.isErroneous(!0))}setNode(t,n,r=-1){return n?(n.attachTo(this,r),this[t]=n,!0):!1}addChild(t){return t?(this.children||(this.children=[]),t.attachTo(this),this.updateOffsetAndLength(t),!0):!1}updateOffsetAndLength(t){(t.offset<this.offset||this.offset===-1)&&(this.offset=t.offset);let n=t.end;(n>this.end||this.length===-1)&&(this.length=n-this.offset)}hasChildren(){return!!this.children&&this.children.length>0}getChildren(){return this.children?this.children.slice(0):[]}getChild(t){return this.children&&t<this.children.length?this.children[t]:null}addChildren(t){for(let n of t)this.addChild(n)}findFirstChildBeforeOffset(t){if(this.children){let n=null;for(let r=this.children.length-1;r>=0;r--)if(n=this.children[r],n.offset<=t)return n}return null}findChildAtOffset(t,n){let r=this.findFirstChildBeforeOffset(t);return r&&r.end>=t?n&&r.findChildAtOffset(t,!0)||r:null}encloses(t){return this.offset<=t.offset&&this.offset+this.length>=t.offset+t.length}getParent(){let t=this.parent;for(;t instanceof sn;)t=t.parent;return t}findParent(t){let n=this;for(;n&&n.type!==t;)n=n.parent;return n}findAParent(...t){let n=this;for(;n&&!t.some(r=>n.type===r);)n=n.parent;return n}setData(t,n){this.options||(this.options={}),this.options[t]=n}getData(t){return!this.options||!this.options.hasOwnProperty(t)?null:this.options[t]}},sn=class extends me{constructor(t,n=-1){super(-1,-1),this.attachTo(t,n),this.offset=-1,this.length=-1}},cm=class extends me{constructor(t,n){super(t,n)}get type(){return $.UnicodeRange}setRangeStart(t){return this.setNode("rangeStart",t)}getRangeStart(){return this.rangeStart}setRangeEnd(t){return this.setNode("rangeEnd",t)}getRangeEnd(){return this.rangeEnd}},tn=class extends me{constructor(t,n){super(t,n),this.isCustomProperty=!1}get type(){return $.Identifier}containsInterpolation(){return this.hasChildren()}},um=class extends me{constructor(t,n){super(t,n)}get type(){return $.Stylesheet}},Xo=class extends me{constructor(t,n){super(t,n)}get type(){return $.Declarations}},ht=class extends me{constructor(t,n){super(t,n)}getDeclarations(){return this.declarations}setDeclarations(t){return this.setNode("declarations",t)}},er=class extends ht{constructor(t,n){super(t,n)}get type(){return $.Ruleset}getSelectors(){return this.selectors||(this.selectors=new sn(this)),this.selectors}isNested(){return!!this.parent&&this.parent.findParent($.Declarations)!==null}},Dr=class extends me{constructor(t,n){super(t,n)}get type(){return $.Selector}},Rr=class extends me{constructor(t,n){super(t,n)}get type(){return $.SimpleSelector}},Il=class extends me{constructor(t,n){super(t,n)}},dm=class extends ht{constructor(t,n){super(t,n)}get type(){return $.CustomPropertySet}},nn=class extends Il{constructor(t,n){super(t,n),this.property=null}get type(){return $.Declaration}setProperty(t){return this.setNode("property",t)}getProperty(){return this.property}getFullPropertyName(){let t=this.property?this.property.getName():"unknown";if(this.parent instanceof Xo&&this.parent.getParent()instanceof Au){let n=this.parent.getParent().getParent();if(n instanceof nn)return n.getFullPropertyName()+t}return t}getNonPrefixedPropertyName(){let t=this.getFullPropertyName();if(t&&t.charAt(0)==="-"){let n=t.indexOf("-",1);if(n!==-1)return t.substring(n+1)}return t}setValue(t){return this.setNode("value",t)}getValue(){return this.value}setNestedProperties(t){return this.setNode("nestedProperties",t)}getNestedProperties(){return this.nestedProperties}},hm=class extends nn{constructor(t,n){super(t,n)}get type(){return $.CustomPropertyDeclaration}setPropertySet(t){return this.setNode("propertySet",t)}getPropertySet(){return this.propertySet}},so=class extends me{constructor(t,n){super(t,n)}get type(){return $.Property}setIdentifier(t){return this.setNode("identifier",t)}getIdentifier(){return this.identifier}getName(){return vI(this.getText(),/[_\+]+$/)}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}},dS=class extends me{constructor(t,n){super(t,n)}get type(){return $.Invocation}getArguments(){return this.arguments||(this.arguments=new sn(this)),this.arguments}},Zr=class extends dS{constructor(t,n){super(t,n)}get type(){return $.Function}setIdentifier(t){return this.setNode("identifier",t,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},xi=class extends me{constructor(t,n){super(t,n)}get type(){return $.FunctionParameter}setIdentifier(t){return this.setNode("identifier",t,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setDefaultValue(t){return this.setNode("defaultValue",t,0)}getDefaultValue(){return this.defaultValue}},tr=class extends me{constructor(t,n){super(t,n)}get type(){return $.FunctionArgument}setIdentifier(t){return this.setNode("identifier",t,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(t){return this.setNode("value",t,0)}getValue(){return this.value}},pm=class extends ht{constructor(t,n){super(t,n)}get type(){return $.If}setExpression(t){return this.setNode("expression",t,0)}setElseClause(t){return this.setNode("elseClause",t)}},fm=class extends ht{constructor(t,n){super(t,n)}get type(){return $.For}setVariable(t){return this.setNode("variable",t,0)}},mm=class extends ht{constructor(t,n){super(t,n)}get type(){return $.Each}getVariables(){return this.variables||(this.variables=new sn(this)),this.variables}},gm=class extends ht{constructor(t,n){super(t,n)}get type(){return $.While}},bm=class extends ht{constructor(t,n){super(t,n)}get type(){return $.Else}},rs=class extends ht{constructor(t,n){super(t,n)}get type(){return $.FunctionDeclaration}setIdentifier(t){return this.setNode("identifier",t,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new sn(this)),this.parameters}},vm=class extends ht{constructor(t,n){super(t,n)}get type(){return $.ViewPort}},Ml=class extends ht{constructor(t,n){super(t,n)}get type(){return $.FontFace}},Au=class extends ht{constructor(t,n){super(t,n)}get type(){return $.NestedProperties}},Ol=class extends ht{constructor(t,n){super(t,n)}get type(){return $.Keyframe}setKeyword(t){return this.setNode("keyword",t,0)}getKeyword(){return this.keyword}setIdentifier(t){return this.setNode("identifier",t,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},Fu=class extends ht{constructor(t,n){super(t,n)}get type(){return $.KeyframeSelector}},oo=class extends me{constructor(t,n){super(t,n)}get type(){return $.Import}setMedialist(t){return t?(t.attachTo(this),!0):!1}},ym=class extends me{get type(){return $.Use}getParameters(){return this.parameters||(this.parameters=new sn(this)),this.parameters}setIdentifier(t){return this.setNode("identifier",t,0)}getIdentifier(){return this.identifier}},wm=class extends me{get type(){return $.ModuleConfiguration}setIdentifier(t){return this.setNode("identifier",t,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(t){return this.setNode("value",t,0)}getValue(){return this.value}},_m=class extends me{get type(){return $.Forward}setIdentifier(t){return this.setNode("identifier",t,0)}getIdentifier(){return this.identifier}getMembers(){return this.members||(this.members=new sn(this)),this.members}getParameters(){return this.parameters||(this.parameters=new sn(this)),this.parameters}},Sm=class extends me{get type(){return $.ForwardVisibility}setIdentifier(t){return this.setNode("identifier",t,0)}getIdentifier(){return this.identifier}},xm=class extends me{constructor(t,n){super(t,n)}get type(){return $.Namespace}},Ll=class extends ht{constructor(t,n){super(t,n)}get type(){return $.Media}},Qo=class extends ht{constructor(t,n){super(t,n)}get type(){return $.Supports}},Cm=class extends ht{constructor(t,n){super(t,n)}get type(){return $.Layer}setNames(t){return this.setNode("names",t)}getNames(){return this.names}},km=class extends ht{constructor(t,n){super(t,n)}get type(){return $.PropertyAtRule}setName(t){return t?(t.attachTo(this),this.name=t,!0):!1}getName(){return this.name}},Tm=class extends ht{constructor(t,n){super(t,n)}get type(){return $.Document}},Em=class extends ht{constructor(t,n){super(t,n)}get type(){return $.Container}},Nl=class extends me{constructor(t,n){super(t,n)}},zl=class extends me{constructor(t,n){super(t,n)}get type(){return $.MediaQuery}},Dm=class extends me{constructor(t,n){super(t,n)}get type(){return $.MediaCondition}},Rm=class extends me{constructor(t,n){super(t,n)}get type(){return $.MediaFeature}},is=class extends me{constructor(t,n){super(t,n)}get type(){return $.SupportsCondition}},Am=class extends ht{constructor(t,n){super(t,n)}get type(){return $.Page}},Fm=class extends ht{constructor(t,n){super(t,n)}get type(){return $.PageBoxMarginBox}},ql=class extends me{constructor(t,n){super(t,n)}get type(){return $.Expression}},ao=class extends me{constructor(t,n){super(t,n)}get type(){return $.BinaryExpression}setLeft(t){return this.setNode("left",t)}getLeft(){return this.left}setRight(t){return this.setNode("right",t)}getRight(){return this.right}setOperator(t){return this.setNode("operator",t)}getOperator(){return this.operator}},Pm=class extends me{constructor(t,n){super(t,n)}get type(){return $.Term}setOperator(t){return this.setNode("operator",t)}getOperator(){return this.operator}setExpression(t){return this.setNode("expression",t)}getExpression(){return this.expression}},Im=class extends me{constructor(t,n){super(t,n)}get type(){return $.AttributeSelector}setNamespacePrefix(t){return this.setNode("namespacePrefix",t)}getNamespacePrefix(){return this.namespacePrefix}setIdentifier(t){return this.setNode("identifier",t)}getIdentifier(){return this.identifier}setOperator(t){return this.setNode("operator",t)}getOperator(){return this.operator}setValue(t){return this.setNode("value",t)}getValue(){return this.value}},Yo=class extends me{constructor(t,n){super(t,n)}get type(){return $.HexColorValue}},Mm=class extends me{constructor(t,n){super(t,n)}get type(){return $.RatioValue}},rK=".".charCodeAt(0),iK="0".charCodeAt(0),sK="9".charCodeAt(0),Zo=class extends me{constructor(t,n){super(t,n)}get type(){return $.NumericValue}getValue(){let t=this.getText(),n=0,r;for(let i=0,s=t.length;i<s&&(r=t.charCodeAt(i),iK<=r&&r<=sK||r===rK);i++)n+=1;return{value:t.substring(0,n),unit:n<t.length?t.substring(n):void 0}}},Ci=class extends Il{constructor(t,n){super(t,n),this.needsSemicolon=!0}get type(){return $.VariableDeclaration}setVariable(t){return t?(t.attachTo(this),this.variable=t,!0):!1}getVariable(){return this.variable}getName(){return this.variable?this.variable.getName():""}setValue(t){return t?(t.attachTo(this),this.value=t,!0):!1}getValue(){return this.value}},ea=class extends me{constructor(t,n){super(t,n)}get type(){return $.Interpolation}},lo=class extends me{constructor(t,n){super(t,n)}get type(){return $.VariableName}getName(){return this.getText()}},ki=class extends me{constructor(t,n){super(t,n)}get type(){return $.ExtendsReference}getSelectors(){return this.selectors||(this.selectors=new sn(this)),this.selectors}},Om=class extends me{constructor(t,n){super(t,n)}get type(){return $.MixinContentReference}getArguments(){return this.arguments||(this.arguments=new sn(this)),this.arguments}},Lm=class extends ht{constructor(t,n){super(t,n)}get type(){return $.MixinContentDeclaration}getParameters(){return this.parameters||(this.parameters=new sn(this)),this.parameters}},ss=class extends me{constructor(t,n){super(t,n)}get type(){return $.MixinReference}getNamespaces(){return this.namespaces||(this.namespaces=new sn(this)),this.namespaces}setIdentifier(t){return this.setNode("identifier",t,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getArguments(){return this.arguments||(this.arguments=new sn(this)),this.arguments}setContent(t){return this.setNode("content",t)}getContent(){return this.content}},ei=class extends ht{constructor(t,n){super(t,n)}get type(){return $.MixinDeclaration}setIdentifier(t){return this.setNode("identifier",t,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new sn(this)),this.parameters}setGuard(t){return t&&(t.attachTo(this),this.guard=t),!1}},Wl=class extends ht{constructor(t,n){super(t,n)}get type(){return $.UnknownAtRule}setAtRuleName(t){this.atRuleName=t}getAtRuleName(){return this.atRuleName}},Nm=class extends me{get type(){return $.ListEntry}setKey(t){return this.setNode("key",t,0)}setValue(t){return this.setNode("value",t,1)}},zm=class extends me{getConditions(){return this.conditions||(this.conditions=new sn(this)),this.conditions}},qm=class extends me{setVariable(t){return this.setNode("variable",t)}},Pu=class extends me{get type(){return $.Module}setIdentifier(t){return this.setNode("identifier",t,0)}getIdentifier(){return this.identifier}};(function(e){e[e.Ignore=1]="Ignore",e[e.Warning=2]="Warning",e[e.Error=4]="Error"})(pn||(pn={}));jl=class{constructor(t,n,r,i,s=t.offset,o=t.length){this.node=t,this.rule=n,this.level=r,this.message=i||n.message,this.offset=s,this.length=o}getRule(){return this.rule}getLevel(){return this.level}getOffset(){return this.offset}getLength(){return this.length}getNode(){return this.node}getMessage(){return this.message}},Ul=class{static entries(t){let n=new Ul;return t.acceptVisitor(n),n.entries}constructor(){this.entries=[]}visitNode(t){return t.isErroneous()&&t.collectIssues(this.entries),!0}}});var Ye,Qe,X,jm=ge(()=>{"use strict";Ye=vn(xn()),Qe=class{constructor(t,n){this.id=t,this.message=n}},X={NumberExpected:new Qe("css-numberexpected",Ye.t("number expected")),ConditionExpected:new Qe("css-conditionexpected",Ye.t("condition expected")),RuleOrSelectorExpected:new Qe("css-ruleorselectorexpected",Ye.t("at-rule or selector expected")),DotExpected:new Qe("css-dotexpected",Ye.t("dot expected")),ColonExpected:new Qe("css-colonexpected",Ye.t("colon expected")),SemiColonExpected:new Qe("css-semicolonexpected",Ye.t("semi-colon expected")),TermExpected:new Qe("css-termexpected",Ye.t("term expected")),ExpressionExpected:new Qe("css-expressionexpected",Ye.t("expression expected")),OperatorExpected:new Qe("css-operatorexpected",Ye.t("operator expected")),IdentifierExpected:new Qe("css-identifierexpected",Ye.t("identifier expected")),PercentageExpected:new Qe("css-percentageexpected",Ye.t("percentage expected")),URIOrStringExpected:new Qe("css-uriorstringexpected",Ye.t("uri or string expected")),URIExpected:new Qe("css-uriexpected",Ye.t("URI expected")),VariableNameExpected:new Qe("css-varnameexpected",Ye.t("variable name expected")),VariableValueExpected:new Qe("css-varvalueexpected",Ye.t("variable value expected")),PropertyValueExpected:new Qe("css-propertyvalueexpected",Ye.t("property value expected")),LeftCurlyExpected:new Qe("css-lcurlyexpected",Ye.t("{ expected")),RightCurlyExpected:new Qe("css-rcurlyexpected",Ye.t("} expected")),LeftSquareBracketExpected:new Qe("css-rbracketexpected",Ye.t("[ expected")),RightSquareBracketExpected:new Qe("css-lbracketexpected",Ye.t("] expected")),LeftParenthesisExpected:new Qe("css-lparentexpected",Ye.t("( expected")),RightParenthesisExpected:new Qe("css-rparentexpected",Ye.t(") expected")),CommaExpected:new Qe("css-commaexpected",Ye.t("comma expected")),PageDirectiveOrDeclarationExpected:new Qe("css-pagedirordeclexpected",Ye.t("page directive or declaraton expected")),UnknownAtRule:new Qe("css-unknownatrule",Ye.t("at-rule unknown")),UnknownKeyword:new Qe("css-unknownkeyword",Ye.t("unknown keyword")),SelectorExpected:new Qe("css-selectorexpected",Ye.t("selector expected")),StringLiteralExpected:new Qe("css-stringliteralexpected",Ye.t("string literal expected")),WhitespaceExpected:new Qe("css-whitespaceexpected",Ye.t("whitespace expected")),MediaQueryExpected:new Qe("css-mediaqueryexpected",Ye.t("media query expected")),IdentifierOrWildcardExpected:new Qe("css-idorwildcardexpected",Ye.t("identifier or wildcard expected")),WildcardExpected:new Qe("css-wildcardexpected",Ye.t("wildcard expected")),IdentifierOrVariableExpected:new Qe("css-idorvarexpected",Ye.t("identifier or variable expected"))}});var hS,co,nr=ge(()=>{"use strict";z_();W_();(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Dt.Markdown,Dt.PlainText]}},hover:{contentFormat:[Dt.Markdown,Dt.PlainText]}}}})(hS||(hS={}));(function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"})(co||(co={}))});function _I(e){switch(e){case"experimental":return`\u26A0\uFE0F Property is experimental. Be cautious when using it.\uFE0F
|
|
536
536
|
|
|
@@ -627,9 +627,9 @@ ${"-".repeat(n.pos)}^`),n}}function tQ(e,t){if(!e.attributes)return;let n=[],r={
|
|
|
627
627
|
<!-- /[#ID][.CLASS] -->`,"bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":e==="jsx","stylesheet.shortHex":!0,"stylesheet.between":e==="stylus"?" ":": ","stylesheet.after":e==="sass"||e==="stylus"?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3},w={"output.tagCase":m.tagCase,"output.attributeCase":m.attributeCase,"output.attributeQuotes":m.attributeQuotes,"output.format":(s=m.format)!==null&&s!==void 0?s:!0,"output.formatSkip":f["format.noIndentTags"],"output.formatForce":f["format.forceIndentationForTags"],"output.inlineBreak":(o=m.inlineBreak)!==null&&o!==void 0?o:f["output.inlineBreak"],"output.compactBoolean":(l=m.compactBooleanAttributes)!==null&&l!==void 0?l:f["profile.allowCompactBoolean"],"output.reverseAttributes":f["output.reverseAttributes"],"output.selfClosingStyle":(c=(a=m.selfClosingStyle)!==null&&a!==void 0?a:f["output.selfClosingStyle"])!==null&&c!==void 0?c:xZ(e),"output.field":Le.emmetSnippetField,"comment.enabled":v,"comment.trigger":f["filter.commentTrigger"],"comment.before":f["filter.commentBefore"],"comment.after":f["filter.commentAfter"],"bem.enabled":y,"bem.element":(u=f["bem.elementSeparator"])!==null&&u!==void 0?u:"__","bem.modifier":(d=f["bem.modifierSeparator"])!==null&&d!==void 0?d:"_","jsx.enabled":e==="jsx","stylesheet.shortHex":f["css.color.short"],"stylesheet.between":f[`${p}.valueSeparator`],"stylesheet.after":f[`${p}.propertyEnd`],"stylesheet.intUnit":f["css.intUnit"],"stylesheet.floatUnit":f["css.floatUnit"],"stylesheet.unitAliases":k,"stylesheet.fuzzySearchMinScore":f["css.fuzzySearchMinScore"]};if(e==="jsx"){let I={class:"className","class*":"styleName",for:"htmlFor"},C={"class*":"styles"};m["markup.attributes"]&&(w["markup.attributes"]=Object.assign(Object.assign({},I),m["markup.attributes"])),m["markup.valuePrefix"]&&(w["markup.valuePrefix"]=Object.assign(Object.assign({},C),m["markup.valuePrefix"]))}let _={};[...Object.keys(R),...Object.keys(w)].forEach(I=>{var C;let E=I;_[E]=(C=w[E])!==null&&C!==void 0?C:R[E]});let S=Object.assign(Object.assign({},R["stylesheet.unitAliases"]),w["stylesheet.unitAliases"]);_["stylesheet.unitAliases"]=S;let D=L0(e),x=EZ(t.variables),A=N0(e),P=D==="stylesheet"?(h=ua[e])!==null&&h!==void 0?h:ua[A]:ua[e];return{type:D,options:_,variables:x,snippets:P,syntax:e,text:void 0,maxRepeat:1e3}}Le.getExpandOptions=WL;function xZ(e){switch(e){case"xhtml":return"xhtml";case"xml":return"xml";case"xsl":return"xml";case"jsx":return"xhtml";default:return"html"}}function CZ(e,t){let n=(0,sr.resolveConfig)(t);return t.type==="stylesheet"?(0,sr.parseStylesheet)(e,n):(0,sr.parseMarkup)(e,n)}Le.parseAbbreviation=CZ;function kZ(e,t){let n,r=(0,sr.resolveConfig)(t);return t.type==="stylesheet"?typeof e=="string"?n=(0,sr.default)(e,r):n=(0,sr.stringifyStylesheet)(e,r):typeof e=="string"?n=(0,sr.default)(e,r):n=(0,sr.stringifyMarkup)(e,r),Hg($g(n))}Le.expandAbbreviation=kZ;function TZ(e,t){t||(t={});let r=Object.assign({},Bg,t)[e];if(!r||typeof r=="string")return r==="xhtml"?{selfClosingStyle:"xhtml"}:{};let i={};for(let s in r)switch(s){case"tag_case":i.tagCase=r[s]==="lower"||r[s]==="upper"?r[s]:"";break;case"attr_case":i.attributeCase=r[s]==="lower"||r[s]==="upper"?r[s]:"";break;case"attr_quotes":i.attributeQuotes=r[s];break;case"tag_nl":i.format=r[s]===!0||r[s]===!1?r[s]:!0;break;case"inline_break":i.inlineBreak=r[s];break;case"self_closing_tag":if(r[s]===!0){i.selfClosingStyle="xml";break}if(r[s]===!1){i.selfClosingStyle="html";break}i.selfClosingStyle=r[s];break;case"compact_bool":i.compactBooleanAttributes=r[s];break;default:i[s]=r[s];break}return i}function EZ(e){return e?Object.assign({},ad,e):ad}function DZ(e,t){if(!t||typeof t!="object")return{};if(!ii(e)){let i={};for(let s in t)switch(s){case"filter.commentAfter":i.after=t[s];break;case"filter.commentBefore":i.before=t[s];break;case"filter.commentTrigger":i.trigger=t[s];break;default:break}return{comment:i}}let n=typeof t?.["css.fuzzySearchMinScore"]=="number"?t["css.fuzzySearchMinScore"]:.3;n>1?n=1:n<0&&(n=0);let r={fuzzySearchMinScore:n};for(let i in t)switch(i){case"css.floatUnit":r.floatUnit=t[i];break;case"css.intUnit":r.intUnit=t[i];break;case"css.unitAliases":let s={};t[i].split(",").forEach(o=>{if(!o||!o.trim()||!o.includes(":"))return;let l=o.substr(0,o.indexOf(":")),a=o.substr(l.length+1);!l.trim()||!a||(s[l.trim()]=a)}),r.unitAliases=s;break;case`${e}.valueSeparator`:r.between=t[i];break;case`${e}.propertyEnd`:r.after=t[i];break;default:break}return{stylesheet:r}}function RZ(e,t,n,r){return uZ(this,void 0,void 0,function*(){if(P0(),!e.length)return;let i=[];for(let s of e){if(typeof s!="string"){console.warn("The following emmetExtensionsPath isn't a string: "+JSON.stringify(s));continue}if(s=s.trim(),s.length&&s[0]==="~")r&&i.push((0,ca.joinPath)(r,s.substring(1)));else if((0,ca.isAbsolutePath)(s))i.push(hZ.URI.file(s));else if(n)for(let o of n)i.push((0,ca.joinPath)(o,s))}for(let s of i){try{if((yield t.stat(s)).type!==ca.FileType.Directory)continue}catch{continue}let o=(0,ca.joinPath)(s,"snippets.json"),l=(0,ca.joinPath)(s,"syntaxProfiles.json"),a;typeof globalThis.TextDecoder=="function"?a=new globalThis.TextDecoder:a=new dZ.TextDecoder;let c="";try{let d=yield t.readFile(o);c=a.decode(d)}catch{}if(c.length)try{let d=IL(o,c);d.variables&&AZ(d.variables),PZ(d)}catch(d){throw P0(),d}let u="";try{let d=yield t.readFile(l);u=a.decode(d)}catch{}if(u.length)try{let d=IL(l,u);FZ(d)}catch(d){throw P0(),d}}})}Le.updateExtensionsPath=RZ;function IL(e,t){let n=[],r=FL.parse(t,n);if(n.length)throw new Error(`Found error ${FL.printParseErrorCode(n[0].error)} while parsing the file ${e} at offset ${n[0].offset}`);return r}function AZ(e){if(typeof e=="object"&&e)ad=Object.assign({},ad,e);else throw new Error(dc.t("Invalid emmet.variables field. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."))}function FZ(e){if(typeof e=="object"&&e)Bg=Object.assign({},Bg,e);else throw new Error(dc.t("Invalid syntax profile. See https://code.visualstudio.com/docs/editor/emmet#_emmet-configuration for a valid example."))}function PZ(e){if(typeof e=="object"&&e)Object.keys(e).forEach(t=>{if(!e[t].snippets)return;let n=N0(t),r=e[t].snippets;if(e[n]&&e[n].snippets&&n!==t&&(r=Object.assign({},e[n].snippets,e[t].snippets)),ii(t)){let l=uc.get(t),a=Object.assign([],l,Object.keys(r));uc.set(t,a)}else for(let l in r)r.hasOwnProperty(l)&&r[l].startsWith("<")&&r[l].endsWith(">")&&(r[l]=`{${r[l]}}`);let i=ua[t],s=(0,sd.parseSnippets)(r),o=Object.assign({},i,s);ua[t]=o});else throw new Error(dc.t("Invalid snippets file. See https://code.visualstudio.com/docs/editor/emmet#_using-custom-emmet-snippets for a valid example."))}function P0(){ua={},Ug.clear(),uc.clear(),Bg={},ad={}}function jL(e,t=[]){if(!(!e||t.includes(e))){if(/\b(typescriptreact|javascriptreact|jsx-tags)\b/.test(e))return"jsx";if(e==="sass-indented")return"sass";if(e==="jade")return"pug";if(sd.syntaxes.markup.includes(e)||sd.syntaxes.stylesheet.includes(e))return e}}Le.getEmmetMode=jL});var W0=O(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.create=hc.getHtmlDocument=void 0;var vo=(Rl(),Eo(Dl)),z0=Kn(),IZ=vo.getLanguageService(),HL=new WeakMap;function q0(e){let t=HL.get(e);if(t){let[r,i]=t;if(r===e.version)return i}let n=IZ.parseHTMLDocument(e);return HL.set(e,[e.version,n]),n}hc.getHtmlDocument=q0;function MZ({languageId:e="html",useDefaultDataProvider:t=!0,useCustomDataProviders:n=!0}={}){return{name:"html",triggerCharacters:[".",":","<",'"',"=","/"],create(r){let i=!0,s=[],o=[],l={stat:async p=>await r.env.fs?.stat(p)??{type:vo.FileType.Unknown,ctime:0,mtime:0,size:0},readDirectory:async p=>r.env.fs?.readDirectory(p)??[]},a={resolveReference(p,m){if(p.match(/^\w[\w\d+.-]*:/))return p;if(p[0]==="/")return m+p;let g=z0.URI.parse(m),b=g.path.endsWith("/")?g:z0.Utils.dirname(g);return z0.Utils.resolvePath(b,p).toString(!0)}},c=vo.getLanguageService({fileSystemProvider:l,clientCapabilities:r.env.clientCapabilities});return r.env.onDidChangeConfiguration?.(()=>{i=!0}),{provide:{"html/htmlDocument":p=>{if(p.languageId===e)return q0(p)},"html/languageService":()=>c,"html/documentContext":()=>a,"html/updateCustomData":d},async provideCompletionItems(p,m){return f(p,async g=>{let b=await r.env.getConfiguration?.("html.completion");return c.doComplete2(p,m,g,a,b)})},provideRenameRange(p,m){return f(p,g=>{let b=p.offsetAt(m);return c.findDocumentHighlights(p,m,g)?.find(y=>b>=p.offsetAt(y.range.start)&&b<=p.offsetAt(y.range.end))?.range})},provideRenameEdits(p,m,g){return f(p,b=>c.doRename(p,m,g,b))},async provideHover(p,m){return f(p,async g=>{let b=await r.env.getConfiguration?.("html.hover");return c.doHover(p,m,g,b)})},provideDocumentHighlights(p,m){return f(p,g=>c.findDocumentHighlights(p,m,g))},provideDocumentLinks(p){return f(p,()=>c.findDocumentLinks(p,a))},provideDocumentSymbols(p){return f(p,m=>c.findDocumentSymbols2(p,m))},provideFoldingRanges(p){return f(p,()=>c.getFoldingRanges(p))},provideSelectionRanges(p,m){return f(p,()=>c.getSelectionRanges(p,m))},async provideDocumentFormattingEdits(p,m,g){return f(p,async()=>{let b=await r.env.getConfiguration?.("html.format");if(b?.enable!==!1){{let y=m.end,v=p.offsetAt(y),T=p.getText();if(y.character===0&&y.line>0&&v!==T.length){let k=p.offsetAt({line:y.line-1,character:0});for(;OZ(T,v-1)&&v>k;)v--;m={start:m.start,end:p.positionAt(v)}}}return c.format(p,m,{...b,...g})}})},provideFormattingIndentSensitiveLines(p){return f(p,m=>{let g=[],b=c.createScanner(p.getText()),y=b.scan(),v;for(;y!==vo.TokenType.EOS;){if(y===vo.TokenType.StartCommentTag)v=p.positionAt(b.getTokenOffset()).line;else if(y===vo.TokenType.EndCommentTag){let k=p.positionAt(b.getTokenOffset()).line;for(let R=v+1;R<=k;R++)g.push(R);v=void 0}else if(y===vo.TokenType.AttributeValue){let k=p.positionAt(b.getTokenOffset()).line;for(let R=1;R<b.getTokenText().split(`
|
|
628
628
|
`).length;R++)g.push(k+R)}y=b.scan()}let T=new Set(["pre","textarea"]);return m.roots.forEach(function k(R){if(R.tag!==void 0&&R.startTagEnd!==void 0&&R.endTagStart!==void 0&&T.has(R.tag))for(let w=p.positionAt(R.startTagEnd).line+1;w<=p.positionAt(R.endTagStart).line;w++)g.push(w);else R.children.forEach(k)}),g})},provideLinkedEditingRanges(p,m){return f(p,g=>{let b=c.findLinkedEditingRanges(p,m,g);if(b)return{ranges:b}})},async provideAutoInsertionEdit(p,m,g){return f(p,async b=>{let y=g.text[g.text.length-1],v=g.range.start.line&&g.range.end.line&&g.range.start.character&&g.range.end.character;if(v&&y==="="&&(await r.env.getConfiguration?.("html.autoCreateQuotes")??!0)){let k=c.doQuoteComplete(p,m,b,await r.env.getConfiguration?.("html.completion"));if(k)return k}if(v&&(y===">"||y==="/")&&(await r.env.getConfiguration?.("html.autoClosingTags")??!0)){let k=c.doTagComplete(p,m,b);if(k)return k}})}};async function u(){i&&n&&(i=!1,s=await h(),c.setDataProviders(t,[...s,...o]))}function d(p){o=p,c.setDataProviders(t,[...s,...o])}async function h(){let p=await r.env.getConfiguration?.("html.customData")??[],m=[];for(let g of p)try{let b="path",{posix:y}=require(b),v=y.resolve(g);m.push(vo.newHTMLDataProvider(g,require(v)))}catch(b){console.error(b)}return m}async function f(p,m){if(p.languageId!==e)return;let g=q0(p);if(g)return await u(),m(g)}}}}hc.create=MZ;function OZ(e,t){return zZ(e.charCodeAt(t))}var LZ="\r".charCodeAt(0),NZ=`
|
|
629
629
|
`.charCodeAt(0);function zZ(e){return e===LZ||e===NZ}});var BL=O(Vg=>{"use strict";Object.defineProperty(Vg,"__esModule",{value:!0});Vg.create=void 0;var $L=UL(),qZ=W0();function WZ(){return{name:"emmet",triggerCharacters:">+^*()#.[]$@-{}".split(""),create(e){return{isAdditionalCompletion:!0,async provideCompletionItems(n,r){let i=$L.getEmmetMode(n.languageId==="vue"?"html":n.languageId);if(!i)return;if(i==="html"){let l=(0,qZ.getHtmlDocument)(n).findNodeAt(n.offsetAt(r));if(l.tag){let a=!1;if(l.startTagEnd!==void 0&&l.endTagStart!==void 0&&(a=n.offsetAt(r)>=l.startTagEnd&&n.offsetAt(r)<=l.endTagStart),!a)return}}if(i==="jsx")return;let s=await t(i);return $L.doComplete(n,r,i,s)}};async function t(n){let r=await e.env.getConfiguration?.("emmet")??{},i=Object.assign({},r.syntaxProfiles||{}),s=Object.assign({},r.preferences||{});return(n==="jsx"||n==="xml"||n==="xsl")&&(i[n]=i[n]||{},typeof i[n]=="object"&&!i[n].hasOwnProperty("self_closing_tag")&&!i[n].hasOwnProperty("selfClosingStyle")&&(i[n]={...i[n],selfClosingStyle:"xml"})),{preferences:s,showExpandedAbbreviation:r.showExpandedAbbreviation,showAbbreviationSuggestions:r.showAbbreviationSuggestions,syntaxProfiles:i,variables:r.variables,excludeLanguages:r.excludeLanguages,showSuggestionsAsSnippets:r.showSuggestionsAsSnippets}}}}}Vg.create=WZ});var GL=O(Gg=>{"use strict";Object.defineProperty(Gg,"__esModule",{value:!0});Gg.create=void 0;var jZ=Kn();function UZ(e={},t=async(n,r,i)=>await r.resolveConfig(n,i)??{}){return{name:"prettier",create(n){let r;try{r=e.prettier??e.getPrettier?.(n.env)??require("prettier")}catch(s){throw new Error("Could not load Prettier: "+s)}let i=e.languages??["html","css","scss","typescript","javascript"];return{async provideDocumentFormattingEdits(s,o,l){if(!i.includes(s.languageId))return;let a=jZ.URI.parse(s.uri).fsPath;if((await r.getFileInfo(a,{ignorePath:".prettierignore",resolveConfig:!1})).ignored)return;let u=await t(a,r,e.resolveConfigOptions),d=await n.env.getConfiguration?.("prettier",s.uri),h=l!==void 0&&e.useIdeOptionsFallback?{tabWidth:l.tabSize,useTabs:!l.insertSpaces}:{},f=VL(u)||VL(d)||h,p={...e.additionalOptions?await e.additionalOptions(f):f,filepath:a};e.ignoreIdeOptions||(p.useTabs=!l.insertSpaces,p.tabWidth=l.tabSize);let m=s.getText(),g=m;return s.languageId==="html"&&e.html?.breakContentsFromTags&&(g=g.replace(/(<[a-z][^>]*>)([^ \n])/gi,"$1 $2").replace(/([^ \n])(<\/[a-z][a-z0-9\t\n\r -]*>)/gi,"$1 $2")),[{newText:await r.format(g,p),range:{start:s.positionAt(0),end:s.positionAt(m.length)}}]}}}}}Gg.create=UZ;function VL(e){if(Object.keys(e||{}).length>0)return e}});var KL=O(Kg=>{"use strict";Object.defineProperty(Kg,"__esModule",{value:!0});Kg.create=void 0;function HZ(){return{name:"typescript-twoslash-queries",create(e){return{provideInlayHints(t,n){if($Z(t.languageId)){let r=e.inject("typescript/typescript"),i=e.inject("typescript/languageService"),s=[];for(let o of t.getText(n).matchAll(/^\s*\/\/\s*\^\?/gm)){let l=o.index+o[0].indexOf("^?")+t.offsetAt(n.start),a=t.positionAt(l),c=t.offsetAt({line:a.line-1,character:a.character}),u=e.env.typescript.uriToFileName(t.uri),d=i.getQuickInfoAtPosition(u,c);d&&s.push({position:{line:a.line,character:a.character+2},label:r.displayPartsToString(d.displayParts),paddingLeft:!0,paddingRight:!1})}return s}}}}}}Kg.create=HZ;function $Z(e){return e==="javascript"||e==="typescript"||e==="javascriptreact"||e==="typescriptreact"}});var JL=O(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.splitWhen=pc.flatten=void 0;function BZ(e){return e.reduce((t,n)=>[].concat(t,n),[])}pc.flatten=BZ;function VZ(e,t){let n=[[]],r=0;for(let i of e)t(i)?(r++,n[r]=[]):n[r].push(i);return n}pc.splitWhen=VZ});var XL=O(Jg=>{"use strict";Object.defineProperty(Jg,"__esModule",{value:!0});Jg.isEnoentCodeError=void 0;function GZ(e){return e.code==="ENOENT"}Jg.isEnoentCodeError=GZ});var QL=O(Xg=>{"use strict";Object.defineProperty(Xg,"__esModule",{value:!0});Xg.createDirentFromStats=void 0;var j0=class{constructor(t,n){this.name=t,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function KZ(e,t){return new j0(e,t)}Xg.createDirentFromStats=KZ});var YL=O(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.removeLeadingDotSegment=Ai.escape=Ai.makeAbsolute=Ai.unixify=void 0;var JZ=require("path"),XZ=2,QZ=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function YZ(e){return e.replace(/\\/g,"/")}Ai.unixify=YZ;function ZZ(e,t){return JZ.resolve(e,t)}Ai.makeAbsolute=ZZ;function eee(e){return e.replace(QZ,"\\$2")}Ai.escape=eee;function tee(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(XZ)}return e}Ai.removeLeadingDotSegment=tee});var eN=O((lye,ZL)=>{ZL.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(n[2])return!0;t=t.slice(n.index+n[0].length)}return!1}});var rN=O((cye,nN)=>{var nee=eN(),tN={"{":"}","(":")","[":"]"},ree=function(e){if(e[0]==="!")return!0;for(var t=0,n=-2,r=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||r!==-1&&e[t]==="["&&e[t+1]!=="]"&&(r<t&&(r=e.indexOf("]",t)),r>t&&(o===-1||o>r||(o=e.indexOf("\\",t),o===-1||o>r)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||n!==-1&&e[t]==="("&&e[t+1]!=="|"&&(n<t&&(n=e.indexOf("|",t)),n!==-1&&e[n+1]!==")"&&(s=e.indexOf(")",n),s>n&&(o=e.indexOf("\\",n),o===-1||o>s))))return!0;if(e[t]==="\\"){var l=e[t+1];t+=2;var a=tN[l];if(a){var c=e.indexOf(a,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},iee=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var n=e[t+1];t+=2;var r=tN[n];if(r){var i=e.indexOf(r,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};nN.exports=function(t,n){if(typeof t!="string"||t==="")return!1;if(nee(t))return!0;var r=ree;return n&&n.strict===!1&&(r=iee),r(t)}});var sN=O((uye,iN)=>{"use strict";var see=rN(),oee=require("path").posix.dirname,aee=require("os").platform()==="win32",U0="/",lee=/\\/g,cee=/[\{\[].*[\}\]]$/,uee=/(^|[^\\])([\{\[]|\([^\)]+$)/,dee=/\\([\!\*\?\|\[\]\(\)\{\}])/g;iN.exports=function(t,n){var r=Object.assign({flipBackslashes:!0},n);r.flipBackslashes&&aee&&t.indexOf(U0)<0&&(t=t.replace(lee,U0)),cee.test(t)&&(t+=U0),t+="a";do t=oee(t);while(see(t)||uee.test(t));return t.replace(dee,"$1")}});var Qg=O(Mr=>{"use strict";Mr.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Mr.find=(e,t)=>e.nodes.find(n=>n.type===t);Mr.exceedsLimit=(e,t,n=1,r)=>r===!1||!Mr.isInteger(e)||!Mr.isInteger(t)?!1:(Number(t)-Number(e))/Number(n)>=r;Mr.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];r&&(n&&r.type===n||r.type==="open"||r.type==="close")&&r.escaped!==!0&&(r.value="\\"+r.value,r.escaped=!0)};Mr.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);Mr.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Mr.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Mr.reduce=e=>e.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]);Mr.flatten=(...e)=>{let t=[],n=r=>{for(let i=0;i<r.length;i++){let s=r[i];Array.isArray(s)?n(s,t):s!==void 0&&t.push(s)}return t};return n(e),t}});var Yg=O((hye,aN)=>{"use strict";var oN=Qg();aN.exports=(e,t={})=>{let n=(r,i={})=>{let s=t.escapeInvalid&&oN.isInvalidBrace(i),o=r.invalid===!0&&t.escapeInvalid===!0,l="";if(r.value)return(s||o)&&oN.isOpenOrClose(r)?"\\"+r.value:r.value;if(r.value)return r.value;if(r.nodes)for(let a of r.nodes)l+=n(a);return l};return n(e)}});var cN=O((pye,lN)=>{"use strict";lN.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var vN=O((fye,bN)=>{"use strict";var uN=cN(),da=(e,t,n)=>{if(uN(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(uN(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let r={relaxZeros:!0,...n};typeof r.strictZeros=="boolean"&&(r.relaxZeros=r.strictZeros===!1);let i=String(r.relaxZeros),s=String(r.shorthand),o=String(r.capture),l=String(r.wrap),a=e+":"+t+"="+i+s+o+l;if(da.cache.hasOwnProperty(a))return da.cache[a].result;let c=Math.min(e,t),u=Math.max(e,t);if(Math.abs(c-u)===1){let m=e+"|"+t;return r.capture?`(${m})`:r.wrap===!1?m:`(?:${m})`}let d=gN(e)||gN(t),h={min:e,max:t,a:c,b:u},f=[],p=[];if(d&&(h.isPadded=d,h.maxLen=String(h.max).length),c<0){let m=u<0?Math.abs(u):1;p=dN(m,Math.abs(c),h,r),c=h.a=0}return u>=0&&(f=dN(c,u,h,r)),h.negatives=p,h.positives=f,h.result=hee(p,f,r),r.capture===!0?h.result=`(${h.result})`:r.wrap!==!1&&f.length+p.length>1&&(h.result=`(?:${h.result})`),da.cache[a]=h,h.result};function hee(e,t,n){let r=H0(e,t,"-",!1,n)||[],i=H0(t,e,"",!1,n)||[],s=H0(e,t,"-?",!0,n)||[];return r.concat(s).concat(i).join("|")}function pee(e,t){let n=1,r=1,i=pN(e,n),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),n+=1,i=pN(e,n);for(i=fN(t+1,r)-1;e<i&&i<=t;)s.add(i),r+=1,i=fN(t+1,r)-1;return s=[...s],s.sort(gee),s}function fee(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=mee(e,t),i=r.length,s="",o=0;for(let l=0;l<i;l++){let[a,c]=r[l];a===c?s+=a:a!=="0"||c!=="9"?s+=bee(a,c,n):o++}return o&&(s+=n.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function dN(e,t,n,r){let i=pee(e,t),s=[],o=e,l;for(let a=0;a<i.length;a++){let c=i[a],u=fee(String(o),String(c),r),d="";if(!n.isPadded&&l&&l.pattern===u.pattern){l.count.length>1&&l.count.pop(),l.count.push(u.count[0]),l.string=l.pattern+mN(l.count),o=c+1;continue}n.isPadded&&(d=vee(c,n,r)),u.string=d+u.pattern+mN(u.count),s.push(u),o=c+1,l=u}return s}function H0(e,t,n,r,i){let s=[];for(let o of e){let{string:l}=o;!r&&!hN(t,"string",l)&&s.push(n+l),r&&hN(t,"string",l)&&s.push(n+l)}return s}function mee(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}function gee(e,t){return e>t?1:t>e?-1:0}function hN(e,t,n){return e.some(r=>r[t]===n)}function pN(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function fN(e,t){return e-e%Math.pow(10,t)}function mN(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}function bee(e,t,n){return`[${e}${t-e===1?"":"-"}${t}]`}function gN(e){return/^-?(0+)\d/.test(e)}function vee(e,t,n){if(!t.isPadded)return e;let r=Math.abs(t.maxLen-String(e).length),i=n.relaxZeros!==!1;switch(r){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${r}}`:`0{${r}}`}}da.cache={};da.clearCache=()=>da.cache={};bN.exports=da});var V0=O((mye,TN)=>{"use strict";var yee=require("util"),_N=vN(),yN=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),wee=e=>t=>e===!0?Number(t):String(t),$0=e=>typeof e=="number"||typeof e=="string"&&e!=="",ld=e=>Number.isInteger(+e),B0=e=>{let t=`${e}`,n=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++n]==="0";);return n>0},_ee=(e,t,n)=>typeof e=="string"||typeof t=="string"?!0:n.stringify===!0,See=(e,t,n)=>{if(t>0){let r=e[0]==="-"?"-":"";r&&(e=e.slice(1)),e=r+e.padStart(r?t-1:t,"0")}return n===!1?String(e):e},wN=(e,t)=>{let n=e[0]==="-"?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return n?"-"+e:e},xee=(e,t)=>{e.negatives.sort((o,l)=>o<l?-1:o>l?1:0),e.positives.sort((o,l)=>o<l?-1:o>l?1:0);let n=t.capture?"":"?:",r="",i="",s;return e.positives.length&&(r=e.positives.join("|")),e.negatives.length&&(i=`-(${n}${e.negatives.join("|")})`),r&&i?s=`${r}|${i}`:s=r||i,t.wrap?`(${n}${s})`:s},SN=(e,t,n,r)=>{if(n)return _N(e,t,{wrap:!1,...r});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},xN=(e,t,n)=>{if(Array.isArray(e)){let r=n.wrap===!0,i=n.capture?"":"?:";return r?`(${i}${e.join("|")})`:e.join("|")}return _N(e,t,n)},CN=(...e)=>new RangeError("Invalid range arguments: "+yee.inspect(...e)),kN=(e,t,n)=>{if(n.strictRanges===!0)throw CN([e,t]);return[]},Cee=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},kee=(e,t,n=1,r={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(r.strictRanges===!0)throw CN([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,l=String(e),a=String(t),c=String(n);n=Math.max(Math.abs(n),1);let u=B0(l)||B0(a)||B0(c),d=u?Math.max(l.length,a.length,c.length):0,h=u===!1&&_ee(e,t,r)===!1,f=r.transform||wee(h);if(r.toRegex&&n===1)return SN(wN(e,d),wN(t,d),!0,r);let p={negatives:[],positives:[]},m=y=>p[y<0?"negatives":"positives"].push(Math.abs(y)),g=[],b=0;for(;o?i>=s:i<=s;)r.toRegex===!0&&n>1?m(i):g.push(See(f(i,b),d,h)),i=o?i-n:i+n,b++;return r.toRegex===!0?n>1?xee(p,r):xN(g,null,{wrap:!1,...r}):g},Tee=(e,t,n=1,r={})=>{if(!ld(e)&&e.length>1||!ld(t)&&t.length>1)return kN(e,t,r);let i=r.transform||(h=>String.fromCharCode(h)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),l=s>o,a=Math.min(s,o),c=Math.max(s,o);if(r.toRegex&&n===1)return SN(a,c,!1,r);let u=[],d=0;for(;l?s>=o:s<=o;)u.push(i(s,d)),s=l?s-n:s+n,d++;return r.toRegex===!0?xN(u,null,{wrap:!1,options:r}):u},Zg=(e,t,n,r={})=>{if(t==null&&$0(e))return[e];if(!$0(e)||!$0(t))return kN(e,t,r);if(typeof n=="function")return Zg(e,t,1,{transform:n});if(yN(n))return Zg(e,t,0,n);let i={...r};return i.capture===!0&&(i.wrap=!0),n=n||i.step||1,ld(n)?ld(e)&&ld(t)?kee(e,t,n,i):Tee(e,t,Math.max(Math.abs(n),1),i):n!=null&&!yN(n)?Cee(n,i):Zg(e,t,1,n)};TN.exports=Zg});var RN=O((gye,DN)=>{"use strict";var Eee=V0(),EN=Qg(),Dee=(e,t={})=>{let n=(r,i={})=>{let s=EN.isInvalidBrace(i),o=r.invalid===!0&&t.escapeInvalid===!0,l=s===!0||o===!0,a=t.escapeInvalid===!0?"\\":"",c="";if(r.isOpen===!0||r.isClose===!0)return a+r.value;if(r.type==="open")return l?a+r.value:"(";if(r.type==="close")return l?a+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":l?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){let u=EN.reduce(r.nodes),d=Eee(...u,{...t,wrap:!1,toRegex:!0});if(d.length!==0)return u.length>1&&d.length>1?`(${d})`:d}if(r.nodes)for(let u of r.nodes)c+=n(u,r);return c};return n(e)};DN.exports=Dee});var PN=O((bye,FN)=>{"use strict";var Ree=V0(),AN=Yg(),fc=Qg(),ha=(e="",t="",n=!1)=>{let r=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return n?fc.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)r.push(ha(s,t,n));else for(let s of t)n===!0&&typeof s=="string"&&(s=`{${s}}`),r.push(Array.isArray(s)?ha(i,s,n):i+s);return fc.flatten(r)},Aee=(e,t={})=>{let n=t.rangeLimit===void 0?1e3:t.rangeLimit,r=(i,s={})=>{i.queue=[];let o=s,l=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,l=o.queue;if(i.invalid||i.dollar){l.push(ha(l.pop(),AN(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){l.push(ha(l.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let d=fc.reduce(i.nodes);if(fc.exceedsLimit(...d,t.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=Ree(...d,t);h.length===0&&(h=AN(i,t)),l.push(ha(l.pop(),h)),i.nodes=[];return}let a=fc.encloseBrace(i),c=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let d=0;d<i.nodes.length;d++){let h=i.nodes[d];if(h.type==="comma"&&i.type==="brace"){d===1&&c.push(""),c.push("");continue}if(h.type==="close"){l.push(ha(l.pop(),c,a));continue}if(h.value&&h.type!=="open"){c.push(ha(c.pop(),h.value));continue}h.nodes&&r(h,i)}return c};return fc.flatten(r(e))};FN.exports=Aee});var MN=O((vye,IN)=>{"use strict";IN.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
630
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var qN=O((yye,zN)=>{"use strict";var Fee=Yg(),{MAX_LENGTH:ON,CHAR_BACKSLASH:G0,CHAR_BACKTICK:Pee,CHAR_COMMA:Iee,CHAR_DOT:Mee,CHAR_LEFT_PARENTHESES:Oee,CHAR_RIGHT_PARENTHESES:Lee,CHAR_LEFT_CURLY_BRACE:Nee,CHAR_RIGHT_CURLY_BRACE:zee,CHAR_LEFT_SQUARE_BRACKET:LN,CHAR_RIGHT_SQUARE_BRACKET:NN,CHAR_DOUBLE_QUOTE:qee,CHAR_SINGLE_QUOTE:Wee,CHAR_NO_BREAK_SPACE:jee,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Uee}=MN(),Hee=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let n=t||{},r=typeof n.maxLength=="number"?Math.min(ON,n.maxLength):ON;if(e.length>r)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${r})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,l=i,a=0,c=e.length,u=0,d=0,h,f={},p=()=>e[u++],m=g=>{if(g.type==="text"&&l.type==="dot"&&(l.type="text"),l&&l.type==="text"&&g.type==="text"){l.value+=g.value;return}return o.nodes.push(g),g.parent=o,g.prev=l,l=g,g};for(m({type:"bos"});u<c;)if(o=s[s.length-1],h=p(),!(h===Uee||h===jee)){if(h===G0){m({type:"text",value:(t.keepEscaping?h:"")+p()});continue}if(h===NN){m({type:"text",value:"\\"+h});continue}if(h===LN){a++;let g=!0,b;for(;u<c&&(b=p());){if(h+=b,b===LN){a++;continue}if(b===G0){h+=p();continue}if(b===NN&&(a--,a===0))break}m({type:"text",value:h});continue}if(h===Oee){o=m({type:"paren",nodes:[]}),s.push(o),m({type:"text",value:h});continue}if(h===Lee){if(o.type!=="paren"){m({type:"text",value:h});continue}o=s.pop(),m({type:"text",value:h}),o=s[s.length-1];continue}if(h===qee||h===Wee||h===Pee){let g=h,b;for(t.keepQuotes!==!0&&(h="");u<c&&(b=p());){if(b===G0){h+=b+p();continue}if(b===g){t.keepQuotes===!0&&(h+=b);break}h+=b}m({type:"text",value:h});continue}if(h===Nee){d++;let b={type:"brace",open:!0,close:!1,dollar:l.value&&l.value.slice(-1)==="$"||o.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};o=m(b),s.push(o),m({type:"open",value:h});continue}if(h===zee){if(o.type!=="brace"){m({type:"text",value:h});continue}let g="close";o=s.pop(),o.close=!0,m({type:g,value:h}),d--,o=s[s.length-1];continue}if(h===Iee&&d>0){if(o.ranges>0){o.ranges=0;let g=o.nodes.shift();o.nodes=[g,{type:"text",value:Fee(o)}]}m({type:"comma",value:h}),o.commas++;continue}if(h===Mee&&d>0&&o.commas===0){let g=o.nodes;if(d===0||g.length===0){m({type:"text",value:h});continue}if(l.type==="dot"){if(o.range=[],l.value+=h,l.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,l.type="text";continue}o.ranges++,o.args=[];continue}if(l.type==="range"){g.pop();let b=g[g.length-1];b.value+=l.value+h,l=b,o.ranges--;continue}m({type:"dot",value:h});continue}m({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(y=>{y.nodes||(y.type==="open"&&(y.isOpen=!0),y.type==="close"&&(y.isClose=!0),y.nodes||(y.type="text"),y.invalid=!0)});let g=s[s.length-1],b=g.nodes.indexOf(o);g.nodes.splice(b,1,...o.nodes)}while(s.length>0);return m({type:"eos"}),i};zN.exports=Hee});var UN=O((wye,jN)=>{"use strict";var WN=Yg(),$ee=RN(),Bee=PN(),Vee=qN(),or=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let i=or.create(r,t);Array.isArray(i)?n.push(...i):n.push(i)}else n=[].concat(or.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(n=[...new Set(n)]),n};or.parse=(e,t={})=>Vee(e,t);or.stringify=(e,t={})=>WN(typeof e=="string"?or.parse(e,t):e,t);or.compile=(e,t={})=>(typeof e=="string"&&(e=or.parse(e,t)),$ee(e,t));or.expand=(e,t={})=>{typeof e=="string"&&(e=or.parse(e,t));let n=Bee(e,t);return t.noempty===!0&&(n=n.filter(Boolean)),t.nodupes===!0&&(n=[...new Set(n)]),n};or.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?or.compile(e,t):or.expand(e,t);jN.exports=or});var cd=O((_ye,GN)=>{"use strict";var Gee=require("path"),Fi="\\\\/",HN=`[^${Fi}]`,ys="\\.",Kee="\\+",Jee="\\?",eb="\\/",Xee="(?=.)",$N="[^/]",K0=`(?:${eb}|$)`,BN=`(?:^|${eb})`,J0=`${ys}{1,2}${K0}`,Qee=`(?!${ys})`,Yee=`(?!${BN}${J0})`,Zee=`(?!${ys}{0,1}${K0})`,ete=`(?!${J0})`,tte=`[^.${eb}]`,nte=`${$N}*?`,VN={DOT_LITERAL:ys,PLUS_LITERAL:Kee,QMARK_LITERAL:Jee,SLASH_LITERAL:eb,ONE_CHAR:Xee,QMARK:$N,END_ANCHOR:K0,DOTS_SLASH:J0,NO_DOT:Qee,NO_DOTS:Yee,NO_DOT_SLASH:Zee,NO_DOTS_SLASH:ete,QMARK_NO_DOT:tte,STAR:nte,START_ANCHOR:BN},rte={...VN,SLASH_LITERAL:`[${Fi}]`,QMARK:HN,STAR:`${HN}*?`,DOTS_SLASH:`${ys}{1,2}(?:[${Fi}]|$)`,NO_DOT:`(?!${ys})`,NO_DOTS:`(?!(?:^|[${Fi}])${ys}{1,2}(?:[${Fi}]|$))`,NO_DOT_SLASH:`(?!${ys}{0,1}(?:[${Fi}]|$))`,NO_DOTS_SLASH:`(?!${ys}{1,2}(?:[${Fi}]|$))`,QMARK_NO_DOT:`[^.${Fi}]`,START_ANCHOR:`(?:^|[${Fi}])`,END_ANCHOR:`(?:[${Fi}]|$)`},ite={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};GN.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:ite,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Gee.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?rte:VN}}});var ud=O($n=>{"use strict";var ste=require("path"),ote=process.platform==="win32",{REGEX_BACKSLASH:ate,REGEX_REMOVE_BACKSLASH:lte,REGEX_SPECIAL_CHARS:cte,REGEX_SPECIAL_CHARS_GLOBAL:ute}=cd();$n.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);$n.hasRegexChars=e=>cte.test(e);$n.isRegexChar=e=>e.length===1&&$n.hasRegexChars(e);$n.escapeRegex=e=>e.replace(ute,"\\$1");$n.toPosixSlashes=e=>e.replace(ate,"/");$n.removeBackslashes=e=>e.replace(lte,t=>t==="\\"?"":t);$n.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};$n.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:ote===!0||ste.sep==="\\";$n.escapeLast=(e,t,n)=>{let r=e.lastIndexOf(t,n);return r===-1?e:e[r-1]==="\\"?$n.escapeLast(e,t,r-1):`${e.slice(0,r)}\\${e.slice(r)}`};$n.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n};$n.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",s=`${r}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var tz=O((xye,ez)=>{"use strict";var KN=ud(),{CHAR_ASTERISK:X0,CHAR_AT:dte,CHAR_BACKWARD_SLASH:dd,CHAR_COMMA:hte,CHAR_DOT:Q0,CHAR_EXCLAMATION_MARK:Y0,CHAR_FORWARD_SLASH:ZN,CHAR_LEFT_CURLY_BRACE:Z0,CHAR_LEFT_PARENTHESES:ex,CHAR_LEFT_SQUARE_BRACKET:pte,CHAR_PLUS:fte,CHAR_QUESTION_MARK:JN,CHAR_RIGHT_CURLY_BRACE:mte,CHAR_RIGHT_PARENTHESES:XN,CHAR_RIGHT_SQUARE_BRACKET:gte}=cd(),QN=e=>e===ZN||e===dd,YN=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},bte=(e,t)=>{let n=t||{},r=e.length-1,i=n.parts===!0||n.scanToEnd===!0,s=[],o=[],l=[],a=e,c=-1,u=0,d=0,h=!1,f=!1,p=!1,m=!1,g=!1,b=!1,y=!1,v=!1,T=!1,k=!1,R=0,w,_,S={value:"",depth:0,isGlob:!1},D=()=>c>=r,x=()=>a.charCodeAt(c+1),A=()=>(w=_,a.charCodeAt(++c));for(;c<r;){_=A();let N;if(_===dd){y=S.backslashes=!0,_=A(),_===Z0&&(b=!0);continue}if(b===!0||_===Z0){for(R++;D()!==!0&&(_=A());){if(_===dd){y=S.backslashes=!0,A();continue}if(_===Z0){R++;continue}if(b!==!0&&_===Q0&&(_=A())===Q0){if(h=S.isBrace=!0,p=S.isGlob=!0,k=!0,i===!0)continue;break}if(b!==!0&&_===hte){if(h=S.isBrace=!0,p=S.isGlob=!0,k=!0,i===!0)continue;break}if(_===mte&&(R--,R===0)){b=!1,h=S.isBrace=!0,k=!0;break}}if(i===!0)continue;break}if(_===ZN){if(s.push(c),o.push(S),S={value:"",depth:0,isGlob:!1},k===!0)continue;if(w===Q0&&c===u+1){u+=2;continue}d=c+1;continue}if(n.noext!==!0&&(_===fte||_===dte||_===X0||_===JN||_===Y0)===!0&&x()===ex){if(p=S.isGlob=!0,m=S.isExtglob=!0,k=!0,_===Y0&&c===u&&(T=!0),i===!0){for(;D()!==!0&&(_=A());){if(_===dd){y=S.backslashes=!0,_=A();continue}if(_===XN){p=S.isGlob=!0,k=!0;break}}continue}break}if(_===X0){if(w===X0&&(g=S.isGlobstar=!0),p=S.isGlob=!0,k=!0,i===!0)continue;break}if(_===JN){if(p=S.isGlob=!0,k=!0,i===!0)continue;break}if(_===pte){for(;D()!==!0&&(N=A());){if(N===dd){y=S.backslashes=!0,A();continue}if(N===gte){f=S.isBracket=!0,p=S.isGlob=!0,k=!0;break}}if(i===!0)continue;break}if(n.nonegate!==!0&&_===Y0&&c===u){v=S.negated=!0,u++;continue}if(n.noparen!==!0&&_===ex){if(p=S.isGlob=!0,i===!0){for(;D()!==!0&&(_=A());){if(_===ex){y=S.backslashes=!0,_=A();continue}if(_===XN){k=!0;break}}continue}break}if(p===!0){if(k=!0,i===!0)continue;break}}n.noext===!0&&(m=!1,p=!1);let P=a,I="",C="";u>0&&(I=a.slice(0,u),a=a.slice(u),d-=u),P&&p===!0&&d>0?(P=a.slice(0,d),C=a.slice(d)):p===!0?(P="",C=a):P=a,P&&P!==""&&P!=="/"&&P!==a&&QN(P.charCodeAt(P.length-1))&&(P=P.slice(0,-1)),n.unescape===!0&&(C&&(C=KN.removeBackslashes(C)),P&&y===!0&&(P=KN.removeBackslashes(P)));let E={prefix:I,input:e,start:u,base:P,glob:C,isBrace:h,isBracket:f,isGlob:p,isExtglob:m,isGlobstar:g,negated:v,negatedExtglob:T};if(n.tokens===!0&&(E.maxDepth=0,QN(_)||o.push(S),E.tokens=o),n.parts===!0||n.tokens===!0){let N;for(let W=0;W<s.length;W++){let j=N?N+1:u,q=s[W],H=e.slice(j,q);n.tokens&&(W===0&&u!==0?(o[W].isPrefix=!0,o[W].value=I):o[W].value=H,YN(o[W]),E.maxDepth+=o[W].depth),(W!==0||H!=="")&&l.push(H),N=q}if(N&&N+1<e.length){let W=e.slice(N+1);l.push(W),n.tokens&&(o[o.length-1].value=W,YN(o[o.length-1]),E.maxDepth+=o[o.length-1].depth)}E.slashes=s,E.parts=l}return E};ez.exports=bte});var iz=O((Cye,rz)=>{"use strict";var tb=cd(),ar=ud(),{MAX_LENGTH:nb,POSIX_REGEX_SOURCE:vte,REGEX_NON_SPECIAL_CHARS:yte,REGEX_SPECIAL_CHARS_BACKREF:wte,REPLACEMENTS:nz}=tb,_te=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let n=`[${e.join("-")}]`;try{new RegExp(n)}catch{return e.map(i=>ar.escapeRegex(i)).join("..")}return n},mc=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,tx=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=nz[e]||e;let n={...t},r=typeof n.maxLength=="number"?Math.min(nb,n.maxLength):nb,i=e.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);let s={type:"bos",value:"",output:n.prepend||""},o=[s],l=n.capture?"":"?:",a=ar.isWindows(t),c=tb.globChars(a),u=tb.extglobChars(c),{DOT_LITERAL:d,PLUS_LITERAL:h,SLASH_LITERAL:f,ONE_CHAR:p,DOTS_SLASH:m,NO_DOT:g,NO_DOT_SLASH:b,NO_DOTS_SLASH:y,QMARK:v,QMARK_NO_DOT:T,STAR:k,START_ANCHOR:R}=c,w=J=>`(${l}(?:(?!${R}${J.dot?m:d}).)*?)`,_=n.dot?"":g,S=n.dot?v:T,D=n.bash===!0?w(n):k;n.capture&&(D=`(${D})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let x={input:e,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=ar.removePrefix(e,x),i=e.length;let A=[],P=[],I=[],C=s,E,N=()=>x.index===i-1,W=x.peek=(J=1)=>e[x.index+J],j=x.advance=()=>e[++x.index]||"",q=()=>e.slice(x.index+1),H=(J="",oe=0)=>{x.consumed+=J,x.index+=oe},ee=J=>{x.output+=J.output!=null?J.output:J.value,H(J.value)},se=()=>{let J=1;for(;W()==="!"&&(W(2)!=="("||W(3)==="?");)j(),x.start++,J++;return J%2===0?!1:(x.negated=!0,x.start++,!0)},ne=J=>{x[J]++,I.push(J)},_e=J=>{x[J]--,I.pop()},ae=J=>{if(C.type==="globstar"){let oe=x.braces>0&&(J.type==="comma"||J.type==="brace"),te=J.extglob===!0||A.length&&(J.type==="pipe"||J.type==="paren");J.type!=="slash"&&J.type!=="paren"&&!oe&&!te&&(x.output=x.output.slice(0,-C.output.length),C.type="star",C.value="*",C.output=D,x.output+=C.output)}if(A.length&&J.type!=="paren"&&(A[A.length-1].inner+=J.value),(J.value||J.output)&&ee(J),C&&C.type==="text"&&J.type==="text"){C.value+=J.value,C.output=(C.output||"")+J.value;return}J.prev=C,o.push(J),C=J},Ue=(J,oe)=>{let te={...u[oe],conditions:1,inner:""};te.prev=C,te.parens=x.parens,te.output=x.output;let he=(n.capture?"(":"")+te.open;ne("parens"),ae({type:J,value:oe,output:x.output?"":p}),ae({type:"paren",extglob:!0,value:j(),output:he}),A.push(te)},K=J=>{let oe=J.close+(n.capture?")":""),te;if(J.type==="negate"){let he=D;if(J.inner&&J.inner.length>1&&J.inner.includes("/")&&(he=w(n)),(he!==D||N()||/^\)+$/.test(q()))&&(oe=J.close=`)$))${he}`),J.inner.includes("*")&&(te=q())&&/^\.[^\\/.]+$/.test(te)){let we=tx(te,{...t,fastpaths:!1}).output;oe=J.close=`)${we})${he})`}J.prev.type==="bos"&&(x.negatedExtglob=!0)}ae({type:"paren",extglob:!0,value:E,output:oe}),_e("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let J=!1,oe=e.replace(wte,(te,he,we,ze,nt,ur)=>ze==="\\"?(J=!0,te):ze==="?"?he?he+ze+(nt?v.repeat(nt.length):""):ur===0?S+(nt?v.repeat(nt.length):""):v.repeat(we.length):ze==="."?d.repeat(we.length):ze==="*"?he?he+ze+(nt?D:""):D:he?te:`\\${te}`);return J===!0&&(n.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,te=>te.length%2===0?"\\\\":te?"\\":"")),oe===e&&n.contains===!0?(x.output=e,x):(x.output=ar.wrapOutput(oe,x,t),x)}for(;!N();){if(E=j(),E==="\0")continue;if(E==="\\"){let te=W();if(te==="/"&&n.bash!==!0||te==="."||te===";")continue;if(!te){E+="\\",ae({type:"text",value:E});continue}let he=/^\\+/.exec(q()),we=0;if(he&&he[0].length>2&&(we=he[0].length,x.index+=we,we%2!==0&&(E+="\\")),n.unescape===!0?E=j():E+=j(),x.brackets===0){ae({type:"text",value:E});continue}}if(x.brackets>0&&(E!=="]"||C.value==="["||C.value==="[^")){if(n.posix!==!1&&E===":"){let te=C.value.slice(1);if(te.includes("[")&&(C.posix=!0,te.includes(":"))){let he=C.value.lastIndexOf("["),we=C.value.slice(0,he),ze=C.value.slice(he+2),nt=vte[ze];if(nt){C.value=we+nt,x.backtrack=!0,j(),!s.output&&o.indexOf(C)===1&&(s.output=p);continue}}}(E==="["&&W()!==":"||E==="-"&&W()==="]")&&(E=`\\${E}`),E==="]"&&(C.value==="["||C.value==="[^")&&(E=`\\${E}`),n.posix===!0&&E==="!"&&C.value==="["&&(E="^"),C.value+=E,ee({value:E});continue}if(x.quotes===1&&E!=='"'){E=ar.escapeRegex(E),C.value+=E,ee({value:E});continue}if(E==='"'){x.quotes=x.quotes===1?0:1,n.keepQuotes===!0&&ae({type:"text",value:E});continue}if(E==="("){ne("parens"),ae({type:"paren",value:E});continue}if(E===")"){if(x.parens===0&&n.strictBrackets===!0)throw new SyntaxError(mc("opening","("));let te=A[A.length-1];if(te&&x.parens===te.parens+1){K(A.pop());continue}ae({type:"paren",value:E,output:x.parens?")":"\\)"}),_e("parens");continue}if(E==="["){if(n.nobracket===!0||!q().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(mc("closing","]"));E=`\\${E}`}else ne("brackets");ae({type:"bracket",value:E});continue}if(E==="]"){if(n.nobracket===!0||C&&C.type==="bracket"&&C.value.length===1){ae({type:"text",value:E,output:`\\${E}`});continue}if(x.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(mc("opening","["));ae({type:"text",value:E,output:`\\${E}`});continue}_e("brackets");let te=C.value.slice(1);if(C.posix!==!0&&te[0]==="^"&&!te.includes("/")&&(E=`/${E}`),C.value+=E,ee({value:E}),n.literalBrackets===!1||ar.hasRegexChars(te))continue;let he=ar.escapeRegex(C.value);if(x.output=x.output.slice(0,-C.value.length),n.literalBrackets===!0){x.output+=he,C.value=he;continue}C.value=`(${l}${he}|${C.value})`,x.output+=C.value;continue}if(E==="{"&&n.nobrace!==!0){ne("braces");let te={type:"brace",value:E,output:"(",outputIndex:x.output.length,tokensIndex:x.tokens.length};P.push(te),ae(te);continue}if(E==="}"){let te=P[P.length-1];if(n.nobrace===!0||!te){ae({type:"text",value:E,output:E});continue}let he=")";if(te.dots===!0){let we=o.slice(),ze=[];for(let nt=we.length-1;nt>=0&&(o.pop(),we[nt].type!=="brace");nt--)we[nt].type!=="dots"&&ze.unshift(we[nt].value);he=_te(ze,n),x.backtrack=!0}if(te.comma!==!0&&te.dots!==!0){let we=x.output.slice(0,te.outputIndex),ze=x.tokens.slice(te.tokensIndex);te.value=te.output="\\{",E=he="\\}",x.output=we;for(let nt of ze)x.output+=nt.output||nt.value}ae({type:"brace",value:E,output:he}),_e("braces"),P.pop();continue}if(E==="|"){A.length>0&&A[A.length-1].conditions++,ae({type:"text",value:E});continue}if(E===","){let te=E,he=P[P.length-1];he&&I[I.length-1]==="braces"&&(he.comma=!0,te="|"),ae({type:"comma",value:E,output:te});continue}if(E==="/"){if(C.type==="dot"&&x.index===x.start+1){x.start=x.index+1,x.consumed="",x.output="",o.pop(),C=s;continue}ae({type:"slash",value:E,output:f});continue}if(E==="."){if(x.braces>0&&C.type==="dot"){C.value==="."&&(C.output=d);let te=P[P.length-1];C.type="dots",C.output+=E,C.value+=E,te.dots=!0;continue}if(x.braces+x.parens===0&&C.type!=="bos"&&C.type!=="slash"){ae({type:"text",value:E,output:d});continue}ae({type:"dot",value:E,output:d});continue}if(E==="?"){if(!(C&&C.value==="(")&&n.noextglob!==!0&&W()==="("&&W(2)!=="?"){Ue("qmark",E);continue}if(C&&C.type==="paren"){let he=W(),we=E;if(he==="<"&&!ar.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(C.value==="("&&!/[!=<:]/.test(he)||he==="<"&&!/<([!=]|\w+>)/.test(q()))&&(we=`\\${E}`),ae({type:"text",value:E,output:we});continue}if(n.dot!==!0&&(C.type==="slash"||C.type==="bos")){ae({type:"qmark",value:E,output:T});continue}ae({type:"qmark",value:E,output:v});continue}if(E==="!"){if(n.noextglob!==!0&&W()==="("&&(W(2)!=="?"||!/[!=<:]/.test(W(3)))){Ue("negate",E);continue}if(n.nonegate!==!0&&x.index===0){se();continue}}if(E==="+"){if(n.noextglob!==!0&&W()==="("&&W(2)!=="?"){Ue("plus",E);continue}if(C&&C.value==="("||n.regex===!1){ae({type:"plus",value:E,output:h});continue}if(C&&(C.type==="bracket"||C.type==="paren"||C.type==="brace")||x.parens>0){ae({type:"plus",value:E});continue}ae({type:"plus",value:h});continue}if(E==="@"){if(n.noextglob!==!0&&W()==="("&&W(2)!=="?"){ae({type:"at",extglob:!0,value:E,output:""});continue}ae({type:"text",value:E});continue}if(E!=="*"){(E==="$"||E==="^")&&(E=`\\${E}`);let te=yte.exec(q());te&&(E+=te[0],x.index+=te[0].length),ae({type:"text",value:E});continue}if(C&&(C.type==="globstar"||C.star===!0)){C.type="star",C.star=!0,C.value+=E,C.output=D,x.backtrack=!0,x.globstar=!0,H(E);continue}let J=q();if(n.noextglob!==!0&&/^\([^?]/.test(J)){Ue("star",E);continue}if(C.type==="star"){if(n.noglobstar===!0){H(E);continue}let te=C.prev,he=te.prev,we=te.type==="slash"||te.type==="bos",ze=he&&(he.type==="star"||he.type==="globstar");if(n.bash===!0&&(!we||J[0]&&J[0]!=="/")){ae({type:"star",value:E,output:""});continue}let nt=x.braces>0&&(te.type==="comma"||te.type==="brace"),ur=A.length&&(te.type==="pipe"||te.type==="paren");if(!we&&te.type!=="paren"&&!nt&&!ur){ae({type:"star",value:E,output:""});continue}for(;J.slice(0,3)==="/**";){let Ur=e[x.index+4];if(Ur&&Ur!=="/")break;J=J.slice(3),H("/**",3)}if(te.type==="bos"&&N()){C.type="globstar",C.value+=E,C.output=w(n),x.output=C.output,x.globstar=!0,H(E);continue}if(te.type==="slash"&&te.prev.type!=="bos"&&!ze&&N()){x.output=x.output.slice(0,-(te.output+C.output).length),te.output=`(?:${te.output}`,C.type="globstar",C.output=w(n)+(n.strictSlashes?")":"|$)"),C.value+=E,x.globstar=!0,x.output+=te.output+C.output,H(E);continue}if(te.type==="slash"&&te.prev.type!=="bos"&&J[0]==="/"){let Ur=J[1]!==void 0?"|$":"";x.output=x.output.slice(0,-(te.output+C.output).length),te.output=`(?:${te.output}`,C.type="globstar",C.output=`${w(n)}${f}|${f}${Ur})`,C.value+=E,x.output+=te.output+C.output,x.globstar=!0,H(E+j()),ae({type:"slash",value:"/",output:""});continue}if(te.type==="bos"&&J[0]==="/"){C.type="globstar",C.value+=E,C.output=`(?:^|${f}|${w(n)}${f})`,x.output=C.output,x.globstar=!0,H(E+j()),ae({type:"slash",value:"/",output:""});continue}x.output=x.output.slice(0,-C.output.length),C.type="globstar",C.output=w(n),C.value+=E,x.output+=C.output,x.globstar=!0,H(E);continue}let oe={type:"star",value:E,output:D};if(n.bash===!0){oe.output=".*?",(C.type==="bos"||C.type==="slash")&&(oe.output=_+oe.output),ae(oe);continue}if(C&&(C.type==="bracket"||C.type==="paren")&&n.regex===!0){oe.output=E,ae(oe);continue}(x.index===x.start||C.type==="slash"||C.type==="dot")&&(C.type==="dot"?(x.output+=b,C.output+=b):n.dot===!0?(x.output+=y,C.output+=y):(x.output+=_,C.output+=_),W()!=="*"&&(x.output+=p,C.output+=p)),ae(oe)}for(;x.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(mc("closing","]"));x.output=ar.escapeLast(x.output,"["),_e("brackets")}for(;x.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(mc("closing",")"));x.output=ar.escapeLast(x.output,"("),_e("parens")}for(;x.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(mc("closing","}"));x.output=ar.escapeLast(x.output,"{"),_e("braces")}if(n.strictSlashes!==!0&&(C.type==="star"||C.type==="bracket")&&ae({type:"maybe_slash",value:"",output:`${f}?`}),x.backtrack===!0){x.output="";for(let J of x.tokens)x.output+=J.output!=null?J.output:J.value,J.suffix&&(x.output+=J.suffix)}return x};tx.fastpaths=(e,t)=>{let n={...t},r=typeof n.maxLength=="number"?Math.min(nb,n.maxLength):nb,i=e.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);e=nz[e]||e;let s=ar.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:l,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:d,NO_DOTS_SLASH:h,STAR:f,START_ANCHOR:p}=tb.globChars(s),m=n.dot?d:u,g=n.dot?h:u,b=n.capture?"":"?:",y={negated:!1,prefix:""},v=n.bash===!0?".*?":f;n.capture&&(v=`(${v})`);let T=_=>_.noglobstar===!0?v:`(${b}(?:(?!${p}${_.dot?c:o}).)*?)`,k=_=>{switch(_){case"*":return`${m}${a}${v}`;case".*":return`${o}${a}${v}`;case"*.*":return`${m}${v}${o}${a}${v}`;case"*/*":return`${m}${v}${l}${a}${g}${v}`;case"**":return m+T(n);case"**/*":return`(?:${m}${T(n)}${l})?${g}${a}${v}`;case"**/*.*":return`(?:${m}${T(n)}${l})?${g}${v}${o}${a}${v}`;case"**/.*":return`(?:${m}${T(n)}${l})?${o}${a}${v}`;default:{let S=/^(.*?)\.(\w+)$/.exec(_);if(!S)return;let D=k(S[1]);return D?D+o+S[2]:void 0}}},R=ar.removePrefix(e,y),w=k(R);return w&&n.strictSlashes!==!0&&(w+=`${l}?`),w};rz.exports=tx});var oz=O((kye,sz)=>{"use strict";var Ste=require("path"),xte=tz(),nx=iz(),rx=ud(),Cte=cd(),kte=e=>e&&typeof e=="object"&&!Array.isArray(e),Qt=(e,t,n=!1)=>{if(Array.isArray(e)){let u=e.map(h=>Qt(h,t,n));return h=>{for(let f of u){let p=f(h);if(p)return p}return!1}}let r=kte(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=rx.isWindows(t),o=r?Qt.compileRe(e,t):Qt.makeRe(e,t,!1,!0),l=o.state;delete o.state;let a=()=>!1;if(i.ignore){let u={...t,ignore:null,onMatch:null,onResult:null};a=Qt(i.ignore,u,n)}let c=(u,d=!1)=>{let{isMatch:h,match:f,output:p}=Qt.test(u,o,t,{glob:e,posix:s}),m={glob:e,state:l,regex:o,posix:s,input:u,output:p,match:f,isMatch:h};return typeof i.onResult=="function"&&i.onResult(m),h===!1?(m.isMatch=!1,d?m:!1):a(u)?(typeof i.onIgnore=="function"&&i.onIgnore(m),m.isMatch=!1,d?m:!1):(typeof i.onMatch=="function"&&i.onMatch(m),d?m:!0)};return n&&(c.state=l),c};Qt.test=(e,t,n,{glob:r,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=n||{},o=s.format||(i?rx.toPosixSlashes:null),l=e===r,a=l&&o?o(e):e;return l===!1&&(a=o?o(e):e,l=a===r),(l===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?l=Qt.matchBase(e,t,n,i):l=t.exec(a)),{isMatch:!!l,match:l,output:a}};Qt.matchBase=(e,t,n,r=rx.isWindows(n))=>(t instanceof RegExp?t:Qt.makeRe(t,n)).test(Ste.basename(e));Qt.isMatch=(e,t,n)=>Qt(t,n)(e);Qt.parse=(e,t)=>Array.isArray(e)?e.map(n=>Qt.parse(n,t)):nx(e,{...t,fastpaths:!1});Qt.scan=(e,t)=>xte(e,t);Qt.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",l=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(l=`^(?!${l}).*$`);let a=Qt.toRegex(l,t);return r===!0&&(a.state=e),a};Qt.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=nx.fastpaths(e,t)),i.output||(i=nx(e,t)),Qt.compileRe(i,t,n,r)};Qt.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(n){if(t&&t.debug===!0)throw n;return/$^/}};Qt.constants=Cte;sz.exports=Qt});var lz=O((Tye,az)=>{"use strict";az.exports=oz()});var pz=O((Eye,hz)=>{"use strict";var uz=require("util"),dz=UN(),Pi=lz(),ix=ud(),cz=e=>e===""||e==="./",It=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let r=new Set,i=new Set,s=new Set,o=0,l=u=>{s.add(u.output),n&&n.onResult&&n.onResult(u)};for(let u=0;u<t.length;u++){let d=Pi(String(t[u]),{...n,onResult:l},!0),h=d.state.negated||d.state.negatedExtglob;h&&o++;for(let f of e){let p=d(f,!0);(h?!p.isMatch:p.isMatch)&&(h?r.add(p.output):(r.delete(p.output),i.add(p.output)))}}let c=(o===t.length?[...s]:[...i]).filter(u=>!r.has(u));if(n&&c.length===0){if(n.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(n.nonull===!0||n.nullglob===!0)return n.unescape?t.map(u=>u.replace(/\\/g,"")):t}return c};It.match=It;It.matcher=(e,t)=>Pi(e,t);It.isMatch=(e,t,n)=>Pi(t,n)(e);It.any=It.isMatch;It.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set,i=[],s=l=>{n.onResult&&n.onResult(l),i.push(l.output)},o=new Set(It(e,t,{...n,onResult:s}));for(let l of i)o.has(l)||r.add(l);return[...r]};It.contains=(e,t,n)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${uz.inspect(e)}"`);if(Array.isArray(t))return t.some(r=>It.contains(e,r,n));if(typeof t=="string"){if(cz(e)||cz(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return It.isMatch(e,t,{...n,contains:!0})};It.matchKeys=(e,t,n)=>{if(!ix.isObject(e))throw new TypeError("Expected the first argument to be an object");let r=It(Object.keys(e),t,n),i={};for(let s of r)i[s]=e[s];return i};It.some=(e,t,n)=>{let r=[].concat(e);for(let i of[].concat(t)){let s=Pi(String(i),n);if(r.some(o=>s(o)))return!0}return!1};It.every=(e,t,n)=>{let r=[].concat(e);for(let i of[].concat(t)){let s=Pi(String(i),n);if(!r.every(o=>s(o)))return!1}return!0};It.all=(e,t,n)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${uz.inspect(e)}"`);return[].concat(t).every(r=>Pi(r,n)(e))};It.capture=(e,t,n)=>{let r=ix.isWindows(n),s=Pi.makeRe(String(e),{...n,capture:!0}).exec(r?ix.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};It.makeRe=(...e)=>Pi.makeRe(...e);It.scan=(...e)=>Pi.scan(...e);It.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[]))for(let i of dz(String(r),t))n.push(Pi.parse(i,t));return n};It.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:dz(e,t)};It.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return It.braces(e,{...t,expand:!0})};hz.exports=It});var _z=O(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.matchAny=Ie.convertPatternsToRe=Ie.makeRe=Ie.getPatternParts=Ie.expandBraceExpansion=Ie.expandPatternsWithBraceExpansion=Ie.isAffectDepthOfReadingPattern=Ie.endsWithSlashGlobStar=Ie.hasGlobStar=Ie.getBaseDirectory=Ie.isPatternRelatedToParentDirectory=Ie.getPatternsOutsideCurrentDirectory=Ie.getPatternsInsideCurrentDirectory=Ie.getPositivePatterns=Ie.getNegativePatterns=Ie.isPositivePattern=Ie.isNegativePattern=Ie.convertToNegativePattern=Ie.convertToPositivePattern=Ie.isDynamicPattern=Ie.isStaticPattern=void 0;var Tte=require("path"),Ete=sN(),sx=pz(),fz="**",Dte="\\",Rte=/[*?]|^!/,Ate=/\[[^[]*]/,Fte=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Pte=/[!*+?@]\([^(]*\)/,Ite=/,|\.\./;function mz(e,t={}){return!gz(e,t)}Ie.isStaticPattern=mz;function gz(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Dte)||Rte.test(e)||Ate.test(e)||Fte.test(e)||t.extglob!==!1&&Pte.test(e)||t.braceExpansion!==!1&&Mte(e))}Ie.isDynamicPattern=gz;function Mte(e){let t=e.indexOf("{");if(t===-1)return!1;let n=e.indexOf("}",t+1);if(n===-1)return!1;let r=e.slice(t,n);return Ite.test(r)}function Ote(e){return rb(e)?e.slice(1):e}Ie.convertToPositivePattern=Ote;function Lte(e){return"!"+e}Ie.convertToNegativePattern=Lte;function rb(e){return e.startsWith("!")&&e[1]!=="("}Ie.isNegativePattern=rb;function bz(e){return!rb(e)}Ie.isPositivePattern=bz;function Nte(e){return e.filter(rb)}Ie.getNegativePatterns=Nte;function zte(e){return e.filter(bz)}Ie.getPositivePatterns=zte;function qte(e){return e.filter(t=>!ox(t))}Ie.getPatternsInsideCurrentDirectory=qte;function Wte(e){return e.filter(ox)}Ie.getPatternsOutsideCurrentDirectory=Wte;function ox(e){return e.startsWith("..")||e.startsWith("./..")}Ie.isPatternRelatedToParentDirectory=ox;function jte(e){return Ete(e,{flipBackslashes:!1})}Ie.getBaseDirectory=jte;function Ute(e){return e.includes(fz)}Ie.hasGlobStar=Ute;function vz(e){return e.endsWith("/"+fz)}Ie.endsWithSlashGlobStar=vz;function Hte(e){let t=Tte.basename(e);return vz(e)||mz(t)}Ie.isAffectDepthOfReadingPattern=Hte;function $te(e){return e.reduce((t,n)=>t.concat(yz(n)),[])}Ie.expandPatternsWithBraceExpansion=$te;function yz(e){return sx.braces(e,{expand:!0,nodupes:!0})}Ie.expandBraceExpansion=yz;function Bte(e,t){let{parts:n}=sx.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return n.length===0&&(n=[e]),n[0].startsWith("/")&&(n[0]=n[0].slice(1),n.unshift("")),n}Ie.getPatternParts=Bte;function wz(e,t){return sx.makeRe(e,t)}Ie.makeRe=wz;function Vte(e,t){return e.map(n=>wz(n,t))}Ie.convertPatternsToRe=Vte;function Gte(e,t){return t.some(n=>n.test(e))}Ie.matchAny=Gte});var kz=O((Rye,Cz)=>{"use strict";var Kte=require("stream"),Sz=Kte.PassThrough,Jte=Array.prototype.slice;Cz.exports=Xte;function Xte(){let e=[],t=Jte.call(arguments),n=!1,r=t[t.length-1];r&&!Array.isArray(r)&&r.pipe==null?t.pop():r={};let i=r.end!==!1,s=r.pipeError===!0;r.objectMode==null&&(r.objectMode=!0),r.highWaterMark==null&&(r.highWaterMark=64*1024);let o=Sz(r);function l(){for(let u=0,d=arguments.length;u<d;u++)e.push(xz(arguments[u],r));return a(),this}function a(){if(n)return;n=!0;let u=e.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let d=u.length+1;function h(){--d>0||(n=!1,a())}function f(p){function m(){p.removeListener("merge2UnpipeEnd",m),p.removeListener("end",m),s&&p.removeListener("error",g),h()}function g(b){o.emit("error",b)}if(p._readableState.endEmitted)return h();p.on("merge2UnpipeEnd",m),p.on("end",m),s&&p.on("error",g),p.pipe(o,{end:!1}),p.resume()}for(let p=0;p<u.length;p++)f(u[p]);h()}function c(){n=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=l,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),t.length&&l.apply(null,t),o}function xz(e,t){if(Array.isArray(e))for(let n=0,r=e.length;n<r;n++)e[n]=xz(e[n],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Sz(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Ez=O(ib=>{"use strict";Object.defineProperty(ib,"__esModule",{value:!0});ib.merge=void 0;var Qte=kz();function Yte(e){let t=Qte(e);return e.forEach(n=>{n.once("error",r=>t.emit("error",r))}),t.once("close",()=>Tz(e)),t.once("end",()=>Tz(e)),t}ib.merge=Yte;function Tz(e){e.forEach(t=>t.emit("close"))}});var Dz=O(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.isEmpty=gc.isString=void 0;function Zte(e){return typeof e=="string"}gc.isString=Zte;function ene(e){return e===""}gc.isEmpty=ene});var ws=O(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.string=Tn.stream=Tn.pattern=Tn.path=Tn.fs=Tn.errno=Tn.array=void 0;var tne=JL();Tn.array=tne;var nne=XL();Tn.errno=nne;var rne=QL();Tn.fs=rne;var ine=YL();Tn.path=ine;var sne=_z();Tn.pattern=sne;var one=Ez();Tn.stream=one;var ane=Dz();Tn.string=ane});var Fz=O(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.convertPatternGroupToTask=En.convertPatternGroupsToTasks=En.groupPatternsByBaseDirectory=En.getNegativePatternsAsPositive=En.getPositivePatterns=En.convertPatternsToTasks=En.generate=void 0;var _s=ws();function lne(e,t){let n=Rz(e),r=Az(e,t.ignore),i=n.filter(a=>_s.pattern.isStaticPattern(a,t)),s=n.filter(a=>_s.pattern.isDynamicPattern(a,t)),o=ax(i,r,!1),l=ax(s,r,!0);return o.concat(l)}En.generate=lne;function ax(e,t,n){let r=[],i=_s.pattern.getPatternsOutsideCurrentDirectory(e),s=_s.pattern.getPatternsInsideCurrentDirectory(e),o=lx(i),l=lx(s);return r.push(...cx(o,t,n)),"."in l?r.push(ux(".",s,t,n)):r.push(...cx(l,t,n)),r}En.convertPatternsToTasks=ax;function Rz(e){return _s.pattern.getPositivePatterns(e)}En.getPositivePatterns=Rz;function Az(e,t){return _s.pattern.getNegativePatterns(e).concat(t).map(_s.pattern.convertToPositivePattern)}En.getNegativePatternsAsPositive=Az;function lx(e){let t={};return e.reduce((n,r)=>{let i=_s.pattern.getBaseDirectory(r);return i in n?n[i].push(r):n[i]=[r],n},t)}En.groupPatternsByBaseDirectory=lx;function cx(e,t,n){return Object.keys(e).map(r=>ux(r,e[r],t,n))}En.convertPatternGroupsToTasks=cx;function ux(e,t,n,r){return{dynamic:r,positive:t,negative:n,base:e,patterns:[].concat(t,n.map(_s.pattern.convertToNegativePattern))}}En.convertPatternGroupToTask=ux});var Iz=O(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.removeDuplicateSlashes=bc.transform=void 0;var cne=/(?!^)\/{2,}/g;function une(e){return e.map(t=>Pz(t))}bc.transform=une;function Pz(e){return e.replace(cne,"/")}bc.removeDuplicateSlashes=Pz});var Oz=O(sb=>{"use strict";Object.defineProperty(sb,"__esModule",{value:!0});sb.read=void 0;function dne(e,t,n){t.fs.lstat(e,(r,i)=>{if(r!==null){Mz(n,r);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){dx(n,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){Mz(n,s);return}dx(n,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),dx(n,o)})})}sb.read=dne;function Mz(e,t){e(t)}function dx(e,t){e(null,t)}});var Lz=O(ob=>{"use strict";Object.defineProperty(ob,"__esModule",{value:!0});ob.read=void 0;function hne(e,t){let n=t.fs.lstatSync(e);if(!n.isSymbolicLink()||!t.followSymbolicLink)return n;try{let r=t.fs.statSync(e);return t.markSymbolicLink&&(r.isSymbolicLink=()=>!0),r}catch(r){if(!t.throwErrorOnBrokenSymbolicLink)return n;throw r}}ob.read=hne});var Nz=O(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.createFileSystemAdapter=yo.FILE_SYSTEM_ADAPTER=void 0;var ab=require("fs");yo.FILE_SYSTEM_ADAPTER={lstat:ab.lstat,stat:ab.stat,lstatSync:ab.lstatSync,statSync:ab.statSync};function pne(e){return e===void 0?yo.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},yo.FILE_SYSTEM_ADAPTER),e)}yo.createFileSystemAdapter=pne});var zz=O(px=>{"use strict";Object.defineProperty(px,"__esModule",{value:!0});var fne=Nz(),hx=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=fne.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,n){return t??n}};px.default=hx});var pa=O(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.statSync=wo.stat=wo.Settings=void 0;var qz=Oz(),mne=Lz(),fx=zz();wo.Settings=fx.default;function gne(e,t,n){if(typeof t=="function"){qz.read(e,mx(),t);return}qz.read(e,mx(t),n)}wo.stat=gne;function bne(e,t){let n=mx(t);return mne.read(e,n)}wo.statSync=bne;function mx(e={}){return e instanceof fx.default?e:new fx.default(e)}});var Uz=O((Wye,jz)=>{var Wz;jz.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Wz||(Wz=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var $z=O((jye,Hz)=>{Hz.exports=yne;var vne=Uz();function yne(e,t){let n,r,i,s=!0;Array.isArray(e)?(n=[],r=e.length):(i=Object.keys(e),n={},r=i.length);function o(a){function c(){t&&t(a,n),t=null}s?vne(c):c()}function l(a,c,u){n[a]=u,(--r===0||c)&&o(c)}r?i?i.forEach(function(a){e[a](function(c,u){l(a,c,u)})}):e.forEach(function(a,c){a(function(u,d){l(c,u,d)})}):o(null),s=!1}});var gx=O(cb=>{"use strict";Object.defineProperty(cb,"__esModule",{value:!0});cb.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var lb=process.versions.node.split(".");if(lb[0]===void 0||lb[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Bz=Number.parseInt(lb[0],10),wne=Number.parseInt(lb[1],10),Vz=10,_ne=10,Sne=Bz>Vz,xne=Bz===Vz&&wne>=_ne;cb.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Sne||xne});var Gz=O(ub=>{"use strict";Object.defineProperty(ub,"__esModule",{value:!0});ub.createDirentFromStats=void 0;var bx=class{constructor(t,n){this.name=t,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function Cne(e,t){return new bx(e,t)}ub.createDirentFromStats=Cne});var vx=O(db=>{"use strict";Object.defineProperty(db,"__esModule",{value:!0});db.fs=void 0;var kne=Gz();db.fs=kne});var yx=O(hb=>{"use strict";Object.defineProperty(hb,"__esModule",{value:!0});hb.joinPathSegments=void 0;function Tne(e,t,n){return e.endsWith(n)?e+t:e+n+t}hb.joinPathSegments=Tne});var Zz=O(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.readdir=_o.readdirWithFileTypes=_o.read=void 0;var Ene=pa(),Kz=$z(),Dne=gx(),Jz=vx(),Xz=yx();function Rne(e,t,n){if(!t.stats&&Dne.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Qz(e,t,n);return}Yz(e,t,n)}_o.read=Rne;function Qz(e,t,n){t.fs.readdir(e,{withFileTypes:!0},(r,i)=>{if(r!==null){pb(n,r);return}let s=i.map(l=>({dirent:l,name:l.name,path:Xz.joinPathSegments(e,l.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){wx(n,s);return}let o=s.map(l=>Ane(l,t));Kz(o,(l,a)=>{if(l!==null){pb(n,l);return}wx(n,a)})})}_o.readdirWithFileTypes=Qz;function Ane(e,t){return n=>{if(!e.dirent.isSymbolicLink()){n(null,e);return}t.fs.stat(e.path,(r,i)=>{if(r!==null){if(t.throwErrorOnBrokenSymbolicLink){n(r);return}n(null,e);return}e.dirent=Jz.fs.createDirentFromStats(e.name,i),n(null,e)})}}function Yz(e,t,n){t.fs.readdir(e,(r,i)=>{if(r!==null){pb(n,r);return}let s=i.map(o=>{let l=Xz.joinPathSegments(e,o,t.pathSegmentSeparator);return a=>{Ene.stat(l,t.fsStatSettings,(c,u)=>{if(c!==null){a(c);return}let d={name:o,path:l,dirent:Jz.fs.createDirentFromStats(o,u)};t.stats&&(d.stats=u),a(null,d)})}});Kz(s,(o,l)=>{if(o!==null){pb(n,o);return}wx(n,l)})})}_o.readdir=Yz;function pb(e,t){e(t)}function wx(e,t){e(null,t)}});var iq=O(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.readdir=So.readdirWithFileTypes=So.read=void 0;var Fne=pa(),Pne=gx(),eq=vx(),tq=yx();function Ine(e,t){return!t.stats&&Pne.IS_SUPPORT_READDIR_WITH_FILE_TYPES?nq(e,t):rq(e,t)}So.read=Ine;function nq(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(r=>{let i={dirent:r,name:r.name,path:tq.joinPathSegments(e,r.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=eq.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}So.readdirWithFileTypes=nq;function rq(e,t){return t.fs.readdirSync(e).map(r=>{let i=tq.joinPathSegments(e,r,t.pathSegmentSeparator),s=Fne.statSync(i,t.fsStatSettings),o={name:r,path:i,dirent:eq.fs.createDirentFromStats(r,s)};return t.stats&&(o.stats=s),o})}So.readdir=rq});var sq=O(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.createFileSystemAdapter=xo.FILE_SYSTEM_ADAPTER=void 0;var vc=require("fs");xo.FILE_SYSTEM_ADAPTER={lstat:vc.lstat,stat:vc.stat,lstatSync:vc.lstatSync,statSync:vc.statSync,readdir:vc.readdir,readdirSync:vc.readdirSync};function Mne(e){return e===void 0?xo.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},xo.FILE_SYSTEM_ADAPTER),e)}xo.createFileSystemAdapter=Mne});var oq=O(Sx=>{"use strict";Object.defineProperty(Sx,"__esModule",{value:!0});var One=require("path"),Lne=pa(),Nne=sq(),_x=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Nne.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,One.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Lne.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,n){return t??n}};Sx.default=_x});var fb=O(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.Settings=Co.scandirSync=Co.scandir=void 0;var aq=Zz(),zne=iq(),xx=oq();Co.Settings=xx.default;function qne(e,t,n){if(typeof t=="function"){aq.read(e,Cx(),t);return}aq.read(e,Cx(t),n)}Co.scandir=qne;function Wne(e,t){let n=Cx(t);return zne.read(e,n)}Co.scandirSync=Wne;function Cx(e={}){return e instanceof xx.default?e:new xx.default(e)}});var cq=O((Qye,lq)=>{"use strict";function jne(e){var t=new e,n=t;function r(){var s=t;return s.next?t=s.next:(t=new e,n=t),s.next=null,s}function i(s){n.next=s,n=s}return{get:r,release:i}}lq.exports=jne});var dq=O((Yye,kx)=>{"use strict";var Une=cq();function uq(e,t,n){if(typeof e=="function"&&(n=t,t=e,e=null),n<1)throw new Error("fastqueue concurrency must be greater than 1");var r=Une(Hne),i=null,s=null,o=0,l=null,a={push:m,drain:Or,saturated:Or,pause:u,paused:!1,concurrency:n,running:c,resume:f,idle:p,length:d,getQueue:h,unshift:g,empty:Or,kill:y,killAndDrain:v,error:T};return a;function c(){return o}function u(){a.paused=!0}function d(){for(var k=i,R=0;k;)k=k.next,R++;return R}function h(){for(var k=i,R=[];k;)R.push(k.value),k=k.next;return R}function f(){if(a.paused){a.paused=!1;for(var k=0;k<a.concurrency;k++)o++,b()}}function p(){return o===0&&a.length()===0}function m(k,R){var w=r.get();w.context=e,w.release=b,w.value=k,w.callback=R||Or,w.errorHandler=l,o===a.concurrency||a.paused?s?(s.next=w,s=w):(i=w,s=w,a.saturated()):(o++,t.call(e,w.value,w.worked))}function g(k,R){var w=r.get();w.context=e,w.release=b,w.value=k,w.callback=R||Or,o===a.concurrency||a.paused?i?(w.next=i,i=w):(i=w,s=w,a.saturated()):(o++,t.call(e,w.value,w.worked))}function b(k){k&&r.release(k);var R=i;R?a.paused?o--:(s===i&&(s=null),i=R.next,R.next=null,t.call(e,R.value,R.worked),s===null&&a.empty()):--o===0&&a.drain()}function y(){i=null,s=null,a.drain=Or}function v(){i=null,s=null,a.drain(),a.drain=Or}function T(k){l=k}}function Or(){}function Hne(){this.value=null,this.callback=Or,this.next=null,this.release=Or,this.context=null,this.errorHandler=null;var e=this;this.worked=function(n,r){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=Or,e.errorHandler&&s(n,o),i.call(e.context,n,r),e.release(e)}}function $ne(e,t,n){typeof e=="function"&&(n=t,t=e,e=null);function r(u,d){t.call(this,u).then(function(h){d(null,h)},d)}var i=uq(e,r,n),s=i.push,o=i.unshift;return i.push=l,i.unshift=a,i.drained=c,i;function l(u){var d=new Promise(function(h,f){s(u,function(p,m){if(p){f(p);return}h(m)})});return d.catch(Or),d}function a(u){var d=new Promise(function(h,f){o(u,function(p,m){if(p){f(p);return}h(m)})});return d.catch(Or),d}function c(){var u=i.drain,d=new Promise(function(h){i.drain=function(){u(),h()}});return d}}kx.exports=uq;kx.exports.promise=$ne});var mb=O(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.joinPathSegments=Ii.replacePathSegmentSeparator=Ii.isAppliedFilter=Ii.isFatalError=void 0;function Bne(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Ii.isFatalError=Bne;function Vne(e,t){return e===null||e(t)}Ii.isAppliedFilter=Vne;function Gne(e,t){return e.split(/[/\\]/).join(t)}Ii.replacePathSegmentSeparator=Gne;function Kne(e,t,n){return e===""?t:e.endsWith(n)?e+t:e+n+t}Ii.joinPathSegments=Kne});var Dx=O(Ex=>{"use strict";Object.defineProperty(Ex,"__esModule",{value:!0});var Jne=mb(),Tx=class{constructor(t,n){this._root=t,this._settings=n,this._root=Jne.replacePathSegmentSeparator(t,n.pathSegmentSeparator)}};Ex.default=Tx});var Fx=O(Ax=>{"use strict";Object.defineProperty(Ax,"__esModule",{value:!0});var Xne=require("events"),Qne=fb(),Yne=dq(),gb=mb(),Zne=Dx(),Rx=class extends Zne.default{constructor(t,n){super(t,n),this._settings=n,this._scandir=Qne.scandir,this._emitter=new Xne.EventEmitter,this._queue=Yne(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,n){let r={directory:t,base:n};this._queue.push(r,i=>{i!==null&&this._handleError(i)})}_worker(t,n){this._scandir(t.directory,this._settings.fsScandirSettings,(r,i)=>{if(r!==null){n(r,void 0);return}for(let s of i)this._handleEntry(s,t.base);n(null,void 0)})}_handleError(t){this._isDestroyed||!gb.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,n){if(this._isDestroyed||this._isFatalError)return;let r=t.path;n!==void 0&&(t.path=gb.joinPathSegments(n,t.name,this._settings.pathSegmentSeparator)),gb.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&gb.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(r,n===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Ax.default=Rx});var hq=O(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});var ere=Fx(),Px=class{constructor(t,n){this._root=t,this._settings=n,this._reader=new ere.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(n=>{tre(t,n)}),this._reader.onEntry(n=>{this._storage.push(n)}),this._reader.onEnd(()=>{nre(t,this._storage)}),this._reader.read()}};Ix.default=Px;function tre(e,t){e(t)}function nre(e,t){e(null,t)}});var pq=O(Ox=>{"use strict";Object.defineProperty(Ox,"__esModule",{value:!0});var rre=require("stream"),ire=Fx(),Mx=class{constructor(t,n){this._root=t,this._settings=n,this._reader=new ire.default(this._root,this._settings),this._stream=new rre.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Ox.default=Mx});var fq=O(Nx=>{"use strict";Object.defineProperty(Nx,"__esModule",{value:!0});var sre=fb(),bb=mb(),ore=Dx(),Lx=class extends ore.default{constructor(){super(...arguments),this._scandir=sre.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,n){this._queue.add({directory:t,base:n})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,n){try{let r=this._scandir(t,this._settings.fsScandirSettings);for(let i of r)this._handleEntry(i,n)}catch(r){this._handleError(r)}}_handleError(t){if(bb.isFatalError(this._settings,t))throw t}_handleEntry(t,n){let r=t.path;n!==void 0&&(t.path=bb.joinPathSegments(n,t.name,this._settings.pathSegmentSeparator)),bb.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&bb.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(r,n===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Nx.default=Lx});var mq=O(qx=>{"use strict";Object.defineProperty(qx,"__esModule",{value:!0});var are=fq(),zx=class{constructor(t,n){this._root=t,this._settings=n,this._reader=new are.default(this._root,this._settings)}read(){return this._reader.read()}};qx.default=zx});var gq=O(jx=>{"use strict";Object.defineProperty(jx,"__esModule",{value:!0});var lre=require("path"),cre=fb(),Wx=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,lre.sep),this.fsScandirSettings=new cre.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,n){return t??n}};jx.default=Wx});var yb=O(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.Settings=Mi.walkStream=Mi.walkSync=Mi.walk=void 0;var bq=hq(),ure=pq(),dre=mq(),Ux=gq();Mi.Settings=Ux.default;function hre(e,t,n){if(typeof t=="function"){new bq.default(e,vb()).read(t);return}new bq.default(e,vb(t)).read(n)}Mi.walk=hre;function pre(e,t){let n=vb(t);return new dre.default(e,n).read()}Mi.walkSync=pre;function fre(e,t){let n=vb(t);return new ure.default(e,n).read()}Mi.walkStream=fre;function vb(e={}){return e instanceof Ux.default?e:new Ux.default(e)}});var wb=O($x=>{"use strict";Object.defineProperty($x,"__esModule",{value:!0});var mre=require("path"),gre=pa(),vq=ws(),Hx=class{constructor(t){this._settings=t,this._fsStatSettings=new gre.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return mre.resolve(this._settings.cwd,t)}_makeEntry(t,n){let r={name:n,path:n,dirent:vq.fs.createDirentFromStats(n,t)};return this._settings.stats&&(r.stats=t),r}_isFatalError(t){return!vq.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};$x.default=Hx});var Gx=O(Vx=>{"use strict";Object.defineProperty(Vx,"__esModule",{value:!0});var bre=require("stream"),vre=pa(),yre=yb(),wre=wb(),Bx=class extends wre.default{constructor(){super(...arguments),this._walkStream=yre.walkStream,this._stat=vre.stat}dynamic(t,n){return this._walkStream(t,n)}static(t,n){let r=t.map(this._getFullEntryPath,this),i=new bre.PassThrough({objectMode:!0});i._write=(s,o,l)=>this._getEntry(r[s],t[s],n).then(a=>{a!==null&&n.entryFilter(a)&&i.push(a),s===r.length-1&&i.end(),l()}).catch(l);for(let s=0;s<r.length;s++)i.write(s);return i}_getEntry(t,n,r){return this._getStat(t).then(i=>this._makeEntry(i,n)).catch(i=>{if(r.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((n,r)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?n(s):r(i))})}};Vx.default=Bx});var yq=O(Jx=>{"use strict";Object.defineProperty(Jx,"__esModule",{value:!0});var _re=yb(),Sre=wb(),xre=Gx(),Kx=class extends Sre.default{constructor(){super(...arguments),this._walkAsync=_re.walk,this._readerStream=new xre.default(this._settings)}dynamic(t,n){return new Promise((r,i)=>{this._walkAsync(t,n,(s,o)=>{s===null?r(o):i(s)})})}async static(t,n){let r=[],i=this._readerStream.static(t,n);return new Promise((s,o)=>{i.once("error",o),i.on("data",l=>r.push(l)),i.once("end",()=>s(r))})}};Jx.default=Kx});var wq=O(Qx=>{"use strict";Object.defineProperty(Qx,"__esModule",{value:!0});var yc=ws(),Xx=class{constructor(t,n,r){this._patterns=t,this._settings=n,this._micromatchOptions=r,this._storage=[],this._fillStorage()}_fillStorage(){let t=yc.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let n of t){let r=this._getPatternSegments(n),i=this._splitSegmentsIntoSections(r);this._storage.push({complete:i.length<=1,pattern:n,segments:r,sections:i})}}_getPatternSegments(t){return yc.pattern.getPatternParts(t,this._micromatchOptions).map(r=>yc.pattern.isDynamicPattern(r,this._settings)?{dynamic:!0,pattern:r,patternRe:yc.pattern.makeRe(r,this._micromatchOptions)}:{dynamic:!1,pattern:r})}_splitSegmentsIntoSections(t){return yc.array.splitWhen(t,n=>n.dynamic&&yc.pattern.hasGlobStar(n.pattern))}};Qx.default=Xx});var _q=O(Zx=>{"use strict";Object.defineProperty(Zx,"__esModule",{value:!0});var Cre=wq(),Yx=class extends Cre.default{match(t){let n=t.split("/"),r=n.length,i=this._storage.filter(s=>!s.complete||s.segments.length>r);for(let s of i){let o=s.sections[0];if(!s.complete&&r>o.length||n.every((a,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(a)||!u.dynamic&&u.pattern===a)}))return!0}return!1}};Zx.default=Yx});var Sq=O(tC=>{"use strict";Object.defineProperty(tC,"__esModule",{value:!0});var _b=ws(),kre=_q(),eC=class{constructor(t,n){this._settings=t,this._micromatchOptions=n}getFilter(t,n,r){let i=this._getMatcher(n),s=this._getNegativePatternsRe(r);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new kre.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let n=t.filter(_b.pattern.isAffectDepthOfReadingPattern);return _b.pattern.convertPatternsToRe(n,this._micromatchOptions)}_filter(t,n,r,i){if(this._isSkippedByDeep(t,n.path)||this._isSkippedSymbolicLink(n))return!1;let s=_b.path.removeLeadingDotSegment(n.path);return this._isSkippedByPositivePatterns(s,r)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,n){return this._settings.deep===1/0?!1:this._getEntryLevel(t,n)>=this._settings.deep}_getEntryLevel(t,n){let r=n.split("/").length;if(t==="")return r;let i=t.split("/").length;return r-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,n){return!this._settings.baseNameMatch&&!n.match(t)}_isSkippedByNegativePatterns(t,n){return!_b.pattern.matchAny(t,n)}};tC.default=eC});var xq=O(rC=>{"use strict";Object.defineProperty(rC,"__esModule",{value:!0});var fa=ws(),nC=class{constructor(t,n){this._settings=t,this._micromatchOptions=n,this.index=new Map}getFilter(t,n){let r=fa.pattern.convertPatternsToRe(t,this._micromatchOptions),i=fa.pattern.convertPatternsToRe(n,this._micromatchOptions);return s=>this._filter(s,r,i)}_filter(t,n,r){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,r))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,n,s)&&!this._isMatchToPatterns(t.path,r,s);return this._settings.unique&&o&&this._createIndexRecord(t),o}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,n){if(!this._settings.absolute)return!1;let r=fa.path.makeAbsolute(this._settings.cwd,t);return fa.pattern.matchAny(r,n)}_isMatchToPatterns(t,n,r){let i=fa.path.removeLeadingDotSegment(t),s=fa.pattern.matchAny(i,n);return!s&&r?fa.pattern.matchAny(i+"/",n):s}};rC.default=nC});var Cq=O(sC=>{"use strict";Object.defineProperty(sC,"__esModule",{value:!0});var Tre=ws(),iC=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Tre.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};sC.default=iC});var Tq=O(aC=>{"use strict";Object.defineProperty(aC,"__esModule",{value:!0});var kq=ws(),oC=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let n=t.path;return this._settings.absolute&&(n=kq.path.makeAbsolute(this._settings.cwd,n),n=kq.path.unixify(n)),this._settings.markDirectories&&t.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:n}):n}};aC.default=oC});var Sb=O(cC=>{"use strict";Object.defineProperty(cC,"__esModule",{value:!0});var Ere=require("path"),Dre=Sq(),Rre=xq(),Are=Cq(),Fre=Tq(),lC=class{constructor(t){this._settings=t,this.errorFilter=new Are.default(this._settings),this.entryFilter=new Rre.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Dre.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Fre.default(this._settings)}_getRootDirectory(t){return Ere.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let n=t.base==="."?"":t.base;return{basePath:n,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(n,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};cC.default=lC});var Eq=O(dC=>{"use strict";Object.defineProperty(dC,"__esModule",{value:!0});var Pre=yq(),Ire=Sb(),uC=class extends Ire.default{constructor(){super(...arguments),this._reader=new Pre.default(this._settings)}async read(t){let n=this._getRootDirectory(t),r=this._getReaderOptions(t);return(await this.api(n,t,r)).map(s=>r.transform(s))}api(t,n,r){return n.dynamic?this._reader.dynamic(t,r):this._reader.static(n.patterns,r)}};dC.default=uC});var Dq=O(pC=>{"use strict";Object.defineProperty(pC,"__esModule",{value:!0});var Mre=require("stream"),Ore=Gx(),Lre=Sb(),hC=class extends Lre.default{constructor(){super(...arguments),this._reader=new Ore.default(this._settings)}read(t){let n=this._getRootDirectory(t),r=this._getReaderOptions(t),i=this.api(n,t,r),s=new Mre.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",r.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,n,r){return n.dynamic?this._reader.dynamic(t,r):this._reader.static(n.patterns,r)}};pC.default=hC});var Rq=O(mC=>{"use strict";Object.defineProperty(mC,"__esModule",{value:!0});var Nre=pa(),zre=yb(),qre=wb(),fC=class extends qre.default{constructor(){super(...arguments),this._walkSync=zre.walkSync,this._statSync=Nre.statSync}dynamic(t,n){return this._walkSync(t,n)}static(t,n){let r=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,n);o===null||!n.entryFilter(o)||r.push(o)}return r}_getEntry(t,n,r){try{let i=this._getStat(t);return this._makeEntry(i,n)}catch(i){if(r.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};mC.default=fC});var Aq=O(bC=>{"use strict";Object.defineProperty(bC,"__esModule",{value:!0});var Wre=Rq(),jre=Sb(),gC=class extends jre.default{constructor(){super(...arguments),this._reader=new Wre.default(this._settings)}read(t){let n=this._getRootDirectory(t),r=this._getReaderOptions(t);return this.api(n,t,r).map(r.transform)}api(t,n,r){return n.dynamic?this._reader.dynamic(t,r):this._reader.static(n.patterns,r)}};bC.default=gC});var Fq=O(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var wc=require("fs"),Ure=require("os"),Hre=Math.max(Ure.cpus().length,1);_c.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:wc.lstat,lstatSync:wc.lstatSync,stat:wc.stat,statSync:wc.statSync,readdir:wc.readdir,readdirSync:wc.readdirSync};var vC=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Hre),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(t,n){return t===void 0?n:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},_c.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};_c.default=vC});var Oq=O((xwe,Mq)=>{"use strict";var Pq=Fz(),Iq=Iz(),$re=Eq(),Bre=Dq(),Vre=Aq(),yC=Fq(),ma=ws();async function wC(e,t){Sc(e);let n=_C(e,$re.default,t),r=await Promise.all(n);return ma.array.flatten(r)}(function(e){function t(o,l){Sc(o);let a=_C(o,Vre.default,l);return ma.array.flatten(a)}e.sync=t;function n(o,l){Sc(o);let a=_C(o,Bre.default,l);return ma.stream.merge(a)}e.stream=n;function r(o,l){Sc(o);let a=Iq.transform([].concat(o)),c=new yC.default(l);return Pq.generate(a,c)}e.generateTasks=r;function i(o,l){Sc(o);let a=new yC.default(l);return ma.pattern.isDynamicPattern(o,a)}e.isDynamicPattern=i;function s(o){return Sc(o),ma.path.escape(o)}e.escapePath=s})(wC||(wC={}));function _C(e,t,n){let r=Iq.transform([].concat(e)),i=new yC.default(n),s=Pq.generate(r,i),o=new t(i);return s.map(o.read,o)}function Sc(e){if(![].concat(e).every(r=>ma.string.isString(r)&&!ma.string.isEmpty(r)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Mq.exports=wC});var Nq=O(Cc=>{"use strict";var Gre=Cc&&Cc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Cc,"__esModule",{value:!0});Cc.create=void 0;var xc=Bs(),Kre=Gre(Oq()),Jre=require("node:path"),Lq=ro(),Xre=Ko(),Qre=e=>({triggerCharacters:["-"],create(t){return{provideCompletionItems(n,r,i,s){if(s.isCancellationRequested)return null;let o=[],[l]=t.documents.getVirtualCodeByUri(n.uri);if(l instanceof Lq.AstroVirtualCode){if(i.triggerCharacter==="-"){let a=Zre(l,n,r);a&&o.push(a)}return{isIncomplete:!1,items:o}}},provideSemanticDiagnostics(n,r){if(r.isCancellationRequested)return[];let[i]=t.documents.getVirtualCodeByUri(n.uri);if(!(i instanceof Lq.AstroVirtualCode))return;return i.compilerDiagnostics.map(s);function s(o){return{message:o.text+(o.hint?`
|
|
630
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var qN=O((yye,zN)=>{"use strict";var Fee=Yg(),{MAX_LENGTH:ON,CHAR_BACKSLASH:G0,CHAR_BACKTICK:Pee,CHAR_COMMA:Iee,CHAR_DOT:Mee,CHAR_LEFT_PARENTHESES:Oee,CHAR_RIGHT_PARENTHESES:Lee,CHAR_LEFT_CURLY_BRACE:Nee,CHAR_RIGHT_CURLY_BRACE:zee,CHAR_LEFT_SQUARE_BRACKET:LN,CHAR_RIGHT_SQUARE_BRACKET:NN,CHAR_DOUBLE_QUOTE:qee,CHAR_SINGLE_QUOTE:Wee,CHAR_NO_BREAK_SPACE:jee,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Uee}=MN(),Hee=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let n=t||{},r=typeof n.maxLength=="number"?Math.min(ON,n.maxLength):ON;if(e.length>r)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${r})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,l=i,a=0,c=e.length,u=0,d=0,h,f={},p=()=>e[u++],m=g=>{if(g.type==="text"&&l.type==="dot"&&(l.type="text"),l&&l.type==="text"&&g.type==="text"){l.value+=g.value;return}return o.nodes.push(g),g.parent=o,g.prev=l,l=g,g};for(m({type:"bos"});u<c;)if(o=s[s.length-1],h=p(),!(h===Uee||h===jee)){if(h===G0){m({type:"text",value:(t.keepEscaping?h:"")+p()});continue}if(h===NN){m({type:"text",value:"\\"+h});continue}if(h===LN){a++;let g=!0,b;for(;u<c&&(b=p());){if(h+=b,b===LN){a++;continue}if(b===G0){h+=p();continue}if(b===NN&&(a--,a===0))break}m({type:"text",value:h});continue}if(h===Oee){o=m({type:"paren",nodes:[]}),s.push(o),m({type:"text",value:h});continue}if(h===Lee){if(o.type!=="paren"){m({type:"text",value:h});continue}o=s.pop(),m({type:"text",value:h}),o=s[s.length-1];continue}if(h===qee||h===Wee||h===Pee){let g=h,b;for(t.keepQuotes!==!0&&(h="");u<c&&(b=p());){if(b===G0){h+=b+p();continue}if(b===g){t.keepQuotes===!0&&(h+=b);break}h+=b}m({type:"text",value:h});continue}if(h===Nee){d++;let b={type:"brace",open:!0,close:!1,dollar:l.value&&l.value.slice(-1)==="$"||o.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};o=m(b),s.push(o),m({type:"open",value:h});continue}if(h===zee){if(o.type!=="brace"){m({type:"text",value:h});continue}let g="close";o=s.pop(),o.close=!0,m({type:g,value:h}),d--,o=s[s.length-1];continue}if(h===Iee&&d>0){if(o.ranges>0){o.ranges=0;let g=o.nodes.shift();o.nodes=[g,{type:"text",value:Fee(o)}]}m({type:"comma",value:h}),o.commas++;continue}if(h===Mee&&d>0&&o.commas===0){let g=o.nodes;if(d===0||g.length===0){m({type:"text",value:h});continue}if(l.type==="dot"){if(o.range=[],l.value+=h,l.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,l.type="text";continue}o.ranges++,o.args=[];continue}if(l.type==="range"){g.pop();let b=g[g.length-1];b.value+=l.value+h,l=b,o.ranges--;continue}m({type:"dot",value:h});continue}m({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(y=>{y.nodes||(y.type==="open"&&(y.isOpen=!0),y.type==="close"&&(y.isClose=!0),y.nodes||(y.type="text"),y.invalid=!0)});let g=s[s.length-1],b=g.nodes.indexOf(o);g.nodes.splice(b,1,...o.nodes)}while(s.length>0);return m({type:"eos"}),i};zN.exports=Hee});var UN=O((wye,jN)=>{"use strict";var WN=Yg(),$ee=RN(),Bee=PN(),Vee=qN(),or=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let i=or.create(r,t);Array.isArray(i)?n.push(...i):n.push(i)}else n=[].concat(or.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(n=[...new Set(n)]),n};or.parse=(e,t={})=>Vee(e,t);or.stringify=(e,t={})=>WN(typeof e=="string"?or.parse(e,t):e,t);or.compile=(e,t={})=>(typeof e=="string"&&(e=or.parse(e,t)),$ee(e,t));or.expand=(e,t={})=>{typeof e=="string"&&(e=or.parse(e,t));let n=Bee(e,t);return t.noempty===!0&&(n=n.filter(Boolean)),t.nodupes===!0&&(n=[...new Set(n)]),n};or.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?or.compile(e,t):or.expand(e,t);jN.exports=or});var cd=O((_ye,GN)=>{"use strict";var Gee=require("path"),Fi="\\\\/",HN=`[^${Fi}]`,ys="\\.",Kee="\\+",Jee="\\?",eb="\\/",Xee="(?=.)",$N="[^/]",K0=`(?:${eb}|$)`,BN=`(?:^|${eb})`,J0=`${ys}{1,2}${K0}`,Qee=`(?!${ys})`,Yee=`(?!${BN}${J0})`,Zee=`(?!${ys}{0,1}${K0})`,ete=`(?!${J0})`,tte=`[^.${eb}]`,nte=`${$N}*?`,VN={DOT_LITERAL:ys,PLUS_LITERAL:Kee,QMARK_LITERAL:Jee,SLASH_LITERAL:eb,ONE_CHAR:Xee,QMARK:$N,END_ANCHOR:K0,DOTS_SLASH:J0,NO_DOT:Qee,NO_DOTS:Yee,NO_DOT_SLASH:Zee,NO_DOTS_SLASH:ete,QMARK_NO_DOT:tte,STAR:nte,START_ANCHOR:BN},rte={...VN,SLASH_LITERAL:`[${Fi}]`,QMARK:HN,STAR:`${HN}*?`,DOTS_SLASH:`${ys}{1,2}(?:[${Fi}]|$)`,NO_DOT:`(?!${ys})`,NO_DOTS:`(?!(?:^|[${Fi}])${ys}{1,2}(?:[${Fi}]|$))`,NO_DOT_SLASH:`(?!${ys}{0,1}(?:[${Fi}]|$))`,NO_DOTS_SLASH:`(?!${ys}{1,2}(?:[${Fi}]|$))`,QMARK_NO_DOT:`[^.${Fi}]`,START_ANCHOR:`(?:^|[${Fi}])`,END_ANCHOR:`(?:[${Fi}]|$)`},ite={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};GN.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:ite,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Gee.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?rte:VN}}});var ud=O($n=>{"use strict";var ste=require("path"),ote=process.platform==="win32",{REGEX_BACKSLASH:ate,REGEX_REMOVE_BACKSLASH:lte,REGEX_SPECIAL_CHARS:cte,REGEX_SPECIAL_CHARS_GLOBAL:ute}=cd();$n.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);$n.hasRegexChars=e=>cte.test(e);$n.isRegexChar=e=>e.length===1&&$n.hasRegexChars(e);$n.escapeRegex=e=>e.replace(ute,"\\$1");$n.toPosixSlashes=e=>e.replace(ate,"/");$n.removeBackslashes=e=>e.replace(lte,t=>t==="\\"?"":t);$n.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};$n.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:ote===!0||ste.sep==="\\";$n.escapeLast=(e,t,n)=>{let r=e.lastIndexOf(t,n);return r===-1?e:e[r-1]==="\\"?$n.escapeLast(e,t,r-1):`${e.slice(0,r)}\\${e.slice(r)}`};$n.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n};$n.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",s=`${r}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var tz=O((xye,ez)=>{"use strict";var KN=ud(),{CHAR_ASTERISK:X0,CHAR_AT:dte,CHAR_BACKWARD_SLASH:dd,CHAR_COMMA:hte,CHAR_DOT:Q0,CHAR_EXCLAMATION_MARK:Y0,CHAR_FORWARD_SLASH:ZN,CHAR_LEFT_CURLY_BRACE:Z0,CHAR_LEFT_PARENTHESES:ex,CHAR_LEFT_SQUARE_BRACKET:pte,CHAR_PLUS:fte,CHAR_QUESTION_MARK:JN,CHAR_RIGHT_CURLY_BRACE:mte,CHAR_RIGHT_PARENTHESES:XN,CHAR_RIGHT_SQUARE_BRACKET:gte}=cd(),QN=e=>e===ZN||e===dd,YN=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},bte=(e,t)=>{let n=t||{},r=e.length-1,i=n.parts===!0||n.scanToEnd===!0,s=[],o=[],l=[],a=e,c=-1,u=0,d=0,h=!1,f=!1,p=!1,m=!1,g=!1,b=!1,y=!1,v=!1,T=!1,k=!1,R=0,w,_,S={value:"",depth:0,isGlob:!1},D=()=>c>=r,x=()=>a.charCodeAt(c+1),A=()=>(w=_,a.charCodeAt(++c));for(;c<r;){_=A();let N;if(_===dd){y=S.backslashes=!0,_=A(),_===Z0&&(b=!0);continue}if(b===!0||_===Z0){for(R++;D()!==!0&&(_=A());){if(_===dd){y=S.backslashes=!0,A();continue}if(_===Z0){R++;continue}if(b!==!0&&_===Q0&&(_=A())===Q0){if(h=S.isBrace=!0,p=S.isGlob=!0,k=!0,i===!0)continue;break}if(b!==!0&&_===hte){if(h=S.isBrace=!0,p=S.isGlob=!0,k=!0,i===!0)continue;break}if(_===mte&&(R--,R===0)){b=!1,h=S.isBrace=!0,k=!0;break}}if(i===!0)continue;break}if(_===ZN){if(s.push(c),o.push(S),S={value:"",depth:0,isGlob:!1},k===!0)continue;if(w===Q0&&c===u+1){u+=2;continue}d=c+1;continue}if(n.noext!==!0&&(_===fte||_===dte||_===X0||_===JN||_===Y0)===!0&&x()===ex){if(p=S.isGlob=!0,m=S.isExtglob=!0,k=!0,_===Y0&&c===u&&(T=!0),i===!0){for(;D()!==!0&&(_=A());){if(_===dd){y=S.backslashes=!0,_=A();continue}if(_===XN){p=S.isGlob=!0,k=!0;break}}continue}break}if(_===X0){if(w===X0&&(g=S.isGlobstar=!0),p=S.isGlob=!0,k=!0,i===!0)continue;break}if(_===JN){if(p=S.isGlob=!0,k=!0,i===!0)continue;break}if(_===pte){for(;D()!==!0&&(N=A());){if(N===dd){y=S.backslashes=!0,A();continue}if(N===gte){f=S.isBracket=!0,p=S.isGlob=!0,k=!0;break}}if(i===!0)continue;break}if(n.nonegate!==!0&&_===Y0&&c===u){v=S.negated=!0,u++;continue}if(n.noparen!==!0&&_===ex){if(p=S.isGlob=!0,i===!0){for(;D()!==!0&&(_=A());){if(_===ex){y=S.backslashes=!0,_=A();continue}if(_===XN){k=!0;break}}continue}break}if(p===!0){if(k=!0,i===!0)continue;break}}n.noext===!0&&(m=!1,p=!1);let P=a,I="",C="";u>0&&(I=a.slice(0,u),a=a.slice(u),d-=u),P&&p===!0&&d>0?(P=a.slice(0,d),C=a.slice(d)):p===!0?(P="",C=a):P=a,P&&P!==""&&P!=="/"&&P!==a&&QN(P.charCodeAt(P.length-1))&&(P=P.slice(0,-1)),n.unescape===!0&&(C&&(C=KN.removeBackslashes(C)),P&&y===!0&&(P=KN.removeBackslashes(P)));let E={prefix:I,input:e,start:u,base:P,glob:C,isBrace:h,isBracket:f,isGlob:p,isExtglob:m,isGlobstar:g,negated:v,negatedExtglob:T};if(n.tokens===!0&&(E.maxDepth=0,QN(_)||o.push(S),E.tokens=o),n.parts===!0||n.tokens===!0){let N;for(let W=0;W<s.length;W++){let j=N?N+1:u,q=s[W],H=e.slice(j,q);n.tokens&&(W===0&&u!==0?(o[W].isPrefix=!0,o[W].value=I):o[W].value=H,YN(o[W]),E.maxDepth+=o[W].depth),(W!==0||H!=="")&&l.push(H),N=q}if(N&&N+1<e.length){let W=e.slice(N+1);l.push(W),n.tokens&&(o[o.length-1].value=W,YN(o[o.length-1]),E.maxDepth+=o[o.length-1].depth)}E.slashes=s,E.parts=l}return E};ez.exports=bte});var iz=O((Cye,rz)=>{"use strict";var tb=cd(),ar=ud(),{MAX_LENGTH:nb,POSIX_REGEX_SOURCE:vte,REGEX_NON_SPECIAL_CHARS:yte,REGEX_SPECIAL_CHARS_BACKREF:wte,REPLACEMENTS:nz}=tb,_te=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let n=`[${e.join("-")}]`;try{new RegExp(n)}catch{return e.map(i=>ar.escapeRegex(i)).join("..")}return n},mc=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,tx=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=nz[e]||e;let n={...t},r=typeof n.maxLength=="number"?Math.min(nb,n.maxLength):nb,i=e.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);let s={type:"bos",value:"",output:n.prepend||""},o=[s],l=n.capture?"":"?:",a=ar.isWindows(t),c=tb.globChars(a),u=tb.extglobChars(c),{DOT_LITERAL:d,PLUS_LITERAL:h,SLASH_LITERAL:f,ONE_CHAR:p,DOTS_SLASH:m,NO_DOT:g,NO_DOT_SLASH:b,NO_DOTS_SLASH:y,QMARK:v,QMARK_NO_DOT:T,STAR:k,START_ANCHOR:R}=c,w=J=>`(${l}(?:(?!${R}${J.dot?m:d}).)*?)`,_=n.dot?"":g,S=n.dot?v:T,D=n.bash===!0?w(n):k;n.capture&&(D=`(${D})`),typeof n.noext=="boolean"&&(n.noextglob=n.noext);let x={input:e,index:-1,start:0,dot:n.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=ar.removePrefix(e,x),i=e.length;let A=[],P=[],I=[],C=s,E,N=()=>x.index===i-1,W=x.peek=(J=1)=>e[x.index+J],j=x.advance=()=>e[++x.index]||"",q=()=>e.slice(x.index+1),H=(J="",oe=0)=>{x.consumed+=J,x.index+=oe},ee=J=>{x.output+=J.output!=null?J.output:J.value,H(J.value)},se=()=>{let J=1;for(;W()==="!"&&(W(2)!=="("||W(3)==="?");)j(),x.start++,J++;return J%2===0?!1:(x.negated=!0,x.start++,!0)},ne=J=>{x[J]++,I.push(J)},_e=J=>{x[J]--,I.pop()},ae=J=>{if(C.type==="globstar"){let oe=x.braces>0&&(J.type==="comma"||J.type==="brace"),te=J.extglob===!0||A.length&&(J.type==="pipe"||J.type==="paren");J.type!=="slash"&&J.type!=="paren"&&!oe&&!te&&(x.output=x.output.slice(0,-C.output.length),C.type="star",C.value="*",C.output=D,x.output+=C.output)}if(A.length&&J.type!=="paren"&&(A[A.length-1].inner+=J.value),(J.value||J.output)&&ee(J),C&&C.type==="text"&&J.type==="text"){C.value+=J.value,C.output=(C.output||"")+J.value;return}J.prev=C,o.push(J),C=J},Ue=(J,oe)=>{let te={...u[oe],conditions:1,inner:""};te.prev=C,te.parens=x.parens,te.output=x.output;let he=(n.capture?"(":"")+te.open;ne("parens"),ae({type:J,value:oe,output:x.output?"":p}),ae({type:"paren",extglob:!0,value:j(),output:he}),A.push(te)},K=J=>{let oe=J.close+(n.capture?")":""),te;if(J.type==="negate"){let he=D;if(J.inner&&J.inner.length>1&&J.inner.includes("/")&&(he=w(n)),(he!==D||N()||/^\)+$/.test(q()))&&(oe=J.close=`)$))${he}`),J.inner.includes("*")&&(te=q())&&/^\.[^\\/.]+$/.test(te)){let we=tx(te,{...t,fastpaths:!1}).output;oe=J.close=`)${we})${he})`}J.prev.type==="bos"&&(x.negatedExtglob=!0)}ae({type:"paren",extglob:!0,value:E,output:oe}),_e("parens")};if(n.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let J=!1,oe=e.replace(wte,(te,he,we,ze,nt,ur)=>ze==="\\"?(J=!0,te):ze==="?"?he?he+ze+(nt?v.repeat(nt.length):""):ur===0?S+(nt?v.repeat(nt.length):""):v.repeat(we.length):ze==="."?d.repeat(we.length):ze==="*"?he?he+ze+(nt?D:""):D:he?te:`\\${te}`);return J===!0&&(n.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,te=>te.length%2===0?"\\\\":te?"\\":"")),oe===e&&n.contains===!0?(x.output=e,x):(x.output=ar.wrapOutput(oe,x,t),x)}for(;!N();){if(E=j(),E==="\0")continue;if(E==="\\"){let te=W();if(te==="/"&&n.bash!==!0||te==="."||te===";")continue;if(!te){E+="\\",ae({type:"text",value:E});continue}let he=/^\\+/.exec(q()),we=0;if(he&&he[0].length>2&&(we=he[0].length,x.index+=we,we%2!==0&&(E+="\\")),n.unescape===!0?E=j():E+=j(),x.brackets===0){ae({type:"text",value:E});continue}}if(x.brackets>0&&(E!=="]"||C.value==="["||C.value==="[^")){if(n.posix!==!1&&E===":"){let te=C.value.slice(1);if(te.includes("[")&&(C.posix=!0,te.includes(":"))){let he=C.value.lastIndexOf("["),we=C.value.slice(0,he),ze=C.value.slice(he+2),nt=vte[ze];if(nt){C.value=we+nt,x.backtrack=!0,j(),!s.output&&o.indexOf(C)===1&&(s.output=p);continue}}}(E==="["&&W()!==":"||E==="-"&&W()==="]")&&(E=`\\${E}`),E==="]"&&(C.value==="["||C.value==="[^")&&(E=`\\${E}`),n.posix===!0&&E==="!"&&C.value==="["&&(E="^"),C.value+=E,ee({value:E});continue}if(x.quotes===1&&E!=='"'){E=ar.escapeRegex(E),C.value+=E,ee({value:E});continue}if(E==='"'){x.quotes=x.quotes===1?0:1,n.keepQuotes===!0&&ae({type:"text",value:E});continue}if(E==="("){ne("parens"),ae({type:"paren",value:E});continue}if(E===")"){if(x.parens===0&&n.strictBrackets===!0)throw new SyntaxError(mc("opening","("));let te=A[A.length-1];if(te&&x.parens===te.parens+1){K(A.pop());continue}ae({type:"paren",value:E,output:x.parens?")":"\\)"}),_e("parens");continue}if(E==="["){if(n.nobracket===!0||!q().includes("]")){if(n.nobracket!==!0&&n.strictBrackets===!0)throw new SyntaxError(mc("closing","]"));E=`\\${E}`}else ne("brackets");ae({type:"bracket",value:E});continue}if(E==="]"){if(n.nobracket===!0||C&&C.type==="bracket"&&C.value.length===1){ae({type:"text",value:E,output:`\\${E}`});continue}if(x.brackets===0){if(n.strictBrackets===!0)throw new SyntaxError(mc("opening","["));ae({type:"text",value:E,output:`\\${E}`});continue}_e("brackets");let te=C.value.slice(1);if(C.posix!==!0&&te[0]==="^"&&!te.includes("/")&&(E=`/${E}`),C.value+=E,ee({value:E}),n.literalBrackets===!1||ar.hasRegexChars(te))continue;let he=ar.escapeRegex(C.value);if(x.output=x.output.slice(0,-C.value.length),n.literalBrackets===!0){x.output+=he,C.value=he;continue}C.value=`(${l}${he}|${C.value})`,x.output+=C.value;continue}if(E==="{"&&n.nobrace!==!0){ne("braces");let te={type:"brace",value:E,output:"(",outputIndex:x.output.length,tokensIndex:x.tokens.length};P.push(te),ae(te);continue}if(E==="}"){let te=P[P.length-1];if(n.nobrace===!0||!te){ae({type:"text",value:E,output:E});continue}let he=")";if(te.dots===!0){let we=o.slice(),ze=[];for(let nt=we.length-1;nt>=0&&(o.pop(),we[nt].type!=="brace");nt--)we[nt].type!=="dots"&&ze.unshift(we[nt].value);he=_te(ze,n),x.backtrack=!0}if(te.comma!==!0&&te.dots!==!0){let we=x.output.slice(0,te.outputIndex),ze=x.tokens.slice(te.tokensIndex);te.value=te.output="\\{",E=he="\\}",x.output=we;for(let nt of ze)x.output+=nt.output||nt.value}ae({type:"brace",value:E,output:he}),_e("braces"),P.pop();continue}if(E==="|"){A.length>0&&A[A.length-1].conditions++,ae({type:"text",value:E});continue}if(E===","){let te=E,he=P[P.length-1];he&&I[I.length-1]==="braces"&&(he.comma=!0,te="|"),ae({type:"comma",value:E,output:te});continue}if(E==="/"){if(C.type==="dot"&&x.index===x.start+1){x.start=x.index+1,x.consumed="",x.output="",o.pop(),C=s;continue}ae({type:"slash",value:E,output:f});continue}if(E==="."){if(x.braces>0&&C.type==="dot"){C.value==="."&&(C.output=d);let te=P[P.length-1];C.type="dots",C.output+=E,C.value+=E,te.dots=!0;continue}if(x.braces+x.parens===0&&C.type!=="bos"&&C.type!=="slash"){ae({type:"text",value:E,output:d});continue}ae({type:"dot",value:E,output:d});continue}if(E==="?"){if(!(C&&C.value==="(")&&n.noextglob!==!0&&W()==="("&&W(2)!=="?"){Ue("qmark",E);continue}if(C&&C.type==="paren"){let he=W(),we=E;if(he==="<"&&!ar.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(C.value==="("&&!/[!=<:]/.test(he)||he==="<"&&!/<([!=]|\w+>)/.test(q()))&&(we=`\\${E}`),ae({type:"text",value:E,output:we});continue}if(n.dot!==!0&&(C.type==="slash"||C.type==="bos")){ae({type:"qmark",value:E,output:T});continue}ae({type:"qmark",value:E,output:v});continue}if(E==="!"){if(n.noextglob!==!0&&W()==="("&&(W(2)!=="?"||!/[!=<:]/.test(W(3)))){Ue("negate",E);continue}if(n.nonegate!==!0&&x.index===0){se();continue}}if(E==="+"){if(n.noextglob!==!0&&W()==="("&&W(2)!=="?"){Ue("plus",E);continue}if(C&&C.value==="("||n.regex===!1){ae({type:"plus",value:E,output:h});continue}if(C&&(C.type==="bracket"||C.type==="paren"||C.type==="brace")||x.parens>0){ae({type:"plus",value:E});continue}ae({type:"plus",value:h});continue}if(E==="@"){if(n.noextglob!==!0&&W()==="("&&W(2)!=="?"){ae({type:"at",extglob:!0,value:E,output:""});continue}ae({type:"text",value:E});continue}if(E!=="*"){(E==="$"||E==="^")&&(E=`\\${E}`);let te=yte.exec(q());te&&(E+=te[0],x.index+=te[0].length),ae({type:"text",value:E});continue}if(C&&(C.type==="globstar"||C.star===!0)){C.type="star",C.star=!0,C.value+=E,C.output=D,x.backtrack=!0,x.globstar=!0,H(E);continue}let J=q();if(n.noextglob!==!0&&/^\([^?]/.test(J)){Ue("star",E);continue}if(C.type==="star"){if(n.noglobstar===!0){H(E);continue}let te=C.prev,he=te.prev,we=te.type==="slash"||te.type==="bos",ze=he&&(he.type==="star"||he.type==="globstar");if(n.bash===!0&&(!we||J[0]&&J[0]!=="/")){ae({type:"star",value:E,output:""});continue}let nt=x.braces>0&&(te.type==="comma"||te.type==="brace"),ur=A.length&&(te.type==="pipe"||te.type==="paren");if(!we&&te.type!=="paren"&&!nt&&!ur){ae({type:"star",value:E,output:""});continue}for(;J.slice(0,3)==="/**";){let Ur=e[x.index+4];if(Ur&&Ur!=="/")break;J=J.slice(3),H("/**",3)}if(te.type==="bos"&&N()){C.type="globstar",C.value+=E,C.output=w(n),x.output=C.output,x.globstar=!0,H(E);continue}if(te.type==="slash"&&te.prev.type!=="bos"&&!ze&&N()){x.output=x.output.slice(0,-(te.output+C.output).length),te.output=`(?:${te.output}`,C.type="globstar",C.output=w(n)+(n.strictSlashes?")":"|$)"),C.value+=E,x.globstar=!0,x.output+=te.output+C.output,H(E);continue}if(te.type==="slash"&&te.prev.type!=="bos"&&J[0]==="/"){let Ur=J[1]!==void 0?"|$":"";x.output=x.output.slice(0,-(te.output+C.output).length),te.output=`(?:${te.output}`,C.type="globstar",C.output=`${w(n)}${f}|${f}${Ur})`,C.value+=E,x.output+=te.output+C.output,x.globstar=!0,H(E+j()),ae({type:"slash",value:"/",output:""});continue}if(te.type==="bos"&&J[0]==="/"){C.type="globstar",C.value+=E,C.output=`(?:^|${f}|${w(n)}${f})`,x.output=C.output,x.globstar=!0,H(E+j()),ae({type:"slash",value:"/",output:""});continue}x.output=x.output.slice(0,-C.output.length),C.type="globstar",C.output=w(n),C.value+=E,x.output+=C.output,x.globstar=!0,H(E);continue}let oe={type:"star",value:E,output:D};if(n.bash===!0){oe.output=".*?",(C.type==="bos"||C.type==="slash")&&(oe.output=_+oe.output),ae(oe);continue}if(C&&(C.type==="bracket"||C.type==="paren")&&n.regex===!0){oe.output=E,ae(oe);continue}(x.index===x.start||C.type==="slash"||C.type==="dot")&&(C.type==="dot"?(x.output+=b,C.output+=b):n.dot===!0?(x.output+=y,C.output+=y):(x.output+=_,C.output+=_),W()!=="*"&&(x.output+=p,C.output+=p)),ae(oe)}for(;x.brackets>0;){if(n.strictBrackets===!0)throw new SyntaxError(mc("closing","]"));x.output=ar.escapeLast(x.output,"["),_e("brackets")}for(;x.parens>0;){if(n.strictBrackets===!0)throw new SyntaxError(mc("closing",")"));x.output=ar.escapeLast(x.output,"("),_e("parens")}for(;x.braces>0;){if(n.strictBrackets===!0)throw new SyntaxError(mc("closing","}"));x.output=ar.escapeLast(x.output,"{"),_e("braces")}if(n.strictSlashes!==!0&&(C.type==="star"||C.type==="bracket")&&ae({type:"maybe_slash",value:"",output:`${f}?`}),x.backtrack===!0){x.output="";for(let J of x.tokens)x.output+=J.output!=null?J.output:J.value,J.suffix&&(x.output+=J.suffix)}return x};tx.fastpaths=(e,t)=>{let n={...t},r=typeof n.maxLength=="number"?Math.min(nb,n.maxLength):nb,i=e.length;if(i>r)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${r}`);e=nz[e]||e;let s=ar.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:l,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:d,NO_DOTS_SLASH:h,STAR:f,START_ANCHOR:p}=tb.globChars(s),m=n.dot?d:u,g=n.dot?h:u,b=n.capture?"":"?:",y={negated:!1,prefix:""},v=n.bash===!0?".*?":f;n.capture&&(v=`(${v})`);let T=_=>_.noglobstar===!0?v:`(${b}(?:(?!${p}${_.dot?c:o}).)*?)`,k=_=>{switch(_){case"*":return`${m}${a}${v}`;case".*":return`${o}${a}${v}`;case"*.*":return`${m}${v}${o}${a}${v}`;case"*/*":return`${m}${v}${l}${a}${g}${v}`;case"**":return m+T(n);case"**/*":return`(?:${m}${T(n)}${l})?${g}${a}${v}`;case"**/*.*":return`(?:${m}${T(n)}${l})?${g}${v}${o}${a}${v}`;case"**/.*":return`(?:${m}${T(n)}${l})?${o}${a}${v}`;default:{let S=/^(.*?)\.(\w+)$/.exec(_);if(!S)return;let D=k(S[1]);return D?D+o+S[2]:void 0}}},R=ar.removePrefix(e,y),w=k(R);return w&&n.strictSlashes!==!0&&(w+=`${l}?`),w};rz.exports=tx});var oz=O((kye,sz)=>{"use strict";var Ste=require("path"),xte=tz(),nx=iz(),rx=ud(),Cte=cd(),kte=e=>e&&typeof e=="object"&&!Array.isArray(e),Qt=(e,t,n=!1)=>{if(Array.isArray(e)){let u=e.map(h=>Qt(h,t,n));return h=>{for(let f of u){let p=f(h);if(p)return p}return!1}}let r=kte(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=rx.isWindows(t),o=r?Qt.compileRe(e,t):Qt.makeRe(e,t,!1,!0),l=o.state;delete o.state;let a=()=>!1;if(i.ignore){let u={...t,ignore:null,onMatch:null,onResult:null};a=Qt(i.ignore,u,n)}let c=(u,d=!1)=>{let{isMatch:h,match:f,output:p}=Qt.test(u,o,t,{glob:e,posix:s}),m={glob:e,state:l,regex:o,posix:s,input:u,output:p,match:f,isMatch:h};return typeof i.onResult=="function"&&i.onResult(m),h===!1?(m.isMatch=!1,d?m:!1):a(u)?(typeof i.onIgnore=="function"&&i.onIgnore(m),m.isMatch=!1,d?m:!1):(typeof i.onMatch=="function"&&i.onMatch(m),d?m:!0)};return n&&(c.state=l),c};Qt.test=(e,t,n,{glob:r,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=n||{},o=s.format||(i?rx.toPosixSlashes:null),l=e===r,a=l&&o?o(e):e;return l===!1&&(a=o?o(e):e,l=a===r),(l===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?l=Qt.matchBase(e,t,n,i):l=t.exec(a)),{isMatch:!!l,match:l,output:a}};Qt.matchBase=(e,t,n,r=rx.isWindows(n))=>(t instanceof RegExp?t:Qt.makeRe(t,n)).test(Ste.basename(e));Qt.isMatch=(e,t,n)=>Qt(t,n)(e);Qt.parse=(e,t)=>Array.isArray(e)?e.map(n=>Qt.parse(n,t)):nx(e,{...t,fastpaths:!1});Qt.scan=(e,t)=>xte(e,t);Qt.compileRe=(e,t,n=!1,r=!1)=>{if(n===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",l=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(l=`^(?!${l}).*$`);let a=Qt.toRegex(l,t);return r===!0&&(a.state=e),a};Qt.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=nx.fastpaths(e,t)),i.output||(i=nx(e,t)),Qt.compileRe(i,t,n,r)};Qt.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(n){if(t&&t.debug===!0)throw n;return/$^/}};Qt.constants=Cte;sz.exports=Qt});var lz=O((Tye,az)=>{"use strict";az.exports=oz()});var pz=O((Eye,hz)=>{"use strict";var uz=require("util"),dz=UN(),Pi=lz(),ix=ud(),cz=e=>e===""||e==="./",It=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let r=new Set,i=new Set,s=new Set,o=0,l=u=>{s.add(u.output),n&&n.onResult&&n.onResult(u)};for(let u=0;u<t.length;u++){let d=Pi(String(t[u]),{...n,onResult:l},!0),h=d.state.negated||d.state.negatedExtglob;h&&o++;for(let f of e){let p=d(f,!0);(h?!p.isMatch:p.isMatch)&&(h?r.add(p.output):(r.delete(p.output),i.add(p.output)))}}let c=(o===t.length?[...s]:[...i]).filter(u=>!r.has(u));if(n&&c.length===0){if(n.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(n.nonull===!0||n.nullglob===!0)return n.unescape?t.map(u=>u.replace(/\\/g,"")):t}return c};It.match=It;It.matcher=(e,t)=>Pi(e,t);It.isMatch=(e,t,n)=>Pi(t,n)(e);It.any=It.isMatch;It.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set,i=[],s=l=>{n.onResult&&n.onResult(l),i.push(l.output)},o=new Set(It(e,t,{...n,onResult:s}));for(let l of i)o.has(l)||r.add(l);return[...r]};It.contains=(e,t,n)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${uz.inspect(e)}"`);if(Array.isArray(t))return t.some(r=>It.contains(e,r,n));if(typeof t=="string"){if(cz(e)||cz(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return It.isMatch(e,t,{...n,contains:!0})};It.matchKeys=(e,t,n)=>{if(!ix.isObject(e))throw new TypeError("Expected the first argument to be an object");let r=It(Object.keys(e),t,n),i={};for(let s of r)i[s]=e[s];return i};It.some=(e,t,n)=>{let r=[].concat(e);for(let i of[].concat(t)){let s=Pi(String(i),n);if(r.some(o=>s(o)))return!0}return!1};It.every=(e,t,n)=>{let r=[].concat(e);for(let i of[].concat(t)){let s=Pi(String(i),n);if(!r.every(o=>s(o)))return!1}return!0};It.all=(e,t,n)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${uz.inspect(e)}"`);return[].concat(t).every(r=>Pi(r,n)(e))};It.capture=(e,t,n)=>{let r=ix.isWindows(n),s=Pi.makeRe(String(e),{...n,capture:!0}).exec(r?ix.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};It.makeRe=(...e)=>Pi.makeRe(...e);It.scan=(...e)=>Pi.scan(...e);It.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[]))for(let i of dz(String(r),t))n.push(Pi.parse(i,t));return n};It.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:dz(e,t)};It.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return It.braces(e,{...t,expand:!0})};hz.exports=It});var _z=O(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.matchAny=Ie.convertPatternsToRe=Ie.makeRe=Ie.getPatternParts=Ie.expandBraceExpansion=Ie.expandPatternsWithBraceExpansion=Ie.isAffectDepthOfReadingPattern=Ie.endsWithSlashGlobStar=Ie.hasGlobStar=Ie.getBaseDirectory=Ie.isPatternRelatedToParentDirectory=Ie.getPatternsOutsideCurrentDirectory=Ie.getPatternsInsideCurrentDirectory=Ie.getPositivePatterns=Ie.getNegativePatterns=Ie.isPositivePattern=Ie.isNegativePattern=Ie.convertToNegativePattern=Ie.convertToPositivePattern=Ie.isDynamicPattern=Ie.isStaticPattern=void 0;var Tte=require("path"),Ete=sN(),sx=pz(),fz="**",Dte="\\",Rte=/[*?]|^!/,Ate=/\[[^[]*]/,Fte=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Pte=/[!*+?@]\([^(]*\)/,Ite=/,|\.\./;function mz(e,t={}){return!gz(e,t)}Ie.isStaticPattern=mz;function gz(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Dte)||Rte.test(e)||Ate.test(e)||Fte.test(e)||t.extglob!==!1&&Pte.test(e)||t.braceExpansion!==!1&&Mte(e))}Ie.isDynamicPattern=gz;function Mte(e){let t=e.indexOf("{");if(t===-1)return!1;let n=e.indexOf("}",t+1);if(n===-1)return!1;let r=e.slice(t,n);return Ite.test(r)}function Ote(e){return rb(e)?e.slice(1):e}Ie.convertToPositivePattern=Ote;function Lte(e){return"!"+e}Ie.convertToNegativePattern=Lte;function rb(e){return e.startsWith("!")&&e[1]!=="("}Ie.isNegativePattern=rb;function bz(e){return!rb(e)}Ie.isPositivePattern=bz;function Nte(e){return e.filter(rb)}Ie.getNegativePatterns=Nte;function zte(e){return e.filter(bz)}Ie.getPositivePatterns=zte;function qte(e){return e.filter(t=>!ox(t))}Ie.getPatternsInsideCurrentDirectory=qte;function Wte(e){return e.filter(ox)}Ie.getPatternsOutsideCurrentDirectory=Wte;function ox(e){return e.startsWith("..")||e.startsWith("./..")}Ie.isPatternRelatedToParentDirectory=ox;function jte(e){return Ete(e,{flipBackslashes:!1})}Ie.getBaseDirectory=jte;function Ute(e){return e.includes(fz)}Ie.hasGlobStar=Ute;function vz(e){return e.endsWith("/"+fz)}Ie.endsWithSlashGlobStar=vz;function Hte(e){let t=Tte.basename(e);return vz(e)||mz(t)}Ie.isAffectDepthOfReadingPattern=Hte;function $te(e){return e.reduce((t,n)=>t.concat(yz(n)),[])}Ie.expandPatternsWithBraceExpansion=$te;function yz(e){return sx.braces(e,{expand:!0,nodupes:!0})}Ie.expandBraceExpansion=yz;function Bte(e,t){let{parts:n}=sx.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return n.length===0&&(n=[e]),n[0].startsWith("/")&&(n[0]=n[0].slice(1),n.unshift("")),n}Ie.getPatternParts=Bte;function wz(e,t){return sx.makeRe(e,t)}Ie.makeRe=wz;function Vte(e,t){return e.map(n=>wz(n,t))}Ie.convertPatternsToRe=Vte;function Gte(e,t){return t.some(n=>n.test(e))}Ie.matchAny=Gte});var kz=O((Rye,Cz)=>{"use strict";var Kte=require("stream"),Sz=Kte.PassThrough,Jte=Array.prototype.slice;Cz.exports=Xte;function Xte(){let e=[],t=Jte.call(arguments),n=!1,r=t[t.length-1];r&&!Array.isArray(r)&&r.pipe==null?t.pop():r={};let i=r.end!==!1,s=r.pipeError===!0;r.objectMode==null&&(r.objectMode=!0),r.highWaterMark==null&&(r.highWaterMark=64*1024);let o=Sz(r);function l(){for(let u=0,d=arguments.length;u<d;u++)e.push(xz(arguments[u],r));return a(),this}function a(){if(n)return;n=!0;let u=e.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let d=u.length+1;function h(){--d>0||(n=!1,a())}function f(p){function m(){p.removeListener("merge2UnpipeEnd",m),p.removeListener("end",m),s&&p.removeListener("error",g),h()}function g(b){o.emit("error",b)}if(p._readableState.endEmitted)return h();p.on("merge2UnpipeEnd",m),p.on("end",m),s&&p.on("error",g),p.pipe(o,{end:!1}),p.resume()}for(let p=0;p<u.length;p++)f(u[p]);h()}function c(){n=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=l,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),t.length&&l.apply(null,t),o}function xz(e,t){if(Array.isArray(e))for(let n=0,r=e.length;n<r;n++)e[n]=xz(e[n],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Sz(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Ez=O(ib=>{"use strict";Object.defineProperty(ib,"__esModule",{value:!0});ib.merge=void 0;var Qte=kz();function Yte(e){let t=Qte(e);return e.forEach(n=>{n.once("error",r=>t.emit("error",r))}),t.once("close",()=>Tz(e)),t.once("end",()=>Tz(e)),t}ib.merge=Yte;function Tz(e){e.forEach(t=>t.emit("close"))}});var Dz=O(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.isEmpty=gc.isString=void 0;function Zte(e){return typeof e=="string"}gc.isString=Zte;function ene(e){return e===""}gc.isEmpty=ene});var ws=O(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.string=Tn.stream=Tn.pattern=Tn.path=Tn.fs=Tn.errno=Tn.array=void 0;var tne=JL();Tn.array=tne;var nne=XL();Tn.errno=nne;var rne=QL();Tn.fs=rne;var ine=YL();Tn.path=ine;var sne=_z();Tn.pattern=sne;var one=Ez();Tn.stream=one;var ane=Dz();Tn.string=ane});var Fz=O(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.convertPatternGroupToTask=En.convertPatternGroupsToTasks=En.groupPatternsByBaseDirectory=En.getNegativePatternsAsPositive=En.getPositivePatterns=En.convertPatternsToTasks=En.generate=void 0;var _s=ws();function lne(e,t){let n=Rz(e),r=Az(e,t.ignore),i=n.filter(a=>_s.pattern.isStaticPattern(a,t)),s=n.filter(a=>_s.pattern.isDynamicPattern(a,t)),o=ax(i,r,!1),l=ax(s,r,!0);return o.concat(l)}En.generate=lne;function ax(e,t,n){let r=[],i=_s.pattern.getPatternsOutsideCurrentDirectory(e),s=_s.pattern.getPatternsInsideCurrentDirectory(e),o=lx(i),l=lx(s);return r.push(...cx(o,t,n)),"."in l?r.push(ux(".",s,t,n)):r.push(...cx(l,t,n)),r}En.convertPatternsToTasks=ax;function Rz(e){return _s.pattern.getPositivePatterns(e)}En.getPositivePatterns=Rz;function Az(e,t){return _s.pattern.getNegativePatterns(e).concat(t).map(_s.pattern.convertToPositivePattern)}En.getNegativePatternsAsPositive=Az;function lx(e){let t={};return e.reduce((n,r)=>{let i=_s.pattern.getBaseDirectory(r);return i in n?n[i].push(r):n[i]=[r],n},t)}En.groupPatternsByBaseDirectory=lx;function cx(e,t,n){return Object.keys(e).map(r=>ux(r,e[r],t,n))}En.convertPatternGroupsToTasks=cx;function ux(e,t,n,r){return{dynamic:r,positive:t,negative:n,base:e,patterns:[].concat(t,n.map(_s.pattern.convertToNegativePattern))}}En.convertPatternGroupToTask=ux});var Iz=O(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.removeDuplicateSlashes=bc.transform=void 0;var cne=/(?!^)\/{2,}/g;function une(e){return e.map(t=>Pz(t))}bc.transform=une;function Pz(e){return e.replace(cne,"/")}bc.removeDuplicateSlashes=Pz});var Oz=O(sb=>{"use strict";Object.defineProperty(sb,"__esModule",{value:!0});sb.read=void 0;function dne(e,t,n){t.fs.lstat(e,(r,i)=>{if(r!==null){Mz(n,r);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){dx(n,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){Mz(n,s);return}dx(n,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),dx(n,o)})})}sb.read=dne;function Mz(e,t){e(t)}function dx(e,t){e(null,t)}});var Lz=O(ob=>{"use strict";Object.defineProperty(ob,"__esModule",{value:!0});ob.read=void 0;function hne(e,t){let n=t.fs.lstatSync(e);if(!n.isSymbolicLink()||!t.followSymbolicLink)return n;try{let r=t.fs.statSync(e);return t.markSymbolicLink&&(r.isSymbolicLink=()=>!0),r}catch(r){if(!t.throwErrorOnBrokenSymbolicLink)return n;throw r}}ob.read=hne});var Nz=O(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.createFileSystemAdapter=yo.FILE_SYSTEM_ADAPTER=void 0;var ab=require("fs");yo.FILE_SYSTEM_ADAPTER={lstat:ab.lstat,stat:ab.stat,lstatSync:ab.lstatSync,statSync:ab.statSync};function pne(e){return e===void 0?yo.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},yo.FILE_SYSTEM_ADAPTER),e)}yo.createFileSystemAdapter=pne});var zz=O(px=>{"use strict";Object.defineProperty(px,"__esModule",{value:!0});var fne=Nz(),hx=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=fne.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,n){return t??n}};px.default=hx});var pa=O(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.statSync=wo.stat=wo.Settings=void 0;var qz=Oz(),mne=Lz(),fx=zz();wo.Settings=fx.default;function gne(e,t,n){if(typeof t=="function"){qz.read(e,mx(),t);return}qz.read(e,mx(t),n)}wo.stat=gne;function bne(e,t){let n=mx(t);return mne.read(e,n)}wo.statSync=bne;function mx(e={}){return e instanceof fx.default?e:new fx.default(e)}});var Uz=O((Wye,jz)=>{var Wz;jz.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Wz||(Wz=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var $z=O((jye,Hz)=>{Hz.exports=yne;var vne=Uz();function yne(e,t){let n,r,i,s=!0;Array.isArray(e)?(n=[],r=e.length):(i=Object.keys(e),n={},r=i.length);function o(a){function c(){t&&t(a,n),t=null}s?vne(c):c()}function l(a,c,u){n[a]=u,(--r===0||c)&&o(c)}r?i?i.forEach(function(a){e[a](function(c,u){l(a,c,u)})}):e.forEach(function(a,c){a(function(u,d){l(c,u,d)})}):o(null),s=!1}});var gx=O(cb=>{"use strict";Object.defineProperty(cb,"__esModule",{value:!0});cb.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var lb=process.versions.node.split(".");if(lb[0]===void 0||lb[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Bz=Number.parseInt(lb[0],10),wne=Number.parseInt(lb[1],10),Vz=10,_ne=10,Sne=Bz>Vz,xne=Bz===Vz&&wne>=_ne;cb.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Sne||xne});var Gz=O(ub=>{"use strict";Object.defineProperty(ub,"__esModule",{value:!0});ub.createDirentFromStats=void 0;var bx=class{constructor(t,n){this.name=t,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function Cne(e,t){return new bx(e,t)}ub.createDirentFromStats=Cne});var vx=O(db=>{"use strict";Object.defineProperty(db,"__esModule",{value:!0});db.fs=void 0;var kne=Gz();db.fs=kne});var yx=O(hb=>{"use strict";Object.defineProperty(hb,"__esModule",{value:!0});hb.joinPathSegments=void 0;function Tne(e,t,n){return e.endsWith(n)?e+t:e+n+t}hb.joinPathSegments=Tne});var Zz=O(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.readdir=_o.readdirWithFileTypes=_o.read=void 0;var Ene=pa(),Kz=$z(),Dne=gx(),Jz=vx(),Xz=yx();function Rne(e,t,n){if(!t.stats&&Dne.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Qz(e,t,n);return}Yz(e,t,n)}_o.read=Rne;function Qz(e,t,n){t.fs.readdir(e,{withFileTypes:!0},(r,i)=>{if(r!==null){pb(n,r);return}let s=i.map(l=>({dirent:l,name:l.name,path:Xz.joinPathSegments(e,l.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){wx(n,s);return}let o=s.map(l=>Ane(l,t));Kz(o,(l,a)=>{if(l!==null){pb(n,l);return}wx(n,a)})})}_o.readdirWithFileTypes=Qz;function Ane(e,t){return n=>{if(!e.dirent.isSymbolicLink()){n(null,e);return}t.fs.stat(e.path,(r,i)=>{if(r!==null){if(t.throwErrorOnBrokenSymbolicLink){n(r);return}n(null,e);return}e.dirent=Jz.fs.createDirentFromStats(e.name,i),n(null,e)})}}function Yz(e,t,n){t.fs.readdir(e,(r,i)=>{if(r!==null){pb(n,r);return}let s=i.map(o=>{let l=Xz.joinPathSegments(e,o,t.pathSegmentSeparator);return a=>{Ene.stat(l,t.fsStatSettings,(c,u)=>{if(c!==null){a(c);return}let d={name:o,path:l,dirent:Jz.fs.createDirentFromStats(o,u)};t.stats&&(d.stats=u),a(null,d)})}});Kz(s,(o,l)=>{if(o!==null){pb(n,o);return}wx(n,l)})})}_o.readdir=Yz;function pb(e,t){e(t)}function wx(e,t){e(null,t)}});var iq=O(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.readdir=So.readdirWithFileTypes=So.read=void 0;var Fne=pa(),Pne=gx(),eq=vx(),tq=yx();function Ine(e,t){return!t.stats&&Pne.IS_SUPPORT_READDIR_WITH_FILE_TYPES?nq(e,t):rq(e,t)}So.read=Ine;function nq(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(r=>{let i={dirent:r,name:r.name,path:tq.joinPathSegments(e,r.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=eq.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}So.readdirWithFileTypes=nq;function rq(e,t){return t.fs.readdirSync(e).map(r=>{let i=tq.joinPathSegments(e,r,t.pathSegmentSeparator),s=Fne.statSync(i,t.fsStatSettings),o={name:r,path:i,dirent:eq.fs.createDirentFromStats(r,s)};return t.stats&&(o.stats=s),o})}So.readdir=rq});var sq=O(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.createFileSystemAdapter=xo.FILE_SYSTEM_ADAPTER=void 0;var vc=require("fs");xo.FILE_SYSTEM_ADAPTER={lstat:vc.lstat,stat:vc.stat,lstatSync:vc.lstatSync,statSync:vc.statSync,readdir:vc.readdir,readdirSync:vc.readdirSync};function Mne(e){return e===void 0?xo.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},xo.FILE_SYSTEM_ADAPTER),e)}xo.createFileSystemAdapter=Mne});var oq=O(Sx=>{"use strict";Object.defineProperty(Sx,"__esModule",{value:!0});var One=require("path"),Lne=pa(),Nne=sq(),_x=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Nne.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,One.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Lne.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,n){return t??n}};Sx.default=_x});var fb=O(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.Settings=Co.scandirSync=Co.scandir=void 0;var aq=Zz(),zne=iq(),xx=oq();Co.Settings=xx.default;function qne(e,t,n){if(typeof t=="function"){aq.read(e,Cx(),t);return}aq.read(e,Cx(t),n)}Co.scandir=qne;function Wne(e,t){let n=Cx(t);return zne.read(e,n)}Co.scandirSync=Wne;function Cx(e={}){return e instanceof xx.default?e:new xx.default(e)}});var cq=O((Qye,lq)=>{"use strict";function jne(e){var t=new e,n=t;function r(){var s=t;return s.next?t=s.next:(t=new e,n=t),s.next=null,s}function i(s){n.next=s,n=s}return{get:r,release:i}}lq.exports=jne});var dq=O((Yye,kx)=>{"use strict";var Une=cq();function uq(e,t,n){if(typeof e=="function"&&(n=t,t=e,e=null),n<1)throw new Error("fastqueue concurrency must be greater than 1");var r=Une(Hne),i=null,s=null,o=0,l=null,a={push:m,drain:Or,saturated:Or,pause:u,paused:!1,concurrency:n,running:c,resume:f,idle:p,length:d,getQueue:h,unshift:g,empty:Or,kill:y,killAndDrain:v,error:T};return a;function c(){return o}function u(){a.paused=!0}function d(){for(var k=i,R=0;k;)k=k.next,R++;return R}function h(){for(var k=i,R=[];k;)R.push(k.value),k=k.next;return R}function f(){if(a.paused){a.paused=!1;for(var k=0;k<a.concurrency;k++)o++,b()}}function p(){return o===0&&a.length()===0}function m(k,R){var w=r.get();w.context=e,w.release=b,w.value=k,w.callback=R||Or,w.errorHandler=l,o===a.concurrency||a.paused?s?(s.next=w,s=w):(i=w,s=w,a.saturated()):(o++,t.call(e,w.value,w.worked))}function g(k,R){var w=r.get();w.context=e,w.release=b,w.value=k,w.callback=R||Or,o===a.concurrency||a.paused?i?(w.next=i,i=w):(i=w,s=w,a.saturated()):(o++,t.call(e,w.value,w.worked))}function b(k){k&&r.release(k);var R=i;R?a.paused?o--:(s===i&&(s=null),i=R.next,R.next=null,t.call(e,R.value,R.worked),s===null&&a.empty()):--o===0&&a.drain()}function y(){i=null,s=null,a.drain=Or}function v(){i=null,s=null,a.drain(),a.drain=Or}function T(k){l=k}}function Or(){}function Hne(){this.value=null,this.callback=Or,this.next=null,this.release=Or,this.context=null,this.errorHandler=null;var e=this;this.worked=function(n,r){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=Or,e.errorHandler&&s(n,o),i.call(e.context,n,r),e.release(e)}}function $ne(e,t,n){typeof e=="function"&&(n=t,t=e,e=null);function r(u,d){t.call(this,u).then(function(h){d(null,h)},d)}var i=uq(e,r,n),s=i.push,o=i.unshift;return i.push=l,i.unshift=a,i.drained=c,i;function l(u){var d=new Promise(function(h,f){s(u,function(p,m){if(p){f(p);return}h(m)})});return d.catch(Or),d}function a(u){var d=new Promise(function(h,f){o(u,function(p,m){if(p){f(p);return}h(m)})});return d.catch(Or),d}function c(){var u=i.drain,d=new Promise(function(h){i.drain=function(){u(),h()}});return d}}kx.exports=uq;kx.exports.promise=$ne});var mb=O(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});Ii.joinPathSegments=Ii.replacePathSegmentSeparator=Ii.isAppliedFilter=Ii.isFatalError=void 0;function Bne(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Ii.isFatalError=Bne;function Vne(e,t){return e===null||e(t)}Ii.isAppliedFilter=Vne;function Gne(e,t){return e.split(/[/\\]/).join(t)}Ii.replacePathSegmentSeparator=Gne;function Kne(e,t,n){return e===""?t:e.endsWith(n)?e+t:e+n+t}Ii.joinPathSegments=Kne});var Dx=O(Ex=>{"use strict";Object.defineProperty(Ex,"__esModule",{value:!0});var Jne=mb(),Tx=class{constructor(t,n){this._root=t,this._settings=n,this._root=Jne.replacePathSegmentSeparator(t,n.pathSegmentSeparator)}};Ex.default=Tx});var Fx=O(Ax=>{"use strict";Object.defineProperty(Ax,"__esModule",{value:!0});var Xne=require("events"),Qne=fb(),Yne=dq(),gb=mb(),Zne=Dx(),Rx=class extends Zne.default{constructor(t,n){super(t,n),this._settings=n,this._scandir=Qne.scandir,this._emitter=new Xne.EventEmitter,this._queue=Yne(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,n){let r={directory:t,base:n};this._queue.push(r,i=>{i!==null&&this._handleError(i)})}_worker(t,n){this._scandir(t.directory,this._settings.fsScandirSettings,(r,i)=>{if(r!==null){n(r,void 0);return}for(let s of i)this._handleEntry(s,t.base);n(null,void 0)})}_handleError(t){this._isDestroyed||!gb.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,n){if(this._isDestroyed||this._isFatalError)return;let r=t.path;n!==void 0&&(t.path=gb.joinPathSegments(n,t.name,this._settings.pathSegmentSeparator)),gb.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&gb.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(r,n===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Ax.default=Rx});var hq=O(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});var ere=Fx(),Px=class{constructor(t,n){this._root=t,this._settings=n,this._reader=new ere.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(n=>{tre(t,n)}),this._reader.onEntry(n=>{this._storage.push(n)}),this._reader.onEnd(()=>{nre(t,this._storage)}),this._reader.read()}};Ix.default=Px;function tre(e,t){e(t)}function nre(e,t){e(null,t)}});var pq=O(Ox=>{"use strict";Object.defineProperty(Ox,"__esModule",{value:!0});var rre=require("stream"),ire=Fx(),Mx=class{constructor(t,n){this._root=t,this._settings=n,this._reader=new ire.default(this._root,this._settings),this._stream=new rre.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Ox.default=Mx});var fq=O(Nx=>{"use strict";Object.defineProperty(Nx,"__esModule",{value:!0});var sre=fb(),bb=mb(),ore=Dx(),Lx=class extends ore.default{constructor(){super(...arguments),this._scandir=sre.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,n){this._queue.add({directory:t,base:n})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,n){try{let r=this._scandir(t,this._settings.fsScandirSettings);for(let i of r)this._handleEntry(i,n)}catch(r){this._handleError(r)}}_handleError(t){if(bb.isFatalError(this._settings,t))throw t}_handleEntry(t,n){let r=t.path;n!==void 0&&(t.path=bb.joinPathSegments(n,t.name,this._settings.pathSegmentSeparator)),bb.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&bb.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(r,n===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Nx.default=Lx});var mq=O(qx=>{"use strict";Object.defineProperty(qx,"__esModule",{value:!0});var are=fq(),zx=class{constructor(t,n){this._root=t,this._settings=n,this._reader=new are.default(this._root,this._settings)}read(){return this._reader.read()}};qx.default=zx});var gq=O(jx=>{"use strict";Object.defineProperty(jx,"__esModule",{value:!0});var lre=require("path"),cre=fb(),Wx=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,lre.sep),this.fsScandirSettings=new cre.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,n){return t??n}};jx.default=Wx});var yb=O(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.Settings=Mi.walkStream=Mi.walkSync=Mi.walk=void 0;var bq=hq(),ure=pq(),dre=mq(),Ux=gq();Mi.Settings=Ux.default;function hre(e,t,n){if(typeof t=="function"){new bq.default(e,vb()).read(t);return}new bq.default(e,vb(t)).read(n)}Mi.walk=hre;function pre(e,t){let n=vb(t);return new dre.default(e,n).read()}Mi.walkSync=pre;function fre(e,t){let n=vb(t);return new ure.default(e,n).read()}Mi.walkStream=fre;function vb(e={}){return e instanceof Ux.default?e:new Ux.default(e)}});var wb=O($x=>{"use strict";Object.defineProperty($x,"__esModule",{value:!0});var mre=require("path"),gre=pa(),vq=ws(),Hx=class{constructor(t){this._settings=t,this._fsStatSettings=new gre.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return mre.resolve(this._settings.cwd,t)}_makeEntry(t,n){let r={name:n,path:n,dirent:vq.fs.createDirentFromStats(n,t)};return this._settings.stats&&(r.stats=t),r}_isFatalError(t){return!vq.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};$x.default=Hx});var Gx=O(Vx=>{"use strict";Object.defineProperty(Vx,"__esModule",{value:!0});var bre=require("stream"),vre=pa(),yre=yb(),wre=wb(),Bx=class extends wre.default{constructor(){super(...arguments),this._walkStream=yre.walkStream,this._stat=vre.stat}dynamic(t,n){return this._walkStream(t,n)}static(t,n){let r=t.map(this._getFullEntryPath,this),i=new bre.PassThrough({objectMode:!0});i._write=(s,o,l)=>this._getEntry(r[s],t[s],n).then(a=>{a!==null&&n.entryFilter(a)&&i.push(a),s===r.length-1&&i.end(),l()}).catch(l);for(let s=0;s<r.length;s++)i.write(s);return i}_getEntry(t,n,r){return this._getStat(t).then(i=>this._makeEntry(i,n)).catch(i=>{if(r.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((n,r)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?n(s):r(i))})}};Vx.default=Bx});var yq=O(Jx=>{"use strict";Object.defineProperty(Jx,"__esModule",{value:!0});var _re=yb(),Sre=wb(),xre=Gx(),Kx=class extends Sre.default{constructor(){super(...arguments),this._walkAsync=_re.walk,this._readerStream=new xre.default(this._settings)}dynamic(t,n){return new Promise((r,i)=>{this._walkAsync(t,n,(s,o)=>{s===null?r(o):i(s)})})}async static(t,n){let r=[],i=this._readerStream.static(t,n);return new Promise((s,o)=>{i.once("error",o),i.on("data",l=>r.push(l)),i.once("end",()=>s(r))})}};Jx.default=Kx});var wq=O(Qx=>{"use strict";Object.defineProperty(Qx,"__esModule",{value:!0});var yc=ws(),Xx=class{constructor(t,n,r){this._patterns=t,this._settings=n,this._micromatchOptions=r,this._storage=[],this._fillStorage()}_fillStorage(){let t=yc.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let n of t){let r=this._getPatternSegments(n),i=this._splitSegmentsIntoSections(r);this._storage.push({complete:i.length<=1,pattern:n,segments:r,sections:i})}}_getPatternSegments(t){return yc.pattern.getPatternParts(t,this._micromatchOptions).map(r=>yc.pattern.isDynamicPattern(r,this._settings)?{dynamic:!0,pattern:r,patternRe:yc.pattern.makeRe(r,this._micromatchOptions)}:{dynamic:!1,pattern:r})}_splitSegmentsIntoSections(t){return yc.array.splitWhen(t,n=>n.dynamic&&yc.pattern.hasGlobStar(n.pattern))}};Qx.default=Xx});var _q=O(Zx=>{"use strict";Object.defineProperty(Zx,"__esModule",{value:!0});var Cre=wq(),Yx=class extends Cre.default{match(t){let n=t.split("/"),r=n.length,i=this._storage.filter(s=>!s.complete||s.segments.length>r);for(let s of i){let o=s.sections[0];if(!s.complete&&r>o.length||n.every((a,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(a)||!u.dynamic&&u.pattern===a)}))return!0}return!1}};Zx.default=Yx});var Sq=O(tC=>{"use strict";Object.defineProperty(tC,"__esModule",{value:!0});var _b=ws(),kre=_q(),eC=class{constructor(t,n){this._settings=t,this._micromatchOptions=n}getFilter(t,n,r){let i=this._getMatcher(n),s=this._getNegativePatternsRe(r);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new kre.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let n=t.filter(_b.pattern.isAffectDepthOfReadingPattern);return _b.pattern.convertPatternsToRe(n,this._micromatchOptions)}_filter(t,n,r,i){if(this._isSkippedByDeep(t,n.path)||this._isSkippedSymbolicLink(n))return!1;let s=_b.path.removeLeadingDotSegment(n.path);return this._isSkippedByPositivePatterns(s,r)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,n){return this._settings.deep===1/0?!1:this._getEntryLevel(t,n)>=this._settings.deep}_getEntryLevel(t,n){let r=n.split("/").length;if(t==="")return r;let i=t.split("/").length;return r-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,n){return!this._settings.baseNameMatch&&!n.match(t)}_isSkippedByNegativePatterns(t,n){return!_b.pattern.matchAny(t,n)}};tC.default=eC});var xq=O(rC=>{"use strict";Object.defineProperty(rC,"__esModule",{value:!0});var fa=ws(),nC=class{constructor(t,n){this._settings=t,this._micromatchOptions=n,this.index=new Map}getFilter(t,n){let r=fa.pattern.convertPatternsToRe(t,this._micromatchOptions),i=fa.pattern.convertPatternsToRe(n,this._micromatchOptions);return s=>this._filter(s,r,i)}_filter(t,n,r){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,r))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,n,s)&&!this._isMatchToPatterns(t.path,r,s);return this._settings.unique&&o&&this._createIndexRecord(t),o}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,n){if(!this._settings.absolute)return!1;let r=fa.path.makeAbsolute(this._settings.cwd,t);return fa.pattern.matchAny(r,n)}_isMatchToPatterns(t,n,r){let i=fa.path.removeLeadingDotSegment(t),s=fa.pattern.matchAny(i,n);return!s&&r?fa.pattern.matchAny(i+"/",n):s}};rC.default=nC});var Cq=O(sC=>{"use strict";Object.defineProperty(sC,"__esModule",{value:!0});var Tre=ws(),iC=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return Tre.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};sC.default=iC});var Tq=O(aC=>{"use strict";Object.defineProperty(aC,"__esModule",{value:!0});var kq=ws(),oC=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let n=t.path;return this._settings.absolute&&(n=kq.path.makeAbsolute(this._settings.cwd,n),n=kq.path.unixify(n)),this._settings.markDirectories&&t.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:n}):n}};aC.default=oC});var Sb=O(cC=>{"use strict";Object.defineProperty(cC,"__esModule",{value:!0});var Ere=require("path"),Dre=Sq(),Rre=xq(),Are=Cq(),Fre=Tq(),lC=class{constructor(t){this._settings=t,this.errorFilter=new Are.default(this._settings),this.entryFilter=new Rre.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Dre.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Fre.default(this._settings)}_getRootDirectory(t){return Ere.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let n=t.base==="."?"":t.base;return{basePath:n,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(n,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};cC.default=lC});var Eq=O(dC=>{"use strict";Object.defineProperty(dC,"__esModule",{value:!0});var Pre=yq(),Ire=Sb(),uC=class extends Ire.default{constructor(){super(...arguments),this._reader=new Pre.default(this._settings)}async read(t){let n=this._getRootDirectory(t),r=this._getReaderOptions(t);return(await this.api(n,t,r)).map(s=>r.transform(s))}api(t,n,r){return n.dynamic?this._reader.dynamic(t,r):this._reader.static(n.patterns,r)}};dC.default=uC});var Dq=O(pC=>{"use strict";Object.defineProperty(pC,"__esModule",{value:!0});var Mre=require("stream"),Ore=Gx(),Lre=Sb(),hC=class extends Lre.default{constructor(){super(...arguments),this._reader=new Ore.default(this._settings)}read(t){let n=this._getRootDirectory(t),r=this._getReaderOptions(t),i=this.api(n,t,r),s=new Mre.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",r.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,n,r){return n.dynamic?this._reader.dynamic(t,r):this._reader.static(n.patterns,r)}};pC.default=hC});var Rq=O(mC=>{"use strict";Object.defineProperty(mC,"__esModule",{value:!0});var Nre=pa(),zre=yb(),qre=wb(),fC=class extends qre.default{constructor(){super(...arguments),this._walkSync=zre.walkSync,this._statSync=Nre.statSync}dynamic(t,n){return this._walkSync(t,n)}static(t,n){let r=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,n);o===null||!n.entryFilter(o)||r.push(o)}return r}_getEntry(t,n,r){try{let i=this._getStat(t);return this._makeEntry(i,n)}catch(i){if(r.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};mC.default=fC});var Aq=O(bC=>{"use strict";Object.defineProperty(bC,"__esModule",{value:!0});var Wre=Rq(),jre=Sb(),gC=class extends jre.default{constructor(){super(...arguments),this._reader=new Wre.default(this._settings)}read(t){let n=this._getRootDirectory(t),r=this._getReaderOptions(t);return this.api(n,t,r).map(r.transform)}api(t,n,r){return n.dynamic?this._reader.dynamic(t,r):this._reader.static(n.patterns,r)}};bC.default=gC});var Fq=O(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var wc=require("fs"),Ure=require("os"),Hre=Math.max(Ure.cpus().length,1);_c.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:wc.lstat,lstatSync:wc.lstatSync,stat:wc.stat,statSync:wc.statSync,readdir:wc.readdir,readdirSync:wc.readdirSync};var vC=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,Hre),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(t,n){return t===void 0?n:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},_c.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};_c.default=vC});var Oq=O((xwe,Mq)=>{"use strict";var Pq=Fz(),Iq=Iz(),$re=Eq(),Bre=Dq(),Vre=Aq(),yC=Fq(),ma=ws();async function wC(e,t){Sc(e);let n=_C(e,$re.default,t),r=await Promise.all(n);return ma.array.flatten(r)}(function(e){function t(o,l){Sc(o);let a=_C(o,Vre.default,l);return ma.array.flatten(a)}e.sync=t;function n(o,l){Sc(o);let a=_C(o,Bre.default,l);return ma.stream.merge(a)}e.stream=n;function r(o,l){Sc(o);let a=Iq.transform([].concat(o)),c=new yC.default(l);return Pq.generate(a,c)}e.generateTasks=r;function i(o,l){Sc(o);let a=new yC.default(l);return ma.pattern.isDynamicPattern(o,a)}e.isDynamicPattern=i;function s(o){return Sc(o),ma.path.escape(o)}e.escapePath=s})(wC||(wC={}));function _C(e,t,n){let r=Iq.transform([].concat(e)),i=new yC.default(n),s=Pq.generate(r,i),o=new t(i);return s.map(o.read,o)}function Sc(e){if(![].concat(e).every(r=>ma.string.isString(r)&&!ma.string.isEmpty(r)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Mq.exports=wC});var Nq=O(Cc=>{"use strict";var Gre=Cc&&Cc.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Cc,"__esModule",{value:!0});Cc.create=void 0;var Kre=require("node:path"),xc=Bs(),Jre=Gre(Oq()),Lq=ro(),Xre=Ko(),Qre=e=>({triggerCharacters:["-"],create(t){return{provideCompletionItems(n,r,i,s){if(s.isCancellationRequested)return null;let o=[],[l]=t.documents.getVirtualCodeByUri(n.uri);if(l instanceof Lq.AstroVirtualCode){if(i.triggerCharacter==="-"){let a=Zre(l,n,r);a&&o.push(a)}return{isIncomplete:!1,items:o}}},provideSemanticDiagnostics(n,r){if(r.isCancellationRequested)return[];let[i]=t.documents.getVirtualCodeByUri(n.uri);if(!(i instanceof Lq.AstroVirtualCode))return;return i.compilerDiagnostics.map(s);function s(o){return{message:o.text+(o.hint?`
|
|
631
631
|
|
|
632
|
-
`+o.hint:""),range:xc.Range.create(o.location.line-1,o.location.column-1,o.location.line,o.location.length),code:o.code,severity:o.severity,source:"astro"}}},provideCodeLenses(n,r){if(r.isCancellationRequested||!(0,Xre.isJSDocument)(n.languageId))return;let i=t.inject("typescript/languageService");if(!i)return;let s=i.getProgram();if(!s)return;let o=[],l=s.getSourceFile(n.uri);function a(){return e.forEachChild(l,function c(u){if(e.isCallExpression(u)&&u.expression.getText()==="Astro.glob"){let d=u.arguments.at(0);d&&o.push(Yre(d.getText().slice(1,-1),(0,
|
|
632
|
+
`+o.hint:""),range:xc.Range.create(o.location.line-1,o.location.column-1,o.location.line,o.location.length),code:o.code,severity:o.severity,source:"astro"}}},provideCodeLenses(n,r){if(r.isCancellationRequested||!(0,Xre.isJSDocument)(n.languageId))return;let i=t.inject("typescript/languageService");if(!i)return;let s=i.getProgram();if(!s)return;let o=[],l=s.getSourceFile(n.uri);function a(){return e.forEachChild(l,function c(u){if(e.isCallExpression(u)&&u.expression.getText()==="Astro.glob"){let d=u.arguments.at(0);d&&o.push(Yre(d.getText().slice(1,-1),(0,Kre.dirname)(t.env.typescript.uriToFileName(n.uri)),n.positionAt(u.arguments.pos)))}return e.forEachChild(u,c)})}return a(),o}}}});Cc.create=Qre;function Yre(e,t,n){let r=Jre.default.sync(e,{cwd:t,onlyFiles:!0});return{range:xc.Range.create(n,n),command:{title:`Matches ${r.length} files`,command:""}}}function Zre(e,t,n){let r={kind:xc.CompletionItemKind.Snippet,label:"---",sortText:"\0",preselect:!0,detail:"Create component script block",insertTextFormat:xc.InsertTextFormat.Snippet,commitCharacters:[]},i=t.getText().split(/\r?\n/),{line:s,character:o}=t.positionAt(t.offsetAt(n)),l=i[s].slice(0,o);if(e.astroMeta.frontmatter.status==="doesnt-exist")return{...r,insertText:`---
|
|
633
633
|
$0
|
|
634
634
|
---`,textEdit:l.match(/^\s*\-+/)?xc.TextEdit.replace({start:{...n,character:0},end:n},`---
|
|
635
635
|
$0
|