@dypnb/dev-tools 1.0.2 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,46 +1,46 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("path"),require("fs"),require("os"),require("util"),require("tty"),require("child_process"),require("assert"),require("events"),require("buffer"),require("stream"),require("node:url"),require("node:path")):"function"==typeof define&&define.amd?define(["path","fs","os","util","tty","child_process","assert","events","buffer","stream","node:url","node:path"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).require$$0$2,e.require$$0,e.require$$0$1,e.require$$0$3,e.require$$1,e.require$$0$4,e.require$$0$5,e.require$$2,e.require$$0$7,e.require$$0$6,e.node_url,e.node_path)}(this,(function(e,t,n,r,o,s,i,a,l,c,u,p){"use strict";var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("path"),require("fs"),require("os"),require("util"),require("tty"),require("child_process"),require("assert"),require("events"),require("buffer"),require("stream"),require("node:url"),require("node:path")):"function"==typeof define&&define.amd?define(["path","fs","os","util","tty","child_process","assert","events","buffer","stream","node:url","node:path"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).require$$0$2,e.require$$0,e.require$$0$1,e.require$$0$3,e.require$$1,e.require$$0$4,e.require$$0$5,e.require$$2,e.require$$0$7,e.require$$0$6,e.node_url,e.node_path)}(this,(function(e,t,n,r,o,s,i,a,l,c,u,p){"use strict";var f="undefined"!=typeof document?document.currentScript:null,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}
2
2
  /*!
3
3
  * is-extglob <https://github.com/jonschlinkert/is-extglob>
4
4
  *
5
5
  * Copyright (c) 2014-2016, Jon Schlinkert.
6
6
  * Licensed under the MIT License.
7
- */var h,g,m,y,b=function(e){if("string"!=typeof e||""===e)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1},v={"{":"}","(":")","[":"]"},A=function(e){if("!"===e[0])return!0;for(var t=0,n=-2,r=-2,o=-2,s=-2,i=-2;t<e.length;){if("*"===e[t])return!0;if("?"===e[t+1]&&/[\].+)]/.test(e[t]))return!0;if(-1!==r&&"["===e[t]&&"]"!==e[t+1]&&(r<t&&(r=e.indexOf("]",t)),r>t)){if(-1===i||i>r)return!0;if(-1===(i=e.indexOf("\\",t))||i>r)return!0}if(-1!==o&&"{"===e[t]&&"}"!==e[t+1]&&(o=e.indexOf("}",t))>t&&(-1===(i=e.indexOf("\\",t))||i>o))return!0;if(-1!==s&&"("===e[t]&&"?"===e[t+1]&&/[:!=]/.test(e[t+2])&&")"!==e[t+3]&&(s=e.indexOf(")",t))>t&&(-1===(i=e.indexOf("\\",t))||i>s))return!0;if(-1!==n&&"("===e[t]&&"|"!==e[t+1]&&(n<t&&(n=e.indexOf("|",t)),-1!==n&&")"!==e[n+1]&&(s=e.indexOf(")",n))>n&&(-1===(i=e.indexOf("\\",n))||i>s)))return!0;if("\\"===e[t]){var a=e[t+1];t+=2;var l=v[a];if(l){var c=e.indexOf(l,t);-1!==c&&(t=c+1)}if("!"===e[t])return!0}else t++}return!1},E=function(e){if("!"===e[0])return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if("\\"===e[t]){var n=e[t+1];t+=2;var r=v[n];if(r){var o=e.indexOf(r,t);-1!==o&&(t=o+1)}if("!"===e[t])return!0}else t++}return!1},x={exports:{}};
7
+ */var g,m,y,b,v=function(e){if("string"!=typeof e||""===e)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1},A={"{":"}","(":")","[":"]"},E=function(e){if("!"===e[0])return!0;for(var t=0,n=-2,r=-2,o=-2,s=-2,i=-2;t<e.length;){if("*"===e[t])return!0;if("?"===e[t+1]&&/[\].+)]/.test(e[t]))return!0;if(-1!==r&&"["===e[t]&&"]"!==e[t+1]&&(r<t&&(r=e.indexOf("]",t)),r>t)){if(-1===i||i>r)return!0;if(-1===(i=e.indexOf("\\",t))||i>r)return!0}if(-1!==o&&"{"===e[t]&&"}"!==e[t+1]&&(o=e.indexOf("}",t))>t&&(-1===(i=e.indexOf("\\",t))||i>o))return!0;if(-1!==s&&"("===e[t]&&"?"===e[t+1]&&/[:!=]/.test(e[t+2])&&")"!==e[t+3]&&(s=e.indexOf(")",t))>t&&(-1===(i=e.indexOf("\\",t))||i>s))return!0;if(-1!==n&&"("===e[t]&&"|"!==e[t+1]&&(n<t&&(n=e.indexOf("|",t)),-1!==n&&")"!==e[n+1]&&(s=e.indexOf(")",n))>n&&(-1===(i=e.indexOf("\\",n))||i>s)))return!0;if("\\"===e[t]){var a=e[t+1];t+=2;var l=A[a];if(l){var c=e.indexOf(l,t);-1!==c&&(t=c+1)}if("!"===e[t])return!0}else t++}return!1},x=function(e){if("!"===e[0])return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if("\\"===e[t]){var n=e[t+1];t+=2;var r=A[n];if(r){var o=e.indexOf(r,t);-1!==o&&(t=o+1)}if("!"===e[t])return!0}else t++}return!1},R={exports:{}};
8
8
  /*!
9
9
  * is-glob <https://github.com/jonschlinkert/is-glob>
10
10
  *
11
11
  * Copyright (c) 2014-2017, Jon Schlinkert.
12
12
  * Released under the MIT License.
13
- */var R=n;void 0!==R.homedir?x.exports=R.homedir:x.exports=function(){if(y)return m;y=1;var e=t,n=function(){if(g)return h;function e(e,t){if(!e||!e.length||"#"===e.charAt(0))return null;var n=e.split(":");return{username:n[0],password:n[1],uid:n[2],gid:n[3],gecos:n[4],homedir:n[5],shell:n[6]}}return g=1,h=function(t){if("string"!=typeof t)throw new Error("expected a string");return t.split("\n").map(e).filter(Boolean)}}();return m=function(){if("win32"===process.platform)return process.env.USERPROFILE?process.env.USERPROFILE:process.env.HOMEDRIVE&&process.env.HOMEPATH?process.env.HOMEDRIVE+process.env.HOMEPATH:process.env.HOME?process.env.HOME:null;if(process.env.HOME)return process.env.HOME;var t=function(t){try{return e.readFileSync(t,"utf8")}catch(e){return""}}("/etc/passwd"),r=function(e,t){for(var n=e.length,r=0;r<n;r++)if(+e[r].uid===t)return e[r].homedir}(n(t),"function"==typeof process.geteuid?process.geteuid():process.getuid());if(r)return r;var o=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return o?"darwin"===process.platform?"/Users/"+o:"/home/"+o:null}}();var C=x.exports,_=C,S=e,w=function(e){var t=_();return 126===e.charCodeAt(0)?43===e.charCodeAt(1)?S.join(process.cwd(),e.slice(2)):t?S.join(t,e.slice(1)):e:e},T={exports:{}},O={exports:{}},$={};
13
+ */var C=n;void 0!==C.homedir?R.exports=C.homedir:R.exports=function(){if(b)return y;b=1;var e=t,n=function(){if(m)return g;function e(e,t){if(!e||!e.length||"#"===e.charAt(0))return null;var n=e.split(":");return{username:n[0],password:n[1],uid:n[2],gid:n[3],gecos:n[4],homedir:n[5],shell:n[6]}}return m=1,g=function(t){if("string"!=typeof t)throw new Error("expected a string");return t.split("\n").map(e).filter(Boolean)}}();return y=function(){if("win32"===process.platform)return process.env.USERPROFILE?process.env.USERPROFILE:process.env.HOMEDRIVE&&process.env.HOMEPATH?process.env.HOMEDRIVE+process.env.HOMEPATH:process.env.HOME?process.env.HOME:null;if(process.env.HOME)return process.env.HOME;var t=function(t){try{return e.readFileSync(t,"utf8")}catch(e){return""}}("/etc/passwd"),r=function(e,t){for(var n=e.length,r=0;r<n;r++)if(+e[r].uid===t)return e[r].homedir}(n(t),"function"==typeof process.geteuid?process.geteuid():process.getuid());if(r)return r;var o=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return o?"darwin"===process.platform?"/Users/"+o:"/home/"+o:null}}();var _=R.exports,S=_,w=e,T=function(e){var t=S();return 126===e.charCodeAt(0)?43===e.charCodeAt(1)?w.join(process.cwd(),e.slice(2)):t?w.join(t,e.slice(1)):e:e},O={exports:{}},$={exports:{}},I={};
14
14
  /*!
15
15
  * expand-tilde <https://github.com/jonschlinkert/expand-tilde>
16
16
  *
17
17
  * Copyright (c) 2015 Jon Schlinkert.
18
18
  * Licensed under the MIT license.
19
- */$.parse=$.decode=function(e){var t={},n=t,r=null,o=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return e.split(/[\r\n]+/g).forEach((function(e,s,i){if(e&&!e.match(/^\s*[;#]/)){var a=e.match(o);if(a){if(void 0!==a[1])return"__proto__"===(r=P(a[1]))?void(n={}):void(n=t[r]=t[r]||{});var l=P(a[2]);if("__proto__"!==l){var c=!a[3]||P(a[4]);switch(c){case"true":case"false":case"null":c=JSON.parse(c)}if(l.length>2&&"[]"===l.slice(-2)){if("__proto__"===(l=l.substring(0,l.length-2)))return;n[l]?Array.isArray(n[l])||(n[l]=[n[l]]):n[l]=[]}Array.isArray(n[l])?n[l].push(c):n[l]=c}}}})),Object.keys(t).filter((function(e,n,r){if(!t[e]||"object"!=typeof t[e]||Array.isArray(t[e]))return!1;var o=k(e),s=t,i=o.pop(),a=i.replace(/\\\./g,".");return o.forEach((function(e,t,n){"__proto__"!==e&&(s[e]&&"object"==typeof s[e]||(s[e]={}),s=s[e])})),(s!==t||a!==i)&&(s[a]=t[e],!0)})).forEach((function(e,n,r){delete t[e]})),t},$.stringify=$.encode=function e(t,n){var r=[],o="";"string"==typeof n?n={section:n,whitespace:!1}:(n=n||{}).whitespace=!0===n.whitespace;var s=n.whitespace?" = ":"=";Object.keys(t).forEach((function(e,n,i){var a=t[e];a&&Array.isArray(a)?a.forEach((function(t){o+=H(e+"[]")+s+H(t)+"\n"})):a&&"object"==typeof a?r.push(e):o+=H(e)+s+H(a)+I})),n.section&&o.length&&(o="["+H(n.section)+"]"+I+o);return r.forEach((function(r,s,i){var a=k(r).join("\\."),l=(n.section?n.section+".":"")+a,c=e(t[r],{section:l,whitespace:n.whitespace});o.length&&c.length&&(o+=I),o+=c})),o},$.safe=H,$.unsafe=P;var I="undefined"!=typeof process&&"win32"===process.platform?"\r\n":"\n";function k(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map((function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")}))}function L(e){return'"'===e.charAt(0)&&'"'===e.slice(-1)||"'"===e.charAt(0)&&"'"===e.slice(-1)}function H(e){return"string"!=typeof e||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&L(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function P(e,t){if(!L(e=(e||"").trim())){for(var n=!1,r="",o=0,s=e.length;o<s;o++){var i=e.charAt(o);if(n)-1!=="\\;#".indexOf(i)?r+=i:r+="\\"+i,n=!1;else{if(-1!==";#".indexOf(i))break;"\\"===i?n=!0:r+=i}}return n&&(r+="\\"),r.trim()}"'"===e.charAt(0)&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch(e){}return e}var M={exports:{}};
19
+ */I.parse=I.decode=function(e){var t={},n=t,r=null,o=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return e.split(/[\r\n]+/g).forEach((function(e,s,i){if(e&&!e.match(/^\s*[;#]/)){var a=e.match(o);if(a){if(void 0!==a[1])return"__proto__"===(r=M(a[1]))?void(n={}):void(n=t[r]=t[r]||{});var l=M(a[2]);if("__proto__"!==l){var c=!a[3]||M(a[4]);switch(c){case"true":case"false":case"null":c=JSON.parse(c)}if(l.length>2&&"[]"===l.slice(-2)){if("__proto__"===(l=l.substring(0,l.length-2)))return;n[l]?Array.isArray(n[l])||(n[l]=[n[l]]):n[l]=[]}Array.isArray(n[l])?n[l].push(c):n[l]=c}}}})),Object.keys(t).filter((function(e,n,r){if(!t[e]||"object"!=typeof t[e]||Array.isArray(t[e]))return!1;var o=L(e),s=t,i=o.pop(),a=i.replace(/\\\./g,".");return o.forEach((function(e,t,n){"__proto__"!==e&&(s[e]&&"object"==typeof s[e]||(s[e]={}),s=s[e])})),(s!==t||a!==i)&&(s[a]=t[e],!0)})).forEach((function(e,n,r){delete t[e]})),t},I.stringify=I.encode=function e(t,n){var r=[],o="";"string"==typeof n?n={section:n,whitespace:!1}:(n=n||{}).whitespace=!0===n.whitespace;var s=n.whitespace?" = ":"=";Object.keys(t).forEach((function(e,n,i){var a=t[e];a&&Array.isArray(a)?a.forEach((function(t){o+=P(e+"[]")+s+P(t)+"\n"})):a&&"object"==typeof a?r.push(e):o+=P(e)+s+P(a)+k})),n.section&&o.length&&(o="["+P(n.section)+"]"+k+o);return r.forEach((function(r,s,i){var a=L(r).join("\\."),l=(n.section?n.section+".":"")+a,c=e(t[r],{section:l,whitespace:n.whitespace});o.length&&c.length&&(o+=k),o+=c})),o},I.safe=P,I.unsafe=M;var k="undefined"!=typeof process&&"win32"===process.platform?"\r\n":"\n";function L(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map((function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")}))}function H(e){return'"'===e.charAt(0)&&'"'===e.slice(-1)||"'"===e.charAt(0)&&"'"===e.slice(-1)}function P(e){return"string"!=typeof e||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&H(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function M(e,t){if(!H(e=(e||"").trim())){for(var n=!1,r="",o=0,s=e.length;o<s;o++){var i=e.charAt(o);if(n)-1!=="\\;#".indexOf(i)?r+=i:r+="\\"+i,n=!1;else{if(-1!==";#".indexOf(i))break;"\\"===i?n=!0:r+=i}}return n&&(r+="\\"),r.trim()}"'"===e.charAt(0)&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch(e){}return e}var N={exports:{}};
20
20
  /*!
21
21
  * is-windows <https://github.com/jonschlinkert/is-windows>
22
22
  *
23
23
  * Copyright © 2015-2018, Jon Schlinkert.
24
24
  * Released under the MIT License.
25
- */!function(e,t){!function(n){t?e.exports=n():"undefined"!=typeof window?window.isWindows=n():void 0!==f?f.isWindows=n():"undefined"!=typeof self?self.isWindows=n():this.isWindows=n()}((function(){return function(){return process&&("win32"===process.platform||/^(msys|cygwin)$/.test(process.env.OSTYPE))}}))}(M,M.exports);var N,B,G,D,j,U=M.exports;j="win32"===process.platform||f.TESTING_WINDOWS?function(){if(B)return N;B=1,N=r,r.sync=function(t,r){return n(e.statSync(t),t,r)};var e=t;function n(e,t,n){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var n=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!n)return!0;if(-1!==(n=n.split(";")).indexOf(""))return!0;for(var r=0;r<n.length;r++){var o=n[r].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}(t,n)}function r(t,r,o){e.stat(t,(function(e,s){o(e,!e&&n(s,t,r))}))}return N}():function(){if(D)return G;D=1,G=n,n.sync=function(t,n){return r(e.statSync(t),n)};var e=t;function n(t,n,o){e.stat(t,(function(e,t){o(e,!e&&r(t,n))}))}function r(e,t){return e.isFile()&&function(e,t){var n=e.mode,r=e.uid,o=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),i=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8);return n&parseInt("001",8)||n&l&&o===i||n&a&&r===s||n&(a|l)&&0===s}(e,t)}return G}();var F,q,K=W;function W(e,t,n){if("function"==typeof t&&(n=t,t={}),!n){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(n,r){W(e,t||{},(function(e,t){e?r(e):n(t)}))}))}j(e,t||{},(function(e,r){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)}))}W.sync=function(e,t){try{return j.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}},function(n){var r,o=t,s=e,i=w,a=C,l=$;function c(){if(process.env.PREFIX)r=process.env.PREFIX;else{var t=a();if(t){var n=s.resolve(t,".npmrc");r=u(n)}if(!r){var l=function(){try{return o.realpathSync(function(){if(q)return F;q=1,F=a,a.sync=function(e,t){for(var r=i(e,t=t||{}),a=r.env,l=r.ext,c=r.extExe,u=[],p=0,f=a.length;p<f;p++){var d=a[p];'"'===d.charAt(0)&&'"'===d.slice(-1)&&(d=d.slice(1,-1));var h=n.join(d,e);!d&&/^\.[\\\/]/.test(e)&&(h=e.slice(0,2)+h);for(var g=0,m=l.length;g<m;g++){var y=h+l[g];try{if(o.sync(y,{pathExt:c})){if(!t.all)return y;u.push(y)}}catch(e){}}}if(t.all&&u.length)return u;if(t.nothrow)return null;throw s(e)};var t="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,n=e,r=t?";":":",o=K;function s(e){var t=new Error("not found: "+e);return t.code="ENOENT",t}function i(e,n){var o=n.colon||r,s=n.path||process.env.PATH||"",i=[""];s=s.split(o);var a="";return t&&(s.unshift(process.cwd()),i=(a=n.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(o),-1!==e.indexOf(".")&&""!==i[0]&&i.unshift("")),(e.match(/\//)||t&&e.match(/\\/))&&(s=[""]),{env:s,ext:i,extExe:a}}function a(e,t,r){"function"==typeof t&&(r=t,t={});var a=i(e,t),l=a.env,c=a.ext,u=a.extExe,p=[];!function i(a,f){if(a===f)return t.all&&p.length?r(null,p):r(s(e));var d=l[a];'"'===d.charAt(0)&&'"'===d.slice(-1)&&(d=d.slice(1,-1));var h=n.join(d,e);!d&&/^\.[\\\/]/.test(e)&&(h=e.slice(0,2)+h),function e(n,s){if(n===s)return i(a+1,f);var l=c[n];o(h+l,{pathExt:u},(function(o,i){if(!o&&i){if(!t.all)return r(null,h+l);p.push(h+l)}return e(n+1,s)}))}(0,c.length)}(0,l.length)}return F}
25
+ */!function(e,t){!function(n){t?e.exports=n():"undefined"!=typeof window?window.isWindows=n():void 0!==d?d.isWindows=n():"undefined"!=typeof self?self.isWindows=n():this.isWindows=n()}((function(){return function(){return process&&("win32"===process.platform||/^(msys|cygwin)$/.test(process.env.OSTYPE))}}))}(N,N.exports);var B,G,D,j,U,F=N.exports;U="win32"===process.platform||d.TESTING_WINDOWS?function(){if(G)return B;G=1,B=r,r.sync=function(t,r){return n(e.statSync(t),t,r)};var e=t;function n(e,t,n){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var n=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!n)return!0;if(-1!==(n=n.split(";")).indexOf(""))return!0;for(var r=0;r<n.length;r++){var o=n[r].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}(t,n)}function r(t,r,o){e.stat(t,(function(e,s){o(e,!e&&n(s,t,r))}))}return B}():function(){if(j)return D;j=1,D=n,n.sync=function(t,n){return r(e.statSync(t),n)};var e=t;function n(t,n,o){e.stat(t,(function(e,t){o(e,!e&&r(t,n))}))}function r(e,t){return e.isFile()&&function(e,t){var n=e.mode,r=e.uid,o=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),i=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8);return n&parseInt("001",8)||n&l&&o===i||n&a&&r===s||n&(a|l)&&0===s}(e,t)}return D}();var q,K,W=J;function J(e,t,n){if("function"==typeof t&&(n=t,t={}),!n){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(n,r){J(e,t||{},(function(e,t){e?r(e):n(t)}))}))}U(e,t||{},(function(e,r){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)}))}J.sync=function(e,t){try{return U.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}},function(n){var r,o=t,s=e,i=T,a=_,l=I;function c(){if(process.env.PREFIX)r=process.env.PREFIX;else{var t=a();if(t){var n=s.resolve(t,".npmrc");r=u(n)}if(!r){var l=function(){try{return o.realpathSync(function(){if(K)return q;K=1,q=a,a.sync=function(e,t){for(var r=i(e,t=t||{}),a=r.env,l=r.ext,c=r.extExe,u=[],p=0,f=a.length;p<f;p++){var d=a[p];'"'===d.charAt(0)&&'"'===d.slice(-1)&&(d=d.slice(1,-1));var h=n.join(d,e);!d&&/^\.[\\\/]/.test(e)&&(h=e.slice(0,2)+h);for(var g=0,m=l.length;g<m;g++){var y=h+l[g];try{if(o.sync(y,{pathExt:c})){if(!t.all)return y;u.push(y)}}catch(e){}}}if(t.all&&u.length)return u;if(t.nothrow)return null;throw s(e)};var t="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,n=e,r=t?";":":",o=W;function s(e){var t=new Error("not found: "+e);return t.code="ENOENT",t}function i(e,n){var o=n.colon||r,s=n.path||process.env.PATH||"",i=[""];s=s.split(o);var a="";return t&&(s.unshift(process.cwd()),i=(a=n.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(o),-1!==e.indexOf(".")&&""!==i[0]&&i.unshift("")),(e.match(/\//)||t&&e.match(/\\/))&&(s=[""]),{env:s,ext:i,extExe:a}}function a(e,t,r){"function"==typeof t&&(r=t,t={});var a=i(e,t),l=a.env,c=a.ext,u=a.extExe,p=[];!function i(a,f){if(a===f)return t.all&&p.length?r(null,p):r(s(e));var d=l[a];'"'===d.charAt(0)&&'"'===d.slice(-1)&&(d=d.slice(1,-1));var h=n.join(d,e);!d&&/^\.[\\\/]/.test(e)&&(h=e.slice(0,2)+h),function e(n,s){if(n===s)return i(a+1,f);var l=c[n];o(h+l,{pathExt:u},(function(o,i){if(!o&&i){if(!t.all)return r(null,h+l);p.push(h+l)}return e(n+1,s)}))}(0,c.length)}(0,l.length)}return q}
26
26
  /*!
27
27
  * global-prefix <https://github.com/jonschlinkert/global-prefix>
28
28
  *
29
29
  * Copyright (c) 2015-2017 Jon Schlinkert.
30
30
  * Licensed under the MIT license.
31
- */().sync("npm"))}catch(e){}return null}();if(l){var c=s.resolve(l,"..","..","npmrc");if(r=u(c)){var p=s.resolve(r,"etc","npmrc");r=u(p)||r}}r||function(){var e=U;e()?r=process.env.APPDATA?s.join(process.env.APPDATA,"npm"):s.dirname(process.execPath):(r=s.dirname(s.dirname(process.execPath)),process.env.DESTDIR&&(r=s.join(process.env.DESTDIR,r)))}()}}if(r)return i(r)}function u(e){try{var t=o.readFileSync(e,"utf-8"),n=l.parse(t);if(n.prefix)return n.prefix}catch(e){}return null}Object.defineProperty(n,"exports",{enumerable:!0,get:function(){return r||(r=c())}})}(O);var J=O.exports;
31
+ */().sync("npm"))}catch(e){}return null}();if(l){var c=s.resolve(l,"..","..","npmrc");if(r=u(c)){var p=s.resolve(r,"etc","npmrc");r=u(p)||r}}r||function(){var e=F;e()?r=process.env.APPDATA?s.join(process.env.APPDATA,"npm"):s.dirname(process.execPath):(r=s.dirname(s.dirname(process.execPath)),process.env.DESTDIR&&(r=s.join(process.env.DESTDIR,r)))}()}}if(r)return i(r)}function u(e){try{var t=o.readFileSync(e,"utf-8"),n=l.parse(t);if(n.prefix)return n.prefix}catch(e){}return null}Object.defineProperty(n,"exports",{enumerable:!0,get:function(){return r||(r=c())}})}($);var X=$.exports;
32
32
  /*!
33
33
  * global-modules <https://github.com/jonschlinkert/global-modules>
34
34
  *
35
35
  * Copyright (c) 2015-2017 Jon Schlinkert.
36
36
  * Licensed under the MIT license.
37
- */!function(t){var n,r=e,o=J,s=U;Object.defineProperty(t,"exports",{enumerable:!0,get:function(){return n||(n=s()?r.resolve(o,"node_modules"):r.resolve(o,"lib/node_modules"))}})}(T);var X=e,Q=w,z=T.exports,V=t,Y=e;
37
+ */!function(t){var n,r=e,o=X,s=F;Object.defineProperty(t,"exports",{enumerable:!0,get:function(){return n||(n=s()?r.resolve(o,"node_modules"):r.resolve(o,"lib/node_modules"))}})}(O);var Q=e,z=T,V=O.exports,Y=t,Z=e;
38
38
  /*!
39
39
  * resolve-dir <https://github.com/jonschlinkert/resolve-dir>
40
40
  *
41
41
  * Copyright (c) 2015, Jon Schlinkert.
42
42
  * Licensed under the MIT License.
43
- */var Z={};!function(e){e.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),e.find=(e,t)=>e.nodes.find((e=>e.type===t)),e.exceedsLimit=(t,n,r=1,o)=>!1!==o&&(!(!e.isInteger(t)||!e.isInteger(n))&&(Number(n)-Number(t))/Number(r)>=o),e.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];r&&(n&&r.type===n||"open"===r.type||"close"===r.type)&&!0!==r.escaped&&(r.value="\\"+r.value,r.escaped=!0)},e.encloseBrace=e=>"brace"===e.type&&(e.commas>>0+e.ranges>>0==0&&(e.invalid=!0,!0)),e.isInvalidBrace=e=>"brace"===e.type&&(!(!0!==e.invalid&&!e.dollar)||(e.commas>>0+e.ranges>>0==0||!0!==e.open||!0!==e.close)&&(e.invalid=!0,!0)),e.isOpenOrClose=e=>"open"===e.type||"close"===e.type||(!0===e.open||!0===e.close),e.reduce=e=>e.reduce(((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e)),[]),e.flatten=(...e)=>{const t=[],n=e=>{for(let r=0;r<e.length;r++){let o=e[r];Array.isArray(o)?n(o):void 0!==o&&t.push(o)}return t};return n(e),t}}(Z);const ee=Z;var te=(e,t={})=>{let n=(e,r={})=>{let o=t.escapeInvalid&&ee.isInvalidBrace(r),s=!0===e.invalid&&!0===t.escapeInvalid,i="";if(e.value)return(o||s)&&ee.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)i+=n(t);return i};return n(e)};
43
+ */var ee={};!function(e){e.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),e.find=(e,t)=>e.nodes.find((e=>e.type===t)),e.exceedsLimit=(t,n,r=1,o)=>!1!==o&&(!(!e.isInteger(t)||!e.isInteger(n))&&(Number(n)-Number(t))/Number(r)>=o),e.escapeNode=(e,t=0,n)=>{let r=e.nodes[t];r&&(n&&r.type===n||"open"===r.type||"close"===r.type)&&!0!==r.escaped&&(r.value="\\"+r.value,r.escaped=!0)},e.encloseBrace=e=>"brace"===e.type&&(e.commas>>0+e.ranges>>0==0&&(e.invalid=!0,!0)),e.isInvalidBrace=e=>"brace"===e.type&&(!(!0!==e.invalid&&!e.dollar)||(e.commas>>0+e.ranges>>0==0||!0!==e.open||!0!==e.close)&&(e.invalid=!0,!0)),e.isOpenOrClose=e=>"open"===e.type||"close"===e.type||(!0===e.open||!0===e.close),e.reduce=e=>e.reduce(((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e)),[]),e.flatten=(...e)=>{const t=[],n=e=>{for(let r=0;r<e.length;r++){let o=e[r];Array.isArray(o)?n(o):void 0!==o&&t.push(o)}return t};return n(e),t}}(ee);const te=ee;var ne=(e,t={})=>{let n=(e,r={})=>{let o=t.escapeInvalid&&te.isInvalidBrace(r),s=!0===e.invalid&&!0===t.escapeInvalid,i="";if(e.value)return(o||s)&&te.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)i+=n(t);return i};return n(e)};
44
44
  /*!
45
45
  * is-number <https://github.com/jonschlinkert/is-number>
46
46
  *
@@ -53,11 +53,11 @@
53
53
  * Copyright (c) 2015-present, Jon Schlinkert.
54
54
  * Released under the MIT License.
55
55
  */
56
- const ne=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))},re=(e,t,n)=>{if(!1===ne(e))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===ne(t))throw new TypeError("toRegexRange: expected the second argument to be a number.");let r={relaxZeros:!0,...n};"boolean"==typeof r.strictZeros&&(r.relaxZeros=!1===r.strictZeros);let o=e+":"+t+"="+String(r.relaxZeros)+String(r.shorthand)+String(r.capture)+String(r.wrap);if(re.cache.hasOwnProperty(o))return re.cache[o].result;let s=Math.min(e,t),i=Math.max(e,t);if(1===Math.abs(s-i)){let n=e+"|"+t;return r.capture?`(${n})`:!1===r.wrap?n:`(?:${n})`}let a=de(e)||de(t),l={min:e,max:t,a:s,b:i},c=[],u=[];if(a&&(l.isPadded=a,l.maxLen=String(l.max).length),s<0){u=se(i<0?Math.abs(i):1,Math.abs(s),l,r),s=l.a=0}return i>=0&&(c=se(s,i,l,r)),l.negatives=u,l.positives=c,l.result=function(e,t,n){let r=ie(e,t,"-",!1)||[],o=ie(t,e,"",!1)||[],s=ie(e,t,"-?",!0)||[];return r.concat(s).concat(o).join("|")}(u,c),!0===r.capture?l.result=`(${l.result})`:!1!==r.wrap&&c.length+u.length>1&&(l.result=`(?:${l.result})`),re.cache[o]=l,l.result};function oe(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=function(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}(e,t),o=r.length,s="",i=0;for(let e=0;e<o;e++){let[t,n]=r[e];t===n?s+=t:"0"!==t||"9"!==n?s+=fe(t,n):i++}return i&&(s+=!0===n.shorthand?"\\d":"[0-9]"),{pattern:s,count:[i],digits:o}}function se(e,t,n,r){let o,s=function(e,t){let n=1,r=1,o=ce(e,n),s=new Set([t]);for(;e<=o&&o<=t;)s.add(o),n+=1,o=ce(e,n);for(o=ue(t+1,r)-1;e<o&&o<=t;)s.add(o),r+=1,o=ue(t+1,r)-1;return s=[...s],s.sort(ae),s}(e,t),i=[],a=e;for(let e=0;e<s.length;e++){let t=s[e],l=oe(String(a),String(t),r),c="";n.isPadded||!o||o.pattern!==l.pattern?(n.isPadded&&(c=he(t,n,r)),l.string=c+l.pattern+pe(l.count),i.push(l),a=t+1,o=l):(o.count.length>1&&o.count.pop(),o.count.push(l.count[0]),o.string=o.pattern+pe(o.count),a=t+1)}return i}function ie(e,t,n,r,o){let s=[];for(let o of e){let{string:e}=o;r||le(t,"string",e)||s.push(n+e),r&&le(t,"string",e)&&s.push(n+e)}return s}function ae(e,t){return e>t?1:t>e?-1:0}function le(e,t,n){return e.some((e=>e[t]===n))}function ce(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function ue(e,t){return e-e%Math.pow(10,t)}function pe(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}function fe(e,t,n){return`[${e}${t-e==1?"":"-"}${t}]`}function de(e){return/^-?(0+)\d/.test(e)}function he(e,t,n){if(!t.isPadded)return e;let r=Math.abs(t.maxLen-String(e).length),o=!1!==n.relaxZeros;switch(r){case 0:return"";case 1:return o?"0?":"0";case 2:return o?"0{0,2}":"00";default:return o?`0{0,${r}}`:`0{${r}}`}}re.cache={},re.clearCache=()=>re.cache={};
56
+ const re=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))},oe=(e,t,n)=>{if(!1===re(e))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===re(t))throw new TypeError("toRegexRange: expected the second argument to be a number.");let r={relaxZeros:!0,...n};"boolean"==typeof r.strictZeros&&(r.relaxZeros=!1===r.strictZeros);let o=e+":"+t+"="+String(r.relaxZeros)+String(r.shorthand)+String(r.capture)+String(r.wrap);if(oe.cache.hasOwnProperty(o))return oe.cache[o].result;let s=Math.min(e,t),i=Math.max(e,t);if(1===Math.abs(s-i)){let n=e+"|"+t;return r.capture?`(${n})`:!1===r.wrap?n:`(?:${n})`}let a=he(e)||he(t),l={min:e,max:t,a:s,b:i},c=[],u=[];if(a&&(l.isPadded=a,l.maxLen=String(l.max).length),s<0){u=ie(i<0?Math.abs(i):1,Math.abs(s),l,r),s=l.a=0}return i>=0&&(c=ie(s,i,l,r)),l.negatives=u,l.positives=c,l.result=function(e,t,n){let r=ae(e,t,"-",!1)||[],o=ae(t,e,"",!1)||[],s=ae(e,t,"-?",!0)||[];return r.concat(s).concat(o).join("|")}(u,c),!0===r.capture?l.result=`(${l.result})`:!1!==r.wrap&&c.length+u.length>1&&(l.result=`(?:${l.result})`),oe.cache[o]=l,l.result};function se(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let r=function(e,t){let n=[];for(let r=0;r<e.length;r++)n.push([e[r],t[r]]);return n}(e,t),o=r.length,s="",i=0;for(let e=0;e<o;e++){let[t,n]=r[e];t===n?s+=t:"0"!==t||"9"!==n?s+=de(t,n):i++}return i&&(s+=!0===n.shorthand?"\\d":"[0-9]"),{pattern:s,count:[i],digits:o}}function ie(e,t,n,r){let o,s=function(e,t){let n=1,r=1,o=ue(e,n),s=new Set([t]);for(;e<=o&&o<=t;)s.add(o),n+=1,o=ue(e,n);for(o=pe(t+1,r)-1;e<o&&o<=t;)s.add(o),r+=1,o=pe(t+1,r)-1;return s=[...s],s.sort(le),s}(e,t),i=[],a=e;for(let e=0;e<s.length;e++){let t=s[e],l=se(String(a),String(t),r),c="";n.isPadded||!o||o.pattern!==l.pattern?(n.isPadded&&(c=ge(t,n,r)),l.string=c+l.pattern+fe(l.count),i.push(l),a=t+1,o=l):(o.count.length>1&&o.count.pop(),o.count.push(l.count[0]),o.string=o.pattern+fe(o.count),a=t+1)}return i}function ae(e,t,n,r,o){let s=[];for(let o of e){let{string:e}=o;r||ce(t,"string",e)||s.push(n+e),r&&ce(t,"string",e)&&s.push(n+e)}return s}function le(e,t){return e>t?1:t>e?-1:0}function ce(e,t,n){return e.some((e=>e[t]===n))}function ue(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function pe(e,t){return e-e%Math.pow(10,t)}function fe(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}function de(e,t,n){return`[${e}${t-e==1?"":"-"}${t}]`}function he(e){return/^-?(0+)\d/.test(e)}function ge(e,t,n){if(!t.isPadded)return e;let r=Math.abs(t.maxLen-String(e).length),o=!1!==n.relaxZeros;switch(r){case 0:return"";case 1:return o?"0?":"0";case 2:return o?"0{0,2}":"00";default:return o?`0{0,${r}}`:`0{${r}}`}}oe.cache={},oe.clearCache=()=>oe.cache={};
57
57
  /*!
58
58
  * fill-range <https://github.com/jonschlinkert/fill-range>
59
59
  *
60
60
  * Copyright (c) 2014-present, Jon Schlinkert.
61
61
  * Licensed under the MIT License.
62
62
  */
63
- const ge=r,me=re,ye=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),be=e=>"number"==typeof e||"string"==typeof e&&""!==e,ve=e=>Number.isInteger(+e),Ae=e=>{let t=`${e}`,n=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++n];);return n>0},Ee=(e,t,n)=>{if(t>0){let n="-"===e[0]?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return!1===n?String(e):e},xe=(e,t)=>{let n="-"===e[0]?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return n?"-"+e:e},Re=(e,t,n,r)=>{if(n)return me(e,t,{wrap:!1,...r});let o=String.fromCharCode(e);return e===t?o:`[${o}-${String.fromCharCode(t)}]`},Ce=(e,t,n)=>{if(Array.isArray(e)){let t=!0===n.wrap,r=n.capture?"":"?:";return t?`(${r}${e.join("|")})`:e.join("|")}return me(e,t,n)},_e=(...e)=>new RangeError("Invalid range arguments: "+ge.inspect(...e)),Se=(e,t,n)=>{if(!0===n.strictRanges)throw _e([e,t]);return[]},we=(e,t,n=1,r={})=>{let o=Number(e),s=Number(t);if(!Number.isInteger(o)||!Number.isInteger(s)){if(!0===r.strictRanges)throw _e([e,t]);return[]}0===o&&(o=0),0===s&&(s=0);let i=o>s,a=String(e),l=String(t),c=String(n);n=Math.max(Math.abs(n),1);let u=Ae(a)||Ae(l)||Ae(c),p=u?Math.max(a.length,l.length,c.length):0,f=!1===u&&!1===((e,t,n)=>"string"==typeof e||"string"==typeof t||!0===n.stringify)(e,t,r),d=r.transform||(e=>t=>!0===e?Number(t):String(t))(f);if(r.toRegex&&1===n)return Re(xe(e,p),xe(t,p),!0,r);let h={negatives:[],positives:[]},g=[],m=0;for(;i?o>=s:o<=s;)!0===r.toRegex&&n>1?h[(y=o)<0?"negatives":"positives"].push(Math.abs(y)):g.push(Ee(d(o,m),p,f)),o=i?o-n:o+n,m++;var y;return!0===r.toRegex?n>1?((e,t)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0)),e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let n,r=t.capture?"":"?:",o="",s="";return e.positives.length&&(o=e.positives.join("|")),e.negatives.length&&(s=`-(${r}${e.negatives.join("|")})`),n=o&&s?`${o}|${s}`:o||s,t.wrap?`(${r}${n})`:n})(h,r):Ce(g,null,{wrap:!1,...r}):g},Te=(e,t,n,r={})=>{if(null==t&&be(e))return[e];if(!be(e)||!be(t))return Se(e,t,r);if("function"==typeof n)return Te(e,t,1,{transform:n});if(ye(n))return Te(e,t,0,n);let o={...r};return!0===o.capture&&(o.wrap=!0),n=n||o.step||1,ve(n)?ve(e)&&ve(t)?we(e,t,n,o):((e,t,n=1,r={})=>{if(!ve(e)&&e.length>1||!ve(t)&&t.length>1)return Se(e,t,r);let o=r.transform||(e=>String.fromCharCode(e)),s=`${e}`.charCodeAt(0),i=`${t}`.charCodeAt(0),a=s>i,l=Math.min(s,i),c=Math.max(s,i);if(r.toRegex&&1===n)return Re(l,c,!1,r);let u=[],p=0;for(;a?s>=i:s<=i;)u.push(o(s,p)),s=a?s-n:s+n,p++;return!0===r.toRegex?Ce(u,null,{wrap:!1,options:r}):u})(e,t,Math.max(Math.abs(n),1),o):null==n||ye(n)?Te(e,t,1,n):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(n,o)};const Oe=Te,$e=Z;var Ie=(e,t={})=>{let n=(e,r={})=>{let o=$e.isInvalidBrace(r),s=!0===e.invalid&&!0===t.escapeInvalid,i=!0===o||!0===s,a=!0===t.escapeInvalid?"\\":"",l="";if(!0===e.isOpen)return a+e.value;if(!0===e.isClose)return a+e.value;if("open"===e.type)return i?a+e.value:"(";if("close"===e.type)return i?a+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":i?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){let n=$e.reduce(e.nodes),r=Oe(...n,{...t,wrap:!1,toRegex:!0});if(0!==r.length)return n.length>1&&r.length>1?`(${r})`:r}if(e.nodes)for(let t of e.nodes)l+=n(t,e);return l};return n(e)};const ke=Te,Le=te,He=Z,Pe=(e="",t="",n=!1)=>{let r=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return n?He.flatten(t).map((e=>`{${e}}`)):t;for(let o of e)if(Array.isArray(o))for(let e of o)r.push(Pe(e,t,n));else for(let e of t)!0===n&&"string"==typeof e&&(e=`{${e}}`),r.push(Array.isArray(e)?Pe(o,e,n):o+e);return He.flatten(r)};var Me=(e,t={})=>{let n=void 0===t.rangeLimit?1e3:t.rangeLimit,r=(e,o={})=>{e.queue=[];let s=o,i=o.queue;for(;"brace"!==s.type&&"root"!==s.type&&s.parent;)s=s.parent,i=s.queue;if(e.invalid||e.dollar)return void i.push(Pe(i.pop(),Le(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void i.push(Pe(i.pop(),["{}"]));if(e.nodes&&e.ranges>0){let r=He.reduce(e.nodes);if(He.exceedsLimit(...r,t.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let o=ke(...r,t);return 0===o.length&&(o=Le(e,t)),i.push(Pe(i.pop(),o)),void(e.nodes=[])}let a=He.encloseBrace(e),l=e.queue,c=e;for(;"brace"!==c.type&&"root"!==c.type&&c.parent;)c=c.parent,l=c.queue;for(let t=0;t<e.nodes.length;t++){let n=e.nodes[t];"comma"!==n.type||"brace"!==e.type?"close"!==n.type?n.value&&"open"!==n.type?l.push(Pe(l.pop(),n.value)):n.nodes&&r(n,e):i.push(Pe(i.pop(),l,a)):(1===t&&l.push(""),l.push(""))}return l};return He.flatten(r(e))};const Ne=te,{MAX_LENGTH:Be,CHAR_BACKSLASH:Ge,CHAR_BACKTICK:De,CHAR_COMMA:je,CHAR_DOT:Ue,CHAR_LEFT_PARENTHESES:Fe,CHAR_RIGHT_PARENTHESES:qe,CHAR_LEFT_CURLY_BRACE:Ke,CHAR_RIGHT_CURLY_BRACE:We,CHAR_LEFT_SQUARE_BRACKET:Je,CHAR_RIGHT_SQUARE_BRACKET:Xe,CHAR_DOUBLE_QUOTE:Qe,CHAR_SINGLE_QUOTE:ze,CHAR_NO_BREAK_SPACE:Ve,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ye}={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"};var Ze=(e,t={})=>{if("string"!=typeof e)throw new TypeError("Expected a string");let n=t||{},r="number"==typeof n.maxLength?Math.min(Be,n.maxLength):Be;if(e.length>r)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${r})`);let o,s={type:"root",input:e,nodes:[]},i=[s],a=s,l=s,c=0,u=e.length,p=0,f=0;const d=()=>e[p++],h=e=>{if("text"===e.type&&"dot"===l.type&&(l.type="text"),!l||"text"!==l.type||"text"!==e.type)return a.nodes.push(e),e.parent=a,e.prev=l,l=e,e;l.value+=e.value};for(h({type:"bos"});p<u;)if(a=i[i.length-1],o=d(),o!==Ye&&o!==Ve)if(o!==Ge)if(o!==Xe)if(o!==Je)if(o!==Fe)if(o!==qe)if(o!==Qe&&o!==ze&&o!==De)if(o!==Ke)if(o!==We)if(o===je&&f>0){if(a.ranges>0){a.ranges=0;let e=a.nodes.shift();a.nodes=[e,{type:"text",value:Ne(a)}]}h({type:"comma",value:o}),a.commas++}else if(o===Ue&&f>0&&0===a.commas){let e=a.nodes;if(0===f||0===e.length){h({type:"text",value:o});continue}if("dot"===l.type){if(a.range=[],l.value+=o,l.type="range",3!==a.nodes.length&&5!==a.nodes.length){a.invalid=!0,a.ranges=0,l.type="text";continue}a.ranges++,a.args=[];continue}if("range"===l.type){e.pop();let t=e[e.length-1];t.value+=l.value+o,l=t,a.ranges--;continue}h({type:"dot",value:o})}else h({type:"text",value:o});else{if("brace"!==a.type){h({type:"text",value:o});continue}let e="close";a=i.pop(),a.close=!0,h({type:e,value:o}),f--,a=i[i.length-1]}else{f++;let e=l.value&&"$"===l.value.slice(-1)||!0===a.dollar;a=h({type:"brace",open:!0,close:!1,dollar:e,depth:f,commas:0,ranges:0,nodes:[]}),i.push(a),h({type:"open",value:o})}else{let e,n=o;for(!0!==t.keepQuotes&&(o="");p<u&&(e=d());)if(e!==Ge){if(e===n){!0===t.keepQuotes&&(o+=e);break}o+=e}else o+=e+d();h({type:"text",value:o})}else{if("paren"!==a.type){h({type:"text",value:o});continue}a=i.pop(),h({type:"text",value:o}),a=i[i.length-1]}else a=h({type:"paren",nodes:[]}),i.push(a),h({type:"text",value:o});else{let e;for(c++;p<u&&(e=d());)if(o+=e,e!==Je)if(e!==Ge){if(e===Xe&&(c--,0===c))break}else o+=d();else c++;h({type:"text",value:o})}else h({type:"text",value:"\\"+o});else h({type:"text",value:(t.keepEscaping?o:"")+d()});do{if(a=i.pop(),"root"!==a.type){a.nodes.forEach((e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)}));let e=i[i.length-1],t=e.nodes.indexOf(a);e.nodes.splice(t,1,...a.nodes)}}while(i.length>0);return h({type:"eos"}),s};const et=te,tt=Ie,nt=Me,rt=Ze,ot=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let e=ot.create(r,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(ot.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(n=[...new Set(n)]),n};ot.parse=(e,t={})=>rt(e,t),ot.stringify=(e,t={})=>et("string"==typeof e?ot.parse(e,t):e,t),ot.compile=(e,t={})=>("string"==typeof e&&(e=ot.parse(e,t)),tt(e,t)),ot.expand=(e,t={})=>{"string"==typeof e&&(e=ot.parse(e,t));let n=nt(e,t);return!0===t.noempty&&(n=n.filter(Boolean)),!0===t.nodupes&&(n=[...new Set(n)]),n},ot.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?ot.compile(e,t):ot.expand(e,t);var st=ot,it={};const at=e,lt="\\\\/",ct=`[^${lt}]`,ut="\\.",pt="\\/",ft="[^/]",dt=`(?:${pt}|$)`,ht=`(?:^|${pt})`,gt=`${ut}{1,2}${dt}`,mt={DOT_LITERAL:ut,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:pt,ONE_CHAR:"(?=.)",QMARK:ft,END_ANCHOR:dt,DOTS_SLASH:gt,NO_DOT:`(?!${ut})`,NO_DOTS:`(?!${ht}${gt})`,NO_DOT_SLASH:`(?!${ut}{0,1}${dt})`,NO_DOTS_SLASH:`(?!${gt})`,QMARK_NO_DOT:`[^.${pt}]`,STAR:`${ft}*?`,START_ANCHOR:ht},yt={...mt,SLASH_LITERAL:`[${lt}]`,QMARK:ct,STAR:`${ct}*?`,DOTS_SLASH:`${ut}{1,2}(?:[${lt}]|$)`,NO_DOT:`(?!${ut})`,NO_DOTS:`(?!(?:^|[${lt}])${ut}{1,2}(?:[${lt}]|$))`,NO_DOT_SLASH:`(?!${ut}{0,1}(?:[${lt}]|$))`,NO_DOTS_SLASH:`(?!${ut}{1,2}(?:[${lt}]|$))`,QMARK_NO_DOT:`[^.${lt}]`,START_ANCHOR:`(?:^|[${lt}])`,END_ANCHOR:`(?:[${lt}]|$)`};var bt={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:at.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?yt:mt};!function(t){const n=e,r="win32"===process.platform,{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:a}=bt;t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>i.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(a,"\\$1"),t.toPosixSlashes=e=>e.replace(o,"/"),t.removeBackslashes=e=>e.replace(s,(e=>"\\"===e?"":e)),t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===r||"\\"===n.sep,t.escapeLast=(e,n,r)=>{const o=e.lastIndexOf(n,r);return-1===o?e:"\\"===e[o-1]?t.escapeLast(e,n,o-1):`${e.slice(0,o)}\\${e.slice(o)}`},t.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},t.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?"":"^"}(?:${e})${n.contains?"":"$"}`;return!0===t.negated&&(r=`(?:^(?!${r}).*$)`),r}}(it);const vt=it,{CHAR_ASTERISK:At,CHAR_AT:Et,CHAR_BACKWARD_SLASH:xt,CHAR_COMMA:Rt,CHAR_DOT:Ct,CHAR_EXCLAMATION_MARK:_t,CHAR_FORWARD_SLASH:St,CHAR_LEFT_CURLY_BRACE:wt,CHAR_LEFT_PARENTHESES:Tt,CHAR_LEFT_SQUARE_BRACKET:Ot,CHAR_PLUS:$t,CHAR_QUESTION_MARK:It,CHAR_RIGHT_CURLY_BRACE:kt,CHAR_RIGHT_PARENTHESES:Lt,CHAR_RIGHT_SQUARE_BRACKET:Ht}=bt,Pt=e=>e===St||e===xt,Mt=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};var Nt=(e,t)=>{const n=t||{},r=e.length-1,o=!0===n.parts||!0===n.scanToEnd,s=[],i=[],a=[];let l,c,u=e,p=-1,f=0,d=0,h=!1,g=!1,m=!1,y=!1,b=!1,v=!1,A=!1,E=!1,x=!1,R=!1,C=0,_={value:"",depth:0,isGlob:!1};const S=()=>p>=r,w=()=>(l=c,u.charCodeAt(++p));for(;p<r;){let e;if(c=w(),c!==xt){if(!0===v||c===wt){for(C++;!0!==S()&&(c=w());)if(c!==xt)if(c!==wt){if(!0!==v&&c===Ct&&(c=w())===Ct){if(h=_.isBrace=!0,m=_.isGlob=!0,R=!0,!0===o)continue;break}if(!0!==v&&c===Rt){if(h=_.isBrace=!0,m=_.isGlob=!0,R=!0,!0===o)continue;break}if(c===kt&&(C--,0===C)){v=!1,h=_.isBrace=!0,R=!0;break}}else C++;else A=_.backslashes=!0,w();if(!0===o)continue;break}if(c!==St){if(!0!==n.noext){if(!0===(c===$t||c===Et||c===At||c===It||c===_t)&&u.charCodeAt(p+1)===Tt){if(m=_.isGlob=!0,y=_.isExtglob=!0,R=!0,c===_t&&p===f&&(x=!0),!0===o){for(;!0!==S()&&(c=w());)if(c!==xt){if(c===Lt){m=_.isGlob=!0,R=!0;break}}else A=_.backslashes=!0,c=w();continue}break}}if(c===At){if(l===At&&(b=_.isGlobstar=!0),m=_.isGlob=!0,R=!0,!0===o)continue;break}if(c===It){if(m=_.isGlob=!0,R=!0,!0===o)continue;break}if(c===Ot){for(;!0!==S()&&(e=w());)if(e!==xt){if(e===Ht){g=_.isBracket=!0,m=_.isGlob=!0,R=!0;break}}else A=_.backslashes=!0,w();if(!0===o)continue;break}if(!0===n.nonegate||c!==_t||p!==f){if(!0!==n.noparen&&c===Tt){if(m=_.isGlob=!0,!0===o){for(;!0!==S()&&(c=w());)if(c!==Tt){if(c===Lt){R=!0;break}}else A=_.backslashes=!0,c=w();continue}break}if(!0===m){if(R=!0,!0===o)continue;break}}else E=_.negated=!0,f++}else{if(s.push(p),i.push(_),_={value:"",depth:0,isGlob:!1},!0===R)continue;if(l===Ct&&p===f+1){f+=2;continue}d=p+1}}else A=_.backslashes=!0,c=w(),c===wt&&(v=!0)}!0===n.noext&&(y=!1,m=!1);let T=u,O="",$="";f>0&&(O=u.slice(0,f),u=u.slice(f),d-=f),T&&!0===m&&d>0?(T=u.slice(0,d),$=u.slice(d)):!0===m?(T="",$=u):T=u,T&&""!==T&&"/"!==T&&T!==u&&Pt(T.charCodeAt(T.length-1))&&(T=T.slice(0,-1)),!0===n.unescape&&($&&($=vt.removeBackslashes($)),T&&!0===A&&(T=vt.removeBackslashes(T)));const I={prefix:O,input:e,start:f,base:T,glob:$,isBrace:h,isBracket:g,isGlob:m,isExtglob:y,isGlobstar:b,negated:E,negatedExtglob:x};if(!0===n.tokens&&(I.maxDepth=0,Pt(c)||i.push(_),I.tokens=i),!0===n.parts||!0===n.tokens){let t;for(let r=0;r<s.length;r++){const o=t?t+1:f,l=s[r],c=e.slice(o,l);n.tokens&&(0===r&&0!==f?(i[r].isPrefix=!0,i[r].value=O):i[r].value=c,Mt(i[r]),I.maxDepth+=i[r].depth),0===r&&""===c||a.push(c),t=l}if(t&&t+1<e.length){const r=e.slice(t+1);a.push(r),n.tokens&&(i[i.length-1].value=r,Mt(i[i.length-1]),I.maxDepth+=i[i.length-1].depth)}I.slashes=s,I.parts=a}return I};const Bt=bt,Gt=it,{MAX_LENGTH:Dt,POSIX_REGEX_SOURCE:jt,REGEX_NON_SPECIAL_CHARS:Ut,REGEX_SPECIAL_CHARS_BACKREF:Ft,REPLACEMENTS:qt}=Bt,Kt=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map((e=>Gt.escapeRegex(e))).join("..")}return n},Wt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Jt=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=qt[e]||e;const n={...t},r="number"==typeof n.maxLength?Math.min(Dt,n.maxLength):Dt;let o=e.length;if(o>r)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${r}`);const s={type:"bos",value:"",output:n.prepend||""},i=[s],a=n.capture?"":"?:",l=Gt.isWindows(t),c=Bt.globChars(l),u=Bt.extglobChars(c),{DOT_LITERAL:p,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:h,DOTS_SLASH:g,NO_DOT:m,NO_DOT_SLASH:y,NO_DOTS_SLASH:b,QMARK:v,QMARK_NO_DOT:A,STAR:E,START_ANCHOR:x}=c,R=e=>`(${a}(?:(?!${x}${e.dot?g:p}).)*?)`,C=n.dot?"":m,_=n.dot?v:A;let S=!0===n.bash?R(n):E;n.capture&&(S=`(${S})`),"boolean"==typeof n.noext&&(n.noextglob=n.noext);const w={input:e,index:-1,start:0,dot:!0===n.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=Gt.removePrefix(e,w),o=e.length;const T=[],O=[],$=[];let I,k=s;const L=()=>w.index===o-1,H=w.peek=(t=1)=>e[w.index+t],P=w.advance=()=>e[++w.index]||"",M=()=>e.slice(w.index+1),N=(e="",t=0)=>{w.consumed+=e,w.index+=t},B=e=>{w.output+=null!=e.output?e.output:e.value,N(e.value)},G=()=>{let e=1;for(;"!"===H()&&("("!==H(2)||"?"===H(3));)P(),w.start++,e++;return e%2!=0&&(w.negated=!0,w.start++,!0)},D=e=>{w[e]++,$.push(e)},j=e=>{w[e]--,$.pop()},U=e=>{if("globstar"===k.type){const t=w.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||T.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(w.output=w.output.slice(0,-k.output.length),k.type="star",k.value="*",k.output=S,w.output+=k.output)}if(T.length&&"paren"!==e.type&&(T[T.length-1].inner+=e.value),(e.value||e.output)&&B(e),k&&"text"===k.type&&"text"===e.type)return k.value+=e.value,void(k.output=(k.output||"")+e.value);e.prev=k,i.push(e),k=e},F=(e,t)=>{const r={...u[t],conditions:1,inner:""};r.prev=k,r.parens=w.parens,r.output=w.output;const o=(n.capture?"(":"")+r.open;D("parens"),U({type:e,value:t,output:w.output?"":h}),U({type:"paren",extglob:!0,value:P(),output:o}),T.push(r)},q=e=>{let r,o=e.close+(n.capture?")":"");if("negate"===e.type){let s=S;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(s=R(n)),(s!==S||L()||/^\)+$/.test(M()))&&(o=e.close=`)$))${s}`),e.inner.includes("*")&&(r=M())&&/^\.[^\\/.]+$/.test(r)){const n=Jt(r,{...t,fastpaths:!1}).output;o=e.close=`)${n})${s})`}"bos"===e.prev.type&&(w.negatedExtglob=!0)}U({type:"paren",extglob:!0,value:I,output:o}),j("parens")};if(!1!==n.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let r=!1,o=e.replace(Ft,((e,t,n,o,s,i)=>"\\"===o?(r=!0,e):"?"===o?t?t+o+(s?v.repeat(s.length):""):0===i?_+(s?v.repeat(s.length):""):v.repeat(n.length):"."===o?p.repeat(n.length):"*"===o?t?t+o+(s?S:""):S:t?e:`\\${e}`));return!0===r&&(o=!0===n.unescape?o.replace(/\\/g,""):o.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),o===e&&!0===n.contains?(w.output=e,w):(w.output=Gt.wrapOutput(o,w,t),w)}for(;!L();){if(I=P(),"\0"===I)continue;if("\\"===I){const e=H();if("/"===e&&!0!==n.bash)continue;if("."===e||";"===e)continue;if(!e){I+="\\",U({type:"text",value:I});continue}const t=/^\\+/.exec(M());let r=0;if(t&&t[0].length>2&&(r=t[0].length,w.index+=r,r%2!=0&&(I+="\\")),!0===n.unescape?I=P():I+=P(),0===w.brackets){U({type:"text",value:I});continue}}if(w.brackets>0&&("]"!==I||"["===k.value||"[^"===k.value)){if(!1!==n.posix&&":"===I){const e=k.value.slice(1);if(e.includes("[")&&(k.posix=!0,e.includes(":"))){const e=k.value.lastIndexOf("["),t=k.value.slice(0,e),n=k.value.slice(e+2),r=jt[n];if(r){k.value=t+r,w.backtrack=!0,P(),s.output||1!==i.indexOf(k)||(s.output=h);continue}}}("["===I&&":"!==H()||"-"===I&&"]"===H())&&(I=`\\${I}`),"]"!==I||"["!==k.value&&"[^"!==k.value||(I=`\\${I}`),!0===n.posix&&"!"===I&&"["===k.value&&(I="^"),k.value+=I,B({value:I});continue}if(1===w.quotes&&'"'!==I){I=Gt.escapeRegex(I),k.value+=I,B({value:I});continue}if('"'===I){w.quotes=1===w.quotes?0:1,!0===n.keepQuotes&&U({type:"text",value:I});continue}if("("===I){D("parens"),U({type:"paren",value:I});continue}if(")"===I){if(0===w.parens&&!0===n.strictBrackets)throw new SyntaxError(Wt("opening","("));const e=T[T.length-1];if(e&&w.parens===e.parens+1){q(T.pop());continue}U({type:"paren",value:I,output:w.parens?")":"\\)"}),j("parens");continue}if("["===I){if(!0!==n.nobracket&&M().includes("]"))D("brackets");else{if(!0!==n.nobracket&&!0===n.strictBrackets)throw new SyntaxError(Wt("closing","]"));I=`\\${I}`}U({type:"bracket",value:I});continue}if("]"===I){if(!0===n.nobracket||k&&"bracket"===k.type&&1===k.value.length){U({type:"text",value:I,output:`\\${I}`});continue}if(0===w.brackets){if(!0===n.strictBrackets)throw new SyntaxError(Wt("opening","["));U({type:"text",value:I,output:`\\${I}`});continue}j("brackets");const e=k.value.slice(1);if(!0===k.posix||"^"!==e[0]||e.includes("/")||(I=`/${I}`),k.value+=I,B({value:I}),!1===n.literalBrackets||Gt.hasRegexChars(e))continue;const t=Gt.escapeRegex(k.value);if(w.output=w.output.slice(0,-k.value.length),!0===n.literalBrackets){w.output+=t,k.value=t;continue}k.value=`(${a}${t}|${k.value})`,w.output+=k.value;continue}if("{"===I&&!0!==n.nobrace){D("braces");const e={type:"brace",value:I,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};O.push(e),U(e);continue}if("}"===I){const e=O[O.length-1];if(!0===n.nobrace||!e){U({type:"text",value:I,output:I});continue}let t=")";if(!0===e.dots){const e=i.slice(),r=[];for(let t=e.length-1;t>=0&&(i.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&r.unshift(e[t].value);t=Kt(r,n),w.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const n=w.output.slice(0,e.outputIndex),r=w.tokens.slice(e.tokensIndex);e.value=e.output="\\{",I=t="\\}",w.output=n;for(const e of r)w.output+=e.output||e.value}U({type:"brace",value:I,output:t}),j("braces"),O.pop();continue}if("|"===I){T.length>0&&T[T.length-1].conditions++,U({type:"text",value:I});continue}if(","===I){let e=I;const t=O[O.length-1];t&&"braces"===$[$.length-1]&&(t.comma=!0,e="|"),U({type:"comma",value:I,output:e});continue}if("/"===I){if("dot"===k.type&&w.index===w.start+1){w.start=w.index+1,w.consumed="",w.output="",i.pop(),k=s;continue}U({type:"slash",value:I,output:d});continue}if("."===I){if(w.braces>0&&"dot"===k.type){"."===k.value&&(k.output=p);const e=O[O.length-1];k.type="dots",k.output+=I,k.value+=I,e.dots=!0;continue}if(w.braces+w.parens===0&&"bos"!==k.type&&"slash"!==k.type){U({type:"text",value:I,output:p});continue}U({type:"dot",value:I,output:p});continue}if("?"===I){if(!(k&&"("===k.value)&&!0!==n.noextglob&&"("===H()&&"?"!==H(2)){F("qmark",I);continue}if(k&&"paren"===k.type){const e=H();let t=I;if("<"===e&&!Gt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===k.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(M()))&&(t=`\\${I}`),U({type:"text",value:I,output:t});continue}if(!0!==n.dot&&("slash"===k.type||"bos"===k.type)){U({type:"qmark",value:I,output:A});continue}U({type:"qmark",value:I,output:v});continue}if("!"===I){if(!0!==n.noextglob&&"("===H()&&("?"!==H(2)||!/[!=<:]/.test(H(3)))){F("negate",I);continue}if(!0!==n.nonegate&&0===w.index){G();continue}}if("+"===I){if(!0!==n.noextglob&&"("===H()&&"?"!==H(2)){F("plus",I);continue}if(k&&"("===k.value||!1===n.regex){U({type:"plus",value:I,output:f});continue}if(k&&("bracket"===k.type||"paren"===k.type||"brace"===k.type)||w.parens>0){U({type:"plus",value:I});continue}U({type:"plus",value:f});continue}if("@"===I){if(!0!==n.noextglob&&"("===H()&&"?"!==H(2)){U({type:"at",extglob:!0,value:I,output:""});continue}U({type:"text",value:I});continue}if("*"!==I){"$"!==I&&"^"!==I||(I=`\\${I}`);const e=Ut.exec(M());e&&(I+=e[0],w.index+=e[0].length),U({type:"text",value:I});continue}if(k&&("globstar"===k.type||!0===k.star)){k.type="star",k.star=!0,k.value+=I,k.output=S,w.backtrack=!0,w.globstar=!0,N(I);continue}let t=M();if(!0!==n.noextglob&&/^\([^?]/.test(t)){F("star",I);continue}if("star"===k.type){if(!0===n.noglobstar){N(I);continue}const r=k.prev,o=r.prev,s="slash"===r.type||"bos"===r.type,i=o&&("star"===o.type||"globstar"===o.type);if(!0===n.bash&&(!s||t[0]&&"/"!==t[0])){U({type:"star",value:I,output:""});continue}const a=w.braces>0&&("comma"===r.type||"brace"===r.type),l=T.length&&("pipe"===r.type||"paren"===r.type);if(!s&&"paren"!==r.type&&!a&&!l){U({type:"star",value:I,output:""});continue}for(;"/**"===t.slice(0,3);){const n=e[w.index+4];if(n&&"/"!==n)break;t=t.slice(3),N("/**",3)}if("bos"===r.type&&L()){k.type="globstar",k.value+=I,k.output=R(n),w.output=k.output,w.globstar=!0,N(I);continue}if("slash"===r.type&&"bos"!==r.prev.type&&!i&&L()){w.output=w.output.slice(0,-(r.output+k.output).length),r.output=`(?:${r.output}`,k.type="globstar",k.output=R(n)+(n.strictSlashes?")":"|$)"),k.value+=I,w.globstar=!0,w.output+=r.output+k.output,N(I);continue}if("slash"===r.type&&"bos"!==r.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";w.output=w.output.slice(0,-(r.output+k.output).length),r.output=`(?:${r.output}`,k.type="globstar",k.output=`${R(n)}${d}|${d}${e})`,k.value+=I,w.output+=r.output+k.output,w.globstar=!0,N(I+P()),U({type:"slash",value:"/",output:""});continue}if("bos"===r.type&&"/"===t[0]){k.type="globstar",k.value+=I,k.output=`(?:^|${d}|${R(n)}${d})`,w.output=k.output,w.globstar=!0,N(I+P()),U({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-k.output.length),k.type="globstar",k.output=R(n),k.value+=I,w.output+=k.output,w.globstar=!0,N(I);continue}const r={type:"star",value:I,output:S};!0!==n.bash?!k||"bracket"!==k.type&&"paren"!==k.type||!0!==n.regex?(w.index!==w.start&&"slash"!==k.type&&"dot"!==k.type||("dot"===k.type?(w.output+=y,k.output+=y):!0===n.dot?(w.output+=b,k.output+=b):(w.output+=C,k.output+=C),"*"!==H()&&(w.output+=h,k.output+=h)),U(r)):(r.output=I,U(r)):(r.output=".*?","bos"!==k.type&&"slash"!==k.type||(r.output=C+r.output),U(r))}for(;w.brackets>0;){if(!0===n.strictBrackets)throw new SyntaxError(Wt("closing","]"));w.output=Gt.escapeLast(w.output,"["),j("brackets")}for(;w.parens>0;){if(!0===n.strictBrackets)throw new SyntaxError(Wt("closing",")"));w.output=Gt.escapeLast(w.output,"("),j("parens")}for(;w.braces>0;){if(!0===n.strictBrackets)throw new SyntaxError(Wt("closing","}"));w.output=Gt.escapeLast(w.output,"{"),j("braces")}if(!0===n.strictSlashes||"star"!==k.type&&"bracket"!==k.type||U({type:"maybe_slash",value:"",output:`${d}?`}),!0===w.backtrack){w.output="";for(const e of w.tokens)w.output+=null!=e.output?e.output:e.value,e.suffix&&(w.output+=e.suffix)}return w};Jt.fastpaths=(e,t)=>{const n={...t},r="number"==typeof n.maxLength?Math.min(Dt,n.maxLength):Dt,o=e.length;if(o>r)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${r}`);e=qt[e]||e;const s=Gt.isWindows(t),{DOT_LITERAL:i,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:p,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:h}=Bt.globChars(s),g=n.dot?p:u,m=n.dot?f:u,y=n.capture?"":"?:";let b=!0===n.bash?".*?":d;n.capture&&(b=`(${b})`);const v=e=>!0===e.noglobstar?b:`(${y}(?:(?!${h}${e.dot?c:i}).)*?)`,A=e=>{switch(e){case"*":return`${g}${l}${b}`;case".*":return`${i}${l}${b}`;case"*.*":return`${g}${b}${i}${l}${b}`;case"*/*":return`${g}${b}${a}${l}${m}${b}`;case"**":return g+v(n);case"**/*":return`(?:${g}${v(n)}${a})?${m}${l}${b}`;case"**/*.*":return`(?:${g}${v(n)}${a})?${m}${b}${i}${l}${b}`;case"**/.*":return`(?:${g}${v(n)}${a})?${i}${l}${b}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=A(t[1]);if(!n)return;return n+i+t[2]}}},E=Gt.removePrefix(e,{negated:!1,prefix:""});let x=A(E);return x&&!0!==n.strictSlashes&&(x+=`${a}?`),x};const Xt=e,Qt=Nt,zt=Jt,Vt=it,Yt=bt,Zt=(e,t,n=!1)=>{if(Array.isArray(e)){const r=e.map((e=>Zt(e,t,n))),o=e=>{for(const t of r){const n=t(e);if(n)return n}return!1};return o}const r=(o=e)&&"object"==typeof o&&!Array.isArray(o)&&e.tokens&&e.input;var o;if(""===e||"string"!=typeof e&&!r)throw new TypeError("Expected pattern to be a non-empty string");const s=t||{},i=Vt.isWindows(t),a=r?Zt.compileRe(e,t):Zt.makeRe(e,t,!1,!0),l=a.state;delete a.state;let c=()=>!1;if(s.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};c=Zt(s.ignore,e,n)}const u=(n,r=!1)=>{const{isMatch:o,match:u,output:p}=Zt.test(n,a,t,{glob:e,posix:i}),f={glob:e,state:l,regex:a,posix:i,input:n,output:p,match:u,isMatch:o};return"function"==typeof s.onResult&&s.onResult(f),!1===o?(f.isMatch=!1,!!r&&f):c(n)?("function"==typeof s.onIgnore&&s.onIgnore(f),f.isMatch=!1,!!r&&f):("function"==typeof s.onMatch&&s.onMatch(f),!r||f)};return n&&(u.state=l),u};Zt.test=(e,t,n,{glob:r,posix:o}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const s=n||{},i=s.format||(o?Vt.toPosixSlashes:null);let a=e===r,l=a&&i?i(e):e;return!1===a&&(l=i?i(e):e,a=l===r),!1!==a&&!0!==s.capture||(a=!0===s.matchBase||!0===s.basename?Zt.matchBase(e,t,n,o):t.exec(l)),{isMatch:Boolean(a),match:a,output:l}},Zt.matchBase=(e,t,n,r=Vt.isWindows(n))=>(t instanceof RegExp?t:Zt.makeRe(t,n)).test(Xt.basename(e)),Zt.isMatch=(e,t,n)=>Zt(t,n)(e),Zt.parse=(e,t)=>Array.isArray(e)?e.map((e=>Zt.parse(e,t))):zt(e,{...t,fastpaths:!1}),Zt.scan=(e,t)=>Qt(e,t),Zt.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;const o=t||{},s=o.contains?"":"^",i=o.contains?"":"$";let a=`${s}(?:${e.output})${i}`;e&&!0===e.negated&&(a=`^(?!${a}).*$`);const l=Zt.toRegex(a,t);return!0===r&&(l.state=e),l},Zt.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(o.output=zt.fastpaths(e,t)),o.output||(o=zt(e,t)),Zt.compileRe(o,t,n,r)},Zt.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},Zt.constants=Yt;const en=r,tn=st,nn=Zt,rn=it,on=e=>""===e||"./"===e,sn=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let r=new Set,o=new Set,s=new Set,i=0,a=e=>{s.add(e.output),n&&n.onResult&&n.onResult(e)};for(let s=0;s<t.length;s++){let l=nn(String(t[s]),{...n,onResult:a},!0),c=l.state.negated||l.state.negatedExtglob;c&&i++;for(let t of e){let e=l(t,!0);(c?!e.isMatch:e.isMatch)&&(c?r.add(e.output):(r.delete(e.output),o.add(e.output)))}}let l=(i===t.length?[...s]:[...o]).filter((e=>!r.has(e)));if(n&&0===l.length){if(!0===n.failglob)throw new Error(`No matches found for "${t.join(", ")}"`);if(!0===n.nonull||!0===n.nullglob)return n.unescape?t.map((e=>e.replace(/\\/g,""))):t}return l};sn.match=sn,sn.matcher=(e,t)=>nn(e,t),sn.any=sn.isMatch=(e,t,n)=>nn(t,n)(e),sn.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set,o=[],s=new Set(sn(e,t,{...n,onResult:e=>{n.onResult&&n.onResult(e),o.push(e.output)}}));for(let e of o)s.has(e)||r.add(e);return[...r]},sn.contains=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${en.inspect(e)}"`);if(Array.isArray(t))return t.some((t=>sn.contains(e,t,n)));if("string"==typeof t){if(on(e)||on(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return sn.isMatch(e,t,{...n,contains:!0})},sn.matchKeys=(e,t,n)=>{if(!rn.isObject(e))throw new TypeError("Expected the first argument to be an object");let r=sn(Object.keys(e),t,n),o={};for(let t of r)o[t]=e[t];return o},sn.some=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=nn(String(e),n);if(r.some((e=>t(e))))return!0}return!1},sn.every=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=nn(String(e),n);if(!r.every((e=>t(e))))return!1}return!0},sn.all=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${en.inspect(e)}"`);return[].concat(t).every((t=>nn(t,n)(e)))},sn.capture=(e,t,n)=>{let r=rn.isWindows(n),o=nn.makeRe(String(e),{...n,capture:!0}).exec(r?rn.toPosixSlashes(t):t);if(o)return o.slice(1).map((e=>void 0===e?"":e))},sn.makeRe=(...e)=>nn.makeRe(...e),sn.scan=(...e)=>nn.scan(...e),sn.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[]))for(let e of tn(String(r),t))n.push(nn.parse(e,t));return n},sn.braces=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return t&&!0===t.nobrace||!/\{.*\}/.test(e)?[e]:tn(e,t)},sn.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return sn.braces(e,{...t,expand:!0})};var an=t,ln=e,cn=function(e,t){if("string"!=typeof e||""===e)return!1;if(b(e))return!0;var n=A;return t&&!1===t.strict&&(n=E),n(e)},un=function(e){return"~"===e.charAt(0)&&(e=Q(e)),"@"===e.charAt(0)&&(e=X.join(z,e.slice(1))),e},pn=function(e,t){return e&&"string"==typeof e?V.existsSync(e)?Y.resolve(e):!0===(t=t||{}).nocase?function(e){e=Y.resolve(e);var t=function(e){var t={path:e,files:[]};try{return t.files=V.readdirSync(e),t}catch(e){}try{return t.path=Y.dirname(e),t.files=V.readdirSync(t.path),t}catch(e){}return null}(e);if(null===t)return null;if(t.path===e)return t.path;var n=e.toUpperCase(),r=t.files.length,o=-1;for(;++o<r;){var s=Y.resolve(t.path,t.files[o]);if(e===s||n===s)return s;var i=s.toUpperCase();if(e===i||n===i)return s}return null}(e):null:null},fn=sn;function dn(e,t,n){for(var r,o=t.length,s=-1;++s<o;)if(r=cn(t[s])?hn(e,t[s],n):gn(e,t[s],n))return r;var i=ln.dirname(e);return i===e?null:dn(i,t,n)}function hn(e,t,n){for(var r=fn.matcher(t,n),o=function(e){try{return an.readdirSync(e)}catch(e){}return[]}(e),s=o.length,i=-1;++i<s;){var a=o[i],l=ln.join(e,a);if(r(a)||r(l))return l}return null}function gn(e,t,n){var r=ln.resolve(e,t);return pn(r,n)}var mn,yn,bn,vn,An,En,xn,Rn,Cn=d((function(e,t){t=t||{};var n=ln.resolve(un(t.cwd||""));if("string"==typeof e)return dn(n,[e],t);if(!Array.isArray(e))throw new TypeError("findup-sync expects a string or array as the first argument.");return dn(n,e,t)})),_n={exports:{}};function Sn(){if(vn)return bn;vn=1;const e=yn?mn:(yn=1,mn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),t={};for(const n of Object.keys(e))t[e[n]]=n;const n={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};bn=n;for(const e of Object.keys(n)){if(!("channels"in n[e]))throw new Error("missing channels property: "+e);if(!("labels"in n[e]))throw new Error("missing channel labels property: "+e);if(n[e].labels.length!==n[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=n[e];delete n[e].channels,delete n[e].labels,Object.defineProperty(n[e],"channels",{value:t}),Object.defineProperty(n[e],"labels",{value:r})}return n.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),s=Math.max(t,n,r),i=s-o;let a,l;s===o?a=0:t===s?a=(n-r)/i:n===s?a=2+(r-t)/i:r===s&&(a=4+(t-n)/i),a=Math.min(60*a,360),a<0&&(a+=360);const c=(o+s)/2;return l=s===o?0:c<=.5?i/(s+o):i/(2-s-o),[a,100*l,100*c]},n.rgb.hsv=function(e){let t,n,r,o,s;const i=e[0]/255,a=e[1]/255,l=e[2]/255,c=Math.max(i,a,l),u=c-Math.min(i,a,l),p=function(e){return(c-e)/6/u+.5};return 0===u?(o=0,s=0):(s=u/c,t=p(i),n=p(a),r=p(l),i===c?o=r-n:a===c?o=1/3+t-r:l===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*s,100*c]},n.rgb.hwb=function(e){const t=e[0],r=e[1];let o=e[2];const s=n.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,o));return o=1-1/255*Math.max(t,Math.max(r,o)),[s,100*i,100*o]},n.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},n.rgb.keyword=function(n){const r=t[n];if(r)return r;let o,s=1/0;for(const t of Object.keys(e)){const r=e[t],l=(a=r,((i=n)[0]-a[0])**2+(i[1]-a[1])**2+(i[2]-a[2])**2);l<s&&(s=l,o=t)}var i,a;return o},n.keyword.rgb=function(t){return e[t]},n.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},n.rgb.lab=function(e){const t=n.rgb.xyz(e);let r=t[0],o=t[1],s=t[2];r/=95.047,o/=100,s/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;return[116*o-16,500*(r-o),200*(o-s)]},n.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,s,i;if(0===n)return i=255*r,[i,i,i];o=r<.5?r*(1+n):r+n-r*n;const a=2*r-o,l=[0,0,0];for(let e=0;e<3;e++)s=t+1/3*-(e-1),s<0&&s++,s>1&&s--,i=6*s<1?a+6*(o-a)*s:2*s<1?o:3*s<2?a+(o-a)*(2/3-s)*6:a,l[e]=255*i;return l},n.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const s=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=s<=1?s:2-s;return[t,100*(0===r?2*o/(s+o):2*n/(r+n)),100*((r+n)/2)]},n.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,s=t-Math.floor(t),i=255*r*(1-n),a=255*r*(1-n*s),l=255*r*(1-n*(1-s));switch(r*=255,o){case 0:return[r,l,i];case 1:return[a,r,i];case 2:return[i,r,l];case 3:return[i,a,r];case 4:return[l,i,r];case 5:return[r,i,a]}},n.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let s,i;i=(2-n)*r;const a=(2-n)*o;return s=n*o,s/=a<=1?a:2-a,s=s||0,i/=2,[t,100*s,100*i]},n.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let s;o>1&&(n/=o,r/=o);const i=Math.floor(6*t),a=1-r;s=6*t-i,0!=(1&i)&&(s=1-s);const l=n+s*(a-n);let c,u,p;switch(i){default:case 6:case 0:c=a,u=l,p=n;break;case 1:c=l,u=a,p=n;break;case 2:c=n,u=a,p=l;break;case 3:c=n,u=l,p=a;break;case 4:c=l,u=n,p=a;break;case 5:c=a,u=n,p=l}return[255*c,255*u,255*p]},n.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},n.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,s,i;return o=3.2406*t+-1.5372*n+-.4986*r,s=-.9689*t+1.8758*n+.0415*r,i=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),[255*o,255*s,255*i]},n.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*n-16,500*(t-n),200*(n-r)]},n.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,s=t**3,i=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},n.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(n*n+r*r),o]},n.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},n.rgb.ansi16=function(e,t=null){const[r,o,s]=e;let i=null===t?n.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),0===i)return 30;let a=30+(Math.round(s/255)<<2|Math.round(o/255)<<1|Math.round(r/255));return 2===i&&(a+=60),a},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},n.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},n.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},n.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},n.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),s=Math.min(Math.min(t,n),r),i=o-s;let a,l;return a=i<1?s/(1-i):0,l=i<=0?0:o===t?(n-r)/i%6:o===n?2+(r-t)/i:4+(t-n)/i,l/=6,l%=1,[360*l,100*i,100*a]},n.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},n.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},n.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],s=t%1*6,i=s%1,a=1-i;let l=0;switch(Math.floor(s)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},n.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},n.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},n.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},n.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=function(e){return[0,0,e[0]]},n.gray.hsv=n.gray.hsl,n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]},bn}function wn(){if(En)return An;En=1;const e=Sn();function t(t){const n=function(){const t={},n=Object.keys(e);for(let e=n.length,r=0;r<e;r++)t[n[r]]={distance:-1,parent:null};return t}(),r=[t];for(n[t].distance=0;r.length;){const t=r.pop(),o=Object.keys(e[t]);for(let e=o.length,s=0;s<e;s++){const e=o[s],i=n[e];-1===i.distance&&(i.distance=n[t].distance+1,i.parent=t,r.unshift(e))}}return n}function n(e,t){return function(n){return t(e(n))}}function r(t,r){const o=[r[t].parent,t];let s=e[r[t].parent][t],i=r[t].parent;for(;r[i].parent;)o.unshift(r[i].parent),s=n(e[r[i].parent][i],s),i=r[i].parent;return s.conversion=o,s}return An=function(e){const n=t(e),o={},s=Object.keys(n);for(let e=s.length,t=0;t<e;t++){const e=s[t];null!==n[e].parent&&(o[e]=r(e,n))}return o}}function Tn(){if(Rn)return xn;Rn=1;const e=Sn(),t=wn(),n={};return Object.keys(e).forEach((r=>{n[r]={},Object.defineProperty(n[r],"channels",{value:e[r].channels}),Object.defineProperty(n[r],"labels",{value:e[r].labels});const o=t(r);Object.keys(o).forEach((e=>{const t=o[e];n[r][e]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(t),n[r][e].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(t)}))})),xn=n}!function(e){const t=(e,t)=>(...n)=>`[${e(...n)+t}m`,n=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`},r=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`},o=e=>e,s=(e,t,n)=>[e,t,n],i=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let a;const l=(e,t,n,r)=>{void 0===a&&(a=Tn());const o=r?10:0,s={};for(const[r,i]of Object.entries(a)){const a="ansi16"===r?"ansi":r;r===t?s[a]=e(n,o):"object"==typeof i&&(s[a]=e(i[t],o))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(const[t,n]of Object.entries(a)){for(const[t,r]of Object.entries(n))a[t]={open:`[${r[0]}m`,close:`[${r[1]}m`},n[t]=a[t],e.set(r[0],r[1]);Object.defineProperty(a,t,{value:n,enumerable:!1})}return Object.defineProperty(a,"codes",{value:e,enumerable:!1}),a.color.close="",a.bgColor.close="",i(a.color,"ansi",(()=>l(t,"ansi16",o,!1))),i(a.color,"ansi256",(()=>l(n,"ansi256",o,!1))),i(a.color,"ansi16m",(()=>l(r,"rgb",s,!1))),i(a.bgColor,"ansi",(()=>l(t,"ansi16",o,!0))),i(a.bgColor,"ansi256",(()=>l(n,"ansi256",o,!0))),i(a.bgColor,"ansi16m",(()=>l(r,"rgb",s,!0))),a}})}(_n);var On=_n.exports;const $n=n,In=o,kn=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r<o)},{env:Ln}=process;let Hn;function Pn(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Mn(e,t){if(0===Hn)return 0;if(kn("color=16m")||kn("color=full")||kn("color=truecolor"))return 3;if(kn("color=256"))return 2;if(e&&!t&&void 0===Hn)return 0;const n=Hn||0;if("dumb"===Ln.TERM)return n;if("win32"===process.platform){const e=$n.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Ln)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in Ln))||"codeship"===Ln.CI_NAME?1:n;if("TEAMCITY_VERSION"in Ln)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ln.TEAMCITY_VERSION)?1:0;if("truecolor"===Ln.COLORTERM)return 3;if("TERM_PROGRAM"in Ln){const e=parseInt((Ln.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ln.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ln.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ln.TERM)||"COLORTERM"in Ln?1:n}kn("no-color")||kn("no-colors")||kn("color=false")||kn("color=never")?Hn=0:(kn("color")||kn("colors")||kn("color=true")||kn("color=always"))&&(Hn=1),"FORCE_COLOR"in Ln&&(Hn="true"===Ln.FORCE_COLOR?1:"false"===Ln.FORCE_COLOR?0:0===Ln.FORCE_COLOR.length?1:Math.min(parseInt(Ln.FORCE_COLOR,10),3));var Nn={supportsColor:function(e){return Pn(Mn(e,e&&e.isTTY))},stdout:Pn(Mn(!0,In.isatty(1))),stderr:Pn(Mn(!0,In.isatty(2)))};var Bn,Gn,Dn={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const o=t.length;let s=0,i="";do{i+=e.substr(s,r-s)+t+n,s=r+o,r=e.indexOf(t,s)}while(-1!==r);return i+=e.substr(s),i},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let o=0,s="";do{const i="\r"===e[r-1];s+=e.substr(o,(i?r-1:r)-o)+t+(i?"\r\n":"\n")+n,o=r+1,r=e.indexOf("\n",o)}while(-1!==r);return s+=e.substr(o),s}};const jn=On,{stdout:Un,stderr:Fn}=Nn,{stringReplaceAll:qn,stringEncaseCRLFWithFirstIndex:Kn}=Dn,{isArray:Wn}=Array,Jn=["ansi","ansi","ansi256","ansi16m"],Xn=Object.create(null);class Qn{constructor(e){return zn(e)}}const zn=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=Un?Un.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>or(t.template,...e),Object.setPrototypeOf(t,Vn.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Qn,t.template};function Vn(e){return zn(e)}for(const[e,t]of Object.entries(jn))Xn[e]={get(){const n=tr(this,er(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};Xn.visible={get(){const e=tr(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const Yn=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of Yn)Xn[e]={get(){const{level:t}=this;return function(...n){const r=er(jn.color[Jn[t]][e](...n),jn.color.close,this._styler);return tr(this,r,this._isEmpty)}}};for(const e of Yn){Xn["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const r=er(jn.bgColor[Jn[t]][e](...n),jn.bgColor.close,this._styler);return tr(this,r,this._isEmpty)}}}}const Zn=Object.defineProperties((()=>{}),{...Xn,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),er=(e,t,n)=>{let r,o;return void 0===n?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},tr=(e,t,n)=>{const r=(...e)=>Wn(e[0])&&Wn(e[0].raw)?nr(r,or(r,...e)):nr(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,Zn),r._generator=e,r._styler=t,r._isEmpty=n,r},nr=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:o}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=qn(t,n.close,n.open),n=n.parent;const s=t.indexOf("\n");return-1!==s&&(t=Kn(t,o,r,s)),r+t+o};let rr;const or=(e,...t)=>{const[n]=t;if(!Wn(n)||!Wn(n.raw))return t.join(" ");const r=t.slice(1),o=[n.raw[0]];for(let e=1;e<n.length;e++)o.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]));return void 0===rr&&(rr=function(){if(Gn)return Bn;Gn=1;const e=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,t=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,r=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function s(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):o.get(e)||e}function i(e,t){const o=[],i=t.trim().split(/\s*,\s*/g);let a;for(const t of i){const i=Number(t);if(Number.isNaN(i)){if(!(a=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);o.push(a[2].replace(r,((e,t,n)=>t?s(t):n)))}else o.push(i)}return o}function a(e){t.lastIndex=0;const n=[];let r;for(;null!==(r=t.exec(e));){const e=r[1];if(r[2]){const t=i(e,r[2]);n.push([e].concat(t))}else n.push([e])}return n}function l(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw new Error(`Unknown Chalk style: ${e}`);r=t.length>0?r[e](...t):r[e]}return r}return Bn=(t,n)=>{const r=[],o=[];let i=[];if(n.replace(e,((e,n,c,u,p,f)=>{if(n)i.push(s(n));else if(u){const e=i.join("");i=[],o.push(0===r.length?e:l(t,r)(e)),r.push({inverse:c,styles:a(u)})}else if(p){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");o.push(l(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)})),o.push(i.join("")),r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")},Bn}()),rr(e,o.join(""))};Object.defineProperties(Vn.prototype,Xn);const sr=Vn();sr.supportsColor=Un,sr.stderr=Vn({level:Fn?Fn.level:0}),sr.stderr.supportsColor=Fn;var ir=d(sr),ar={exports:{}},lr={exports:{}};const cr="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,ur=e,pr=cr?";":":",fr=K,dr=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),hr=(e,t)=>{const n=t.colon||pr,r=e.match(/\//)||cr&&e.match(/\\/)?[""]:[...cr?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)],o=cr?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=cr?o.split(n):[""];return cr&&-1!==e.indexOf(".")&&""!==s[0]&&s.unshift(""),{pathEnv:r,pathExt:s,pathExtExe:o}},gr=(e,t,n)=>{"function"==typeof t&&(n=t,t={}),t||(t={});const{pathEnv:r,pathExt:o,pathExtExe:s}=hr(e,t),i=[],a=n=>new Promise(((o,s)=>{if(n===r.length)return t.all&&i.length?o(i):s(dr(e));const a=r[n],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=ur.join(c,e),p=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(l(p,n,0))})),l=(e,n,r)=>new Promise(((c,u)=>{if(r===o.length)return c(a(n+1));const p=o[r];fr(e+p,{pathExt:s},((o,s)=>{if(!o&&s){if(!t.all)return c(e+p);i.push(e+p)}return c(l(e,n,r+1))}))}));return n?a(0).then((e=>n(null,e)),n):a(0)};var mr=gr;gr.sync=(e,t)=>{t=t||{};const{pathEnv:n,pathExt:r,pathExtExe:o}=hr(e,t),s=[];for(let i=0;i<n.length;i++){const a=n[i],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=ur.join(l,e),u=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let e=0;e<r.length;e++){const n=u+r[e];try{if(fr.sync(n,{pathExt:o})){if(!t.all)return n;s.push(n)}}catch(e){}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw dr(e)};var yr={exports:{}};const br=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};yr.exports=br,yr.exports.default=br;var vr=yr.exports;const Ar=e,Er=mr,xr=vr;function Rr(e,t){const n=e.options.env||process.env,r=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}let i;try{i=Er.sync(e.command,{path:n[xr({env:n})],pathExt:t?Ar.delimiter:void 0})}catch(e){}finally{s&&process.chdir(r)}return i&&(i=Ar.resolve(o?e.options.cwd:"",i)),i}var Cr=function(e){return Rr(e)||Rr(e,!0)},_r={};const Sr=/([()\][%!^"`<>&|;, *?])/g;_r.command=function(e){return e=e.replace(Sr,"^$1")},_r.argument=function(e,t){return e=(e=`"${e=(e=(e=`${e}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(Sr,"^$1"),t&&(e=e.replace(Sr,"^$1")),e};const wr=/^#!(.*)/;const Tr=t,Or=(e="")=>{const t=e.match(wr);if(!t)return null;const[n,r]=t[0].replace(/#! ?/,"").split(" "),o=n.split("/").pop();return"env"===o?r:r?`${o} ${r}`:o};var $r=function(e){const t=Buffer.alloc(150);let n;try{n=Tr.openSync(e,"r"),Tr.readSync(n,t,0,150,0),Tr.closeSync(n)}catch(e){}return Or(t.toString())};const Ir=e,kr=Cr,Lr=_r,Hr=$r,Pr="win32"===process.platform,Mr=/\.(?:com|exe)$/i,Nr=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Br(e){if(!Pr)return e;const t=function(e){e.file=kr(e);const t=e.file&&Hr(e.file);return t?(e.args.unshift(e.file),e.command=t,kr(e)):e.file}(e),n=!Mr.test(t);if(e.options.forceShell||n){const n=Nr.test(t);e.command=Ir.normalize(e.command),e.command=Lr.command(e.command),e.args=e.args.map((e=>Lr.argument(e,n)));const r=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${r}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}var Gr=function(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null);const r={command:e,args:t=t?t.slice(0):[],options:n=Object.assign({},n),file:void 0,original:{command:e,args:t}};return n.shell?r:Br(r)};const Dr="win32"===process.platform;function jr(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function Ur(e,t){return Dr&&1===e&&!t.file?jr(t.original,"spawn"):null}var Fr={hookChildProcess:function(e,t){if(!Dr)return;const n=e.emit;e.emit=function(r,o){if("exit"===r){const r=Ur(o,t);if(r)return n.call(e,"error",r)}return n.apply(e,arguments)}},verifyENOENT:Ur,verifyENOENTSync:function(e,t){return Dr&&1===e&&!t.file?jr(t.original,"spawnSync"):null},notFoundError:jr};const qr=s,Kr=Gr,Wr=Fr;function Jr(e,t,n){const r=Kr(e,t,n),o=qr.spawn(r.command,r.args,r.options);return Wr.hookChildProcess(o,r),o}lr.exports=Jr,lr.exports.spawn=Jr,lr.exports.sync=function(e,t,n){const r=Kr(e,t,n),o=qr.spawnSync(r.command,r.args,r.options);return o.error=o.error||Wr.verifyENOENTSync(o.status,r),o},lr.exports._parse=Kr,lr.exports._enoent=Wr;var Xr=lr.exports,Qr={exports:{}};!function(t){const n=e,r=vr,o=e=>{let t;e={cwd:process.cwd(),path:process.env[r()],execPath:process.execPath,...e};let o=n.resolve(e.cwd);const s=[];for(;t!==o;)s.push(n.join(o,"node_modules/.bin")),t=o,o=n.resolve(o,"..");const i=n.resolve(e.cwd,e.execPath,"..");return s.push(i),s.concat(e.path).join(n.delimiter)};t.exports=o,t.exports.default=o,t.exports.env=e=>{const n={...(e={env:process.env,...e}).env},o=r({env:n});return e.path=n[o],n[o]=t.exports(e),n}}(Qr);var zr=Qr.exports,Vr={exports:{}},Yr={exports:{}};const Zr=(e,t)=>{for(const n of Reflect.ownKeys(t))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));return e};Yr.exports=Zr,Yr.exports.default=Zr;const eo=Yr.exports,to=new WeakMap,no=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,r=0;const o=e.displayName||e.name||"<anonymous>",s=function(...i){if(to.set(s,++r),1===r)n=e.apply(this,i),e=null;else if(!0===t.throw)throw new Error(`Function \`${o}\` can only be called once`);return n};return eo(s,e),to.set(s,r),s};Vr.exports=no,Vr.exports.default=no,Vr.exports.callCount=e=>{if(!to.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return to.get(e)};var ro=Vr.exports,oo={},so={},io={};Object.defineProperty(io,"__esModule",{value:!0}),io.SIGNALS=void 0;io.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var ao={};Object.defineProperty(ao,"__esModule",{value:!0}),ao.SIGRTMAX=ao.getRealtimeSignals=void 0;ao.getRealtimeSignals=function(){const e=uo-co+1;return Array.from({length:e},lo)};const lo=function(e,t){return{name:`SIGRT${t+1}`,number:co+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},co=34,uo=64;ao.SIGRTMAX=uo,Object.defineProperty(so,"__esModule",{value:!0}),so.getSignals=void 0;var po=n,fo=io,ho=ao;so.getSignals=function(){const e=(0,ho.getRealtimeSignals)();return[...fo.SIGNALS,...e].map(go)};const go=function({name:e,number:t,description:n,action:r,forced:o=!1,standard:s}){const{signals:{[e]:i}}=po.constants,a=void 0!==i;return{name:e,number:a?i:t,description:n,supported:a,action:r,forced:o,standard:s}};Object.defineProperty(oo,"__esModule",{value:!0}),oo.signalsByNumber=oo.signalsByName=void 0;var mo=n,yo=so,bo=ao;const vo=function(e,{name:t,number:n,description:r,supported:o,action:s,forced:i,standard:a}){return{...e,[t]:{name:t,number:n,description:r,supported:o,action:s,forced:i,standard:a}}},Ao=(0,yo.getSignals)().reduce(vo,{});oo.signalsByName=Ao;const Eo=function(e,t){const n=xo(e,t);if(void 0===n)return{};const{name:r,description:o,supported:s,action:i,forced:a,standard:l}=n;return{[e]:{name:r,number:e,description:o,supported:s,action:i,forced:a,standard:l}}},xo=function(e,t){const n=t.find((({name:t})=>mo.constants.signals[t]===e));return void 0!==n?n:t.find((t=>t.number===e))},Ro=function(){const e=(0,yo.getSignals)(),t=bo.SIGRTMAX+1,n=Array.from({length:t},((t,n)=>Eo(n,e)));return Object.assign({},...n)}();oo.signalsByNumber=Ro;const{signalsByName:Co}=oo;var _o=({stdout:e,stderr:t,all:n,error:r,signal:o,exitCode:s,command:i,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{s=null===s?void 0:s;const f=void 0===(o=null===o?void 0:o)?void 0:Co[o].description,d=(({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:o,exitCode:s,isCanceled:i})=>e?`timed out after ${t} milliseconds`:i?"was canceled":void 0!==n?`failed with ${n}`:void 0!==r?`was killed with ${r} (${o})`:void 0!==s?`failed with exit code ${s}`:"failed")({timedOut:l,timeout:p,errorCode:r&&r.code,signal:o,signalDescription:f,exitCode:s,isCanceled:c}),h=`Command ${d}: ${i}`,g="[object Error]"===Object.prototype.toString.call(r),m=g?`${h}\n${r.message}`:h,y=[m,t,e].filter(Boolean).join("\n");return g?(r.originalMessage=r.message,r.message=y):r=new Error(y),r.shortMessage=m,r.command=i,r.escapedCommand=a,r.exitCode=s,r.signal=o,r.signalDescription=f,r.stdout=e,r.stderr=t,void 0!==n&&(r.all=n),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=Boolean(l),r.isCanceled=c,r.killed=u&&!l,r},So={exports:{}};const wo=["stdin","stdout","stderr"],To=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return wo.map((t=>e[t]));if((e=>wo.some((t=>void 0!==e[t])))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${wo.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);const n=Math.max(t.length,wo.length);return Array.from({length:n},((e,n)=>t[n]))};So.exports=To,So.exports.node=e=>{const t=To(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var Oo,$o=So.exports,Io={exports:{}},ko={exports:{}};var Lo=f.process;const Ho=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(Ho(Lo)){var Po,Mo=i,No=(Oo||(Oo=1,function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(ko)),ko.exports),Bo=/^win/i.test(Lo.platform),Go=a;"function"!=typeof Go&&(Go=Go.EventEmitter),Lo.__signal_exit_emitter__?Po=Lo.__signal_exit_emitter__:((Po=Lo.__signal_exit_emitter__=new Go).count=0,Po.emitted={}),Po.infinite||(Po.setMaxListeners(1/0),Po.infinite=!0),Io.exports=function(e,t){if(!Ho(f.process))return function(){};Mo.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Fo&&qo();var n="exit";t&&t.alwaysLast&&(n="afterexit");return Po.on(n,e),function(){Po.removeListener(n,e),0===Po.listeners("exit").length&&0===Po.listeners("afterexit").length&&Do()}};var Do=function(){Fo&&Ho(f.process)&&(Fo=!1,No.forEach((function(e){try{Lo.removeListener(e,Uo[e])}catch(e){}})),Lo.emit=Jo,Lo.reallyExit=Ko,Po.count-=1)};Io.exports.unload=Do;var jo=function(e,t,n){Po.emitted[e]||(Po.emitted[e]=!0,Po.emit(e,t,n))},Uo={};No.forEach((function(e){Uo[e]=function(){Ho(f.process)&&(Lo.listeners(e).length===Po.count&&(Do(),jo("exit",null,e),jo("afterexit",null,e),Bo&&"SIGHUP"===e&&(e="SIGINT"),Lo.kill(Lo.pid,e)))}})),Io.exports.signals=function(){return No};var Fo=!1,qo=function(){!Fo&&Ho(f.process)&&(Fo=!0,Po.count+=1,No=No.filter((function(e){try{return Lo.on(e,Uo[e]),!0}catch(e){return!1}})),Lo.emit=Xo,Lo.reallyExit=Wo)};Io.exports.load=qo;var Ko=Lo.reallyExit,Wo=function(e){Ho(f.process)&&(Lo.exitCode=e||0,jo("exit",Lo.exitCode,null),jo("afterexit",Lo.exitCode,null),Ko.call(Lo,Lo.exitCode))},Jo=Lo.emit,Xo=function(e,t){if("exit"===e&&Ho(f.process)){void 0!==t&&(Lo.exitCode=t);var n=Jo.apply(this,arguments);return jo("exit",Lo.exitCode,null),jo("afterexit",Lo.exitCode,null),n}return Jo.apply(this,arguments)}}else Io.exports=function(){return function(){}};var Qo=Io.exports;const zo=n,Vo=Qo,Yo=(e,t,n,r)=>{if(!Zo(t,n,r))return;const o=ts(n),s=setTimeout((()=>{e("SIGKILL")}),o);s.unref&&s.unref()},Zo=(e,{forceKillAfterTimeout:t},n)=>es(e)&&!1!==t&&n,es=e=>e===zo.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),ts=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e};var ns={spawnedKill:(e,t="SIGTERM",n={})=>{const r=e(t);return Yo(e,t,n,r),r},spawnedCancel:(e,t)=>{e.kill()&&(t.isCanceled=!0)},setupTimeout:(e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(0===t||void 0===t)return r;let o;const s=new Promise(((r,s)=>{o=setTimeout((()=>{((e,t,n)=>{e.kill(t),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))})(e,n,s)}),t)})),i=r.finally((()=>{clearTimeout(o)}));return Promise.race([s,i])},validateTimeout:({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},setExitHandler:async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;const o=Vo((()=>{e.kill()}));return r.finally((()=>{o()}))}};const rs=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;rs.writable=e=>rs(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,rs.readable=e=>rs(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,rs.duplex=e=>rs.writable(e)&&rs.readable(e),rs.transform=e=>rs.duplex(e)&&"function"==typeof e._transform;var os=rs,ss={exports:{}};const{PassThrough:is}=c;const{constants:as}=l,ls=c,{promisify:cs}=r,us=e=>{e={...e};const{array:t}=e;let{encoding:n}=e;const r="buffer"===n;let o=!1;t?o=!(n||r):n=n||"utf8",r&&(n=null);const s=new is({objectMode:o});n&&s.setEncoding(n);let i=0;const a=[];return s.on("data",(e=>{a.push(e),o?i=a.length:i+=e.length})),s.getBufferedValue=()=>t?a:r?Buffer.concat(a,i):a.join(""),s.getBufferedLength=()=>i,s},ps=cs(ls.pipeline);class fs extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function ds(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:n}=t,r=us(t);return await new Promise(((t,o)=>{const s=e=>{e&&r.getBufferedLength()<=as.MAX_LENGTH&&(e.bufferedData=r.getBufferedValue()),o(e)};(async()=>{try{await ps(e,r),t()}catch(e){s(e)}})(),r.on("data",(()=>{r.getBufferedLength()>n&&s(new fs)}))})),r.getBufferedValue()}ss.exports=ds,ss.exports.buffer=(e,t)=>ds(e,{...t,encoding:"buffer"}),ss.exports.array=(e,t)=>ds(e,{...t,array:!0}),ss.exports.MaxBufferError=fs;var hs=ss.exports;const{PassThrough:gs}=c;const ms=os,ys=hs,bs=function(){var e=[],t=new gs({objectMode:!0});return t.setMaxListeners(0),t.add=n,t.isEmpty=function(){return 0==e.length},t.on("unpipe",r),Array.prototype.slice.call(arguments).forEach(n),t;function n(o){return Array.isArray(o)?(o.forEach(n),this):(e.push(o),o.once("end",r.bind(null,o)),o.once("error",t.emit.bind(t,"error")),o.pipe(t,{end:!1}),this)}function r(n){!(e=e.filter((function(e){return e!==n}))).length&&t.readable&&t.end()}},vs=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},As=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(e&&n)return t?ys(e,{encoding:t,maxBuffer:r}):ys.buffer(e,{maxBuffer:r})};var Es={handleInput:(e,t)=>{void 0!==t&&void 0!==e.stdin&&(ms(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream:(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const n=bs();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},getSpawnedResult:async({stdout:e,stderr:t,all:n},{encoding:r,buffer:o,maxBuffer:s},i)=>{const a=As(e,{encoding:r,buffer:o,maxBuffer:s}),l=As(t,{encoding:r,buffer:o,maxBuffer:s}),c=As(n,{encoding:r,buffer:o,maxBuffer:2*s});try{return await Promise.all([i,a,l,c])}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},vs(e,a),vs(t,l),vs(n,c)])}},validateInputSync:({input:e})=>{if(ms(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}};const xs=(async()=>{})().constructor.prototype,Rs=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(xs,e)]));var Cs={mergePromise:(e,t)=>{for(const[n,r]of Rs){const o="function"==typeof t?(...e)=>Reflect.apply(r.value,t(),e):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:o})}return e},getSpawnedPromise:e=>new Promise(((t,n)=>{e.on("exit",((e,n)=>{t({exitCode:e,signal:n})})),e.on("error",(e=>{n(e)})),e.stdin&&e.stdin.on("error",(e=>{n(e)}))}))};const _s=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Ss=/^[\w.-]+$/,ws=/"/g,Ts=/ +/g;var Os={joinCommand:(e,t)=>_s(e,t).join(" "),getEscapedCommand:(e,t)=>_s(e,t).map((e=>(e=>"string"!=typeof e||Ss.test(e)?e:`"${e.replace(ws,'\\"')}"`)(e))).join(" "),parseCommand:e=>{const t=[];for(const n of e.trim().split(Ts)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t}};const $s=e,Is=s,ks=Xr,Ls=e=>{const t="string"==typeof e?"\n":"\n".charCodeAt(),n="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===n&&(e=e.slice(0,e.length-1)),e},Hs=zr,Ps=ro,Ms=_o,Ns=$o,{spawnedKill:Bs,spawnedCancel:Gs,setupTimeout:Ds,validateTimeout:js,setExitHandler:Us}=ns,{handleInput:Fs,getSpawnedResult:qs,makeAllStream:Ks,validateInputSync:Ws}=Es,{mergePromise:Js,getSpawnedPromise:Xs}=Cs,{joinCommand:Qs,parseCommand:zs,getEscapedCommand:Vs}=Os,Ys=(e,t,n={})=>{const r=ks._parse(e,t,n);return e=r.command,t=r.args,(n={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(n=r.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...n}).env=(({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:o})=>{const s=t?{...process.env,...e}:e;return n?Hs.env({env:s,cwd:r,execPath:o}):s})(n),n.stdio=Ns(n),"win32"===process.platform&&"cmd"===$s.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},Zs=(e,t,n)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?Ls(t):t:void 0===n?void 0:"",ei=(e,t,n)=>{const r=Ys(e,t,n),o=Qs(e,t),s=Vs(e,t);let i;js(r.options);try{i=Is.spawn(r.file,r.args,r.options)}catch(e){const t=new Is.ChildProcess,n=Promise.reject(Ms({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return Js(t,n)}const a=Xs(i),l=Ds(i,r.options,a),c=Us(i,r.options,l),u={isCanceled:!1};i.kill=Bs.bind(null,i.kill.bind(i)),i.cancel=Gs.bind(null,i,u);const p=Ps((async()=>{const[{error:e,exitCode:t,signal:n,timedOut:a},l,p,f]=await qs(i,r.options,c),d=Zs(r.options,l),h=Zs(r.options,p),g=Zs(r.options,f);if(e||0!==t||null!==n){const l=Ms({error:e,exitCode:t,signal:n,stdout:d,stderr:h,all:g,command:o,escapedCommand:s,parsed:r,timedOut:a,isCanceled:u.isCanceled,killed:i.killed});if(!r.options.reject)return l;throw l}return{command:o,escapedCommand:s,exitCode:0,stdout:d,stderr:h,all:g,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return Fs(i,r.options.input),i.all=Ks(i,r.options),Js(i,p)};function ti(e,t){return ri("blue",e,t)}function ni(e,t=""){return ri("red",e,t)}function ri(e,t,n=""){return n?console.log(ir[e](`${t}`),n):console.log(ir[e](`${t}`))}ar.exports=ei,ar.exports.sync=(e,t,n)=>{const r=Ys(e,t,n),o=Qs(e,t),s=Vs(e,t);let i;Ws(r.options);try{i=Is.spawnSync(r.file,r.args,r.options)}catch(e){throw Ms({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}const a=Zs(r.options,i.stdout,i.error),l=Zs(r.options,i.stderr,i.error);if(i.error||0!==i.status||null!==i.signal){const e=Ms({stdout:a,stderr:l,error:i.error,signal:i.signal,exitCode:i.status,command:o,escapedCommand:s,parsed:r,timedOut:i.error&&"ETIMEDOUT"===i.error.code,isCanceled:!1,killed:null!==i.signal});if(!r.options.reject)return e;throw e}return{command:o,escapedCommand:s,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},ar.exports.command=(e,t)=>{const[n,...r]=zs(e);return ei(n,r,t)},ar.exports.commandSync=(e,t)=>{const[n,...r]=zs(e);return ei.sync(n,r,t)},ar.exports.node=(e,t,n={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(n=t,t=[]);const r=Ns.node(n),o=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:s=process.execPath,nodeOptions:i=o}=n;return ei(s,[...i,e,...Array.isArray(t)?t:[]],{...n,stdin:void 0,stdout:void 0,stderr:void 0,stdio:r,shell:!1})};var oi=(e={})=>{const{name:t}=e;return`<template>\n <div class="app-container">\n <CoustomTable\n :queryFormJson="queryFormJson"\n :pageButtonsJson="pageButtonsJson"\n :tableJson="tableJson"\n :tableData="tableData"\n @onPageButton="handlerPageButton"\n @onButton="handlerButton"\n @onSearch="handlerSearch"\n @onTableRowClick="handlerTableRowClick"\n >\n </CoustomTable>\n\n <CoustomFormDialog\n ref="formDialog"\n :visible.sync="dialogVisible"\n :dialogJson="dialogJson"\n :initData="initFormData"\n @onSubmit="handlerSubmit"\n ></CoustomFormDialog>\n </div>\n</template>\n<script>\nimport CoustomTable from "@/components/CoustomTable";\nimport CoustomFormDialog from "@/components/CoustomFormDialog";\nimport { TableJson, QueryFormJson, PageButtonsJson, DialogJson } from "./constants";\nimport { \n getDevApiIotClassesList, \n postDevApiIotClasses, \n getDevApiIotClassesClassId, \n deleteDevApiIotClassesClassId,\n putDevApiIotClasses\n } from "@/api/iot/classes-controller.js";\n import {\n getDevApiIotPackagesList,\n} from "@/api/iot/packages-controller.js";\nexport default {\n name: '${t.toLowerCase().replace(/( |^)[a-z]/g,(e=>e.toUpperCase()))}',\n components: {\n CoustomTable,\n CoustomFormDialog\n },\n data() {\n return {\n queryFormJson: QueryFormJson,\n pageButtonsJson: PageButtonsJson,\n tableJson: TableJson,\n dialogJson: DialogJson,\n tableData: [],\n // 总条数\n total: 0,\n // 查询参数\n queryParams: {\n pageNum: 1,\n pageSize: 10,\n },\n dialogVisible: false,\n initFormData: {},\n }\n },\n created() {\n },\n mounted() {\n this.getList();\n },\n computed: {\n packageName() {\n const { query } = this.$route;\n return query.packageName\n }\n },\n methods: {\n async getPackageData() {\n try {\n const { rows = [] } = await getDevApiIotPackagesList();\n return rows.map(item => {\n return {\n value: item.packageCode,\n label: item.packageDispname,\n }\n })\n } catch (error) {\n return []\n }\n },\n\n async handlerSubmit(formData) {\n let params = {\n ...formData,\n packageName: this.packageName\n };\n let msgText = '新增';\n let func = postDevApiIotClasses;\n if (this.dialogJson.type === 'Edit') {\n params.classId = this.initFormData.classId;\n msgText = '编辑';\n func = putDevApiIotClasses;\n }\n try {\n const { code } = await func(params);\n if (code === 200) {\n this.dialogVisible = false;\n this.getList();\n this.$modal.msgSuccess(msgText + "成功");\n }\n this.$refs.formDialog.resetLoading();\n } catch (error) {\n // 接口调用失败重置 loading\n this.$refs.formDialog.resetLoading();\n }\n },\n\n /** 查询表集合 */\n getList(queryParams = {}) {\n this.loading = true;\n let queryData = {\n ...queryParams,\n ...this.queryParams,\n packageName: this.packageName\n }\n getDevApiIotClassesList(queryData).then(response => {\n this.tableData = response.rows;\n this.total = response.total;\n this.loading = false;\n });\n },\n\n handlerTableRowClick(item) {\n console.log('object :>>item ', item);\n this.$router.push({\n path: '/iot/packages/classes/detail',\n query: {\n classId: item.classId\n }\n })\n },\n\n // 搜索事件\n handlerSearch(searchParams) {\n this.queryParams = {\n pageNum: 1,\n pageSize: 10,\n },\n this.getList(searchParams);\n },\n\n //新增按钮事件\n async handlerPageButton(item) {\n const { type } = item;\n if (type === 'Add') {\n this.initFormData = {};\n this.dialogJson.type = 'Add';\n const packageData = await this.getPackageData()\n this.$set(this.dialogJson.formJson.formItemJson[0], 'option',packageData )\n console.log('object :>> ', this.dialogJson);\n this.dialogVisible = true;\n }\n\n if (type === 'Delete') {\n const tableIds = row.tableId || this.ids;\n this.$modal.confirm('是否确认删除表编号为"' + tableIds + '"的数据项?').then(function () {\n return delTable(tableIds);\n }).then(() => {\n this.getList();\n this.$modal.msgSuccess("删除成功");\n }).catch(() => { });\n }\n },\n\n async getInfo(id) {\n const { code, data } = await getDevApiIotClassesClassId(id);\n if (code === 200) {\n\n this.initFormData = data;\n this.dialogJson.type = 'Edit';\n this.dialogVisible = true;\n }\n },\n\n deleteItem(id) {\n this.$modal.confirm('是否确认删除该数据项?').then(function () {\n return deleteDevApiIotClassesClassId(id);\n }).then(() => {\n this.getList();\n this.$modal.msgSuccess("删除成功");\n }).catch(() => { });\n },\n\n handlerButton(btnItem) {\n const { row, item } = btnItem;\n const { type } = item;\n if (type === 'Edit') {\n this.getInfo(row.classId);\n }\n\n if (type === 'Delete') {\n this.deleteItem(row.classId);\n }\n },\n },\n}\n<\/script>\n<style scoped lang='scss'></style>`},si=()=>'export const QueryFormJson = {\n formOption: {\n inline: true,\n labelWidth: "100px",\n size: \'small\',\n },\n formItemJson: [\n {\n label: "类中文名称",\n prop: "classDispname",\n type: "Input",\n isEnter: true,\n options: {\n clearable: true,\n placeholder: \'请输入类名称\',\n }\n }\n ],\n buttonJson: {\n type: \'Search\',\n list: [\n {\n label: "搜索",\n type: \'Query\',\n options: {\n icon: "el-icon-search",\n size: "mini",\n type: "primary"\n }\n },\n {\n label: "重置",\n type: \'Reset\',\n options: {\n icon: "el-icon-refresh",\n size: "mini",\n }\n },\n ]\n\n }\n}\n\nexport const PageButtonsJson = {\n rowJson: {\n gutter: 10,\n },\n buttonList: [\n {\n span: 1.5,\n label: \'新增\',\n permi: \'\',\n type: \'Add\',\n options: [\n {\n icon: "el-icon-plus",\n plain: true,\n size: "mini",\n type: "primary",\n },\n \n ]\n }\n ]\n}\n\nexport const TableJson = {\n columnJson: {\n showSelect: false,\n showIndex: true,\n data: [\n {\n type: "index",\n width: "55",\n align: "left",\n headerAlign: "left",\n label: "序号" \n },\n {\n align: "left",\n headerAlign: "left",\n label: "类中文名称",\n prop: "classDispname",\n showOverflowTooltip: true,\n isLink: true,\n },\n {\n align: "left",\n headerAlign: "left",\n label: "类英文名称",\n prop: "classCode",\n showOverflowTooltip: true,\n },\n {\n align: "left",\n headerAlign: "left",\n label: "类类型",\n prop: "classesType",\n showOverflowTooltip: true,\n },\n {\n align: "left",\n headerAlign: "left",\n label: "访问类型",\n prop: "accessType",\n showOverflowTooltip: true,\n },\n {\n align: "left",\n headerAlign: "left",\n label: "实例存储表名称",\n prop: "delFlag",\n showOverflowTooltip: true,\n },\n {\n align: "left",\n headerAlign: "left",\n label: "备注",\n prop: "remark",\n showOverflowTooltip: true,\n },\n {\n align: "left",\n headerAlign: "left",\n label: "创建时间",\n prop: "createTime",\n showOverflowTooltip: true,\n },\n {\n align: "center",\n headerAlign: "center",\n label: "操作",\n type: "func",\n buttonList: [\n {\n label: "编辑",\n type: \'Edit\',\n permi: \'\',\n options: {\n icon: "el-icon-edit",\n size: "mini",\n type: "text",\n }\n },\n {\n label: "删除",\n type: \'Delete\',\n permi: \'\',\n options: {\n icon: "el-icon-delete",\n size: "mini",\n type: "text",\n }\n },\n ],\n },\n ],\n },\n};\n\nexport const DialogJson = {\n type: \'Add\',\n title: "类",\n options: {\n width: "600px",\n appendToBody: true,\n destroyOnClose: true,\n closeOnClickModal: false,\n },\n buttonList: [\n {\n label: "确定",\n type: \'Ok\',\n permi: \'\',\n options: {\n type: "primary",\n }\n },\n {\n label: "取消",\n type: \'Cancel\',\n permi: \'\',\n options: {\n type: "",\n }\n },\n ],\n formJson: {\n // 表单设置\n formOption: {\n inline: false,\n labelWidth: "120px",\n size: \'small\',\n },\n // 表单项\n formItemJson: [\n // {\n // label: "包编码",\n // prop: "packageCode",\n // type: "Select",\n // rules: [{ required: true, message: "请选择包编码", trigger: "change" }],\n // options: {\n // clearable: true,\n // placeholder: "请选择包编码",\n // },\n // option: [],\n // },\n {\n label: "类中文名称",\n prop: "classDispname",\n type: "Input",\n rules: [\n { required: true, message: \'请输入类中文名称\', trigger: \'blur\' },\n ],\n options: {\n clearable: true,\n placeholder: \'请输入类中文名称\',\n }\n },\n {\n label: "类英文名称",\n prop: "className",\n type: "Input",\n rules: [\n { required: true, message: \'请输入类英文名称\', trigger: \'blur\' },\n {\n required: true,\n validator: (rule, value, callback) => {\n const reg = /^[a-zA-Z]{1}w*$/;\n if (!reg.test(value)) {\n callback(\n new Error(\n "请输入以字母(不区分大小写)、数字、下划线(_)随意组合的字符串"\n )\n );\n }\n callback();\n },\n trigger: ["blur"],\n },\n ],\n options: {\n clearable: true,\n placeholder: \'请输入类英文名称\',\n }\n },\n {\n label: "类类型",\n prop: "classesType",\n type: "Select",\n rules: [{ required: true, message: "请选择类类型", trigger: "change" }],\n options: {\n clearable: true,\n placeholder: "请选择类型",\n },\n option: [\n {\n value: \'继承\',\n label: \'继承\',\n },\n {\n value: \'虚类\',\n label: \'虚类\',\n },\n {\n value: \'实体类\',\n label: \'实体类\',\n },\n ],\n },\n {\n label: "继承父类code",\n prop: "classesExtends",\n type: "Input",\n rules: [\n { required: true, message: \'请输入继承父类code\', trigger: \'blur\' },\n ],\n options: {\n clearable: true,\n placeholder: \'请输入继承父类code\',\n }\n },\n {\n label: "访问类型",\n prop: "accessType",\n type: "Select",\n rules: [{ required: true, message: "请选择访问类型", trigger: "change" }],\n options: {\n clearable: true,\n placeholder: "请选择访问类型",\n },\n option: [\n {\n value: \'default\',\n label: \'default\',\n },\n {\n value: \'public\',\n label: \'public\',\n },\n {\n value: \'protected\',\n label: \'protected\',\n },\n {\n value: \'private\',\n label: \'private\',\n },\n ],\n },\n {\n label: "实例存储表名称",\n prop: "objTableName",\n type: "Input",\n rules: [\n { required: true, message: \'请输入实例存储表名称\', trigger: \'blur\' },\n ],\n options: {\n clearable: true,\n placeholder: \'请输入实例存储表名称\',\n }\n },\n {\n label: "视图样式",\n prop: "viewStyle",\n type: "Input",\n rules: [\n { required: false, message: \'请输入视图样式\', trigger: \'blur\' },\n ],\n options: {\n clearable: true,\n placeholder: \'请输入视图样式\',\n }\n },\n {\n label: "备注",\n prop: "remark",\n type: "Input",\n rules: [],\n options: {\n clearable: true,\n placeholder: \'请输入备注\',\n type: \'textarea\',\n row: 4\n }\n },\n ],\n }\n\n}',ii={isEnter:!0,name:"genPageTable",path:"dome",child:[{name:"index.vue",template:(e={})=>oi({title:"pageTable",...e}),templateConfig:{}},{name:"constants.js",template:(e={})=>si({title:"pageTable",...e}),templateConfig:{title:""}}]};const ai=p.dirname(u.fileURLToPath("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:document.currentScript&&document.currentScript.src||new URL("index.browser.js",document.baseURI).href)),li=(...t)=>e.resolve(ai,...t);(async function(){return await async function(e){const t=Cn("dyp.config.js",{cwd:process.env.PWD}),n=await import(t);return e?n.default[e]:n.default}("genPageConfig")})().then((e=>{const t=e||ii;var n;t||ni("全局模板未配置,使用默认配置"),(n=t).isEnter?(ti("请输入要生成的页面组件名称、会生成在 views/目录下"),process.stdin.on("data",(async e=>{const t=String(e).trim().toString();fi(n,t),process.stdin.emit("end")})),process.stdin.on("end",(()=>{ti("exit"),process.exit()}))):fi(n)}));const ci=(e,n)=>{t.existsSync(e)?ni(`${e}文件已存在`):t.writeFileSync(e,n,"utf8",(e=>{e?(ni(e.message),reject(e)):li(!0)}))};function ui(e){return new Promise((t=>{pi(e,(function(){t(!0)}))}))}function pi(n,r){t.existsSync(n)?r():pi(e.dirname(n),(function(){t.mkdirSync(n),r()}))}async function fi(e,n){const r=n||e.name,o=e.path?`${process.env.PWD}/src/views/${e.path}`:`${process.env.PWD}/src/views`,s=li(o,r);if(t.existsSync(s))return ni(`${r}页面已存在`),void(r&&process.stdin.emit("end"));ti(`正在生成${r}目录 ${s}`),await ui(s);try{e.child.forEach((e=>{const t=li(s,e.name);ti(`正在生成子文件${e.name} ${t}`),ci(t,e.template({name:r}))})),function(e,t=""){ri("green",e,t)}("生成成功")}catch(e){ni(e.message)}}}));
63
+ const me=r,ye=oe,be=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),ve=e=>"number"==typeof e||"string"==typeof e&&""!==e,Ae=e=>Number.isInteger(+e),Ee=e=>{let t=`${e}`,n=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++n];);return n>0},xe=(e,t,n)=>{if(t>0){let n="-"===e[0]?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return!1===n?String(e):e},Re=(e,t)=>{let n="-"===e[0]?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return n?"-"+e:e},Ce=(e,t,n,r)=>{if(n)return ye(e,t,{wrap:!1,...r});let o=String.fromCharCode(e);return e===t?o:`[${o}-${String.fromCharCode(t)}]`},_e=(e,t,n)=>{if(Array.isArray(e)){let t=!0===n.wrap,r=n.capture?"":"?:";return t?`(${r}${e.join("|")})`:e.join("|")}return ye(e,t,n)},Se=(...e)=>new RangeError("Invalid range arguments: "+me.inspect(...e)),we=(e,t,n)=>{if(!0===n.strictRanges)throw Se([e,t]);return[]},Te=(e,t,n=1,r={})=>{let o=Number(e),s=Number(t);if(!Number.isInteger(o)||!Number.isInteger(s)){if(!0===r.strictRanges)throw Se([e,t]);return[]}0===o&&(o=0),0===s&&(s=0);let i=o>s,a=String(e),l=String(t),c=String(n);n=Math.max(Math.abs(n),1);let u=Ee(a)||Ee(l)||Ee(c),p=u?Math.max(a.length,l.length,c.length):0,f=!1===u&&!1===((e,t,n)=>"string"==typeof e||"string"==typeof t||!0===n.stringify)(e,t,r),d=r.transform||(e=>t=>!0===e?Number(t):String(t))(f);if(r.toRegex&&1===n)return Ce(Re(e,p),Re(t,p),!0,r);let h={negatives:[],positives:[]},g=[],m=0;for(;i?o>=s:o<=s;)!0===r.toRegex&&n>1?h[(y=o)<0?"negatives":"positives"].push(Math.abs(y)):g.push(xe(d(o,m),p,f)),o=i?o-n:o+n,m++;var y;return!0===r.toRegex?n>1?((e,t)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0)),e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let n,r=t.capture?"":"?:",o="",s="";return e.positives.length&&(o=e.positives.join("|")),e.negatives.length&&(s=`-(${r}${e.negatives.join("|")})`),n=o&&s?`${o}|${s}`:o||s,t.wrap?`(${r}${n})`:n})(h,r):_e(g,null,{wrap:!1,...r}):g},Oe=(e,t,n,r={})=>{if(null==t&&ve(e))return[e];if(!ve(e)||!ve(t))return we(e,t,r);if("function"==typeof n)return Oe(e,t,1,{transform:n});if(be(n))return Oe(e,t,0,n);let o={...r};return!0===o.capture&&(o.wrap=!0),n=n||o.step||1,Ae(n)?Ae(e)&&Ae(t)?Te(e,t,n,o):((e,t,n=1,r={})=>{if(!Ae(e)&&e.length>1||!Ae(t)&&t.length>1)return we(e,t,r);let o=r.transform||(e=>String.fromCharCode(e)),s=`${e}`.charCodeAt(0),i=`${t}`.charCodeAt(0),a=s>i,l=Math.min(s,i),c=Math.max(s,i);if(r.toRegex&&1===n)return Ce(l,c,!1,r);let u=[],p=0;for(;a?s>=i:s<=i;)u.push(o(s,p)),s=a?s-n:s+n,p++;return!0===r.toRegex?_e(u,null,{wrap:!1,options:r}):u})(e,t,Math.max(Math.abs(n),1),o):null==n||be(n)?Oe(e,t,1,n):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(n,o)};const $e=Oe,Ie=ee;var ke=(e,t={})=>{let n=(e,r={})=>{let o=Ie.isInvalidBrace(r),s=!0===e.invalid&&!0===t.escapeInvalid,i=!0===o||!0===s,a=!0===t.escapeInvalid?"\\":"",l="";if(!0===e.isOpen)return a+e.value;if(!0===e.isClose)return a+e.value;if("open"===e.type)return i?a+e.value:"(";if("close"===e.type)return i?a+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":i?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){let n=Ie.reduce(e.nodes),r=$e(...n,{...t,wrap:!1,toRegex:!0});if(0!==r.length)return n.length>1&&r.length>1?`(${r})`:r}if(e.nodes)for(let t of e.nodes)l+=n(t,e);return l};return n(e)};const Le=Oe,He=ne,Pe=ee,Me=(e="",t="",n=!1)=>{let r=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return n?Pe.flatten(t).map((e=>`{${e}}`)):t;for(let o of e)if(Array.isArray(o))for(let e of o)r.push(Me(e,t,n));else for(let e of t)!0===n&&"string"==typeof e&&(e=`{${e}}`),r.push(Array.isArray(e)?Me(o,e,n):o+e);return Pe.flatten(r)};var Ne=(e,t={})=>{let n=void 0===t.rangeLimit?1e3:t.rangeLimit,r=(e,o={})=>{e.queue=[];let s=o,i=o.queue;for(;"brace"!==s.type&&"root"!==s.type&&s.parent;)s=s.parent,i=s.queue;if(e.invalid||e.dollar)return void i.push(Me(i.pop(),He(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void i.push(Me(i.pop(),["{}"]));if(e.nodes&&e.ranges>0){let r=Pe.reduce(e.nodes);if(Pe.exceedsLimit(...r,t.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let o=Le(...r,t);return 0===o.length&&(o=He(e,t)),i.push(Me(i.pop(),o)),void(e.nodes=[])}let a=Pe.encloseBrace(e),l=e.queue,c=e;for(;"brace"!==c.type&&"root"!==c.type&&c.parent;)c=c.parent,l=c.queue;for(let t=0;t<e.nodes.length;t++){let n=e.nodes[t];"comma"!==n.type||"brace"!==e.type?"close"!==n.type?n.value&&"open"!==n.type?l.push(Me(l.pop(),n.value)):n.nodes&&r(n,e):i.push(Me(i.pop(),l,a)):(1===t&&l.push(""),l.push(""))}return l};return Pe.flatten(r(e))};const Be=ne,{MAX_LENGTH:Ge,CHAR_BACKSLASH:De,CHAR_BACKTICK:je,CHAR_COMMA:Ue,CHAR_DOT:Fe,CHAR_LEFT_PARENTHESES:qe,CHAR_RIGHT_PARENTHESES:Ke,CHAR_LEFT_CURLY_BRACE:We,CHAR_RIGHT_CURLY_BRACE:Je,CHAR_LEFT_SQUARE_BRACKET:Xe,CHAR_RIGHT_SQUARE_BRACKET:Qe,CHAR_DOUBLE_QUOTE:ze,CHAR_SINGLE_QUOTE:Ve,CHAR_NO_BREAK_SPACE:Ye,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Ze}={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"};var et=(e,t={})=>{if("string"!=typeof e)throw new TypeError("Expected a string");let n=t||{},r="number"==typeof n.maxLength?Math.min(Ge,n.maxLength):Ge;if(e.length>r)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${r})`);let o,s={type:"root",input:e,nodes:[]},i=[s],a=s,l=s,c=0,u=e.length,p=0,f=0;const d=()=>e[p++],h=e=>{if("text"===e.type&&"dot"===l.type&&(l.type="text"),!l||"text"!==l.type||"text"!==e.type)return a.nodes.push(e),e.parent=a,e.prev=l,l=e,e;l.value+=e.value};for(h({type:"bos"});p<u;)if(a=i[i.length-1],o=d(),o!==Ze&&o!==Ye)if(o!==De)if(o!==Qe)if(o!==Xe)if(o!==qe)if(o!==Ke)if(o!==ze&&o!==Ve&&o!==je)if(o!==We)if(o!==Je)if(o===Ue&&f>0){if(a.ranges>0){a.ranges=0;let e=a.nodes.shift();a.nodes=[e,{type:"text",value:Be(a)}]}h({type:"comma",value:o}),a.commas++}else if(o===Fe&&f>0&&0===a.commas){let e=a.nodes;if(0===f||0===e.length){h({type:"text",value:o});continue}if("dot"===l.type){if(a.range=[],l.value+=o,l.type="range",3!==a.nodes.length&&5!==a.nodes.length){a.invalid=!0,a.ranges=0,l.type="text";continue}a.ranges++,a.args=[];continue}if("range"===l.type){e.pop();let t=e[e.length-1];t.value+=l.value+o,l=t,a.ranges--;continue}h({type:"dot",value:o})}else h({type:"text",value:o});else{if("brace"!==a.type){h({type:"text",value:o});continue}let e="close";a=i.pop(),a.close=!0,h({type:e,value:o}),f--,a=i[i.length-1]}else{f++;let e=l.value&&"$"===l.value.slice(-1)||!0===a.dollar;a=h({type:"brace",open:!0,close:!1,dollar:e,depth:f,commas:0,ranges:0,nodes:[]}),i.push(a),h({type:"open",value:o})}else{let e,n=o;for(!0!==t.keepQuotes&&(o="");p<u&&(e=d());)if(e!==De){if(e===n){!0===t.keepQuotes&&(o+=e);break}o+=e}else o+=e+d();h({type:"text",value:o})}else{if("paren"!==a.type){h({type:"text",value:o});continue}a=i.pop(),h({type:"text",value:o}),a=i[i.length-1]}else a=h({type:"paren",nodes:[]}),i.push(a),h({type:"text",value:o});else{let e;for(c++;p<u&&(e=d());)if(o+=e,e!==Xe)if(e!==De){if(e===Qe&&(c--,0===c))break}else o+=d();else c++;h({type:"text",value:o})}else h({type:"text",value:"\\"+o});else h({type:"text",value:(t.keepEscaping?o:"")+d()});do{if(a=i.pop(),"root"!==a.type){a.nodes.forEach((e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)}));let e=i[i.length-1],t=e.nodes.indexOf(a);e.nodes.splice(t,1,...a.nodes)}}while(i.length>0);return h({type:"eos"}),s};const tt=ne,nt=ke,rt=Ne,ot=et,st=(e,t={})=>{let n=[];if(Array.isArray(e))for(let r of e){let e=st.create(r,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(st.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(n=[...new Set(n)]),n};st.parse=(e,t={})=>ot(e,t),st.stringify=(e,t={})=>tt("string"==typeof e?st.parse(e,t):e,t),st.compile=(e,t={})=>("string"==typeof e&&(e=st.parse(e,t)),nt(e,t)),st.expand=(e,t={})=>{"string"==typeof e&&(e=st.parse(e,t));let n=rt(e,t);return!0===t.noempty&&(n=n.filter(Boolean)),!0===t.nodupes&&(n=[...new Set(n)]),n},st.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?st.compile(e,t):st.expand(e,t);var it=st,at={};const lt=e,ct="\\\\/",ut=`[^${ct}]`,pt="\\.",ft="\\/",dt="[^/]",ht=`(?:${ft}|$)`,gt=`(?:^|${ft})`,mt=`${pt}{1,2}${ht}`,yt={DOT_LITERAL:pt,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:ft,ONE_CHAR:"(?=.)",QMARK:dt,END_ANCHOR:ht,DOTS_SLASH:mt,NO_DOT:`(?!${pt})`,NO_DOTS:`(?!${gt}${mt})`,NO_DOT_SLASH:`(?!${pt}{0,1}${ht})`,NO_DOTS_SLASH:`(?!${mt})`,QMARK_NO_DOT:`[^.${ft}]`,STAR:`${dt}*?`,START_ANCHOR:gt},bt={...yt,SLASH_LITERAL:`[${ct}]`,QMARK:ut,STAR:`${ut}*?`,DOTS_SLASH:`${pt}{1,2}(?:[${ct}]|$)`,NO_DOT:`(?!${pt})`,NO_DOTS:`(?!(?:^|[${ct}])${pt}{1,2}(?:[${ct}]|$))`,NO_DOT_SLASH:`(?!${pt}{0,1}(?:[${ct}]|$))`,NO_DOTS_SLASH:`(?!${pt}{1,2}(?:[${ct}]|$))`,QMARK_NO_DOT:`[^.${ct}]`,START_ANCHOR:`(?:^|[${ct}])`,END_ANCHOR:`(?:[${ct}]|$)`};var vt={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:lt.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?bt:yt};!function(t){const n=e,r="win32"===process.platform,{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:a}=vt;t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>i.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(a,"\\$1"),t.toPosixSlashes=e=>e.replace(o,"/"),t.removeBackslashes=e=>e.replace(s,(e=>"\\"===e?"":e)),t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===r||"\\"===n.sep,t.escapeLast=(e,n,r)=>{const o=e.lastIndexOf(n,r);return-1===o?e:"\\"===e[o-1]?t.escapeLast(e,n,o-1):`${e.slice(0,o)}\\${e.slice(o)}`},t.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},t.wrapOutput=(e,t={},n={})=>{let r=`${n.contains?"":"^"}(?:${e})${n.contains?"":"$"}`;return!0===t.negated&&(r=`(?:^(?!${r}).*$)`),r}}(at);const At=at,{CHAR_ASTERISK:Et,CHAR_AT:xt,CHAR_BACKWARD_SLASH:Rt,CHAR_COMMA:Ct,CHAR_DOT:_t,CHAR_EXCLAMATION_MARK:St,CHAR_FORWARD_SLASH:wt,CHAR_LEFT_CURLY_BRACE:Tt,CHAR_LEFT_PARENTHESES:Ot,CHAR_LEFT_SQUARE_BRACKET:$t,CHAR_PLUS:It,CHAR_QUESTION_MARK:kt,CHAR_RIGHT_CURLY_BRACE:Lt,CHAR_RIGHT_PARENTHESES:Ht,CHAR_RIGHT_SQUARE_BRACKET:Pt}=vt,Mt=e=>e===wt||e===Rt,Nt=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};var Bt=(e,t)=>{const n=t||{},r=e.length-1,o=!0===n.parts||!0===n.scanToEnd,s=[],i=[],a=[];let l,c,u=e,p=-1,f=0,d=0,h=!1,g=!1,m=!1,y=!1,b=!1,v=!1,A=!1,E=!1,x=!1,R=!1,C=0,_={value:"",depth:0,isGlob:!1};const S=()=>p>=r,w=()=>(l=c,u.charCodeAt(++p));for(;p<r;){let e;if(c=w(),c!==Rt){if(!0===v||c===Tt){for(C++;!0!==S()&&(c=w());)if(c!==Rt)if(c!==Tt){if(!0!==v&&c===_t&&(c=w())===_t){if(h=_.isBrace=!0,m=_.isGlob=!0,R=!0,!0===o)continue;break}if(!0!==v&&c===Ct){if(h=_.isBrace=!0,m=_.isGlob=!0,R=!0,!0===o)continue;break}if(c===Lt&&(C--,0===C)){v=!1,h=_.isBrace=!0,R=!0;break}}else C++;else A=_.backslashes=!0,w();if(!0===o)continue;break}if(c!==wt){if(!0!==n.noext){if(!0===(c===It||c===xt||c===Et||c===kt||c===St)&&u.charCodeAt(p+1)===Ot){if(m=_.isGlob=!0,y=_.isExtglob=!0,R=!0,c===St&&p===f&&(x=!0),!0===o){for(;!0!==S()&&(c=w());)if(c!==Rt){if(c===Ht){m=_.isGlob=!0,R=!0;break}}else A=_.backslashes=!0,c=w();continue}break}}if(c===Et){if(l===Et&&(b=_.isGlobstar=!0),m=_.isGlob=!0,R=!0,!0===o)continue;break}if(c===kt){if(m=_.isGlob=!0,R=!0,!0===o)continue;break}if(c===$t){for(;!0!==S()&&(e=w());)if(e!==Rt){if(e===Pt){g=_.isBracket=!0,m=_.isGlob=!0,R=!0;break}}else A=_.backslashes=!0,w();if(!0===o)continue;break}if(!0===n.nonegate||c!==St||p!==f){if(!0!==n.noparen&&c===Ot){if(m=_.isGlob=!0,!0===o){for(;!0!==S()&&(c=w());)if(c!==Ot){if(c===Ht){R=!0;break}}else A=_.backslashes=!0,c=w();continue}break}if(!0===m){if(R=!0,!0===o)continue;break}}else E=_.negated=!0,f++}else{if(s.push(p),i.push(_),_={value:"",depth:0,isGlob:!1},!0===R)continue;if(l===_t&&p===f+1){f+=2;continue}d=p+1}}else A=_.backslashes=!0,c=w(),c===Tt&&(v=!0)}!0===n.noext&&(y=!1,m=!1);let T=u,O="",$="";f>0&&(O=u.slice(0,f),u=u.slice(f),d-=f),T&&!0===m&&d>0?(T=u.slice(0,d),$=u.slice(d)):!0===m?(T="",$=u):T=u,T&&""!==T&&"/"!==T&&T!==u&&Mt(T.charCodeAt(T.length-1))&&(T=T.slice(0,-1)),!0===n.unescape&&($&&($=At.removeBackslashes($)),T&&!0===A&&(T=At.removeBackslashes(T)));const I={prefix:O,input:e,start:f,base:T,glob:$,isBrace:h,isBracket:g,isGlob:m,isExtglob:y,isGlobstar:b,negated:E,negatedExtglob:x};if(!0===n.tokens&&(I.maxDepth=0,Mt(c)||i.push(_),I.tokens=i),!0===n.parts||!0===n.tokens){let t;for(let r=0;r<s.length;r++){const o=t?t+1:f,l=s[r],c=e.slice(o,l);n.tokens&&(0===r&&0!==f?(i[r].isPrefix=!0,i[r].value=O):i[r].value=c,Nt(i[r]),I.maxDepth+=i[r].depth),0===r&&""===c||a.push(c),t=l}if(t&&t+1<e.length){const r=e.slice(t+1);a.push(r),n.tokens&&(i[i.length-1].value=r,Nt(i[i.length-1]),I.maxDepth+=i[i.length-1].depth)}I.slashes=s,I.parts=a}return I};const Gt=vt,Dt=at,{MAX_LENGTH:jt,POSIX_REGEX_SOURCE:Ut,REGEX_NON_SPECIAL_CHARS:Ft,REGEX_SPECIAL_CHARS_BACKREF:qt,REPLACEMENTS:Kt}=Gt,Wt=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map((e=>Dt.escapeRegex(e))).join("..")}return n},Jt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Xt=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=Kt[e]||e;const n={...t},r="number"==typeof n.maxLength?Math.min(jt,n.maxLength):jt;let o=e.length;if(o>r)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${r}`);const s={type:"bos",value:"",output:n.prepend||""},i=[s],a=n.capture?"":"?:",l=Dt.isWindows(t),c=Gt.globChars(l),u=Gt.extglobChars(c),{DOT_LITERAL:p,PLUS_LITERAL:f,SLASH_LITERAL:d,ONE_CHAR:h,DOTS_SLASH:g,NO_DOT:m,NO_DOT_SLASH:y,NO_DOTS_SLASH:b,QMARK:v,QMARK_NO_DOT:A,STAR:E,START_ANCHOR:x}=c,R=e=>`(${a}(?:(?!${x}${e.dot?g:p}).)*?)`,C=n.dot?"":m,_=n.dot?v:A;let S=!0===n.bash?R(n):E;n.capture&&(S=`(${S})`),"boolean"==typeof n.noext&&(n.noextglob=n.noext);const w={input:e,index:-1,start:0,dot:!0===n.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};e=Dt.removePrefix(e,w),o=e.length;const T=[],O=[],$=[];let I,k=s;const L=()=>w.index===o-1,H=w.peek=(t=1)=>e[w.index+t],P=w.advance=()=>e[++w.index]||"",M=()=>e.slice(w.index+1),N=(e="",t=0)=>{w.consumed+=e,w.index+=t},B=e=>{w.output+=null!=e.output?e.output:e.value,N(e.value)},G=()=>{let e=1;for(;"!"===H()&&("("!==H(2)||"?"===H(3));)P(),w.start++,e++;return e%2!=0&&(w.negated=!0,w.start++,!0)},D=e=>{w[e]++,$.push(e)},j=e=>{w[e]--,$.pop()},U=e=>{if("globstar"===k.type){const t=w.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||T.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(w.output=w.output.slice(0,-k.output.length),k.type="star",k.value="*",k.output=S,w.output+=k.output)}if(T.length&&"paren"!==e.type&&(T[T.length-1].inner+=e.value),(e.value||e.output)&&B(e),k&&"text"===k.type&&"text"===e.type)return k.value+=e.value,void(k.output=(k.output||"")+e.value);e.prev=k,i.push(e),k=e},F=(e,t)=>{const r={...u[t],conditions:1,inner:""};r.prev=k,r.parens=w.parens,r.output=w.output;const o=(n.capture?"(":"")+r.open;D("parens"),U({type:e,value:t,output:w.output?"":h}),U({type:"paren",extglob:!0,value:P(),output:o}),T.push(r)},q=e=>{let r,o=e.close+(n.capture?")":"");if("negate"===e.type){let s=S;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(s=R(n)),(s!==S||L()||/^\)+$/.test(M()))&&(o=e.close=`)$))${s}`),e.inner.includes("*")&&(r=M())&&/^\.[^\\/.]+$/.test(r)){const n=Xt(r,{...t,fastpaths:!1}).output;o=e.close=`)${n})${s})`}"bos"===e.prev.type&&(w.negatedExtglob=!0)}U({type:"paren",extglob:!0,value:I,output:o}),j("parens")};if(!1!==n.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let r=!1,o=e.replace(qt,((e,t,n,o,s,i)=>"\\"===o?(r=!0,e):"?"===o?t?t+o+(s?v.repeat(s.length):""):0===i?_+(s?v.repeat(s.length):""):v.repeat(n.length):"."===o?p.repeat(n.length):"*"===o?t?t+o+(s?S:""):S:t?e:`\\${e}`));return!0===r&&(o=!0===n.unescape?o.replace(/\\/g,""):o.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),o===e&&!0===n.contains?(w.output=e,w):(w.output=Dt.wrapOutput(o,w,t),w)}for(;!L();){if(I=P(),"\0"===I)continue;if("\\"===I){const e=H();if("/"===e&&!0!==n.bash)continue;if("."===e||";"===e)continue;if(!e){I+="\\",U({type:"text",value:I});continue}const t=/^\\+/.exec(M());let r=0;if(t&&t[0].length>2&&(r=t[0].length,w.index+=r,r%2!=0&&(I+="\\")),!0===n.unescape?I=P():I+=P(),0===w.brackets){U({type:"text",value:I});continue}}if(w.brackets>0&&("]"!==I||"["===k.value||"[^"===k.value)){if(!1!==n.posix&&":"===I){const e=k.value.slice(1);if(e.includes("[")&&(k.posix=!0,e.includes(":"))){const e=k.value.lastIndexOf("["),t=k.value.slice(0,e),n=k.value.slice(e+2),r=Ut[n];if(r){k.value=t+r,w.backtrack=!0,P(),s.output||1!==i.indexOf(k)||(s.output=h);continue}}}("["===I&&":"!==H()||"-"===I&&"]"===H())&&(I=`\\${I}`),"]"!==I||"["!==k.value&&"[^"!==k.value||(I=`\\${I}`),!0===n.posix&&"!"===I&&"["===k.value&&(I="^"),k.value+=I,B({value:I});continue}if(1===w.quotes&&'"'!==I){I=Dt.escapeRegex(I),k.value+=I,B({value:I});continue}if('"'===I){w.quotes=1===w.quotes?0:1,!0===n.keepQuotes&&U({type:"text",value:I});continue}if("("===I){D("parens"),U({type:"paren",value:I});continue}if(")"===I){if(0===w.parens&&!0===n.strictBrackets)throw new SyntaxError(Jt("opening","("));const e=T[T.length-1];if(e&&w.parens===e.parens+1){q(T.pop());continue}U({type:"paren",value:I,output:w.parens?")":"\\)"}),j("parens");continue}if("["===I){if(!0!==n.nobracket&&M().includes("]"))D("brackets");else{if(!0!==n.nobracket&&!0===n.strictBrackets)throw new SyntaxError(Jt("closing","]"));I=`\\${I}`}U({type:"bracket",value:I});continue}if("]"===I){if(!0===n.nobracket||k&&"bracket"===k.type&&1===k.value.length){U({type:"text",value:I,output:`\\${I}`});continue}if(0===w.brackets){if(!0===n.strictBrackets)throw new SyntaxError(Jt("opening","["));U({type:"text",value:I,output:`\\${I}`});continue}j("brackets");const e=k.value.slice(1);if(!0===k.posix||"^"!==e[0]||e.includes("/")||(I=`/${I}`),k.value+=I,B({value:I}),!1===n.literalBrackets||Dt.hasRegexChars(e))continue;const t=Dt.escapeRegex(k.value);if(w.output=w.output.slice(0,-k.value.length),!0===n.literalBrackets){w.output+=t,k.value=t;continue}k.value=`(${a}${t}|${k.value})`,w.output+=k.value;continue}if("{"===I&&!0!==n.nobrace){D("braces");const e={type:"brace",value:I,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};O.push(e),U(e);continue}if("}"===I){const e=O[O.length-1];if(!0===n.nobrace||!e){U({type:"text",value:I,output:I});continue}let t=")";if(!0===e.dots){const e=i.slice(),r=[];for(let t=e.length-1;t>=0&&(i.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&r.unshift(e[t].value);t=Wt(r,n),w.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const n=w.output.slice(0,e.outputIndex),r=w.tokens.slice(e.tokensIndex);e.value=e.output="\\{",I=t="\\}",w.output=n;for(const e of r)w.output+=e.output||e.value}U({type:"brace",value:I,output:t}),j("braces"),O.pop();continue}if("|"===I){T.length>0&&T[T.length-1].conditions++,U({type:"text",value:I});continue}if(","===I){let e=I;const t=O[O.length-1];t&&"braces"===$[$.length-1]&&(t.comma=!0,e="|"),U({type:"comma",value:I,output:e});continue}if("/"===I){if("dot"===k.type&&w.index===w.start+1){w.start=w.index+1,w.consumed="",w.output="",i.pop(),k=s;continue}U({type:"slash",value:I,output:d});continue}if("."===I){if(w.braces>0&&"dot"===k.type){"."===k.value&&(k.output=p);const e=O[O.length-1];k.type="dots",k.output+=I,k.value+=I,e.dots=!0;continue}if(w.braces+w.parens===0&&"bos"!==k.type&&"slash"!==k.type){U({type:"text",value:I,output:p});continue}U({type:"dot",value:I,output:p});continue}if("?"===I){if(!(k&&"("===k.value)&&!0!==n.noextglob&&"("===H()&&"?"!==H(2)){F("qmark",I);continue}if(k&&"paren"===k.type){const e=H();let t=I;if("<"===e&&!Dt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===k.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(M()))&&(t=`\\${I}`),U({type:"text",value:I,output:t});continue}if(!0!==n.dot&&("slash"===k.type||"bos"===k.type)){U({type:"qmark",value:I,output:A});continue}U({type:"qmark",value:I,output:v});continue}if("!"===I){if(!0!==n.noextglob&&"("===H()&&("?"!==H(2)||!/[!=<:]/.test(H(3)))){F("negate",I);continue}if(!0!==n.nonegate&&0===w.index){G();continue}}if("+"===I){if(!0!==n.noextglob&&"("===H()&&"?"!==H(2)){F("plus",I);continue}if(k&&"("===k.value||!1===n.regex){U({type:"plus",value:I,output:f});continue}if(k&&("bracket"===k.type||"paren"===k.type||"brace"===k.type)||w.parens>0){U({type:"plus",value:I});continue}U({type:"plus",value:f});continue}if("@"===I){if(!0!==n.noextglob&&"("===H()&&"?"!==H(2)){U({type:"at",extglob:!0,value:I,output:""});continue}U({type:"text",value:I});continue}if("*"!==I){"$"!==I&&"^"!==I||(I=`\\${I}`);const e=Ft.exec(M());e&&(I+=e[0],w.index+=e[0].length),U({type:"text",value:I});continue}if(k&&("globstar"===k.type||!0===k.star)){k.type="star",k.star=!0,k.value+=I,k.output=S,w.backtrack=!0,w.globstar=!0,N(I);continue}let t=M();if(!0!==n.noextglob&&/^\([^?]/.test(t)){F("star",I);continue}if("star"===k.type){if(!0===n.noglobstar){N(I);continue}const r=k.prev,o=r.prev,s="slash"===r.type||"bos"===r.type,i=o&&("star"===o.type||"globstar"===o.type);if(!0===n.bash&&(!s||t[0]&&"/"!==t[0])){U({type:"star",value:I,output:""});continue}const a=w.braces>0&&("comma"===r.type||"brace"===r.type),l=T.length&&("pipe"===r.type||"paren"===r.type);if(!s&&"paren"!==r.type&&!a&&!l){U({type:"star",value:I,output:""});continue}for(;"/**"===t.slice(0,3);){const n=e[w.index+4];if(n&&"/"!==n)break;t=t.slice(3),N("/**",3)}if("bos"===r.type&&L()){k.type="globstar",k.value+=I,k.output=R(n),w.output=k.output,w.globstar=!0,N(I);continue}if("slash"===r.type&&"bos"!==r.prev.type&&!i&&L()){w.output=w.output.slice(0,-(r.output+k.output).length),r.output=`(?:${r.output}`,k.type="globstar",k.output=R(n)+(n.strictSlashes?")":"|$)"),k.value+=I,w.globstar=!0,w.output+=r.output+k.output,N(I);continue}if("slash"===r.type&&"bos"!==r.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";w.output=w.output.slice(0,-(r.output+k.output).length),r.output=`(?:${r.output}`,k.type="globstar",k.output=`${R(n)}${d}|${d}${e})`,k.value+=I,w.output+=r.output+k.output,w.globstar=!0,N(I+P()),U({type:"slash",value:"/",output:""});continue}if("bos"===r.type&&"/"===t[0]){k.type="globstar",k.value+=I,k.output=`(?:^|${d}|${R(n)}${d})`,w.output=k.output,w.globstar=!0,N(I+P()),U({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-k.output.length),k.type="globstar",k.output=R(n),k.value+=I,w.output+=k.output,w.globstar=!0,N(I);continue}const r={type:"star",value:I,output:S};!0!==n.bash?!k||"bracket"!==k.type&&"paren"!==k.type||!0!==n.regex?(w.index!==w.start&&"slash"!==k.type&&"dot"!==k.type||("dot"===k.type?(w.output+=y,k.output+=y):!0===n.dot?(w.output+=b,k.output+=b):(w.output+=C,k.output+=C),"*"!==H()&&(w.output+=h,k.output+=h)),U(r)):(r.output=I,U(r)):(r.output=".*?","bos"!==k.type&&"slash"!==k.type||(r.output=C+r.output),U(r))}for(;w.brackets>0;){if(!0===n.strictBrackets)throw new SyntaxError(Jt("closing","]"));w.output=Dt.escapeLast(w.output,"["),j("brackets")}for(;w.parens>0;){if(!0===n.strictBrackets)throw new SyntaxError(Jt("closing",")"));w.output=Dt.escapeLast(w.output,"("),j("parens")}for(;w.braces>0;){if(!0===n.strictBrackets)throw new SyntaxError(Jt("closing","}"));w.output=Dt.escapeLast(w.output,"{"),j("braces")}if(!0===n.strictSlashes||"star"!==k.type&&"bracket"!==k.type||U({type:"maybe_slash",value:"",output:`${d}?`}),!0===w.backtrack){w.output="";for(const e of w.tokens)w.output+=null!=e.output?e.output:e.value,e.suffix&&(w.output+=e.suffix)}return w};Xt.fastpaths=(e,t)=>{const n={...t},r="number"==typeof n.maxLength?Math.min(jt,n.maxLength):jt,o=e.length;if(o>r)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${r}`);e=Kt[e]||e;const s=Dt.isWindows(t),{DOT_LITERAL:i,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:p,NO_DOTS_SLASH:f,STAR:d,START_ANCHOR:h}=Gt.globChars(s),g=n.dot?p:u,m=n.dot?f:u,y=n.capture?"":"?:";let b=!0===n.bash?".*?":d;n.capture&&(b=`(${b})`);const v=e=>!0===e.noglobstar?b:`(${y}(?:(?!${h}${e.dot?c:i}).)*?)`,A=e=>{switch(e){case"*":return`${g}${l}${b}`;case".*":return`${i}${l}${b}`;case"*.*":return`${g}${b}${i}${l}${b}`;case"*/*":return`${g}${b}${a}${l}${m}${b}`;case"**":return g+v(n);case"**/*":return`(?:${g}${v(n)}${a})?${m}${l}${b}`;case"**/*.*":return`(?:${g}${v(n)}${a})?${m}${b}${i}${l}${b}`;case"**/.*":return`(?:${g}${v(n)}${a})?${i}${l}${b}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=A(t[1]);if(!n)return;return n+i+t[2]}}},E=Dt.removePrefix(e,{negated:!1,prefix:""});let x=A(E);return x&&!0!==n.strictSlashes&&(x+=`${a}?`),x};const Qt=e,zt=Bt,Vt=Xt,Yt=at,Zt=vt,en=(e,t,n=!1)=>{if(Array.isArray(e)){const r=e.map((e=>en(e,t,n))),o=e=>{for(const t of r){const n=t(e);if(n)return n}return!1};return o}const r=(o=e)&&"object"==typeof o&&!Array.isArray(o)&&e.tokens&&e.input;var o;if(""===e||"string"!=typeof e&&!r)throw new TypeError("Expected pattern to be a non-empty string");const s=t||{},i=Yt.isWindows(t),a=r?en.compileRe(e,t):en.makeRe(e,t,!1,!0),l=a.state;delete a.state;let c=()=>!1;if(s.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};c=en(s.ignore,e,n)}const u=(n,r=!1)=>{const{isMatch:o,match:u,output:p}=en.test(n,a,t,{glob:e,posix:i}),f={glob:e,state:l,regex:a,posix:i,input:n,output:p,match:u,isMatch:o};return"function"==typeof s.onResult&&s.onResult(f),!1===o?(f.isMatch=!1,!!r&&f):c(n)?("function"==typeof s.onIgnore&&s.onIgnore(f),f.isMatch=!1,!!r&&f):("function"==typeof s.onMatch&&s.onMatch(f),!r||f)};return n&&(u.state=l),u};en.test=(e,t,n,{glob:r,posix:o}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const s=n||{},i=s.format||(o?Yt.toPosixSlashes:null);let a=e===r,l=a&&i?i(e):e;return!1===a&&(l=i?i(e):e,a=l===r),!1!==a&&!0!==s.capture||(a=!0===s.matchBase||!0===s.basename?en.matchBase(e,t,n,o):t.exec(l)),{isMatch:Boolean(a),match:a,output:l}},en.matchBase=(e,t,n,r=Yt.isWindows(n))=>(t instanceof RegExp?t:en.makeRe(t,n)).test(Qt.basename(e)),en.isMatch=(e,t,n)=>en(t,n)(e),en.parse=(e,t)=>Array.isArray(e)?e.map((e=>en.parse(e,t))):Vt(e,{...t,fastpaths:!1}),en.scan=(e,t)=>zt(e,t),en.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;const o=t||{},s=o.contains?"":"^",i=o.contains?"":"$";let a=`${s}(?:${e.output})${i}`;e&&!0===e.negated&&(a=`^(?!${a}).*$`);const l=en.toRegex(a,t);return!0===r&&(l.state=e),l},en.makeRe=(e,t={},n=!1,r=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(o.output=Vt.fastpaths(e,t)),o.output||(o=Vt(e,t)),en.compileRe(o,t,n,r)},en.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},en.constants=Zt;const tn=r,nn=it,rn=en,on=at,sn=e=>""===e||"./"===e,an=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let r=new Set,o=new Set,s=new Set,i=0,a=e=>{s.add(e.output),n&&n.onResult&&n.onResult(e)};for(let s=0;s<t.length;s++){let l=rn(String(t[s]),{...n,onResult:a},!0),c=l.state.negated||l.state.negatedExtglob;c&&i++;for(let t of e){let e=l(t,!0);(c?!e.isMatch:e.isMatch)&&(c?r.add(e.output):(r.delete(e.output),o.add(e.output)))}}let l=(i===t.length?[...s]:[...o]).filter((e=>!r.has(e)));if(n&&0===l.length){if(!0===n.failglob)throw new Error(`No matches found for "${t.join(", ")}"`);if(!0===n.nonull||!0===n.nullglob)return n.unescape?t.map((e=>e.replace(/\\/g,""))):t}return l};an.match=an,an.matcher=(e,t)=>rn(e,t),an.any=an.isMatch=(e,t,n)=>rn(t,n)(e),an.not=(e,t,n={})=>{t=[].concat(t).map(String);let r=new Set,o=[],s=new Set(an(e,t,{...n,onResult:e=>{n.onResult&&n.onResult(e),o.push(e.output)}}));for(let e of o)s.has(e)||r.add(e);return[...r]},an.contains=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${tn.inspect(e)}"`);if(Array.isArray(t))return t.some((t=>an.contains(e,t,n)));if("string"==typeof t){if(sn(e)||sn(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return an.isMatch(e,t,{...n,contains:!0})},an.matchKeys=(e,t,n)=>{if(!on.isObject(e))throw new TypeError("Expected the first argument to be an object");let r=an(Object.keys(e),t,n),o={};for(let t of r)o[t]=e[t];return o},an.some=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=rn(String(e),n);if(r.some((e=>t(e))))return!0}return!1},an.every=(e,t,n)=>{let r=[].concat(e);for(let e of[].concat(t)){let t=rn(String(e),n);if(!r.every((e=>t(e))))return!1}return!0},an.all=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${tn.inspect(e)}"`);return[].concat(t).every((t=>rn(t,n)(e)))},an.capture=(e,t,n)=>{let r=on.isWindows(n),o=rn.makeRe(String(e),{...n,capture:!0}).exec(r?on.toPosixSlashes(t):t);if(o)return o.slice(1).map((e=>void 0===e?"":e))},an.makeRe=(...e)=>rn.makeRe(...e),an.scan=(...e)=>rn.scan(...e),an.parse=(e,t)=>{let n=[];for(let r of[].concat(e||[]))for(let e of nn(String(r),t))n.push(rn.parse(e,t));return n},an.braces=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return t&&!0===t.nobrace||!/\{.*\}/.test(e)?[e]:nn(e,t)},an.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return an.braces(e,{...t,expand:!0})};var ln=t,cn=e,un=function(e,t){if("string"!=typeof e||""===e)return!1;if(v(e))return!0;var n=E;return t&&!1===t.strict&&(n=x),n(e)},pn=function(e){return"~"===e.charAt(0)&&(e=z(e)),"@"===e.charAt(0)&&(e=Q.join(V,e.slice(1))),e},fn=function(e,t){return e&&"string"==typeof e?Y.existsSync(e)?Z.resolve(e):!0===(t=t||{}).nocase?function(e){e=Z.resolve(e);var t=function(e){var t={path:e,files:[]};try{return t.files=Y.readdirSync(e),t}catch(e){}try{return t.path=Z.dirname(e),t.files=Y.readdirSync(t.path),t}catch(e){}return null}(e);if(null===t)return null;if(t.path===e)return t.path;var n=e.toUpperCase(),r=t.files.length,o=-1;for(;++o<r;){var s=Z.resolve(t.path,t.files[o]);if(e===s||n===s)return s;var i=s.toUpperCase();if(e===i||n===i)return s}return null}(e):null:null},dn=an;function hn(e,t,n){for(var r,o=t.length,s=-1;++s<o;)if(r=un(t[s])?gn(e,t[s],n):mn(e,t[s],n))return r;var i=cn.dirname(e);return i===e?null:hn(i,t,n)}function gn(e,t,n){for(var r=dn.matcher(t,n),o=function(e){try{return ln.readdirSync(e)}catch(e){}return[]}(e),s=o.length,i=-1;++i<s;){var a=o[i],l=cn.join(e,a);if(r(a)||r(l))return l}return null}function mn(e,t,n){var r=cn.resolve(e,t);return fn(r,n)}var yn,bn,vn,An,En,xn,Rn,Cn,_n=h((function(e,t){t=t||{};var n=cn.resolve(pn(t.cwd||""));if("string"==typeof e)return hn(n,[e],t);if(!Array.isArray(e))throw new TypeError("findup-sync expects a string or array as the first argument.");return hn(n,e,t)})),Sn={exports:{}};function wn(){if(An)return vn;An=1;const e=bn?yn:(bn=1,yn={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),t={};for(const n of Object.keys(e))t[e[n]]=n;const n={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};vn=n;for(const e of Object.keys(n)){if(!("channels"in n[e]))throw new Error("missing channels property: "+e);if(!("labels"in n[e]))throw new Error("missing channel labels property: "+e);if(n[e].labels.length!==n[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=n[e];delete n[e].channels,delete n[e].labels,Object.defineProperty(n[e],"channels",{value:t}),Object.defineProperty(n[e],"labels",{value:r})}return n.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),s=Math.max(t,n,r),i=s-o;let a,l;s===o?a=0:t===s?a=(n-r)/i:n===s?a=2+(r-t)/i:r===s&&(a=4+(t-n)/i),a=Math.min(60*a,360),a<0&&(a+=360);const c=(o+s)/2;return l=s===o?0:c<=.5?i/(s+o):i/(2-s-o),[a,100*l,100*c]},n.rgb.hsv=function(e){let t,n,r,o,s;const i=e[0]/255,a=e[1]/255,l=e[2]/255,c=Math.max(i,a,l),u=c-Math.min(i,a,l),p=function(e){return(c-e)/6/u+.5};return 0===u?(o=0,s=0):(s=u/c,t=p(i),n=p(a),r=p(l),i===c?o=r-n:a===c?o=1/3+t-r:l===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*s,100*c]},n.rgb.hwb=function(e){const t=e[0],r=e[1];let o=e[2];const s=n.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,o));return o=1-1/255*Math.max(t,Math.max(r,o)),[s,100*i,100*o]},n.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},n.rgb.keyword=function(n){const r=t[n];if(r)return r;let o,s=1/0;for(const t of Object.keys(e)){const r=e[t],l=(a=r,((i=n)[0]-a[0])**2+(i[1]-a[1])**2+(i[2]-a[2])**2);l<s&&(s=l,o=t)}var i,a;return o},n.keyword.rgb=function(t){return e[t]},n.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},n.rgb.lab=function(e){const t=n.rgb.xyz(e);let r=t[0],o=t[1],s=t[2];r/=95.047,o/=100,s/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;return[116*o-16,500*(r-o),200*(o-s)]},n.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,s,i;if(0===n)return i=255*r,[i,i,i];o=r<.5?r*(1+n):r+n-r*n;const a=2*r-o,l=[0,0,0];for(let e=0;e<3;e++)s=t+1/3*-(e-1),s<0&&s++,s>1&&s--,i=6*s<1?a+6*(o-a)*s:2*s<1?o:3*s<2?a+(o-a)*(2/3-s)*6:a,l[e]=255*i;return l},n.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const s=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=s<=1?s:2-s;return[t,100*(0===r?2*o/(s+o):2*n/(r+n)),100*((r+n)/2)]},n.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,s=t-Math.floor(t),i=255*r*(1-n),a=255*r*(1-n*s),l=255*r*(1-n*(1-s));switch(r*=255,o){case 0:return[r,l,i];case 1:return[a,r,i];case 2:return[i,r,l];case 3:return[i,a,r];case 4:return[l,i,r];case 5:return[r,i,a]}},n.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let s,i;i=(2-n)*r;const a=(2-n)*o;return s=n*o,s/=a<=1?a:2-a,s=s||0,i/=2,[t,100*s,100*i]},n.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let s;o>1&&(n/=o,r/=o);const i=Math.floor(6*t),a=1-r;s=6*t-i,0!=(1&i)&&(s=1-s);const l=n+s*(a-n);let c,u,p;switch(i){default:case 6:case 0:c=a,u=l,p=n;break;case 1:c=l,u=a,p=n;break;case 2:c=n,u=a,p=l;break;case 3:c=n,u=l,p=a;break;case 4:c=l,u=n,p=a;break;case 5:c=a,u=n,p=l}return[255*c,255*u,255*p]},n.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},n.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,s,i;return o=3.2406*t+-1.5372*n+-.4986*r,s=-.9689*t+1.8758*n+.0415*r,i=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),i=Math.min(Math.max(0,i),1),[255*o,255*s,255*i]},n.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*n-16,500*(t-n),200*(n-r)]},n.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,s=t**3,i=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},n.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(n*n+r*r),o]},n.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},n.rgb.ansi16=function(e,t=null){const[r,o,s]=e;let i=null===t?n.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),0===i)return 30;let a=30+(Math.round(s/255)<<2|Math.round(o/255)<<1|Math.round(r/255));return 2===i&&(a+=60),a},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},n.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},n.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},n.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},n.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),s=Math.min(Math.min(t,n),r),i=o-s;let a,l;return a=i<1?s/(1-i):0,l=i<=0?0:o===t?(n-r)/i%6:o===n?2+(r-t)/i:4+(t-n)/i,l/=6,l%=1,[360*l,100*i,100*a]},n.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},n.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},n.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],s=t%1*6,i=s%1,a=1-i;let l=0;switch(Math.floor(s)){case 0:o[0]=1,o[1]=i,o[2]=0;break;case 1:o[0]=a,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=i;break;case 3:o[0]=0,o[1]=a,o[2]=1;break;case 4:o[0]=i,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=a}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},n.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},n.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},n.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},n.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=function(e){return[0,0,e[0]]},n.gray.hsv=n.gray.hsl,n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]},vn}function Tn(){if(xn)return En;xn=1;const e=wn();function t(t){const n=function(){const t={},n=Object.keys(e);for(let e=n.length,r=0;r<e;r++)t[n[r]]={distance:-1,parent:null};return t}(),r=[t];for(n[t].distance=0;r.length;){const t=r.pop(),o=Object.keys(e[t]);for(let e=o.length,s=0;s<e;s++){const e=o[s],i=n[e];-1===i.distance&&(i.distance=n[t].distance+1,i.parent=t,r.unshift(e))}}return n}function n(e,t){return function(n){return t(e(n))}}function r(t,r){const o=[r[t].parent,t];let s=e[r[t].parent][t],i=r[t].parent;for(;r[i].parent;)o.unshift(r[i].parent),s=n(e[r[i].parent][i],s),i=r[i].parent;return s.conversion=o,s}return En=function(e){const n=t(e),o={},s=Object.keys(n);for(let e=s.length,t=0;t<e;t++){const e=s[t];null!==n[e].parent&&(o[e]=r(e,n))}return o}}function On(){if(Cn)return Rn;Cn=1;const e=wn(),t=Tn(),n={};return Object.keys(e).forEach((r=>{n[r]={},Object.defineProperty(n[r],"channels",{value:e[r].channels}),Object.defineProperty(n[r],"labels",{value:e[r].labels});const o=t(r);Object.keys(o).forEach((e=>{const t=o[e];n[r][e]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,t=0;t<e;t++)r[t]=Math.round(r[t]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}(t),n[r][e].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(t)}))})),Rn=n}!function(e){const t=(e,t)=>(...n)=>`[${e(...n)+t}m`,n=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`},r=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`},o=e=>e,s=(e,t,n)=>[e,t,n],i=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let a;const l=(e,t,n,r)=>{void 0===a&&(a=On());const o=r?10:0,s={};for(const[r,i]of Object.entries(a)){const a="ansi16"===r?"ansi":r;r===t?s[a]=e(n,o):"object"==typeof i&&(s[a]=e(i[t],o))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(const[t,n]of Object.entries(a)){for(const[t,r]of Object.entries(n))a[t]={open:`[${r[0]}m`,close:`[${r[1]}m`},n[t]=a[t],e.set(r[0],r[1]);Object.defineProperty(a,t,{value:n,enumerable:!1})}return Object.defineProperty(a,"codes",{value:e,enumerable:!1}),a.color.close="",a.bgColor.close="",i(a.color,"ansi",(()=>l(t,"ansi16",o,!1))),i(a.color,"ansi256",(()=>l(n,"ansi256",o,!1))),i(a.color,"ansi16m",(()=>l(r,"rgb",s,!1))),i(a.bgColor,"ansi",(()=>l(t,"ansi16",o,!0))),i(a.bgColor,"ansi256",(()=>l(n,"ansi256",o,!0))),i(a.bgColor,"ansi16m",(()=>l(r,"rgb",s,!0))),a}})}(Sn);var $n=Sn.exports;const In=n,kn=o,Ln=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(-1===o||r<o)},{env:Hn}=process;let Pn;function Mn(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Nn(e,t){if(0===Pn)return 0;if(Ln("color=16m")||Ln("color=full")||Ln("color=truecolor"))return 3;if(Ln("color=256"))return 2;if(e&&!t&&void 0===Pn)return 0;const n=Pn||0;if("dumb"===Hn.TERM)return n;if("win32"===process.platform){const e=In.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Hn)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in Hn))||"codeship"===Hn.CI_NAME?1:n;if("TEAMCITY_VERSION"in Hn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Hn.TEAMCITY_VERSION)?1:0;if("truecolor"===Hn.COLORTERM)return 3;if("TERM_PROGRAM"in Hn){const e=parseInt((Hn.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Hn.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Hn.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Hn.TERM)||"COLORTERM"in Hn?1:n}Ln("no-color")||Ln("no-colors")||Ln("color=false")||Ln("color=never")?Pn=0:(Ln("color")||Ln("colors")||Ln("color=true")||Ln("color=always"))&&(Pn=1),"FORCE_COLOR"in Hn&&(Pn="true"===Hn.FORCE_COLOR?1:"false"===Hn.FORCE_COLOR?0:0===Hn.FORCE_COLOR.length?1:Math.min(parseInt(Hn.FORCE_COLOR,10),3));var Bn={supportsColor:function(e){return Mn(Nn(e,e&&e.isTTY))},stdout:Mn(Nn(!0,kn.isatty(1))),stderr:Mn(Nn(!0,kn.isatty(2)))};var Gn,Dn,jn={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const o=t.length;let s=0,i="";do{i+=e.substr(s,r-s)+t+n,s=r+o,r=e.indexOf(t,s)}while(-1!==r);return i+=e.substr(s),i},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let o=0,s="";do{const i="\r"===e[r-1];s+=e.substr(o,(i?r-1:r)-o)+t+(i?"\r\n":"\n")+n,o=r+1,r=e.indexOf("\n",o)}while(-1!==r);return s+=e.substr(o),s}};const Un=$n,{stdout:Fn,stderr:qn}=Bn,{stringReplaceAll:Kn,stringEncaseCRLFWithFirstIndex:Wn}=jn,{isArray:Jn}=Array,Xn=["ansi","ansi","ansi256","ansi16m"],Qn=Object.create(null);class zn{constructor(e){return Vn(e)}}const Vn=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=Fn?Fn.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>sr(t.template,...e),Object.setPrototypeOf(t,Yn.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=zn,t.template};function Yn(e){return Vn(e)}for(const[e,t]of Object.entries(Un))Qn[e]={get(){const n=nr(this,tr(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};Qn.visible={get(){const e=nr(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const Zn=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of Zn)Qn[e]={get(){const{level:t}=this;return function(...n){const r=tr(Un.color[Xn[t]][e](...n),Un.color.close,this._styler);return nr(this,r,this._isEmpty)}}};for(const e of Zn){Qn["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const r=tr(Un.bgColor[Xn[t]][e](...n),Un.bgColor.close,this._styler);return nr(this,r,this._isEmpty)}}}}const er=Object.defineProperties((()=>{}),{...Qn,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),tr=(e,t,n)=>{let r,o;return void 0===n?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},nr=(e,t,n)=>{const r=(...e)=>Jn(e[0])&&Jn(e[0].raw)?rr(r,sr(r,...e)):rr(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,er),r._generator=e,r._styler=t,r._isEmpty=n,r},rr=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:o}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=Kn(t,n.close,n.open),n=n.parent;const s=t.indexOf("\n");return-1!==s&&(t=Wn(t,o,r,s)),r+t+o};let or;const sr=(e,...t)=>{const[n]=t;if(!Jn(n)||!Jn(n.raw))return t.join(" ");const r=t.slice(1),o=[n.raw[0]];for(let e=1;e<n.length;e++)o.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]));return void 0===or&&(or=function(){if(Dn)return Gn;Dn=1;const e=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,t=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,r=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,o=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function s(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):o.get(e)||e}function i(e,t){const o=[],i=t.trim().split(/\s*,\s*/g);let a;for(const t of i){const i=Number(t);if(Number.isNaN(i)){if(!(a=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);o.push(a[2].replace(r,((e,t,n)=>t?s(t):n)))}else o.push(i)}return o}function a(e){t.lastIndex=0;const n=[];let r;for(;null!==(r=t.exec(e));){const e=r[1];if(r[2]){const t=i(e,r[2]);n.push([e].concat(t))}else n.push([e])}return n}function l(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let r=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in r))throw new Error(`Unknown Chalk style: ${e}`);r=t.length>0?r[e](...t):r[e]}return r}return Gn=(t,n)=>{const r=[],o=[];let i=[];if(n.replace(e,((e,n,c,u,p,f)=>{if(n)i.push(s(n));else if(u){const e=i.join("");i=[],o.push(0===r.length?e:l(t,r)(e)),r.push({inverse:c,styles:a(u)})}else if(p){if(0===r.length)throw new Error("Found extraneous } in Chalk template literal");o.push(l(t,r)(i.join(""))),i=[],r.pop()}else i.push(f)})),o.push(i.join("")),r.length>0){const e=`Chalk template literal is missing ${r.length} closing bracket${1===r.length?"":"s"} (\`}\`)`;throw new Error(e)}return o.join("")},Gn}()),or(e,o.join(""))};Object.defineProperties(Yn.prototype,Qn);const ir=Yn();ir.supportsColor=Fn,ir.stderr=Yn({level:qn?qn.level:0}),ir.stderr.supportsColor=qn;var ar=h(ir),lr={exports:{}},cr={exports:{}};const ur="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,pr=e,fr=ur?";":":",dr=W,hr=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),gr=(e,t)=>{const n=t.colon||fr,r=e.match(/\//)||ur&&e.match(/\\/)?[""]:[...ur?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)],o=ur?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=ur?o.split(n):[""];return ur&&-1!==e.indexOf(".")&&""!==s[0]&&s.unshift(""),{pathEnv:r,pathExt:s,pathExtExe:o}},mr=(e,t,n)=>{"function"==typeof t&&(n=t,t={}),t||(t={});const{pathEnv:r,pathExt:o,pathExtExe:s}=gr(e,t),i=[],a=n=>new Promise(((o,s)=>{if(n===r.length)return t.all&&i.length?o(i):s(hr(e));const a=r[n],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=pr.join(c,e),p=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(l(p,n,0))})),l=(e,n,r)=>new Promise(((c,u)=>{if(r===o.length)return c(a(n+1));const p=o[r];dr(e+p,{pathExt:s},((o,s)=>{if(!o&&s){if(!t.all)return c(e+p);i.push(e+p)}return c(l(e,n,r+1))}))}));return n?a(0).then((e=>n(null,e)),n):a(0)};var yr=mr;mr.sync=(e,t)=>{t=t||{};const{pathEnv:n,pathExt:r,pathExtExe:o}=gr(e,t),s=[];for(let i=0;i<n.length;i++){const a=n[i],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=pr.join(l,e),u=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let e=0;e<r.length;e++){const n=u+r[e];try{if(dr.sync(n,{pathExt:o})){if(!t.all)return n;s.push(n)}}catch(e){}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw hr(e)};var br={exports:{}};const vr=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};br.exports=vr,br.exports.default=vr;var Ar=br.exports;const Er=e,xr=yr,Rr=Ar;function Cr(e,t){const n=e.options.env||process.env,r=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}let i;try{i=xr.sync(e.command,{path:n[Rr({env:n})],pathExt:t?Er.delimiter:void 0})}catch(e){}finally{s&&process.chdir(r)}return i&&(i=Er.resolve(o?e.options.cwd:"",i)),i}var _r=function(e){return Cr(e)||Cr(e,!0)},Sr={};const wr=/([()\][%!^"`<>&|;, *?])/g;Sr.command=function(e){return e=e.replace(wr,"^$1")},Sr.argument=function(e,t){return e=(e=`"${e=(e=(e=`${e}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(wr,"^$1"),t&&(e=e.replace(wr,"^$1")),e};const Tr=/^#!(.*)/;const Or=t,$r=(e="")=>{const t=e.match(Tr);if(!t)return null;const[n,r]=t[0].replace(/#! ?/,"").split(" "),o=n.split("/").pop();return"env"===o?r:r?`${o} ${r}`:o};var Ir=function(e){const t=Buffer.alloc(150);let n;try{n=Or.openSync(e,"r"),Or.readSync(n,t,0,150,0),Or.closeSync(n)}catch(e){}return $r(t.toString())};const kr=e,Lr=_r,Hr=Sr,Pr=Ir,Mr="win32"===process.platform,Nr=/\.(?:com|exe)$/i,Br=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Gr(e){if(!Mr)return e;const t=function(e){e.file=Lr(e);const t=e.file&&Pr(e.file);return t?(e.args.unshift(e.file),e.command=t,Lr(e)):e.file}(e),n=!Nr.test(t);if(e.options.forceShell||n){const n=Br.test(t);e.command=kr.normalize(e.command),e.command=Hr.command(e.command),e.args=e.args.map((e=>Hr.argument(e,n)));const r=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${r}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}var Dr=function(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null);const r={command:e,args:t=t?t.slice(0):[],options:n=Object.assign({},n),file:void 0,original:{command:e,args:t}};return n.shell?r:Gr(r)};const jr="win32"===process.platform;function Ur(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function Fr(e,t){return jr&&1===e&&!t.file?Ur(t.original,"spawn"):null}var qr={hookChildProcess:function(e,t){if(!jr)return;const n=e.emit;e.emit=function(r,o){if("exit"===r){const r=Fr(o,t);if(r)return n.call(e,"error",r)}return n.apply(e,arguments)}},verifyENOENT:Fr,verifyENOENTSync:function(e,t){return jr&&1===e&&!t.file?Ur(t.original,"spawnSync"):null},notFoundError:Ur};const Kr=s,Wr=Dr,Jr=qr;function Xr(e,t,n){const r=Wr(e,t,n),o=Kr.spawn(r.command,r.args,r.options);return Jr.hookChildProcess(o,r),o}cr.exports=Xr,cr.exports.spawn=Xr,cr.exports.sync=function(e,t,n){const r=Wr(e,t,n),o=Kr.spawnSync(r.command,r.args,r.options);return o.error=o.error||Jr.verifyENOENTSync(o.status,r),o},cr.exports._parse=Wr,cr.exports._enoent=Jr;var Qr=cr.exports,zr={exports:{}};!function(t){const n=e,r=Ar,o=e=>{let t;e={cwd:process.cwd(),path:process.env[r()],execPath:process.execPath,...e};let o=n.resolve(e.cwd);const s=[];for(;t!==o;)s.push(n.join(o,"node_modules/.bin")),t=o,o=n.resolve(o,"..");const i=n.resolve(e.cwd,e.execPath,"..");return s.push(i),s.concat(e.path).join(n.delimiter)};t.exports=o,t.exports.default=o,t.exports.env=e=>{const n={...(e={env:process.env,...e}).env},o=r({env:n});return e.path=n[o],n[o]=t.exports(e),n}}(zr);var Vr=zr.exports,Yr={exports:{}},Zr={exports:{}};const eo=(e,t)=>{for(const n of Reflect.ownKeys(t))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));return e};Zr.exports=eo,Zr.exports.default=eo;const to=Zr.exports,no=new WeakMap,ro=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,r=0;const o=e.displayName||e.name||"<anonymous>",s=function(...i){if(no.set(s,++r),1===r)n=e.apply(this,i),e=null;else if(!0===t.throw)throw new Error(`Function \`${o}\` can only be called once`);return n};return to(s,e),no.set(s,r),s};Yr.exports=ro,Yr.exports.default=ro,Yr.exports.callCount=e=>{if(!no.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return no.get(e)};var oo=Yr.exports,so={},io={},ao={};Object.defineProperty(ao,"__esModule",{value:!0}),ao.SIGNALS=void 0;ao.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var lo={};Object.defineProperty(lo,"__esModule",{value:!0}),lo.SIGRTMAX=lo.getRealtimeSignals=void 0;lo.getRealtimeSignals=function(){const e=po-uo+1;return Array.from({length:e},co)};const co=function(e,t){return{name:`SIGRT${t+1}`,number:uo+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},uo=34,po=64;lo.SIGRTMAX=po,Object.defineProperty(io,"__esModule",{value:!0}),io.getSignals=void 0;var fo=n,ho=ao,go=lo;io.getSignals=function(){const e=(0,go.getRealtimeSignals)();return[...ho.SIGNALS,...e].map(mo)};const mo=function({name:e,number:t,description:n,action:r,forced:o=!1,standard:s}){const{signals:{[e]:i}}=fo.constants,a=void 0!==i;return{name:e,number:a?i:t,description:n,supported:a,action:r,forced:o,standard:s}};Object.defineProperty(so,"__esModule",{value:!0}),so.signalsByNumber=so.signalsByName=void 0;var yo=n,bo=io,vo=lo;const Ao=function(e,{name:t,number:n,description:r,supported:o,action:s,forced:i,standard:a}){return{...e,[t]:{name:t,number:n,description:r,supported:o,action:s,forced:i,standard:a}}},Eo=(0,bo.getSignals)().reduce(Ao,{});so.signalsByName=Eo;const xo=function(e,t){const n=Ro(e,t);if(void 0===n)return{};const{name:r,description:o,supported:s,action:i,forced:a,standard:l}=n;return{[e]:{name:r,number:e,description:o,supported:s,action:i,forced:a,standard:l}}},Ro=function(e,t){const n=t.find((({name:t})=>yo.constants.signals[t]===e));return void 0!==n?n:t.find((t=>t.number===e))},Co=function(){const e=(0,bo.getSignals)(),t=vo.SIGRTMAX+1,n=Array.from({length:t},((t,n)=>xo(n,e)));return Object.assign({},...n)}();so.signalsByNumber=Co;const{signalsByName:_o}=so;var So=({stdout:e,stderr:t,all:n,error:r,signal:o,exitCode:s,command:i,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{s=null===s?void 0:s;const f=void 0===(o=null===o?void 0:o)?void 0:_o[o].description,d=(({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:o,exitCode:s,isCanceled:i})=>e?`timed out after ${t} milliseconds`:i?"was canceled":void 0!==n?`failed with ${n}`:void 0!==r?`was killed with ${r} (${o})`:void 0!==s?`failed with exit code ${s}`:"failed")({timedOut:l,timeout:p,errorCode:r&&r.code,signal:o,signalDescription:f,exitCode:s,isCanceled:c}),h=`Command ${d}: ${i}`,g="[object Error]"===Object.prototype.toString.call(r),m=g?`${h}\n${r.message}`:h,y=[m,t,e].filter(Boolean).join("\n");return g?(r.originalMessage=r.message,r.message=y):r=new Error(y),r.shortMessage=m,r.command=i,r.escapedCommand=a,r.exitCode=s,r.signal=o,r.signalDescription=f,r.stdout=e,r.stderr=t,void 0!==n&&(r.all=n),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=Boolean(l),r.isCanceled=c,r.killed=u&&!l,r},wo={exports:{}};const To=["stdin","stdout","stderr"],Oo=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return To.map((t=>e[t]));if((e=>To.some((t=>void 0!==e[t])))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${To.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);const n=Math.max(t.length,To.length);return Array.from({length:n},((e,n)=>t[n]))};wo.exports=Oo,wo.exports.node=e=>{const t=Oo(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var $o,Io=wo.exports,ko={exports:{}},Lo={exports:{}};var Ho=d.process;const Po=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(Po(Ho)){var Mo,No=i,Bo=($o||($o=1,function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(Lo)),Lo.exports),Go=/^win/i.test(Ho.platform),Do=a;"function"!=typeof Do&&(Do=Do.EventEmitter),Ho.__signal_exit_emitter__?Mo=Ho.__signal_exit_emitter__:((Mo=Ho.__signal_exit_emitter__=new Do).count=0,Mo.emitted={}),Mo.infinite||(Mo.setMaxListeners(1/0),Mo.infinite=!0),ko.exports=function(e,t){if(!Po(d.process))return function(){};No.equal(typeof e,"function","a callback must be provided for exit handler"),!1===qo&&Ko();var n="exit";t&&t.alwaysLast&&(n="afterexit");return Mo.on(n,e),function(){Mo.removeListener(n,e),0===Mo.listeners("exit").length&&0===Mo.listeners("afterexit").length&&jo()}};var jo=function(){qo&&Po(d.process)&&(qo=!1,Bo.forEach((function(e){try{Ho.removeListener(e,Fo[e])}catch(e){}})),Ho.emit=Xo,Ho.reallyExit=Wo,Mo.count-=1)};ko.exports.unload=jo;var Uo=function(e,t,n){Mo.emitted[e]||(Mo.emitted[e]=!0,Mo.emit(e,t,n))},Fo={};Bo.forEach((function(e){Fo[e]=function(){Po(d.process)&&(Ho.listeners(e).length===Mo.count&&(jo(),Uo("exit",null,e),Uo("afterexit",null,e),Go&&"SIGHUP"===e&&(e="SIGINT"),Ho.kill(Ho.pid,e)))}})),ko.exports.signals=function(){return Bo};var qo=!1,Ko=function(){!qo&&Po(d.process)&&(qo=!0,Mo.count+=1,Bo=Bo.filter((function(e){try{return Ho.on(e,Fo[e]),!0}catch(e){return!1}})),Ho.emit=Qo,Ho.reallyExit=Jo)};ko.exports.load=Ko;var Wo=Ho.reallyExit,Jo=function(e){Po(d.process)&&(Ho.exitCode=e||0,Uo("exit",Ho.exitCode,null),Uo("afterexit",Ho.exitCode,null),Wo.call(Ho,Ho.exitCode))},Xo=Ho.emit,Qo=function(e,t){if("exit"===e&&Po(d.process)){void 0!==t&&(Ho.exitCode=t);var n=Xo.apply(this,arguments);return Uo("exit",Ho.exitCode,null),Uo("afterexit",Ho.exitCode,null),n}return Xo.apply(this,arguments)}}else ko.exports=function(){return function(){}};var zo=ko.exports;const Vo=n,Yo=zo,Zo=(e,t,n,r)=>{if(!es(t,n,r))return;const o=ns(n),s=setTimeout((()=>{e("SIGKILL")}),o);s.unref&&s.unref()},es=(e,{forceKillAfterTimeout:t},n)=>ts(e)&&!1!==t&&n,ts=e=>e===Vo.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),ns=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e};var rs={spawnedKill:(e,t="SIGTERM",n={})=>{const r=e(t);return Zo(e,t,n,r),r},spawnedCancel:(e,t)=>{e.kill()&&(t.isCanceled=!0)},setupTimeout:(e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(0===t||void 0===t)return r;let o;const s=new Promise(((r,s)=>{o=setTimeout((()=>{((e,t,n)=>{e.kill(t),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))})(e,n,s)}),t)})),i=r.finally((()=>{clearTimeout(o)}));return Promise.race([s,i])},validateTimeout:({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},setExitHandler:async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;const o=Yo((()=>{e.kill()}));return r.finally((()=>{o()}))}};const os=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;os.writable=e=>os(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,os.readable=e=>os(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,os.duplex=e=>os.writable(e)&&os.readable(e),os.transform=e=>os.duplex(e)&&"function"==typeof e._transform;var ss=os,is={exports:{}};const{PassThrough:as}=c;const{constants:ls}=l,cs=c,{promisify:us}=r,ps=e=>{e={...e};const{array:t}=e;let{encoding:n}=e;const r="buffer"===n;let o=!1;t?o=!(n||r):n=n||"utf8",r&&(n=null);const s=new as({objectMode:o});n&&s.setEncoding(n);let i=0;const a=[];return s.on("data",(e=>{a.push(e),o?i=a.length:i+=e.length})),s.getBufferedValue=()=>t?a:r?Buffer.concat(a,i):a.join(""),s.getBufferedLength=()=>i,s},fs=us(cs.pipeline);class ds extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function hs(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:n}=t,r=ps(t);return await new Promise(((t,o)=>{const s=e=>{e&&r.getBufferedLength()<=ls.MAX_LENGTH&&(e.bufferedData=r.getBufferedValue()),o(e)};(async()=>{try{await fs(e,r),t()}catch(e){s(e)}})(),r.on("data",(()=>{r.getBufferedLength()>n&&s(new ds)}))})),r.getBufferedValue()}is.exports=hs,is.exports.buffer=(e,t)=>hs(e,{...t,encoding:"buffer"}),is.exports.array=(e,t)=>hs(e,{...t,array:!0}),is.exports.MaxBufferError=ds;var gs=is.exports;const{PassThrough:ms}=c;const ys=ss,bs=gs,vs=function(){var e=[],t=new ms({objectMode:!0});return t.setMaxListeners(0),t.add=n,t.isEmpty=function(){return 0==e.length},t.on("unpipe",r),Array.prototype.slice.call(arguments).forEach(n),t;function n(o){return Array.isArray(o)?(o.forEach(n),this):(e.push(o),o.once("end",r.bind(null,o)),o.once("error",t.emit.bind(t,"error")),o.pipe(t,{end:!1}),this)}function r(n){!(e=e.filter((function(e){return e!==n}))).length&&t.readable&&t.end()}},As=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},Es=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(e&&n)return t?bs(e,{encoding:t,maxBuffer:r}):bs.buffer(e,{maxBuffer:r})};var xs={handleInput:(e,t)=>{void 0!==t&&void 0!==e.stdin&&(ys(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream:(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const n=vs();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},getSpawnedResult:async({stdout:e,stderr:t,all:n},{encoding:r,buffer:o,maxBuffer:s},i)=>{const a=Es(e,{encoding:r,buffer:o,maxBuffer:s}),l=Es(t,{encoding:r,buffer:o,maxBuffer:s}),c=Es(n,{encoding:r,buffer:o,maxBuffer:2*s});try{return await Promise.all([i,a,l,c])}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},As(e,a),As(t,l),As(n,c)])}},validateInputSync:({input:e})=>{if(ys(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}};const Rs=(async()=>{})().constructor.prototype,Cs=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Rs,e)]));var _s={mergePromise:(e,t)=>{for(const[n,r]of Cs){const o="function"==typeof t?(...e)=>Reflect.apply(r.value,t(),e):r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:o})}return e},getSpawnedPromise:e=>new Promise(((t,n)=>{e.on("exit",((e,n)=>{t({exitCode:e,signal:n})})),e.on("error",(e=>{n(e)})),e.stdin&&e.stdin.on("error",(e=>{n(e)}))}))};const Ss=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],ws=/^[\w.-]+$/,Ts=/"/g,Os=/ +/g;var $s={joinCommand:(e,t)=>Ss(e,t).join(" "),getEscapedCommand:(e,t)=>Ss(e,t).map((e=>(e=>"string"!=typeof e||ws.test(e)?e:`"${e.replace(Ts,'\\"')}"`)(e))).join(" "),parseCommand:e=>{const t=[];for(const n of e.trim().split(Os)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t}};const Is=e,ks=s,Ls=Qr,Hs=e=>{const t="string"==typeof e?"\n":"\n".charCodeAt(),n="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===n&&(e=e.slice(0,e.length-1)),e},Ps=Vr,Ms=oo,Ns=So,Bs=Io,{spawnedKill:Gs,spawnedCancel:Ds,setupTimeout:js,validateTimeout:Us,setExitHandler:Fs}=rs,{handleInput:qs,getSpawnedResult:Ks,makeAllStream:Ws,validateInputSync:Js}=xs,{mergePromise:Xs,getSpawnedPromise:Qs}=_s,{joinCommand:zs,parseCommand:Vs,getEscapedCommand:Ys}=$s,Zs=(e,t,n={})=>{const r=Ls._parse(e,t,n);return e=r.command,t=r.args,(n={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(n=r.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...n}).env=(({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:o})=>{const s=t?{...process.env,...e}:e;return n?Ps.env({env:s,cwd:r,execPath:o}):s})(n),n.stdio=Bs(n),"win32"===process.platform&&"cmd"===Is.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},ei=(e,t,n)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?Hs(t):t:void 0===n?void 0:"",ti=(e,t,n)=>{const r=Zs(e,t,n),o=zs(e,t),s=Ys(e,t);let i;Us(r.options);try{i=ks.spawn(r.file,r.args,r.options)}catch(e){const t=new ks.ChildProcess,n=Promise.reject(Ns({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return Xs(t,n)}const a=Qs(i),l=js(i,r.options,a),c=Fs(i,r.options,l),u={isCanceled:!1};i.kill=Gs.bind(null,i.kill.bind(i)),i.cancel=Ds.bind(null,i,u);const p=Ms((async()=>{const[{error:e,exitCode:t,signal:n,timedOut:a},l,p,f]=await Ks(i,r.options,c),d=ei(r.options,l),h=ei(r.options,p),g=ei(r.options,f);if(e||0!==t||null!==n){const l=Ns({error:e,exitCode:t,signal:n,stdout:d,stderr:h,all:g,command:o,escapedCommand:s,parsed:r,timedOut:a,isCanceled:u.isCanceled,killed:i.killed});if(!r.options.reject)return l;throw l}return{command:o,escapedCommand:s,exitCode:0,stdout:d,stderr:h,all:g,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return qs(i,r.options.input),i.all=Ws(i,r.options),Xs(i,p)};function ni(e,t){return oi("blue",e,t)}function ri(e,t=""){return oi("red",e,t)}function oi(e,t,n=""){return n?console.log(ar[e](`${t}`),n):console.log(ar[e](`${t}`))}lr.exports=ti,lr.exports.sync=(e,t,n)=>{const r=Zs(e,t,n),o=zs(e,t),s=Ys(e,t);let i;Js(r.options);try{i=ks.spawnSync(r.file,r.args,r.options)}catch(e){throw Ns({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}const a=ei(r.options,i.stdout,i.error),l=ei(r.options,i.stderr,i.error);if(i.error||0!==i.status||null!==i.signal){const e=Ns({stdout:a,stderr:l,error:i.error,signal:i.signal,exitCode:i.status,command:o,escapedCommand:s,parsed:r,timedOut:i.error&&"ETIMEDOUT"===i.error.code,isCanceled:!1,killed:null!==i.signal});if(!r.options.reject)return e;throw e}return{command:o,escapedCommand:s,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},lr.exports.command=(e,t)=>{const[n,...r]=Vs(e);return ti(n,r,t)},lr.exports.commandSync=(e,t)=>{const[n,...r]=Vs(e);return ti.sync(n,r,t)},lr.exports.node=(e,t,n={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(n=t,t=[]);const r=Bs.node(n),o=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:s=process.execPath,nodeOptions:i=o}=n;return ti(s,[...i,e,...Array.isArray(t)?t:[]],{...n,stdin:void 0,stdout:void 0,stderr:void 0,stdio:r,shell:!1})};var si=(e={})=>{const{name:t}=e;return`<template>\n <div class="app-container">\n <CoustomTable\n :queryFormJson="queryFormJson"\n :pageButtonsJson="pageButtonsJson"\n :tableJson="tableJson"\n :tableData="tableData"\n @onPageButton="handlerPageButton"\n @onButton="handlerButton"\n @onSearch="handlerSearch"\n @onTableRowClick="handlerTableRowClick"\n >\n </CoustomTable>\n\n <CoustomFormDialog\n ref="formDialog"\n :visible.sync="dialogVisible"\n :dialogJson="dialogJson"\n :initData="initFormData"\n @onSubmit="handlerSubmit"\n ></CoustomFormDialog>\n </div>\n</template>\n<script>\nimport CoustomTable from "@/components/CoustomTable";\nimport CoustomFormDialog from "@/components/CoustomFormDialog";\nimport { TableJson, QueryFormJson, PageButtonsJson, DialogJson } from "./constants";\nimport { \n getDevApiIotClassesList, \n postDevApiIotClasses, \n getDevApiIotClassesClassId, \n deleteDevApiIotClassesClassId,\n putDevApiIotClasses\n } from "@/api/iot/classes-controller.js";\n import {\n getDevApiIotPackagesList,\n} from "@/api/iot/packages-controller.js";\nexport default {\n name: '${t.toLowerCase().replace(/( |^)[a-z]/g,(e=>e.toUpperCase()))}',\n components: {\n CoustomTable,\n CoustomFormDialog\n },\n data() {\n return {\n queryFormJson: QueryFormJson,\n pageButtonsJson: PageButtonsJson,\n tableJson: TableJson,\n dialogJson: DialogJson,\n tableData: [],\n // 总条数\n total: 0,\n // 查询参数\n queryParams: {\n pageNum: 1,\n pageSize: 10,\n },\n dialogVisible: false,\n initFormData: {},\n }\n },\n created() {\n },\n mounted() {\n this.getList();\n },\n computed: {\n packageName() {\n const { query } = this.$route;\n return query.packageName\n }\n },\n methods: {\n async getPackageData() {\n try {\n const { rows = [] } = await getDevApiIotPackagesList();\n return rows.map(item => {\n return {\n value: item.packageCode,\n label: item.packageDispname,\n }\n })\n } catch (error) {\n return []\n }\n },\n\n async handlerSubmit(formData) {\n let params = {\n ...formData,\n packageName: this.packageName\n };\n let msgText = '新增';\n let func = postDevApiIotClasses;\n if (this.dialogJson.type === 'Edit') {\n params.classId = this.initFormData.classId;\n msgText = '编辑';\n func = putDevApiIotClasses;\n }\n try {\n const { code } = await func(params);\n if (code === 200) {\n this.dialogVisible = false;\n this.getList();\n this.$modal.msgSuccess(msgText + "成功");\n }\n this.$refs.formDialog.resetLoading();\n } catch (error) {\n // 接口调用失败重置 loading\n this.$refs.formDialog.resetLoading();\n }\n },\n\n /** 查询表集合 */\n getList(queryParams = {}) {\n this.loading = true;\n let queryData = {\n ...queryParams,\n ...this.queryParams,\n packageName: this.packageName\n }\n getDevApiIotClassesList(queryData).then(response => {\n this.tableData = response.rows;\n this.total = response.total;\n this.loading = false;\n });\n },\n\n handlerTableRowClick(item) {\n console.log('object :>>item ', item);\n this.$router.push({\n path: '/iot/packages/classes/detail',\n query: {\n classId: item.classId\n }\n })\n },\n\n // 搜索事件\n handlerSearch(searchParams) {\n this.queryParams = {\n pageNum: 1,\n pageSize: 10,\n },\n this.getList(searchParams);\n },\n\n //新增按钮事件\n async handlerPageButton(item) {\n const { type } = item;\n if (type === 'Add') {\n this.initFormData = {};\n this.dialogJson.type = 'Add';\n const packageData = await this.getPackageData()\n this.$set(this.dialogJson.formJson.formItemJson[0], 'option',packageData )\n console.log('object :>> ', this.dialogJson);\n this.dialogVisible = true;\n }\n\n if (type === 'Delete') {\n const tableIds = row.tableId || this.ids;\n this.$modal.confirm('是否确认删除表编号为"' + tableIds + '"的数据项?').then(function () {\n return delTable(tableIds);\n }).then(() => {\n this.getList();\n this.$modal.msgSuccess("删除成功");\n }).catch(() => { });\n }\n },\n\n async getInfo(id) {\n const { code, data } = await getDevApiIotClassesClassId(id);\n if (code === 200) {\n\n this.initFormData = data;\n this.dialogJson.type = 'Edit';\n this.dialogVisible = true;\n }\n },\n\n deleteItem(id) {\n this.$modal.confirm('是否确认删除该数据项?').then(function () {\n return deleteDevApiIotClassesClassId(id);\n }).then(() => {\n this.getList();\n this.$modal.msgSuccess("删除成功");\n }).catch(() => { });\n },\n\n handlerButton(btnItem) {\n const { row, item } = btnItem;\n const { type } = item;\n if (type === 'Edit') {\n this.getInfo(row.classId);\n }\n\n if (type === 'Delete') {\n this.deleteItem(row.classId);\n }\n },\n },\n}\n<\/script>\n<style scoped lang='scss'></style>`},ii=()=>'export const QueryFormJson = {\n formOption: {\n inline: true,\n labelWidth: "100px",\n size: \'small\',\n },\n formItemJson: [\n {\n label: "类中文名称",\n prop: "classDispname",\n type: "Input",\n isEnter: true,\n options: {\n clearable: true,\n placeholder: \'请输入类名称\',\n }\n }\n ],\n buttonJson: {\n type: \'Search\',\n list: [\n {\n label: "搜索",\n type: \'Query\',\n options: {\n icon: "el-icon-search",\n size: "mini",\n type: "primary"\n }\n },\n {\n label: "重置",\n type: \'Reset\',\n options: {\n icon: "el-icon-refresh",\n size: "mini",\n }\n },\n ]\n\n }\n}\n\nexport const PageButtonsJson = {\n rowJson: {\n gutter: 10,\n },\n buttonList: [\n {\n span: 1.5,\n label: \'新增\',\n permi: \'\',\n type: \'Add\',\n options: [\n {\n icon: "el-icon-plus",\n plain: true,\n size: "mini",\n type: "primary",\n },\n \n ]\n }\n ]\n}\n\nexport const TableJson = {\n columnJson: {\n showSelect: false,\n showIndex: true,\n data: [\n {\n type: "index",\n width: "55",\n align: "left",\n headerAlign: "left",\n label: "序号" \n },\n {\n align: "left",\n headerAlign: "left",\n label: "类中文名称",\n prop: "classDispname",\n showOverflowTooltip: true,\n isLink: true,\n },\n {\n align: "left",\n headerAlign: "left",\n label: "类英文名称",\n prop: "classCode",\n showOverflowTooltip: true,\n },\n {\n align: "left",\n headerAlign: "left",\n label: "类类型",\n prop: "classesType",\n showOverflowTooltip: true,\n },\n {\n align: "left",\n headerAlign: "left",\n label: "访问类型",\n prop: "accessType",\n showOverflowTooltip: true,\n },\n {\n align: "left",\n headerAlign: "left",\n label: "实例存储表名称",\n prop: "delFlag",\n showOverflowTooltip: true,\n },\n {\n align: "left",\n headerAlign: "left",\n label: "备注",\n prop: "remark",\n showOverflowTooltip: true,\n },\n {\n align: "left",\n headerAlign: "left",\n label: "创建时间",\n prop: "createTime",\n showOverflowTooltip: true,\n },\n {\n align: "center",\n headerAlign: "center",\n label: "操作",\n type: "func",\n buttonList: [\n {\n label: "编辑",\n type: \'Edit\',\n permi: \'\',\n options: {\n icon: "el-icon-edit",\n size: "mini",\n type: "text",\n }\n },\n {\n label: "删除",\n type: \'Delete\',\n permi: \'\',\n options: {\n icon: "el-icon-delete",\n size: "mini",\n type: "text",\n }\n },\n ],\n },\n ],\n },\n};\n\nexport const DialogJson = {\n type: \'Add\',\n title: "类",\n options: {\n width: "600px",\n appendToBody: true,\n destroyOnClose: true,\n closeOnClickModal: false,\n },\n buttonList: [\n {\n label: "确定",\n type: \'Ok\',\n permi: \'\',\n options: {\n type: "primary",\n }\n },\n {\n label: "取消",\n type: \'Cancel\',\n permi: \'\',\n options: {\n type: "",\n }\n },\n ],\n formJson: {\n // 表单设置\n formOption: {\n inline: false,\n labelWidth: "120px",\n size: \'small\',\n },\n // 表单项\n formItemJson: [\n // {\n // label: "包编码",\n // prop: "packageCode",\n // type: "Select",\n // rules: [{ required: true, message: "请选择包编码", trigger: "change" }],\n // options: {\n // clearable: true,\n // placeholder: "请选择包编码",\n // },\n // option: [],\n // },\n {\n label: "类中文名称",\n prop: "classDispname",\n type: "Input",\n rules: [\n { required: true, message: \'请输入类中文名称\', trigger: \'blur\' },\n ],\n options: {\n clearable: true,\n placeholder: \'请输入类中文名称\',\n }\n },\n {\n label: "类英文名称",\n prop: "className",\n type: "Input",\n rules: [\n { required: true, message: \'请输入类英文名称\', trigger: \'blur\' },\n {\n required: true,\n validator: (rule, value, callback) => {\n const reg = /^[a-zA-Z]{1}w*$/;\n if (!reg.test(value)) {\n callback(\n new Error(\n "请输入以字母(不区分大小写)、数字、下划线(_)随意组合的字符串"\n )\n );\n }\n callback();\n },\n trigger: ["blur"],\n },\n ],\n options: {\n clearable: true,\n placeholder: \'请输入类英文名称\',\n }\n },\n {\n label: "类类型",\n prop: "classesType",\n type: "Select",\n rules: [{ required: true, message: "请选择类类型", trigger: "change" }],\n options: {\n clearable: true,\n placeholder: "请选择类型",\n },\n option: [\n {\n value: \'继承\',\n label: \'继承\',\n },\n {\n value: \'虚类\',\n label: \'虚类\',\n },\n {\n value: \'实体类\',\n label: \'实体类\',\n },\n ],\n },\n {\n label: "继承父类code",\n prop: "classesExtends",\n type: "Input",\n rules: [\n { required: true, message: \'请输入继承父类code\', trigger: \'blur\' },\n ],\n options: {\n clearable: true,\n placeholder: \'请输入继承父类code\',\n }\n },\n {\n label: "访问类型",\n prop: "accessType",\n type: "Select",\n rules: [{ required: true, message: "请选择访问类型", trigger: "change" }],\n options: {\n clearable: true,\n placeholder: "请选择访问类型",\n },\n option: [\n {\n value: \'default\',\n label: \'default\',\n },\n {\n value: \'public\',\n label: \'public\',\n },\n {\n value: \'protected\',\n label: \'protected\',\n },\n {\n value: \'private\',\n label: \'private\',\n },\n ],\n },\n {\n label: "实例存储表名称",\n prop: "objTableName",\n type: "Input",\n rules: [\n { required: true, message: \'请输入实例存储表名称\', trigger: \'blur\' },\n ],\n options: {\n clearable: true,\n placeholder: \'请输入实例存储表名称\',\n }\n },\n {\n label: "视图样式",\n prop: "viewStyle",\n type: "Input",\n rules: [\n { required: false, message: \'请输入视图样式\', trigger: \'blur\' },\n ],\n options: {\n clearable: true,\n placeholder: \'请输入视图样式\',\n }\n },\n {\n label: "备注",\n prop: "remark",\n type: "Input",\n rules: [],\n options: {\n clearable: true,\n placeholder: \'请输入备注\',\n type: \'textarea\',\n row: 4\n }\n },\n ],\n }\n\n}',ai={isEnter:!0,name:"genPageTable",path:"dome",child:[{name:"index.vue",template:(e={})=>si({title:"pageTable",...e}),templateConfig:{}},{name:"constants.js",template:(e={})=>ii({title:"pageTable",...e}),templateConfig:{title:""}}]};const li=p.dirname(u.fileURLToPath("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__filename).href:"undefined"==typeof document?location.href:f&&f.src||new URL("index.browser.js",document.baseURI).href)),ci=(...t)=>e.resolve(li,...t);(async function(){return await async function(e){const t=_n("dyp.config.js",{cwd:process.env.PWD}),n=await import(t);return e?n.default[e]:n.default}("genPageConfig")})().then((e=>{const t=e||ai;var n;t||ri("全局模板未配置,使用默认配置"),(n=t).isEnter?(ni("请输入要生成的页面组件名称、会生成在 views/目录下"),process.stdin.on("data",(async e=>{const t=String(e).trim().toString();di(n,t),process.stdin.emit("end")})),process.stdin.on("end",(()=>{ni("exit"),process.exit()}))):di(n)}));const ui=(e,n)=>{t.existsSync(e)?ri(`${e}文件已存在`):t.writeFileSync(e,n,"utf8",(e=>{e?(ri(e.message),reject(e)):ci(!0)}))};function pi(e){return new Promise((t=>{fi(e,(function(){t(!0)}))}))}function fi(n,r){t.existsSync(n)?r():fi(e.dirname(n),(function(){t.mkdirSync(n),r()}))}async function di(e,n){const r=n||e.name,o=e.path?`${process.env.PWD}/src/views/${e.path}`:`${process.env.PWD}/src/views`,s=ci(o,r);if(t.existsSync(s))return ri(`${r}页面已存在`),void(r&&process.stdin.emit("end"));ni(`正在生成${r}目录 ${s}`),await pi(s);try{e.child.forEach((e=>{const t=ci(s,e.name);ni(`正在生成子文件${e.name} ${t}`),ui(t,e.template({name:r}))})),function(e,t=""){oi("green",e,t)}("生成成功")}catch(e){ri(e.message)}}}));