@hybridly/vite 0.9.0 → 0.10.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD-PARTY-LICENSES.md +184 -0
- package/dist/_chunks/libs/debug.mjs +517 -0
- package/dist/_chunks/libs/deepmerge.mjs +81 -0
- package/dist/_chunks/libs/is-plain-object.mjs +20 -0
- package/dist/_chunks/libs/lodash.clonedeep.mjs +484 -0
- package/dist/_chunks/rolldown-runtime.mjs +24 -0
- package/dist/index.d.mts +50 -84
- package/dist/index.mjs +503 -811
- package/package.json +63 -68
- package/LICENSE +0 -19
- package/dist/index.cjs +0 -994
- package/dist/index.d.cts +0 -93
- package/dist/index.d.ts +0 -93
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# Licenses of Bundled Dependencies
|
|
2
|
+
|
|
3
|
+
The published artifact additionally contains code with the following licenses:
|
|
4
|
+
MIT
|
|
5
|
+
|
|
6
|
+
# Bundled Dependencies
|
|
7
|
+
|
|
8
|
+
## @hybridly/utils
|
|
9
|
+
|
|
10
|
+
License: MIT
|
|
11
|
+
By: Enzo Innocenzi
|
|
12
|
+
Repository: https://github.com/hybridly/hybridly
|
|
13
|
+
|
|
14
|
+
---------------------------------------
|
|
15
|
+
|
|
16
|
+
## debug
|
|
17
|
+
|
|
18
|
+
License: MIT
|
|
19
|
+
By: Josh Junon, TJ Holowaychuk, Nathan Rajlich, Andrew Rhyne
|
|
20
|
+
Repository: https://github.com/debug-js/debug
|
|
21
|
+
|
|
22
|
+
> (The MIT License)
|
|
23
|
+
>
|
|
24
|
+
> Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
|
|
25
|
+
> Copyright (c) 2018-2021 Josh Junon
|
|
26
|
+
>
|
|
27
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
28
|
+
> and associated documentation files (the 'Software'), to deal in the Software without restriction,
|
|
29
|
+
> including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
30
|
+
> and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
31
|
+
> subject to the following conditions:
|
|
32
|
+
>
|
|
33
|
+
> The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
34
|
+
> portions of the Software.
|
|
35
|
+
>
|
|
36
|
+
> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
37
|
+
> LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
38
|
+
> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
39
|
+
> WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
40
|
+
> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
41
|
+
|
|
42
|
+
---------------------------------------
|
|
43
|
+
|
|
44
|
+
## deepmerge
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
47
|
+
Repository: https://github.com/TehShrike/deepmerge
|
|
48
|
+
|
|
49
|
+
> The MIT License (MIT)
|
|
50
|
+
>
|
|
51
|
+
> Copyright (c) 2012 James Halliday, Josh Duff, and other contributors
|
|
52
|
+
>
|
|
53
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
54
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
55
|
+
> in the Software without restriction, including without limitation the rights
|
|
56
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
57
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
58
|
+
> furnished to do so, subject to the following conditions:
|
|
59
|
+
>
|
|
60
|
+
> The above copyright notice and this permission notice shall be included in
|
|
61
|
+
> all copies or substantial portions of the Software.
|
|
62
|
+
>
|
|
63
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
64
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
65
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
66
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
67
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
68
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
69
|
+
> THE SOFTWARE.
|
|
70
|
+
|
|
71
|
+
---------------------------------------
|
|
72
|
+
|
|
73
|
+
## is-plain-object
|
|
74
|
+
|
|
75
|
+
License: MIT
|
|
76
|
+
By: Jon Schlinkert, Osman Nuri Okumuş, Steven Vachon, Bogdan Chadkin
|
|
77
|
+
Repository: https://github.com/jonschlinkert/is-plain-object
|
|
78
|
+
|
|
79
|
+
> The MIT License (MIT)
|
|
80
|
+
>
|
|
81
|
+
> Copyright (c) 2014-2017, Jon Schlinkert.
|
|
82
|
+
>
|
|
83
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
84
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
85
|
+
> in the Software without restriction, including without limitation the rights
|
|
86
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
87
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
88
|
+
> furnished to do so, subject to the following conditions:
|
|
89
|
+
>
|
|
90
|
+
> The above copyright notice and this permission notice shall be included in
|
|
91
|
+
> all copies or substantial portions of the Software.
|
|
92
|
+
>
|
|
93
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
94
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
95
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
96
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
97
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
98
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
99
|
+
> THE SOFTWARE.
|
|
100
|
+
|
|
101
|
+
---------------------------------------
|
|
102
|
+
|
|
103
|
+
## lodash.clonedeep
|
|
104
|
+
|
|
105
|
+
License: MIT
|
|
106
|
+
By: John-David Dalton, Blaine Bublitz, Mathias Bynens
|
|
107
|
+
Repository: https://github.com/lodash/lodash
|
|
108
|
+
|
|
109
|
+
> Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
110
|
+
>
|
|
111
|
+
> Based on Underscore.js, copyright Jeremy Ashkenas,
|
|
112
|
+
> DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
113
|
+
>
|
|
114
|
+
> This software consists of voluntary contributions made by many
|
|
115
|
+
> individuals. For exact contribution history, see the revision history
|
|
116
|
+
> available at https://github.com/lodash/lodash
|
|
117
|
+
>
|
|
118
|
+
> The following license applies to all parts of this software except as
|
|
119
|
+
> documented below:
|
|
120
|
+
>
|
|
121
|
+
> ====
|
|
122
|
+
>
|
|
123
|
+
> Permission is hereby granted, free of charge, to any person obtaining
|
|
124
|
+
> a copy of this software and associated documentation files (the
|
|
125
|
+
> "Software"), to deal in the Software without restriction, including
|
|
126
|
+
> without limitation the rights to use, copy, modify, merge, publish,
|
|
127
|
+
> distribute, sublicense, and/or sell copies of the Software, and to
|
|
128
|
+
> permit persons to whom the Software is furnished to do so, subject to
|
|
129
|
+
> the following conditions:
|
|
130
|
+
>
|
|
131
|
+
> The above copyright notice and this permission notice shall be
|
|
132
|
+
> included in all copies or substantial portions of the Software.
|
|
133
|
+
>
|
|
134
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
135
|
+
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
136
|
+
> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
137
|
+
> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
138
|
+
> LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
139
|
+
> OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
140
|
+
> WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
141
|
+
>
|
|
142
|
+
> ====
|
|
143
|
+
>
|
|
144
|
+
> Copyright and related rights for sample code are waived via CC0. Sample
|
|
145
|
+
> code is defined as all source code displayed within the prose of the
|
|
146
|
+
> documentation.
|
|
147
|
+
>
|
|
148
|
+
> CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
|
149
|
+
>
|
|
150
|
+
> ====
|
|
151
|
+
>
|
|
152
|
+
> Files located in the node_modules and vendor directories are externally
|
|
153
|
+
> maintained libraries used by this software which have their own
|
|
154
|
+
> licenses; we recommend you read them, as their terms may differ from the
|
|
155
|
+
> terms above.
|
|
156
|
+
|
|
157
|
+
---------------------------------------
|
|
158
|
+
|
|
159
|
+
## ms
|
|
160
|
+
|
|
161
|
+
License: MIT
|
|
162
|
+
Repository: https://github.com/vercel/ms
|
|
163
|
+
|
|
164
|
+
> The MIT License (MIT)
|
|
165
|
+
>
|
|
166
|
+
> Copyright (c) 2020 Vercel, Inc.
|
|
167
|
+
>
|
|
168
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
169
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
170
|
+
> in the Software without restriction, including without limitation the rights
|
|
171
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
172
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
173
|
+
> furnished to do so, subject to the following conditions:
|
|
174
|
+
>
|
|
175
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
176
|
+
> copies or substantial portions of the Software.
|
|
177
|
+
>
|
|
178
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
179
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
180
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
181
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
182
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
183
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
184
|
+
> SOFTWARE.
|
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
import { n as __require, t as __commonJSMin } from "../rolldown-runtime.mjs";
|
|
2
|
+
var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3
|
+
var s = 1e3;
|
|
4
|
+
var m = s * 60;
|
|
5
|
+
var h = m * 60;
|
|
6
|
+
var d = h * 24;
|
|
7
|
+
var w = d * 7;
|
|
8
|
+
var y = d * 365.25;
|
|
9
|
+
module.exports = function(val, options) {
|
|
10
|
+
options = options || {};
|
|
11
|
+
var type = typeof val;
|
|
12
|
+
if (type === "string" && val.length > 0) return parse(val);
|
|
13
|
+
else if (type === "number" && isFinite(val)) return options.long ? fmtLong(val) : fmtShort(val);
|
|
14
|
+
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
|
|
15
|
+
};
|
|
16
|
+
function parse(str) {
|
|
17
|
+
str = String(str);
|
|
18
|
+
if (str.length > 100) return;
|
|
19
|
+
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
|
|
20
|
+
if (!match) return;
|
|
21
|
+
var n = parseFloat(match[1]);
|
|
22
|
+
switch ((match[2] || "ms").toLowerCase()) {
|
|
23
|
+
case "years":
|
|
24
|
+
case "year":
|
|
25
|
+
case "yrs":
|
|
26
|
+
case "yr":
|
|
27
|
+
case "y": return n * y;
|
|
28
|
+
case "weeks":
|
|
29
|
+
case "week":
|
|
30
|
+
case "w": return n * w;
|
|
31
|
+
case "days":
|
|
32
|
+
case "day":
|
|
33
|
+
case "d": return n * d;
|
|
34
|
+
case "hours":
|
|
35
|
+
case "hour":
|
|
36
|
+
case "hrs":
|
|
37
|
+
case "hr":
|
|
38
|
+
case "h": return n * h;
|
|
39
|
+
case "minutes":
|
|
40
|
+
case "minute":
|
|
41
|
+
case "mins":
|
|
42
|
+
case "min":
|
|
43
|
+
case "m": return n * m;
|
|
44
|
+
case "seconds":
|
|
45
|
+
case "second":
|
|
46
|
+
case "secs":
|
|
47
|
+
case "sec":
|
|
48
|
+
case "s": return n * s;
|
|
49
|
+
case "milliseconds":
|
|
50
|
+
case "millisecond":
|
|
51
|
+
case "msecs":
|
|
52
|
+
case "msec":
|
|
53
|
+
case "ms": return n;
|
|
54
|
+
default: return;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function fmtShort(ms) {
|
|
58
|
+
var msAbs = Math.abs(ms);
|
|
59
|
+
if (msAbs >= d) return Math.round(ms / d) + "d";
|
|
60
|
+
if (msAbs >= h) return Math.round(ms / h) + "h";
|
|
61
|
+
if (msAbs >= m) return Math.round(ms / m) + "m";
|
|
62
|
+
if (msAbs >= s) return Math.round(ms / s) + "s";
|
|
63
|
+
return ms + "ms";
|
|
64
|
+
}
|
|
65
|
+
function fmtLong(ms) {
|
|
66
|
+
var msAbs = Math.abs(ms);
|
|
67
|
+
if (msAbs >= d) return plural(ms, msAbs, d, "day");
|
|
68
|
+
if (msAbs >= h) return plural(ms, msAbs, h, "hour");
|
|
69
|
+
if (msAbs >= m) return plural(ms, msAbs, m, "minute");
|
|
70
|
+
if (msAbs >= s) return plural(ms, msAbs, s, "second");
|
|
71
|
+
return ms + " ms";
|
|
72
|
+
}
|
|
73
|
+
function plural(ms, msAbs, n, name) {
|
|
74
|
+
var isPlural = msAbs >= n * 1.5;
|
|
75
|
+
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
76
|
+
}
|
|
77
|
+
}));
|
|
78
|
+
var require_common = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
79
|
+
function setup(env) {
|
|
80
|
+
createDebug.debug = createDebug;
|
|
81
|
+
createDebug.default = createDebug;
|
|
82
|
+
createDebug.coerce = coerce;
|
|
83
|
+
createDebug.disable = disable;
|
|
84
|
+
createDebug.enable = enable;
|
|
85
|
+
createDebug.enabled = enabled;
|
|
86
|
+
createDebug.humanize = require_ms();
|
|
87
|
+
createDebug.destroy = destroy;
|
|
88
|
+
Object.keys(env).forEach((key) => {
|
|
89
|
+
createDebug[key] = env[key];
|
|
90
|
+
});
|
|
91
|
+
createDebug.names = [];
|
|
92
|
+
createDebug.skips = [];
|
|
93
|
+
createDebug.formatters = {};
|
|
94
|
+
function selectColor(namespace) {
|
|
95
|
+
let hash = 0;
|
|
96
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
97
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
98
|
+
hash |= 0;
|
|
99
|
+
}
|
|
100
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
101
|
+
}
|
|
102
|
+
createDebug.selectColor = selectColor;
|
|
103
|
+
function createDebug(namespace) {
|
|
104
|
+
let prevTime;
|
|
105
|
+
let enableOverride = null;
|
|
106
|
+
let namespacesCache;
|
|
107
|
+
let enabledCache;
|
|
108
|
+
function debug(...args) {
|
|
109
|
+
if (!debug.enabled) return;
|
|
110
|
+
const self = debug;
|
|
111
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
112
|
+
self.diff = curr - (prevTime || curr);
|
|
113
|
+
self.prev = prevTime;
|
|
114
|
+
self.curr = curr;
|
|
115
|
+
prevTime = curr;
|
|
116
|
+
args[0] = createDebug.coerce(args[0]);
|
|
117
|
+
if (typeof args[0] !== "string") args.unshift("%O");
|
|
118
|
+
let index = 0;
|
|
119
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
120
|
+
if (match === "%%") return "%";
|
|
121
|
+
index++;
|
|
122
|
+
const formatter = createDebug.formatters[format];
|
|
123
|
+
if (typeof formatter === "function") {
|
|
124
|
+
const val = args[index];
|
|
125
|
+
match = formatter.call(self, val);
|
|
126
|
+
args.splice(index, 1);
|
|
127
|
+
index--;
|
|
128
|
+
}
|
|
129
|
+
return match;
|
|
130
|
+
});
|
|
131
|
+
createDebug.formatArgs.call(self, args);
|
|
132
|
+
(self.log || createDebug.log).apply(self, args);
|
|
133
|
+
}
|
|
134
|
+
debug.namespace = namespace;
|
|
135
|
+
debug.useColors = createDebug.useColors();
|
|
136
|
+
debug.color = createDebug.selectColor(namespace);
|
|
137
|
+
debug.extend = extend;
|
|
138
|
+
debug.destroy = createDebug.destroy;
|
|
139
|
+
Object.defineProperty(debug, "enabled", {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
configurable: false,
|
|
142
|
+
get: () => {
|
|
143
|
+
if (enableOverride !== null) return enableOverride;
|
|
144
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
145
|
+
namespacesCache = createDebug.namespaces;
|
|
146
|
+
enabledCache = createDebug.enabled(namespace);
|
|
147
|
+
}
|
|
148
|
+
return enabledCache;
|
|
149
|
+
},
|
|
150
|
+
set: (v) => {
|
|
151
|
+
enableOverride = v;
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
if (typeof createDebug.init === "function") createDebug.init(debug);
|
|
155
|
+
return debug;
|
|
156
|
+
}
|
|
157
|
+
function extend(namespace, delimiter) {
|
|
158
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
159
|
+
newDebug.log = this.log;
|
|
160
|
+
return newDebug;
|
|
161
|
+
}
|
|
162
|
+
function enable(namespaces) {
|
|
163
|
+
createDebug.save(namespaces);
|
|
164
|
+
createDebug.namespaces = namespaces;
|
|
165
|
+
createDebug.names = [];
|
|
166
|
+
createDebug.skips = [];
|
|
167
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
168
|
+
for (const ns of split) if (ns[0] === "-") createDebug.skips.push(ns.slice(1));
|
|
169
|
+
else createDebug.names.push(ns);
|
|
170
|
+
}
|
|
171
|
+
function matchesTemplate(search, template) {
|
|
172
|
+
let searchIndex = 0;
|
|
173
|
+
let templateIndex = 0;
|
|
174
|
+
let starIndex = -1;
|
|
175
|
+
let matchIndex = 0;
|
|
176
|
+
while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
|
|
177
|
+
starIndex = templateIndex;
|
|
178
|
+
matchIndex = searchIndex;
|
|
179
|
+
templateIndex++;
|
|
180
|
+
} else {
|
|
181
|
+
searchIndex++;
|
|
182
|
+
templateIndex++;
|
|
183
|
+
}
|
|
184
|
+
else if (starIndex !== -1) {
|
|
185
|
+
templateIndex = starIndex + 1;
|
|
186
|
+
matchIndex++;
|
|
187
|
+
searchIndex = matchIndex;
|
|
188
|
+
} else return false;
|
|
189
|
+
while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
|
|
190
|
+
return templateIndex === template.length;
|
|
191
|
+
}
|
|
192
|
+
function disable() {
|
|
193
|
+
const namespaces = [...createDebug.names, ...createDebug.skips.map((namespace) => "-" + namespace)].join(",");
|
|
194
|
+
createDebug.enable("");
|
|
195
|
+
return namespaces;
|
|
196
|
+
}
|
|
197
|
+
function enabled(name) {
|
|
198
|
+
for (const skip of createDebug.skips) if (matchesTemplate(name, skip)) return false;
|
|
199
|
+
for (const ns of createDebug.names) if (matchesTemplate(name, ns)) return true;
|
|
200
|
+
return false;
|
|
201
|
+
}
|
|
202
|
+
function coerce(val) {
|
|
203
|
+
if (val instanceof Error) return val.stack || val.message;
|
|
204
|
+
return val;
|
|
205
|
+
}
|
|
206
|
+
function destroy() {
|
|
207
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
208
|
+
}
|
|
209
|
+
createDebug.enable(createDebug.load());
|
|
210
|
+
return createDebug;
|
|
211
|
+
}
|
|
212
|
+
module.exports = setup;
|
|
213
|
+
}));
|
|
214
|
+
var require_browser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
215
|
+
exports.formatArgs = formatArgs;
|
|
216
|
+
exports.save = save;
|
|
217
|
+
exports.load = load;
|
|
218
|
+
exports.useColors = useColors;
|
|
219
|
+
exports.storage = localstorage();
|
|
220
|
+
exports.destroy = (() => {
|
|
221
|
+
let warned = false;
|
|
222
|
+
return () => {
|
|
223
|
+
if (!warned) {
|
|
224
|
+
warned = true;
|
|
225
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
})();
|
|
229
|
+
exports.colors = [
|
|
230
|
+
"#0000CC",
|
|
231
|
+
"#0000FF",
|
|
232
|
+
"#0033CC",
|
|
233
|
+
"#0033FF",
|
|
234
|
+
"#0066CC",
|
|
235
|
+
"#0066FF",
|
|
236
|
+
"#0099CC",
|
|
237
|
+
"#0099FF",
|
|
238
|
+
"#00CC00",
|
|
239
|
+
"#00CC33",
|
|
240
|
+
"#00CC66",
|
|
241
|
+
"#00CC99",
|
|
242
|
+
"#00CCCC",
|
|
243
|
+
"#00CCFF",
|
|
244
|
+
"#3300CC",
|
|
245
|
+
"#3300FF",
|
|
246
|
+
"#3333CC",
|
|
247
|
+
"#3333FF",
|
|
248
|
+
"#3366CC",
|
|
249
|
+
"#3366FF",
|
|
250
|
+
"#3399CC",
|
|
251
|
+
"#3399FF",
|
|
252
|
+
"#33CC00",
|
|
253
|
+
"#33CC33",
|
|
254
|
+
"#33CC66",
|
|
255
|
+
"#33CC99",
|
|
256
|
+
"#33CCCC",
|
|
257
|
+
"#33CCFF",
|
|
258
|
+
"#6600CC",
|
|
259
|
+
"#6600FF",
|
|
260
|
+
"#6633CC",
|
|
261
|
+
"#6633FF",
|
|
262
|
+
"#66CC00",
|
|
263
|
+
"#66CC33",
|
|
264
|
+
"#9900CC",
|
|
265
|
+
"#9900FF",
|
|
266
|
+
"#9933CC",
|
|
267
|
+
"#9933FF",
|
|
268
|
+
"#99CC00",
|
|
269
|
+
"#99CC33",
|
|
270
|
+
"#CC0000",
|
|
271
|
+
"#CC0033",
|
|
272
|
+
"#CC0066",
|
|
273
|
+
"#CC0099",
|
|
274
|
+
"#CC00CC",
|
|
275
|
+
"#CC00FF",
|
|
276
|
+
"#CC3300",
|
|
277
|
+
"#CC3333",
|
|
278
|
+
"#CC3366",
|
|
279
|
+
"#CC3399",
|
|
280
|
+
"#CC33CC",
|
|
281
|
+
"#CC33FF",
|
|
282
|
+
"#CC6600",
|
|
283
|
+
"#CC6633",
|
|
284
|
+
"#CC9900",
|
|
285
|
+
"#CC9933",
|
|
286
|
+
"#CCCC00",
|
|
287
|
+
"#CCCC33",
|
|
288
|
+
"#FF0000",
|
|
289
|
+
"#FF0033",
|
|
290
|
+
"#FF0066",
|
|
291
|
+
"#FF0099",
|
|
292
|
+
"#FF00CC",
|
|
293
|
+
"#FF00FF",
|
|
294
|
+
"#FF3300",
|
|
295
|
+
"#FF3333",
|
|
296
|
+
"#FF3366",
|
|
297
|
+
"#FF3399",
|
|
298
|
+
"#FF33CC",
|
|
299
|
+
"#FF33FF",
|
|
300
|
+
"#FF6600",
|
|
301
|
+
"#FF6633",
|
|
302
|
+
"#FF9900",
|
|
303
|
+
"#FF9933",
|
|
304
|
+
"#FFCC00",
|
|
305
|
+
"#FFCC33"
|
|
306
|
+
];
|
|
307
|
+
function useColors() {
|
|
308
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return true;
|
|
309
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return false;
|
|
310
|
+
let m;
|
|
311
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
312
|
+
}
|
|
313
|
+
function formatArgs(args) {
|
|
314
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
|
|
315
|
+
if (!this.useColors) return;
|
|
316
|
+
const c = "color: " + this.color;
|
|
317
|
+
args.splice(1, 0, c, "color: inherit");
|
|
318
|
+
let index = 0;
|
|
319
|
+
let lastC = 0;
|
|
320
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
321
|
+
if (match === "%%") return;
|
|
322
|
+
index++;
|
|
323
|
+
if (match === "%c") lastC = index;
|
|
324
|
+
});
|
|
325
|
+
args.splice(lastC, 0, c);
|
|
326
|
+
}
|
|
327
|
+
exports.log = console.debug || console.log || (() => {});
|
|
328
|
+
function save(namespaces) {
|
|
329
|
+
try {
|
|
330
|
+
if (namespaces) exports.storage.setItem("debug", namespaces);
|
|
331
|
+
else exports.storage.removeItem("debug");
|
|
332
|
+
} catch (error) {}
|
|
333
|
+
}
|
|
334
|
+
function load() {
|
|
335
|
+
let r;
|
|
336
|
+
try {
|
|
337
|
+
r = exports.storage.getItem("debug") || exports.storage.getItem("DEBUG");
|
|
338
|
+
} catch (error) {}
|
|
339
|
+
if (!r && typeof process !== "undefined" && "env" in process) r = process.env.DEBUG;
|
|
340
|
+
return r;
|
|
341
|
+
}
|
|
342
|
+
function localstorage() {
|
|
343
|
+
try {
|
|
344
|
+
return localStorage;
|
|
345
|
+
} catch (error) {}
|
|
346
|
+
}
|
|
347
|
+
module.exports = require_common()(exports);
|
|
348
|
+
const { formatters } = module.exports;
|
|
349
|
+
formatters.j = function(v) {
|
|
350
|
+
try {
|
|
351
|
+
return JSON.stringify(v);
|
|
352
|
+
} catch (error) {
|
|
353
|
+
return "[UnexpectedJSONParseError]: " + error.message;
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
}));
|
|
357
|
+
var require_node = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
358
|
+
const tty = __require("tty");
|
|
359
|
+
const util = __require("util");
|
|
360
|
+
exports.init = init;
|
|
361
|
+
exports.log = log;
|
|
362
|
+
exports.formatArgs = formatArgs;
|
|
363
|
+
exports.save = save;
|
|
364
|
+
exports.load = load;
|
|
365
|
+
exports.useColors = useColors;
|
|
366
|
+
exports.destroy = util.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
367
|
+
exports.colors = [
|
|
368
|
+
6,
|
|
369
|
+
2,
|
|
370
|
+
3,
|
|
371
|
+
4,
|
|
372
|
+
5,
|
|
373
|
+
1
|
|
374
|
+
];
|
|
375
|
+
try {
|
|
376
|
+
const supportsColor = __require("supports-color");
|
|
377
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports.colors = [
|
|
378
|
+
20,
|
|
379
|
+
21,
|
|
380
|
+
26,
|
|
381
|
+
27,
|
|
382
|
+
32,
|
|
383
|
+
33,
|
|
384
|
+
38,
|
|
385
|
+
39,
|
|
386
|
+
40,
|
|
387
|
+
41,
|
|
388
|
+
42,
|
|
389
|
+
43,
|
|
390
|
+
44,
|
|
391
|
+
45,
|
|
392
|
+
56,
|
|
393
|
+
57,
|
|
394
|
+
62,
|
|
395
|
+
63,
|
|
396
|
+
68,
|
|
397
|
+
69,
|
|
398
|
+
74,
|
|
399
|
+
75,
|
|
400
|
+
76,
|
|
401
|
+
77,
|
|
402
|
+
78,
|
|
403
|
+
79,
|
|
404
|
+
80,
|
|
405
|
+
81,
|
|
406
|
+
92,
|
|
407
|
+
93,
|
|
408
|
+
98,
|
|
409
|
+
99,
|
|
410
|
+
112,
|
|
411
|
+
113,
|
|
412
|
+
128,
|
|
413
|
+
129,
|
|
414
|
+
134,
|
|
415
|
+
135,
|
|
416
|
+
148,
|
|
417
|
+
149,
|
|
418
|
+
160,
|
|
419
|
+
161,
|
|
420
|
+
162,
|
|
421
|
+
163,
|
|
422
|
+
164,
|
|
423
|
+
165,
|
|
424
|
+
166,
|
|
425
|
+
167,
|
|
426
|
+
168,
|
|
427
|
+
169,
|
|
428
|
+
170,
|
|
429
|
+
171,
|
|
430
|
+
172,
|
|
431
|
+
173,
|
|
432
|
+
178,
|
|
433
|
+
179,
|
|
434
|
+
184,
|
|
435
|
+
185,
|
|
436
|
+
196,
|
|
437
|
+
197,
|
|
438
|
+
198,
|
|
439
|
+
199,
|
|
440
|
+
200,
|
|
441
|
+
201,
|
|
442
|
+
202,
|
|
443
|
+
203,
|
|
444
|
+
204,
|
|
445
|
+
205,
|
|
446
|
+
206,
|
|
447
|
+
207,
|
|
448
|
+
208,
|
|
449
|
+
209,
|
|
450
|
+
214,
|
|
451
|
+
215,
|
|
452
|
+
220,
|
|
453
|
+
221
|
|
454
|
+
];
|
|
455
|
+
} catch (error) {}
|
|
456
|
+
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
457
|
+
return /^debug_/i.test(key);
|
|
458
|
+
}).reduce((obj, key) => {
|
|
459
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
460
|
+
return k.toUpperCase();
|
|
461
|
+
});
|
|
462
|
+
let val = process.env[key];
|
|
463
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
|
|
464
|
+
else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
|
|
465
|
+
else if (val === "null") val = null;
|
|
466
|
+
else val = Number(val);
|
|
467
|
+
obj[prop] = val;
|
|
468
|
+
return obj;
|
|
469
|
+
}, {});
|
|
470
|
+
function useColors() {
|
|
471
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
472
|
+
}
|
|
473
|
+
function formatArgs(args) {
|
|
474
|
+
const { namespace: name, useColors } = this;
|
|
475
|
+
if (useColors) {
|
|
476
|
+
const c = this.color;
|
|
477
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
478
|
+
const prefix = ` ${colorCode};1m${name} \u001B[0m`;
|
|
479
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
480
|
+
args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
|
|
481
|
+
} else args[0] = getDate() + name + " " + args[0];
|
|
482
|
+
}
|
|
483
|
+
function getDate() {
|
|
484
|
+
if (exports.inspectOpts.hideDate) return "";
|
|
485
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
486
|
+
}
|
|
487
|
+
function log(...args) {
|
|
488
|
+
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
489
|
+
}
|
|
490
|
+
function save(namespaces) {
|
|
491
|
+
if (namespaces) process.env.DEBUG = namespaces;
|
|
492
|
+
else delete process.env.DEBUG;
|
|
493
|
+
}
|
|
494
|
+
function load() {
|
|
495
|
+
return process.env.DEBUG;
|
|
496
|
+
}
|
|
497
|
+
function init(debug) {
|
|
498
|
+
debug.inspectOpts = {};
|
|
499
|
+
const keys = Object.keys(exports.inspectOpts);
|
|
500
|
+
for (let i = 0; i < keys.length; i++) debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
501
|
+
}
|
|
502
|
+
module.exports = require_common()(exports);
|
|
503
|
+
const { formatters } = module.exports;
|
|
504
|
+
formatters.o = function(v) {
|
|
505
|
+
this.inspectOpts.colors = this.useColors;
|
|
506
|
+
return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
507
|
+
};
|
|
508
|
+
formatters.O = function(v) {
|
|
509
|
+
this.inspectOpts.colors = this.useColors;
|
|
510
|
+
return util.inspect(v, this.inspectOpts);
|
|
511
|
+
};
|
|
512
|
+
}));
|
|
513
|
+
var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
514
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) module.exports = require_browser();
|
|
515
|
+
else module.exports = require_node();
|
|
516
|
+
}));
|
|
517
|
+
export { require_src as t };
|