@shopify/create-hydrogen 5.0.24 → 5.0.26
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/assets/hydrogen/bundle/analyzer.html +155 -148
- package/dist/assets/hydrogen/starter/CHANGELOG.md +131 -49
- package/dist/assets/hydrogen/starter/app/components/AddToCartButton.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/CartLineItem.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/CartMain.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/CartSummary.tsx +62 -29
- package/dist/assets/hydrogen/starter/app/components/Header.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/PageLayout.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/components/SearchForm.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/SearchFormPredictive.tsx +8 -3
- package/dist/assets/hydrogen/starter/app/components/SearchResults.tsx +3 -11
- package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +2 -6
- package/dist/assets/hydrogen/starter/app/entry.client.tsx +10 -2
- package/dist/assets/hydrogen/starter/app/entry.server.tsx +5 -3
- package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerAddressMutations.ts +7 -4
- package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerDetailsQuery.ts +1 -1
- package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerOrderQuery.ts +4 -1
- package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerOrdersQuery.ts +10 -5
- package/dist/assets/hydrogen/starter/app/graphql/customer-account/CustomerUpdateMutation.ts +3 -2
- package/dist/assets/hydrogen/starter/app/lib/context.ts +34 -17
- package/dist/assets/hydrogen/starter/app/lib/fragments.ts +1 -0
- package/dist/assets/hydrogen/starter/app/lib/orderFilters.ts +90 -0
- package/dist/assets/hydrogen/starter/app/lib/redirect.ts +1 -1
- package/dist/assets/hydrogen/starter/app/lib/session.ts +1 -1
- package/dist/assets/hydrogen/starter/app/lib/variants.ts +1 -1
- package/dist/assets/hydrogen/starter/app/root.tsx +23 -18
- package/dist/assets/hydrogen/starter/app/routes/$.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/routes/[robots.txt].tsx +2 -2
- package/dist/assets/hydrogen/starter/app/routes/[sitemap.xml].tsx +2 -3
- package/dist/assets/hydrogen/starter/app/routes/_index.tsx +12 -8
- package/dist/assets/hydrogen/starter/app/routes/account.$.tsx +4 -3
- package/dist/assets/hydrogen/starter/app/routes/account._index.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/account.addresses.tsx +15 -11
- package/dist/assets/hydrogen/starter/app/routes/account.orders.$id.tsx +47 -22
- package/dist/assets/hydrogen/starter/app/routes/account.orders._index.tsx +152 -23
- package/dist/assets/hydrogen/starter/app/routes/account.profile.tsx +11 -8
- package/dist/assets/hydrogen/starter/app/routes/account.tsx +16 -4
- package/dist/assets/hydrogen/starter/app/routes/account_.authorize.tsx +2 -2
- package/dist/assets/hydrogen/starter/app/routes/account_.login.tsx +5 -3
- package/dist/assets/hydrogen/starter/app/routes/account_.logout.tsx +3 -2
- package/dist/assets/hydrogen/starter/app/routes/api.$version.[graphql.json].tsx +2 -2
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle.$articleHandle.tsx +6 -10
- package/dist/assets/hydrogen/starter/app/routes/blogs.$blogHandle._index.tsx +10 -7
- package/dist/assets/hydrogen/starter/app/routes/blogs._index.tsx +13 -7
- package/dist/assets/hydrogen/starter/app/routes/cart.$lines.tsx +3 -2
- package/dist/assets/hydrogen/starter/app/routes/cart.tsx +13 -9
- package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +8 -11
- package/dist/assets/hydrogen/starter/app/routes/collections._index.tsx +6 -6
- package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +10 -7
- package/dist/assets/hydrogen/starter/app/routes/discount.$code.tsx +3 -2
- package/dist/assets/hydrogen/starter/app/routes/pages.$handle.tsx +8 -6
- package/dist/assets/hydrogen/starter/app/routes/policies.$handle.tsx +7 -4
- package/dist/assets/hydrogen/starter/app/routes/policies._index.tsx +19 -13
- package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +9 -6
- package/dist/assets/hydrogen/starter/app/routes/search.tsx +14 -14
- package/dist/assets/hydrogen/starter/app/routes/sitemap.$type.$page[.xml].tsx +2 -3
- package/dist/assets/hydrogen/starter/app/routes.ts +1 -1
- package/dist/assets/hydrogen/starter/app/styles/app.css +53 -1
- package/dist/assets/hydrogen/starter/customer-accountapi.generated.d.ts +47 -13
- package/dist/assets/hydrogen/starter/env.d.ts +1 -39
- package/dist/assets/hydrogen/starter/eslint.config.js +35 -52
- package/dist/assets/hydrogen/starter/package.json +14 -15
- package/dist/assets/hydrogen/starter/react-router.config.ts +9 -3
- package/dist/assets/hydrogen/starter/server.ts +7 -7
- package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +1 -1
- package/dist/assets/hydrogen/starter/tsconfig.json +17 -13
- package/dist/assets/hydrogen/starter/vite.config.ts +4 -1
- package/dist/assets/hydrogen/virtual-routes/components/RequestDetails.jsx +13 -20
- package/dist/assets/hydrogen/virtual-routes/routes/[.]well-known.appspecific.com[.]chrome[.]devtools[.]json.jsx +37 -0
- package/dist/chunk-2LZQLWDR.js +1189 -0
- package/dist/{chunk-EO6F7WJJ.js → chunk-6YUUFKYO.js} +1 -1
- package/dist/chunk-AUULK6IN.js +5 -0
- package/dist/chunk-CJKPLQJ7.js +51 -0
- package/dist/{chunk-MNT4XW23.js → chunk-LBUW5UHX.js} +1 -1
- package/dist/chunk-RUCJI22O.js +3 -0
- package/dist/{chunk-PMDMUCNY.js → chunk-VXJIQGAB.js} +1 -1
- package/dist/chunk-Y5VZE2FH.js +32 -0
- package/dist/chunk-ZLNTSIDN.js +2 -0
- package/dist/create-app.js +293 -288
- package/dist/{del-72VO4HYK.js → del-VDYQZFAQ.js} +1 -1
- package/dist/devtools-3BYEW2L2.js +8 -0
- package/dist/error-handler-XRI3ZDLO.js +2 -0
- package/dist/is-wsl-52AELLDM.js +2 -0
- package/dist/{morph-3JSBLNUD.js → morph-S2LU6PQ4.js} +7 -7
- package/dist/{multipart-parser-QIHQVIZA.js → multipart-parser-MX4R5XJM.js} +1 -1
- package/dist/open-PMJ32HTM.js +2 -0
- package/dist/out-U7AI7XUQ.js +2 -0
- package/package.json +4 -2
- package/dist/chokidar-FXMI63T6.js +0 -12
- package/dist/chunk-3LZ6M5C2.js +0 -3
- package/dist/chunk-D7CI46F7.js +0 -10
- package/dist/chunk-FB327AH7.js +0 -5
- package/dist/chunk-MZPD7BFF.js +0 -23
- package/dist/chunk-QUKX7CP5.js +0 -1180
- package/dist/chunk-UASQ33JG.js +0 -45
- package/dist/chunk-VMIOG46Y.js +0 -2
- package/dist/devtools-DGRGSZU7.js +0 -8
- package/dist/error-handler-YXM2BB34.js +0 -2
- package/dist/is-wsl-LL6KGQIK.js +0 -2
- package/dist/open-OD6DRFEG.js +0 -2
- package/dist/out-DXB3K325.js +0 -2
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
|
|
2
|
-
import{b as U,c as w}from"./chunk-
|
|
2
|
+
import{b as U,c as w}from"./chunk-Y5VZE2FH.js";import{i as F}from"./chunk-LBUW5UHX.js";F();var f=0,t={START_BOUNDARY:f++,HEADER_FIELD_START:f++,HEADER_FIELD:f++,HEADER_VALUE_START:f++,HEADER_VALUE:f++,HEADER_VALUE_ALMOST_DONE:f++,HEADERS_ALMOST_DONE:f++,PART_DATA_START:f++,PART_DATA:f++,END:f++},B=1,_={PART_BOUNDARY:B,LAST_BOUNDARY:B*=2},O=10,g=13,V=32,m=45,Y=58,x=97,C=122,I=u=>u|32,R=()=>{},y=class{constructor(o){this.index=0,this.flags=0,this.onHeaderEnd=R,this.onHeaderField=R,this.onHeadersEnd=R,this.onHeaderValue=R,this.onPartBegin=R,this.onPartData=R,this.onPartEnd=R,this.boundaryChars={},o=`\r
|
|
3
3
|
--`+o;let n=new Uint8Array(o.length);for(let r=0;r<o.length;r++)n[r]=o.charCodeAt(r),this.boundaryChars[n[r]]=!0;this.boundary=n,this.lookbehind=new Uint8Array(this.boundary.length+8),this.state=t.START_BOUNDARY}write(o){let n=0,r=o.length,E=this.index,{lookbehind:l,boundary:d,boundaryChars:H,index:e,state:i,flags:A}=this,b=this.boundary.length,p=b-1,N=o.length,a,S,h=c=>{this[c+"Mark"]=n},s=c=>{delete this[c+"Mark"]},D=(c,P,T,k)=>{(P===void 0||P!==T)&&this[c](k&&k.subarray(P,T))},L=(c,P)=>{let T=c+"Mark";T in this&&(P?(D(c,this[T],n,o),delete this[T]):(D(c,this[T],o.length,o),this[T]=0))};for(n=0;n<r;n++)switch(a=o[n],i){case t.START_BOUNDARY:if(e===d.length-2){if(a===m)A|=_.LAST_BOUNDARY;else if(a!==g)return;e++;break}else if(e-1===d.length-2){if(A&_.LAST_BOUNDARY&&a===m)i=t.END,A=0;else if(!(A&_.LAST_BOUNDARY)&&a===O)e=0,D("onPartBegin"),i=t.HEADER_FIELD_START;else return;break}a!==d[e+2]&&(e=-2),a===d[e+2]&&e++;break;case t.HEADER_FIELD_START:i=t.HEADER_FIELD,h("onHeaderField"),e=0;case t.HEADER_FIELD:if(a===g){s("onHeaderField"),i=t.HEADERS_ALMOST_DONE;break}if(e++,a===m)break;if(a===Y){if(e===1)return;L("onHeaderField",!0),i=t.HEADER_VALUE_START;break}if(S=I(a),S<x||S>C)return;break;case t.HEADER_VALUE_START:if(a===V)break;h("onHeaderValue"),i=t.HEADER_VALUE;case t.HEADER_VALUE:a===g&&(L("onHeaderValue",!0),D("onHeaderEnd"),i=t.HEADER_VALUE_ALMOST_DONE);break;case t.HEADER_VALUE_ALMOST_DONE:if(a!==O)return;i=t.HEADER_FIELD_START;break;case t.HEADERS_ALMOST_DONE:if(a!==O)return;D("onHeadersEnd"),i=t.PART_DATA_START;break;case t.PART_DATA_START:i=t.PART_DATA,h("onPartData");case t.PART_DATA:if(E=e,e===0){for(n+=p;n<N&&!(o[n]in H);)n+=b;n-=p,a=o[n]}if(e<d.length)d[e]===a?(e===0&&L("onPartData",!0),e++):e=0;else if(e===d.length)e++,a===g?A|=_.PART_BOUNDARY:a===m?A|=_.LAST_BOUNDARY:e=0;else if(e-1===d.length)if(A&_.PART_BOUNDARY){if(e=0,a===O){A&=~_.PART_BOUNDARY,D("onPartEnd"),D("onPartBegin"),i=t.HEADER_FIELD_START;break}}else A&_.LAST_BOUNDARY&&a===m?(D("onPartEnd"),i=t.END,A=0):e=0;if(e>0)l[e-1]=a;else if(E>0){let c=new Uint8Array(l.buffer,l.byteOffset,l.byteLength);D("onPartData",0,E,c),E=0,h("onPartData"),n--}break;case t.END:break;default:throw new Error(`Unexpected state entered: ${i}`)}L("onHeaderField"),L("onHeaderValue"),L("onPartData"),this.index=e,this.state=i,this.flags=A}end(){if(this.state===t.HEADER_FIELD_START&&this.index===0||this.state===t.PART_DATA&&this.index===this.boundary.length)this.onPartEnd();else if(this.state!==t.END)throw new Error("MultipartParser.end(): stream ended unexpectedly")}};function M(u){let o=u.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);if(!o)return;let n=o[2]||o[3]||"",r=n.slice(n.lastIndexOf("\\")+1);return r=r.replace(/%22/g,'"'),r=r.replace(/&#(\d{4});/g,(E,l)=>String.fromCharCode(l)),r}async function Z(u,o){if(!/multipart/i.test(o))throw new TypeError("Failed to fetch");let n=o.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!n)throw new TypeError("no or bad content-type header, no multipart boundary");let r=new y(n[1]||n[2]),E,l,d,H,e,i,A=[],b=new w,p=s=>{d+=h.decode(s,{stream:!0})},N=s=>{A.push(s)},a=()=>{let s=new U(A,i,{type:e});b.append(H,s)},S=()=>{b.append(H,d)},h=new TextDecoder("utf-8");h.decode(),r.onPartBegin=function(){r.onPartData=p,r.onPartEnd=S,E="",l="",d="",H="",e="",i=null,A.length=0},r.onHeaderField=function(s){E+=h.decode(s,{stream:!0})},r.onHeaderValue=function(s){l+=h.decode(s,{stream:!0})},r.onHeaderEnd=function(){if(l+=h.decode(),E=E.toLowerCase(),E==="content-disposition"){let s=l.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);s&&(H=s[2]||s[3]||""),i=M(l),i&&(r.onPartData=N,r.onPartEnd=a)}else E==="content-type"&&(e=l);l="",E=""};for await(let s of u)r.write(s);return r.end(),b}export{Z as toFormData};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
|
|
2
|
+
import{a as S}from"./chunk-ZLNTSIDN.js";import{a as p,c as w,g as __dirname,i as c}from"./chunk-LBUW5UHX.js";var O=w((K,x)=>{"use strict";c();var L=p("os"),k=p("fs"),C=S(),F=()=>{if(process.platform!=="linux")return!1;if(L.release().toLowerCase().includes("microsoft"))return!C();try{return k.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!C():!1}catch{return!1}};process.env.__IS_WSL_TEST__?x.exports=F:x.exports=F()});var b=w((V,v)=>{"use strict";c();v.exports=(e,r,t)=>{let s=n=>Object.defineProperty(e,r,{value:n,enumerable:!0,writable:!0});return Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get(){let n=t();return s(n),n},set(n){s(n)}}),e}});var j=w((H,M)=>{c();var z=p("path"),B=p("child_process"),{promises:g,constants:T}=p("fs"),d=O(),I=S(),P=b(),q=z.join(__dirname,"xdg-open"),{platform:u,arch:W}=process,X=()=>{try{return g.statSync("/run/.containerenv"),!0}catch{return!1}},y;function D(){return y===void 0&&(y=X()||I()),y}var G=(()=>{let e="/mnt/",r;return async function(){if(r)return r;let t="/etc/wsl.conf",s=!1;try{await g.access(t,T.F_OK),s=!0}catch{}if(!s)return e;let n=await g.readFile(t,{encoding:"utf8"}),a=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(n);return a?(r=a.groups.mountPoint.trim(),r=r.endsWith("/")?r:`${r}/`,r):e}})(),_=async(e,r)=>{let t;for(let s of e)try{return await r(s)}catch(n){t=n}throw t},m=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return _(e.app,i=>m({...e,app:i}));let{name:r,arguments:t=[]}=e.app||{};if(t=[...t],Array.isArray(r))return _(r,i=>m({...e,app:{name:i,arguments:t}}));let s,n=[],a={};if(u==="darwin")s="open",e.wait&&n.push("--wait-apps"),e.background&&n.push("--background"),e.newInstance&&n.push("--new"),r&&n.push("-a",r);else if(u==="win32"||d&&!D()&&!r){let i=await G();s=d?`${i}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,n.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),d||(a.windowsVerbatimArguments=!0);let o=["Start"];e.wait&&o.push("-Wait"),r?(o.push(`"\`"${r}\`""`,"-ArgumentList"),e.target&&t.unshift(e.target)):e.target&&o.push(`"${e.target}"`),t.length>0&&(t=t.map(l=>`"\`"${l}\`""`),o.push(t.join(","))),e.target=Buffer.from(o.join(" "),"utf16le").toString("base64")}else{if(r)s=r;else{let i=!__dirname||__dirname==="/",o=!1;try{await g.access(q,T.X_OK),o=!0}catch{}s=process.versions.electron||u==="android"||i||!o?"xdg-open":q}t.length>0&&n.push(...t),e.wait||(a.stdio="ignore",a.detached=!0)}e.target&&n.push(e.target),u==="darwin"&&t.length>0&&n.push("--args",...t);let f=B.spawn(s,n,a);return e.wait?new Promise((i,o)=>{f.once("error",o),f.once("close",l=>{if(!e.allowNonzeroExitCode&&l>0){o(new Error(`Exited with code ${l}`));return}i(f)})}):(f.unref(),f)},A=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `target`");return m({...r,target:e})},N=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `name`");let{arguments:t=[]}=r||{};if(t!=null&&!Array.isArray(t))throw new TypeError("Expected `appArguments` as Array type");return m({...r,app:{name:e,arguments:t}})};function $(e){if(typeof e=="string"||Array.isArray(e))return e;let{[W]:r}=e;if(!r)throw new Error(`${W} is not supported`);return r}function E({[u]:e},{wsl:r}){if(r&&d)return $(r);if(!e)throw new Error(`${u} is not supported`);return $(e)}var h={};P(h,"chrome",()=>E({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));P(h,"firefox",()=>E({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));P(h,"edge",()=>E({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));A.apps=h;A.openApp=N;M.exports=A});export default j();
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"@shopify:registry": "https://registry.npmjs.org"
|
|
6
6
|
},
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"version": "5.0.
|
|
8
|
+
"version": "5.0.26",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
"@ast-grep/napi": "0.34.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"
|
|
25
|
+
"execa": "^8.0.1",
|
|
26
|
+
"tempy": "3.1.0",
|
|
27
|
+
"vitest": "^3.2.4"
|
|
26
28
|
},
|
|
27
29
|
"bin": "dist/create-app.js",
|
|
28
30
|
"files": [
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
|
|
2
|
-
import{a as pe,b as ge,c as ye,e as vt}from"./chunk-UASQ33JG.js";import{a as w,c as S,i as E}from"./chunk-MNT4XW23.js";var Lt=S((ai,xt)=>{"use strict";E();var A=w("fs"),{Readable:be}=w("stream"),v=w("path"),{promisify:V}=w("util"),$=vt(),Se=V(A.readdir),Re=V(A.stat),At=V(A.lstat),Te=V(A.realpath),Pe="!",kt="READDIRP_RECURSIVE_ERROR",De=new Set(["ENOENT","EPERM","EACCES","ELOOP",kt]),X="files",Wt="directories",C="files_directories",L="all",It=[X,Wt,C,L],Fe=a=>De.has(a.code),[Nt,ve]=process.versions.node.split(".").slice(0,2).map(a=>Number.parseInt(a,10)),Ae=process.platform==="win32"&&(Nt>10||Nt===10&&ve>=5),Ot=a=>{if(a!==void 0){if(typeof a=="function")return a;if(typeof a=="string"){let t=$(a.trim());return e=>t(e.basename)}if(Array.isArray(a)){let t=[],e=[];for(let s of a){let i=s.trim();i.charAt(0)===Pe?e.push($(i.slice(1))):t.push($(i))}return e.length>0?t.length>0?s=>t.some(i=>i(s.basename))&&!e.some(i=>i(s.basename)):s=>!e.some(i=>i(s.basename)):s=>t.some(i=>i(s.basename))}}},M=class a extends be{static get defaultOptions(){return{root:".",fileFilter:t=>!0,directoryFilter:t=>!0,type:X,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(t={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:t.highWaterMark||4096});let e={...a.defaultOptions,...t},{root:s,type:i}=e;this._fileFilter=Ot(e.fileFilter),this._directoryFilter=Ot(e.directoryFilter);let o=e.lstat?At:Re;Ae?this._stat=n=>o(n,{bigint:!0}):this._stat=o,this._maxDepth=e.depth,this._wantsDir=[Wt,C,L].includes(i),this._wantsFile=[X,C,L].includes(i),this._wantsEverything=i===L,this._root=v.resolve(s),this._isDirent="Dirent"in A&&!e.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(s,1)],this.reading=!1,this.parent=void 0}async _read(t){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&t>0;){let{path:e,depth:s,files:i=[]}=this.parent||{};if(i.length>0){let o=i.splice(0,t).map(n=>this._formatEntry(n,e));for(let n of await Promise.all(o)){if(this.destroyed)return;let r=await this._getEntryType(n);r==="directory"&&this._directoryFilter(n)?(s<=this._maxDepth&&this.parents.push(this._exploreDir(n.fullPath,s+1)),this._wantsDir&&(this.push(n),t--)):(r==="file"||this._includeAsFile(n))&&this._fileFilter(n)&&this._wantsFile&&(this.push(n),t--)}}else{let o=this.parents.pop();if(!o){this.push(null);break}if(this.parent=await o,this.destroyed)return}}}catch(e){this.destroy(e)}finally{this.reading=!1}}}async _exploreDir(t,e){let s;try{s=await Se(t,this._rdOptions)}catch(i){this._onError(i)}return{files:s,depth:e,path:t}}async _formatEntry(t,e){let s;try{let i=this._isDirent?t.name:t,o=v.resolve(v.join(e,i));s={path:v.relative(this._root,o),fullPath:o,basename:i},s[this._statsProp]=this._isDirent?t:await this._stat(o)}catch(i){this._onError(i)}return s}_onError(t){Fe(t)&&!this.destroyed?this.emit("warn",t):this.destroy(t)}async _getEntryType(t){let e=t&&t[this._statsProp];if(e){if(e.isFile())return"file";if(e.isDirectory())return"directory";if(e&&e.isSymbolicLink()){let s=t.fullPath;try{let i=await Te(s),o=await At(i);if(o.isFile())return"file";if(o.isDirectory()){let n=i.length;if(s.startsWith(i)&&s.substr(n,1)===v.sep){let r=new Error(`Circular symlink detected: "${s}" points to "${i}"`);return r.code=kt,this._onError(r)}return"directory"}}catch(i){this._onError(i)}}}}_includeAsFile(t){let e=t&&t[this._statsProp];return e&&this._wantsEverything&&!e.isDirectory()}},P=(a,t={})=>{let e=t.entryType||t.type;if(e==="both"&&(e=C),e&&(t.type=e),a){if(typeof a!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(e&&!It.includes(e))throw new Error(`readdirp: Invalid type passed. Use one of ${It.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return t.root=a,new M(t)},Ie=(a,t={})=>new Promise((e,s)=>{let i=[];P(a,t).on("data",o=>i.push(o)).on("end",()=>e(i)).on("error",o=>s(o))});P.promise=Ie;P.ReaddirpStream=M;P.default=P;xt.exports=P});var Q=S((hi,Ct)=>{"use strict";E();Ct.exports=function(a,t){if(typeof a!="string")throw new TypeError("expected path to be a string");if(a==="\\"||a==="/")return"/";var e=a.length;if(e<=1)return a;var s="";if(e>4&&a[3]==="\\"){var i=a[2];(i==="?"||i===".")&&a.slice(0,2)==="\\\\"&&(a=a.slice(2),s="//")}var o=a.split(/[/\\]+/);return t!==!1&&o[o.length-1]===""&&o.pop(),s+o.join("/")}});var zt=S((Gt,Yt)=>{"use strict";E();Object.defineProperty(Gt,"__esModule",{value:!0});var Ht=vt(),Ne=Q(),Mt="!",Oe={returnIndex:!1},ke=a=>Array.isArray(a)?a:[a],We=(a,t)=>{if(typeof a=="function")return a;if(typeof a=="string"){let e=Ht(a,t);return s=>a===s||e(s)}return a instanceof RegExp?e=>a.test(e):e=>!1},Vt=(a,t,e,s)=>{let i=Array.isArray(e),o=i?e[0]:e;if(!i&&typeof o!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(o));let n=Ne(o);for(let c=0;c<t.length;c++){let l=t[c];if(l(n))return s?-1:!1}let r=i&&[n].concat(e.slice(1));for(let c=0;c<a.length;c++){let l=a[c];if(i?l(...r):l(n))return s?c:!0}return s?-1:!1},J=(a,t,e=Oe)=>{if(a==null)throw new TypeError("anymatch: specify first argument");let s=typeof e=="boolean"?{returnIndex:e}:e,i=s.returnIndex||!1,o=ke(a),n=o.filter(c=>typeof c=="string"&&c.charAt(0)===Mt).map(c=>c.slice(1)).map(c=>Ht(c,s)),r=o.filter(c=>typeof c!="string"||typeof c=="string"&&c.charAt(0)!==Mt).map(c=>We(c,s));return t==null?(c,l=!1)=>Vt(r,n,c,typeof l=="boolean"?l:!1):Vt(r,n,t,i)};J.default=J;Yt.exports=J});var jt=S((fi,xe)=>{xe.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var Ut=S((ui,qt)=>{"use strict";E();qt.exports=jt()});var Kt=S((mi,Bt)=>{"use strict";E();var Le=w("path"),Ce=Ut(),Me=new Set(Ce);Bt.exports=a=>Me.has(Le.extname(a).slice(1).toLowerCase())});var H=S(u=>{"use strict";E();var{sep:Ve}=w("path"),{platform:Z}=process,He=w("os");u.EV_ALL="all";u.EV_READY="ready";u.EV_ADD="add";u.EV_CHANGE="change";u.EV_ADD_DIR="addDir";u.EV_UNLINK="unlink";u.EV_UNLINK_DIR="unlinkDir";u.EV_RAW="raw";u.EV_ERROR="error";u.STR_DATA="data";u.STR_END="end";u.STR_CLOSE="close";u.FSEVENT_CREATED="created";u.FSEVENT_MODIFIED="modified";u.FSEVENT_DELETED="deleted";u.FSEVENT_MOVED="moved";u.FSEVENT_CLONED="cloned";u.FSEVENT_UNKNOWN="unknown";u.FSEVENT_TYPE_FILE="file";u.FSEVENT_TYPE_DIRECTORY="directory";u.FSEVENT_TYPE_SYMLINK="symlink";u.KEY_LISTENERS="listeners";u.KEY_ERR="errHandlers";u.KEY_RAW="rawEmitters";u.HANDLER_KEYS=[u.KEY_LISTENERS,u.KEY_ERR,u.KEY_RAW];u.DOT_SLASH=`.${Ve}`;u.BACK_SLASH_RE=/\\/g;u.DOUBLE_SLASH_RE=/\/\//;u.SLASH_OR_BACK_SLASH_RE=/[/\\]/;u.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;u.REPLACER_RE=/^\.[/\\]/;u.SLASH="/";u.SLASH_SLASH="//";u.BRACE_START="{";u.BANG="!";u.ONE_DOT=".";u.TWO_DOTS="..";u.STAR="*";u.GLOBSTAR="**";u.ROOT_GLOBSTAR="/**/*";u.SLASH_GLOBSTAR="/**";u.DIR_SUFFIX="Dir";u.ANYMATCH_OPTS={dot:!0};u.STRING_TYPE="string";u.FUNCTION_TYPE="function";u.EMPTY_STR="";u.EMPTY_FN=()=>{};u.IDENTITY_FN=a=>a;u.isWindows=Z==="win32";u.isMacos=Z==="darwin";u.isLinux=Z==="linux";u.isIBMi=He.type()==="OS400"});var te=S((gi,Zt)=>{"use strict";E();var R=w("fs"),p=w("path"),{promisify:k}=w("util"),Ge=Kt(),{isWindows:Ye,isLinux:ze,EMPTY_FN:je,EMPTY_STR:qe,KEY_LISTENERS:D,KEY_ERR:tt,KEY_RAW:I,HANDLER_KEYS:Ue,EV_CHANGE:Y,EV_ADD:G,EV_ADD_DIR:Be,EV_ERROR:Xt,STR_DATA:Ke,STR_END:$e,BRACE_START:Xe,STAR:Qe}=H(),Je="watch",Ze=k(R.open),Qt=k(R.stat),ts=k(R.lstat),es=k(R.close),et=k(R.realpath),ss={lstat:ts,stat:Qt},it=(a,t)=>{a instanceof Set?a.forEach(t):t(a)},N=(a,t,e)=>{let s=a[t];s instanceof Set||(a[t]=s=new Set([s])),s.add(e)},is=a=>t=>{let e=a[t];e instanceof Set?e.clear():delete a[t]},O=(a,t,e)=>{let s=a[t];s instanceof Set?s.delete(e):s===e&&delete a[t]},Jt=a=>a instanceof Set?a.size===0:!a,z=new Map;function $t(a,t,e,s,i){let o=(n,r)=>{e(a),i(n,r,{watchedPath:a}),r&&a!==r&&j(p.resolve(a,r),D,p.join(a,r))};try{return R.watch(a,t,o)}catch(n){s(n)}}var j=(a,t,e,s,i)=>{let o=z.get(a);o&&it(o[t],n=>{n(e,s,i)})},rs=(a,t,e,s)=>{let{listener:i,errHandler:o,rawEmitter:n}=s,r=z.get(t),c;if(!e.persistent)return c=$t(a,e,i,o,n),c.close.bind(c);if(r)N(r,D,i),N(r,tt,o),N(r,I,n);else{if(c=$t(a,e,j.bind(null,t,D),o,j.bind(null,t,I)),!c)return;c.on(Xt,async l=>{let d=j.bind(null,t,tt);if(r.watcherUnusable=!0,Ye&&l.code==="EPERM")try{let h=await Ze(a,"r");await es(h),d(l)}catch{}else d(l)}),r={listeners:i,errHandlers:o,rawEmitters:n,watcher:c},z.set(t,r)}return()=>{O(r,D,i),O(r,tt,o),O(r,I,n),Jt(r.listeners)&&(r.watcher.close(),z.delete(t),Ue.forEach(is(r)),r.watcher=void 0,Object.freeze(r))}},st=new Map,ns=(a,t,e,s)=>{let{listener:i,rawEmitter:o}=s,n=st.get(t),r=new Set,c=new Set,l=n&&n.options;return l&&(l.persistent<e.persistent||l.interval>e.interval)&&(r=n.listeners,c=n.rawEmitters,R.unwatchFile(t),n=void 0),n?(N(n,D,i),N(n,I,o)):(n={listeners:i,rawEmitters:o,options:e,watcher:R.watchFile(t,e,(d,h)=>{it(n.rawEmitters,_=>{_(Y,t,{curr:d,prev:h})});let f=d.mtimeMs;(d.size!==h.size||f>h.mtimeMs||f===0)&&it(n.listeners,_=>_(a,d))})},st.set(t,n)),()=>{O(n,D,i),O(n,I,o),Jt(n.listeners)&&(st.delete(t),R.unwatchFile(t),n.options=n.watcher=void 0,Object.freeze(n))}},rt=class{constructor(t){this.fsw=t,this._boundHandleError=e=>t._handleError(e)}_watchWithNodeFs(t,e){let s=this.fsw.options,i=p.dirname(t),o=p.basename(t);this.fsw._getWatchedDir(i).add(o);let r=p.resolve(t),c={persistent:s.persistent};e||(e=je);let l;return s.usePolling?(c.interval=s.enableBinaryInterval&&Ge(o)?s.binaryInterval:s.interval,l=ns(t,r,c,{listener:e,rawEmitter:this.fsw._emitRaw})):l=rs(t,r,c,{listener:e,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),l}_handleFile(t,e,s){if(this.fsw.closed)return;let i=p.dirname(t),o=p.basename(t),n=this.fsw._getWatchedDir(i),r=e;if(n.has(o))return;let c=async(d,h)=>{if(this.fsw._throttle(Je,t,5)){if(!h||h.mtimeMs===0)try{let f=await Qt(t);if(this.fsw.closed)return;let _=f.atimeMs,y=f.mtimeMs;(!_||_<=y||y!==r.mtimeMs)&&this.fsw._emit(Y,t,f),ze&&r.ino!==f.ino?(this.fsw._closeFile(d),r=f,this.fsw._addPathCloser(d,this._watchWithNodeFs(t,c))):r=f}catch{this.fsw._remove(i,o)}else if(n.has(o)){let f=h.atimeMs,_=h.mtimeMs;(!f||f<=_||_!==r.mtimeMs)&&this.fsw._emit(Y,t,h),r=h}}},l=this._watchWithNodeFs(t,c);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(t)){if(!this.fsw._throttle(G,t,0))return;this.fsw._emit(G,t,e)}return l}async _handleSymlink(t,e,s,i){if(this.fsw.closed)return;let o=t.fullPath,n=this.fsw._getWatchedDir(e);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let r;try{r=await et(s)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(n.has(i)?this.fsw._symlinkPaths.get(o)!==r&&(this.fsw._symlinkPaths.set(o,r),this.fsw._emit(Y,s,t.stats)):(n.add(i),this.fsw._symlinkPaths.set(o,r),this.fsw._emit(G,s,t.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(o))return!0;this.fsw._symlinkPaths.set(o,!0)}_handleRead(t,e,s,i,o,n,r){if(t=p.join(t,qe),!s.hasGlob&&(r=this.fsw._throttle("readdir",t,1e3),!r))return;let c=this.fsw._getWatchedDir(s.path),l=new Set,d=this.fsw._readdirp(t,{fileFilter:h=>s.filterPath(h),directoryFilter:h=>s.filterDir(h),depth:0}).on(Ke,async h=>{if(this.fsw.closed){d=void 0;return}let f=h.path,_=p.join(t,f);if(l.add(f),!(h.stats.isSymbolicLink()&&await this._handleSymlink(h,t,_,f))){if(this.fsw.closed){d=void 0;return}(f===i||!i&&!c.has(f))&&(this.fsw._incrReadyCount(),_=p.join(o,p.relative(o,_)),this._addToNodeFs(_,e,s,n+1))}}).on(Xt,this._boundHandleError);return new Promise(h=>d.once($e,()=>{if(this.fsw.closed){d=void 0;return}let f=r?r.clear():!1;h(),c.getChildren().filter(_=>_!==t&&!l.has(_)&&(!s.hasGlob||s.filterPath({fullPath:p.resolve(t,_)}))).forEach(_=>{this.fsw._remove(t,_)}),d=void 0,f&&this._handleRead(t,!1,s,i,o,n,r)}))}async _handleDir(t,e,s,i,o,n,r){let c=this.fsw._getWatchedDir(p.dirname(t)),l=c.has(p.basename(t));!(s&&this.fsw.options.ignoreInitial)&&!o&&!l&&(!n.hasGlob||n.globFilter(t))&&this.fsw._emit(Be,t,e),c.add(p.basename(t)),this.fsw._getWatchedDir(t);let d,h,f=this.fsw.options.depth;if((f==null||i<=f)&&!this.fsw._symlinkPaths.has(r)){if(!o&&(await this._handleRead(t,s,n,o,t,i,d),this.fsw.closed))return;h=this._watchWithNodeFs(t,(_,y)=>{y&&y.mtimeMs===0||this._handleRead(_,!1,n,o,t,i,d)})}return h}async _addToNodeFs(t,e,s,i,o){let n=this.fsw._emitReady;if(this.fsw._isIgnored(t)||this.fsw.closed)return n(),!1;let r=this.fsw._getWatchHelpers(t,i);!r.hasGlob&&s&&(r.hasGlob=s.hasGlob,r.globFilter=s.globFilter,r.filterPath=c=>s.filterPath(c),r.filterDir=c=>s.filterDir(c));try{let c=await ss[r.statMethod](r.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(r.watchPath,c))return n(),!1;let l=this.fsw.options.followSymlinks&&!t.includes(Qe)&&!t.includes(Xe),d;if(c.isDirectory()){let h=p.resolve(t),f=l?await et(t):t;if(this.fsw.closed||(d=await this._handleDir(r.watchPath,c,e,i,o,r,f),this.fsw.closed))return;h!==f&&f!==void 0&&this.fsw._symlinkPaths.set(h,f)}else if(c.isSymbolicLink()){let h=l?await et(t):t;if(this.fsw.closed)return;let f=p.dirname(r.watchPath);if(this.fsw._getWatchedDir(f).add(r.watchPath),this.fsw._emit(G,r.watchPath,c),d=await this._handleDir(f,c,e,i,t,r,h),this.fsw.closed)return;h!==void 0&&this.fsw._symlinkPaths.set(p.resolve(t),h)}else d=this._handleFile(r.watchPath,c,e);return n(),this.fsw._addPathCloser(t,d),!1}catch(c){if(this.fsw._handleError(c))return n(),t}}};Zt.exports=rt});var ae=S((bi,ft)=>{"use strict";E();var lt=w("fs"),g=w("path"),{promisify:dt}=w("util"),F;try{F=w("fsevents")}catch(a){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(a)}if(F){let a=process.version.match(/v(\d+)\.(\d+)/);if(a&&a[1]&&a[2]){let t=Number.parseInt(a[1],10),e=Number.parseInt(a[2],10);t===8&&e<16&&(F=void 0)}}var{EV_ADD:nt,EV_CHANGE:os,EV_ADD_DIR:ee,EV_UNLINK:q,EV_ERROR:as,STR_DATA:cs,STR_END:hs,FSEVENT_CREATED:ls,FSEVENT_MODIFIED:ds,FSEVENT_DELETED:fs,FSEVENT_MOVED:us,FSEVENT_UNKNOWN:_s,FSEVENT_TYPE_FILE:ms,FSEVENT_TYPE_DIRECTORY:W,FSEVENT_TYPE_SYMLINK:oe,ROOT_GLOBSTAR:se,DIR_SUFFIX:ws,DOT_SLASH:ie,FUNCTION_TYPE:ot,EMPTY_FN:Es,IDENTITY_FN:ps}=H(),gs=a=>isNaN(a)?{}:{depth:a},ct=dt(lt.stat),ys=dt(lt.lstat),re=dt(lt.realpath),bs={stat:ct,lstat:ys},T=new Map,Ss=10,Rs=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Ts=(a,t)=>({stop:F.watch(a,t)});function Ps(a,t,e,s){let i=g.extname(t)?g.dirname(t):t,o=g.dirname(i),n=T.get(i);Ds(o)&&(i=o);let r=g.resolve(a),c=r!==t,l=(h,f,_)=>{c&&(h=h.replace(t,r)),(h===r||!h.indexOf(r+g.sep))&&e(h,f,_)},d=!1;for(let h of T.keys())if(t.indexOf(g.resolve(h)+g.sep)===0){i=h,n=T.get(i),d=!0;break}return n||d?n.listeners.add(l):(n={listeners:new Set([l]),rawEmitter:s,watcher:Ts(i,(h,f)=>{if(!n.listeners.size)return;let _=F.getInfo(h,f);n.listeners.forEach(y=>{y(h,f,_)}),n.rawEmitter(_.event,h,_)})},T.set(i,n)),()=>{let h=n.listeners;if(h.delete(l),!h.size&&(T.delete(i),n.watcher))return n.watcher.stop().then(()=>{n.rawEmitter=n.watcher=void 0,Object.freeze(n)})}}var Ds=a=>{let t=0;for(let e of T.keys())if(e.indexOf(a)===0&&(t++,t>=Ss))return!0;return!1},Fs=()=>F&&T.size<128,at=(a,t)=>{let e=0;for(;!a.indexOf(t)&&(a=g.dirname(a))!==t;)e++;return e},ne=(a,t)=>a.type===W&&t.isDirectory()||a.type===oe&&t.isSymbolicLink()||a.type===ms&&t.isFile(),ht=class{constructor(t){this.fsw=t}checkIgnored(t,e){let s=this.fsw._ignoredPaths;if(this.fsw._isIgnored(t,e))return s.add(t),e&&e.isDirectory()&&s.add(t+se),!0;s.delete(t),s.delete(t+se)}addOrChange(t,e,s,i,o,n,r,c){let l=o.has(n)?os:nt;this.handleEvent(l,t,e,s,i,o,n,r,c)}async checkExists(t,e,s,i,o,n,r,c){try{let l=await ct(t);if(this.fsw.closed)return;ne(r,l)?this.addOrChange(t,e,s,i,o,n,r,c):this.handleEvent(q,t,e,s,i,o,n,r,c)}catch(l){l.code==="EACCES"?this.addOrChange(t,e,s,i,o,n,r,c):this.handleEvent(q,t,e,s,i,o,n,r,c)}}handleEvent(t,e,s,i,o,n,r,c,l){if(!(this.fsw.closed||this.checkIgnored(e)))if(t===q){let d=c.type===W;(d||n.has(r))&&this.fsw._remove(o,r,d)}else{if(t===nt){if(c.type===W&&this.fsw._getWatchedDir(e),c.type===oe&&l.followSymlinks){let h=l.depth===void 0?void 0:at(s,i)+1;return this._addToFsEvents(e,!1,!0,h)}this.fsw._getWatchedDir(o).add(r)}let d=c.type===W?t+ws:t;this.fsw._emit(d,e),d===ee&&this._addToFsEvents(e,!1,!0)}}_watchWithFsEvents(t,e,s,i){if(this.fsw.closed||this.fsw._isIgnored(t))return;let o=this.fsw.options,r=Ps(t,e,async(c,l,d)=>{if(this.fsw.closed||o.depth!==void 0&&at(c,e)>o.depth)return;let h=s(g.join(t,g.relative(t,c)));if(i&&!i(h))return;let f=g.dirname(h),_=g.basename(h),y=this.fsw._getWatchedDir(d.type===W?h:f);if(Rs.has(l)||d.event===_s)if(typeof o.ignored===ot){let K;try{K=await ct(h)}catch{}if(this.fsw.closed||this.checkIgnored(h,K))return;ne(d,K)?this.addOrChange(h,c,e,f,y,_,d,o):this.handleEvent(q,h,c,e,f,y,_,d,o)}else this.checkExists(h,c,e,f,y,_,d,o);else switch(d.event){case ls:case ds:return this.addOrChange(h,c,e,f,y,_,d,o);case fs:case us:return this.checkExists(h,c,e,f,y,_,d,o)}},this.fsw._emitRaw);return this.fsw._emitReady(),r}async _handleFsEventsSymlink(t,e,s,i){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(e))){this.fsw._symlinkPaths.set(e,!0),this.fsw._incrReadyCount();try{let o=await re(t);if(this.fsw.closed)return;if(this.fsw._isIgnored(o))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(o||t,n=>{let r=t;return o&&o!==ie?r=n.replace(o,t):n!==ie&&(r=g.join(t,n)),s(r)},!1,i)}catch(o){if(this.fsw._handleError(o))return this.fsw._emitReady()}}}emitAdd(t,e,s,i,o){let n=s(t),r=e.isDirectory(),c=this.fsw._getWatchedDir(g.dirname(n)),l=g.basename(n);r&&this.fsw._getWatchedDir(n),!c.has(l)&&(c.add(l),(!i.ignoreInitial||o===!0)&&this.fsw._emit(r?ee:nt,n,e))}initWatch(t,e,s,i){if(this.fsw.closed)return;let o=this._watchWithFsEvents(s.watchPath,g.resolve(t||s.watchPath),i,s.globFilter);this.fsw._addPathCloser(e,o)}async _addToFsEvents(t,e,s,i){if(this.fsw.closed)return;let o=this.fsw.options,n=typeof e===ot?e:ps,r=this.fsw._getWatchHelpers(t);try{let c=await bs[r.statMethod](r.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(r.watchPath,c))throw null;if(c.isDirectory()){if(r.globFilter||this.emitAdd(n(t),c,n,o,s),i&&i>o.depth)return;this.fsw._readdirp(r.watchPath,{fileFilter:l=>r.filterPath(l),directoryFilter:l=>r.filterDir(l),...gs(o.depth-(i||0))}).on(cs,l=>{if(this.fsw.closed||l.stats.isDirectory()&&!r.filterPath(l))return;let d=g.join(r.watchPath,l.path),{fullPath:h}=l;if(r.followSymlinks&&l.stats.isSymbolicLink()){let f=o.depth===void 0?void 0:at(d,g.resolve(r.watchPath))+1;this._handleFsEventsSymlink(d,h,n,f)}else this.emitAdd(d,l.stats,n,o,s)}).on(as,Es).on(hs,()=>{this.fsw._emitReady()})}else this.emitAdd(r.watchPath,c,n,o,s),this.fsw._emitReady()}catch(c){(!c||this.fsw._handleError(c))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(o.persistent&&s!==!0)if(typeof e===ot)this.initWatch(void 0,t,r,n);else{let c;try{c=await re(r.watchPath)}catch{}this.initWatch(c,t,r,n)}}};ft.exports=ht;ft.exports.canUse=Fs});var ni=S(Ft=>{E();var{EventEmitter:vs}=w("events"),Pt=w("fs"),m=w("path"),{promisify:_e}=w("util"),As=Lt(),pt=zt().default,Is=ge(),ut=pe(),Ns=ye(),Os=Q(),ks=te(),ce=ae(),{EV_ALL:_t,EV_READY:Ws,EV_ADD:U,EV_CHANGE:x,EV_UNLINK:he,EV_ADD_DIR:xs,EV_UNLINK_DIR:Ls,EV_RAW:Cs,EV_ERROR:mt,STR_CLOSE:Ms,STR_END:Vs,BACK_SLASH_RE:Hs,DOUBLE_SLASH_RE:le,SLASH_OR_BACK_SLASH_RE:Gs,DOT_RE:Ys,REPLACER_RE:zs,SLASH:wt,SLASH_SLASH:js,BRACE_START:qs,BANG:gt,ONE_DOT:me,TWO_DOTS:Us,GLOBSTAR:Bs,SLASH_GLOBSTAR:Et,ANYMATCH_OPTS:yt,STRING_TYPE:Dt,FUNCTION_TYPE:Ks,EMPTY_STR:bt,EMPTY_FN:$s,isWindows:Xs,isMacos:Qs,isIBMi:Js}=H(),Zs=_e(Pt.stat),ti=_e(Pt.readdir),St=(a=[])=>Array.isArray(a)?a:[a],we=(a,t=[])=>(a.forEach(e=>{Array.isArray(e)?we(e,t):t.push(e)}),t),de=a=>{let t=we(St(a));if(!t.every(e=>typeof e===Dt))throw new TypeError(`Non-string provided as watch path: ${t}`);return t.map(Ee)},fe=a=>{let t=a.replace(Hs,wt),e=!1;for(t.startsWith(js)&&(e=!0);t.match(le);)t=t.replace(le,wt);return e&&(t=wt+t),t},Ee=a=>fe(m.normalize(fe(a))),ue=(a=bt)=>t=>typeof t!==Dt?t:Ee(m.isAbsolute(t)?t:m.join(a,t)),ei=(a,t)=>m.isAbsolute(a)?a:a.startsWith(gt)?gt+m.join(t,a.slice(1)):m.join(t,a),b=(a,t)=>a[t]===void 0,Rt=class{constructor(t,e){this.path=t,this._removeWatcher=e,this.items=new Set}add(t){let{items:e}=this;e&&t!==me&&t!==Us&&e.add(t)}async remove(t){let{items:e}=this;if(!e||(e.delete(t),e.size>0))return;let s=this.path;try{await ti(s)}catch{this._removeWatcher&&this._removeWatcher(m.dirname(s),m.basename(s))}}has(t){let{items:e}=this;if(e)return e.has(t)}getChildren(){let{items:t}=this;if(t)return[...t.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},si="stat",ii="lstat",Tt=class{constructor(t,e,s,i){this.fsw=i,this.path=t=t.replace(zs,bt),this.watchPath=e,this.fullWatchPath=m.resolve(e),this.hasGlob=e!==t,t===bt&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&s?void 0:!1,this.globFilter=this.hasGlob?pt(t,void 0,yt):!1,this.dirParts=this.getDirParts(t),this.dirParts.forEach(o=>{o.length>1&&o.pop()}),this.followSymlinks=s,this.statMethod=s?si:ii}checkGlobSymlink(t){return this.globSymlink===void 0&&(this.globSymlink=t.fullParentDir===this.fullWatchPath?!1:{realPath:t.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?t.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):t.fullPath}entryPath(t){return m.join(this.watchPath,m.relative(this.watchPath,this.checkGlobSymlink(t)))}filterPath(t){let{stats:e}=t;if(e&&e.isSymbolicLink())return this.filterDir(t);let s=this.entryPath(t);return(this.hasGlob&&typeof this.globFilter===Ks?this.globFilter(s):!0)&&this.fsw._isntIgnored(s,e)&&this.fsw._hasReadPermissions(e)}getDirParts(t){if(!this.hasGlob)return[];let e=[];return(t.includes(qs)?Ns.expand(t):[t]).forEach(i=>{e.push(m.relative(this.watchPath,i).split(Gs))}),e}filterDir(t){if(this.hasGlob){let e=this.getDirParts(this.checkGlobSymlink(t)),s=!1;this.unmatchedGlob=!this.dirParts.some(i=>i.every((o,n)=>(o===Bs&&(s=!0),s||!e[0][n]||pt(o,e[0][n],yt))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(t),t.stats)}},B=class extends vs{constructor(t){super();let e={};t&&Object.assign(e,t),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,b(e,"persistent")&&(e.persistent=!0),b(e,"ignoreInitial")&&(e.ignoreInitial=!1),b(e,"ignorePermissionErrors")&&(e.ignorePermissionErrors=!1),b(e,"interval")&&(e.interval=100),b(e,"binaryInterval")&&(e.binaryInterval=300),b(e,"disableGlobbing")&&(e.disableGlobbing=!1),e.enableBinaryInterval=e.binaryInterval!==e.interval,b(e,"useFsEvents")&&(e.useFsEvents=!e.usePolling),ce.canUse()||(e.useFsEvents=!1),b(e,"usePolling")&&!e.useFsEvents&&(e.usePolling=Qs),Js&&(e.usePolling=!0);let i=process.env.CHOKIDAR_USEPOLLING;if(i!==void 0){let c=i.toLowerCase();c==="false"||c==="0"?e.usePolling=!1:c==="true"||c==="1"?e.usePolling=!0:e.usePolling=!!c}let o=process.env.CHOKIDAR_INTERVAL;o&&(e.interval=Number.parseInt(o,10)),b(e,"atomic")&&(e.atomic=!e.usePolling&&!e.useFsEvents),e.atomic&&(this._pendingUnlinks=new Map),b(e,"followSymlinks")&&(e.followSymlinks=!0),b(e,"awaitWriteFinish")&&(e.awaitWriteFinish=!1),e.awaitWriteFinish===!0&&(e.awaitWriteFinish={});let n=e.awaitWriteFinish;n&&(n.stabilityThreshold||(n.stabilityThreshold=2e3),n.pollInterval||(n.pollInterval=100),this._pendingWrites=new Map),e.ignored&&(e.ignored=St(e.ignored));let r=0;this._emitReady=()=>{r++,r>=this._readyCount&&(this._emitReady=$s,this._readyEmitted=!0,process.nextTick(()=>this.emit(Ws)))},this._emitRaw=(...c)=>this.emit(Cs,...c),this._readyEmitted=!1,this.options=e,e.useFsEvents?this._fsEventsHandler=new ce(this):this._nodeFsHandler=new ks(this),Object.freeze(e)}add(t,e,s){let{cwd:i,disableGlobbing:o}=this.options;this.closed=!1;let n=de(t);return i&&(n=n.map(r=>{let c=ei(r,i);return o||!ut(r)?c:Os(c)})),n=n.filter(r=>r.startsWith(gt)?(this._ignoredPaths.add(r.slice(1)),!1):(this._ignoredPaths.delete(r),this._ignoredPaths.delete(r+Et),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=n.length),this.options.persistent&&(this._readyCount*=2),n.forEach(r=>this._fsEventsHandler._addToFsEvents(r))):(this._readyCount||(this._readyCount=0),this._readyCount+=n.length,Promise.all(n.map(async r=>{let c=await this._nodeFsHandler._addToNodeFs(r,!s,0,0,e);return c&&this._emitReady(),c})).then(r=>{this.closed||r.filter(c=>c).forEach(c=>{this.add(m.dirname(c),m.basename(e||c))})})),this}unwatch(t){if(this.closed)return this;let e=de(t),{cwd:s}=this.options;return e.forEach(i=>{!m.isAbsolute(i)&&!this._closers.has(i)&&(s&&(i=m.join(s,i)),i=m.resolve(i)),this._closePath(i),this._ignoredPaths.add(i),this._watched.has(i)&&this._ignoredPaths.add(i+Et),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let t=[];return this._closers.forEach(e=>e.forEach(s=>{let i=s();i instanceof Promise&&t.push(i)})),this._streams.forEach(e=>e.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(e=>e.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(e=>{this[`_${e}`].clear()}),this._closePromise=t.length?Promise.all(t).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let t={};return this._watched.forEach((e,s)=>{let i=this.options.cwd?m.relative(this.options.cwd,s):s;t[i||me]=e.getChildren().sort()}),t}emitWithAll(t,e){this.emit(...e),t!==mt&&this.emit(_t,...e)}async _emit(t,e,s,i,o){if(this.closed)return;let n=this.options;Xs&&(e=m.normalize(e)),n.cwd&&(e=m.relative(n.cwd,e));let r=[t,e];o!==void 0?r.push(s,i,o):i!==void 0?r.push(s,i):s!==void 0&&r.push(s);let c=n.awaitWriteFinish,l;if(c&&(l=this._pendingWrites.get(e)))return l.lastChange=new Date,this;if(n.atomic){if(t===he)return this._pendingUnlinks.set(e,r),setTimeout(()=>{this._pendingUnlinks.forEach((d,h)=>{this.emit(...d),this.emit(_t,...d),this._pendingUnlinks.delete(h)})},typeof n.atomic=="number"?n.atomic:100),this;t===U&&this._pendingUnlinks.has(e)&&(t=r[0]=x,this._pendingUnlinks.delete(e))}if(c&&(t===U||t===x)&&this._readyEmitted){let d=(h,f)=>{h?(t=r[0]=mt,r[1]=h,this.emitWithAll(t,r)):f&&(r.length>2?r[2]=f:r.push(f),this.emitWithAll(t,r))};return this._awaitWriteFinish(e,c.stabilityThreshold,t,d),this}if(t===x&&!this._throttle(x,e,50))return this;if(n.alwaysStat&&s===void 0&&(t===U||t===xs||t===x)){let d=n.cwd?m.join(n.cwd,e):e,h;try{h=await Zs(d)}catch{}if(!h||this.closed)return;r.push(h)}return this.emitWithAll(t,r),this}_handleError(t){let e=t&&t.code;return t&&e!=="ENOENT"&&e!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||e!=="EPERM"&&e!=="EACCES")&&this.emit(mt,t),t||this.closed}_throttle(t,e,s){this._throttled.has(t)||this._throttled.set(t,new Map);let i=this._throttled.get(t),o=i.get(e);if(o)return o.count++,!1;let n,r=()=>{let l=i.get(e),d=l?l.count:0;return i.delete(e),clearTimeout(n),l&&clearTimeout(l.timeoutObject),d};n=setTimeout(r,s);let c={timeoutObject:n,clear:r,count:0};return i.set(e,c),c}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(t,e,s,i){let o,n=t;this.options.cwd&&!m.isAbsolute(t)&&(n=m.join(this.options.cwd,t));let r=new Date,c=l=>{Pt.stat(n,(d,h)=>{if(d||!this._pendingWrites.has(t)){d&&d.code!=="ENOENT"&&i(d);return}let f=Number(new Date);l&&h.size!==l.size&&(this._pendingWrites.get(t).lastChange=f);let _=this._pendingWrites.get(t);f-_.lastChange>=e?(this._pendingWrites.delete(t),i(void 0,h)):o=setTimeout(c,this.options.awaitWriteFinish.pollInterval,h)})};this._pendingWrites.has(t)||(this._pendingWrites.set(t,{lastChange:r,cancelWait:()=>(this._pendingWrites.delete(t),clearTimeout(o),s)}),o=setTimeout(c,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(t,e){if(this.options.atomic&&Ys.test(t))return!0;if(!this._userIgnored){let{cwd:s}=this.options,i=this.options.ignored,o=i&&i.map(ue(s)),n=St(o).filter(c=>typeof c===Dt&&!ut(c)).map(c=>c+Et),r=this._getGlobIgnored().map(ue(s)).concat(o,n);this._userIgnored=pt(r,void 0,yt)}return this._userIgnored([t,e])}_isntIgnored(t,e){return!this._isIgnored(t,e)}_getWatchHelpers(t,e){let s=e||this.options.disableGlobbing||!ut(t)?t:Is(t),i=this.options.followSymlinks;return new Tt(t,s,i,this)}_getWatchedDir(t){this._boundRemove||(this._boundRemove=this._remove.bind(this));let e=m.resolve(t);return this._watched.has(e)||this._watched.set(e,new Rt(e,this._boundRemove)),this._watched.get(e)}_hasReadPermissions(t){if(this.options.ignorePermissionErrors)return!0;let s=(t&&Number.parseInt(t.mode,10))&511;return!!(4&Number.parseInt(s.toString(8)[0],10))}_remove(t,e,s){let i=m.join(t,e),o=m.resolve(i);if(s=s??(this._watched.has(i)||this._watched.has(o)),!this._throttle("remove",i,100))return;!s&&!this.options.useFsEvents&&this._watched.size===1&&this.add(t,e,!0),this._getWatchedDir(i).getChildren().forEach(f=>this._remove(i,f));let c=this._getWatchedDir(t),l=c.has(e);c.remove(e),this._symlinkPaths.has(o)&&this._symlinkPaths.delete(o);let d=i;if(this.options.cwd&&(d=m.relative(this.options.cwd,i)),this.options.awaitWriteFinish&&this._pendingWrites.has(d)&&this._pendingWrites.get(d).cancelWait()===U)return;this._watched.delete(i),this._watched.delete(o);let h=s?Ls:he;l&&!this._isIgnored(i)&&this._emit(h,i),this.options.useFsEvents||this._closePath(i)}_closePath(t){this._closeFile(t);let e=m.dirname(t);this._getWatchedDir(e).remove(m.basename(t))}_closeFile(t){let e=this._closers.get(t);e&&(e.forEach(s=>s()),this._closers.delete(t))}_addPathCloser(t,e){if(!e)return;let s=this._closers.get(t);s||(s=[],this._closers.set(t,s)),s.push(e)}_readdirp(t,e){if(this.closed)return;let s={type:_t,alwaysStat:!0,lstat:!0,...e},i=As(t,s);return this._streams.add(i),i.once(Ms,()=>{i=void 0}),i.once(Vs,()=>{i&&(this._streams.delete(i),i=void 0)}),i}};Ft.FSWatcher=B;var ri=(a,t)=>{let e=new B(t);return e.add(a),e};Ft.watch=ri});export default ni();
|
|
3
|
-
/*! Bundled license information:
|
|
4
|
-
|
|
5
|
-
normalize-path/index.js:
|
|
6
|
-
(*!
|
|
7
|
-
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
8
|
-
*
|
|
9
|
-
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
10
|
-
* Released under the MIT License.
|
|
11
|
-
*)
|
|
12
|
-
*/
|
package/dist/chunk-3LZ6M5C2.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
|
|
2
|
-
import{a as bt,b as Fe}from"./chunk-D7CI46F7.js";import{a as I,c as N,i as h}from"./chunk-MNT4XW23.js";var Pe=N((Sr,Te)=>{"use strict";h();Te.exports=e=>{let t=/^\\\\\?\\/.test(e),r=/[^\u0000-\u0080]+/.test(e);return t||r?e:e.replace(/\\/g,"/")}});var $e=N((vr,Re)=>{"use strict";h();Re.exports=(...e)=>[...new Set([].concat(...e))]});var Le=N(q=>{"use strict";h();var{promisify:xt}=I("util"),Ae=I("fs");async function ie(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return(await xt(Ae[e])(r))[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}function oe(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return Ae[e](r)[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}q.isFile=ie.bind(null,"stat","isFile");q.isDirectory=ie.bind(null,"stat","isDirectory");q.isSymlink=ie.bind(null,"lstat","isSymbolicLink");q.isFileSync=oe.bind(null,"statSync","isFile");q.isDirectorySync=oe.bind(null,"statSync","isDirectory");q.isSymlinkSync=oe.bind(null,"lstatSync","isSymbolicLink")});var Ge=N((Fr,ce)=>{"use strict";h();var M=I("path"),Ne=Le(),De=e=>e.length>1?`{${e.join(",")}}`:e[0],Ie=(e,t)=>{let r=e[0]==="!"?e.slice(1):e;return M.isAbsolute(r)?r:M.join(t,r)},Ot=(e,t)=>M.extname(e)?`**/${e}`:`**/${e}.${De(t)}`,je=(e,t)=>{if(t.files&&!Array.isArray(t.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``);if(t.extensions&&!Array.isArray(t.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``);return t.files&&t.extensions?t.files.map(r=>M.posix.join(e,Ot(r,t.extensions))):t.files?t.files.map(r=>M.posix.join(e,`**/${r}`)):t.extensions?[M.posix.join(e,`**/*.${De(t.extensions)}`)]:[M.posix.join(e,"**")]};ce.exports=async(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=await Promise.all([].concat(e).map(async n=>await Ne.isDirectory(Ie(n,t.cwd))?je(n,t):n));return[].concat.apply([],r)};ce.exports.sync=(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=[].concat(e).map(n=>Ne.isDirectorySync(Ie(n,t.cwd))?je(n,t):n);return[].concat.apply([],r)}});var Ue=N((Pr,Ke)=>{"use strict";h();function Ce(e){return Array.isArray(e)?e:[e]}var ue="",qe=" ",se="\\",Ft=/^\s+$/,Tt=/(?:[^\\]|^)\\$/,Pt=/^\\!/,Rt=/^\\#/,$t=/\r?\n/g,At=/^\.*\/|^\.+$/,ae="/",ke="node-ignore";typeof Symbol<"u"&&(ke=Symbol.for("node-ignore"));var Me=ke,Lt=(e,t,r)=>Object.defineProperty(e,t,{value:r}),Nt=/([0-z])-([0-z])/g,Ye=()=>!1,Dt=e=>e.replace(Nt,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:ue),It=e=>{let{length:t}=e;return e.slice(0,t-t%2)},jt=[[/^\uFEFF/,()=>ue],[/((?:\\\\)*?)(\\?\s+)$/,(e,t,r)=>t+(r.indexOf("\\")===0?qe:ue)],[/(\\+?)\s/g,(e,t)=>{let{length:r}=t;return t.slice(0,r-r%2)+qe}],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>se],[/\\\\/g,()=>se],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,o)=>t===se?`\\[${r}${It(n)}${o}`:o==="]"&&n.length%2===0?`[${Dt(r)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],We=Object.create(null),Gt=(e,t)=>{let r=We[e];return r||(r=jt.reduce((n,[o,s])=>n.replace(o,s.bind(e)),e),We[e]=r),t?new RegExp(r,"i"):new RegExp(r)},de=e=>typeof e=="string",Ct=e=>e&&de(e)&&!Ft.test(e)&&!Tt.test(e)&&e.indexOf("#")!==0,qt=e=>e.split($t),le=class{constructor(t,r,n,o){this.origin=t,this.pattern=r,this.negative=n,this.regex=o}},Mt=(e,t)=>{let r=e,n=!1;e.indexOf("!")===0&&(n=!0,e=e.substr(1)),e=e.replace(Pt,"!").replace(Rt,"#");let o=Gt(e,t);return new le(r,e,n,o)},Wt=(e,t)=>{throw new t(e)},j=(e,t,r)=>de(e)?e?j.isNotRelative(e)?r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),Xe=e=>At.test(e);j.isNotRelative=Xe;j.convert=e=>e;var fe=class{constructor({ignorecase:t=!0,ignoreCase:r=t,allowRelativePaths:n=!1}={}){Lt(this,Me,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[Me]){this._rules=this._rules.concat(t._rules),this._added=!0;return}if(Ct(t)){let r=Mt(t,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(t){return this._added=!1,Ce(de(t)?qt(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,r){let n=!1,o=!1;return this._rules.forEach(s=>{let{negative:d}=s;if(o===d&&n!==o||d&&!n&&!o&&!r)return;s.regex.test(t)&&(n=!d,o=d)}),{ignored:n,unignored:o}}_test(t,r,n,o){let s=t&&j.convert(t);return j(s,t,this._allowRelativePaths?Ye:Wt),this._t(s,r,n,o)}_t(t,r,n,o){if(t in r)return r[t];if(o||(o=t.split(ae)),o.pop(),!o.length)return r[t]=this._testOne(t,n);let s=this._t(o.join(ae)+ae,r,n,o);return r[t]=s.ignored?s:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return Ce(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},U=e=>new fe(e),kt=e=>j(e&&j.convert(e),e,Ye);U.isPathValid=kt;U.default=U;Ke.exports=U;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");j.convert=e;let t=/^[a-z]:\//i;j.isNotRelative=r=>t.test(r)||Xe(r)}});var Ze=N(($r,pe)=>{"use strict";h();var{promisify:Yt}=I("util"),Be=I("fs"),G=I("path"),ze=Fe(),Xt=Ue(),K=Pe(),He=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],Kt=Yt(Be.readFile),Ut=e=>t=>t.startsWith("!")?"!"+G.posix.join(e,t.slice(1)):G.posix.join(e,t),Bt=(e,t)=>{let r=K(G.relative(t.cwd,G.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter(n=>!n.startsWith("#")).map(Ut(r))},Ve=e=>{let t=Xt();for(let r of e)t.add(Bt(r.content,{cwd:r.cwd,fileName:r.filePath}));return t},zt=(e,t)=>{if(e=K(e),G.isAbsolute(t)){if(K(t).startsWith(e))return t;throw new Error(`Path ${t} is not in cwd ${e}`)}return G.join(e,t)},Qe=(e,t)=>r=>e.ignores(K(G.relative(t,zt(t,r.path||r)))),Ht=async(e,t)=>{let r=G.join(t,e),n=await Kt(r,"utf8");return{cwd:t,filePath:r,content:n}},Vt=(e,t)=>{let r=G.join(t,e),n=Be.readFileSync(r,"utf8");return{cwd:t,filePath:r,content:n}},Je=({ignore:e=[],cwd:t=K(process.cwd())}={})=>({ignore:e,cwd:t});pe.exports=async e=>{e=Je(e);let t=await ze("**/.gitignore",{ignore:He.concat(e.ignore),cwd:e.cwd}),r=await Promise.all(t.map(o=>Ht(o,e.cwd))),n=Ve(r);return Qe(n,e.cwd)};pe.exports.sync=e=>{e=Je(e);let r=ze.sync("**/.gitignore",{ignore:He.concat(e.ignore),cwd:e.cwd}).map(o=>Vt(o,e.cwd)),n=Ve(r);return Qe(n,e.cwd)}});var tt=N((Lr,et)=>{"use strict";h();var{Transform:Qt}=I("stream"),B=class extends Qt{constructor(){super({objectMode:!0})}},ye=class extends B{constructor(t){super(),this._filter=t}_transform(t,r,n){this._filter(t)&&this.push(t),n()}},he=class extends B{constructor(){super(),this._pushed=new Set}_transform(t,r,n){this._pushed.has(t)||(this.push(t),this._pushed.add(t)),n()}};et.exports={FilterStream:ye,UniqueStream:he}});var or=N((Dr,W)=>{"use strict";h();var nt=I("fs"),z=$e(),Jt=bt(),H=Fe(),V=Ge(),ge=Ze(),{FilterStream:Zt,UniqueStream:er}=tt(),it=()=>!1,rt=e=>e[0]==="!",tr=e=>{if(!e.every(t=>typeof t=="string"))throw new TypeError("Patterns must be a string or an array of strings")},rr=(e={})=>{if(!e.cwd)return;let t;try{t=nt.statSync(e.cwd)}catch{return}if(!t.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},nr=e=>e.stats instanceof nt.Stats?e.path:e,Q=(e,t)=>{e=z([].concat(e)),tr(e),rr(t);let r=[];t={ignore:[],expandDirectories:!0,...t};for(let[n,o]of e.entries()){if(rt(o))continue;let s=e.slice(n).filter(p=>rt(p)).map(p=>p.slice(1)),d={...t,ignore:t.ignore.concat(s)};r.push({pattern:o,options:d})}return r},ir=(e,t)=>{let r={};return e.options.cwd&&(r.cwd=e.options.cwd),Array.isArray(e.options.expandDirectories)?r={...r,files:e.options.expandDirectories}:typeof e.options.expandDirectories=="object"&&(r={...r,...e.options.expandDirectories}),t(e.pattern,r)},me=(e,t)=>e.options.expandDirectories?ir(e,t):[e.pattern],ot=e=>e&&e.gitignore?ge.sync({cwd:e.cwd,ignore:e.ignore}):it,we=e=>t=>{let{options:r}=e;return r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories&&(r.ignore=V.sync(r.ignore)),{pattern:t,options:r}};W.exports=async(e,t)=>{let r=Q(e,t),n=async()=>t&&t.gitignore?ge({cwd:t.cwd,ignore:t.ignore}):it,o=async()=>{let O=await Promise.all(r.map(async A=>{let i=await me(A,V);return Promise.all(i.map(we(A)))}));return z(...O)},[s,d]=await Promise.all([n(),o()]),p=await Promise.all(d.map(O=>H(O.pattern,O.options)));return z(...p).filter(O=>!s(nr(O)))};W.exports.sync=(e,t)=>{let r=Q(e,t),n=[];for(let d of r){let p=me(d,V.sync).map(we(d));n.push(...p)}let o=ot(t),s=[];for(let d of n)s=z(s,H.sync(d.pattern,d.options));return s.filter(d=>!o(d))};W.exports.stream=(e,t)=>{let r=Q(e,t),n=[];for(let p of r){let O=me(p,V.sync).map(we(p));n.push(...O)}let o=ot(t),s=new Zt(p=>!o(p)),d=new er;return Jt(n.map(p=>H.stream(p.pattern,p.options))).pipe(s).pipe(d)};W.exports.generateGlobTasks=Q;W.exports.hasMagic=(e,t)=>[].concat(e).some(r=>H.isDynamicPattern(r,t));W.exports.gitignore=ge});var st=N((jr,ct)=>{"use strict";h();var C=I("constants"),cr=process.cwd,J=null,sr=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return J||(J=cr.call(process)),J};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Ee=process.chdir,process.chdir=function(e){J=null,Ee.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Ee));var Ee;ct.exports=ar;function ar(e){C.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=d(e.chownSync),e.fchownSync=d(e.fchownSync),e.lchownSync=d(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=p(e.stat),e.fstat=p(e.fstat),e.lstat=p(e.lstat),e.statSync=O(e.statSync),e.fstatSync=O(e.fstatSync),e.lstatSync=O(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(i,f,u){u&&process.nextTick(u)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(i,f,u,c){c&&process.nextTick(c)},e.lchownSync=function(){}),sr==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(i){function f(u,c,l){var E=Date.now(),m=0;i(u,c,function _(D){if(D&&(D.code==="EACCES"||D.code==="EPERM")&&Date.now()-E<6e4){setTimeout(function(){e.stat(c,function(L,X){L&&L.code==="ENOENT"?i(u,c,_):l(D)})},m),m<100&&(m+=10);return}l&&l(D)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,i),f}(e.rename)),e.read=typeof e.read!="function"?e.read:function(i){function f(u,c,l,E,m,_){var D;if(_&&typeof _=="function"){var L=0;D=function(X,xe,Oe){if(X&&X.code==="EAGAIN"&&L<10)return L++,i.call(e,u,c,l,E,m,D);_.apply(this,arguments)}}return i.call(e,u,c,l,E,m,D)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,i),f}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(i){return function(f,u,c,l,E){for(var m=0;;)try{return i.call(e,f,u,c,l,E)}catch(_){if(_.code==="EAGAIN"&&m<10){m++;continue}throw _}}}(e.readSync);function t(i){i.lchmod=function(f,u,c){i.open(f,C.O_WRONLY|C.O_SYMLINK,u,function(l,E){if(l){c&&c(l);return}i.fchmod(E,u,function(m){i.close(E,function(_){c&&c(m||_)})})})},i.lchmodSync=function(f,u){var c=i.openSync(f,C.O_WRONLY|C.O_SYMLINK,u),l=!0,E;try{E=i.fchmodSync(c,u),l=!1}finally{if(l)try{i.closeSync(c)}catch{}else i.closeSync(c)}return E}}function r(i){C.hasOwnProperty("O_SYMLINK")&&i.futimes?(i.lutimes=function(f,u,c,l){i.open(f,C.O_SYMLINK,function(E,m){if(E){l&&l(E);return}i.futimes(m,u,c,function(_){i.close(m,function(D){l&&l(_||D)})})})},i.lutimesSync=function(f,u,c){var l=i.openSync(f,C.O_SYMLINK),E,m=!0;try{E=i.futimesSync(l,u,c),m=!1}finally{if(m)try{i.closeSync(l)}catch{}else i.closeSync(l)}return E}):i.futimes&&(i.lutimes=function(f,u,c,l){l&&process.nextTick(l)},i.lutimesSync=function(){})}function n(i){return i&&function(f,u,c){return i.call(e,f,u,function(l){A(l)&&(l=null),c&&c.apply(this,arguments)})}}function o(i){return i&&function(f,u){try{return i.call(e,f,u)}catch(c){if(!A(c))throw c}}}function s(i){return i&&function(f,u,c,l){return i.call(e,f,u,c,function(E){A(E)&&(E=null),l&&l.apply(this,arguments)})}}function d(i){return i&&function(f,u,c){try{return i.call(e,f,u,c)}catch(l){if(!A(l))throw l}}}function p(i){return i&&function(f,u,c){typeof u=="function"&&(c=u,u=null);function l(E,m){m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),c&&c.apply(this,arguments)}return u?i.call(e,f,u,l):i.call(e,f,l)}}function O(i){return i&&function(f,u){var c=u?i.call(e,f,u):i.call(e,f);return c&&(c.uid<0&&(c.uid+=4294967296),c.gid<0&&(c.gid+=4294967296)),c}}function A(i){if(!i||i.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(i.code==="EINVAL"||i.code==="EPERM"))}}});var lt=N((Cr,ut)=>{"use strict";h();var at=I("stream").Stream;ut.exports=ur;function ur(e){return{ReadStream:t,WriteStream:r};function t(n,o){if(!(this instanceof t))return new t(n,o);at.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,o=o||{};for(var d=Object.keys(o),p=0,O=d.length;p<O;p++){var A=d[p];this[A]=o[A]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(i,f){if(i){s.emit("error",i),s.readable=!1;return}s.fd=f,s.emit("open",f),s._read()})}function r(n,o){if(!(this instanceof r))return new r(n,o);at.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var s=Object.keys(o),d=0,p=s.length;d<p;d++){var O=s[d];this[O]=o[O]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var dt=N((Mr,ft)=>{"use strict";h();ft.exports=fr;var lr=Object.getPrototypeOf||function(e){return e.__proto__};function fr(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:lr(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var gr=N((kr,ve)=>{"use strict";h();var b=I("fs"),dr=st(),pr=lt(),yr=dt(),Z=I("util"),$,te;typeof Symbol=="function"&&typeof Symbol.for=="function"?($=Symbol.for("graceful-fs.queue"),te=Symbol.for("graceful-fs.previous")):($="___graceful-fs.queue",te="___graceful-fs.previous");function hr(){}function ht(e,t){Object.defineProperty(e,$,{get:function(){return t}})}var k=hr;Z.debuglog?k=Z.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(k=function(){var e=Z.format.apply(Z,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
3
|
-
GFS4: `),console.error(e)});b[$]||(pt=global[$]||[],ht(b,pt),b.close=function(e){function t(r,n){return e.call(b,r,function(o){o||yt(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,te,{value:e}),t}(b.close),b.closeSync=function(e){function t(r){e.apply(b,arguments),yt()}return Object.defineProperty(t,te,{value:e}),t}(b.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){k(b[$]),I("assert").equal(b[$].length,0)}));var pt;global[$]||ht(global,b[$]);ve.exports=Se(yr(b));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!b.__patched&&(ve.exports=Se(b),b.__patched=!0);function Se(e){dr(e),e.gracefulify=Se,e.createReadStream=xe,e.createWriteStream=Oe;var t=e.readFile;e.readFile=r;function r(a,g,y){return typeof g=="function"&&(y=g,g=null),T(a,g,y);function T(P,F,v,x){return t(P,F,function(w){w&&(w.code==="EMFILE"||w.code==="ENFILE")?Y([T,[P,F,v],w,x||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=o;function o(a,g,y,T){return typeof y=="function"&&(T=y,y=null),P(a,g,y,T);function P(F,v,x,w,R){return n(F,v,x,function(S){S&&(S.code==="EMFILE"||S.code==="ENFILE")?Y([P,[F,v,x,w],S,R||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=d);function d(a,g,y,T){return typeof y=="function"&&(T=y,y=null),P(a,g,y,T);function P(F,v,x,w,R){return s(F,v,x,function(S){S&&(S.code==="EMFILE"||S.code==="ENFILE")?Y([P,[F,v,x,w],S,R||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}var p=e.copyFile;p&&(e.copyFile=O);function O(a,g,y,T){return typeof y=="function"&&(T=y,y=0),P(a,g,y,T);function P(F,v,x,w,R){return p(F,v,x,function(S){S&&(S.code==="EMFILE"||S.code==="ENFILE")?Y([P,[F,v,x,w],S,R||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}var A=e.readdir;e.readdir=f;var i=/^v[0-5]\./;function f(a,g,y){typeof g=="function"&&(y=g,g=null);var T=i.test(process.version)?function(v,x,w,R){return A(v,P(v,x,w,R))}:function(v,x,w,R){return A(v,x,P(v,x,w,R))};return T(a,g,y);function P(F,v,x,w){return function(R,S){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Y([T,[F,v,x],R,w||Date.now(),Date.now()]):(S&&S.sort&&S.sort(),typeof x=="function"&&x.call(this,R,S))}}}if(process.version.substr(0,4)==="v0.8"){var u=pr(e);_=u.ReadStream,L=u.WriteStream}var c=e.ReadStream;c&&(_.prototype=Object.create(c.prototype),_.prototype.open=D);var l=e.WriteStream;l&&(L.prototype=Object.create(l.prototype),L.prototype.open=X),Object.defineProperty(e,"ReadStream",{get:function(){return _},set:function(a){_=a},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return L},set:function(a){L=a},enumerable:!0,configurable:!0});var E=_;Object.defineProperty(e,"FileReadStream",{get:function(){return E},set:function(a){E=a},enumerable:!0,configurable:!0});var m=L;Object.defineProperty(e,"FileWriteStream",{get:function(){return m},set:function(a){m=a},enumerable:!0,configurable:!0});function _(a,g){return this instanceof _?(c.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}function D(){var a=this;ne(a.path,a.flags,a.mode,function(g,y){g?(a.autoClose&&a.destroy(),a.emit("error",g)):(a.fd=y,a.emit("open",y),a.read())})}function L(a,g){return this instanceof L?(l.apply(this,arguments),this):L.apply(Object.create(L.prototype),arguments)}function X(){var a=this;ne(a.path,a.flags,a.mode,function(g,y){g?(a.destroy(),a.emit("error",g)):(a.fd=y,a.emit("open",y))})}function xe(a,g){return new e.ReadStream(a,g)}function Oe(a,g){return new e.WriteStream(a,g)}var vt=e.open;e.open=ne;function ne(a,g,y,T){return typeof y=="function"&&(T=y,y=null),P(a,g,y,T);function P(F,v,x,w,R){return vt(F,v,x,function(S,Er){S&&(S.code==="EMFILE"||S.code==="ENFILE")?Y([P,[F,v,x,w],S,R||Date.now(),Date.now()]):typeof w=="function"&&w.apply(this,arguments)})}}return e}function Y(e){k("ENQUEUE",e[0].name,e[1]),b[$].push(e),_e()}var ee;function yt(){for(var e=Date.now(),t=0;t<b[$].length;++t)b[$][t].length>2&&(b[$][t][3]=e,b[$][t][4]=e);_e()}function _e(){if(clearTimeout(ee),ee=void 0,b[$].length!==0){var e=b[$].shift(),t=e[0],r=e[1],n=e[2],o=e[3],s=e[4];if(o===void 0)k("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-o>=6e4){k("TIMEOUT",t.name,r);var d=r.pop();typeof d=="function"&&d.call(null,n)}else{var p=Date.now()-s,O=Math.max(s-o,1),A=Math.min(O*1.2,100);p>=A?(k("RETRY",t.name,r),t.apply(null,r.concat([o]))):b[$].push(e)}ee===void 0&&(ee=setTimeout(_e,0))}}});var mr=N((Xr,gt)=>{"use strict";h();gt.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var Et=N((Ur,wt)=>{"use strict";h();wt.exports=mt;function mt(e,t){if(e&&t)return mt(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){r[n]=e[n]}),r;function r(){for(var n=new Array(arguments.length),o=0;o<n.length;o++)n[o]=arguments[o];var s=e.apply(this,n),d=n[n.length-1];return typeof s=="function"&&s!==d&&Object.keys(d).forEach(function(p){s[p]=d[p]}),s}}});var wr=N((zr,be)=>{"use strict";h();var St=Et();be.exports=St(re);be.exports.strict=St(_t);re.proto=re(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return re(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return _t(this)},configurable:!0})});function re(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function _t(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});export{mr as a,Pe as b,or as c,gr as d,Et as e,wr as f};
|
package/dist/chunk-D7CI46F7.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
|
|
2
|
-
import{b as wn,c as Tn,d as kn,e as On}from"./chunk-UASQ33JG.js";import{a as v,c,i as o}from"./chunk-MNT4XW23.js";var Wt=c(Y=>{"use strict";o();Object.defineProperty(Y,"__esModule",{value:!0});Y.splitWhen=Y.flatten=void 0;function Dn(t){return t.reduce((e,r)=>[].concat(e,r),[])}Y.flatten=Dn;function Mn(t,e){let r=[[]],n=0;for(let s of t)e(s)?(n++,r[n]=[]):r[n].push(s);return r}Y.splitWhen=Mn});var Vt=c(K=>{"use strict";o();Object.defineProperty(K,"__esModule",{value:!0});K.isEnoentCodeError=void 0;function qn(t){return t.code==="ENOENT"}K.isEnoentCodeError=qn});var Ct=c(z=>{"use strict";o();Object.defineProperty(z,"__esModule",{value:!0});z.createDirentFromStats=void 0;var Se=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function An(t,e){return new Se(t,e)}z.createDirentFromStats=An});var Gt=c(P=>{"use strict";o();Object.defineProperty(P,"__esModule",{value:!0});P.convertPosixPathToPattern=P.convertWindowsPathToPattern=P.convertPathToPattern=P.escapePosixPath=P.escapeWindowsPath=P.escape=P.removeLeadingDotSegment=P.makeAbsolute=P.unixify=void 0;var Fn=v("os"),Rn=v("path"),Yt=Fn.platform()==="win32",Ln=2,xn=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,jn=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,In=/^\\\\([.?])/,Bn=/\\(?![!()+@[\]{}])/g;function Nn(t){return t.replace(/\\/g,"/")}P.unixify=Nn;function Wn(t,e){return Rn.resolve(t,e)}P.makeAbsolute=Wn;function Vn(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(Ln)}return t}P.removeLeadingDotSegment=Vn;P.escape=Yt?Pe:ve;function Pe(t){return t.replace(jn,"\\$2")}P.escapeWindowsPath=Pe;function ve(t){return t.replace(xn,"\\$2")}P.escapePosixPath=ve;P.convertPathToPattern=Yt?Ut:Ht;function Ut(t){return Pe(t).replace(In,"//$1").replace(Bn,"/")}P.convertWindowsPathToPattern=Ut;function Ht(t){return ve(t)}P.convertPosixPathToPattern=Ht});var zt=c((So,Kt)=>{"use strict";o();var $t=v("util"),Xt=Tn(),q=On(),Ee=kn(),Qt=t=>t===""||t==="./",Jt=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},m=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,s=new Set,i=new Set,a=0,d=u=>{i.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<e.length;u++){let _=q(String(e[u]),{...r,onResult:d},!0),p=_.state.negated||_.state.negatedExtglob;p&&a++;for(let R of t){let g=_(R,!0);(p?!g.isMatch:g.isMatch)&&(p?n.add(g.output):(n.delete(g.output),s.add(g.output)))}}let f=(a===e.length?[...i]:[...s]).filter(u=>!n.has(u));if(r&&f.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(u=>u.replace(/\\/g,"")):e}return f};m.match=m;m.matcher=(t,e)=>q(t,e);m.isMatch=(t,e,r)=>q(e,r)(t);m.any=m.isMatch;m.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,s=[],i=d=>{r.onResult&&r.onResult(d),s.push(d.output)},a=new Set(m(t,e,{...r,onResult:i}));for(let d of s)a.has(d)||n.add(d);return[...n]};m.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${$t.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>m.contains(t,n,r));if(typeof e=="string"){if(Qt(t)||Qt(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return m.isMatch(t,e,{...r,contains:!0})};m.matchKeys=(t,e,r)=>{if(!Ee.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=m(Object.keys(t),e,r),s={};for(let i of n)s[i]=t[i];return s};m.some=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(n.some(a=>i(a)))return!0}return!1};m.every=(t,e,r)=>{let n=[].concat(t);for(let s of[].concat(e)){let i=q(String(s),r);if(!n.every(a=>i(a)))return!1}return!0};m.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${$t.inspect(t)}"`);return[].concat(e).every(n=>q(n,r)(t))};m.capture=(t,e,r)=>{let n=Ee.isWindows(r),i=q.makeRe(String(t),{...r,capture:!0}).exec(n?Ee.toPosixSlashes(e):e);if(i)return i.slice(1).map(a=>a===void 0?"":a)};m.makeRe=(...t)=>q.makeRe(...t);m.scan=(...t)=>q.scan(...t);m.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let s of Xt(String(n),e))r.push(q.parse(s,e));return r};m.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!Jt(t)?[t]:Xt(t,e)};m.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return m.braces(t,{...e,expand:!0})};m.hasBraces=Jt;Kt.exports=m});var ur=c(l=>{"use strict";o();Object.defineProperty(l,"__esModule",{value:!0});l.isAbsolute=l.partitionAbsoluteAndRelative=l.removeDuplicateSlashes=l.matchAny=l.convertPatternsToRe=l.makeRe=l.getPatternParts=l.expandBraceExpansion=l.expandPatternsWithBraceExpansion=l.isAffectDepthOfReadingPattern=l.endsWithSlashGlobStar=l.hasGlobStar=l.getBaseDirectory=l.isPatternRelatedToParentDirectory=l.getPatternsOutsideCurrentDirectory=l.getPatternsInsideCurrentDirectory=l.getPositivePatterns=l.getNegativePatterns=l.isPositivePattern=l.isNegativePattern=l.convertToNegativePattern=l.convertToPositivePattern=l.isDynamicPattern=l.isStaticPattern=void 0;var Zt=v("path"),Cn=wn(),be=zt(),er="**",Yn="\\",Un=/[*?]|^!/,Hn=/\[[^[]*]/,Gn=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Qn=/[!*+?@]\([^(]*\)/,$n=/,|\.\./,Xn=/(?!^)\/{2,}/g;function tr(t,e={}){return!rr(t,e)}l.isStaticPattern=tr;function rr(t,e={}){return t===""?!1:!!(e.caseSensitiveMatch===!1||t.includes(Yn)||Un.test(t)||Hn.test(t)||Gn.test(t)||e.extglob!==!1&&Qn.test(t)||e.braceExpansion!==!1&&Jn(t))}l.isDynamicPattern=rr;function Jn(t){let e=t.indexOf("{");if(e===-1)return!1;let r=t.indexOf("}",e+1);if(r===-1)return!1;let n=t.slice(e,r);return $n.test(n)}function Kn(t){return Z(t)?t.slice(1):t}l.convertToPositivePattern=Kn;function zn(t){return"!"+t}l.convertToNegativePattern=zn;function Z(t){return t.startsWith("!")&&t[1]!=="("}l.isNegativePattern=Z;function nr(t){return!Z(t)}l.isPositivePattern=nr;function Zn(t){return t.filter(Z)}l.getNegativePatterns=Zn;function es(t){return t.filter(nr)}l.getPositivePatterns=es;function ts(t){return t.filter(e=>!we(e))}l.getPatternsInsideCurrentDirectory=ts;function rs(t){return t.filter(we)}l.getPatternsOutsideCurrentDirectory=rs;function we(t){return t.startsWith("..")||t.startsWith("./..")}l.isPatternRelatedToParentDirectory=we;function ns(t){return Cn(t,{flipBackslashes:!1})}l.getBaseDirectory=ns;function ss(t){return t.includes(er)}l.hasGlobStar=ss;function sr(t){return t.endsWith("/"+er)}l.endsWithSlashGlobStar=sr;function is(t){let e=Zt.basename(t);return sr(t)||tr(e)}l.isAffectDepthOfReadingPattern=is;function os(t){return t.reduce((e,r)=>e.concat(ir(r)),[])}l.expandPatternsWithBraceExpansion=os;function ir(t){let e=be.braces(t,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((r,n)=>r.length-n.length),e.filter(r=>r!=="")}l.expandBraceExpansion=ir;function as(t,e){let{parts:r}=be.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return r.length===0&&(r=[t]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}l.getPatternParts=as;function or(t,e){return be.makeRe(t,e)}l.makeRe=or;function us(t,e){return t.map(r=>or(r,e))}l.convertPatternsToRe=us;function cs(t,e){return e.some(r=>r.test(t))}l.matchAny=cs;function ls(t){return t.replace(Xn,"/")}l.removeDuplicateSlashes=ls;function hs(t){let e=[],r=[];for(let n of t)ar(n)?e.push(n):r.push(n);return[e,r]}l.partitionAbsoluteAndRelative=hs;function ar(t){return Zt.isAbsolute(t)}l.isAbsolute=ar});var fr=c((bo,hr)=>{"use strict";o();var fs=v("stream"),cr=fs.PassThrough,ds=Array.prototype.slice;hr.exports=_s;function _s(){let t=[],e=ds.call(arguments),r=!1,n=e[e.length-1];n&&!Array.isArray(n)&&n.pipe==null?e.pop():n={};let s=n.end!==!1,i=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let a=cr(n);function d(){for(let u=0,_=arguments.length;u<_;u++)t.push(lr(arguments[u],n));return h(),this}function h(){if(r)return;r=!0;let u=t.shift();if(!u){process.nextTick(f);return}Array.isArray(u)||(u=[u]);let _=u.length+1;function p(){--_>0||(r=!1,h())}function R(g){function O(){g.removeListener("merge2UnpipeEnd",O),g.removeListener("end",O),i&&g.removeListener("error",J),p()}function J($){a.emit("error",$)}if(g._readableState.endEmitted)return p();g.on("merge2UnpipeEnd",O),g.on("end",O),i&&g.on("error",J),g.pipe(a,{end:!1}),g.resume()}for(let g=0;g<u.length;g++)R(u[g]);p()}function f(){r=!1,a.emit("queueDrain"),s&&a.end()}return a.setMaxListeners(0),a.add=d,a.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),e.length&&d.apply(null,e),a}function lr(t,e){if(Array.isArray(t))for(let r=0,n=t.length;r<n;r++)t[r]=lr(t[r],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(cr(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}});var _r=c(ee=>{"use strict";o();Object.defineProperty(ee,"__esModule",{value:!0});ee.merge=void 0;var ps=fr();function gs(t){let e=ps(t);return t.forEach(r=>{r.once("error",n=>e.emit("error",n))}),e.once("close",()=>dr(t)),e.once("end",()=>dr(t)),e}ee.merge=gs;function dr(t){t.forEach(e=>e.emit("close"))}});var pr=c(U=>{"use strict";o();Object.defineProperty(U,"__esModule",{value:!0});U.isEmpty=U.isString=void 0;function ms(t){return typeof t=="string"}U.isString=ms;function ys(t){return t===""}U.isEmpty=ys});var L=c(E=>{"use strict";o();Object.defineProperty(E,"__esModule",{value:!0});E.string=E.stream=E.pattern=E.path=E.fs=E.errno=E.array=void 0;var Ss=Wt();E.array=Ss;var Ps=Vt();E.errno=Ps;var vs=Ct();E.fs=vs;var Es=Gt();E.path=Es;var bs=ur();E.pattern=bs;var ws=_r();E.stream=ws;var Ts=pr();E.string=Ts});var Sr=c(b=>{"use strict";o();Object.defineProperty(b,"__esModule",{value:!0});b.convertPatternGroupToTask=b.convertPatternGroupsToTasks=b.groupPatternsByBaseDirectory=b.getNegativePatternsAsPositive=b.getPositivePatterns=b.convertPatternsToTasks=b.generate=void 0;var D=L();function ks(t,e){let r=gr(t,e),n=gr(e.ignore,e),s=mr(r),i=yr(r,n),a=s.filter(u=>D.pattern.isStaticPattern(u,e)),d=s.filter(u=>D.pattern.isDynamicPattern(u,e)),h=Te(a,i,!1),f=Te(d,i,!0);return h.concat(f)}b.generate=ks;function gr(t,e){let r=t;return e.braceExpansion&&(r=D.pattern.expandPatternsWithBraceExpansion(r)),e.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>D.pattern.removeDuplicateSlashes(n))}function Te(t,e,r){let n=[],s=D.pattern.getPatternsOutsideCurrentDirectory(t),i=D.pattern.getPatternsInsideCurrentDirectory(t),a=ke(s),d=ke(i);return n.push(...Oe(a,e,r)),"."in d?n.push(De(".",i,e,r)):n.push(...Oe(d,e,r)),n}b.convertPatternsToTasks=Te;function mr(t){return D.pattern.getPositivePatterns(t)}b.getPositivePatterns=mr;function yr(t,e){return D.pattern.getNegativePatterns(t).concat(e).map(D.pattern.convertToPositivePattern)}b.getNegativePatternsAsPositive=yr;function ke(t){let e={};return t.reduce((r,n)=>{let s=D.pattern.getBaseDirectory(n);return s in r?r[s].push(n):r[s]=[n],r},e)}b.groupPatternsByBaseDirectory=ke;function Oe(t,e,r){return Object.keys(t).map(n=>De(n,t[n],e,r))}b.convertPatternGroupsToTasks=Oe;function De(t,e,r,n){return{dynamic:n,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(D.pattern.convertToNegativePattern))}}b.convertPatternGroupToTask=De});var vr=c(te=>{"use strict";o();Object.defineProperty(te,"__esModule",{value:!0});te.read=void 0;function Os(t,e,r){e.fs.lstat(t,(n,s)=>{if(n!==null){Pr(r,n);return}if(!s.isSymbolicLink()||!e.followSymbolicLink){Me(r,s);return}e.fs.stat(t,(i,a)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){Pr(r,i);return}Me(r,s);return}e.markSymbolicLink&&(a.isSymbolicLink=()=>!0),Me(r,a)})})}te.read=Os;function Pr(t,e){t(e)}function Me(t,e){t(null,e)}});var Er=c(re=>{"use strict";o();Object.defineProperty(re,"__esModule",{value:!0});re.read=void 0;function Ds(t,e){let r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink)return r;try{let n=e.fs.statSync(t);return e.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!e.throwErrorOnBrokenSymbolicLink)return r;throw n}}re.read=Ds});var br=c(x=>{"use strict";o();Object.defineProperty(x,"__esModule",{value:!0});x.createFileSystemAdapter=x.FILE_SYSTEM_ADAPTER=void 0;var ne=v("fs");x.FILE_SYSTEM_ADAPTER={lstat:ne.lstat,stat:ne.stat,lstatSync:ne.lstatSync,statSync:ne.statSync};function Ms(t){return t===void 0?x.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},x.FILE_SYSTEM_ADAPTER),t)}x.createFileSystemAdapter=Ms});var wr=c(Ae=>{"use strict";o();Object.defineProperty(Ae,"__esModule",{value:!0});var qs=br(),qe=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=qs.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(e,r){return e??r}};Ae.default=qe});var C=c(j=>{"use strict";o();Object.defineProperty(j,"__esModule",{value:!0});j.statSync=j.stat=j.Settings=void 0;var Tr=vr(),As=Er(),Fe=wr();j.Settings=Fe.default;function Fs(t,e,r){if(typeof e=="function"){Tr.read(t,Re(),e);return}Tr.read(t,Re(e),r)}j.stat=Fs;function Rs(t,e){let r=Re(e);return As.read(t,r)}j.statSync=Rs;function Re(t={}){return t instanceof Fe.default?t:new Fe.default(t)}});var Dr=c((Yo,Or)=>{"use strict";o();var kr;Or.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):t=>(kr||(kr=Promise.resolve())).then(t).catch(e=>setTimeout(()=>{throw e},0))});var qr=c((Ho,Mr)=>{"use strict";o();Mr.exports=xs;var Ls=Dr();function xs(t,e){let r,n,s,i=!0;Array.isArray(t)?(r=[],n=t.length):(s=Object.keys(t),r={},n=s.length);function a(h){function f(){e&&e(h,r),e=null}i?Ls(f):f()}function d(h,f,u){r[h]=u,(--n===0||f)&&a(f)}n?s?s.forEach(function(h){t[h](function(f,u){d(h,f,u)})}):t.forEach(function(h,f){h(function(u,_){d(f,u,_)})}):a(null),i=!1}});var Le=c(ie=>{"use strict";o();Object.defineProperty(ie,"__esModule",{value:!0});ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var se=process.versions.node.split(".");if(se[0]===void 0||se[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Ar=Number.parseInt(se[0],10),js=Number.parseInt(se[1],10),Fr=10,Is=10,Bs=Ar>Fr,Ns=Ar===Fr&&js>=Is;ie.IS_SUPPORT_READDIR_WITH_FILE_TYPES=Bs||Ns});var Rr=c(oe=>{"use strict";o();Object.defineProperty(oe,"__esModule",{value:!0});oe.createDirentFromStats=void 0;var xe=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Ws(t,e){return new xe(t,e)}oe.createDirentFromStats=Ws});var je=c(ae=>{"use strict";o();Object.defineProperty(ae,"__esModule",{value:!0});ae.fs=void 0;var Vs=Rr();ae.fs=Vs});var Ie=c(ue=>{"use strict";o();Object.defineProperty(ue,"__esModule",{value:!0});ue.joinPathSegments=void 0;function Cs(t,e,r){return t.endsWith(r)?t+e:t+r+e}ue.joinPathSegments=Cs});var Nr=c(I=>{"use strict";o();Object.defineProperty(I,"__esModule",{value:!0});I.readdir=I.readdirWithFileTypes=I.read=void 0;var Ys=C(),Lr=qr(),Us=Le(),xr=je(),jr=Ie();function Hs(t,e,r){if(!e.stats&&Us.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Ir(t,e,r);return}Br(t,e,r)}I.read=Hs;function Ir(t,e,r){e.fs.readdir(t,{withFileTypes:!0},(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(d=>({dirent:d,name:d.name,path:jr.joinPathSegments(t,d.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){Be(r,i);return}let a=i.map(d=>Gs(d,e));Lr(a,(d,h)=>{if(d!==null){ce(r,d);return}Be(r,h)})})}I.readdirWithFileTypes=Ir;function Gs(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,(n,s)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=xr.fs.createDirentFromStats(t.name,s),r(null,t)})}}function Br(t,e,r){e.fs.readdir(t,(n,s)=>{if(n!==null){ce(r,n);return}let i=s.map(a=>{let d=jr.joinPathSegments(t,a,e.pathSegmentSeparator);return h=>{Ys.stat(d,e.fsStatSettings,(f,u)=>{if(f!==null){h(f);return}let _={name:a,path:d,dirent:xr.fs.createDirentFromStats(a,u)};e.stats&&(_.stats=u),h(null,_)})}});Lr(i,(a,d)=>{if(a!==null){ce(r,a);return}Be(r,d)})})}I.readdir=Br;function ce(t,e){t(e)}function Be(t,e){t(null,e)}});var Ur=c(B=>{"use strict";o();Object.defineProperty(B,"__esModule",{value:!0});B.readdir=B.readdirWithFileTypes=B.read=void 0;var Qs=C(),$s=Le(),Wr=je(),Vr=Ie();function Xs(t,e){return!e.stats&&$s.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Cr(t,e):Yr(t,e)}B.read=Xs;function Cr(t,e){return e.fs.readdirSync(t,{withFileTypes:!0}).map(n=>{let s={dirent:n,name:n.name,path:Vr.joinPathSegments(t,n.name,e.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let i=e.fs.statSync(s.path);s.dirent=Wr.fs.createDirentFromStats(s.name,i)}catch(i){if(e.throwErrorOnBrokenSymbolicLink)throw i}return s})}B.readdirWithFileTypes=Cr;function Yr(t,e){return e.fs.readdirSync(t).map(n=>{let s=Vr.joinPathSegments(t,n,e.pathSegmentSeparator),i=Qs.statSync(s,e.fsStatSettings),a={name:n,path:s,dirent:Wr.fs.createDirentFromStats(n,i)};return e.stats&&(a.stats=i),a})}B.readdir=Yr});var Hr=c(N=>{"use strict";o();Object.defineProperty(N,"__esModule",{value:!0});N.createFileSystemAdapter=N.FILE_SYSTEM_ADAPTER=void 0;var H=v("fs");N.FILE_SYSTEM_ADAPTER={lstat:H.lstat,stat:H.stat,lstatSync:H.lstatSync,statSync:H.statSync,readdir:H.readdir,readdirSync:H.readdirSync};function Js(t){return t===void 0?N.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},N.FILE_SYSTEM_ADAPTER),t)}N.createFileSystemAdapter=Js});var Gr=c(We=>{"use strict";o();Object.defineProperty(We,"__esModule",{value:!0});var Ks=v("path"),zs=C(),Zs=Hr(),Ne=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Zs.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Ks.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new zs.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};We.default=Ne});var le=c(W=>{"use strict";o();Object.defineProperty(W,"__esModule",{value:!0});W.Settings=W.scandirSync=W.scandir=void 0;var Qr=Nr(),ei=Ur(),Ve=Gr();W.Settings=Ve.default;function ti(t,e,r){if(typeof e=="function"){Qr.read(t,Ce(),e);return}Qr.read(t,Ce(e),r)}W.scandir=ti;function ri(t,e){let r=Ce(e);return ei.read(t,r)}W.scandirSync=ri;function Ce(t={}){return t instanceof Ve.default?t:new Ve.default(t)}});var Xr=c((ha,$r)=>{"use strict";o();function ni(t){var e=new t,r=e;function n(){var i=e;return i.next?e=i.next:(e=new t,r=e),i.next=null,i}function s(i){r.next=i,r=i}return{get:n,release:s}}$r.exports=ni});var Kr=c((da,Ye)=>{"use strict";o();var si=Xr();function Jr(t,e,r){if(typeof t=="function"&&(r=e,e=t,t=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=si(ii),s=null,i=null,a=0,d=null,h={push:O,drain:T,saturated:T,pause:u,paused:!1,concurrency:r,running:f,resume:R,idle:g,length:_,getQueue:p,unshift:J,empty:T,kill:vn,killAndDrain:En,error:bn};return h;function f(){return a}function u(){h.paused=!0}function _(){for(var S=s,w=0;S;)S=S.next,w++;return w}function p(){for(var S=s,w=[];S;)w.push(S.value),S=S.next;return w}function R(){if(h.paused){h.paused=!1;for(var S=0;S<h.concurrency;S++)a++,$()}}function g(){return a===0&&h.length()===0}function O(S,w){var y=n.get();y.context=t,y.release=$,y.value=S,y.callback=w||T,y.errorHandler=d,a===h.concurrency||h.paused?i?(i.next=y,i=y):(s=y,i=y,h.saturated()):(a++,e.call(t,y.value,y.worked))}function J(S,w){var y=n.get();y.context=t,y.release=$,y.value=S,y.callback=w||T,a===h.concurrency||h.paused?s?(y.next=s,s=y):(s=y,i=y,h.saturated()):(a++,e.call(t,y.value,y.worked))}function $(S){S&&n.release(S);var w=s;w?h.paused?a--:(i===s&&(i=null),s=w.next,w.next=null,e.call(t,w.value,w.worked),i===null&&h.empty()):--a===0&&h.drain()}function vn(){s=null,i=null,h.drain=T}function En(){s=null,i=null,h.drain(),h.drain=T}function bn(S){d=S}}function T(){}function ii(){this.value=null,this.callback=T,this.next=null,this.release=T,this.context=null,this.errorHandler=null;var t=this;this.worked=function(r,n){var s=t.callback,i=t.errorHandler,a=t.value;t.value=null,t.callback=T,t.errorHandler&&i(r,a),s.call(t.context,r,n),t.release(t)}}function oi(t,e,r){typeof t=="function"&&(r=e,e=t,t=null);function n(u,_){e.call(this,u).then(function(p){_(null,p)},_)}var s=Jr(t,n,r),i=s.push,a=s.unshift;return s.push=d,s.unshift=h,s.drained=f,s;function d(u){var _=new Promise(function(p,R){i(u,function(g,O){if(g){R(g);return}p(O)})});return _.catch(T),_}function h(u){var _=new Promise(function(p,R){a(u,function(g,O){if(g){R(g);return}p(O)})});return _.catch(T),_}function f(){var u=s.drain,_=new Promise(function(p){s.drain=function(){u(),p()}});return _}}Ye.exports=Jr;Ye.exports.promise=oi});var he=c(A=>{"use strict";o();Object.defineProperty(A,"__esModule",{value:!0});A.joinPathSegments=A.replacePathSegmentSeparator=A.isAppliedFilter=A.isFatalError=void 0;function ai(t,e){return t.errorFilter===null?!0:!t.errorFilter(e)}A.isFatalError=ai;function ui(t,e){return t===null||t(e)}A.isAppliedFilter=ui;function ci(t,e){return t.split(/[/\\]/).join(e)}A.replacePathSegmentSeparator=ci;function li(t,e,r){return t===""?e:t.endsWith(r)?t+e:t+r+e}A.joinPathSegments=li});var Ge=c(He=>{"use strict";o();Object.defineProperty(He,"__esModule",{value:!0});var hi=he(),Ue=class{constructor(e,r){this._root=e,this._settings=r,this._root=hi.replacePathSegmentSeparator(e,r.pathSegmentSeparator)}};He.default=Ue});var Xe=c($e=>{"use strict";o();Object.defineProperty($e,"__esModule",{value:!0});var fi=v("events"),di=le(),_i=Kr(),fe=he(),pi=Ge(),Qe=class extends pi.default{constructor(e,r){super(e,r),this._settings=r,this._scandir=di.scandir,this._emitter=new fi.EventEmitter,this._queue=_i(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(e){this._emitter.on("entry",e)}onError(e){this._emitter.once("error",e)}onEnd(e){this._emitter.once("end",e)}_pushToQueue(e,r){let n={directory:e,base:r};this._queue.push(n,s=>{s!==null&&this._handleError(s)})}_worker(e,r){this._scandir(e.directory,this._settings.fsScandirSettings,(n,s)=>{if(n!==null){r(n,void 0);return}for(let i of s)this._handleEntry(i,e.base);r(null,void 0)})}_handleError(e){this._isDestroyed||!fe.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e))}_handleEntry(e,r){if(this._isDestroyed||this._isFatalError)return;let n=e.path;r!==void 0&&(e.path=fe.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),fe.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&fe.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_emitEntry(e){this._emitter.emit("entry",e)}};$e.default=Qe});var zr=c(Ke=>{"use strict";o();Object.defineProperty(Ke,"__esModule",{value:!0});var gi=Xe(),Je=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new gi.default(this._root,this._settings),this._storage=[]}read(e){this._reader.onError(r=>{mi(e,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{yi(e,this._storage)}),this._reader.read()}};Ke.default=Je;function mi(t,e){t(e)}function yi(t,e){t(null,e)}});var Zr=c(Ze=>{"use strict";o();Object.defineProperty(Ze,"__esModule",{value:!0});var Si=v("stream"),Pi=Xe(),ze=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new Pi.default(this._root,this._settings),this._stream=new Si.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(e=>{this._stream.emit("error",e)}),this._reader.onEntry(e=>{this._stream.push(e)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Ze.default=ze});var en=c(tt=>{"use strict";o();Object.defineProperty(tt,"__esModule",{value:!0});var vi=le(),de=he(),Ei=Ge(),et=class extends Ei.default{constructor(){super(...arguments),this._scandir=vi.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,r){this._queue.add({directory:e,base:r})}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base)}_handleDirectory(e,r){try{let n=this._scandir(e,this._settings.fsScandirSettings);for(let s of n)this._handleEntry(s,r)}catch(n){this._handleError(n)}}_handleError(e){if(de.isFatalError(this._settings,e))throw e}_handleEntry(e,r){let n=e.path;r!==void 0&&(e.path=de.joinPathSegments(r,e.name,this._settings.pathSegmentSeparator)),de.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&de.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(n,r===void 0?void 0:e.path)}_pushToStorage(e){this._storage.push(e)}};tt.default=et});var tn=c(nt=>{"use strict";o();Object.defineProperty(nt,"__esModule",{value:!0});var bi=en(),rt=class{constructor(e,r){this._root=e,this._settings=r,this._reader=new bi.default(this._root,this._settings)}read(){return this._reader.read()}};nt.default=rt});var rn=c(it=>{"use strict";o();Object.defineProperty(it,"__esModule",{value:!0});var wi=v("path"),Ti=le(),st=class{constructor(e={}){this._options=e,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,wi.sep),this.fsScandirSettings=new Ti.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(e,r){return e??r}};it.default=st});var pe=c(F=>{"use strict";o();Object.defineProperty(F,"__esModule",{value:!0});F.Settings=F.walkStream=F.walkSync=F.walk=void 0;var nn=zr(),ki=Zr(),Oi=tn(),ot=rn();F.Settings=ot.default;function Di(t,e,r){if(typeof e=="function"){new nn.default(t,_e()).read(e);return}new nn.default(t,_e(e)).read(r)}F.walk=Di;function Mi(t,e){let r=_e(e);return new Oi.default(t,r).read()}F.walkSync=Mi;function qi(t,e){let r=_e(e);return new ki.default(t,r).read()}F.walkStream=qi;function _e(t={}){return t instanceof ot.default?t:new ot.default(t)}});var ge=c(ut=>{"use strict";o();Object.defineProperty(ut,"__esModule",{value:!0});var Ai=v("path"),Fi=C(),sn=L(),at=class{constructor(e){this._settings=e,this._fsStatSettings=new Fi.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(e){return Ai.resolve(this._settings.cwd,e)}_makeEntry(e,r){let n={name:r,path:r,dirent:sn.fs.createDirentFromStats(r,e)};return this._settings.stats&&(n.stats=e),n}_isFatalError(e){return!sn.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};ut.default=at});var ht=c(lt=>{"use strict";o();Object.defineProperty(lt,"__esModule",{value:!0});var Ri=v("stream"),Li=C(),xi=pe(),ji=ge(),ct=class extends ji.default{constructor(){super(...arguments),this._walkStream=xi.walkStream,this._stat=Li.stat}dynamic(e,r){return this._walkStream(e,r)}static(e,r){let n=e.map(this._getFullEntryPath,this),s=new Ri.PassThrough({objectMode:!0});s._write=(i,a,d)=>this._getEntry(n[i],e[i],r).then(h=>{h!==null&&r.entryFilter(h)&&s.push(h),i===n.length-1&&s.end(),d()}).catch(d);for(let i=0;i<n.length;i++)s.write(i);return s}_getEntry(e,r,n){return this._getStat(e).then(s=>this._makeEntry(s,r)).catch(s=>{if(n.errorFilter(s))return null;throw s})}_getStat(e){return new Promise((r,n)=>{this._stat(e,this._fsStatSettings,(s,i)=>s===null?r(i):n(s))})}};lt.default=ct});var on=c(dt=>{"use strict";o();Object.defineProperty(dt,"__esModule",{value:!0});var Ii=pe(),Bi=ge(),Ni=ht(),ft=class extends Bi.default{constructor(){super(...arguments),this._walkAsync=Ii.walk,this._readerStream=new Ni.default(this._settings)}dynamic(e,r){return new Promise((n,s)=>{this._walkAsync(e,r,(i,a)=>{i===null?n(a):s(i)})})}async static(e,r){let n=[],s=this._readerStream.static(e,r);return new Promise((i,a)=>{s.once("error",a),s.on("data",d=>n.push(d)),s.once("end",()=>i(n))})}};dt.default=ft});var an=c(pt=>{"use strict";o();Object.defineProperty(pt,"__esModule",{value:!0});var X=L(),_t=class{constructor(e,r,n){this._patterns=e,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let e of this._patterns){let r=this._getPatternSegments(e),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:e,segments:r,sections:n})}}_getPatternSegments(e){return X.pattern.getPatternParts(e,this._micromatchOptions).map(n=>X.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:X.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(e){return X.array.splitWhen(e,r=>r.dynamic&&X.pattern.hasGlobStar(r.pattern))}};pt.default=_t});var un=c(mt=>{"use strict";o();Object.defineProperty(mt,"__esModule",{value:!0});var Wi=an(),gt=class extends Wi.default{match(e){let r=e.split("/"),n=r.length,s=this._storage.filter(i=>!i.complete||i.segments.length>n);for(let i of s){let a=i.sections[0];if(!i.complete&&n>a.length||r.every((h,f)=>{let u=i.segments[f];return!!(u.dynamic&&u.patternRe.test(h)||!u.dynamic&&u.pattern===h)}))return!0}return!1}};mt.default=gt});var cn=c(St=>{"use strict";o();Object.defineProperty(St,"__esModule",{value:!0});var me=L(),Vi=un(),yt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r}getFilter(e,r,n){let s=this._getMatcher(r),i=this._getNegativePatternsRe(n);return a=>this._filter(e,a,s,i)}_getMatcher(e){return new Vi.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let r=e.filter(me.pattern.isAffectDepthOfReadingPattern);return me.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(e,r,n,s){if(this._isSkippedByDeep(e,r.path)||this._isSkippedSymbolicLink(r))return!1;let i=me.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(i,n)?!1:this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(e,r){return this._settings.deep===1/0?!1:this._getEntryLevel(e,r)>=this._settings.deep}_getEntryLevel(e,r){let n=r.split("/").length;if(e==="")return n;let s=e.split("/").length;return n-s}_isSkippedSymbolicLink(e){return!this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,r){return!this._settings.baseNameMatch&&!r.match(e)}_isSkippedByNegativePatterns(e,r){return!me.pattern.matchAny(e,r)}};St.default=yt});var ln=c(vt=>{"use strict";o();Object.defineProperty(vt,"__esModule",{value:!0});var V=L(),Pt=class{constructor(e,r){this._settings=e,this._micromatchOptions=r,this.index=new Map}getFilter(e,r){let[n,s]=V.pattern.partitionAbsoluteAndRelative(r),i={positive:{all:V.pattern.convertPatternsToRe(e,this._micromatchOptions)},negative:{absolute:V.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:V.pattern.convertPatternsToRe(s,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return a=>this._filter(a,i)}_filter(e,r){let n=V.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e))return!1;let s=this._isMatchToPatternsSet(n,r,e.dirent.isDirectory());return this._settings.unique&&s&&this._createIndexRecord(n),s}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0)}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isMatchToPatternsSet(e,r,n){return!(!this._isMatchToPatterns(e,r.positive.all,n)||this._isMatchToPatterns(e,r.negative.relative,n)||this._isMatchToAbsoluteNegative(e,r.negative.absolute,n))}_isMatchToAbsoluteNegative(e,r,n){if(r.length===0)return!1;let s=V.path.makeAbsolute(this._settings.cwd,e);return this._isMatchToPatterns(s,r,n)}_isMatchToPatterns(e,r,n){if(r.length===0)return!1;let s=V.pattern.matchAny(e,r);return!s&&n?V.pattern.matchAny(e+"/",r):s}};vt.default=Pt});var hn=c(bt=>{"use strict";o();Object.defineProperty(bt,"__esModule",{value:!0});var Ci=L(),Et=class{constructor(e){this._settings=e}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Ci.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};bt.default=Et});var dn=c(Tt=>{"use strict";o();Object.defineProperty(Tt,"__esModule",{value:!0});var fn=L(),wt=class{constructor(e){this._settings=e}getTransformer(){return e=>this._transform(e)}_transform(e){let r=e.path;return this._settings.absolute&&(r=fn.path.makeAbsolute(this._settings.cwd,r),r=fn.path.unixify(r)),this._settings.markDirectories&&e.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:r}):r}};Tt.default=wt});var ye=c(Ot=>{"use strict";o();Object.defineProperty(Ot,"__esModule",{value:!0});var Yi=v("path"),Ui=cn(),Hi=ln(),Gi=hn(),Qi=dn(),kt=class{constructor(e){this._settings=e,this.errorFilter=new Gi.default(this._settings),this.entryFilter=new Hi.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Ui.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new Qi.default(this._settings)}_getRootDirectory(e){return Yi.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let r=e.base==="."?"":e.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.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}}};Ot.default=kt});var _n=c(Mt=>{"use strict";o();Object.defineProperty(Mt,"__esModule",{value:!0});var $i=on(),Xi=ye(),Dt=class extends Xi.default{constructor(){super(...arguments),this._reader=new $i.default(this._settings)}async read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return(await this.api(r,e,n)).map(i=>n.transform(i))}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};Mt.default=Dt});var pn=c(At=>{"use strict";o();Object.defineProperty(At,"__esModule",{value:!0});var Ji=v("stream"),Ki=ht(),zi=ye(),qt=class extends zi.default{constructor(){super(...arguments),this._reader=new Ki.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e),s=this.api(r,e,n),i=new Ji.Readable({objectMode:!0,read:()=>{}});return s.once("error",a=>i.emit("error",a)).on("data",a=>i.emit("data",n.transform(a))).once("end",()=>i.emit("end")),i.once("close",()=>s.destroy()),i}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};At.default=qt});var gn=c(Rt=>{"use strict";o();Object.defineProperty(Rt,"__esModule",{value:!0});var Zi=C(),eo=pe(),to=ge(),Ft=class extends to.default{constructor(){super(...arguments),this._walkSync=eo.walkSync,this._statSync=Zi.statSync}dynamic(e,r){return this._walkSync(e,r)}static(e,r){let n=[];for(let s of e){let i=this._getFullEntryPath(s),a=this._getEntry(i,s,r);a===null||!r.entryFilter(a)||n.push(a)}return n}_getEntry(e,r,n){try{let s=this._getStat(e);return this._makeEntry(s,r)}catch(s){if(n.errorFilter(s))return null;throw s}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};Rt.default=Ft});var mn=c(xt=>{"use strict";o();Object.defineProperty(xt,"__esModule",{value:!0});var ro=gn(),no=ye(),Lt=class extends no.default{constructor(){super(...arguments),this._reader=new ro.default(this._settings)}read(e){let r=this._getRootDirectory(e),n=this._getReaderOptions(e);return this.api(r,e,n).map(n.transform)}api(e,r,n){return r.dynamic?this._reader.dynamic(e,n):this._reader.static(r.patterns,n)}};xt.default=Lt});var yn=c(Q=>{"use strict";o();Object.defineProperty(Q,"__esModule",{value:!0});Q.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var G=v("fs"),so=v("os"),io=Math.max(so.cpus().length,1);Q.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:G.lstat,lstatSync:G.lstatSync,stat:G.stat,statSync:G.statSync,readdir:G.readdir,readdirSync:G.readdirSync};var jt=class{constructor(e={}){this._options=e,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,io),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),this.ignore=[].concat(this.ignore)}_getValue(e,r){return e===void 0?r:e}_getFileSystemMethods(e={}){return Object.assign(Object.assign({},Q.DEFAULT_FILE_SYSTEM_ADAPTER),e)}};Q.default=jt});var co=c((cu,Pn)=>{o();var Sn=Sr(),oo=_n(),ao=pn(),uo=mn(),It=yn(),k=L();async function Bt(t,e){M(t);let r=Nt(t,oo.default,e),n=await Promise.all(r);return k.array.flatten(n)}(function(t){t.glob=t,t.globSync=e,t.globStream=r,t.async=t;function e(f,u){M(f);let _=Nt(f,uo.default,u);return k.array.flatten(_)}t.sync=e;function r(f,u){M(f);let _=Nt(f,ao.default,u);return k.stream.merge(_)}t.stream=r;function n(f,u){M(f);let _=[].concat(f),p=new It.default(u);return Sn.generate(_,p)}t.generateTasks=n;function s(f,u){M(f);let _=new It.default(u);return k.pattern.isDynamicPattern(f,_)}t.isDynamicPattern=s;function i(f){return M(f),k.path.escape(f)}t.escapePath=i;function a(f){return M(f),k.path.convertPathToPattern(f)}t.convertPathToPattern=a;let d;(function(f){function u(p){return M(p),k.path.escapePosixPath(p)}f.escapePath=u;function _(p){return M(p),k.path.convertPosixPathToPattern(p)}f.convertPathToPattern=_})(d=t.posix||(t.posix={}));let h;(function(f){function u(p){return M(p),k.path.escapeWindowsPath(p)}f.escapePath=u;function _(p){return M(p),k.path.convertWindowsPathToPattern(p)}f.convertPathToPattern=_})(h=t.win32||(t.win32={}))})(Bt||(Bt={}));function Nt(t,e,r){let n=[].concat(t),s=new It.default(r),i=Sn.generate(n,s),a=new e(s);return i.map(a.read,a)}function M(t){if(![].concat(t).every(n=>k.string.isString(n)&&!k.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Pn.exports=Bt});export{fr as a,co as b};
|
|
3
|
-
/*! Bundled license information:
|
|
4
|
-
|
|
5
|
-
queue-microtask/index.js:
|
|
6
|
-
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
7
|
-
|
|
8
|
-
run-parallel/index.js:
|
|
9
|
-
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
10
|
-
*/
|
package/dist/chunk-FB327AH7.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'module';globalThis.require = __createRequire(import.meta.url);
|
|
2
|
-
import{a as we,c as w,i as d}from"./chunk-MNT4XW23.js";var Le=w(H=>{"use strict";d();var Me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");H.encode=function(r){if(0<=r&&r<Me.length)return Me[r];throw new TypeError("Must be between 0 and 63: "+r)};H.decode=function(r){var e=65,n=90,t=97,o=122,i=48,u=57,l=43,s=47,a=26,c=52;return e<=r&&r<=n?r-e:t<=r&&r<=o?r-t+a:i<=r&&r<=u?r-i+c:r==l?62:r==s?63:-1}});var ne=w(re=>{"use strict";d();var Ee=Le(),ee=5,Ae=1<<ee,Oe=Ae-1,be=Ae;function nr(r){return r<0?(-r<<1)+1:(r<<1)+0}function tr(r){var e=(r&1)===1,n=r>>1;return e?-n:n}re.encode=function(e){var n="",t,o=nr(e);do t=o&Oe,o>>>=ee,o>0&&(t|=be),n+=Ee.encode(t);while(o>0);return n};re.decode=function(e,n,t){var o=e.length,i=0,u=0,l,s;do{if(n>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(s=Ee.decode(e.charCodeAt(n++)),s===-1)throw new Error("Invalid base64 digit: "+e.charAt(n-1));l=!!(s&be),s&=Oe,i=i+(s<<u),u+=ee}while(l);t.value=tr(i),t.rest=n}});var F=w(y=>{"use strict";d();function or(r,e,n){if(e in r)return r[e];if(arguments.length===3)return n;throw new Error('"'+e+'" is a required argument.')}y.getArg=or;var Re=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,ir=/^data:.+\,.+$/;function U(r){var e=r.match(Re);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}y.urlParse=U;function B(r){var e="";return r.scheme&&(e+=r.scheme+":"),e+="//",r.auth&&(e+=r.auth+"@"),r.host&&(e+=r.host),r.port&&(e+=":"+r.port),r.path&&(e+=r.path),e}y.urlGenerate=B;function te(r){var e=r,n=U(r);if(n){if(!n.path)return r;e=n.path}for(var t=y.isAbsolute(e),o=e.split(/\/+/),i,u=0,l=o.length-1;l>=0;l--)i=o[l],i==="."?o.splice(l,1):i===".."?u++:u>0&&(i===""?(o.splice(l+1,u),u=0):(o.splice(l,2),u--));return e=o.join("/"),e===""&&(e=t?"/":"."),n?(n.path=e,B(n)):e}y.normalize=te;function Ne(r,e){r===""&&(r="."),e===""&&(e=".");var n=U(e),t=U(r);if(t&&(r=t.path||"/"),n&&!n.scheme)return t&&(n.scheme=t.scheme),B(n);if(n||e.match(ir))return e;if(t&&!t.host&&!t.path)return t.host=e,B(t);var o=e.charAt(0)==="/"?e:te(r.replace(/\/+$/,"")+"/"+e);return t?(t.path=o,B(t)):o}y.join=Ne;y.isAbsolute=function(r){return r.charAt(0)==="/"||Re.test(r)};function ur(r,e){r===""&&(r="."),r=r.replace(/\/$/,"");for(var n=0;e.indexOf(r+"/")!==0;){var t=r.lastIndexOf("/");if(t<0||(r=r.slice(0,t),r.match(/^([^\/]+:\/)?\/*$/)))return e;++n}return Array(n+1).join("../")+e.substr(r.length+1)}y.relative=ur;var xe=function(){var r=Object.create(null);return!("__proto__"in r)}();function Ge(r){return r}function sr(r){return Ie(r)?"$"+r:r}y.toSetString=xe?Ge:sr;function lr(r){return Ie(r)?r.slice(1):r}y.fromSetString=xe?Ge:lr;function Ie(r){if(!r)return!1;var e=r.length;if(e<9||r.charCodeAt(e-1)!==95||r.charCodeAt(e-2)!==95||r.charCodeAt(e-3)!==111||r.charCodeAt(e-4)!==116||r.charCodeAt(e-5)!==111||r.charCodeAt(e-6)!==114||r.charCodeAt(e-7)!==112||r.charCodeAt(e-8)!==95||r.charCodeAt(e-9)!==95)return!1;for(var n=e-10;n>=0;n--)if(r.charCodeAt(n)!==36)return!1;return!0}function ar(r,e,n){var t=q(r.source,e.source);return t!==0||(t=r.originalLine-e.originalLine,t!==0)||(t=r.originalColumn-e.originalColumn,t!==0||n)||(t=r.generatedColumn-e.generatedColumn,t!==0)||(t=r.generatedLine-e.generatedLine,t!==0)?t:q(r.name,e.name)}y.compareByOriginalPositions=ar;function cr(r,e,n){var t=r.generatedLine-e.generatedLine;return t!==0||(t=r.generatedColumn-e.generatedColumn,t!==0||n)||(t=q(r.source,e.source),t!==0)||(t=r.originalLine-e.originalLine,t!==0)||(t=r.originalColumn-e.originalColumn,t!==0)?t:q(r.name,e.name)}y.compareByGeneratedPositionsDeflated=cr;function q(r,e){return r===e?0:r===null?1:e===null?-1:r>e?1:-1}function fr(r,e){var n=r.generatedLine-e.generatedLine;return n!==0||(n=r.generatedColumn-e.generatedColumn,n!==0)||(n=q(r.source,e.source),n!==0)||(n=r.originalLine-e.originalLine,n!==0)||(n=r.originalColumn-e.originalColumn,n!==0)?n:q(r.name,e.name)}y.compareByGeneratedPositionsInflated=fr;function hr(r){return JSON.parse(r.replace(/^\)]}'[^\n]*\n/,""))}y.parseSourceMapInput=hr;function gr(r,e,n){if(e=e||"",r&&(r[r.length-1]!=="/"&&e[0]!=="/"&&(r+="/"),e=r+e),n){var t=U(n);if(!t)throw new Error("sourceMapURL could not be parsed");if(t.path){var o=t.path.lastIndexOf("/");o>=0&&(t.path=t.path.substring(0,o+1))}e=Ne(B(t),e)}return te(e)}y.computeSourceURL=gr});var ue=w(Te=>{"use strict";d();var oe=F(),ie=Object.prototype.hasOwnProperty,x=typeof Map<"u";function b(){this._array=[],this._set=x?new Map:Object.create(null)}b.fromArray=function(e,n){for(var t=new b,o=0,i=e.length;o<i;o++)t.add(e[o],n);return t};b.prototype.size=function(){return x?this._set.size:Object.getOwnPropertyNames(this._set).length};b.prototype.add=function(e,n){var t=x?e:oe.toSetString(e),o=x?this.has(e):ie.call(this._set,t),i=this._array.length;(!o||n)&&this._array.push(e),o||(x?this._set.set(e,i):this._set[t]=i)};b.prototype.has=function(e){if(x)return this._set.has(e);var n=oe.toSetString(e);return ie.call(this._set,n)};b.prototype.indexOf=function(e){if(x){var n=this._set.get(e);if(n>=0)return n}else{var t=oe.toSetString(e);if(ie.call(this._set,t))return this._set[t]}throw new Error('"'+e+'" is not in the set.')};b.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};b.prototype.toArray=function(){return this._array.slice()};Te.ArraySet=b});var qe=w(Be=>{"use strict";d();var Pe=F();function dr(r,e){var n=r.generatedLine,t=e.generatedLine,o=r.generatedColumn,i=e.generatedColumn;return t>n||t==n&&i>=o||Pe.compareByGeneratedPositionsInflated(r,e)<=0}function W(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}W.prototype.unsortedForEach=function(e,n){this._array.forEach(e,n)};W.prototype.add=function(e){dr(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};W.prototype.toArray=function(){return this._sorted||(this._array.sort(Pe.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Be.MappingList=W});var se=w(Fe=>{"use strict";d();var $=ne(),_=F(),J=ue().ArraySet,vr=qe().MappingList;function E(r){r||(r={}),this._file=_.getArg(r,"file",null),this._sourceRoot=_.getArg(r,"sourceRoot",null),this._skipValidation=_.getArg(r,"skipValidation",!1),this._sources=new J,this._names=new J,this._mappings=new vr,this._sourcesContents=null}E.prototype._version=3;E.fromSourceMap=function(e){var n=e.sourceRoot,t=new E({file:e.file,sourceRoot:n});return e.eachMapping(function(o){var i={generated:{line:o.generatedLine,column:o.generatedColumn}};o.source!=null&&(i.source=o.source,n!=null&&(i.source=_.relative(n,i.source)),i.original={line:o.originalLine,column:o.originalColumn},o.name!=null&&(i.name=o.name)),t.addMapping(i)}),e.sources.forEach(function(o){var i=o;n!==null&&(i=_.relative(n,o)),t._sources.has(i)||t._sources.add(i);var u=e.sourceContentFor(o);u!=null&&t.setSourceContent(o,u)}),t};E.prototype.addMapping=function(e){var n=_.getArg(e,"generated"),t=_.getArg(e,"original",null),o=_.getArg(e,"source",null),i=_.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,t,o,i),o!=null&&(o=String(o),this._sources.has(o)||this._sources.add(o)),i!=null&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:t!=null&&t.line,originalColumn:t!=null&&t.column,source:o,name:i})};E.prototype.setSourceContent=function(e,n){var t=e;this._sourceRoot!=null&&(t=_.relative(this._sourceRoot,t)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[_.toSetString(t)]=n):this._sourcesContents&&(delete this._sourcesContents[_.toSetString(t)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};E.prototype.applySourceMap=function(e,n,t){var o=n;if(n==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);o=e.file}var i=this._sourceRoot;i!=null&&(o=_.relative(i,o));var u=new J,l=new J;this._mappings.unsortedForEach(function(s){if(s.source===o&&s.originalLine!=null){var a=e.originalPositionFor({line:s.originalLine,column:s.originalColumn});a.source!=null&&(s.source=a.source,t!=null&&(s.source=_.join(t,s.source)),i!=null&&(s.source=_.relative(i,s.source)),s.originalLine=a.line,s.originalColumn=a.column,a.name!=null&&(s.name=a.name))}var c=s.source;c!=null&&!u.has(c)&&u.add(c);var g=s.name;g!=null&&!l.has(g)&&l.add(g)},this),this._sources=u,this._names=l,e.sources.forEach(function(s){var a=e.sourceContentFor(s);a!=null&&(t!=null&&(s=_.join(t,s)),i!=null&&(s=_.relative(i,s)),this.setSourceContent(s,a))},this)};E.prototype._validateMapping=function(e,n,t,o){if(n&&typeof n.line!="number"&&typeof n.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!n&&!t&&!o)){if(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&t)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:n,name:o}))}};E.prototype._serializeMappings=function(){for(var e=0,n=1,t=0,o=0,i=0,u=0,l="",s,a,c,g,h=this._mappings.toArray(),v=0,L=h.length;v<L;v++){if(a=h[v],s="",a.generatedLine!==n)for(e=0;a.generatedLine!==n;)s+=";",n++;else if(v>0){if(!_.compareByGeneratedPositionsInflated(a,h[v-1]))continue;s+=","}s+=$.encode(a.generatedColumn-e),e=a.generatedColumn,a.source!=null&&(g=this._sources.indexOf(a.source),s+=$.encode(g-u),u=g,s+=$.encode(a.originalLine-1-o),o=a.originalLine-1,s+=$.encode(a.originalColumn-t),t=a.originalColumn,a.name!=null&&(c=this._names.indexOf(a.name),s+=$.encode(c-i),i=c)),l+=s}return l};E.prototype._generateSourcesContent=function(e,n){return e.map(function(t){if(!this._sourcesContents)return null;n!=null&&(t=_.relative(n,t));var o=_.toSetString(t);return Object.prototype.hasOwnProperty.call(this._sourcesContents,o)?this._sourcesContents[o]:null},this)};E.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};E.prototype.toString=function(){return JSON.stringify(this.toJSON())};Fe.SourceMapGenerator=E});var je=w(G=>{"use strict";d();G.GREATEST_LOWER_BOUND=1;G.LEAST_UPPER_BOUND=2;function le(r,e,n,t,o,i){var u=Math.floor((e-r)/2)+r,l=o(n,t[u],!0);return l===0?u:l>0?e-u>1?le(u,e,n,t,o,i):i==G.LEAST_UPPER_BOUND?e<t.length?e:-1:u:u-r>1?le(r,u,n,t,o,i):i==G.LEAST_UPPER_BOUND?u:r<0?-1:r}G.search=function(e,n,t,o){if(n.length===0)return-1;var i=le(-1,n.length,e,n,t,o||G.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&t(n[i],n[i-1],!0)===0;)--i;return i}});var Ue=w(De=>{"use strict";d();function ae(r,e,n){var t=r[e];r[e]=r[n],r[n]=t}function pr(r,e){return Math.round(r+Math.random()*(e-r))}function ce(r,e,n,t){if(n<t){var o=pr(n,t),i=n-1;ae(r,o,t);for(var u=r[t],l=n;l<t;l++)e(r[l],u)<=0&&(i+=1,ae(r,i,l));ae(r,i+1,l);var s=i+1;ce(r,e,n,s-1),ce(r,e,s+1,t)}}De.quickSort=function(r,e){ce(r,e,0,r.length-1)}});var ke=w(X=>{"use strict";d();var f=F(),fe=je(),j=ue().ArraySet,_r=ne(),k=Ue().quickSort;function p(r,e){var n=r;return typeof r=="string"&&(n=f.parseSourceMapInput(r)),n.sections!=null?new A(n,e):new m(n,e)}p.fromSourceMap=function(r,e){return m.fromSourceMap(r,e)};p.prototype._version=3;p.prototype.__generatedMappings=null;Object.defineProperty(p.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});p.prototype.__originalMappings=null;Object.defineProperty(p.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});p.prototype._charIsMappingSeparator=function(e,n){var t=e.charAt(n);return t===";"||t===","};p.prototype._parseMappings=function(e,n){throw new Error("Subclasses must implement _parseMappings")};p.GENERATED_ORDER=1;p.ORIGINAL_ORDER=2;p.GREATEST_LOWER_BOUND=1;p.LEAST_UPPER_BOUND=2;p.prototype.eachMapping=function(e,n,t){var o=n||null,i=t||p.GENERATED_ORDER,u;switch(i){case p.GENERATED_ORDER:u=this._generatedMappings;break;case p.ORIGINAL_ORDER:u=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var l=this.sourceRoot;u.map(function(s){var a=s.source===null?null:this._sources.at(s.source);return a=f.computeSourceURL(l,a,this._sourceMapURL),{source:a,generatedLine:s.generatedLine,generatedColumn:s.generatedColumn,originalLine:s.originalLine,originalColumn:s.originalColumn,name:s.name===null?null:this._names.at(s.name)}},this).forEach(e,o)};p.prototype.allGeneratedPositionsFor=function(e){var n=f.getArg(e,"line"),t={source:f.getArg(e,"source"),originalLine:n,originalColumn:f.getArg(e,"column",0)};if(t.source=this._findSourceIndex(t.source),t.source<0)return[];var o=[],i=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",f.compareByOriginalPositions,fe.LEAST_UPPER_BOUND);if(i>=0){var u=this._originalMappings[i];if(e.column===void 0)for(var l=u.originalLine;u&&u.originalLine===l;)o.push({line:f.getArg(u,"generatedLine",null),column:f.getArg(u,"generatedColumn",null),lastColumn:f.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++i];else for(var s=u.originalColumn;u&&u.originalLine===n&&u.originalColumn==s;)o.push({line:f.getArg(u,"generatedLine",null),column:f.getArg(u,"generatedColumn",null),lastColumn:f.getArg(u,"lastGeneratedColumn",null)}),u=this._originalMappings[++i]}return o};X.SourceMapConsumer=p;function m(r,e){var n=r;typeof r=="string"&&(n=f.parseSourceMapInput(r));var t=f.getArg(n,"version"),o=f.getArg(n,"sources"),i=f.getArg(n,"names",[]),u=f.getArg(n,"sourceRoot",null),l=f.getArg(n,"sourcesContent",null),s=f.getArg(n,"mappings"),a=f.getArg(n,"file",null);if(t!=this._version)throw new Error("Unsupported version: "+t);u&&(u=f.normalize(u)),o=o.map(String).map(f.normalize).map(function(c){return u&&f.isAbsolute(u)&&f.isAbsolute(c)?f.relative(u,c):c}),this._names=j.fromArray(i.map(String),!0),this._sources=j.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(c){return f.computeSourceURL(u,c,e)}),this.sourceRoot=u,this.sourcesContent=l,this._mappings=s,this._sourceMapURL=e,this.file=a}m.prototype=Object.create(p.prototype);m.prototype.consumer=p;m.prototype._findSourceIndex=function(r){var e=r;if(this.sourceRoot!=null&&(e=f.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var n;for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==r)return n;return-1};m.fromSourceMap=function(e,n){var t=Object.create(m.prototype),o=t._names=j.fromArray(e._names.toArray(),!0),i=t._sources=j.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file,t._sourceMapURL=n,t._absoluteSources=t._sources.toArray().map(function(v){return f.computeSourceURL(t.sourceRoot,v,n)});for(var u=e._mappings.toArray().slice(),l=t.__generatedMappings=[],s=t.__originalMappings=[],a=0,c=u.length;a<c;a++){var g=u[a],h=new $e;h.generatedLine=g.generatedLine,h.generatedColumn=g.generatedColumn,g.source&&(h.source=i.indexOf(g.source),h.originalLine=g.originalLine,h.originalColumn=g.originalColumn,g.name&&(h.name=o.indexOf(g.name)),s.push(h)),l.push(h)}return k(t.__originalMappings,f.compareByOriginalPositions),t};m.prototype._version=3;Object.defineProperty(m.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function $e(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}m.prototype._parseMappings=function(e,n){for(var t=1,o=0,i=0,u=0,l=0,s=0,a=e.length,c=0,g={},h={},v=[],L=[],C,V,S,P,Ce;c<a;)if(e.charAt(c)===";")t++,c++,o=0;else if(e.charAt(c)===",")c++;else{for(C=new $e,C.generatedLine=t,P=c;P<a&&!this._charIsMappingSeparator(e,P);P++);if(V=e.slice(c,P),S=g[V],S)c+=V.length;else{for(S=[];c<P;)_r.decode(e,c,h),Ce=h.value,c=h.rest,S.push(Ce);if(S.length===2)throw new Error("Found a source, but no line and column");if(S.length===3)throw new Error("Found a source and line, but no column");g[V]=S}C.generatedColumn=o+S[0],o=C.generatedColumn,S.length>1&&(C.source=l+S[1],l+=S[1],C.originalLine=i+S[2],i=C.originalLine,C.originalLine+=1,C.originalColumn=u+S[3],u=C.originalColumn,S.length>4&&(C.name=s+S[4],s+=S[4])),L.push(C),typeof C.originalLine=="number"&&v.push(C)}k(L,f.compareByGeneratedPositionsDeflated),this.__generatedMappings=L,k(v,f.compareByOriginalPositions),this.__originalMappings=v};m.prototype._findMapping=function(e,n,t,o,i,u){if(e[t]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[t]);if(e[o]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[o]);return fe.search(e,n,i,u)};m.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var n=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var t=this._generatedMappings[e+1];if(n.generatedLine===t.generatedLine){n.lastGeneratedColumn=t.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}};m.prototype.originalPositionFor=function(e){var n={generatedLine:f.getArg(e,"line"),generatedColumn:f.getArg(e,"column")},t=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",f.compareByGeneratedPositionsDeflated,f.getArg(e,"bias",p.GREATEST_LOWER_BOUND));if(t>=0){var o=this._generatedMappings[t];if(o.generatedLine===n.generatedLine){var i=f.getArg(o,"source",null);i!==null&&(i=this._sources.at(i),i=f.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var u=f.getArg(o,"name",null);return u!==null&&(u=this._names.at(u)),{source:i,line:f.getArg(o,"originalLine",null),column:f.getArg(o,"originalColumn",null),name:u}}}return{source:null,line:null,column:null,name:null}};m.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};m.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;var t=this._findSourceIndex(e);if(t>=0)return this.sourcesContent[t];var o=e;this.sourceRoot!=null&&(o=f.relative(this.sourceRoot,o));var i;if(this.sourceRoot!=null&&(i=f.urlParse(this.sourceRoot))){var u=o.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(u))return this.sourcesContent[this._sources.indexOf(u)];if((!i.path||i.path=="/")&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(n)return null;throw new Error('"'+o+'" is not in the SourceMap.')};m.prototype.generatedPositionFor=function(e){var n=f.getArg(e,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var t={source:n,originalLine:f.getArg(e,"line"),originalColumn:f.getArg(e,"column")},o=this._findMapping(t,this._originalMappings,"originalLine","originalColumn",f.compareByOriginalPositions,f.getArg(e,"bias",p.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===t.source)return{line:f.getArg(i,"generatedLine",null),column:f.getArg(i,"generatedColumn",null),lastColumn:f.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};X.BasicSourceMapConsumer=m;function A(r,e){var n=r;typeof r=="string"&&(n=f.parseSourceMapInput(r));var t=f.getArg(n,"version"),o=f.getArg(n,"sections");if(t!=this._version)throw new Error("Unsupported version: "+t);this._sources=new j,this._names=new j;var i={line:-1,column:0};this._sections=o.map(function(u){if(u.url)throw new Error("Support for url field in sections not implemented.");var l=f.getArg(u,"offset"),s=f.getArg(l,"line"),a=f.getArg(l,"column");if(s<i.line||s===i.line&&a<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=l,{generatedOffset:{generatedLine:s+1,generatedColumn:a+1},consumer:new p(f.getArg(u,"map"),e)}})}A.prototype=Object.create(p.prototype);A.prototype.constructor=p;A.prototype._version=3;Object.defineProperty(A.prototype,"sources",{get:function(){for(var r=[],e=0;e<this._sections.length;e++)for(var n=0;n<this._sections[e].consumer.sources.length;n++)r.push(this._sections[e].consumer.sources[n]);return r}});A.prototype.originalPositionFor=function(e){var n={generatedLine:f.getArg(e,"line"),generatedColumn:f.getArg(e,"column")},t=fe.search(n,this._sections,function(i,u){var l=i.generatedLine-u.generatedOffset.generatedLine;return l||i.generatedColumn-u.generatedOffset.generatedColumn}),o=this._sections[t];return o?o.consumer.originalPositionFor({line:n.generatedLine-(o.generatedOffset.generatedLine-1),column:n.generatedColumn-(o.generatedOffset.generatedLine===n.generatedLine?o.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};A.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};A.prototype.sourceContentFor=function(e,n){for(var t=0;t<this._sections.length;t++){var o=this._sections[t],i=o.consumer.sourceContentFor(e,!0);if(i)return i}if(n)return null;throw new Error('"'+e+'" is not in the SourceMap.')};A.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var t=this._sections[n];if(t.consumer._findSourceIndex(f.getArg(e,"source"))!==-1){var o=t.consumer.generatedPositionFor(e);if(o){var i={line:o.line+(t.generatedOffset.generatedLine-1),column:o.column+(t.generatedOffset.generatedLine===o.line?t.generatedOffset.generatedColumn-1:0)};return i}}}return{line:null,column:null}};A.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var t=0;t<this._sections.length;t++)for(var o=this._sections[t],i=o.consumer._generatedMappings,u=0;u<i.length;u++){var l=i[u],s=o.consumer._sources.at(l.source);s=f.computeSourceURL(o.consumer.sourceRoot,s,this._sourceMapURL),this._sources.add(s),s=this._sources.indexOf(s);var a=null;l.name&&(a=o.consumer._names.at(l.name),this._names.add(a),a=this._names.indexOf(a));var c={source:s,generatedLine:l.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(o.generatedOffset.generatedLine===l.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:a};this.__generatedMappings.push(c),typeof c.originalLine=="number"&&this.__originalMappings.push(c)}k(this.__generatedMappings,f.compareByGeneratedPositionsDeflated),k(this.__originalMappings,f.compareByOriginalPositions)};X.IndexedSourceMapConsumer=A});var Qe=w(ze=>{"use strict";d();var mr=se().SourceMapGenerator,Z=F(),Sr=/(\r?\n)/,yr=10,D="$$$isSourceNode$$$";function M(r,e,n,t,o){this.children=[],this.sourceContents={},this.line=r??null,this.column=e??null,this.source=n??null,this.name=o??null,this[D]=!0,t!=null&&this.add(t)}M.fromStringWithSourceMap=function(e,n,t){var o=new M,i=e.split(Sr),u=0,l=function(){var h=L(),v=L()||"";return h+v;function L(){return u<i.length?i[u++]:void 0}},s=1,a=0,c=null;return n.eachMapping(function(h){if(c!==null)if(s<h.generatedLine)g(c,l()),s++,a=0;else{var v=i[u]||"",L=v.substr(0,h.generatedColumn-a);i[u]=v.substr(h.generatedColumn-a),a=h.generatedColumn,g(c,L),c=h;return}for(;s<h.generatedLine;)o.add(l()),s++;if(a<h.generatedColumn){var v=i[u]||"";o.add(v.substr(0,h.generatedColumn)),i[u]=v.substr(h.generatedColumn),a=h.generatedColumn}c=h},this),u<i.length&&(c&&g(c,l()),o.add(i.splice(u).join(""))),n.sources.forEach(function(h){var v=n.sourceContentFor(h);v!=null&&(t!=null&&(h=Z.join(t,h)),o.setSourceContent(h,v))}),o;function g(h,v){if(h===null||h.source===void 0)o.add(v);else{var L=t?Z.join(t,h.source):h.source;o.add(new M(h.originalLine,h.originalColumn,L,v,h.name))}}};M.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(n){this.add(n)},this);else if(e[D]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};M.prototype.prepend=function(e){if(Array.isArray(e))for(var n=e.length-1;n>=0;n--)this.prepend(e[n]);else if(e[D]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};M.prototype.walk=function(e){for(var n,t=0,o=this.children.length;t<o;t++)n=this.children[t],n[D]?n.walk(e):n!==""&&e(n,{source:this.source,line:this.line,column:this.column,name:this.name})};M.prototype.join=function(e){var n,t,o=this.children.length;if(o>0){for(n=[],t=0;t<o-1;t++)n.push(this.children[t]),n.push(e);n.push(this.children[t]),this.children=n}return this};M.prototype.replaceRight=function(e,n){var t=this.children[this.children.length-1];return t[D]?t.replaceRight(e,n):typeof t=="string"?this.children[this.children.length-1]=t.replace(e,n):this.children.push("".replace(e,n)),this};M.prototype.setSourceContent=function(e,n){this.sourceContents[Z.toSetString(e)]=n};M.prototype.walkSourceContents=function(e){for(var n=0,t=this.children.length;n<t;n++)this.children[n][D]&&this.children[n].walkSourceContents(e);for(var o=Object.keys(this.sourceContents),n=0,t=o.length;n<t;n++)e(Z.fromSetString(o[n]),this.sourceContents[o[n]])};M.prototype.toString=function(){var e="";return this.walk(function(n){e+=n}),e};M.prototype.toStringWithSourceMap=function(e){var n={code:"",line:1,column:0},t=new mr(e),o=!1,i=null,u=null,l=null,s=null;return this.walk(function(a,c){n.code+=a,c.source!==null&&c.line!==null&&c.column!==null?((i!==c.source||u!==c.line||l!==c.column||s!==c.name)&&t.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:n.line,column:n.column},name:c.name}),i=c.source,u=c.line,l=c.column,s=c.name,o=!0):o&&(t.addMapping({generated:{line:n.line,column:n.column}}),i=null,o=!1);for(var g=0,h=a.length;g<h;g++)a.charCodeAt(g)===yr?(n.line++,n.column=0,g+1===h?(i=null,o=!1):o&&t.addMapping({source:c.source,original:{line:c.line,column:c.column},generated:{line:n.line,column:n.column},name:c.name})):n.column++}),this.walkSourceContents(function(a,c){t.setSourceContent(a,c)}),{code:n.code,map:t}};ze.SourceNode=M});var Ve=w(K=>{"use strict";d();K.SourceMapGenerator=se().SourceMapGenerator;K.SourceMapConsumer=ke().SourceMapConsumer;K.SourceNode=Qe().SourceNode});var Je=w((cn,We)=>{"use strict";d();var Cr=Object.prototype.toString,he=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function wr(r){return Cr.call(r).slice(8,-1)==="ArrayBuffer"}function Mr(r,e,n){e>>>=0;var t=r.byteLength-e;if(t<0)throw new RangeError("'offset' is out of bounds");if(n===void 0)n=t;else if(n>>>=0,n>t)throw new RangeError("'length' is out of bounds");return he?Buffer.from(r.slice(e,e+n)):new Buffer(new Uint8Array(r.slice(e,e+n)))}function Lr(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!Buffer.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');return he?Buffer.from(r,e):new Buffer(r,e)}function Er(r,e,n){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return wr(r)?Mr(r,e,n):typeof r=="string"?Lr(r,e):he?Buffer.from(r):new Buffer(r)}We.exports=Er});var Dr=w((T,pe)=>{"use strict";d();var Ar=Ve().SourceMapConsumer,ge=we("path"),O;try{O=we("fs"),(!O.existsSync||!O.readFileSync)&&(O=null)}catch{}var Or=Je();function Xe(r,e){return r.require(e)}var Ze=!1,Ke=!1,de=!1,z="auto",I={},Q={},br=/^data:application\/json[^,]+base64,/,R=[],N=[];function _e(){return z==="browser"?!0:z==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function Rr(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function Nr(){return typeof process=="object"&&process!==null?process.version:""}function xr(){if(typeof process=="object"&&process!==null)return process.stderr}function Gr(r){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(r)}function Y(r){return function(e){for(var n=0;n<r.length;n++){var t=r[n](e);if(t)return t}return null}}var me=Y(R);R.push(function(r){if(r=r.trim(),/^file:/.test(r)&&(r=r.replace(/file:\/\/\/(\w:)?/,function(t,o){return o?"":"/"})),r in I)return I[r];var e="";try{if(O)O.existsSync(r)&&(e=O.readFileSync(r,"utf8"));else{var n=new XMLHttpRequest;n.open("GET",r,!1),n.send(null),n.readyState===4&&n.status===200&&(e=n.responseText)}}catch{}return I[r]=e});function ve(r,e){if(!r)return e;var n=ge.dirname(r),t=/^\w+:\/\/[^\/]*/.exec(n),o=t?t[0]:"",i=n.slice(o.length);return o&&/^\/\w\:/.test(i)?(o+="/",o+ge.resolve(n.slice(o.length),e).replace(/\\/g,"/")):o+ge.resolve(n.slice(o.length),e)}function Ir(r){var e;if(_e())try{var n=new XMLHttpRequest;n.open("GET",r,!1),n.send(null),e=n.readyState===4?n.responseText:null;var t=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(t)return t}catch{}e=me(r);for(var o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,i,u;u=o.exec(e);)i=u;return i?i[1]:null}var Se=Y(N);N.push(function(r){var e=Ir(r);if(!e)return null;var n;if(br.test(e)){var t=e.slice(e.indexOf(",")+1);n=Or(t,"base64").toString(),e=r}else e=ve(r,e),n=me(e);return n?{url:e,map:n}:null});function ye(r){var e=Q[r.source];if(!e){var n=Se(r.source);n?(e=Q[r.source]={url:n.url,map:new Ar(n.map)},e.map.sourcesContent&&e.map.sources.forEach(function(o,i){var u=e.map.sourcesContent[i];if(u){var l=ve(e.url,o);I[l]=u}})):e=Q[r.source]={url:null,map:null}}if(e&&e.map&&typeof e.map.originalPositionFor=="function"){var t=e.map.originalPositionFor(r);if(t.source!==null)return t.source=ve(e.url,t.source),t}return r}function He(r){var e=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(r);if(e){var n=ye({source:e[2],line:+e[3],column:e[4]-1});return"eval at "+e[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}return e=/^eval at ([^(]+) \((.+)\)$/.exec(r),e?"eval at "+e[1]+" ("+He(e[2])+")":r}function Tr(){var r,e="";if(this.isNative())e="native";else{r=this.getScriptNameOrSourceURL(),!r&&this.isEval()&&(e=this.getEvalOrigin(),e+=", "),r?e+=r:e+="<anonymous>";var n=this.getLineNumber();if(n!=null){e+=":"+n;var t=this.getColumnNumber();t&&(e+=":"+t)}}var o="",i=this.getFunctionName(),u=!0,l=this.isConstructor(),s=!(this.isToplevel()||l);if(s){var a=this.getTypeName();a==="[object Object]"&&(a="null");var c=this.getMethodName();i?(a&&i.indexOf(a)!=0&&(o+=a+"."),o+=i,c&&i.indexOf("."+c)!=i.length-c.length-1&&(o+=" [as "+c+"]")):o+=a+"."+(c||"<anonymous>")}else l?o+="new "+(i||"<anonymous>"):i?o+=i:(o+=e,u=!1);return u&&(o+=" ("+e+")"),o}function Ye(r){var e={};return Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(function(n){e[n]=/^(?:is|get)/.test(n)?function(){return r[n].call(r)}:r[n]}),e.toString=Tr,e}function er(r,e){if(e===void 0&&(e={nextPosition:null,curPosition:null}),r.isNative())return e.curPosition=null,r;var n=r.getFileName()||r.getScriptNameOrSourceURL();if(n){var t=r.getLineNumber(),o=r.getColumnNumber()-1,i=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,u=i.test(Nr())?0:62;t===1&&o>u&&!_e()&&!r.isEval()&&(o-=u);var l=ye({source:n,line:t,column:o});e.curPosition=l,r=Ye(r);var s=r.getFunctionName;return r.getFunctionName=function(){return e.nextPosition==null?s():e.nextPosition.name||s()},r.getFileName=function(){return l.source},r.getLineNumber=function(){return l.line},r.getColumnNumber=function(){return l.column+1},r.getScriptNameOrSourceURL=function(){return l.source},r}var a=r.isEval()&&r.getEvalOrigin();return a&&(a=He(a),r=Ye(r),r.getEvalOrigin=function(){return a}),r}function Pr(r,e){de&&(I={},Q={});for(var n=r.name||"Error",t=r.message||"",o=n+": "+t,i={nextPosition:null,curPosition:null},u=[],l=e.length-1;l>=0;l--)u.push(`
|
|
3
|
-
at `+er(e[l],i)),i.nextPosition=i.curPosition;return i.curPosition=i.nextPosition=null,o+u.reverse().join("")}function rr(r){var e=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(r.stack);if(e){var n=e[1],t=+e[2],o=+e[3],i=I[n];if(!i&&O&&O.existsSync(n))try{i=O.readFileSync(n,"utf8")}catch{i=""}if(i){var u=i.split(/(?:\r\n|\r|\n)/)[t-1];if(u)return n+":"+t+`
|
|
4
|
-
`+u+`
|
|
5
|
-
`+new Array(o).join(" ")+"^"}}return null}function Br(r){var e=rr(r),n=xr();n&&n._handle&&n._handle.setBlocking&&n._handle.setBlocking(!0),e&&(console.error(),console.error(e)),console.error(r.stack),Gr(1)}function qr(){var r=process.emit;process.emit=function(e){if(e==="uncaughtException"){var n=arguments[1]&&arguments[1].stack,t=this.listeners(e).length>0;if(n&&!t)return Br(arguments[1])}return r.apply(this,arguments)}}var Fr=R.slice(0),jr=N.slice(0);T.wrapCallSite=er;T.getErrorSource=rr;T.mapSourcePosition=ye;T.retrieveSourceMap=Se;T.install=function(r){if(r=r||{},r.environment&&(z=r.environment,["node","browser","auto"].indexOf(z)===-1))throw new Error("environment "+z+" was unknown. Available options are {auto, browser, node}");if(r.retrieveFile&&(r.overrideRetrieveFile&&(R.length=0),R.unshift(r.retrieveFile)),r.retrieveSourceMap&&(r.overrideRetrieveSourceMap&&(N.length=0),N.unshift(r.retrieveSourceMap)),r.hookRequire&&!_e()){var e=Xe(pe,"module"),n=e.prototype._compile;n.__sourceMapSupport||(e.prototype._compile=function(i,u){return I[u]=i,Q[u]=void 0,n.call(this,i,u)},e.prototype._compile.__sourceMapSupport=!0)}if(de||(de="emptyCacheBetweenOperations"in r?r.emptyCacheBetweenOperations:!1),Ze||(Ze=!0,Error.prepareStackTrace=Pr),!Ke){var t="handleUncaughtExceptions"in r?r.handleUncaughtExceptions:!0;try{var o=Xe(pe,"worker_threads");o.isMainThread===!1&&(t=!1)}catch{}t&&Rr()&&(Ke=!0,qr())}};T.resetRetrieveHandlers=function(){R.length=0,N.length=0,R=Fr.slice(0),N=jr.slice(0),Se=Y(N),me=Y(R)}});export{Je as a,Dr as b};
|