module-develop-kit 0.5.10 → 0.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs-virtual-dir/Config.js +4 -0
- package/dist/commonjs-virtual-dir/Constants.js +5 -0
- package/dist/commonjs-virtual-dir/DTMF.js +4 -0
- package/dist/commonjs-virtual-dir/JsSIP.js +5 -0
- package/dist/commonjs-virtual-dir/Parser2.js +4 -0
- package/dist/commonjs-virtual-dir/Socket.js +4 -0
- package/dist/commonjs-virtual-dir/Utils.js +4 -0
- package/dist/commonjs-virtual-dir/___vite-browser-external.js +6 -0
- package/dist/commonjs-virtual-dir/__vite-browser-external.js +4 -0
- package/dist/commonjs-virtual-dir/_commonjs-dynamic-modules.js +6 -0
- package/dist/commonjs-virtual-dir/_commonjsHelpers.js +33 -0
- package/dist/commonjs-virtual-dir/_virtual_mobile-compatibility-detection.js +4 -0
- package/dist/commonjs-virtual-dir/_virtual_pc-compatibility-detection.js +4 -0
- package/dist/commonjs-virtual-dir/aes.js +4 -0
- package/dist/commonjs-virtual-dir/blowfish.js +4 -0
- package/dist/commonjs-virtual-dir/browser.js +4 -0
- package/dist/commonjs-virtual-dir/cipher-core.js +4 -0
- package/dist/commonjs-virtual-dir/core.js +4 -0
- package/dist/commonjs-virtual-dir/enc-base64.js +4 -0
- package/dist/commonjs-virtual-dir/enc-base64url.js +4 -0
- package/dist/commonjs-virtual-dir/enc-utf16.js +4 -0
- package/dist/commonjs-virtual-dir/events.js +4 -0
- package/dist/commonjs-virtual-dir/evpkdf.js +4 -0
- package/dist/commonjs-virtual-dir/format-hex.js +4 -0
- package/dist/commonjs-virtual-dir/grammar.js +4 -0
- package/dist/commonjs-virtual-dir/hmac.js +4 -0
- package/dist/commonjs-virtual-dir/index.js +5 -0
- package/dist/commonjs-virtual-dir/index2.js +5 -0
- package/dist/commonjs-virtual-dir/index3.js +7 -0
- package/dist/commonjs-virtual-dir/index4.js +7 -0
- package/dist/commonjs-virtual-dir/index5.js +4 -0
- package/dist/commonjs-virtual-dir/index6.js +4 -0
- package/dist/commonjs-virtual-dir/index7.js +4 -0
- package/dist/commonjs-virtual-dir/index8.js +4 -0
- package/dist/commonjs-virtual-dir/lib-typedarrays.js +4 -0
- package/dist/commonjs-virtual-dir/md5.js +4 -0
- package/dist/commonjs-virtual-dir/mode-cfb.js +4 -0
- package/dist/commonjs-virtual-dir/mode-ctr-gladman.js +4 -0
- package/dist/commonjs-virtual-dir/mode-ctr.js +4 -0
- package/dist/commonjs-virtual-dir/mode-ecb.js +4 -0
- package/dist/commonjs-virtual-dir/mode-ofb.js +4 -0
- package/dist/commonjs-virtual-dir/pad-ansix923.js +4 -0
- package/dist/commonjs-virtual-dir/pad-iso10126.js +4 -0
- package/dist/commonjs-virtual-dir/pad-iso97971.js +4 -0
- package/dist/commonjs-virtual-dir/pad-nopadding.js +4 -0
- package/dist/commonjs-virtual-dir/pad-zeropadding.js +4 -0
- package/dist/commonjs-virtual-dir/parser.js +4 -0
- package/dist/commonjs-virtual-dir/pbkdf2.js +4 -0
- package/dist/commonjs-virtual-dir/rabbit-legacy.js +4 -0
- package/dist/commonjs-virtual-dir/rabbit.js +4 -0
- package/dist/commonjs-virtual-dir/rc4.js +4 -0
- package/dist/commonjs-virtual-dir/ripemd160.js +4 -0
- package/dist/commonjs-virtual-dir/sha1.js +4 -0
- package/dist/commonjs-virtual-dir/sha224.js +4 -0
- package/dist/commonjs-virtual-dir/sha256.js +4 -0
- package/dist/commonjs-virtual-dir/sha3.js +4 -0
- package/dist/commonjs-virtual-dir/sha384.js +4 -0
- package/dist/commonjs-virtual-dir/sha512.js +4 -0
- package/dist/commonjs-virtual-dir/tripledes.js +4 -0
- package/dist/commonjs-virtual-dir/x64-core.js +4 -0
- package/dist/main.js +25 -0
- package/dist/src/outside-call/CallManagement.js +249 -0
- package/dist/src/outside-call/constants.js +42 -0
- package/dist/src/outside-call/index.js +74 -0
- package/dist/src/outside-call/utils.js +50 -0
- package/dist/src/shield/crypto.js +28 -0
- package/dist/src/shield/index.js +59 -0
- package/dist/src/shield/no-debugger.js +26 -0
- package/dist/src/utils/eventBus.js +59 -0
- package/dist/src/vite-plugins/getCompatibilityPlugins.js +13 -0
- package/dist/src/vite-plugins/vitePluginCompatibilityDetection.js +28 -0
- package/dist/vendor/base64-js/index.js +52 -0
- package/dist/vendor/crypto-js/aes.js +69 -0
- package/dist/vendor/crypto-js/blowfish.js +1131 -0
- package/dist/vendor/crypto-js/cipher-core.js +544 -0
- package/dist/vendor/crypto-js/core.js +508 -0
- package/dist/vendor/crypto-js/enc-base64.js +80 -0
- package/dist/vendor/crypto-js/enc-base64url.js +87 -0
- package/dist/vendor/crypto-js/enc-utf16.js +99 -0
- package/dist/vendor/crypto-js/evpkdf.js +70 -0
- package/dist/vendor/crypto-js/format-hex.js +53 -0
- package/dist/vendor/crypto-js/hmac.js +83 -0
- package/dist/vendor/crypto-js/index.js +49 -0
- package/dist/vendor/crypto-js/lib-typedarrays.js +27 -0
- package/dist/vendor/crypto-js/md5.js +71 -0
- package/dist/vendor/crypto-js/mode-cfb.js +36 -0
- package/dist/vendor/crypto-js/mode-ctr-gladman.js +45 -0
- package/dist/vendor/crypto-js/mode-ctr.js +28 -0
- package/dist/vendor/crypto-js/mode-ecb.js +27 -0
- package/dist/vendor/crypto-js/mode-ofb.js +26 -0
- package/dist/vendor/crypto-js/pad-ansix923.js +25 -0
- package/dist/vendor/crypto-js/pad-iso10126.js +25 -0
- package/dist/vendor/crypto-js/pad-iso97971.js +23 -0
- package/dist/vendor/crypto-js/pad-nopadding.js +21 -0
- package/dist/vendor/crypto-js/pad-zeropadding.js +28 -0
- package/dist/vendor/crypto-js/pbkdf2.js +74 -0
- package/dist/vendor/crypto-js/rabbit-legacy.js +73 -0
- package/dist/vendor/crypto-js/rabbit.js +75 -0
- package/dist/vendor/crypto-js/rc4.js +63 -0
- package/dist/vendor/crypto-js/ripemd160.js +398 -0
- package/dist/vendor/crypto-js/sha1.js +49 -0
- package/dist/vendor/crypto-js/sha224.js +36 -0
- package/dist/vendor/crypto-js/sha256.js +57 -0
- package/dist/vendor/crypto-js/sha3.js +116 -0
- package/dist/vendor/crypto-js/sha384.js +37 -0
- package/dist/vendor/crypto-js/sha512.js +147 -0
- package/dist/vendor/crypto-js/tripledes.js +729 -0
- package/dist/vendor/crypto-js/x64-core.js +235 -0
- package/dist/vendor/debug/src/browser.js +146 -0
- package/dist/vendor/debug/src/common.js +97 -0
- package/dist/vendor/events/events.js +216 -0
- package/dist/vendor/gm-crypt/index.js +10 -0
- package/dist/vendor/gm-crypt/src/crypt.js +60 -0
- package/dist/vendor/gm-crypt/src/sm4.js +513 -0
- package/dist/vendor/jsbn/index.js +714 -0
- package/dist/vendor/jssip/lib/Constants.js +180 -0
- package/dist/vendor/jssip/lib-es5/Config.js +263 -0
- package/dist/vendor/jssip/lib-es5/Constants.js +180 -0
- package/dist/vendor/jssip/lib-es5/Dialog/RequestSender.js +84 -0
- package/dist/vendor/jssip/lib-es5/Dialog.js +179 -0
- package/dist/vendor/jssip/lib-es5/DigestAuthentication.js +93 -0
- package/dist/vendor/jssip/lib-es5/Exceptions.js +131 -0
- package/dist/vendor/jssip/lib-es5/Grammar.js +1937 -0
- package/dist/vendor/jssip/lib-es5/JsSIP.js +37 -0
- package/dist/vendor/jssip/lib-es5/Logger.js +44 -0
- package/dist/vendor/jssip/lib-es5/Message.js +229 -0
- package/dist/vendor/jssip/lib-es5/NameAddrHeader.js +107 -0
- package/dist/vendor/jssip/lib-es5/Options.js +227 -0
- package/dist/vendor/jssip/lib-es5/Parser.js +202 -0
- package/dist/vendor/jssip/lib-es5/RTCSession/DTMF.js +175 -0
- package/dist/vendor/jssip/lib-es5/RTCSession/Info.js +149 -0
- package/dist/vendor/jssip/lib-es5/RTCSession/ReferNotifier.js +52 -0
- package/dist/vendor/jssip/lib-es5/RTCSession/ReferSubscriber.js +187 -0
- package/dist/vendor/jssip/lib-es5/RTCSession.js +1799 -0
- package/dist/vendor/jssip/lib-es5/Registrator.js +194 -0
- package/dist/vendor/jssip/lib-es5/RequestSender.js +99 -0
- package/dist/vendor/jssip/lib-es5/SIPMessage.js +623 -0
- package/dist/vendor/jssip/lib-es5/Socket.js +38 -0
- package/dist/vendor/jssip/lib-es5/Timers.js +25 -0
- package/dist/vendor/jssip/lib-es5/Transactions.js +481 -0
- package/dist/vendor/jssip/lib-es5/Transport.js +220 -0
- package/dist/vendor/jssip/lib-es5/UA.js +663 -0
- package/dist/vendor/jssip/lib-es5/URI.js +221 -0
- package/dist/vendor/jssip/lib-es5/Utils.js +263 -0
- package/dist/vendor/jssip/lib-es5/WebSocketInterface.js +120 -0
- package/dist/vendor/jssip/lib-es5/sanityCheck.js +170 -0
- package/dist/vendor/jssip/package.json.js +9 -0
- package/dist/vendor/ms/index.js +85 -0
- package/dist/vendor/sdp-transform/lib/grammar.js +449 -0
- package/dist/vendor/sdp-transform/lib/index.js +14 -0
- package/dist/vendor/sdp-transform/lib/parser.js +70 -0
- package/dist/vendor/sdp-transform/lib/writer.js +74 -0
- package/dist/vendor/sm-crypto/src/index.js +14 -0
- package/dist/vendor/sm-crypto/src/sm2/asn1.js +86 -0
- package/dist/vendor/sm-crypto/src/sm2/ec.js +205 -0
- package/dist/vendor/sm-crypto/src/sm2/index.js +114 -0
- package/dist/vendor/sm-crypto/src/sm2/sm3.js +71 -0
- package/dist/vendor/sm-crypto/src/sm2/utils.js +95 -0
- package/dist/vendor/sm-crypto/src/sm3/index.js +50 -0
- package/dist/vendor/sm-crypto/src/sm4/index.js +408 -0
- package/dist/vite-plugins/index.d.ts +1 -1
- package/dist/vite-plugins/index.js +6 -0
- package/package.json +6 -5
- package/dist/index.es.js +0 -18159
- package/dist/vite-plugins/index.es.js +0 -33
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { __module as n } from "../../commonjs-virtual-dir/x64-core.js";
|
|
2
|
+
import { __require as x } from "./core.js";
|
|
3
|
+
var g = n.exports, v;
|
|
4
|
+
function w() {
|
|
5
|
+
return v ? n.exports : (v = 1, function(f, p) {
|
|
6
|
+
(function(s, i) {
|
|
7
|
+
f.exports = i(x());
|
|
8
|
+
})(g, function(s) {
|
|
9
|
+
return function(i) {
|
|
10
|
+
var u = s, h = u.lib, a = h.Base, d = h.WordArray, c = u.x64 = {};
|
|
11
|
+
c.Word = a.extend({
|
|
12
|
+
/**
|
|
13
|
+
* Initializes a newly created 64-bit word.
|
|
14
|
+
*
|
|
15
|
+
* @param {number} high The high 32 bits.
|
|
16
|
+
* @param {number} low The low 32 bits.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
*
|
|
20
|
+
* var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
|
|
21
|
+
*/
|
|
22
|
+
init: function(r, e) {
|
|
23
|
+
this.high = r, this.low = e;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Bitwise NOTs this word.
|
|
27
|
+
*
|
|
28
|
+
* @return {X64Word} A new x64-Word object after negating.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
*
|
|
32
|
+
* var negated = x64Word.not();
|
|
33
|
+
*/
|
|
34
|
+
// not: function () {
|
|
35
|
+
// var high = ~this.high;
|
|
36
|
+
// var low = ~this.low;
|
|
37
|
+
// return X64Word.create(high, low);
|
|
38
|
+
// },
|
|
39
|
+
/**
|
|
40
|
+
* Bitwise ANDs this word with the passed word.
|
|
41
|
+
*
|
|
42
|
+
* @param {X64Word} word The x64-Word to AND with this word.
|
|
43
|
+
*
|
|
44
|
+
* @return {X64Word} A new x64-Word object after ANDing.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
*
|
|
48
|
+
* var anded = x64Word.and(anotherX64Word);
|
|
49
|
+
*/
|
|
50
|
+
// and: function (word) {
|
|
51
|
+
// var high = this.high & word.high;
|
|
52
|
+
// var low = this.low & word.low;
|
|
53
|
+
// return X64Word.create(high, low);
|
|
54
|
+
// },
|
|
55
|
+
/**
|
|
56
|
+
* Bitwise ORs this word with the passed word.
|
|
57
|
+
*
|
|
58
|
+
* @param {X64Word} word The x64-Word to OR with this word.
|
|
59
|
+
*
|
|
60
|
+
* @return {X64Word} A new x64-Word object after ORing.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
*
|
|
64
|
+
* var ored = x64Word.or(anotherX64Word);
|
|
65
|
+
*/
|
|
66
|
+
// or: function (word) {
|
|
67
|
+
// var high = this.high | word.high;
|
|
68
|
+
// var low = this.low | word.low;
|
|
69
|
+
// return X64Word.create(high, low);
|
|
70
|
+
// },
|
|
71
|
+
/**
|
|
72
|
+
* Bitwise XORs this word with the passed word.
|
|
73
|
+
*
|
|
74
|
+
* @param {X64Word} word The x64-Word to XOR with this word.
|
|
75
|
+
*
|
|
76
|
+
* @return {X64Word} A new x64-Word object after XORing.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
*
|
|
80
|
+
* var xored = x64Word.xor(anotherX64Word);
|
|
81
|
+
*/
|
|
82
|
+
// xor: function (word) {
|
|
83
|
+
// var high = this.high ^ word.high;
|
|
84
|
+
// var low = this.low ^ word.low;
|
|
85
|
+
// return X64Word.create(high, low);
|
|
86
|
+
// },
|
|
87
|
+
/**
|
|
88
|
+
* Shifts this word n bits to the left.
|
|
89
|
+
*
|
|
90
|
+
* @param {number} n The number of bits to shift.
|
|
91
|
+
*
|
|
92
|
+
* @return {X64Word} A new x64-Word object after shifting.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
*
|
|
96
|
+
* var shifted = x64Word.shiftL(25);
|
|
97
|
+
*/
|
|
98
|
+
// shiftL: function (n) {
|
|
99
|
+
// if (n < 32) {
|
|
100
|
+
// var high = (this.high << n) | (this.low >>> (32 - n));
|
|
101
|
+
// var low = this.low << n;
|
|
102
|
+
// } else {
|
|
103
|
+
// var high = this.low << (n - 32);
|
|
104
|
+
// var low = 0;
|
|
105
|
+
// }
|
|
106
|
+
// return X64Word.create(high, low);
|
|
107
|
+
// },
|
|
108
|
+
/**
|
|
109
|
+
* Shifts this word n bits to the right.
|
|
110
|
+
*
|
|
111
|
+
* @param {number} n The number of bits to shift.
|
|
112
|
+
*
|
|
113
|
+
* @return {X64Word} A new x64-Word object after shifting.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
*
|
|
117
|
+
* var shifted = x64Word.shiftR(7);
|
|
118
|
+
*/
|
|
119
|
+
// shiftR: function (n) {
|
|
120
|
+
// if (n < 32) {
|
|
121
|
+
// var low = (this.low >>> n) | (this.high << (32 - n));
|
|
122
|
+
// var high = this.high >>> n;
|
|
123
|
+
// } else {
|
|
124
|
+
// var low = this.high >>> (n - 32);
|
|
125
|
+
// var high = 0;
|
|
126
|
+
// }
|
|
127
|
+
// return X64Word.create(high, low);
|
|
128
|
+
// },
|
|
129
|
+
/**
|
|
130
|
+
* Rotates this word n bits to the left.
|
|
131
|
+
*
|
|
132
|
+
* @param {number} n The number of bits to rotate.
|
|
133
|
+
*
|
|
134
|
+
* @return {X64Word} A new x64-Word object after rotating.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
*
|
|
138
|
+
* var rotated = x64Word.rotL(25);
|
|
139
|
+
*/
|
|
140
|
+
// rotL: function (n) {
|
|
141
|
+
// return this.shiftL(n).or(this.shiftR(64 - n));
|
|
142
|
+
// },
|
|
143
|
+
/**
|
|
144
|
+
* Rotates this word n bits to the right.
|
|
145
|
+
*
|
|
146
|
+
* @param {number} n The number of bits to rotate.
|
|
147
|
+
*
|
|
148
|
+
* @return {X64Word} A new x64-Word object after rotating.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
*
|
|
152
|
+
* var rotated = x64Word.rotR(7);
|
|
153
|
+
*/
|
|
154
|
+
// rotR: function (n) {
|
|
155
|
+
// return this.shiftR(n).or(this.shiftL(64 - n));
|
|
156
|
+
// },
|
|
157
|
+
/**
|
|
158
|
+
* Adds this word with the passed word.
|
|
159
|
+
*
|
|
160
|
+
* @param {X64Word} word The x64-Word to add with this word.
|
|
161
|
+
*
|
|
162
|
+
* @return {X64Word} A new x64-Word object after adding.
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
*
|
|
166
|
+
* var added = x64Word.add(anotherX64Word);
|
|
167
|
+
*/
|
|
168
|
+
// add: function (word) {
|
|
169
|
+
// var low = (this.low + word.low) | 0;
|
|
170
|
+
// var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;
|
|
171
|
+
// var high = (this.high + word.high + carry) | 0;
|
|
172
|
+
// return X64Word.create(high, low);
|
|
173
|
+
// }
|
|
174
|
+
}), c.WordArray = a.extend({
|
|
175
|
+
/**
|
|
176
|
+
* Initializes a newly created word array.
|
|
177
|
+
*
|
|
178
|
+
* @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.
|
|
179
|
+
* @param {number} sigBytes (Optional) The number of significant bytes in the words.
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
*
|
|
183
|
+
* var wordArray = CryptoJS.x64.WordArray.create();
|
|
184
|
+
*
|
|
185
|
+
* var wordArray = CryptoJS.x64.WordArray.create([
|
|
186
|
+
* CryptoJS.x64.Word.create(0x00010203, 0x04050607),
|
|
187
|
+
* CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
|
|
188
|
+
* ]);
|
|
189
|
+
*
|
|
190
|
+
* var wordArray = CryptoJS.x64.WordArray.create([
|
|
191
|
+
* CryptoJS.x64.Word.create(0x00010203, 0x04050607),
|
|
192
|
+
* CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
|
|
193
|
+
* ], 10);
|
|
194
|
+
*/
|
|
195
|
+
init: function(r, e) {
|
|
196
|
+
r = this.words = r || [], e != i ? this.sigBytes = e : this.sigBytes = r.length * 8;
|
|
197
|
+
},
|
|
198
|
+
/**
|
|
199
|
+
* Converts this 64-bit word array to a 32-bit word array.
|
|
200
|
+
*
|
|
201
|
+
* @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
*
|
|
205
|
+
* var x32WordArray = x64WordArray.toX32();
|
|
206
|
+
*/
|
|
207
|
+
toX32: function() {
|
|
208
|
+
for (var r = this.words, e = r.length, t = [], o = 0; o < e; o++) {
|
|
209
|
+
var l = r[o];
|
|
210
|
+
t.push(l.high), t.push(l.low);
|
|
211
|
+
}
|
|
212
|
+
return d.create(t, this.sigBytes);
|
|
213
|
+
},
|
|
214
|
+
/**
|
|
215
|
+
* Creates a copy of this word array.
|
|
216
|
+
*
|
|
217
|
+
* @return {X64WordArray} The clone.
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
*
|
|
221
|
+
* var clone = x64WordArray.clone();
|
|
222
|
+
*/
|
|
223
|
+
clone: function() {
|
|
224
|
+
for (var r = a.clone.call(this), e = r.words = this.words.slice(0), t = e.length, o = 0; o < t; o++)
|
|
225
|
+
e[o] = e[o].clone();
|
|
226
|
+
return r;
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}(), s;
|
|
230
|
+
});
|
|
231
|
+
}(n), n.exports);
|
|
232
|
+
}
|
|
233
|
+
export {
|
|
234
|
+
w as __require
|
|
235
|
+
};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { __module as C } from "../../../commonjs-virtual-dir/browser.js";
|
|
2
|
+
import { __require as g } from "./common.js";
|
|
3
|
+
var F;
|
|
4
|
+
function p() {
|
|
5
|
+
return F ? C.exports : (F = 1, function(t, r) {
|
|
6
|
+
r.formatArgs = u, r.save = c, r.load = d, r.useColors = a, r.storage = l(), r.destroy = /* @__PURE__ */ (() => {
|
|
7
|
+
let e = !1;
|
|
8
|
+
return () => {
|
|
9
|
+
e || (e = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
|
|
10
|
+
};
|
|
11
|
+
})(), r.colors = [
|
|
12
|
+
"#0000CC",
|
|
13
|
+
"#0000FF",
|
|
14
|
+
"#0033CC",
|
|
15
|
+
"#0033FF",
|
|
16
|
+
"#0066CC",
|
|
17
|
+
"#0066FF",
|
|
18
|
+
"#0099CC",
|
|
19
|
+
"#0099FF",
|
|
20
|
+
"#00CC00",
|
|
21
|
+
"#00CC33",
|
|
22
|
+
"#00CC66",
|
|
23
|
+
"#00CC99",
|
|
24
|
+
"#00CCCC",
|
|
25
|
+
"#00CCFF",
|
|
26
|
+
"#3300CC",
|
|
27
|
+
"#3300FF",
|
|
28
|
+
"#3333CC",
|
|
29
|
+
"#3333FF",
|
|
30
|
+
"#3366CC",
|
|
31
|
+
"#3366FF",
|
|
32
|
+
"#3399CC",
|
|
33
|
+
"#3399FF",
|
|
34
|
+
"#33CC00",
|
|
35
|
+
"#33CC33",
|
|
36
|
+
"#33CC66",
|
|
37
|
+
"#33CC99",
|
|
38
|
+
"#33CCCC",
|
|
39
|
+
"#33CCFF",
|
|
40
|
+
"#6600CC",
|
|
41
|
+
"#6600FF",
|
|
42
|
+
"#6633CC",
|
|
43
|
+
"#6633FF",
|
|
44
|
+
"#66CC00",
|
|
45
|
+
"#66CC33",
|
|
46
|
+
"#9900CC",
|
|
47
|
+
"#9900FF",
|
|
48
|
+
"#9933CC",
|
|
49
|
+
"#9933FF",
|
|
50
|
+
"#99CC00",
|
|
51
|
+
"#99CC33",
|
|
52
|
+
"#CC0000",
|
|
53
|
+
"#CC0033",
|
|
54
|
+
"#CC0066",
|
|
55
|
+
"#CC0099",
|
|
56
|
+
"#CC00CC",
|
|
57
|
+
"#CC00FF",
|
|
58
|
+
"#CC3300",
|
|
59
|
+
"#CC3333",
|
|
60
|
+
"#CC3366",
|
|
61
|
+
"#CC3399",
|
|
62
|
+
"#CC33CC",
|
|
63
|
+
"#CC33FF",
|
|
64
|
+
"#CC6600",
|
|
65
|
+
"#CC6633",
|
|
66
|
+
"#CC9900",
|
|
67
|
+
"#CC9933",
|
|
68
|
+
"#CCCC00",
|
|
69
|
+
"#CCCC33",
|
|
70
|
+
"#FF0000",
|
|
71
|
+
"#FF0033",
|
|
72
|
+
"#FF0066",
|
|
73
|
+
"#FF0099",
|
|
74
|
+
"#FF00CC",
|
|
75
|
+
"#FF00FF",
|
|
76
|
+
"#FF3300",
|
|
77
|
+
"#FF3333",
|
|
78
|
+
"#FF3366",
|
|
79
|
+
"#FF3399",
|
|
80
|
+
"#FF33CC",
|
|
81
|
+
"#FF33FF",
|
|
82
|
+
"#FF6600",
|
|
83
|
+
"#FF6633",
|
|
84
|
+
"#FF9900",
|
|
85
|
+
"#FF9933",
|
|
86
|
+
"#FFCC00",
|
|
87
|
+
"#FFCC33"
|
|
88
|
+
];
|
|
89
|
+
function a() {
|
|
90
|
+
if (typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs))
|
|
91
|
+
return !0;
|
|
92
|
+
if (typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))
|
|
93
|
+
return !1;
|
|
94
|
+
let e;
|
|
95
|
+
return typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
96
|
+
typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
97
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
98
|
+
typeof navigator < "u" && navigator.userAgent && (e = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(e[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
99
|
+
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
100
|
+
}
|
|
101
|
+
function u(e) {
|
|
102
|
+
if (e[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + e[0] + (this.useColors ? "%c " : " ") + "+" + t.exports.humanize(this.diff), !this.useColors)
|
|
103
|
+
return;
|
|
104
|
+
const o = "color: " + this.color;
|
|
105
|
+
e.splice(1, 0, o, "color: inherit");
|
|
106
|
+
let n = 0, s = 0;
|
|
107
|
+
e[0].replace(/%[a-zA-Z%]/g, (i) => {
|
|
108
|
+
i !== "%%" && (n++, i === "%c" && (s = n));
|
|
109
|
+
}), e.splice(s, 0, o);
|
|
110
|
+
}
|
|
111
|
+
r.log = console.debug || console.log || (() => {
|
|
112
|
+
});
|
|
113
|
+
function c(e) {
|
|
114
|
+
try {
|
|
115
|
+
e ? r.storage.setItem("debug", e) : r.storage.removeItem("debug");
|
|
116
|
+
} catch {
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function d() {
|
|
120
|
+
let e;
|
|
121
|
+
try {
|
|
122
|
+
e = r.storage.getItem("debug") || r.storage.getItem("DEBUG");
|
|
123
|
+
} catch {
|
|
124
|
+
}
|
|
125
|
+
return !e && typeof process < "u" && "env" in process && (e = process.env.DEBUG), e;
|
|
126
|
+
}
|
|
127
|
+
function l() {
|
|
128
|
+
try {
|
|
129
|
+
return localStorage;
|
|
130
|
+
} catch {
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
t.exports = g()(r);
|
|
134
|
+
const { formatters: f } = t.exports;
|
|
135
|
+
f.j = function(e) {
|
|
136
|
+
try {
|
|
137
|
+
return JSON.stringify(e);
|
|
138
|
+
} catch (o) {
|
|
139
|
+
return "[UnexpectedJSONParseError]: " + o.message;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
}(C, C.exports), C.exports);
|
|
143
|
+
}
|
|
144
|
+
export {
|
|
145
|
+
p as __require
|
|
146
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { __require as _ } from "../../ms/index.js";
|
|
2
|
+
var d, m;
|
|
3
|
+
function z() {
|
|
4
|
+
if (m) return d;
|
|
5
|
+
m = 1;
|
|
6
|
+
function g(b) {
|
|
7
|
+
e.debug = e, e.default = e, e.coerce = I, e.disable = k, e.enable = x, e.enabled = w, e.humanize = _(), e.destroy = q, Object.keys(b).forEach((n) => {
|
|
8
|
+
e[n] = b[n];
|
|
9
|
+
}), e.names = [], e.skips = [], e.formatters = {};
|
|
10
|
+
function y(n) {
|
|
11
|
+
let t = 0;
|
|
12
|
+
for (let r = 0; r < n.length; r++)
|
|
13
|
+
t = (t << 5) - t + n.charCodeAt(r), t |= 0;
|
|
14
|
+
return e.colors[Math.abs(t) % e.colors.length];
|
|
15
|
+
}
|
|
16
|
+
e.selectColor = y;
|
|
17
|
+
function e(n) {
|
|
18
|
+
let t, r = null, o, f;
|
|
19
|
+
function s(...l) {
|
|
20
|
+
if (!s.enabled)
|
|
21
|
+
return;
|
|
22
|
+
const i = s, u = Number(/* @__PURE__ */ new Date()), v = u - (t || u);
|
|
23
|
+
i.diff = v, i.prev = t, i.curr = u, t = u, l[0] = e.coerce(l[0]), typeof l[0] != "string" && l.unshift("%O");
|
|
24
|
+
let c = 0;
|
|
25
|
+
l[0] = l[0].replace(/%([a-zA-Z%])/g, (a, j) => {
|
|
26
|
+
if (a === "%%")
|
|
27
|
+
return "%";
|
|
28
|
+
c++;
|
|
29
|
+
const p = e.formatters[j];
|
|
30
|
+
if (typeof p == "function") {
|
|
31
|
+
const O = l[c];
|
|
32
|
+
a = p.call(i, O), l.splice(c, 1), c--;
|
|
33
|
+
}
|
|
34
|
+
return a;
|
|
35
|
+
}), e.formatArgs.call(i, l), (i.log || e.log).apply(i, l);
|
|
36
|
+
}
|
|
37
|
+
return s.namespace = n, s.useColors = e.useColors(), s.color = e.selectColor(n), s.extend = C, s.destroy = e.destroy, Object.defineProperty(s, "enabled", {
|
|
38
|
+
enumerable: !0,
|
|
39
|
+
configurable: !1,
|
|
40
|
+
get: () => r !== null ? r : (o !== e.namespaces && (o = e.namespaces, f = e.enabled(n)), f),
|
|
41
|
+
set: (l) => {
|
|
42
|
+
r = l;
|
|
43
|
+
}
|
|
44
|
+
}), typeof e.init == "function" && e.init(s), s;
|
|
45
|
+
}
|
|
46
|
+
function C(n, t) {
|
|
47
|
+
const r = e(this.namespace + (typeof t > "u" ? ":" : t) + n);
|
|
48
|
+
return r.log = this.log, r;
|
|
49
|
+
}
|
|
50
|
+
function x(n) {
|
|
51
|
+
e.save(n), e.namespaces = n, e.names = [], e.skips = [];
|
|
52
|
+
const t = (typeof n == "string" ? n : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
53
|
+
for (const r of t)
|
|
54
|
+
r[0] === "-" ? e.skips.push(r.slice(1)) : e.names.push(r);
|
|
55
|
+
}
|
|
56
|
+
function h(n, t) {
|
|
57
|
+
let r = 0, o = 0, f = -1, s = 0;
|
|
58
|
+
for (; r < n.length; )
|
|
59
|
+
if (o < t.length && (t[o] === n[r] || t[o] === "*"))
|
|
60
|
+
t[o] === "*" ? (f = o, s = r, o++) : (r++, o++);
|
|
61
|
+
else if (f !== -1)
|
|
62
|
+
o = f + 1, s++, r = s;
|
|
63
|
+
else
|
|
64
|
+
return !1;
|
|
65
|
+
for (; o < t.length && t[o] === "*"; )
|
|
66
|
+
o++;
|
|
67
|
+
return o === t.length;
|
|
68
|
+
}
|
|
69
|
+
function k() {
|
|
70
|
+
const n = [
|
|
71
|
+
...e.names,
|
|
72
|
+
...e.skips.map((t) => "-" + t)
|
|
73
|
+
].join(",");
|
|
74
|
+
return e.enable(""), n;
|
|
75
|
+
}
|
|
76
|
+
function w(n) {
|
|
77
|
+
for (const t of e.skips)
|
|
78
|
+
if (h(n, t))
|
|
79
|
+
return !1;
|
|
80
|
+
for (const t of e.names)
|
|
81
|
+
if (h(n, t))
|
|
82
|
+
return !0;
|
|
83
|
+
return !1;
|
|
84
|
+
}
|
|
85
|
+
function I(n) {
|
|
86
|
+
return n instanceof Error ? n.stack || n.message : n;
|
|
87
|
+
}
|
|
88
|
+
function q() {
|
|
89
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
90
|
+
}
|
|
91
|
+
return e.enable(e.load()), e;
|
|
92
|
+
}
|
|
93
|
+
return d = g, d;
|
|
94
|
+
}
|
|
95
|
+
export {
|
|
96
|
+
z as __require
|
|
97
|
+
};
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { __module as p } from "../../commonjs-virtual-dir/events.js";
|
|
2
|
+
var x;
|
|
3
|
+
function F() {
|
|
4
|
+
if (x) return p.exports;
|
|
5
|
+
x = 1;
|
|
6
|
+
var a = typeof Reflect == "object" ? Reflect : null, d = a && typeof a.apply == "function" ? a.apply : function(e, n, r) {
|
|
7
|
+
return Function.prototype.apply.call(e, n, r);
|
|
8
|
+
}, l;
|
|
9
|
+
a && typeof a.ownKeys == "function" ? l = a.ownKeys : Object.getOwnPropertySymbols ? l = function(e) {
|
|
10
|
+
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
11
|
+
} : l = function(e) {
|
|
12
|
+
return Object.getOwnPropertyNames(e);
|
|
13
|
+
};
|
|
14
|
+
function C(t) {
|
|
15
|
+
console && console.warn && console.warn(t);
|
|
16
|
+
}
|
|
17
|
+
var h = Number.isNaN || function(e) {
|
|
18
|
+
return e !== e;
|
|
19
|
+
};
|
|
20
|
+
function o() {
|
|
21
|
+
o.init.call(this);
|
|
22
|
+
}
|
|
23
|
+
p.exports = o, p.exports.once = M, o.EventEmitter = o, o.prototype._events = void 0, o.prototype._eventsCount = 0, o.prototype._maxListeners = void 0;
|
|
24
|
+
var m = 10;
|
|
25
|
+
function v(t) {
|
|
26
|
+
if (typeof t != "function")
|
|
27
|
+
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
|
|
28
|
+
}
|
|
29
|
+
Object.defineProperty(o, "defaultMaxListeners", {
|
|
30
|
+
enumerable: !0,
|
|
31
|
+
get: function() {
|
|
32
|
+
return m;
|
|
33
|
+
},
|
|
34
|
+
set: function(t) {
|
|
35
|
+
if (typeof t != "number" || t < 0 || h(t))
|
|
36
|
+
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
|
|
37
|
+
m = t;
|
|
38
|
+
}
|
|
39
|
+
}), o.init = function() {
|
|
40
|
+
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
41
|
+
}, o.prototype.setMaxListeners = function(e) {
|
|
42
|
+
if (typeof e != "number" || e < 0 || h(e))
|
|
43
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
44
|
+
return this._maxListeners = e, this;
|
|
45
|
+
};
|
|
46
|
+
function L(t) {
|
|
47
|
+
return t._maxListeners === void 0 ? o.defaultMaxListeners : t._maxListeners;
|
|
48
|
+
}
|
|
49
|
+
o.prototype.getMaxListeners = function() {
|
|
50
|
+
return L(this);
|
|
51
|
+
}, o.prototype.emit = function(e) {
|
|
52
|
+
for (var n = [], r = 1; r < arguments.length; r++) n.push(arguments[r]);
|
|
53
|
+
var i = e === "error", f = this._events;
|
|
54
|
+
if (f !== void 0)
|
|
55
|
+
i = i && f.error === void 0;
|
|
56
|
+
else if (!i)
|
|
57
|
+
return !1;
|
|
58
|
+
if (i) {
|
|
59
|
+
var s;
|
|
60
|
+
if (n.length > 0 && (s = n[0]), s instanceof Error)
|
|
61
|
+
throw s;
|
|
62
|
+
var u = new Error("Unhandled error." + (s ? " (" + s.message + ")" : ""));
|
|
63
|
+
throw u.context = s, u;
|
|
64
|
+
}
|
|
65
|
+
var c = f[e];
|
|
66
|
+
if (c === void 0)
|
|
67
|
+
return !1;
|
|
68
|
+
if (typeof c == "function")
|
|
69
|
+
d(c, this, n);
|
|
70
|
+
else
|
|
71
|
+
for (var O = c.length, P = b(c, O), r = 0; r < O; ++r)
|
|
72
|
+
d(P[r], this, n);
|
|
73
|
+
return !0;
|
|
74
|
+
};
|
|
75
|
+
function y(t, e, n, r) {
|
|
76
|
+
var i, f, s;
|
|
77
|
+
if (v(n), f = t._events, f === void 0 ? (f = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (f.newListener !== void 0 && (t.emit(
|
|
78
|
+
"newListener",
|
|
79
|
+
e,
|
|
80
|
+
n.listener ? n.listener : n
|
|
81
|
+
), f = t._events), s = f[e]), s === void 0)
|
|
82
|
+
s = f[e] = n, ++t._eventsCount;
|
|
83
|
+
else if (typeof s == "function" ? s = f[e] = r ? [n, s] : [s, n] : r ? s.unshift(n) : s.push(n), i = L(t), i > 0 && s.length > i && !s.warned) {
|
|
84
|
+
s.warned = !0;
|
|
85
|
+
var u = new Error("Possible EventEmitter memory leak detected. " + s.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
86
|
+
u.name = "MaxListenersExceededWarning", u.emitter = t, u.type = e, u.count = s.length, C(u);
|
|
87
|
+
}
|
|
88
|
+
return t;
|
|
89
|
+
}
|
|
90
|
+
o.prototype.addListener = function(e, n) {
|
|
91
|
+
return y(this, e, n, !1);
|
|
92
|
+
}, o.prototype.on = o.prototype.addListener, o.prototype.prependListener = function(e, n) {
|
|
93
|
+
return y(this, e, n, !0);
|
|
94
|
+
};
|
|
95
|
+
function R() {
|
|
96
|
+
if (!this.fired)
|
|
97
|
+
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
98
|
+
}
|
|
99
|
+
function g(t, e, n) {
|
|
100
|
+
var r = { fired: !1, wrapFn: void 0, target: t, type: e, listener: n }, i = R.bind(r);
|
|
101
|
+
return i.listener = n, r.wrapFn = i, i;
|
|
102
|
+
}
|
|
103
|
+
o.prototype.once = function(e, n) {
|
|
104
|
+
return v(n), this.on(e, g(this, e, n)), this;
|
|
105
|
+
}, o.prototype.prependOnceListener = function(e, n) {
|
|
106
|
+
return v(n), this.prependListener(e, g(this, e, n)), this;
|
|
107
|
+
}, o.prototype.removeListener = function(e, n) {
|
|
108
|
+
var r, i, f, s, u;
|
|
109
|
+
if (v(n), i = this._events, i === void 0)
|
|
110
|
+
return this;
|
|
111
|
+
if (r = i[e], r === void 0)
|
|
112
|
+
return this;
|
|
113
|
+
if (r === n || r.listener === n)
|
|
114
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete i[e], i.removeListener && this.emit("removeListener", e, r.listener || n));
|
|
115
|
+
else if (typeof r != "function") {
|
|
116
|
+
for (f = -1, s = r.length - 1; s >= 0; s--)
|
|
117
|
+
if (r[s] === n || r[s].listener === n) {
|
|
118
|
+
u = r[s].listener, f = s;
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
if (f < 0)
|
|
122
|
+
return this;
|
|
123
|
+
f === 0 ? r.shift() : j(r, f), r.length === 1 && (i[e] = r[0]), i.removeListener !== void 0 && this.emit("removeListener", e, u || n);
|
|
124
|
+
}
|
|
125
|
+
return this;
|
|
126
|
+
}, o.prototype.off = o.prototype.removeListener, o.prototype.removeAllListeners = function(e) {
|
|
127
|
+
var n, r, i;
|
|
128
|
+
if (r = this._events, r === void 0)
|
|
129
|
+
return this;
|
|
130
|
+
if (r.removeListener === void 0)
|
|
131
|
+
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : r[e] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete r[e]), this;
|
|
132
|
+
if (arguments.length === 0) {
|
|
133
|
+
var f = Object.keys(r), s;
|
|
134
|
+
for (i = 0; i < f.length; ++i)
|
|
135
|
+
s = f[i], s !== "removeListener" && this.removeAllListeners(s);
|
|
136
|
+
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
137
|
+
}
|
|
138
|
+
if (n = r[e], typeof n == "function")
|
|
139
|
+
this.removeListener(e, n);
|
|
140
|
+
else if (n !== void 0)
|
|
141
|
+
for (i = n.length - 1; i >= 0; i--)
|
|
142
|
+
this.removeListener(e, n[i]);
|
|
143
|
+
return this;
|
|
144
|
+
};
|
|
145
|
+
function _(t, e, n) {
|
|
146
|
+
var r = t._events;
|
|
147
|
+
if (r === void 0)
|
|
148
|
+
return [];
|
|
149
|
+
var i = r[e];
|
|
150
|
+
return i === void 0 ? [] : typeof i == "function" ? n ? [i.listener || i] : [i] : n ? N(i) : b(i, i.length);
|
|
151
|
+
}
|
|
152
|
+
o.prototype.listeners = function(e) {
|
|
153
|
+
return _(this, e, !0);
|
|
154
|
+
}, o.prototype.rawListeners = function(e) {
|
|
155
|
+
return _(this, e, !1);
|
|
156
|
+
}, o.listenerCount = function(t, e) {
|
|
157
|
+
return typeof t.listenerCount == "function" ? t.listenerCount(e) : w.call(t, e);
|
|
158
|
+
}, o.prototype.listenerCount = w;
|
|
159
|
+
function w(t) {
|
|
160
|
+
var e = this._events;
|
|
161
|
+
if (e !== void 0) {
|
|
162
|
+
var n = e[t];
|
|
163
|
+
if (typeof n == "function")
|
|
164
|
+
return 1;
|
|
165
|
+
if (n !== void 0)
|
|
166
|
+
return n.length;
|
|
167
|
+
}
|
|
168
|
+
return 0;
|
|
169
|
+
}
|
|
170
|
+
o.prototype.eventNames = function() {
|
|
171
|
+
return this._eventsCount > 0 ? l(this._events) : [];
|
|
172
|
+
};
|
|
173
|
+
function b(t, e) {
|
|
174
|
+
for (var n = new Array(e), r = 0; r < e; ++r)
|
|
175
|
+
n[r] = t[r];
|
|
176
|
+
return n;
|
|
177
|
+
}
|
|
178
|
+
function j(t, e) {
|
|
179
|
+
for (; e + 1 < t.length; e++)
|
|
180
|
+
t[e] = t[e + 1];
|
|
181
|
+
t.pop();
|
|
182
|
+
}
|
|
183
|
+
function N(t) {
|
|
184
|
+
for (var e = new Array(t.length), n = 0; n < e.length; ++n)
|
|
185
|
+
e[n] = t[n].listener || t[n];
|
|
186
|
+
return e;
|
|
187
|
+
}
|
|
188
|
+
function M(t, e) {
|
|
189
|
+
return new Promise(function(n, r) {
|
|
190
|
+
function i(s) {
|
|
191
|
+
t.removeListener(e, f), r(s);
|
|
192
|
+
}
|
|
193
|
+
function f() {
|
|
194
|
+
typeof t.removeListener == "function" && t.removeListener("error", i), n([].slice.call(arguments));
|
|
195
|
+
}
|
|
196
|
+
E(t, e, f, { once: !0 }), e !== "error" && A(t, i, { once: !0 });
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
function A(t, e, n) {
|
|
200
|
+
typeof t.on == "function" && E(t, "error", e, n);
|
|
201
|
+
}
|
|
202
|
+
function E(t, e, n, r) {
|
|
203
|
+
if (typeof t.on == "function")
|
|
204
|
+
r.once ? t.once(e, n) : t.on(e, n);
|
|
205
|
+
else if (typeof t.addEventListener == "function")
|
|
206
|
+
t.addEventListener(e, function i(f) {
|
|
207
|
+
r.once && t.removeEventListener(e, i), n(f);
|
|
208
|
+
});
|
|
209
|
+
else
|
|
210
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
|
|
211
|
+
}
|
|
212
|
+
return p.exports;
|
|
213
|
+
}
|
|
214
|
+
export {
|
|
215
|
+
F as __require
|
|
216
|
+
};
|