@wix/cli 1.1.57 → 1.1.59
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/build/DevCommand-D6QHU2YA.js +7561 -0
- package/build/DevCommand-D6QHU2YA.js.map +1 -0
- package/build/{DevCommand-K3JZ4XZC.js → DevCommand-PLIPWJKO.js} +14 -15
- package/build/{DevCommand-K3JZ4XZC.js.map → DevCommand-PLIPWJKO.js.map} +1 -1
- package/build/{LoginCommand-BP3RQHUM.js → LoginCommand-NRZ4VWWM.js} +12 -12
- package/build/{LogoutCommand-VT4QE44U.js → LogoutCommand-INOYIE67.js} +8 -8
- package/build/{WhoamiCommand-KJFFYPZX.js → WhoamiCommand-4V4GTNFW.js} +4 -4
- package/build/{chunk-KTJ6X6GE.js → chunk-3RBFRZE2.js} +8 -8
- package/build/{chunk-KTJ6X6GE.js.map → chunk-3RBFRZE2.js.map} +1 -1
- package/build/{chunk-NX7IBYFX.js → chunk-4HVBZRJL.js} +2 -2
- package/build/{chunk-2AGM62L5.js → chunk-4OBSJ6OG.js} +5043 -659
- package/build/chunk-4OBSJ6OG.js.map +1 -0
- package/build/{chunk-LOJ4G3VD.js → chunk-5XUFGBCU.js} +2 -2
- package/build/{chunk-WYEQRRT2.js → chunk-5ZVEBKUO.js} +2829 -66
- package/build/chunk-5ZVEBKUO.js.map +1 -0
- package/build/{chunk-XTLJ4CAJ.js → chunk-AXVTET6V.js} +2 -2
- package/build/{chunk-53UCEZFU.js → chunk-BNWDAMAL.js} +175 -45
- package/build/chunk-BNWDAMAL.js.map +1 -0
- package/build/{chunk-MPSJ2YGQ.js → chunk-BV3B44QL.js} +3 -3
- package/build/{chunk-QCM5RGPT.js → chunk-CMXHWKEP.js} +3 -3
- package/build/{chunk-BBGPRSAS.js → chunk-CS26555F.js} +7 -7
- package/build/{chunk-U67ULUPY.js → chunk-F3E4MMLD.js} +6 -6
- package/build/{chunk-3R4OZ46Z.js → chunk-G6TDIUNY.js} +2 -2
- package/build/{chunk-U2IUPRKN.js → chunk-GLXEVSFE.js} +7 -7
- package/build/{chunk-IRLLAFTL.js → chunk-HYAIYTKF.js} +88 -44
- package/build/{chunk-IRLLAFTL.js.map → chunk-HYAIYTKF.js.map} +1 -1
- package/build/{chunk-24HYCAK2.js → chunk-JG7FKL4X.js} +3 -3
- package/build/{chunk-F63O2UMD.js → chunk-KCTZ5EX4.js} +401 -116
- package/build/chunk-KCTZ5EX4.js.map +1 -0
- package/build/{chunk-LC4NM6RL.js → chunk-N5IXBRXL.js} +2 -2
- package/build/{chunk-E745NXJR.js → chunk-OOGMXJJV.js} +6 -6
- package/build/{chunk-3KIPOGXI.js → chunk-PNUERA4W.js} +5 -5
- package/build/{chunk-MCPHB25P.js → chunk-QGSHUCNV.js} +8 -8
- package/build/{chunk-KOCJZPLK.js → chunk-SELJR2HV.js} +2 -2
- package/build/{chunk-XU2RG4HE.js → chunk-T4OH34QF.js} +8 -2
- package/build/{chunk-XU2RG4HE.js.map → chunk-T4OH34QF.js.map} +1 -1
- package/build/{chunk-H5EUIUDE.js → chunk-U32RURCT.js} +126 -70
- package/build/chunk-U32RURCT.js.map +1 -0
- package/build/{chunk-BHINMCY7.js → chunk-V4DAKO7L.js} +369 -494
- package/build/chunk-V4DAKO7L.js.map +1 -0
- package/build/{chunk-FYXV3TNQ.js → chunk-VEVISRHN.js} +5 -5
- package/build/{chunk-W32TRG4E.js → chunk-WN3D6AOY.js} +39 -25
- package/build/chunk-WN3D6AOY.js.map +1 -0
- package/build/{chunk-ZOWPPCOU.js → chunk-X7XOMWAQ.js} +5 -5
- package/build/{chunk-QZW5GTQF.js → chunk-YUFAOC35.js} +6 -6
- package/build/{chunk-VIUQV2TZ.js → chunk-Z7P6TDPB.js} +6 -6
- package/build/{dev-P57SGFAA.js → dev-TEWYYBKR.js} +23 -24
- package/build/{dev-P57SGFAA.js.map → dev-TEWYYBKR.js.map} +1 -1
- package/build/index.js +26 -26
- package/build/{install-FKVCCLFF.js → install-MTS6LPPU.js} +17 -17
- package/build/{preview-7P7VNEUO.js → preview-TDMPHSVV.js} +18 -18
- package/build/{publish-FA4OUDWG.js → publish-5VLMBE6J.js} +18 -18
- package/build/{render-command-NM3HNCRF.js → render-command-7OMEGPW4.js} +11 -11
- package/build/{render-command-VA3HCBMQ.js → render-command-FELGYBEY.js} +12 -12
- package/build/{render-command-REKF5DLG.js → render-command-UQPFUBIL.js} +12 -12
- package/build/{run-command-ZLQ3PKCS.js → run-command-3YTQS4ZX.js} +10 -10
- package/build/{src-FSILLQWK.js → src-4W2WPIAM.js} +8 -8
- package/build/{src-YDZK3SDZ.js → src-7NEL65ZK.js} +18 -18
- package/build/{src-Q3X5WF65.js → src-IBLQL7AB.js} +6 -6
- package/build/{src-KDZNNJHV.js → src-LA3GYOE6.js} +7 -7
- package/build/{src-5XWKD5UB.js → src-UWOBS6D7.js} +2 -2
- package/build/{src-SWWZQIWT.js → src-Y334LPF5.js} +7 -7
- package/build/sync-types-W3PVOJTK.js +30 -0
- package/build/{uninstall-HA7CE6JB.js → uninstall-M4DEVSQC.js} +16 -16
- package/package.json +5 -5
- package/build/DevCommand-NPU6T4GA.js +0 -1040
- package/build/DevCommand-NPU6T4GA.js.map +0 -1
- package/build/chunk-2AGM62L5.js.map +0 -1
- package/build/chunk-53UCEZFU.js.map +0 -1
- package/build/chunk-BHINMCY7.js.map +0 -1
- package/build/chunk-F63O2UMD.js.map +0 -1
- package/build/chunk-H5EUIUDE.js.map +0 -1
- package/build/chunk-OUBPZBBH.js +0 -558
- package/build/chunk-OUBPZBBH.js.map +0 -1
- package/build/chunk-W32TRG4E.js.map +0 -1
- package/build/chunk-WYEQRRT2.js.map +0 -1
- package/build/sync-types-GLTTFJMA.js +0 -31
- /package/build/{LoginCommand-BP3RQHUM.js.map → LoginCommand-NRZ4VWWM.js.map} +0 -0
- /package/build/{LogoutCommand-VT4QE44U.js.map → LogoutCommand-INOYIE67.js.map} +0 -0
- /package/build/{WhoamiCommand-KJFFYPZX.js.map → WhoamiCommand-4V4GTNFW.js.map} +0 -0
- /package/build/{chunk-NX7IBYFX.js.map → chunk-4HVBZRJL.js.map} +0 -0
- /package/build/{chunk-LOJ4G3VD.js.map → chunk-5XUFGBCU.js.map} +0 -0
- /package/build/{chunk-XTLJ4CAJ.js.map → chunk-AXVTET6V.js.map} +0 -0
- /package/build/{chunk-MPSJ2YGQ.js.map → chunk-BV3B44QL.js.map} +0 -0
- /package/build/{chunk-QCM5RGPT.js.map → chunk-CMXHWKEP.js.map} +0 -0
- /package/build/{chunk-BBGPRSAS.js.map → chunk-CS26555F.js.map} +0 -0
- /package/build/{chunk-U67ULUPY.js.map → chunk-F3E4MMLD.js.map} +0 -0
- /package/build/{chunk-3R4OZ46Z.js.map → chunk-G6TDIUNY.js.map} +0 -0
- /package/build/{chunk-U2IUPRKN.js.map → chunk-GLXEVSFE.js.map} +0 -0
- /package/build/{chunk-24HYCAK2.js.map → chunk-JG7FKL4X.js.map} +0 -0
- /package/build/{chunk-LC4NM6RL.js.map → chunk-N5IXBRXL.js.map} +0 -0
- /package/build/{chunk-E745NXJR.js.map → chunk-OOGMXJJV.js.map} +0 -0
- /package/build/{chunk-3KIPOGXI.js.map → chunk-PNUERA4W.js.map} +0 -0
- /package/build/{chunk-MCPHB25P.js.map → chunk-QGSHUCNV.js.map} +0 -0
- /package/build/{chunk-KOCJZPLK.js.map → chunk-SELJR2HV.js.map} +0 -0
- /package/build/{chunk-FYXV3TNQ.js.map → chunk-VEVISRHN.js.map} +0 -0
- /package/build/{chunk-ZOWPPCOU.js.map → chunk-X7XOMWAQ.js.map} +0 -0
- /package/build/{chunk-QZW5GTQF.js.map → chunk-YUFAOC35.js.map} +0 -0
- /package/build/{chunk-VIUQV2TZ.js.map → chunk-Z7P6TDPB.js.map} +0 -0
- /package/build/{install-FKVCCLFF.js.map → install-MTS6LPPU.js.map} +0 -0
- /package/build/{preview-7P7VNEUO.js.map → preview-TDMPHSVV.js.map} +0 -0
- /package/build/{publish-FA4OUDWG.js.map → publish-5VLMBE6J.js.map} +0 -0
- /package/build/{render-command-NM3HNCRF.js.map → render-command-7OMEGPW4.js.map} +0 -0
- /package/build/{render-command-VA3HCBMQ.js.map → render-command-FELGYBEY.js.map} +0 -0
- /package/build/{render-command-REKF5DLG.js.map → render-command-UQPFUBIL.js.map} +0 -0
- /package/build/{run-command-ZLQ3PKCS.js.map → run-command-3YTQS4ZX.js.map} +0 -0
- /package/build/{src-5XWKD5UB.js.map → src-4W2WPIAM.js.map} +0 -0
- /package/build/{src-YDZK3SDZ.js.map → src-7NEL65ZK.js.map} +0 -0
- /package/build/{src-FSILLQWK.js.map → src-IBLQL7AB.js.map} +0 -0
- /package/build/{src-KDZNNJHV.js.map → src-LA3GYOE6.js.map} +0 -0
- /package/build/{src-Q3X5WF65.js.map → src-UWOBS6D7.js.map} +0 -0
- /package/build/{src-SWWZQIWT.js.map → src-Y334LPF5.js.map} +0 -0
- /package/build/{sync-types-GLTTFJMA.js.map → sync-types-W3PVOJTK.js.map} +0 -0
- /package/build/{uninstall-HA7CE6JB.js.map → uninstall-M4DEVSQC.js.map} +0 -0
|
@@ -5,13 +5,16 @@ import {
|
|
|
5
5
|
} from "./chunk-EDFOB3LN.js";
|
|
6
6
|
import {
|
|
7
7
|
require_negotiator
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4OBSJ6OG.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
require_ms
|
|
11
|
+
} from "./chunk-WN3D6AOY.js";
|
|
12
|
+
import {
|
|
13
|
+
require_supports_color
|
|
14
|
+
} from "./chunk-W423UTD3.js";
|
|
12
15
|
import {
|
|
13
16
|
getTestOverrides
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BNWDAMAL.js";
|
|
15
18
|
import {
|
|
16
19
|
__commonJS,
|
|
17
20
|
__dirname,
|
|
@@ -9674,6 +9677,532 @@ var require_parser_v3 = __commonJS({
|
|
|
9674
9677
|
}
|
|
9675
9678
|
});
|
|
9676
9679
|
|
|
9680
|
+
// ../../node_modules/engine.io/node_modules/debug/src/common.js
|
|
9681
|
+
var require_common = __commonJS({
|
|
9682
|
+
"../../node_modules/engine.io/node_modules/debug/src/common.js"(exports, module) {
|
|
9683
|
+
"use strict";
|
|
9684
|
+
init_esm_shims();
|
|
9685
|
+
function setup(env) {
|
|
9686
|
+
createDebug.debug = createDebug;
|
|
9687
|
+
createDebug.default = createDebug;
|
|
9688
|
+
createDebug.coerce = coerce2;
|
|
9689
|
+
createDebug.disable = disable;
|
|
9690
|
+
createDebug.enable = enable;
|
|
9691
|
+
createDebug.enabled = enabled;
|
|
9692
|
+
createDebug.humanize = require_ms();
|
|
9693
|
+
createDebug.destroy = destroy;
|
|
9694
|
+
Object.keys(env).forEach((key) => {
|
|
9695
|
+
createDebug[key] = env[key];
|
|
9696
|
+
});
|
|
9697
|
+
createDebug.names = [];
|
|
9698
|
+
createDebug.skips = [];
|
|
9699
|
+
createDebug.formatters = {};
|
|
9700
|
+
function selectColor(namespace) {
|
|
9701
|
+
let hash = 0;
|
|
9702
|
+
for (let i2 = 0; i2 < namespace.length; i2++) {
|
|
9703
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i2);
|
|
9704
|
+
hash |= 0;
|
|
9705
|
+
}
|
|
9706
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
9707
|
+
}
|
|
9708
|
+
createDebug.selectColor = selectColor;
|
|
9709
|
+
function createDebug(namespace) {
|
|
9710
|
+
let prevTime;
|
|
9711
|
+
let enableOverride = null;
|
|
9712
|
+
let namespacesCache;
|
|
9713
|
+
let enabledCache;
|
|
9714
|
+
function debug11(...args) {
|
|
9715
|
+
if (!debug11.enabled) {
|
|
9716
|
+
return;
|
|
9717
|
+
}
|
|
9718
|
+
const self2 = debug11;
|
|
9719
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
9720
|
+
const ms = curr - (prevTime || curr);
|
|
9721
|
+
self2.diff = ms;
|
|
9722
|
+
self2.prev = prevTime;
|
|
9723
|
+
self2.curr = curr;
|
|
9724
|
+
prevTime = curr;
|
|
9725
|
+
args[0] = createDebug.coerce(args[0]);
|
|
9726
|
+
if (typeof args[0] !== "string") {
|
|
9727
|
+
args.unshift("%O");
|
|
9728
|
+
}
|
|
9729
|
+
let index = 0;
|
|
9730
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
9731
|
+
if (match === "%%") {
|
|
9732
|
+
return "%";
|
|
9733
|
+
}
|
|
9734
|
+
index++;
|
|
9735
|
+
const formatter = createDebug.formatters[format];
|
|
9736
|
+
if (typeof formatter === "function") {
|
|
9737
|
+
const val = args[index];
|
|
9738
|
+
match = formatter.call(self2, val);
|
|
9739
|
+
args.splice(index, 1);
|
|
9740
|
+
index--;
|
|
9741
|
+
}
|
|
9742
|
+
return match;
|
|
9743
|
+
});
|
|
9744
|
+
createDebug.formatArgs.call(self2, args);
|
|
9745
|
+
const logFn = self2.log || createDebug.log;
|
|
9746
|
+
logFn.apply(self2, args);
|
|
9747
|
+
}
|
|
9748
|
+
debug11.namespace = namespace;
|
|
9749
|
+
debug11.useColors = createDebug.useColors();
|
|
9750
|
+
debug11.color = createDebug.selectColor(namespace);
|
|
9751
|
+
debug11.extend = extend;
|
|
9752
|
+
debug11.destroy = createDebug.destroy;
|
|
9753
|
+
Object.defineProperty(debug11, "enabled", {
|
|
9754
|
+
enumerable: true,
|
|
9755
|
+
configurable: false,
|
|
9756
|
+
get: () => {
|
|
9757
|
+
if (enableOverride !== null) {
|
|
9758
|
+
return enableOverride;
|
|
9759
|
+
}
|
|
9760
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
9761
|
+
namespacesCache = createDebug.namespaces;
|
|
9762
|
+
enabledCache = createDebug.enabled(namespace);
|
|
9763
|
+
}
|
|
9764
|
+
return enabledCache;
|
|
9765
|
+
},
|
|
9766
|
+
set: (v) => {
|
|
9767
|
+
enableOverride = v;
|
|
9768
|
+
}
|
|
9769
|
+
});
|
|
9770
|
+
if (typeof createDebug.init === "function") {
|
|
9771
|
+
createDebug.init(debug11);
|
|
9772
|
+
}
|
|
9773
|
+
return debug11;
|
|
9774
|
+
}
|
|
9775
|
+
function extend(namespace, delimiter) {
|
|
9776
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
9777
|
+
newDebug.log = this.log;
|
|
9778
|
+
return newDebug;
|
|
9779
|
+
}
|
|
9780
|
+
function enable(namespaces) {
|
|
9781
|
+
createDebug.save(namespaces);
|
|
9782
|
+
createDebug.namespaces = namespaces;
|
|
9783
|
+
createDebug.names = [];
|
|
9784
|
+
createDebug.skips = [];
|
|
9785
|
+
let i2;
|
|
9786
|
+
const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
|
|
9787
|
+
const len = split.length;
|
|
9788
|
+
for (i2 = 0; i2 < len; i2++) {
|
|
9789
|
+
if (!split[i2]) {
|
|
9790
|
+
continue;
|
|
9791
|
+
}
|
|
9792
|
+
namespaces = split[i2].replace(/\*/g, ".*?");
|
|
9793
|
+
if (namespaces[0] === "-") {
|
|
9794
|
+
createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
|
|
9795
|
+
} else {
|
|
9796
|
+
createDebug.names.push(new RegExp("^" + namespaces + "$"));
|
|
9797
|
+
}
|
|
9798
|
+
}
|
|
9799
|
+
}
|
|
9800
|
+
function disable() {
|
|
9801
|
+
const namespaces = [
|
|
9802
|
+
...createDebug.names.map(toNamespace),
|
|
9803
|
+
...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
|
|
9804
|
+
].join(",");
|
|
9805
|
+
createDebug.enable("");
|
|
9806
|
+
return namespaces;
|
|
9807
|
+
}
|
|
9808
|
+
function enabled(name) {
|
|
9809
|
+
if (name[name.length - 1] === "*") {
|
|
9810
|
+
return true;
|
|
9811
|
+
}
|
|
9812
|
+
let i2;
|
|
9813
|
+
let len;
|
|
9814
|
+
for (i2 = 0, len = createDebug.skips.length; i2 < len; i2++) {
|
|
9815
|
+
if (createDebug.skips[i2].test(name)) {
|
|
9816
|
+
return false;
|
|
9817
|
+
}
|
|
9818
|
+
}
|
|
9819
|
+
for (i2 = 0, len = createDebug.names.length; i2 < len; i2++) {
|
|
9820
|
+
if (createDebug.names[i2].test(name)) {
|
|
9821
|
+
return true;
|
|
9822
|
+
}
|
|
9823
|
+
}
|
|
9824
|
+
return false;
|
|
9825
|
+
}
|
|
9826
|
+
function toNamespace(regexp) {
|
|
9827
|
+
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
9828
|
+
}
|
|
9829
|
+
function coerce2(val) {
|
|
9830
|
+
if (val instanceof Error) {
|
|
9831
|
+
return val.stack || val.message;
|
|
9832
|
+
}
|
|
9833
|
+
return val;
|
|
9834
|
+
}
|
|
9835
|
+
function destroy() {
|
|
9836
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
9837
|
+
}
|
|
9838
|
+
createDebug.enable(createDebug.load());
|
|
9839
|
+
return createDebug;
|
|
9840
|
+
}
|
|
9841
|
+
module.exports = setup;
|
|
9842
|
+
}
|
|
9843
|
+
});
|
|
9844
|
+
|
|
9845
|
+
// ../../node_modules/engine.io/node_modules/debug/src/browser.js
|
|
9846
|
+
var require_browser = __commonJS({
|
|
9847
|
+
"../../node_modules/engine.io/node_modules/debug/src/browser.js"(exports, module) {
|
|
9848
|
+
"use strict";
|
|
9849
|
+
init_esm_shims();
|
|
9850
|
+
exports.formatArgs = formatArgs;
|
|
9851
|
+
exports.save = save;
|
|
9852
|
+
exports.load = load;
|
|
9853
|
+
exports.useColors = useColors;
|
|
9854
|
+
exports.storage = localstorage();
|
|
9855
|
+
exports.destroy = /* @__PURE__ */ (() => {
|
|
9856
|
+
let warned = false;
|
|
9857
|
+
return () => {
|
|
9858
|
+
if (!warned) {
|
|
9859
|
+
warned = true;
|
|
9860
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
9861
|
+
}
|
|
9862
|
+
};
|
|
9863
|
+
})();
|
|
9864
|
+
exports.colors = [
|
|
9865
|
+
"#0000CC",
|
|
9866
|
+
"#0000FF",
|
|
9867
|
+
"#0033CC",
|
|
9868
|
+
"#0033FF",
|
|
9869
|
+
"#0066CC",
|
|
9870
|
+
"#0066FF",
|
|
9871
|
+
"#0099CC",
|
|
9872
|
+
"#0099FF",
|
|
9873
|
+
"#00CC00",
|
|
9874
|
+
"#00CC33",
|
|
9875
|
+
"#00CC66",
|
|
9876
|
+
"#00CC99",
|
|
9877
|
+
"#00CCCC",
|
|
9878
|
+
"#00CCFF",
|
|
9879
|
+
"#3300CC",
|
|
9880
|
+
"#3300FF",
|
|
9881
|
+
"#3333CC",
|
|
9882
|
+
"#3333FF",
|
|
9883
|
+
"#3366CC",
|
|
9884
|
+
"#3366FF",
|
|
9885
|
+
"#3399CC",
|
|
9886
|
+
"#3399FF",
|
|
9887
|
+
"#33CC00",
|
|
9888
|
+
"#33CC33",
|
|
9889
|
+
"#33CC66",
|
|
9890
|
+
"#33CC99",
|
|
9891
|
+
"#33CCCC",
|
|
9892
|
+
"#33CCFF",
|
|
9893
|
+
"#6600CC",
|
|
9894
|
+
"#6600FF",
|
|
9895
|
+
"#6633CC",
|
|
9896
|
+
"#6633FF",
|
|
9897
|
+
"#66CC00",
|
|
9898
|
+
"#66CC33",
|
|
9899
|
+
"#9900CC",
|
|
9900
|
+
"#9900FF",
|
|
9901
|
+
"#9933CC",
|
|
9902
|
+
"#9933FF",
|
|
9903
|
+
"#99CC00",
|
|
9904
|
+
"#99CC33",
|
|
9905
|
+
"#CC0000",
|
|
9906
|
+
"#CC0033",
|
|
9907
|
+
"#CC0066",
|
|
9908
|
+
"#CC0099",
|
|
9909
|
+
"#CC00CC",
|
|
9910
|
+
"#CC00FF",
|
|
9911
|
+
"#CC3300",
|
|
9912
|
+
"#CC3333",
|
|
9913
|
+
"#CC3366",
|
|
9914
|
+
"#CC3399",
|
|
9915
|
+
"#CC33CC",
|
|
9916
|
+
"#CC33FF",
|
|
9917
|
+
"#CC6600",
|
|
9918
|
+
"#CC6633",
|
|
9919
|
+
"#CC9900",
|
|
9920
|
+
"#CC9933",
|
|
9921
|
+
"#CCCC00",
|
|
9922
|
+
"#CCCC33",
|
|
9923
|
+
"#FF0000",
|
|
9924
|
+
"#FF0033",
|
|
9925
|
+
"#FF0066",
|
|
9926
|
+
"#FF0099",
|
|
9927
|
+
"#FF00CC",
|
|
9928
|
+
"#FF00FF",
|
|
9929
|
+
"#FF3300",
|
|
9930
|
+
"#FF3333",
|
|
9931
|
+
"#FF3366",
|
|
9932
|
+
"#FF3399",
|
|
9933
|
+
"#FF33CC",
|
|
9934
|
+
"#FF33FF",
|
|
9935
|
+
"#FF6600",
|
|
9936
|
+
"#FF6633",
|
|
9937
|
+
"#FF9900",
|
|
9938
|
+
"#FF9933",
|
|
9939
|
+
"#FFCC00",
|
|
9940
|
+
"#FFCC33"
|
|
9941
|
+
];
|
|
9942
|
+
function useColors() {
|
|
9943
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
9944
|
+
return true;
|
|
9945
|
+
}
|
|
9946
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
9947
|
+
return false;
|
|
9948
|
+
}
|
|
9949
|
+
let m;
|
|
9950
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
9951
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
9952
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
9953
|
+
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
9954
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
9955
|
+
}
|
|
9956
|
+
function formatArgs(args) {
|
|
9957
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
|
|
9958
|
+
if (!this.useColors) {
|
|
9959
|
+
return;
|
|
9960
|
+
}
|
|
9961
|
+
const c = "color: " + this.color;
|
|
9962
|
+
args.splice(1, 0, c, "color: inherit");
|
|
9963
|
+
let index = 0;
|
|
9964
|
+
let lastC = 0;
|
|
9965
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
9966
|
+
if (match === "%%") {
|
|
9967
|
+
return;
|
|
9968
|
+
}
|
|
9969
|
+
index++;
|
|
9970
|
+
if (match === "%c") {
|
|
9971
|
+
lastC = index;
|
|
9972
|
+
}
|
|
9973
|
+
});
|
|
9974
|
+
args.splice(lastC, 0, c);
|
|
9975
|
+
}
|
|
9976
|
+
exports.log = console.debug || console.log || (() => {
|
|
9977
|
+
});
|
|
9978
|
+
function save(namespaces) {
|
|
9979
|
+
try {
|
|
9980
|
+
if (namespaces) {
|
|
9981
|
+
exports.storage.setItem("debug", namespaces);
|
|
9982
|
+
} else {
|
|
9983
|
+
exports.storage.removeItem("debug");
|
|
9984
|
+
}
|
|
9985
|
+
} catch (error) {
|
|
9986
|
+
}
|
|
9987
|
+
}
|
|
9988
|
+
function load() {
|
|
9989
|
+
let r;
|
|
9990
|
+
try {
|
|
9991
|
+
r = exports.storage.getItem("debug");
|
|
9992
|
+
} catch (error) {
|
|
9993
|
+
}
|
|
9994
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
9995
|
+
r = process.env.DEBUG;
|
|
9996
|
+
}
|
|
9997
|
+
return r;
|
|
9998
|
+
}
|
|
9999
|
+
function localstorage() {
|
|
10000
|
+
try {
|
|
10001
|
+
return localStorage;
|
|
10002
|
+
} catch (error) {
|
|
10003
|
+
}
|
|
10004
|
+
}
|
|
10005
|
+
module.exports = require_common()(exports);
|
|
10006
|
+
var { formatters } = module.exports;
|
|
10007
|
+
formatters.j = function(v) {
|
|
10008
|
+
try {
|
|
10009
|
+
return JSON.stringify(v);
|
|
10010
|
+
} catch (error) {
|
|
10011
|
+
return "[UnexpectedJSONParseError]: " + error.message;
|
|
10012
|
+
}
|
|
10013
|
+
};
|
|
10014
|
+
}
|
|
10015
|
+
});
|
|
10016
|
+
|
|
10017
|
+
// ../../node_modules/engine.io/node_modules/debug/src/node.js
|
|
10018
|
+
var require_node = __commonJS({
|
|
10019
|
+
"../../node_modules/engine.io/node_modules/debug/src/node.js"(exports, module) {
|
|
10020
|
+
"use strict";
|
|
10021
|
+
init_esm_shims();
|
|
10022
|
+
var tty = __require("tty");
|
|
10023
|
+
var util2 = __require("util");
|
|
10024
|
+
exports.init = init;
|
|
10025
|
+
exports.log = log;
|
|
10026
|
+
exports.formatArgs = formatArgs;
|
|
10027
|
+
exports.save = save;
|
|
10028
|
+
exports.load = load;
|
|
10029
|
+
exports.useColors = useColors;
|
|
10030
|
+
exports.destroy = util2.deprecate(
|
|
10031
|
+
() => {
|
|
10032
|
+
},
|
|
10033
|
+
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
10034
|
+
);
|
|
10035
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
10036
|
+
try {
|
|
10037
|
+
const supportsColor = require_supports_color();
|
|
10038
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
10039
|
+
exports.colors = [
|
|
10040
|
+
20,
|
|
10041
|
+
21,
|
|
10042
|
+
26,
|
|
10043
|
+
27,
|
|
10044
|
+
32,
|
|
10045
|
+
33,
|
|
10046
|
+
38,
|
|
10047
|
+
39,
|
|
10048
|
+
40,
|
|
10049
|
+
41,
|
|
10050
|
+
42,
|
|
10051
|
+
43,
|
|
10052
|
+
44,
|
|
10053
|
+
45,
|
|
10054
|
+
56,
|
|
10055
|
+
57,
|
|
10056
|
+
62,
|
|
10057
|
+
63,
|
|
10058
|
+
68,
|
|
10059
|
+
69,
|
|
10060
|
+
74,
|
|
10061
|
+
75,
|
|
10062
|
+
76,
|
|
10063
|
+
77,
|
|
10064
|
+
78,
|
|
10065
|
+
79,
|
|
10066
|
+
80,
|
|
10067
|
+
81,
|
|
10068
|
+
92,
|
|
10069
|
+
93,
|
|
10070
|
+
98,
|
|
10071
|
+
99,
|
|
10072
|
+
112,
|
|
10073
|
+
113,
|
|
10074
|
+
128,
|
|
10075
|
+
129,
|
|
10076
|
+
134,
|
|
10077
|
+
135,
|
|
10078
|
+
148,
|
|
10079
|
+
149,
|
|
10080
|
+
160,
|
|
10081
|
+
161,
|
|
10082
|
+
162,
|
|
10083
|
+
163,
|
|
10084
|
+
164,
|
|
10085
|
+
165,
|
|
10086
|
+
166,
|
|
10087
|
+
167,
|
|
10088
|
+
168,
|
|
10089
|
+
169,
|
|
10090
|
+
170,
|
|
10091
|
+
171,
|
|
10092
|
+
172,
|
|
10093
|
+
173,
|
|
10094
|
+
178,
|
|
10095
|
+
179,
|
|
10096
|
+
184,
|
|
10097
|
+
185,
|
|
10098
|
+
196,
|
|
10099
|
+
197,
|
|
10100
|
+
198,
|
|
10101
|
+
199,
|
|
10102
|
+
200,
|
|
10103
|
+
201,
|
|
10104
|
+
202,
|
|
10105
|
+
203,
|
|
10106
|
+
204,
|
|
10107
|
+
205,
|
|
10108
|
+
206,
|
|
10109
|
+
207,
|
|
10110
|
+
208,
|
|
10111
|
+
209,
|
|
10112
|
+
214,
|
|
10113
|
+
215,
|
|
10114
|
+
220,
|
|
10115
|
+
221
|
|
10116
|
+
];
|
|
10117
|
+
}
|
|
10118
|
+
} catch (error) {
|
|
10119
|
+
}
|
|
10120
|
+
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
10121
|
+
return /^debug_/i.test(key);
|
|
10122
|
+
}).reduce((obj, key) => {
|
|
10123
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
10124
|
+
return k.toUpperCase();
|
|
10125
|
+
});
|
|
10126
|
+
let val = process.env[key];
|
|
10127
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
10128
|
+
val = true;
|
|
10129
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
10130
|
+
val = false;
|
|
10131
|
+
} else if (val === "null") {
|
|
10132
|
+
val = null;
|
|
10133
|
+
} else {
|
|
10134
|
+
val = Number(val);
|
|
10135
|
+
}
|
|
10136
|
+
obj[prop] = val;
|
|
10137
|
+
return obj;
|
|
10138
|
+
}, {});
|
|
10139
|
+
function useColors() {
|
|
10140
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
10141
|
+
}
|
|
10142
|
+
function formatArgs(args) {
|
|
10143
|
+
const { namespace: name, useColors: useColors2 } = this;
|
|
10144
|
+
if (useColors2) {
|
|
10145
|
+
const c = this.color;
|
|
10146
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
10147
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
10148
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
10149
|
+
args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
|
|
10150
|
+
} else {
|
|
10151
|
+
args[0] = getDate() + name + " " + args[0];
|
|
10152
|
+
}
|
|
10153
|
+
}
|
|
10154
|
+
function getDate() {
|
|
10155
|
+
if (exports.inspectOpts.hideDate) {
|
|
10156
|
+
return "";
|
|
10157
|
+
}
|
|
10158
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
10159
|
+
}
|
|
10160
|
+
function log(...args) {
|
|
10161
|
+
return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
10162
|
+
}
|
|
10163
|
+
function save(namespaces) {
|
|
10164
|
+
if (namespaces) {
|
|
10165
|
+
process.env.DEBUG = namespaces;
|
|
10166
|
+
} else {
|
|
10167
|
+
delete process.env.DEBUG;
|
|
10168
|
+
}
|
|
10169
|
+
}
|
|
10170
|
+
function load() {
|
|
10171
|
+
return process.env.DEBUG;
|
|
10172
|
+
}
|
|
10173
|
+
function init(debug11) {
|
|
10174
|
+
debug11.inspectOpts = {};
|
|
10175
|
+
const keys = Object.keys(exports.inspectOpts);
|
|
10176
|
+
for (let i2 = 0; i2 < keys.length; i2++) {
|
|
10177
|
+
debug11.inspectOpts[keys[i2]] = exports.inspectOpts[keys[i2]];
|
|
10178
|
+
}
|
|
10179
|
+
}
|
|
10180
|
+
module.exports = require_common()(exports);
|
|
10181
|
+
var { formatters } = module.exports;
|
|
10182
|
+
formatters.o = function(v) {
|
|
10183
|
+
this.inspectOpts.colors = this.useColors;
|
|
10184
|
+
return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
10185
|
+
};
|
|
10186
|
+
formatters.O = function(v) {
|
|
10187
|
+
this.inspectOpts.colors = this.useColors;
|
|
10188
|
+
return util2.inspect(v, this.inspectOpts);
|
|
10189
|
+
};
|
|
10190
|
+
}
|
|
10191
|
+
});
|
|
10192
|
+
|
|
10193
|
+
// ../../node_modules/engine.io/node_modules/debug/src/index.js
|
|
10194
|
+
var require_src = __commonJS({
|
|
10195
|
+
"../../node_modules/engine.io/node_modules/debug/src/index.js"(exports, module) {
|
|
10196
|
+
"use strict";
|
|
10197
|
+
init_esm_shims();
|
|
10198
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
10199
|
+
module.exports = require_browser();
|
|
10200
|
+
} else {
|
|
10201
|
+
module.exports = require_node();
|
|
10202
|
+
}
|
|
10203
|
+
}
|
|
10204
|
+
});
|
|
10205
|
+
|
|
9677
10206
|
// ../../node_modules/engine.io/build/transport.js
|
|
9678
10207
|
var require_transport = __commonJS({
|
|
9679
10208
|
"../../node_modules/engine.io/build/transport.js"(exports) {
|
|
@@ -16635,6 +17164,532 @@ var require_binary = __commonJS({
|
|
|
16635
17164
|
}
|
|
16636
17165
|
});
|
|
16637
17166
|
|
|
17167
|
+
// ../../node_modules/socket.io-parser/node_modules/debug/src/common.js
|
|
17168
|
+
var require_common2 = __commonJS({
|
|
17169
|
+
"../../node_modules/socket.io-parser/node_modules/debug/src/common.js"(exports, module) {
|
|
17170
|
+
"use strict";
|
|
17171
|
+
init_esm_shims();
|
|
17172
|
+
function setup(env) {
|
|
17173
|
+
createDebug.debug = createDebug;
|
|
17174
|
+
createDebug.default = createDebug;
|
|
17175
|
+
createDebug.coerce = coerce2;
|
|
17176
|
+
createDebug.disable = disable;
|
|
17177
|
+
createDebug.enable = enable;
|
|
17178
|
+
createDebug.enabled = enabled;
|
|
17179
|
+
createDebug.humanize = require_ms();
|
|
17180
|
+
createDebug.destroy = destroy;
|
|
17181
|
+
Object.keys(env).forEach((key) => {
|
|
17182
|
+
createDebug[key] = env[key];
|
|
17183
|
+
});
|
|
17184
|
+
createDebug.names = [];
|
|
17185
|
+
createDebug.skips = [];
|
|
17186
|
+
createDebug.formatters = {};
|
|
17187
|
+
function selectColor(namespace) {
|
|
17188
|
+
let hash = 0;
|
|
17189
|
+
for (let i2 = 0; i2 < namespace.length; i2++) {
|
|
17190
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i2);
|
|
17191
|
+
hash |= 0;
|
|
17192
|
+
}
|
|
17193
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
17194
|
+
}
|
|
17195
|
+
createDebug.selectColor = selectColor;
|
|
17196
|
+
function createDebug(namespace) {
|
|
17197
|
+
let prevTime;
|
|
17198
|
+
let enableOverride = null;
|
|
17199
|
+
let namespacesCache;
|
|
17200
|
+
let enabledCache;
|
|
17201
|
+
function debug11(...args) {
|
|
17202
|
+
if (!debug11.enabled) {
|
|
17203
|
+
return;
|
|
17204
|
+
}
|
|
17205
|
+
const self2 = debug11;
|
|
17206
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
17207
|
+
const ms = curr - (prevTime || curr);
|
|
17208
|
+
self2.diff = ms;
|
|
17209
|
+
self2.prev = prevTime;
|
|
17210
|
+
self2.curr = curr;
|
|
17211
|
+
prevTime = curr;
|
|
17212
|
+
args[0] = createDebug.coerce(args[0]);
|
|
17213
|
+
if (typeof args[0] !== "string") {
|
|
17214
|
+
args.unshift("%O");
|
|
17215
|
+
}
|
|
17216
|
+
let index = 0;
|
|
17217
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
17218
|
+
if (match === "%%") {
|
|
17219
|
+
return "%";
|
|
17220
|
+
}
|
|
17221
|
+
index++;
|
|
17222
|
+
const formatter = createDebug.formatters[format];
|
|
17223
|
+
if (typeof formatter === "function") {
|
|
17224
|
+
const val = args[index];
|
|
17225
|
+
match = formatter.call(self2, val);
|
|
17226
|
+
args.splice(index, 1);
|
|
17227
|
+
index--;
|
|
17228
|
+
}
|
|
17229
|
+
return match;
|
|
17230
|
+
});
|
|
17231
|
+
createDebug.formatArgs.call(self2, args);
|
|
17232
|
+
const logFn = self2.log || createDebug.log;
|
|
17233
|
+
logFn.apply(self2, args);
|
|
17234
|
+
}
|
|
17235
|
+
debug11.namespace = namespace;
|
|
17236
|
+
debug11.useColors = createDebug.useColors();
|
|
17237
|
+
debug11.color = createDebug.selectColor(namespace);
|
|
17238
|
+
debug11.extend = extend;
|
|
17239
|
+
debug11.destroy = createDebug.destroy;
|
|
17240
|
+
Object.defineProperty(debug11, "enabled", {
|
|
17241
|
+
enumerable: true,
|
|
17242
|
+
configurable: false,
|
|
17243
|
+
get: () => {
|
|
17244
|
+
if (enableOverride !== null) {
|
|
17245
|
+
return enableOverride;
|
|
17246
|
+
}
|
|
17247
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
17248
|
+
namespacesCache = createDebug.namespaces;
|
|
17249
|
+
enabledCache = createDebug.enabled(namespace);
|
|
17250
|
+
}
|
|
17251
|
+
return enabledCache;
|
|
17252
|
+
},
|
|
17253
|
+
set: (v) => {
|
|
17254
|
+
enableOverride = v;
|
|
17255
|
+
}
|
|
17256
|
+
});
|
|
17257
|
+
if (typeof createDebug.init === "function") {
|
|
17258
|
+
createDebug.init(debug11);
|
|
17259
|
+
}
|
|
17260
|
+
return debug11;
|
|
17261
|
+
}
|
|
17262
|
+
function extend(namespace, delimiter) {
|
|
17263
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
17264
|
+
newDebug.log = this.log;
|
|
17265
|
+
return newDebug;
|
|
17266
|
+
}
|
|
17267
|
+
function enable(namespaces) {
|
|
17268
|
+
createDebug.save(namespaces);
|
|
17269
|
+
createDebug.namespaces = namespaces;
|
|
17270
|
+
createDebug.names = [];
|
|
17271
|
+
createDebug.skips = [];
|
|
17272
|
+
let i2;
|
|
17273
|
+
const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
|
|
17274
|
+
const len = split.length;
|
|
17275
|
+
for (i2 = 0; i2 < len; i2++) {
|
|
17276
|
+
if (!split[i2]) {
|
|
17277
|
+
continue;
|
|
17278
|
+
}
|
|
17279
|
+
namespaces = split[i2].replace(/\*/g, ".*?");
|
|
17280
|
+
if (namespaces[0] === "-") {
|
|
17281
|
+
createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
|
|
17282
|
+
} else {
|
|
17283
|
+
createDebug.names.push(new RegExp("^" + namespaces + "$"));
|
|
17284
|
+
}
|
|
17285
|
+
}
|
|
17286
|
+
}
|
|
17287
|
+
function disable() {
|
|
17288
|
+
const namespaces = [
|
|
17289
|
+
...createDebug.names.map(toNamespace),
|
|
17290
|
+
...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
|
|
17291
|
+
].join(",");
|
|
17292
|
+
createDebug.enable("");
|
|
17293
|
+
return namespaces;
|
|
17294
|
+
}
|
|
17295
|
+
function enabled(name) {
|
|
17296
|
+
if (name[name.length - 1] === "*") {
|
|
17297
|
+
return true;
|
|
17298
|
+
}
|
|
17299
|
+
let i2;
|
|
17300
|
+
let len;
|
|
17301
|
+
for (i2 = 0, len = createDebug.skips.length; i2 < len; i2++) {
|
|
17302
|
+
if (createDebug.skips[i2].test(name)) {
|
|
17303
|
+
return false;
|
|
17304
|
+
}
|
|
17305
|
+
}
|
|
17306
|
+
for (i2 = 0, len = createDebug.names.length; i2 < len; i2++) {
|
|
17307
|
+
if (createDebug.names[i2].test(name)) {
|
|
17308
|
+
return true;
|
|
17309
|
+
}
|
|
17310
|
+
}
|
|
17311
|
+
return false;
|
|
17312
|
+
}
|
|
17313
|
+
function toNamespace(regexp) {
|
|
17314
|
+
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
17315
|
+
}
|
|
17316
|
+
function coerce2(val) {
|
|
17317
|
+
if (val instanceof Error) {
|
|
17318
|
+
return val.stack || val.message;
|
|
17319
|
+
}
|
|
17320
|
+
return val;
|
|
17321
|
+
}
|
|
17322
|
+
function destroy() {
|
|
17323
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
17324
|
+
}
|
|
17325
|
+
createDebug.enable(createDebug.load());
|
|
17326
|
+
return createDebug;
|
|
17327
|
+
}
|
|
17328
|
+
module.exports = setup;
|
|
17329
|
+
}
|
|
17330
|
+
});
|
|
17331
|
+
|
|
17332
|
+
// ../../node_modules/socket.io-parser/node_modules/debug/src/browser.js
|
|
17333
|
+
var require_browser2 = __commonJS({
|
|
17334
|
+
"../../node_modules/socket.io-parser/node_modules/debug/src/browser.js"(exports, module) {
|
|
17335
|
+
"use strict";
|
|
17336
|
+
init_esm_shims();
|
|
17337
|
+
exports.formatArgs = formatArgs;
|
|
17338
|
+
exports.save = save;
|
|
17339
|
+
exports.load = load;
|
|
17340
|
+
exports.useColors = useColors;
|
|
17341
|
+
exports.storage = localstorage();
|
|
17342
|
+
exports.destroy = /* @__PURE__ */ (() => {
|
|
17343
|
+
let warned = false;
|
|
17344
|
+
return () => {
|
|
17345
|
+
if (!warned) {
|
|
17346
|
+
warned = true;
|
|
17347
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
17348
|
+
}
|
|
17349
|
+
};
|
|
17350
|
+
})();
|
|
17351
|
+
exports.colors = [
|
|
17352
|
+
"#0000CC",
|
|
17353
|
+
"#0000FF",
|
|
17354
|
+
"#0033CC",
|
|
17355
|
+
"#0033FF",
|
|
17356
|
+
"#0066CC",
|
|
17357
|
+
"#0066FF",
|
|
17358
|
+
"#0099CC",
|
|
17359
|
+
"#0099FF",
|
|
17360
|
+
"#00CC00",
|
|
17361
|
+
"#00CC33",
|
|
17362
|
+
"#00CC66",
|
|
17363
|
+
"#00CC99",
|
|
17364
|
+
"#00CCCC",
|
|
17365
|
+
"#00CCFF",
|
|
17366
|
+
"#3300CC",
|
|
17367
|
+
"#3300FF",
|
|
17368
|
+
"#3333CC",
|
|
17369
|
+
"#3333FF",
|
|
17370
|
+
"#3366CC",
|
|
17371
|
+
"#3366FF",
|
|
17372
|
+
"#3399CC",
|
|
17373
|
+
"#3399FF",
|
|
17374
|
+
"#33CC00",
|
|
17375
|
+
"#33CC33",
|
|
17376
|
+
"#33CC66",
|
|
17377
|
+
"#33CC99",
|
|
17378
|
+
"#33CCCC",
|
|
17379
|
+
"#33CCFF",
|
|
17380
|
+
"#6600CC",
|
|
17381
|
+
"#6600FF",
|
|
17382
|
+
"#6633CC",
|
|
17383
|
+
"#6633FF",
|
|
17384
|
+
"#66CC00",
|
|
17385
|
+
"#66CC33",
|
|
17386
|
+
"#9900CC",
|
|
17387
|
+
"#9900FF",
|
|
17388
|
+
"#9933CC",
|
|
17389
|
+
"#9933FF",
|
|
17390
|
+
"#99CC00",
|
|
17391
|
+
"#99CC33",
|
|
17392
|
+
"#CC0000",
|
|
17393
|
+
"#CC0033",
|
|
17394
|
+
"#CC0066",
|
|
17395
|
+
"#CC0099",
|
|
17396
|
+
"#CC00CC",
|
|
17397
|
+
"#CC00FF",
|
|
17398
|
+
"#CC3300",
|
|
17399
|
+
"#CC3333",
|
|
17400
|
+
"#CC3366",
|
|
17401
|
+
"#CC3399",
|
|
17402
|
+
"#CC33CC",
|
|
17403
|
+
"#CC33FF",
|
|
17404
|
+
"#CC6600",
|
|
17405
|
+
"#CC6633",
|
|
17406
|
+
"#CC9900",
|
|
17407
|
+
"#CC9933",
|
|
17408
|
+
"#CCCC00",
|
|
17409
|
+
"#CCCC33",
|
|
17410
|
+
"#FF0000",
|
|
17411
|
+
"#FF0033",
|
|
17412
|
+
"#FF0066",
|
|
17413
|
+
"#FF0099",
|
|
17414
|
+
"#FF00CC",
|
|
17415
|
+
"#FF00FF",
|
|
17416
|
+
"#FF3300",
|
|
17417
|
+
"#FF3333",
|
|
17418
|
+
"#FF3366",
|
|
17419
|
+
"#FF3399",
|
|
17420
|
+
"#FF33CC",
|
|
17421
|
+
"#FF33FF",
|
|
17422
|
+
"#FF6600",
|
|
17423
|
+
"#FF6633",
|
|
17424
|
+
"#FF9900",
|
|
17425
|
+
"#FF9933",
|
|
17426
|
+
"#FFCC00",
|
|
17427
|
+
"#FFCC33"
|
|
17428
|
+
];
|
|
17429
|
+
function useColors() {
|
|
17430
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
17431
|
+
return true;
|
|
17432
|
+
}
|
|
17433
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
17434
|
+
return false;
|
|
17435
|
+
}
|
|
17436
|
+
let m;
|
|
17437
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
17438
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
17439
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
17440
|
+
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
17441
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
17442
|
+
}
|
|
17443
|
+
function formatArgs(args) {
|
|
17444
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
|
|
17445
|
+
if (!this.useColors) {
|
|
17446
|
+
return;
|
|
17447
|
+
}
|
|
17448
|
+
const c = "color: " + this.color;
|
|
17449
|
+
args.splice(1, 0, c, "color: inherit");
|
|
17450
|
+
let index = 0;
|
|
17451
|
+
let lastC = 0;
|
|
17452
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
17453
|
+
if (match === "%%") {
|
|
17454
|
+
return;
|
|
17455
|
+
}
|
|
17456
|
+
index++;
|
|
17457
|
+
if (match === "%c") {
|
|
17458
|
+
lastC = index;
|
|
17459
|
+
}
|
|
17460
|
+
});
|
|
17461
|
+
args.splice(lastC, 0, c);
|
|
17462
|
+
}
|
|
17463
|
+
exports.log = console.debug || console.log || (() => {
|
|
17464
|
+
});
|
|
17465
|
+
function save(namespaces) {
|
|
17466
|
+
try {
|
|
17467
|
+
if (namespaces) {
|
|
17468
|
+
exports.storage.setItem("debug", namespaces);
|
|
17469
|
+
} else {
|
|
17470
|
+
exports.storage.removeItem("debug");
|
|
17471
|
+
}
|
|
17472
|
+
} catch (error) {
|
|
17473
|
+
}
|
|
17474
|
+
}
|
|
17475
|
+
function load() {
|
|
17476
|
+
let r;
|
|
17477
|
+
try {
|
|
17478
|
+
r = exports.storage.getItem("debug");
|
|
17479
|
+
} catch (error) {
|
|
17480
|
+
}
|
|
17481
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
17482
|
+
r = process.env.DEBUG;
|
|
17483
|
+
}
|
|
17484
|
+
return r;
|
|
17485
|
+
}
|
|
17486
|
+
function localstorage() {
|
|
17487
|
+
try {
|
|
17488
|
+
return localStorage;
|
|
17489
|
+
} catch (error) {
|
|
17490
|
+
}
|
|
17491
|
+
}
|
|
17492
|
+
module.exports = require_common2()(exports);
|
|
17493
|
+
var { formatters } = module.exports;
|
|
17494
|
+
formatters.j = function(v) {
|
|
17495
|
+
try {
|
|
17496
|
+
return JSON.stringify(v);
|
|
17497
|
+
} catch (error) {
|
|
17498
|
+
return "[UnexpectedJSONParseError]: " + error.message;
|
|
17499
|
+
}
|
|
17500
|
+
};
|
|
17501
|
+
}
|
|
17502
|
+
});
|
|
17503
|
+
|
|
17504
|
+
// ../../node_modules/socket.io-parser/node_modules/debug/src/node.js
|
|
17505
|
+
var require_node2 = __commonJS({
|
|
17506
|
+
"../../node_modules/socket.io-parser/node_modules/debug/src/node.js"(exports, module) {
|
|
17507
|
+
"use strict";
|
|
17508
|
+
init_esm_shims();
|
|
17509
|
+
var tty = __require("tty");
|
|
17510
|
+
var util2 = __require("util");
|
|
17511
|
+
exports.init = init;
|
|
17512
|
+
exports.log = log;
|
|
17513
|
+
exports.formatArgs = formatArgs;
|
|
17514
|
+
exports.save = save;
|
|
17515
|
+
exports.load = load;
|
|
17516
|
+
exports.useColors = useColors;
|
|
17517
|
+
exports.destroy = util2.deprecate(
|
|
17518
|
+
() => {
|
|
17519
|
+
},
|
|
17520
|
+
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
17521
|
+
);
|
|
17522
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
17523
|
+
try {
|
|
17524
|
+
const supportsColor = require_supports_color();
|
|
17525
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
17526
|
+
exports.colors = [
|
|
17527
|
+
20,
|
|
17528
|
+
21,
|
|
17529
|
+
26,
|
|
17530
|
+
27,
|
|
17531
|
+
32,
|
|
17532
|
+
33,
|
|
17533
|
+
38,
|
|
17534
|
+
39,
|
|
17535
|
+
40,
|
|
17536
|
+
41,
|
|
17537
|
+
42,
|
|
17538
|
+
43,
|
|
17539
|
+
44,
|
|
17540
|
+
45,
|
|
17541
|
+
56,
|
|
17542
|
+
57,
|
|
17543
|
+
62,
|
|
17544
|
+
63,
|
|
17545
|
+
68,
|
|
17546
|
+
69,
|
|
17547
|
+
74,
|
|
17548
|
+
75,
|
|
17549
|
+
76,
|
|
17550
|
+
77,
|
|
17551
|
+
78,
|
|
17552
|
+
79,
|
|
17553
|
+
80,
|
|
17554
|
+
81,
|
|
17555
|
+
92,
|
|
17556
|
+
93,
|
|
17557
|
+
98,
|
|
17558
|
+
99,
|
|
17559
|
+
112,
|
|
17560
|
+
113,
|
|
17561
|
+
128,
|
|
17562
|
+
129,
|
|
17563
|
+
134,
|
|
17564
|
+
135,
|
|
17565
|
+
148,
|
|
17566
|
+
149,
|
|
17567
|
+
160,
|
|
17568
|
+
161,
|
|
17569
|
+
162,
|
|
17570
|
+
163,
|
|
17571
|
+
164,
|
|
17572
|
+
165,
|
|
17573
|
+
166,
|
|
17574
|
+
167,
|
|
17575
|
+
168,
|
|
17576
|
+
169,
|
|
17577
|
+
170,
|
|
17578
|
+
171,
|
|
17579
|
+
172,
|
|
17580
|
+
173,
|
|
17581
|
+
178,
|
|
17582
|
+
179,
|
|
17583
|
+
184,
|
|
17584
|
+
185,
|
|
17585
|
+
196,
|
|
17586
|
+
197,
|
|
17587
|
+
198,
|
|
17588
|
+
199,
|
|
17589
|
+
200,
|
|
17590
|
+
201,
|
|
17591
|
+
202,
|
|
17592
|
+
203,
|
|
17593
|
+
204,
|
|
17594
|
+
205,
|
|
17595
|
+
206,
|
|
17596
|
+
207,
|
|
17597
|
+
208,
|
|
17598
|
+
209,
|
|
17599
|
+
214,
|
|
17600
|
+
215,
|
|
17601
|
+
220,
|
|
17602
|
+
221
|
|
17603
|
+
];
|
|
17604
|
+
}
|
|
17605
|
+
} catch (error) {
|
|
17606
|
+
}
|
|
17607
|
+
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
17608
|
+
return /^debug_/i.test(key);
|
|
17609
|
+
}).reduce((obj, key) => {
|
|
17610
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
17611
|
+
return k.toUpperCase();
|
|
17612
|
+
});
|
|
17613
|
+
let val = process.env[key];
|
|
17614
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
17615
|
+
val = true;
|
|
17616
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
17617
|
+
val = false;
|
|
17618
|
+
} else if (val === "null") {
|
|
17619
|
+
val = null;
|
|
17620
|
+
} else {
|
|
17621
|
+
val = Number(val);
|
|
17622
|
+
}
|
|
17623
|
+
obj[prop] = val;
|
|
17624
|
+
return obj;
|
|
17625
|
+
}, {});
|
|
17626
|
+
function useColors() {
|
|
17627
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
17628
|
+
}
|
|
17629
|
+
function formatArgs(args) {
|
|
17630
|
+
const { namespace: name, useColors: useColors2 } = this;
|
|
17631
|
+
if (useColors2) {
|
|
17632
|
+
const c = this.color;
|
|
17633
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
17634
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
17635
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
17636
|
+
args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
|
|
17637
|
+
} else {
|
|
17638
|
+
args[0] = getDate() + name + " " + args[0];
|
|
17639
|
+
}
|
|
17640
|
+
}
|
|
17641
|
+
function getDate() {
|
|
17642
|
+
if (exports.inspectOpts.hideDate) {
|
|
17643
|
+
return "";
|
|
17644
|
+
}
|
|
17645
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
17646
|
+
}
|
|
17647
|
+
function log(...args) {
|
|
17648
|
+
return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
17649
|
+
}
|
|
17650
|
+
function save(namespaces) {
|
|
17651
|
+
if (namespaces) {
|
|
17652
|
+
process.env.DEBUG = namespaces;
|
|
17653
|
+
} else {
|
|
17654
|
+
delete process.env.DEBUG;
|
|
17655
|
+
}
|
|
17656
|
+
}
|
|
17657
|
+
function load() {
|
|
17658
|
+
return process.env.DEBUG;
|
|
17659
|
+
}
|
|
17660
|
+
function init(debug11) {
|
|
17661
|
+
debug11.inspectOpts = {};
|
|
17662
|
+
const keys = Object.keys(exports.inspectOpts);
|
|
17663
|
+
for (let i2 = 0; i2 < keys.length; i2++) {
|
|
17664
|
+
debug11.inspectOpts[keys[i2]] = exports.inspectOpts[keys[i2]];
|
|
17665
|
+
}
|
|
17666
|
+
}
|
|
17667
|
+
module.exports = require_common2()(exports);
|
|
17668
|
+
var { formatters } = module.exports;
|
|
17669
|
+
formatters.o = function(v) {
|
|
17670
|
+
this.inspectOpts.colors = this.useColors;
|
|
17671
|
+
return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
17672
|
+
};
|
|
17673
|
+
formatters.O = function(v) {
|
|
17674
|
+
this.inspectOpts.colors = this.useColors;
|
|
17675
|
+
return util2.inspect(v, this.inspectOpts);
|
|
17676
|
+
};
|
|
17677
|
+
}
|
|
17678
|
+
});
|
|
17679
|
+
|
|
17680
|
+
// ../../node_modules/socket.io-parser/node_modules/debug/src/index.js
|
|
17681
|
+
var require_src2 = __commonJS({
|
|
17682
|
+
"../../node_modules/socket.io-parser/node_modules/debug/src/index.js"(exports, module) {
|
|
17683
|
+
"use strict";
|
|
17684
|
+
init_esm_shims();
|
|
17685
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
17686
|
+
module.exports = require_browser2();
|
|
17687
|
+
} else {
|
|
17688
|
+
module.exports = require_node2();
|
|
17689
|
+
}
|
|
17690
|
+
}
|
|
17691
|
+
});
|
|
17692
|
+
|
|
16638
17693
|
// ../../node_modules/socket.io-parser/build/cjs/index.js
|
|
16639
17694
|
var require_cjs2 = __commonJS({
|
|
16640
17695
|
"../../node_modules/socket.io-parser/build/cjs/index.js"(exports) {
|
|
@@ -16645,7 +17700,7 @@ var require_cjs2 = __commonJS({
|
|
|
16645
17700
|
var component_emitter_1 = (init_component_emitter(), __toCommonJS(component_emitter_exports));
|
|
16646
17701
|
var binary_js_1 = require_binary();
|
|
16647
17702
|
var is_binary_js_1 = require_is_binary();
|
|
16648
|
-
var debug_1 =
|
|
17703
|
+
var debug_1 = require_src2();
|
|
16649
17704
|
var debug11 = (0, debug_1.default)("socket.io-parser");
|
|
16650
17705
|
var RESERVED_EVENTS3 = [
|
|
16651
17706
|
"connect",
|
|
@@ -16909,6 +17964,532 @@ var require_cjs2 = __commonJS({
|
|
|
16909
17964
|
}
|
|
16910
17965
|
});
|
|
16911
17966
|
|
|
17967
|
+
// ../../node_modules/socket.io/node_modules/debug/src/common.js
|
|
17968
|
+
var require_common3 = __commonJS({
|
|
17969
|
+
"../../node_modules/socket.io/node_modules/debug/src/common.js"(exports, module) {
|
|
17970
|
+
"use strict";
|
|
17971
|
+
init_esm_shims();
|
|
17972
|
+
function setup(env) {
|
|
17973
|
+
createDebug.debug = createDebug;
|
|
17974
|
+
createDebug.default = createDebug;
|
|
17975
|
+
createDebug.coerce = coerce2;
|
|
17976
|
+
createDebug.disable = disable;
|
|
17977
|
+
createDebug.enable = enable;
|
|
17978
|
+
createDebug.enabled = enabled;
|
|
17979
|
+
createDebug.humanize = require_ms();
|
|
17980
|
+
createDebug.destroy = destroy;
|
|
17981
|
+
Object.keys(env).forEach((key) => {
|
|
17982
|
+
createDebug[key] = env[key];
|
|
17983
|
+
});
|
|
17984
|
+
createDebug.names = [];
|
|
17985
|
+
createDebug.skips = [];
|
|
17986
|
+
createDebug.formatters = {};
|
|
17987
|
+
function selectColor(namespace) {
|
|
17988
|
+
let hash = 0;
|
|
17989
|
+
for (let i2 = 0; i2 < namespace.length; i2++) {
|
|
17990
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i2);
|
|
17991
|
+
hash |= 0;
|
|
17992
|
+
}
|
|
17993
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
17994
|
+
}
|
|
17995
|
+
createDebug.selectColor = selectColor;
|
|
17996
|
+
function createDebug(namespace) {
|
|
17997
|
+
let prevTime;
|
|
17998
|
+
let enableOverride = null;
|
|
17999
|
+
let namespacesCache;
|
|
18000
|
+
let enabledCache;
|
|
18001
|
+
function debug11(...args) {
|
|
18002
|
+
if (!debug11.enabled) {
|
|
18003
|
+
return;
|
|
18004
|
+
}
|
|
18005
|
+
const self2 = debug11;
|
|
18006
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
18007
|
+
const ms = curr - (prevTime || curr);
|
|
18008
|
+
self2.diff = ms;
|
|
18009
|
+
self2.prev = prevTime;
|
|
18010
|
+
self2.curr = curr;
|
|
18011
|
+
prevTime = curr;
|
|
18012
|
+
args[0] = createDebug.coerce(args[0]);
|
|
18013
|
+
if (typeof args[0] !== "string") {
|
|
18014
|
+
args.unshift("%O");
|
|
18015
|
+
}
|
|
18016
|
+
let index = 0;
|
|
18017
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
18018
|
+
if (match === "%%") {
|
|
18019
|
+
return "%";
|
|
18020
|
+
}
|
|
18021
|
+
index++;
|
|
18022
|
+
const formatter = createDebug.formatters[format];
|
|
18023
|
+
if (typeof formatter === "function") {
|
|
18024
|
+
const val = args[index];
|
|
18025
|
+
match = formatter.call(self2, val);
|
|
18026
|
+
args.splice(index, 1);
|
|
18027
|
+
index--;
|
|
18028
|
+
}
|
|
18029
|
+
return match;
|
|
18030
|
+
});
|
|
18031
|
+
createDebug.formatArgs.call(self2, args);
|
|
18032
|
+
const logFn = self2.log || createDebug.log;
|
|
18033
|
+
logFn.apply(self2, args);
|
|
18034
|
+
}
|
|
18035
|
+
debug11.namespace = namespace;
|
|
18036
|
+
debug11.useColors = createDebug.useColors();
|
|
18037
|
+
debug11.color = createDebug.selectColor(namespace);
|
|
18038
|
+
debug11.extend = extend;
|
|
18039
|
+
debug11.destroy = createDebug.destroy;
|
|
18040
|
+
Object.defineProperty(debug11, "enabled", {
|
|
18041
|
+
enumerable: true,
|
|
18042
|
+
configurable: false,
|
|
18043
|
+
get: () => {
|
|
18044
|
+
if (enableOverride !== null) {
|
|
18045
|
+
return enableOverride;
|
|
18046
|
+
}
|
|
18047
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
18048
|
+
namespacesCache = createDebug.namespaces;
|
|
18049
|
+
enabledCache = createDebug.enabled(namespace);
|
|
18050
|
+
}
|
|
18051
|
+
return enabledCache;
|
|
18052
|
+
},
|
|
18053
|
+
set: (v) => {
|
|
18054
|
+
enableOverride = v;
|
|
18055
|
+
}
|
|
18056
|
+
});
|
|
18057
|
+
if (typeof createDebug.init === "function") {
|
|
18058
|
+
createDebug.init(debug11);
|
|
18059
|
+
}
|
|
18060
|
+
return debug11;
|
|
18061
|
+
}
|
|
18062
|
+
function extend(namespace, delimiter) {
|
|
18063
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
18064
|
+
newDebug.log = this.log;
|
|
18065
|
+
return newDebug;
|
|
18066
|
+
}
|
|
18067
|
+
function enable(namespaces) {
|
|
18068
|
+
createDebug.save(namespaces);
|
|
18069
|
+
createDebug.namespaces = namespaces;
|
|
18070
|
+
createDebug.names = [];
|
|
18071
|
+
createDebug.skips = [];
|
|
18072
|
+
let i2;
|
|
18073
|
+
const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
|
|
18074
|
+
const len = split.length;
|
|
18075
|
+
for (i2 = 0; i2 < len; i2++) {
|
|
18076
|
+
if (!split[i2]) {
|
|
18077
|
+
continue;
|
|
18078
|
+
}
|
|
18079
|
+
namespaces = split[i2].replace(/\*/g, ".*?");
|
|
18080
|
+
if (namespaces[0] === "-") {
|
|
18081
|
+
createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
|
|
18082
|
+
} else {
|
|
18083
|
+
createDebug.names.push(new RegExp("^" + namespaces + "$"));
|
|
18084
|
+
}
|
|
18085
|
+
}
|
|
18086
|
+
}
|
|
18087
|
+
function disable() {
|
|
18088
|
+
const namespaces = [
|
|
18089
|
+
...createDebug.names.map(toNamespace),
|
|
18090
|
+
...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
|
|
18091
|
+
].join(",");
|
|
18092
|
+
createDebug.enable("");
|
|
18093
|
+
return namespaces;
|
|
18094
|
+
}
|
|
18095
|
+
function enabled(name) {
|
|
18096
|
+
if (name[name.length - 1] === "*") {
|
|
18097
|
+
return true;
|
|
18098
|
+
}
|
|
18099
|
+
let i2;
|
|
18100
|
+
let len;
|
|
18101
|
+
for (i2 = 0, len = createDebug.skips.length; i2 < len; i2++) {
|
|
18102
|
+
if (createDebug.skips[i2].test(name)) {
|
|
18103
|
+
return false;
|
|
18104
|
+
}
|
|
18105
|
+
}
|
|
18106
|
+
for (i2 = 0, len = createDebug.names.length; i2 < len; i2++) {
|
|
18107
|
+
if (createDebug.names[i2].test(name)) {
|
|
18108
|
+
return true;
|
|
18109
|
+
}
|
|
18110
|
+
}
|
|
18111
|
+
return false;
|
|
18112
|
+
}
|
|
18113
|
+
function toNamespace(regexp) {
|
|
18114
|
+
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
18115
|
+
}
|
|
18116
|
+
function coerce2(val) {
|
|
18117
|
+
if (val instanceof Error) {
|
|
18118
|
+
return val.stack || val.message;
|
|
18119
|
+
}
|
|
18120
|
+
return val;
|
|
18121
|
+
}
|
|
18122
|
+
function destroy() {
|
|
18123
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
18124
|
+
}
|
|
18125
|
+
createDebug.enable(createDebug.load());
|
|
18126
|
+
return createDebug;
|
|
18127
|
+
}
|
|
18128
|
+
module.exports = setup;
|
|
18129
|
+
}
|
|
18130
|
+
});
|
|
18131
|
+
|
|
18132
|
+
// ../../node_modules/socket.io/node_modules/debug/src/browser.js
|
|
18133
|
+
var require_browser3 = __commonJS({
|
|
18134
|
+
"../../node_modules/socket.io/node_modules/debug/src/browser.js"(exports, module) {
|
|
18135
|
+
"use strict";
|
|
18136
|
+
init_esm_shims();
|
|
18137
|
+
exports.formatArgs = formatArgs;
|
|
18138
|
+
exports.save = save;
|
|
18139
|
+
exports.load = load;
|
|
18140
|
+
exports.useColors = useColors;
|
|
18141
|
+
exports.storage = localstorage();
|
|
18142
|
+
exports.destroy = /* @__PURE__ */ (() => {
|
|
18143
|
+
let warned = false;
|
|
18144
|
+
return () => {
|
|
18145
|
+
if (!warned) {
|
|
18146
|
+
warned = true;
|
|
18147
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
18148
|
+
}
|
|
18149
|
+
};
|
|
18150
|
+
})();
|
|
18151
|
+
exports.colors = [
|
|
18152
|
+
"#0000CC",
|
|
18153
|
+
"#0000FF",
|
|
18154
|
+
"#0033CC",
|
|
18155
|
+
"#0033FF",
|
|
18156
|
+
"#0066CC",
|
|
18157
|
+
"#0066FF",
|
|
18158
|
+
"#0099CC",
|
|
18159
|
+
"#0099FF",
|
|
18160
|
+
"#00CC00",
|
|
18161
|
+
"#00CC33",
|
|
18162
|
+
"#00CC66",
|
|
18163
|
+
"#00CC99",
|
|
18164
|
+
"#00CCCC",
|
|
18165
|
+
"#00CCFF",
|
|
18166
|
+
"#3300CC",
|
|
18167
|
+
"#3300FF",
|
|
18168
|
+
"#3333CC",
|
|
18169
|
+
"#3333FF",
|
|
18170
|
+
"#3366CC",
|
|
18171
|
+
"#3366FF",
|
|
18172
|
+
"#3399CC",
|
|
18173
|
+
"#3399FF",
|
|
18174
|
+
"#33CC00",
|
|
18175
|
+
"#33CC33",
|
|
18176
|
+
"#33CC66",
|
|
18177
|
+
"#33CC99",
|
|
18178
|
+
"#33CCCC",
|
|
18179
|
+
"#33CCFF",
|
|
18180
|
+
"#6600CC",
|
|
18181
|
+
"#6600FF",
|
|
18182
|
+
"#6633CC",
|
|
18183
|
+
"#6633FF",
|
|
18184
|
+
"#66CC00",
|
|
18185
|
+
"#66CC33",
|
|
18186
|
+
"#9900CC",
|
|
18187
|
+
"#9900FF",
|
|
18188
|
+
"#9933CC",
|
|
18189
|
+
"#9933FF",
|
|
18190
|
+
"#99CC00",
|
|
18191
|
+
"#99CC33",
|
|
18192
|
+
"#CC0000",
|
|
18193
|
+
"#CC0033",
|
|
18194
|
+
"#CC0066",
|
|
18195
|
+
"#CC0099",
|
|
18196
|
+
"#CC00CC",
|
|
18197
|
+
"#CC00FF",
|
|
18198
|
+
"#CC3300",
|
|
18199
|
+
"#CC3333",
|
|
18200
|
+
"#CC3366",
|
|
18201
|
+
"#CC3399",
|
|
18202
|
+
"#CC33CC",
|
|
18203
|
+
"#CC33FF",
|
|
18204
|
+
"#CC6600",
|
|
18205
|
+
"#CC6633",
|
|
18206
|
+
"#CC9900",
|
|
18207
|
+
"#CC9933",
|
|
18208
|
+
"#CCCC00",
|
|
18209
|
+
"#CCCC33",
|
|
18210
|
+
"#FF0000",
|
|
18211
|
+
"#FF0033",
|
|
18212
|
+
"#FF0066",
|
|
18213
|
+
"#FF0099",
|
|
18214
|
+
"#FF00CC",
|
|
18215
|
+
"#FF00FF",
|
|
18216
|
+
"#FF3300",
|
|
18217
|
+
"#FF3333",
|
|
18218
|
+
"#FF3366",
|
|
18219
|
+
"#FF3399",
|
|
18220
|
+
"#FF33CC",
|
|
18221
|
+
"#FF33FF",
|
|
18222
|
+
"#FF6600",
|
|
18223
|
+
"#FF6633",
|
|
18224
|
+
"#FF9900",
|
|
18225
|
+
"#FF9933",
|
|
18226
|
+
"#FFCC00",
|
|
18227
|
+
"#FFCC33"
|
|
18228
|
+
];
|
|
18229
|
+
function useColors() {
|
|
18230
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
18231
|
+
return true;
|
|
18232
|
+
}
|
|
18233
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
18234
|
+
return false;
|
|
18235
|
+
}
|
|
18236
|
+
let m;
|
|
18237
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
18238
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
18239
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
18240
|
+
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
18241
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
18242
|
+
}
|
|
18243
|
+
function formatArgs(args) {
|
|
18244
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
|
|
18245
|
+
if (!this.useColors) {
|
|
18246
|
+
return;
|
|
18247
|
+
}
|
|
18248
|
+
const c = "color: " + this.color;
|
|
18249
|
+
args.splice(1, 0, c, "color: inherit");
|
|
18250
|
+
let index = 0;
|
|
18251
|
+
let lastC = 0;
|
|
18252
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
18253
|
+
if (match === "%%") {
|
|
18254
|
+
return;
|
|
18255
|
+
}
|
|
18256
|
+
index++;
|
|
18257
|
+
if (match === "%c") {
|
|
18258
|
+
lastC = index;
|
|
18259
|
+
}
|
|
18260
|
+
});
|
|
18261
|
+
args.splice(lastC, 0, c);
|
|
18262
|
+
}
|
|
18263
|
+
exports.log = console.debug || console.log || (() => {
|
|
18264
|
+
});
|
|
18265
|
+
function save(namespaces) {
|
|
18266
|
+
try {
|
|
18267
|
+
if (namespaces) {
|
|
18268
|
+
exports.storage.setItem("debug", namespaces);
|
|
18269
|
+
} else {
|
|
18270
|
+
exports.storage.removeItem("debug");
|
|
18271
|
+
}
|
|
18272
|
+
} catch (error) {
|
|
18273
|
+
}
|
|
18274
|
+
}
|
|
18275
|
+
function load() {
|
|
18276
|
+
let r;
|
|
18277
|
+
try {
|
|
18278
|
+
r = exports.storage.getItem("debug");
|
|
18279
|
+
} catch (error) {
|
|
18280
|
+
}
|
|
18281
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
18282
|
+
r = process.env.DEBUG;
|
|
18283
|
+
}
|
|
18284
|
+
return r;
|
|
18285
|
+
}
|
|
18286
|
+
function localstorage() {
|
|
18287
|
+
try {
|
|
18288
|
+
return localStorage;
|
|
18289
|
+
} catch (error) {
|
|
18290
|
+
}
|
|
18291
|
+
}
|
|
18292
|
+
module.exports = require_common3()(exports);
|
|
18293
|
+
var { formatters } = module.exports;
|
|
18294
|
+
formatters.j = function(v) {
|
|
18295
|
+
try {
|
|
18296
|
+
return JSON.stringify(v);
|
|
18297
|
+
} catch (error) {
|
|
18298
|
+
return "[UnexpectedJSONParseError]: " + error.message;
|
|
18299
|
+
}
|
|
18300
|
+
};
|
|
18301
|
+
}
|
|
18302
|
+
});
|
|
18303
|
+
|
|
18304
|
+
// ../../node_modules/socket.io/node_modules/debug/src/node.js
|
|
18305
|
+
var require_node3 = __commonJS({
|
|
18306
|
+
"../../node_modules/socket.io/node_modules/debug/src/node.js"(exports, module) {
|
|
18307
|
+
"use strict";
|
|
18308
|
+
init_esm_shims();
|
|
18309
|
+
var tty = __require("tty");
|
|
18310
|
+
var util2 = __require("util");
|
|
18311
|
+
exports.init = init;
|
|
18312
|
+
exports.log = log;
|
|
18313
|
+
exports.formatArgs = formatArgs;
|
|
18314
|
+
exports.save = save;
|
|
18315
|
+
exports.load = load;
|
|
18316
|
+
exports.useColors = useColors;
|
|
18317
|
+
exports.destroy = util2.deprecate(
|
|
18318
|
+
() => {
|
|
18319
|
+
},
|
|
18320
|
+
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
18321
|
+
);
|
|
18322
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
18323
|
+
try {
|
|
18324
|
+
const supportsColor = require_supports_color();
|
|
18325
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
18326
|
+
exports.colors = [
|
|
18327
|
+
20,
|
|
18328
|
+
21,
|
|
18329
|
+
26,
|
|
18330
|
+
27,
|
|
18331
|
+
32,
|
|
18332
|
+
33,
|
|
18333
|
+
38,
|
|
18334
|
+
39,
|
|
18335
|
+
40,
|
|
18336
|
+
41,
|
|
18337
|
+
42,
|
|
18338
|
+
43,
|
|
18339
|
+
44,
|
|
18340
|
+
45,
|
|
18341
|
+
56,
|
|
18342
|
+
57,
|
|
18343
|
+
62,
|
|
18344
|
+
63,
|
|
18345
|
+
68,
|
|
18346
|
+
69,
|
|
18347
|
+
74,
|
|
18348
|
+
75,
|
|
18349
|
+
76,
|
|
18350
|
+
77,
|
|
18351
|
+
78,
|
|
18352
|
+
79,
|
|
18353
|
+
80,
|
|
18354
|
+
81,
|
|
18355
|
+
92,
|
|
18356
|
+
93,
|
|
18357
|
+
98,
|
|
18358
|
+
99,
|
|
18359
|
+
112,
|
|
18360
|
+
113,
|
|
18361
|
+
128,
|
|
18362
|
+
129,
|
|
18363
|
+
134,
|
|
18364
|
+
135,
|
|
18365
|
+
148,
|
|
18366
|
+
149,
|
|
18367
|
+
160,
|
|
18368
|
+
161,
|
|
18369
|
+
162,
|
|
18370
|
+
163,
|
|
18371
|
+
164,
|
|
18372
|
+
165,
|
|
18373
|
+
166,
|
|
18374
|
+
167,
|
|
18375
|
+
168,
|
|
18376
|
+
169,
|
|
18377
|
+
170,
|
|
18378
|
+
171,
|
|
18379
|
+
172,
|
|
18380
|
+
173,
|
|
18381
|
+
178,
|
|
18382
|
+
179,
|
|
18383
|
+
184,
|
|
18384
|
+
185,
|
|
18385
|
+
196,
|
|
18386
|
+
197,
|
|
18387
|
+
198,
|
|
18388
|
+
199,
|
|
18389
|
+
200,
|
|
18390
|
+
201,
|
|
18391
|
+
202,
|
|
18392
|
+
203,
|
|
18393
|
+
204,
|
|
18394
|
+
205,
|
|
18395
|
+
206,
|
|
18396
|
+
207,
|
|
18397
|
+
208,
|
|
18398
|
+
209,
|
|
18399
|
+
214,
|
|
18400
|
+
215,
|
|
18401
|
+
220,
|
|
18402
|
+
221
|
|
18403
|
+
];
|
|
18404
|
+
}
|
|
18405
|
+
} catch (error) {
|
|
18406
|
+
}
|
|
18407
|
+
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
18408
|
+
return /^debug_/i.test(key);
|
|
18409
|
+
}).reduce((obj, key) => {
|
|
18410
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
18411
|
+
return k.toUpperCase();
|
|
18412
|
+
});
|
|
18413
|
+
let val = process.env[key];
|
|
18414
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
18415
|
+
val = true;
|
|
18416
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
18417
|
+
val = false;
|
|
18418
|
+
} else if (val === "null") {
|
|
18419
|
+
val = null;
|
|
18420
|
+
} else {
|
|
18421
|
+
val = Number(val);
|
|
18422
|
+
}
|
|
18423
|
+
obj[prop] = val;
|
|
18424
|
+
return obj;
|
|
18425
|
+
}, {});
|
|
18426
|
+
function useColors() {
|
|
18427
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
18428
|
+
}
|
|
18429
|
+
function formatArgs(args) {
|
|
18430
|
+
const { namespace: name, useColors: useColors2 } = this;
|
|
18431
|
+
if (useColors2) {
|
|
18432
|
+
const c = this.color;
|
|
18433
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
18434
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
18435
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
18436
|
+
args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
|
|
18437
|
+
} else {
|
|
18438
|
+
args[0] = getDate() + name + " " + args[0];
|
|
18439
|
+
}
|
|
18440
|
+
}
|
|
18441
|
+
function getDate() {
|
|
18442
|
+
if (exports.inspectOpts.hideDate) {
|
|
18443
|
+
return "";
|
|
18444
|
+
}
|
|
18445
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
18446
|
+
}
|
|
18447
|
+
function log(...args) {
|
|
18448
|
+
return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
18449
|
+
}
|
|
18450
|
+
function save(namespaces) {
|
|
18451
|
+
if (namespaces) {
|
|
18452
|
+
process.env.DEBUG = namespaces;
|
|
18453
|
+
} else {
|
|
18454
|
+
delete process.env.DEBUG;
|
|
18455
|
+
}
|
|
18456
|
+
}
|
|
18457
|
+
function load() {
|
|
18458
|
+
return process.env.DEBUG;
|
|
18459
|
+
}
|
|
18460
|
+
function init(debug11) {
|
|
18461
|
+
debug11.inspectOpts = {};
|
|
18462
|
+
const keys = Object.keys(exports.inspectOpts);
|
|
18463
|
+
for (let i2 = 0; i2 < keys.length; i2++) {
|
|
18464
|
+
debug11.inspectOpts[keys[i2]] = exports.inspectOpts[keys[i2]];
|
|
18465
|
+
}
|
|
18466
|
+
}
|
|
18467
|
+
module.exports = require_common3()(exports);
|
|
18468
|
+
var { formatters } = module.exports;
|
|
18469
|
+
formatters.o = function(v) {
|
|
18470
|
+
this.inspectOpts.colors = this.useColors;
|
|
18471
|
+
return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
18472
|
+
};
|
|
18473
|
+
formatters.O = function(v) {
|
|
18474
|
+
this.inspectOpts.colors = this.useColors;
|
|
18475
|
+
return util2.inspect(v, this.inspectOpts);
|
|
18476
|
+
};
|
|
18477
|
+
}
|
|
18478
|
+
});
|
|
18479
|
+
|
|
18480
|
+
// ../../node_modules/socket.io/node_modules/debug/src/index.js
|
|
18481
|
+
var require_src3 = __commonJS({
|
|
18482
|
+
"../../node_modules/socket.io/node_modules/debug/src/index.js"(exports, module) {
|
|
18483
|
+
"use strict";
|
|
18484
|
+
init_esm_shims();
|
|
18485
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
18486
|
+
module.exports = require_browser3();
|
|
18487
|
+
} else {
|
|
18488
|
+
module.exports = require_node3();
|
|
18489
|
+
}
|
|
18490
|
+
}
|
|
18491
|
+
});
|
|
18492
|
+
|
|
16912
18493
|
// ../../node_modules/socket.io/dist/client.js
|
|
16913
18494
|
var require_client = __commonJS({
|
|
16914
18495
|
"../../node_modules/socket.io/dist/client.js"(exports) {
|
|
@@ -16917,7 +18498,7 @@ var require_client = __commonJS({
|
|
|
16917
18498
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16918
18499
|
exports.Client = void 0;
|
|
16919
18500
|
var socket_io_parser_1 = require_cjs2();
|
|
16920
|
-
var debugModule11 =
|
|
18501
|
+
var debugModule11 = require_src3();
|
|
16921
18502
|
var url2 = __require("url");
|
|
16922
18503
|
var debug11 = debugModule11("socket.io:client");
|
|
16923
18504
|
var Client = class {
|
|
@@ -17682,7 +19263,7 @@ var require_socket2 = __commonJS({
|
|
|
17682
19263
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17683
19264
|
exports.Socket = exports.RESERVED_EVENTS = void 0;
|
|
17684
19265
|
var socket_io_parser_1 = require_cjs2();
|
|
17685
|
-
var debug_1 = __importDefault(
|
|
19266
|
+
var debug_1 = __importDefault(require_src3());
|
|
17686
19267
|
var typed_events_1 = require_typed_events();
|
|
17687
19268
|
var base64id_1 = __importDefault(require_base64id());
|
|
17688
19269
|
var broadcast_operator_1 = require_broadcast_operator();
|
|
@@ -18598,7 +20179,7 @@ var require_namespace = __commonJS({
|
|
|
18598
20179
|
exports.Namespace = exports.RESERVED_EVENTS = void 0;
|
|
18599
20180
|
var socket_1 = require_socket2();
|
|
18600
20181
|
var typed_events_1 = require_typed_events();
|
|
18601
|
-
var debug_1 = __importDefault(
|
|
20182
|
+
var debug_1 = __importDefault(require_src3());
|
|
18602
20183
|
var broadcast_operator_1 = require_broadcast_operator();
|
|
18603
20184
|
var debug11 = (0, debug_1.default)("socket.io:namespace");
|
|
18604
20185
|
exports.RESERVED_EVENTS = /* @__PURE__ */ new Set(["connect", "connection", "new_namespace"]);
|
|
@@ -22943,7 +24524,7 @@ var require_parent_namespace = __commonJS({
|
|
|
22943
24524
|
exports.ParentNamespace = void 0;
|
|
22944
24525
|
var namespace_1 = require_namespace();
|
|
22945
24526
|
var socket_io_adapter_1 = require_dist();
|
|
22946
|
-
var debug_1 = __importDefault(
|
|
24527
|
+
var debug_1 = __importDefault(require_src3());
|
|
22947
24528
|
var debug11 = (0, debug_1.default)("socket.io:parent-namespace");
|
|
22948
24529
|
var ParentNamespace = class _ParentNamespace extends namespace_1.Namespace {
|
|
22949
24530
|
constructor(server) {
|
|
@@ -23017,7 +24598,7 @@ var require_uws = __commonJS({
|
|
|
23017
24598
|
exports.serveFile = exports.restoreAdapter = exports.patchAdapter = void 0;
|
|
23018
24599
|
var socket_io_adapter_1 = require_dist();
|
|
23019
24600
|
var fs_1 = __require("fs");
|
|
23020
|
-
var debug_1 = __importDefault(
|
|
24601
|
+
var debug_1 = __importDefault(require_src3());
|
|
23021
24602
|
var debug11 = (0, debug_1.default)("socket.io:adapter-uws");
|
|
23022
24603
|
var SEPARATOR2 = "";
|
|
23023
24604
|
var { addAll, del, broadcast } = socket_io_adapter_1.Adapter.prototype;
|
|
@@ -23290,7 +24871,7 @@ var require_dist2 = __commonJS({
|
|
|
23290
24871
|
var parent_namespace_1 = require_parent_namespace();
|
|
23291
24872
|
var socket_io_adapter_1 = require_dist();
|
|
23292
24873
|
var parser = __importStar(require_cjs2());
|
|
23293
|
-
var debug_1 = __importDefault(
|
|
24874
|
+
var debug_1 = __importDefault(require_src3());
|
|
23294
24875
|
var socket_1 = require_socket2();
|
|
23295
24876
|
Object.defineProperty(exports, "Socket", { enumerable: true, get: function() {
|
|
23296
24877
|
return socket_1.Socket;
|
|
@@ -23978,6 +25559,532 @@ var require_dist2 = __commonJS({
|
|
|
23978
25559
|
}
|
|
23979
25560
|
});
|
|
23980
25561
|
|
|
25562
|
+
// ../../node_modules/engine.io-client/node_modules/debug/src/common.js
|
|
25563
|
+
var require_common4 = __commonJS({
|
|
25564
|
+
"../../node_modules/engine.io-client/node_modules/debug/src/common.js"(exports, module) {
|
|
25565
|
+
"use strict";
|
|
25566
|
+
init_esm_shims();
|
|
25567
|
+
function setup(env) {
|
|
25568
|
+
createDebug.debug = createDebug;
|
|
25569
|
+
createDebug.default = createDebug;
|
|
25570
|
+
createDebug.coerce = coerce2;
|
|
25571
|
+
createDebug.disable = disable;
|
|
25572
|
+
createDebug.enable = enable;
|
|
25573
|
+
createDebug.enabled = enabled;
|
|
25574
|
+
createDebug.humanize = require_ms();
|
|
25575
|
+
createDebug.destroy = destroy;
|
|
25576
|
+
Object.keys(env).forEach((key) => {
|
|
25577
|
+
createDebug[key] = env[key];
|
|
25578
|
+
});
|
|
25579
|
+
createDebug.names = [];
|
|
25580
|
+
createDebug.skips = [];
|
|
25581
|
+
createDebug.formatters = {};
|
|
25582
|
+
function selectColor(namespace) {
|
|
25583
|
+
let hash = 0;
|
|
25584
|
+
for (let i2 = 0; i2 < namespace.length; i2++) {
|
|
25585
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i2);
|
|
25586
|
+
hash |= 0;
|
|
25587
|
+
}
|
|
25588
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
25589
|
+
}
|
|
25590
|
+
createDebug.selectColor = selectColor;
|
|
25591
|
+
function createDebug(namespace) {
|
|
25592
|
+
let prevTime;
|
|
25593
|
+
let enableOverride = null;
|
|
25594
|
+
let namespacesCache;
|
|
25595
|
+
let enabledCache;
|
|
25596
|
+
function debug11(...args) {
|
|
25597
|
+
if (!debug11.enabled) {
|
|
25598
|
+
return;
|
|
25599
|
+
}
|
|
25600
|
+
const self2 = debug11;
|
|
25601
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
25602
|
+
const ms = curr - (prevTime || curr);
|
|
25603
|
+
self2.diff = ms;
|
|
25604
|
+
self2.prev = prevTime;
|
|
25605
|
+
self2.curr = curr;
|
|
25606
|
+
prevTime = curr;
|
|
25607
|
+
args[0] = createDebug.coerce(args[0]);
|
|
25608
|
+
if (typeof args[0] !== "string") {
|
|
25609
|
+
args.unshift("%O");
|
|
25610
|
+
}
|
|
25611
|
+
let index = 0;
|
|
25612
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
25613
|
+
if (match === "%%") {
|
|
25614
|
+
return "%";
|
|
25615
|
+
}
|
|
25616
|
+
index++;
|
|
25617
|
+
const formatter = createDebug.formatters[format];
|
|
25618
|
+
if (typeof formatter === "function") {
|
|
25619
|
+
const val = args[index];
|
|
25620
|
+
match = formatter.call(self2, val);
|
|
25621
|
+
args.splice(index, 1);
|
|
25622
|
+
index--;
|
|
25623
|
+
}
|
|
25624
|
+
return match;
|
|
25625
|
+
});
|
|
25626
|
+
createDebug.formatArgs.call(self2, args);
|
|
25627
|
+
const logFn = self2.log || createDebug.log;
|
|
25628
|
+
logFn.apply(self2, args);
|
|
25629
|
+
}
|
|
25630
|
+
debug11.namespace = namespace;
|
|
25631
|
+
debug11.useColors = createDebug.useColors();
|
|
25632
|
+
debug11.color = createDebug.selectColor(namespace);
|
|
25633
|
+
debug11.extend = extend;
|
|
25634
|
+
debug11.destroy = createDebug.destroy;
|
|
25635
|
+
Object.defineProperty(debug11, "enabled", {
|
|
25636
|
+
enumerable: true,
|
|
25637
|
+
configurable: false,
|
|
25638
|
+
get: () => {
|
|
25639
|
+
if (enableOverride !== null) {
|
|
25640
|
+
return enableOverride;
|
|
25641
|
+
}
|
|
25642
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
25643
|
+
namespacesCache = createDebug.namespaces;
|
|
25644
|
+
enabledCache = createDebug.enabled(namespace);
|
|
25645
|
+
}
|
|
25646
|
+
return enabledCache;
|
|
25647
|
+
},
|
|
25648
|
+
set: (v) => {
|
|
25649
|
+
enableOverride = v;
|
|
25650
|
+
}
|
|
25651
|
+
});
|
|
25652
|
+
if (typeof createDebug.init === "function") {
|
|
25653
|
+
createDebug.init(debug11);
|
|
25654
|
+
}
|
|
25655
|
+
return debug11;
|
|
25656
|
+
}
|
|
25657
|
+
function extend(namespace, delimiter) {
|
|
25658
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
25659
|
+
newDebug.log = this.log;
|
|
25660
|
+
return newDebug;
|
|
25661
|
+
}
|
|
25662
|
+
function enable(namespaces) {
|
|
25663
|
+
createDebug.save(namespaces);
|
|
25664
|
+
createDebug.namespaces = namespaces;
|
|
25665
|
+
createDebug.names = [];
|
|
25666
|
+
createDebug.skips = [];
|
|
25667
|
+
let i2;
|
|
25668
|
+
const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
|
|
25669
|
+
const len = split.length;
|
|
25670
|
+
for (i2 = 0; i2 < len; i2++) {
|
|
25671
|
+
if (!split[i2]) {
|
|
25672
|
+
continue;
|
|
25673
|
+
}
|
|
25674
|
+
namespaces = split[i2].replace(/\*/g, ".*?");
|
|
25675
|
+
if (namespaces[0] === "-") {
|
|
25676
|
+
createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
|
|
25677
|
+
} else {
|
|
25678
|
+
createDebug.names.push(new RegExp("^" + namespaces + "$"));
|
|
25679
|
+
}
|
|
25680
|
+
}
|
|
25681
|
+
}
|
|
25682
|
+
function disable() {
|
|
25683
|
+
const namespaces = [
|
|
25684
|
+
...createDebug.names.map(toNamespace),
|
|
25685
|
+
...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
|
|
25686
|
+
].join(",");
|
|
25687
|
+
createDebug.enable("");
|
|
25688
|
+
return namespaces;
|
|
25689
|
+
}
|
|
25690
|
+
function enabled(name) {
|
|
25691
|
+
if (name[name.length - 1] === "*") {
|
|
25692
|
+
return true;
|
|
25693
|
+
}
|
|
25694
|
+
let i2;
|
|
25695
|
+
let len;
|
|
25696
|
+
for (i2 = 0, len = createDebug.skips.length; i2 < len; i2++) {
|
|
25697
|
+
if (createDebug.skips[i2].test(name)) {
|
|
25698
|
+
return false;
|
|
25699
|
+
}
|
|
25700
|
+
}
|
|
25701
|
+
for (i2 = 0, len = createDebug.names.length; i2 < len; i2++) {
|
|
25702
|
+
if (createDebug.names[i2].test(name)) {
|
|
25703
|
+
return true;
|
|
25704
|
+
}
|
|
25705
|
+
}
|
|
25706
|
+
return false;
|
|
25707
|
+
}
|
|
25708
|
+
function toNamespace(regexp) {
|
|
25709
|
+
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
25710
|
+
}
|
|
25711
|
+
function coerce2(val) {
|
|
25712
|
+
if (val instanceof Error) {
|
|
25713
|
+
return val.stack || val.message;
|
|
25714
|
+
}
|
|
25715
|
+
return val;
|
|
25716
|
+
}
|
|
25717
|
+
function destroy() {
|
|
25718
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
25719
|
+
}
|
|
25720
|
+
createDebug.enable(createDebug.load());
|
|
25721
|
+
return createDebug;
|
|
25722
|
+
}
|
|
25723
|
+
module.exports = setup;
|
|
25724
|
+
}
|
|
25725
|
+
});
|
|
25726
|
+
|
|
25727
|
+
// ../../node_modules/engine.io-client/node_modules/debug/src/browser.js
|
|
25728
|
+
var require_browser4 = __commonJS({
|
|
25729
|
+
"../../node_modules/engine.io-client/node_modules/debug/src/browser.js"(exports, module) {
|
|
25730
|
+
"use strict";
|
|
25731
|
+
init_esm_shims();
|
|
25732
|
+
exports.formatArgs = formatArgs;
|
|
25733
|
+
exports.save = save;
|
|
25734
|
+
exports.load = load;
|
|
25735
|
+
exports.useColors = useColors;
|
|
25736
|
+
exports.storage = localstorage();
|
|
25737
|
+
exports.destroy = /* @__PURE__ */ (() => {
|
|
25738
|
+
let warned = false;
|
|
25739
|
+
return () => {
|
|
25740
|
+
if (!warned) {
|
|
25741
|
+
warned = true;
|
|
25742
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
25743
|
+
}
|
|
25744
|
+
};
|
|
25745
|
+
})();
|
|
25746
|
+
exports.colors = [
|
|
25747
|
+
"#0000CC",
|
|
25748
|
+
"#0000FF",
|
|
25749
|
+
"#0033CC",
|
|
25750
|
+
"#0033FF",
|
|
25751
|
+
"#0066CC",
|
|
25752
|
+
"#0066FF",
|
|
25753
|
+
"#0099CC",
|
|
25754
|
+
"#0099FF",
|
|
25755
|
+
"#00CC00",
|
|
25756
|
+
"#00CC33",
|
|
25757
|
+
"#00CC66",
|
|
25758
|
+
"#00CC99",
|
|
25759
|
+
"#00CCCC",
|
|
25760
|
+
"#00CCFF",
|
|
25761
|
+
"#3300CC",
|
|
25762
|
+
"#3300FF",
|
|
25763
|
+
"#3333CC",
|
|
25764
|
+
"#3333FF",
|
|
25765
|
+
"#3366CC",
|
|
25766
|
+
"#3366FF",
|
|
25767
|
+
"#3399CC",
|
|
25768
|
+
"#3399FF",
|
|
25769
|
+
"#33CC00",
|
|
25770
|
+
"#33CC33",
|
|
25771
|
+
"#33CC66",
|
|
25772
|
+
"#33CC99",
|
|
25773
|
+
"#33CCCC",
|
|
25774
|
+
"#33CCFF",
|
|
25775
|
+
"#6600CC",
|
|
25776
|
+
"#6600FF",
|
|
25777
|
+
"#6633CC",
|
|
25778
|
+
"#6633FF",
|
|
25779
|
+
"#66CC00",
|
|
25780
|
+
"#66CC33",
|
|
25781
|
+
"#9900CC",
|
|
25782
|
+
"#9900FF",
|
|
25783
|
+
"#9933CC",
|
|
25784
|
+
"#9933FF",
|
|
25785
|
+
"#99CC00",
|
|
25786
|
+
"#99CC33",
|
|
25787
|
+
"#CC0000",
|
|
25788
|
+
"#CC0033",
|
|
25789
|
+
"#CC0066",
|
|
25790
|
+
"#CC0099",
|
|
25791
|
+
"#CC00CC",
|
|
25792
|
+
"#CC00FF",
|
|
25793
|
+
"#CC3300",
|
|
25794
|
+
"#CC3333",
|
|
25795
|
+
"#CC3366",
|
|
25796
|
+
"#CC3399",
|
|
25797
|
+
"#CC33CC",
|
|
25798
|
+
"#CC33FF",
|
|
25799
|
+
"#CC6600",
|
|
25800
|
+
"#CC6633",
|
|
25801
|
+
"#CC9900",
|
|
25802
|
+
"#CC9933",
|
|
25803
|
+
"#CCCC00",
|
|
25804
|
+
"#CCCC33",
|
|
25805
|
+
"#FF0000",
|
|
25806
|
+
"#FF0033",
|
|
25807
|
+
"#FF0066",
|
|
25808
|
+
"#FF0099",
|
|
25809
|
+
"#FF00CC",
|
|
25810
|
+
"#FF00FF",
|
|
25811
|
+
"#FF3300",
|
|
25812
|
+
"#FF3333",
|
|
25813
|
+
"#FF3366",
|
|
25814
|
+
"#FF3399",
|
|
25815
|
+
"#FF33CC",
|
|
25816
|
+
"#FF33FF",
|
|
25817
|
+
"#FF6600",
|
|
25818
|
+
"#FF6633",
|
|
25819
|
+
"#FF9900",
|
|
25820
|
+
"#FF9933",
|
|
25821
|
+
"#FFCC00",
|
|
25822
|
+
"#FFCC33"
|
|
25823
|
+
];
|
|
25824
|
+
function useColors() {
|
|
25825
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
25826
|
+
return true;
|
|
25827
|
+
}
|
|
25828
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
25829
|
+
return false;
|
|
25830
|
+
}
|
|
25831
|
+
let m;
|
|
25832
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
25833
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
25834
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
25835
|
+
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
25836
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
25837
|
+
}
|
|
25838
|
+
function formatArgs(args) {
|
|
25839
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
|
|
25840
|
+
if (!this.useColors) {
|
|
25841
|
+
return;
|
|
25842
|
+
}
|
|
25843
|
+
const c = "color: " + this.color;
|
|
25844
|
+
args.splice(1, 0, c, "color: inherit");
|
|
25845
|
+
let index = 0;
|
|
25846
|
+
let lastC = 0;
|
|
25847
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
25848
|
+
if (match === "%%") {
|
|
25849
|
+
return;
|
|
25850
|
+
}
|
|
25851
|
+
index++;
|
|
25852
|
+
if (match === "%c") {
|
|
25853
|
+
lastC = index;
|
|
25854
|
+
}
|
|
25855
|
+
});
|
|
25856
|
+
args.splice(lastC, 0, c);
|
|
25857
|
+
}
|
|
25858
|
+
exports.log = console.debug || console.log || (() => {
|
|
25859
|
+
});
|
|
25860
|
+
function save(namespaces) {
|
|
25861
|
+
try {
|
|
25862
|
+
if (namespaces) {
|
|
25863
|
+
exports.storage.setItem("debug", namespaces);
|
|
25864
|
+
} else {
|
|
25865
|
+
exports.storage.removeItem("debug");
|
|
25866
|
+
}
|
|
25867
|
+
} catch (error) {
|
|
25868
|
+
}
|
|
25869
|
+
}
|
|
25870
|
+
function load() {
|
|
25871
|
+
let r;
|
|
25872
|
+
try {
|
|
25873
|
+
r = exports.storage.getItem("debug");
|
|
25874
|
+
} catch (error) {
|
|
25875
|
+
}
|
|
25876
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
25877
|
+
r = process.env.DEBUG;
|
|
25878
|
+
}
|
|
25879
|
+
return r;
|
|
25880
|
+
}
|
|
25881
|
+
function localstorage() {
|
|
25882
|
+
try {
|
|
25883
|
+
return localStorage;
|
|
25884
|
+
} catch (error) {
|
|
25885
|
+
}
|
|
25886
|
+
}
|
|
25887
|
+
module.exports = require_common4()(exports);
|
|
25888
|
+
var { formatters } = module.exports;
|
|
25889
|
+
formatters.j = function(v) {
|
|
25890
|
+
try {
|
|
25891
|
+
return JSON.stringify(v);
|
|
25892
|
+
} catch (error) {
|
|
25893
|
+
return "[UnexpectedJSONParseError]: " + error.message;
|
|
25894
|
+
}
|
|
25895
|
+
};
|
|
25896
|
+
}
|
|
25897
|
+
});
|
|
25898
|
+
|
|
25899
|
+
// ../../node_modules/engine.io-client/node_modules/debug/src/node.js
|
|
25900
|
+
var require_node4 = __commonJS({
|
|
25901
|
+
"../../node_modules/engine.io-client/node_modules/debug/src/node.js"(exports, module) {
|
|
25902
|
+
"use strict";
|
|
25903
|
+
init_esm_shims();
|
|
25904
|
+
var tty = __require("tty");
|
|
25905
|
+
var util2 = __require("util");
|
|
25906
|
+
exports.init = init;
|
|
25907
|
+
exports.log = log;
|
|
25908
|
+
exports.formatArgs = formatArgs;
|
|
25909
|
+
exports.save = save;
|
|
25910
|
+
exports.load = load;
|
|
25911
|
+
exports.useColors = useColors;
|
|
25912
|
+
exports.destroy = util2.deprecate(
|
|
25913
|
+
() => {
|
|
25914
|
+
},
|
|
25915
|
+
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
25916
|
+
);
|
|
25917
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
25918
|
+
try {
|
|
25919
|
+
const supportsColor = require_supports_color();
|
|
25920
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
25921
|
+
exports.colors = [
|
|
25922
|
+
20,
|
|
25923
|
+
21,
|
|
25924
|
+
26,
|
|
25925
|
+
27,
|
|
25926
|
+
32,
|
|
25927
|
+
33,
|
|
25928
|
+
38,
|
|
25929
|
+
39,
|
|
25930
|
+
40,
|
|
25931
|
+
41,
|
|
25932
|
+
42,
|
|
25933
|
+
43,
|
|
25934
|
+
44,
|
|
25935
|
+
45,
|
|
25936
|
+
56,
|
|
25937
|
+
57,
|
|
25938
|
+
62,
|
|
25939
|
+
63,
|
|
25940
|
+
68,
|
|
25941
|
+
69,
|
|
25942
|
+
74,
|
|
25943
|
+
75,
|
|
25944
|
+
76,
|
|
25945
|
+
77,
|
|
25946
|
+
78,
|
|
25947
|
+
79,
|
|
25948
|
+
80,
|
|
25949
|
+
81,
|
|
25950
|
+
92,
|
|
25951
|
+
93,
|
|
25952
|
+
98,
|
|
25953
|
+
99,
|
|
25954
|
+
112,
|
|
25955
|
+
113,
|
|
25956
|
+
128,
|
|
25957
|
+
129,
|
|
25958
|
+
134,
|
|
25959
|
+
135,
|
|
25960
|
+
148,
|
|
25961
|
+
149,
|
|
25962
|
+
160,
|
|
25963
|
+
161,
|
|
25964
|
+
162,
|
|
25965
|
+
163,
|
|
25966
|
+
164,
|
|
25967
|
+
165,
|
|
25968
|
+
166,
|
|
25969
|
+
167,
|
|
25970
|
+
168,
|
|
25971
|
+
169,
|
|
25972
|
+
170,
|
|
25973
|
+
171,
|
|
25974
|
+
172,
|
|
25975
|
+
173,
|
|
25976
|
+
178,
|
|
25977
|
+
179,
|
|
25978
|
+
184,
|
|
25979
|
+
185,
|
|
25980
|
+
196,
|
|
25981
|
+
197,
|
|
25982
|
+
198,
|
|
25983
|
+
199,
|
|
25984
|
+
200,
|
|
25985
|
+
201,
|
|
25986
|
+
202,
|
|
25987
|
+
203,
|
|
25988
|
+
204,
|
|
25989
|
+
205,
|
|
25990
|
+
206,
|
|
25991
|
+
207,
|
|
25992
|
+
208,
|
|
25993
|
+
209,
|
|
25994
|
+
214,
|
|
25995
|
+
215,
|
|
25996
|
+
220,
|
|
25997
|
+
221
|
|
25998
|
+
];
|
|
25999
|
+
}
|
|
26000
|
+
} catch (error) {
|
|
26001
|
+
}
|
|
26002
|
+
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
26003
|
+
return /^debug_/i.test(key);
|
|
26004
|
+
}).reduce((obj, key) => {
|
|
26005
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
26006
|
+
return k.toUpperCase();
|
|
26007
|
+
});
|
|
26008
|
+
let val = process.env[key];
|
|
26009
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
26010
|
+
val = true;
|
|
26011
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
26012
|
+
val = false;
|
|
26013
|
+
} else if (val === "null") {
|
|
26014
|
+
val = null;
|
|
26015
|
+
} else {
|
|
26016
|
+
val = Number(val);
|
|
26017
|
+
}
|
|
26018
|
+
obj[prop] = val;
|
|
26019
|
+
return obj;
|
|
26020
|
+
}, {});
|
|
26021
|
+
function useColors() {
|
|
26022
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
26023
|
+
}
|
|
26024
|
+
function formatArgs(args) {
|
|
26025
|
+
const { namespace: name, useColors: useColors2 } = this;
|
|
26026
|
+
if (useColors2) {
|
|
26027
|
+
const c = this.color;
|
|
26028
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
26029
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
26030
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
26031
|
+
args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
|
|
26032
|
+
} else {
|
|
26033
|
+
args[0] = getDate() + name + " " + args[0];
|
|
26034
|
+
}
|
|
26035
|
+
}
|
|
26036
|
+
function getDate() {
|
|
26037
|
+
if (exports.inspectOpts.hideDate) {
|
|
26038
|
+
return "";
|
|
26039
|
+
}
|
|
26040
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
26041
|
+
}
|
|
26042
|
+
function log(...args) {
|
|
26043
|
+
return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
26044
|
+
}
|
|
26045
|
+
function save(namespaces) {
|
|
26046
|
+
if (namespaces) {
|
|
26047
|
+
process.env.DEBUG = namespaces;
|
|
26048
|
+
} else {
|
|
26049
|
+
delete process.env.DEBUG;
|
|
26050
|
+
}
|
|
26051
|
+
}
|
|
26052
|
+
function load() {
|
|
26053
|
+
return process.env.DEBUG;
|
|
26054
|
+
}
|
|
26055
|
+
function init(debug11) {
|
|
26056
|
+
debug11.inspectOpts = {};
|
|
26057
|
+
const keys = Object.keys(exports.inspectOpts);
|
|
26058
|
+
for (let i2 = 0; i2 < keys.length; i2++) {
|
|
26059
|
+
debug11.inspectOpts[keys[i2]] = exports.inspectOpts[keys[i2]];
|
|
26060
|
+
}
|
|
26061
|
+
}
|
|
26062
|
+
module.exports = require_common4()(exports);
|
|
26063
|
+
var { formatters } = module.exports;
|
|
26064
|
+
formatters.o = function(v) {
|
|
26065
|
+
this.inspectOpts.colors = this.useColors;
|
|
26066
|
+
return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
26067
|
+
};
|
|
26068
|
+
formatters.O = function(v) {
|
|
26069
|
+
this.inspectOpts.colors = this.useColors;
|
|
26070
|
+
return util2.inspect(v, this.inspectOpts);
|
|
26071
|
+
};
|
|
26072
|
+
}
|
|
26073
|
+
});
|
|
26074
|
+
|
|
26075
|
+
// ../../node_modules/engine.io-client/node_modules/debug/src/index.js
|
|
26076
|
+
var require_src4 = __commonJS({
|
|
26077
|
+
"../../node_modules/engine.io-client/node_modules/debug/src/index.js"(exports, module) {
|
|
26078
|
+
"use strict";
|
|
26079
|
+
init_esm_shims();
|
|
26080
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
26081
|
+
module.exports = require_browser4();
|
|
26082
|
+
} else {
|
|
26083
|
+
module.exports = require_node4();
|
|
26084
|
+
}
|
|
26085
|
+
}
|
|
26086
|
+
});
|
|
26087
|
+
|
|
23981
26088
|
// ../../node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js
|
|
23982
26089
|
var require_XMLHttpRequest = __commonJS({
|
|
23983
26090
|
"../../node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js"(exports, module) {
|
|
@@ -27757,6 +29864,532 @@ var require_websocket_server3 = __commonJS({
|
|
|
27757
29864
|
}
|
|
27758
29865
|
});
|
|
27759
29866
|
|
|
29867
|
+
// ../../node_modules/socket.io-client/node_modules/debug/src/common.js
|
|
29868
|
+
var require_common5 = __commonJS({
|
|
29869
|
+
"../../node_modules/socket.io-client/node_modules/debug/src/common.js"(exports, module) {
|
|
29870
|
+
"use strict";
|
|
29871
|
+
init_esm_shims();
|
|
29872
|
+
function setup(env) {
|
|
29873
|
+
createDebug.debug = createDebug;
|
|
29874
|
+
createDebug.default = createDebug;
|
|
29875
|
+
createDebug.coerce = coerce2;
|
|
29876
|
+
createDebug.disable = disable;
|
|
29877
|
+
createDebug.enable = enable;
|
|
29878
|
+
createDebug.enabled = enabled;
|
|
29879
|
+
createDebug.humanize = require_ms();
|
|
29880
|
+
createDebug.destroy = destroy;
|
|
29881
|
+
Object.keys(env).forEach((key) => {
|
|
29882
|
+
createDebug[key] = env[key];
|
|
29883
|
+
});
|
|
29884
|
+
createDebug.names = [];
|
|
29885
|
+
createDebug.skips = [];
|
|
29886
|
+
createDebug.formatters = {};
|
|
29887
|
+
function selectColor(namespace) {
|
|
29888
|
+
let hash = 0;
|
|
29889
|
+
for (let i2 = 0; i2 < namespace.length; i2++) {
|
|
29890
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i2);
|
|
29891
|
+
hash |= 0;
|
|
29892
|
+
}
|
|
29893
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
29894
|
+
}
|
|
29895
|
+
createDebug.selectColor = selectColor;
|
|
29896
|
+
function createDebug(namespace) {
|
|
29897
|
+
let prevTime;
|
|
29898
|
+
let enableOverride = null;
|
|
29899
|
+
let namespacesCache;
|
|
29900
|
+
let enabledCache;
|
|
29901
|
+
function debug11(...args) {
|
|
29902
|
+
if (!debug11.enabled) {
|
|
29903
|
+
return;
|
|
29904
|
+
}
|
|
29905
|
+
const self2 = debug11;
|
|
29906
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
29907
|
+
const ms = curr - (prevTime || curr);
|
|
29908
|
+
self2.diff = ms;
|
|
29909
|
+
self2.prev = prevTime;
|
|
29910
|
+
self2.curr = curr;
|
|
29911
|
+
prevTime = curr;
|
|
29912
|
+
args[0] = createDebug.coerce(args[0]);
|
|
29913
|
+
if (typeof args[0] !== "string") {
|
|
29914
|
+
args.unshift("%O");
|
|
29915
|
+
}
|
|
29916
|
+
let index = 0;
|
|
29917
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
|
|
29918
|
+
if (match === "%%") {
|
|
29919
|
+
return "%";
|
|
29920
|
+
}
|
|
29921
|
+
index++;
|
|
29922
|
+
const formatter = createDebug.formatters[format];
|
|
29923
|
+
if (typeof formatter === "function") {
|
|
29924
|
+
const val = args[index];
|
|
29925
|
+
match = formatter.call(self2, val);
|
|
29926
|
+
args.splice(index, 1);
|
|
29927
|
+
index--;
|
|
29928
|
+
}
|
|
29929
|
+
return match;
|
|
29930
|
+
});
|
|
29931
|
+
createDebug.formatArgs.call(self2, args);
|
|
29932
|
+
const logFn = self2.log || createDebug.log;
|
|
29933
|
+
logFn.apply(self2, args);
|
|
29934
|
+
}
|
|
29935
|
+
debug11.namespace = namespace;
|
|
29936
|
+
debug11.useColors = createDebug.useColors();
|
|
29937
|
+
debug11.color = createDebug.selectColor(namespace);
|
|
29938
|
+
debug11.extend = extend;
|
|
29939
|
+
debug11.destroy = createDebug.destroy;
|
|
29940
|
+
Object.defineProperty(debug11, "enabled", {
|
|
29941
|
+
enumerable: true,
|
|
29942
|
+
configurable: false,
|
|
29943
|
+
get: () => {
|
|
29944
|
+
if (enableOverride !== null) {
|
|
29945
|
+
return enableOverride;
|
|
29946
|
+
}
|
|
29947
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
29948
|
+
namespacesCache = createDebug.namespaces;
|
|
29949
|
+
enabledCache = createDebug.enabled(namespace);
|
|
29950
|
+
}
|
|
29951
|
+
return enabledCache;
|
|
29952
|
+
},
|
|
29953
|
+
set: (v) => {
|
|
29954
|
+
enableOverride = v;
|
|
29955
|
+
}
|
|
29956
|
+
});
|
|
29957
|
+
if (typeof createDebug.init === "function") {
|
|
29958
|
+
createDebug.init(debug11);
|
|
29959
|
+
}
|
|
29960
|
+
return debug11;
|
|
29961
|
+
}
|
|
29962
|
+
function extend(namespace, delimiter) {
|
|
29963
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
29964
|
+
newDebug.log = this.log;
|
|
29965
|
+
return newDebug;
|
|
29966
|
+
}
|
|
29967
|
+
function enable(namespaces) {
|
|
29968
|
+
createDebug.save(namespaces);
|
|
29969
|
+
createDebug.namespaces = namespaces;
|
|
29970
|
+
createDebug.names = [];
|
|
29971
|
+
createDebug.skips = [];
|
|
29972
|
+
let i2;
|
|
29973
|
+
const split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
|
|
29974
|
+
const len = split.length;
|
|
29975
|
+
for (i2 = 0; i2 < len; i2++) {
|
|
29976
|
+
if (!split[i2]) {
|
|
29977
|
+
continue;
|
|
29978
|
+
}
|
|
29979
|
+
namespaces = split[i2].replace(/\*/g, ".*?");
|
|
29980
|
+
if (namespaces[0] === "-") {
|
|
29981
|
+
createDebug.skips.push(new RegExp("^" + namespaces.slice(1) + "$"));
|
|
29982
|
+
} else {
|
|
29983
|
+
createDebug.names.push(new RegExp("^" + namespaces + "$"));
|
|
29984
|
+
}
|
|
29985
|
+
}
|
|
29986
|
+
}
|
|
29987
|
+
function disable() {
|
|
29988
|
+
const namespaces = [
|
|
29989
|
+
...createDebug.names.map(toNamespace),
|
|
29990
|
+
...createDebug.skips.map(toNamespace).map((namespace) => "-" + namespace)
|
|
29991
|
+
].join(",");
|
|
29992
|
+
createDebug.enable("");
|
|
29993
|
+
return namespaces;
|
|
29994
|
+
}
|
|
29995
|
+
function enabled(name) {
|
|
29996
|
+
if (name[name.length - 1] === "*") {
|
|
29997
|
+
return true;
|
|
29998
|
+
}
|
|
29999
|
+
let i2;
|
|
30000
|
+
let len;
|
|
30001
|
+
for (i2 = 0, len = createDebug.skips.length; i2 < len; i2++) {
|
|
30002
|
+
if (createDebug.skips[i2].test(name)) {
|
|
30003
|
+
return false;
|
|
30004
|
+
}
|
|
30005
|
+
}
|
|
30006
|
+
for (i2 = 0, len = createDebug.names.length; i2 < len; i2++) {
|
|
30007
|
+
if (createDebug.names[i2].test(name)) {
|
|
30008
|
+
return true;
|
|
30009
|
+
}
|
|
30010
|
+
}
|
|
30011
|
+
return false;
|
|
30012
|
+
}
|
|
30013
|
+
function toNamespace(regexp) {
|
|
30014
|
+
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
30015
|
+
}
|
|
30016
|
+
function coerce2(val) {
|
|
30017
|
+
if (val instanceof Error) {
|
|
30018
|
+
return val.stack || val.message;
|
|
30019
|
+
}
|
|
30020
|
+
return val;
|
|
30021
|
+
}
|
|
30022
|
+
function destroy() {
|
|
30023
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
30024
|
+
}
|
|
30025
|
+
createDebug.enable(createDebug.load());
|
|
30026
|
+
return createDebug;
|
|
30027
|
+
}
|
|
30028
|
+
module.exports = setup;
|
|
30029
|
+
}
|
|
30030
|
+
});
|
|
30031
|
+
|
|
30032
|
+
// ../../node_modules/socket.io-client/node_modules/debug/src/browser.js
|
|
30033
|
+
var require_browser5 = __commonJS({
|
|
30034
|
+
"../../node_modules/socket.io-client/node_modules/debug/src/browser.js"(exports, module) {
|
|
30035
|
+
"use strict";
|
|
30036
|
+
init_esm_shims();
|
|
30037
|
+
exports.formatArgs = formatArgs;
|
|
30038
|
+
exports.save = save;
|
|
30039
|
+
exports.load = load;
|
|
30040
|
+
exports.useColors = useColors;
|
|
30041
|
+
exports.storage = localstorage();
|
|
30042
|
+
exports.destroy = /* @__PURE__ */ (() => {
|
|
30043
|
+
let warned = false;
|
|
30044
|
+
return () => {
|
|
30045
|
+
if (!warned) {
|
|
30046
|
+
warned = true;
|
|
30047
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
30048
|
+
}
|
|
30049
|
+
};
|
|
30050
|
+
})();
|
|
30051
|
+
exports.colors = [
|
|
30052
|
+
"#0000CC",
|
|
30053
|
+
"#0000FF",
|
|
30054
|
+
"#0033CC",
|
|
30055
|
+
"#0033FF",
|
|
30056
|
+
"#0066CC",
|
|
30057
|
+
"#0066FF",
|
|
30058
|
+
"#0099CC",
|
|
30059
|
+
"#0099FF",
|
|
30060
|
+
"#00CC00",
|
|
30061
|
+
"#00CC33",
|
|
30062
|
+
"#00CC66",
|
|
30063
|
+
"#00CC99",
|
|
30064
|
+
"#00CCCC",
|
|
30065
|
+
"#00CCFF",
|
|
30066
|
+
"#3300CC",
|
|
30067
|
+
"#3300FF",
|
|
30068
|
+
"#3333CC",
|
|
30069
|
+
"#3333FF",
|
|
30070
|
+
"#3366CC",
|
|
30071
|
+
"#3366FF",
|
|
30072
|
+
"#3399CC",
|
|
30073
|
+
"#3399FF",
|
|
30074
|
+
"#33CC00",
|
|
30075
|
+
"#33CC33",
|
|
30076
|
+
"#33CC66",
|
|
30077
|
+
"#33CC99",
|
|
30078
|
+
"#33CCCC",
|
|
30079
|
+
"#33CCFF",
|
|
30080
|
+
"#6600CC",
|
|
30081
|
+
"#6600FF",
|
|
30082
|
+
"#6633CC",
|
|
30083
|
+
"#6633FF",
|
|
30084
|
+
"#66CC00",
|
|
30085
|
+
"#66CC33",
|
|
30086
|
+
"#9900CC",
|
|
30087
|
+
"#9900FF",
|
|
30088
|
+
"#9933CC",
|
|
30089
|
+
"#9933FF",
|
|
30090
|
+
"#99CC00",
|
|
30091
|
+
"#99CC33",
|
|
30092
|
+
"#CC0000",
|
|
30093
|
+
"#CC0033",
|
|
30094
|
+
"#CC0066",
|
|
30095
|
+
"#CC0099",
|
|
30096
|
+
"#CC00CC",
|
|
30097
|
+
"#CC00FF",
|
|
30098
|
+
"#CC3300",
|
|
30099
|
+
"#CC3333",
|
|
30100
|
+
"#CC3366",
|
|
30101
|
+
"#CC3399",
|
|
30102
|
+
"#CC33CC",
|
|
30103
|
+
"#CC33FF",
|
|
30104
|
+
"#CC6600",
|
|
30105
|
+
"#CC6633",
|
|
30106
|
+
"#CC9900",
|
|
30107
|
+
"#CC9933",
|
|
30108
|
+
"#CCCC00",
|
|
30109
|
+
"#CCCC33",
|
|
30110
|
+
"#FF0000",
|
|
30111
|
+
"#FF0033",
|
|
30112
|
+
"#FF0066",
|
|
30113
|
+
"#FF0099",
|
|
30114
|
+
"#FF00CC",
|
|
30115
|
+
"#FF00FF",
|
|
30116
|
+
"#FF3300",
|
|
30117
|
+
"#FF3333",
|
|
30118
|
+
"#FF3366",
|
|
30119
|
+
"#FF3399",
|
|
30120
|
+
"#FF33CC",
|
|
30121
|
+
"#FF33FF",
|
|
30122
|
+
"#FF6600",
|
|
30123
|
+
"#FF6633",
|
|
30124
|
+
"#FF9900",
|
|
30125
|
+
"#FF9933",
|
|
30126
|
+
"#FFCC00",
|
|
30127
|
+
"#FFCC33"
|
|
30128
|
+
];
|
|
30129
|
+
function useColors() {
|
|
30130
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) {
|
|
30131
|
+
return true;
|
|
30132
|
+
}
|
|
30133
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
30134
|
+
return false;
|
|
30135
|
+
}
|
|
30136
|
+
let m;
|
|
30137
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
30138
|
+
typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
30139
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
30140
|
+
typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
30141
|
+
typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
30142
|
+
}
|
|
30143
|
+
function formatArgs(args) {
|
|
30144
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module.exports.humanize(this.diff);
|
|
30145
|
+
if (!this.useColors) {
|
|
30146
|
+
return;
|
|
30147
|
+
}
|
|
30148
|
+
const c = "color: " + this.color;
|
|
30149
|
+
args.splice(1, 0, c, "color: inherit");
|
|
30150
|
+
let index = 0;
|
|
30151
|
+
let lastC = 0;
|
|
30152
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
30153
|
+
if (match === "%%") {
|
|
30154
|
+
return;
|
|
30155
|
+
}
|
|
30156
|
+
index++;
|
|
30157
|
+
if (match === "%c") {
|
|
30158
|
+
lastC = index;
|
|
30159
|
+
}
|
|
30160
|
+
});
|
|
30161
|
+
args.splice(lastC, 0, c);
|
|
30162
|
+
}
|
|
30163
|
+
exports.log = console.debug || console.log || (() => {
|
|
30164
|
+
});
|
|
30165
|
+
function save(namespaces) {
|
|
30166
|
+
try {
|
|
30167
|
+
if (namespaces) {
|
|
30168
|
+
exports.storage.setItem("debug", namespaces);
|
|
30169
|
+
} else {
|
|
30170
|
+
exports.storage.removeItem("debug");
|
|
30171
|
+
}
|
|
30172
|
+
} catch (error) {
|
|
30173
|
+
}
|
|
30174
|
+
}
|
|
30175
|
+
function load() {
|
|
30176
|
+
let r;
|
|
30177
|
+
try {
|
|
30178
|
+
r = exports.storage.getItem("debug");
|
|
30179
|
+
} catch (error) {
|
|
30180
|
+
}
|
|
30181
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
30182
|
+
r = process.env.DEBUG;
|
|
30183
|
+
}
|
|
30184
|
+
return r;
|
|
30185
|
+
}
|
|
30186
|
+
function localstorage() {
|
|
30187
|
+
try {
|
|
30188
|
+
return localStorage;
|
|
30189
|
+
} catch (error) {
|
|
30190
|
+
}
|
|
30191
|
+
}
|
|
30192
|
+
module.exports = require_common5()(exports);
|
|
30193
|
+
var { formatters } = module.exports;
|
|
30194
|
+
formatters.j = function(v) {
|
|
30195
|
+
try {
|
|
30196
|
+
return JSON.stringify(v);
|
|
30197
|
+
} catch (error) {
|
|
30198
|
+
return "[UnexpectedJSONParseError]: " + error.message;
|
|
30199
|
+
}
|
|
30200
|
+
};
|
|
30201
|
+
}
|
|
30202
|
+
});
|
|
30203
|
+
|
|
30204
|
+
// ../../node_modules/socket.io-client/node_modules/debug/src/node.js
|
|
30205
|
+
var require_node5 = __commonJS({
|
|
30206
|
+
"../../node_modules/socket.io-client/node_modules/debug/src/node.js"(exports, module) {
|
|
30207
|
+
"use strict";
|
|
30208
|
+
init_esm_shims();
|
|
30209
|
+
var tty = __require("tty");
|
|
30210
|
+
var util2 = __require("util");
|
|
30211
|
+
exports.init = init;
|
|
30212
|
+
exports.log = log;
|
|
30213
|
+
exports.formatArgs = formatArgs;
|
|
30214
|
+
exports.save = save;
|
|
30215
|
+
exports.load = load;
|
|
30216
|
+
exports.useColors = useColors;
|
|
30217
|
+
exports.destroy = util2.deprecate(
|
|
30218
|
+
() => {
|
|
30219
|
+
},
|
|
30220
|
+
"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."
|
|
30221
|
+
);
|
|
30222
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
30223
|
+
try {
|
|
30224
|
+
const supportsColor = require_supports_color();
|
|
30225
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
30226
|
+
exports.colors = [
|
|
30227
|
+
20,
|
|
30228
|
+
21,
|
|
30229
|
+
26,
|
|
30230
|
+
27,
|
|
30231
|
+
32,
|
|
30232
|
+
33,
|
|
30233
|
+
38,
|
|
30234
|
+
39,
|
|
30235
|
+
40,
|
|
30236
|
+
41,
|
|
30237
|
+
42,
|
|
30238
|
+
43,
|
|
30239
|
+
44,
|
|
30240
|
+
45,
|
|
30241
|
+
56,
|
|
30242
|
+
57,
|
|
30243
|
+
62,
|
|
30244
|
+
63,
|
|
30245
|
+
68,
|
|
30246
|
+
69,
|
|
30247
|
+
74,
|
|
30248
|
+
75,
|
|
30249
|
+
76,
|
|
30250
|
+
77,
|
|
30251
|
+
78,
|
|
30252
|
+
79,
|
|
30253
|
+
80,
|
|
30254
|
+
81,
|
|
30255
|
+
92,
|
|
30256
|
+
93,
|
|
30257
|
+
98,
|
|
30258
|
+
99,
|
|
30259
|
+
112,
|
|
30260
|
+
113,
|
|
30261
|
+
128,
|
|
30262
|
+
129,
|
|
30263
|
+
134,
|
|
30264
|
+
135,
|
|
30265
|
+
148,
|
|
30266
|
+
149,
|
|
30267
|
+
160,
|
|
30268
|
+
161,
|
|
30269
|
+
162,
|
|
30270
|
+
163,
|
|
30271
|
+
164,
|
|
30272
|
+
165,
|
|
30273
|
+
166,
|
|
30274
|
+
167,
|
|
30275
|
+
168,
|
|
30276
|
+
169,
|
|
30277
|
+
170,
|
|
30278
|
+
171,
|
|
30279
|
+
172,
|
|
30280
|
+
173,
|
|
30281
|
+
178,
|
|
30282
|
+
179,
|
|
30283
|
+
184,
|
|
30284
|
+
185,
|
|
30285
|
+
196,
|
|
30286
|
+
197,
|
|
30287
|
+
198,
|
|
30288
|
+
199,
|
|
30289
|
+
200,
|
|
30290
|
+
201,
|
|
30291
|
+
202,
|
|
30292
|
+
203,
|
|
30293
|
+
204,
|
|
30294
|
+
205,
|
|
30295
|
+
206,
|
|
30296
|
+
207,
|
|
30297
|
+
208,
|
|
30298
|
+
209,
|
|
30299
|
+
214,
|
|
30300
|
+
215,
|
|
30301
|
+
220,
|
|
30302
|
+
221
|
|
30303
|
+
];
|
|
30304
|
+
}
|
|
30305
|
+
} catch (error) {
|
|
30306
|
+
}
|
|
30307
|
+
exports.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
30308
|
+
return /^debug_/i.test(key);
|
|
30309
|
+
}).reduce((obj, key) => {
|
|
30310
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
30311
|
+
return k.toUpperCase();
|
|
30312
|
+
});
|
|
30313
|
+
let val = process.env[key];
|
|
30314
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
|
30315
|
+
val = true;
|
|
30316
|
+
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
|
30317
|
+
val = false;
|
|
30318
|
+
} else if (val === "null") {
|
|
30319
|
+
val = null;
|
|
30320
|
+
} else {
|
|
30321
|
+
val = Number(val);
|
|
30322
|
+
}
|
|
30323
|
+
obj[prop] = val;
|
|
30324
|
+
return obj;
|
|
30325
|
+
}, {});
|
|
30326
|
+
function useColors() {
|
|
30327
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
30328
|
+
}
|
|
30329
|
+
function formatArgs(args) {
|
|
30330
|
+
const { namespace: name, useColors: useColors2 } = this;
|
|
30331
|
+
if (useColors2) {
|
|
30332
|
+
const c = this.color;
|
|
30333
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
30334
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
30335
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
30336
|
+
args.push(colorCode + "m+" + module.exports.humanize(this.diff) + "\x1B[0m");
|
|
30337
|
+
} else {
|
|
30338
|
+
args[0] = getDate() + name + " " + args[0];
|
|
30339
|
+
}
|
|
30340
|
+
}
|
|
30341
|
+
function getDate() {
|
|
30342
|
+
if (exports.inspectOpts.hideDate) {
|
|
30343
|
+
return "";
|
|
30344
|
+
}
|
|
30345
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
30346
|
+
}
|
|
30347
|
+
function log(...args) {
|
|
30348
|
+
return process.stderr.write(util2.formatWithOptions(exports.inspectOpts, ...args) + "\n");
|
|
30349
|
+
}
|
|
30350
|
+
function save(namespaces) {
|
|
30351
|
+
if (namespaces) {
|
|
30352
|
+
process.env.DEBUG = namespaces;
|
|
30353
|
+
} else {
|
|
30354
|
+
delete process.env.DEBUG;
|
|
30355
|
+
}
|
|
30356
|
+
}
|
|
30357
|
+
function load() {
|
|
30358
|
+
return process.env.DEBUG;
|
|
30359
|
+
}
|
|
30360
|
+
function init(debug11) {
|
|
30361
|
+
debug11.inspectOpts = {};
|
|
30362
|
+
const keys = Object.keys(exports.inspectOpts);
|
|
30363
|
+
for (let i2 = 0; i2 < keys.length; i2++) {
|
|
30364
|
+
debug11.inspectOpts[keys[i2]] = exports.inspectOpts[keys[i2]];
|
|
30365
|
+
}
|
|
30366
|
+
}
|
|
30367
|
+
module.exports = require_common5()(exports);
|
|
30368
|
+
var { formatters } = module.exports;
|
|
30369
|
+
formatters.o = function(v) {
|
|
30370
|
+
this.inspectOpts.colors = this.useColors;
|
|
30371
|
+
return util2.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
30372
|
+
};
|
|
30373
|
+
formatters.O = function(v) {
|
|
30374
|
+
this.inspectOpts.colors = this.useColors;
|
|
30375
|
+
return util2.inspect(v, this.inspectOpts);
|
|
30376
|
+
};
|
|
30377
|
+
}
|
|
30378
|
+
});
|
|
30379
|
+
|
|
30380
|
+
// ../../node_modules/socket.io-client/node_modules/debug/src/index.js
|
|
30381
|
+
var require_src5 = __commonJS({
|
|
30382
|
+
"../../node_modules/socket.io-client/node_modules/debug/src/index.js"(exports, module) {
|
|
30383
|
+
"use strict";
|
|
30384
|
+
init_esm_shims();
|
|
30385
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
30386
|
+
module.exports = require_browser5();
|
|
30387
|
+
} else {
|
|
30388
|
+
module.exports = require_node5();
|
|
30389
|
+
}
|
|
30390
|
+
}
|
|
30391
|
+
});
|
|
30392
|
+
|
|
27760
30393
|
// ../../node_modules/picomatch/lib/constants.js
|
|
27761
30394
|
var require_constants4 = __commonJS({
|
|
27762
30395
|
"../../node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
@@ -33171,7 +35804,7 @@ function utf8Length(str) {
|
|
|
33171
35804
|
}
|
|
33172
35805
|
|
|
33173
35806
|
// ../../node_modules/engine.io-client/build/esm-debug/transport.js
|
|
33174
|
-
var import_debug = __toESM(
|
|
35807
|
+
var import_debug = __toESM(require_src4(), 1);
|
|
33175
35808
|
|
|
33176
35809
|
// ../../node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js
|
|
33177
35810
|
init_esm_shims();
|
|
@@ -33329,7 +35962,7 @@ var Transport = class extends Emitter {
|
|
|
33329
35962
|
};
|
|
33330
35963
|
|
|
33331
35964
|
// ../../node_modules/engine.io-client/build/esm-debug/transports/polling.js
|
|
33332
|
-
var import_debug2 = __toESM(
|
|
35965
|
+
var import_debug2 = __toESM(require_src4(), 1);
|
|
33333
35966
|
|
|
33334
35967
|
// ../../node_modules/engine.io-client/build/esm-debug/contrib/yeast.js
|
|
33335
35968
|
init_esm_shims();
|
|
@@ -33824,7 +36457,7 @@ var defaultBinaryType = "nodebuffer";
|
|
|
33824
36457
|
var nextTick = process.nextTick;
|
|
33825
36458
|
|
|
33826
36459
|
// ../../node_modules/engine.io-client/build/esm-debug/transports/websocket.js
|
|
33827
|
-
var import_debug3 = __toESM(
|
|
36460
|
+
var import_debug3 = __toESM(require_src4(), 1);
|
|
33828
36461
|
var debug3 = (0, import_debug3.default)("engine.io-client:websocket");
|
|
33829
36462
|
var isReactNative = typeof navigator !== "undefined" && typeof navigator.product === "string" && navigator.product.toLowerCase() === "reactnative";
|
|
33830
36463
|
var WS = class extends Transport {
|
|
@@ -33952,7 +36585,7 @@ var WS = class extends Transport {
|
|
|
33952
36585
|
|
|
33953
36586
|
// ../../node_modules/engine.io-client/build/esm-debug/transports/webtransport.js
|
|
33954
36587
|
init_esm_shims();
|
|
33955
|
-
var import_debug4 = __toESM(
|
|
36588
|
+
var import_debug4 = __toESM(require_src4(), 1);
|
|
33956
36589
|
var debug4 = (0, import_debug4.default)("engine.io-client:webtransport");
|
|
33957
36590
|
var WT = class extends Transport {
|
|
33958
36591
|
get name() {
|
|
@@ -34086,7 +36719,7 @@ function queryKey(uri, query) {
|
|
|
34086
36719
|
}
|
|
34087
36720
|
|
|
34088
36721
|
// ../../node_modules/engine.io-client/build/esm-debug/socket.js
|
|
34089
|
-
var import_debug5 = __toESM(
|
|
36722
|
+
var import_debug5 = __toESM(require_src4(), 1);
|
|
34090
36723
|
init_component_emitter();
|
|
34091
36724
|
var debug5 = (0, import_debug5.default)("engine.io-client:socket");
|
|
34092
36725
|
var Socket2 = class _Socket extends Emitter {
|
|
@@ -34622,7 +37255,7 @@ Socket2.protocol = protocol;
|
|
|
34622
37255
|
var protocol2 = Socket2.protocol;
|
|
34623
37256
|
|
|
34624
37257
|
// ../../node_modules/socket.io-client/build/esm-debug/url.js
|
|
34625
|
-
var import_debug6 = __toESM(
|
|
37258
|
+
var import_debug6 = __toESM(require_src5(), 1);
|
|
34626
37259
|
var debug6 = (0, import_debug6.default)("socket.io-client:url");
|
|
34627
37260
|
function url(uri, path2 = "", loc) {
|
|
34628
37261
|
let obj = uri;
|
|
@@ -34784,7 +37417,7 @@ function _reconstructPacket(data, buffers) {
|
|
|
34784
37417
|
}
|
|
34785
37418
|
|
|
34786
37419
|
// ../../node_modules/socket.io-parser/build/esm-debug/index.js
|
|
34787
|
-
var import_debug7 = __toESM(
|
|
37420
|
+
var import_debug7 = __toESM(require_src2(), 1);
|
|
34788
37421
|
var debug7 = (0, import_debug7.default)("socket.io-parser");
|
|
34789
37422
|
var RESERVED_EVENTS = [
|
|
34790
37423
|
"connect",
|
|
@@ -35055,7 +37688,7 @@ function on(obj, ev, fn) {
|
|
|
35055
37688
|
|
|
35056
37689
|
// ../../node_modules/socket.io-client/build/esm-debug/socket.js
|
|
35057
37690
|
init_component_emitter();
|
|
35058
|
-
var import_debug8 = __toESM(
|
|
37691
|
+
var import_debug8 = __toESM(require_src5(), 1);
|
|
35059
37692
|
var debug8 = (0, import_debug8.default)("socket.io-client:socket");
|
|
35060
37693
|
var RESERVED_EVENTS2 = Object.freeze({
|
|
35061
37694
|
connect: 1,
|
|
@@ -35881,7 +38514,7 @@ Backoff.prototype.setJitter = function(jitter) {
|
|
|
35881
38514
|
|
|
35882
38515
|
// ../../node_modules/socket.io-client/build/esm-debug/manager.js
|
|
35883
38516
|
init_component_emitter();
|
|
35884
|
-
var import_debug9 = __toESM(
|
|
38517
|
+
var import_debug9 = __toESM(require_src5(), 1);
|
|
35885
38518
|
var debug9 = (0, import_debug9.default)("socket.io-client:manager");
|
|
35886
38519
|
var Manager = class extends Emitter {
|
|
35887
38520
|
constructor(uri, opts) {
|
|
@@ -36236,7 +38869,7 @@ var Manager = class extends Emitter {
|
|
|
36236
38869
|
};
|
|
36237
38870
|
|
|
36238
38871
|
// ../../node_modules/socket.io-client/build/esm-debug/index.js
|
|
36239
|
-
var import_debug10 = __toESM(
|
|
38872
|
+
var import_debug10 = __toESM(require_src5(), 1);
|
|
36240
38873
|
var debug10 = (0, import_debug10.default)("socket.io-client");
|
|
36241
38874
|
var cache = {};
|
|
36242
38875
|
function lookup(uri, opts) {
|
|
@@ -54312,6 +56945,9 @@ var quotelessJson = (obj) => {
|
|
|
54312
56945
|
return json.replace(/"([^"]+)":/g, "$1:");
|
|
54313
56946
|
};
|
|
54314
56947
|
var ZodError = class _ZodError extends Error {
|
|
56948
|
+
get errors() {
|
|
56949
|
+
return this.issues;
|
|
56950
|
+
}
|
|
54315
56951
|
constructor(issues) {
|
|
54316
56952
|
super();
|
|
54317
56953
|
this.issues = [];
|
|
@@ -54330,9 +56966,6 @@ var ZodError = class _ZodError extends Error {
|
|
|
54330
56966
|
this.name = "ZodError";
|
|
54331
56967
|
this.issues = issues;
|
|
54332
56968
|
}
|
|
54333
|
-
get errors() {
|
|
54334
|
-
return this.issues;
|
|
54335
|
-
}
|
|
54336
56969
|
format(_mapper) {
|
|
54337
56970
|
const mapper = _mapper || function(issue) {
|
|
54338
56971
|
return issue.message;
|
|
@@ -54543,8 +57176,11 @@ function addIssueToContext(ctx, issueData) {
|
|
|
54543
57176
|
path: ctx.path,
|
|
54544
57177
|
errorMaps: [
|
|
54545
57178
|
ctx.common.contextualErrorMap,
|
|
57179
|
+
// contextual error map is first priority
|
|
54546
57180
|
ctx.schemaErrorMap,
|
|
57181
|
+
// then schema-bound map if available
|
|
54547
57182
|
overrideMap,
|
|
57183
|
+
// then global override map
|
|
54548
57184
|
overrideMap === errorMap ? void 0 : errorMap
|
|
54549
57185
|
// then global default map
|
|
54550
57186
|
].filter((x) => !!x)
|
|
@@ -54695,34 +57331,6 @@ function processCreateParams(params) {
|
|
|
54695
57331
|
return { errorMap: customMap, description };
|
|
54696
57332
|
}
|
|
54697
57333
|
var ZodType = class {
|
|
54698
|
-
constructor(def) {
|
|
54699
|
-
this.spa = this.safeParseAsync;
|
|
54700
|
-
this._def = def;
|
|
54701
|
-
this.parse = this.parse.bind(this);
|
|
54702
|
-
this.safeParse = this.safeParse.bind(this);
|
|
54703
|
-
this.parseAsync = this.parseAsync.bind(this);
|
|
54704
|
-
this.safeParseAsync = this.safeParseAsync.bind(this);
|
|
54705
|
-
this.spa = this.spa.bind(this);
|
|
54706
|
-
this.refine = this.refine.bind(this);
|
|
54707
|
-
this.refinement = this.refinement.bind(this);
|
|
54708
|
-
this.superRefine = this.superRefine.bind(this);
|
|
54709
|
-
this.optional = this.optional.bind(this);
|
|
54710
|
-
this.nullable = this.nullable.bind(this);
|
|
54711
|
-
this.nullish = this.nullish.bind(this);
|
|
54712
|
-
this.array = this.array.bind(this);
|
|
54713
|
-
this.promise = this.promise.bind(this);
|
|
54714
|
-
this.or = this.or.bind(this);
|
|
54715
|
-
this.and = this.and.bind(this);
|
|
54716
|
-
this.transform = this.transform.bind(this);
|
|
54717
|
-
this.brand = this.brand.bind(this);
|
|
54718
|
-
this.default = this.default.bind(this);
|
|
54719
|
-
this.catch = this.catch.bind(this);
|
|
54720
|
-
this.describe = this.describe.bind(this);
|
|
54721
|
-
this.pipe = this.pipe.bind(this);
|
|
54722
|
-
this.readonly = this.readonly.bind(this);
|
|
54723
|
-
this.isNullable = this.isNullable.bind(this);
|
|
54724
|
-
this.isOptional = this.isOptional.bind(this);
|
|
54725
|
-
}
|
|
54726
57334
|
get description() {
|
|
54727
57335
|
return this._def.description;
|
|
54728
57336
|
}
|
|
@@ -54786,6 +57394,43 @@ var ZodType = class {
|
|
|
54786
57394
|
const result = this._parseSync({ data, path: ctx.path, parent: ctx });
|
|
54787
57395
|
return handleResult(ctx, result);
|
|
54788
57396
|
}
|
|
57397
|
+
"~validate"(data) {
|
|
57398
|
+
var _a, _b;
|
|
57399
|
+
const ctx = {
|
|
57400
|
+
common: {
|
|
57401
|
+
issues: [],
|
|
57402
|
+
async: !!this["~standard"].async
|
|
57403
|
+
},
|
|
57404
|
+
path: [],
|
|
57405
|
+
schemaErrorMap: this._def.errorMap,
|
|
57406
|
+
parent: null,
|
|
57407
|
+
data,
|
|
57408
|
+
parsedType: getParsedType(data)
|
|
57409
|
+
};
|
|
57410
|
+
if (!this["~standard"].async) {
|
|
57411
|
+
try {
|
|
57412
|
+
const result = this._parseSync({ data, path: [], parent: ctx });
|
|
57413
|
+
return isValid(result) ? {
|
|
57414
|
+
value: result.value
|
|
57415
|
+
} : {
|
|
57416
|
+
issues: ctx.common.issues
|
|
57417
|
+
};
|
|
57418
|
+
} catch (err) {
|
|
57419
|
+
if ((_b = (_a = err === null || err === void 0 ? void 0 : err.message) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.includes("encountered")) {
|
|
57420
|
+
this["~standard"].async = true;
|
|
57421
|
+
}
|
|
57422
|
+
ctx.common = {
|
|
57423
|
+
issues: [],
|
|
57424
|
+
async: true
|
|
57425
|
+
};
|
|
57426
|
+
}
|
|
57427
|
+
}
|
|
57428
|
+
return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid(result) ? {
|
|
57429
|
+
value: result.value
|
|
57430
|
+
} : {
|
|
57431
|
+
issues: ctx.common.issues
|
|
57432
|
+
});
|
|
57433
|
+
}
|
|
54789
57434
|
async parseAsync(data, params) {
|
|
54790
57435
|
const result = await this.safeParseAsync(data, params);
|
|
54791
57436
|
if (result.success)
|
|
@@ -54863,6 +57508,39 @@ var ZodType = class {
|
|
|
54863
57508
|
superRefine(refinement) {
|
|
54864
57509
|
return this._refinement(refinement);
|
|
54865
57510
|
}
|
|
57511
|
+
constructor(def) {
|
|
57512
|
+
this.spa = this.safeParseAsync;
|
|
57513
|
+
this._def = def;
|
|
57514
|
+
this.parse = this.parse.bind(this);
|
|
57515
|
+
this.safeParse = this.safeParse.bind(this);
|
|
57516
|
+
this.parseAsync = this.parseAsync.bind(this);
|
|
57517
|
+
this.safeParseAsync = this.safeParseAsync.bind(this);
|
|
57518
|
+
this.spa = this.spa.bind(this);
|
|
57519
|
+
this.refine = this.refine.bind(this);
|
|
57520
|
+
this.refinement = this.refinement.bind(this);
|
|
57521
|
+
this.superRefine = this.superRefine.bind(this);
|
|
57522
|
+
this.optional = this.optional.bind(this);
|
|
57523
|
+
this.nullable = this.nullable.bind(this);
|
|
57524
|
+
this.nullish = this.nullish.bind(this);
|
|
57525
|
+
this.array = this.array.bind(this);
|
|
57526
|
+
this.promise = this.promise.bind(this);
|
|
57527
|
+
this.or = this.or.bind(this);
|
|
57528
|
+
this.and = this.and.bind(this);
|
|
57529
|
+
this.transform = this.transform.bind(this);
|
|
57530
|
+
this.brand = this.brand.bind(this);
|
|
57531
|
+
this.default = this.default.bind(this);
|
|
57532
|
+
this.catch = this.catch.bind(this);
|
|
57533
|
+
this.describe = this.describe.bind(this);
|
|
57534
|
+
this.pipe = this.pipe.bind(this);
|
|
57535
|
+
this.readonly = this.readonly.bind(this);
|
|
57536
|
+
this.isNullable = this.isNullable.bind(this);
|
|
57537
|
+
this.isOptional = this.isOptional.bind(this);
|
|
57538
|
+
this["~standard"] = {
|
|
57539
|
+
version: 1,
|
|
57540
|
+
vendor: "zod",
|
|
57541
|
+
validate: (data) => this["~validate"](data)
|
|
57542
|
+
};
|
|
57543
|
+
}
|
|
54866
57544
|
optional() {
|
|
54867
57545
|
return ZodOptional.create(this, this._def);
|
|
54868
57546
|
}
|
|
@@ -54873,7 +57551,7 @@ var ZodType = class {
|
|
|
54873
57551
|
return this.nullable().optional();
|
|
54874
57552
|
}
|
|
54875
57553
|
array() {
|
|
54876
|
-
return ZodArray.create(this
|
|
57554
|
+
return ZodArray.create(this);
|
|
54877
57555
|
}
|
|
54878
57556
|
promise() {
|
|
54879
57557
|
return ZodPromise.create(this, this._def);
|
|
@@ -54939,16 +57617,20 @@ var ZodType = class {
|
|
|
54939
57617
|
};
|
|
54940
57618
|
var cuidRegex = /^c[^\s-]{8,}$/i;
|
|
54941
57619
|
var cuid2Regex = /^[0-9a-z]+$/;
|
|
54942
|
-
var ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}
|
|
57620
|
+
var ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
|
|
54943
57621
|
var uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;
|
|
54944
57622
|
var nanoidRegex = /^[a-z0-9_-]{21}$/i;
|
|
57623
|
+
var jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;
|
|
54945
57624
|
var durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
|
|
54946
57625
|
var emailRegex = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;
|
|
54947
57626
|
var _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
|
|
54948
57627
|
var emojiRegex;
|
|
54949
57628
|
var ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
|
|
54950
|
-
var
|
|
57629
|
+
var ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;
|
|
57630
|
+
var ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;
|
|
57631
|
+
var ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
|
|
54951
57632
|
var base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
|
|
57633
|
+
var base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;
|
|
54952
57634
|
var dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
|
|
54953
57635
|
var dateRegex = new RegExp(`^${dateRegexSource}$`);
|
|
54954
57636
|
function timeRegexSource(args) {
|
|
@@ -54981,6 +57663,33 @@ function isValidIP(ip, version) {
|
|
|
54981
57663
|
}
|
|
54982
57664
|
return false;
|
|
54983
57665
|
}
|
|
57666
|
+
function isValidJWT(jwt, alg) {
|
|
57667
|
+
if (!jwtRegex.test(jwt))
|
|
57668
|
+
return false;
|
|
57669
|
+
try {
|
|
57670
|
+
const [header] = jwt.split(".");
|
|
57671
|
+
const base64 = header.replace(/-/g, "+").replace(/_/g, "/").padEnd(header.length + (4 - header.length % 4) % 4, "=");
|
|
57672
|
+
const decoded = JSON.parse(atob(base64));
|
|
57673
|
+
if (typeof decoded !== "object" || decoded === null)
|
|
57674
|
+
return false;
|
|
57675
|
+
if (!decoded.typ || !decoded.alg)
|
|
57676
|
+
return false;
|
|
57677
|
+
if (alg && decoded.alg !== alg)
|
|
57678
|
+
return false;
|
|
57679
|
+
return true;
|
|
57680
|
+
} catch (_a) {
|
|
57681
|
+
return false;
|
|
57682
|
+
}
|
|
57683
|
+
}
|
|
57684
|
+
function isValidCidr(ip, version) {
|
|
57685
|
+
if ((version === "v4" || !version) && ipv4CidrRegex.test(ip)) {
|
|
57686
|
+
return true;
|
|
57687
|
+
}
|
|
57688
|
+
if ((version === "v6" || !version) && ipv6CidrRegex.test(ip)) {
|
|
57689
|
+
return true;
|
|
57690
|
+
}
|
|
57691
|
+
return false;
|
|
57692
|
+
}
|
|
54984
57693
|
var ZodString = class _ZodString extends ZodType {
|
|
54985
57694
|
_parse(input) {
|
|
54986
57695
|
if (this._def.coerce) {
|
|
@@ -55237,6 +57946,26 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
55237
57946
|
});
|
|
55238
57947
|
status.dirty();
|
|
55239
57948
|
}
|
|
57949
|
+
} else if (check.kind === "jwt") {
|
|
57950
|
+
if (!isValidJWT(input.data, check.alg)) {
|
|
57951
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
57952
|
+
addIssueToContext(ctx, {
|
|
57953
|
+
validation: "jwt",
|
|
57954
|
+
code: ZodIssueCode.invalid_string,
|
|
57955
|
+
message: check.message
|
|
57956
|
+
});
|
|
57957
|
+
status.dirty();
|
|
57958
|
+
}
|
|
57959
|
+
} else if (check.kind === "cidr") {
|
|
57960
|
+
if (!isValidCidr(input.data, check.version)) {
|
|
57961
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
57962
|
+
addIssueToContext(ctx, {
|
|
57963
|
+
validation: "cidr",
|
|
57964
|
+
code: ZodIssueCode.invalid_string,
|
|
57965
|
+
message: check.message
|
|
57966
|
+
});
|
|
57967
|
+
status.dirty();
|
|
57968
|
+
}
|
|
55240
57969
|
} else if (check.kind === "base64") {
|
|
55241
57970
|
if (!base64Regex.test(input.data)) {
|
|
55242
57971
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
@@ -55247,6 +57976,16 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
55247
57976
|
});
|
|
55248
57977
|
status.dirty();
|
|
55249
57978
|
}
|
|
57979
|
+
} else if (check.kind === "base64url") {
|
|
57980
|
+
if (!base64urlRegex.test(input.data)) {
|
|
57981
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
57982
|
+
addIssueToContext(ctx, {
|
|
57983
|
+
validation: "base64url",
|
|
57984
|
+
code: ZodIssueCode.invalid_string,
|
|
57985
|
+
message: check.message
|
|
57986
|
+
});
|
|
57987
|
+
status.dirty();
|
|
57988
|
+
}
|
|
55250
57989
|
} else {
|
|
55251
57990
|
util.assertNever(check);
|
|
55252
57991
|
}
|
|
@@ -55293,9 +58032,21 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
55293
58032
|
base64(message) {
|
|
55294
58033
|
return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) });
|
|
55295
58034
|
}
|
|
58035
|
+
base64url(message) {
|
|
58036
|
+
return this._addCheck({
|
|
58037
|
+
kind: "base64url",
|
|
58038
|
+
...errorUtil.errToObj(message)
|
|
58039
|
+
});
|
|
58040
|
+
}
|
|
58041
|
+
jwt(options) {
|
|
58042
|
+
return this._addCheck({ kind: "jwt", ...errorUtil.errToObj(options) });
|
|
58043
|
+
}
|
|
55296
58044
|
ip(options) {
|
|
55297
58045
|
return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
|
|
55298
58046
|
}
|
|
58047
|
+
cidr(options) {
|
|
58048
|
+
return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
|
|
58049
|
+
}
|
|
55299
58050
|
datetime(options) {
|
|
55300
58051
|
var _a, _b;
|
|
55301
58052
|
if (typeof options === "string") {
|
|
@@ -55386,8 +58137,7 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
55386
58137
|
});
|
|
55387
58138
|
}
|
|
55388
58139
|
/**
|
|
55389
|
-
*
|
|
55390
|
-
* @see {@link ZodString.min}
|
|
58140
|
+
* Equivalent to `.min(1)`
|
|
55391
58141
|
*/
|
|
55392
58142
|
nonempty(message) {
|
|
55393
58143
|
return this.min(1, errorUtil.errToObj(message));
|
|
@@ -55449,9 +58199,15 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
55449
58199
|
get isIP() {
|
|
55450
58200
|
return !!this._def.checks.find((ch) => ch.kind === "ip");
|
|
55451
58201
|
}
|
|
58202
|
+
get isCIDR() {
|
|
58203
|
+
return !!this._def.checks.find((ch) => ch.kind === "cidr");
|
|
58204
|
+
}
|
|
55452
58205
|
get isBase64() {
|
|
55453
58206
|
return !!this._def.checks.find((ch) => ch.kind === "base64");
|
|
55454
58207
|
}
|
|
58208
|
+
get isBase64url() {
|
|
58209
|
+
return !!this._def.checks.find((ch) => ch.kind === "base64url");
|
|
58210
|
+
}
|
|
55455
58211
|
get minLength() {
|
|
55456
58212
|
let min = null;
|
|
55457
58213
|
for (const ch of this._def.checks) {
|
|
@@ -55729,17 +58485,15 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
|
|
|
55729
58485
|
}
|
|
55730
58486
|
_parse(input) {
|
|
55731
58487
|
if (this._def.coerce) {
|
|
55732
|
-
|
|
58488
|
+
try {
|
|
58489
|
+
input.data = BigInt(input.data);
|
|
58490
|
+
} catch (_a) {
|
|
58491
|
+
return this._getInvalidInput(input);
|
|
58492
|
+
}
|
|
55733
58493
|
}
|
|
55734
58494
|
const parsedType = this._getType(input);
|
|
55735
58495
|
if (parsedType !== ZodParsedType.bigint) {
|
|
55736
|
-
|
|
55737
|
-
addIssueToContext(ctx2, {
|
|
55738
|
-
code: ZodIssueCode.invalid_type,
|
|
55739
|
-
expected: ZodParsedType.bigint,
|
|
55740
|
-
received: ctx2.parsedType
|
|
55741
|
-
});
|
|
55742
|
-
return INVALID;
|
|
58496
|
+
return this._getInvalidInput(input);
|
|
55743
58497
|
}
|
|
55744
58498
|
let ctx = void 0;
|
|
55745
58499
|
const status = new ParseStatus();
|
|
@@ -55786,6 +58540,15 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
|
|
|
55786
58540
|
}
|
|
55787
58541
|
return { status: status.value, value: input.data };
|
|
55788
58542
|
}
|
|
58543
|
+
_getInvalidInput(input) {
|
|
58544
|
+
const ctx = this._getOrReturnCtx(input);
|
|
58545
|
+
addIssueToContext(ctx, {
|
|
58546
|
+
code: ZodIssueCode.invalid_type,
|
|
58547
|
+
expected: ZodParsedType.bigint,
|
|
58548
|
+
received: ctx.parsedType
|
|
58549
|
+
});
|
|
58550
|
+
return INVALID;
|
|
58551
|
+
}
|
|
55789
58552
|
gte(value, message) {
|
|
55790
58553
|
return this.setLimit("min", value, true, errorUtil.toString(message));
|
|
55791
58554
|
}
|
|
@@ -58470,4 +61233,4 @@ fill-range/index.js:
|
|
|
58470
61233
|
* Licensed under the MIT License.
|
|
58471
61234
|
*)
|
|
58472
61235
|
*/
|
|
58473
|
-
//# sourceMappingURL=chunk-
|
|
61236
|
+
//# sourceMappingURL=chunk-5ZVEBKUO.js.map
|