videomail-client 10.2.15 → 10.2.21
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/cjs/index.cjs +570 -399
- package/dist/esm/index.js +297 -206
- package/dist/esm/types/Videomail.d.ts +1 -1
- package/dist/esm/types/error.d.ts +3 -4
- package/dist/esm/types/options.d.ts +1 -1
- package/dist/esm/wrappers/form.d.ts +8 -2
- package/dist/umd/index.js +521 -354
- package/package.json +20 -19
package/dist/cjs/index.cjs
CHANGED
|
@@ -473,10 +473,9 @@ var __webpack_modules__ = {
|
|
|
473
473
|
var pos = 0;
|
|
474
474
|
for(i = 0; i < list.length; ++i){
|
|
475
475
|
var buf = list[i];
|
|
476
|
-
if (isInstance(buf, Uint8Array))
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
} else if (Buffer.isBuffer(buf)) buf.copy(buffer, pos);
|
|
476
|
+
if (isInstance(buf, Uint8Array)) if (pos + buf.length > buffer.length) Buffer.from(buf).copy(buffer, pos);
|
|
477
|
+
else Uint8Array.prototype.set.call(buffer, buf, pos);
|
|
478
|
+
else if (Buffer.isBuffer(buf)) buf.copy(buffer, pos);
|
|
480
479
|
else throw new TypeError('"list" argument must be an Array of Buffers');
|
|
481
480
|
pos += buf.length;
|
|
482
481
|
}
|
|
@@ -640,13 +639,10 @@ var __webpack_modules__ = {
|
|
|
640
639
|
byteOffset *= 1;
|
|
641
640
|
if (numberIsNaN(byteOffset)) byteOffset = dir ? 0 : buffer.length - 1;
|
|
642
641
|
if (byteOffset < 0) byteOffset = buffer.length + byteOffset;
|
|
643
|
-
if (byteOffset >= buffer.length)
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
if (!dir) return -1;
|
|
648
|
-
byteOffset = 0;
|
|
649
|
-
}
|
|
642
|
+
if (byteOffset >= buffer.length) if (dir) return -1;
|
|
643
|
+
else byteOffset = buffer.length - 1;
|
|
644
|
+
else if (byteOffset < 0) if (!dir) return -1;
|
|
645
|
+
else byteOffset = 0;
|
|
650
646
|
if ('string' == typeof val) val = Buffer.from(val, encoding);
|
|
651
647
|
if (Buffer.isBuffer(val)) {
|
|
652
648
|
if (0 === val.length) return -1;
|
|
@@ -654,10 +650,8 @@ var __webpack_modules__ = {
|
|
|
654
650
|
}
|
|
655
651
|
if ('number' == typeof val) {
|
|
656
652
|
val &= 0xFF;
|
|
657
|
-
if ('function' == typeof Uint8Array.prototype.indexOf)
|
|
658
|
-
|
|
659
|
-
return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset);
|
|
660
|
-
}
|
|
653
|
+
if ('function' == typeof Uint8Array.prototype.indexOf) if (dir) return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset);
|
|
654
|
+
else return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset);
|
|
661
655
|
return arrayIndexOf(buffer, [
|
|
662
656
|
val
|
|
663
657
|
], byteOffset, encoding, dir);
|
|
@@ -2014,13 +2008,12 @@ var __webpack_modules__ = {
|
|
|
2014
2008
|
];
|
|
2015
2009
|
function prependListener(emitter, event, fn) {
|
|
2016
2010
|
if ('function' == typeof emitter.prependListener) return emitter.prependListener(event, fn);
|
|
2017
|
-
if (emitter._events && emitter._events[event])
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
} else emitter.on(event, fn);
|
|
2011
|
+
if (emitter._events && emitter._events[event]) if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);
|
|
2012
|
+
else emitter._events[event] = [
|
|
2013
|
+
fn,
|
|
2014
|
+
emitter._events[event]
|
|
2015
|
+
];
|
|
2016
|
+
else emitter.on(event, fn);
|
|
2024
2017
|
}
|
|
2025
2018
|
function ReadableState(options, stream) {
|
|
2026
2019
|
Duplex = Duplex || __webpack_require__("./node_modules/duplexify/node_modules/readable-stream/lib/_stream_duplex.js");
|
|
@@ -2115,10 +2108,9 @@ var __webpack_modules__ = {
|
|
|
2115
2108
|
if (er) stream.emit('error', er);
|
|
2116
2109
|
else if (state.objectMode || chunk && chunk.length > 0) {
|
|
2117
2110
|
if ('string' != typeof chunk && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) chunk = _uint8ArrayToBuffer(chunk);
|
|
2118
|
-
if (addToFront)
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
} else if (state.ended) stream.emit('error', new Error('stream.push() after EOF'));
|
|
2111
|
+
if (addToFront) if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));
|
|
2112
|
+
else addChunk(stream, state, chunk, true);
|
|
2113
|
+
else if (state.ended) stream.emit('error', new Error('stream.push() after EOF'));
|
|
2122
2114
|
else {
|
|
2123
2115
|
state.reading = false;
|
|
2124
2116
|
if (state.decoder && !encoding) {
|
|
@@ -2177,10 +2169,8 @@ var __webpack_modules__ = {
|
|
|
2177
2169
|
function howMuchToRead(n, state) {
|
|
2178
2170
|
if (n <= 0 || 0 === state.length && state.ended) return 0;
|
|
2179
2171
|
if (state.objectMode) return 1;
|
|
2180
|
-
if (n !== n)
|
|
2181
|
-
|
|
2182
|
-
return state.length;
|
|
2183
|
-
}
|
|
2172
|
+
if (n !== n) if (state.flowing && state.length) return state.buffer.head.data.length;
|
|
2173
|
+
else return state.length;
|
|
2184
2174
|
if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
|
|
2185
2175
|
if (n <= state.length) return n;
|
|
2186
2176
|
if (!state.ended) {
|
|
@@ -3063,15 +3053,13 @@ var __webpack_modules__ = {
|
|
|
3063
3053
|
});
|
|
3064
3054
|
}
|
|
3065
3055
|
function prefinish(stream, state) {
|
|
3066
|
-
if (!state.prefinished && !state.finalCalled) {
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
stream.emit('prefinish');
|
|
3074
|
-
}
|
|
3056
|
+
if (!state.prefinished && !state.finalCalled) if ('function' == typeof stream._final) {
|
|
3057
|
+
state.pendingcb++;
|
|
3058
|
+
state.finalCalled = true;
|
|
3059
|
+
pna.nextTick(callFinal, stream, state);
|
|
3060
|
+
} else {
|
|
3061
|
+
state.prefinished = true;
|
|
3062
|
+
stream.emit('prefinish');
|
|
3075
3063
|
}
|
|
3076
3064
|
}
|
|
3077
3065
|
function finishMaybe(stream, state) {
|
|
@@ -3088,10 +3076,8 @@ var __webpack_modules__ = {
|
|
|
3088
3076
|
function endWritable(stream, state, cb) {
|
|
3089
3077
|
state.ending = true;
|
|
3090
3078
|
finishMaybe(stream, state);
|
|
3091
|
-
if (cb)
|
|
3092
|
-
|
|
3093
|
-
else stream.once('finish', cb);
|
|
3094
|
-
}
|
|
3079
|
+
if (cb) if (state.finished) pna.nextTick(cb);
|
|
3080
|
+
else stream.once('finish', cb);
|
|
3095
3081
|
state.ended = true;
|
|
3096
3082
|
stream.writable = false;
|
|
3097
3083
|
}
|
|
@@ -3208,27 +3194,24 @@ var __webpack_modules__ = {
|
|
|
3208
3194
|
var writableDestroyed = this._writableState && this._writableState.destroyed;
|
|
3209
3195
|
if (readableDestroyed || writableDestroyed) {
|
|
3210
3196
|
if (cb) cb(err);
|
|
3211
|
-
else if (err) {
|
|
3212
|
-
if (this._writableState) {
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
} else pna.nextTick(emitErrorNT, this, err);
|
|
3218
|
-
}
|
|
3197
|
+
else if (err) if (this._writableState) {
|
|
3198
|
+
if (!this._writableState.errorEmitted) {
|
|
3199
|
+
this._writableState.errorEmitted = true;
|
|
3200
|
+
pna.nextTick(emitErrorNT, this, err);
|
|
3201
|
+
}
|
|
3202
|
+
} else pna.nextTick(emitErrorNT, this, err);
|
|
3219
3203
|
return this;
|
|
3220
3204
|
}
|
|
3221
3205
|
if (this._readableState) this._readableState.destroyed = true;
|
|
3222
3206
|
if (this._writableState) this._writableState.destroyed = true;
|
|
3223
3207
|
this._destroy(err || null, function(err) {
|
|
3224
|
-
if (!cb && err) {
|
|
3225
|
-
if (_this._writableState) {
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
} else if (cb) cb(err);
|
|
3208
|
+
if (!cb && err) if (_this._writableState) {
|
|
3209
|
+
if (!_this._writableState.errorEmitted) {
|
|
3210
|
+
_this._writableState.errorEmitted = true;
|
|
3211
|
+
pna.nextTick(emitErrorNT, _this, err);
|
|
3212
|
+
}
|
|
3213
|
+
} else pna.nextTick(emitErrorNT, _this, err);
|
|
3214
|
+
else if (cb) cb(err);
|
|
3232
3215
|
});
|
|
3233
3216
|
return this;
|
|
3234
3217
|
}
|
|
@@ -3291,10 +3274,9 @@ var __webpack_modules__ = {
|
|
|
3291
3274
|
SafeBuffer.alloc = function(size, fill, encoding) {
|
|
3292
3275
|
if ('number' != typeof size) throw new TypeError('Argument must be a number');
|
|
3293
3276
|
var buf = Buffer(size);
|
|
3294
|
-
if (void 0 !== fill)
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
} else buf.fill(0);
|
|
3277
|
+
if (void 0 !== fill) if ('string' == typeof encoding) buf.fill(fill, encoding);
|
|
3278
|
+
else buf.fill(fill);
|
|
3279
|
+
else buf.fill(0);
|
|
3298
3280
|
return buf;
|
|
3299
3281
|
};
|
|
3300
3282
|
SafeBuffer.allocUnsafe = function(size) {
|
|
@@ -3433,10 +3415,8 @@ var __webpack_modules__ = {
|
|
|
3433
3415
|
if (--j < i || -2 === nb) return 0;
|
|
3434
3416
|
nb = utf8CheckByte(buf[j]);
|
|
3435
3417
|
if (nb >= 0) {
|
|
3436
|
-
if (nb > 0)
|
|
3437
|
-
|
|
3438
|
-
else self1.lastNeed = nb - 3;
|
|
3439
|
-
}
|
|
3418
|
+
if (nb > 0) if (2 === nb) nb = 0;
|
|
3419
|
+
else self1.lastNeed = nb - 3;
|
|
3440
3420
|
return nb;
|
|
3441
3421
|
}
|
|
3442
3422
|
return 0;
|
|
@@ -3826,13 +3806,12 @@ var __webpack_modules__ = {
|
|
|
3826
3806
|
if (void 0 === events) return this;
|
|
3827
3807
|
list = events[type];
|
|
3828
3808
|
if (void 0 === list) return this;
|
|
3829
|
-
if (list === listener || list.listener === listener)
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
} else if ('function' != typeof list) {
|
|
3809
|
+
if (list === listener || list.listener === listener) if (0 === --this._eventsCount) this._events = Object.create(null);
|
|
3810
|
+
else {
|
|
3811
|
+
delete events[type];
|
|
3812
|
+
if (events.removeListener) this.emit('removeListener', type, list.listener || listener);
|
|
3813
|
+
}
|
|
3814
|
+
else if ('function' != typeof list) {
|
|
3836
3815
|
position = -1;
|
|
3837
3816
|
for(i = list.length - 1; i >= 0; i--)if (list[i] === listener || list[i].listener === listener) {
|
|
3838
3817
|
originalListener = list[i].listener;
|
|
@@ -3856,10 +3835,8 @@ var __webpack_modules__ = {
|
|
|
3856
3835
|
if (0 === arguments.length) {
|
|
3857
3836
|
this._events = Object.create(null);
|
|
3858
3837
|
this._eventsCount = 0;
|
|
3859
|
-
} else if (void 0 !== events[type])
|
|
3860
|
-
|
|
3861
|
-
else delete events[type];
|
|
3862
|
-
}
|
|
3838
|
+
} else if (void 0 !== events[type]) if (0 === --this._eventsCount) this._events = Object.create(null);
|
|
3839
|
+
else delete events[type];
|
|
3863
3840
|
return this;
|
|
3864
3841
|
}
|
|
3865
3842
|
if (0 === arguments.length) {
|
|
@@ -3950,10 +3927,9 @@ var __webpack_modules__ = {
|
|
|
3950
3927
|
if ('function' == typeof emitter.on) eventTargetAgnosticAddListener(emitter, 'error', handler, flags);
|
|
3951
3928
|
}
|
|
3952
3929
|
function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
|
3953
|
-
if ('function' == typeof emitter.on)
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
} else if ('function' == typeof emitter.addEventListener) emitter.addEventListener(name, function wrapListener(arg) {
|
|
3930
|
+
if ('function' == typeof emitter.on) if (flags.once) emitter.once(name, listener);
|
|
3931
|
+
else emitter.on(name, listener);
|
|
3932
|
+
else if ('function' == typeof emitter.addEventListener) emitter.addEventListener(name, function wrapListener(arg) {
|
|
3957
3933
|
if (flags.once) emitter.removeEventListener(name, wrapListener);
|
|
3958
3934
|
listener(arg);
|
|
3959
3935
|
});
|
|
@@ -3994,23 +3970,22 @@ var __webpack_modules__ = {
|
|
|
3994
3970
|
}
|
|
3995
3971
|
function setReplace(replace, val, k, parent) {
|
|
3996
3972
|
var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k);
|
|
3997
|
-
if (void 0 !== propertyDescriptor.get) {
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
parent,
|
|
4004
|
-
k,
|
|
4005
|
-
val,
|
|
4006
|
-
propertyDescriptor
|
|
4007
|
-
]);
|
|
4008
|
-
} else replacerStack.push([
|
|
4009
|
-
val,
|
|
3973
|
+
if (void 0 !== propertyDescriptor.get) if (propertyDescriptor.configurable) {
|
|
3974
|
+
Object.defineProperty(parent, k, {
|
|
3975
|
+
value: replace
|
|
3976
|
+
});
|
|
3977
|
+
arr.push([
|
|
3978
|
+
parent,
|
|
4010
3979
|
k,
|
|
4011
|
-
|
|
3980
|
+
val,
|
|
3981
|
+
propertyDescriptor
|
|
4012
3982
|
]);
|
|
4013
|
-
} else
|
|
3983
|
+
} else replacerStack.push([
|
|
3984
|
+
val,
|
|
3985
|
+
k,
|
|
3986
|
+
replace
|
|
3987
|
+
]);
|
|
3988
|
+
else {
|
|
4014
3989
|
parent[k] = replace;
|
|
4015
3990
|
arr.push([
|
|
4016
3991
|
parent,
|
|
@@ -4134,20 +4109,16 @@ var __webpack_modules__ = {
|
|
|
4134
4109
|
var toStr = Object.prototype.toString;
|
|
4135
4110
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4136
4111
|
var forEachArray = function(array, iterator, receiver) {
|
|
4137
|
-
for(var i = 0, len = array.length; i < len; i++)if (hasOwnProperty.call(array, i))
|
|
4138
|
-
|
|
4139
|
-
else iterator.call(receiver, array[i], i, array);
|
|
4140
|
-
}
|
|
4112
|
+
for(var i = 0, len = array.length; i < len; i++)if (hasOwnProperty.call(array, i)) if (null == receiver) iterator(array[i], i, array);
|
|
4113
|
+
else iterator.call(receiver, array[i], i, array);
|
|
4141
4114
|
};
|
|
4142
4115
|
var forEachString = function(string, iterator, receiver) {
|
|
4143
4116
|
for(var i = 0, len = string.length; i < len; i++)if (null == receiver) iterator(string.charAt(i), i, string);
|
|
4144
4117
|
else iterator.call(receiver, string.charAt(i), i, string);
|
|
4145
4118
|
};
|
|
4146
4119
|
var forEachObject = function(object, iterator, receiver) {
|
|
4147
|
-
for(var k in object)if (hasOwnProperty.call(object, k))
|
|
4148
|
-
|
|
4149
|
-
else iterator.call(receiver, object[k], k, object);
|
|
4150
|
-
}
|
|
4120
|
+
for(var k in object)if (hasOwnProperty.call(object, k)) if (null == receiver) iterator(object[k], k, object);
|
|
4121
|
+
else iterator.call(receiver, object[k], k, object);
|
|
4151
4122
|
};
|
|
4152
4123
|
var forEach = function(list, iterator, thisArg) {
|
|
4153
4124
|
if (!isCallable(iterator)) throw new TypeError('iterator must be a function');
|
|
@@ -5175,7 +5146,7 @@ var __webpack_modules__ = {
|
|
|
5175
5146
|
if (inspectSymbol && 'function' == typeof obj[inspectSymbol] && utilInspect) return utilInspect(obj, {
|
|
5176
5147
|
depth: maxDepth - depth
|
|
5177
5148
|
});
|
|
5178
|
-
if ('symbol' !== customInspect && 'function' == typeof obj.inspect) return obj.inspect();
|
|
5149
|
+
else if ('symbol' !== customInspect && 'function' == typeof obj.inspect) return obj.inspect();
|
|
5179
5150
|
}
|
|
5180
5151
|
if (isMap(obj)) {
|
|
5181
5152
|
var mapParts = [];
|
|
@@ -5412,15 +5383,10 @@ var __webpack_modules__ = {
|
|
|
5412
5383
|
symMap = {};
|
|
5413
5384
|
for(var k = 0; k < syms.length; k++)symMap['$' + syms[k]] = syms[k];
|
|
5414
5385
|
}
|
|
5415
|
-
for(var key in obj){
|
|
5416
|
-
if (
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
if ($test.call(/[^\w$]/, key)) xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
5420
|
-
else xs.push(key + ': ' + inspect(obj[key], obj));
|
|
5421
|
-
}
|
|
5422
|
-
}
|
|
5423
|
-
}
|
|
5386
|
+
for(var key in obj)if (has(obj, key)) {
|
|
5387
|
+
if (!isArr || String(Number(key)) !== key || !(key < obj.length)) if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) continue;
|
|
5388
|
+
else if ($test.call(/[^\w$]/, key)) xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
5389
|
+
else xs.push(key + ': ' + inspect(obj[key], obj));
|
|
5424
5390
|
}
|
|
5425
5391
|
if ('function' == typeof gOPS) {
|
|
5426
5392
|
for(var j = 0; j < syms.length; j++)if (isEnumerable.call(obj, syms[j])) xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
@@ -5953,10 +5919,8 @@ var __webpack_modules__ = {
|
|
|
5953
5919
|
while(void 0 !== (tmpSc = tmpSc.get(sentinel)) && !findFlag){
|
|
5954
5920
|
var pos = tmpSc.get(object);
|
|
5955
5921
|
step += 1;
|
|
5956
|
-
if (void 0 !== pos)
|
|
5957
|
-
|
|
5958
|
-
findFlag = true;
|
|
5959
|
-
}
|
|
5922
|
+
if (void 0 !== pos) if (pos === step) throw new RangeError('Cyclic object value');
|
|
5923
|
+
else findFlag = true;
|
|
5960
5924
|
if (void 0 === tmpSc.get(sentinel)) step = 0;
|
|
5961
5925
|
}
|
|
5962
5926
|
if ('function' == typeof filter) obj = filter(prefix, obj);
|
|
@@ -6078,10 +6042,8 @@ var __webpack_modules__ = {
|
|
|
6078
6042
|
}
|
|
6079
6043
|
var joined = keys.join(options.delimiter);
|
|
6080
6044
|
var prefix = true === options.addQueryPrefix ? '?' : '';
|
|
6081
|
-
if (options.charsetSentinel)
|
|
6082
|
-
|
|
6083
|
-
else prefix += 'utf8=%E2%9C%93&';
|
|
6084
|
-
}
|
|
6045
|
+
if (options.charsetSentinel) if ('iso-8859-1' === options.charset) prefix += 'utf8=%26%2310003%3B&';
|
|
6046
|
+
else prefix += 'utf8=%E2%9C%93&';
|
|
6085
6047
|
return joined.length > 0 ? prefix + joined : '';
|
|
6086
6048
|
};
|
|
6087
6049
|
},
|
|
@@ -7575,15 +7537,13 @@ var __webpack_modules__ = {
|
|
|
7575
7537
|
}
|
|
7576
7538
|
exports1.debuglog = function(set) {
|
|
7577
7539
|
set = set.toUpperCase();
|
|
7578
|
-
if (!debugs[set]) {
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
} else debugs[set] = function() {};
|
|
7586
|
-
}
|
|
7540
|
+
if (!debugs[set]) if (debugEnvRegex.test(set)) {
|
|
7541
|
+
var pid = process.pid;
|
|
7542
|
+
debugs[set] = function() {
|
|
7543
|
+
var msg = exports1.format.apply(exports1, arguments);
|
|
7544
|
+
console.error('%s %d: %s', set, pid, msg);
|
|
7545
|
+
};
|
|
7546
|
+
} else debugs[set] = function() {};
|
|
7587
7547
|
return debugs[set];
|
|
7588
7548
|
};
|
|
7589
7549
|
function inspect(obj, opts) {
|
|
@@ -7722,10 +7682,8 @@ var __webpack_modules__ = {
|
|
|
7722
7682
|
if (isDate(value)) base = ' ' + Date.prototype.toUTCString.call(value);
|
|
7723
7683
|
if (isError(value)) base = ' ' + formatError(value);
|
|
7724
7684
|
if (0 === keys.length && (!array || 0 == value.length)) return braces[0] + base + braces[1];
|
|
7725
|
-
if (recurseTimes < 0)
|
|
7726
|
-
|
|
7727
|
-
return ctx.stylize('[Object]', 'special');
|
|
7728
|
-
}
|
|
7685
|
+
if (recurseTimes < 0) if (isRegExp(value)) return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
|
|
7686
|
+
else return ctx.stylize('[Object]', 'special');
|
|
7729
7687
|
ctx.seen.push(value);
|
|
7730
7688
|
var output;
|
|
7731
7689
|
output = array ? formatArray(ctx, value, recurseTimes, visibleKeys, keys) : keys.map(function(key) {
|
|
@@ -7764,16 +7722,14 @@ var __webpack_modules__ = {
|
|
|
7764
7722
|
if (desc.get) str = desc.set ? ctx.stylize('[Getter/Setter]', 'special') : ctx.stylize('[Getter]', 'special');
|
|
7765
7723
|
else if (desc.set) str = ctx.stylize('[Setter]', 'special');
|
|
7766
7724
|
if (!hasOwnProperty(visibleKeys, key)) name = '[' + key + ']';
|
|
7767
|
-
if (!str) {
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
} else str = ctx.stylize('[Circular]', 'special');
|
|
7776
|
-
}
|
|
7725
|
+
if (!str) if (ctx.seen.indexOf(desc.value) < 0) {
|
|
7726
|
+
str = isNull(recurseTimes) ? formatValue(ctx, desc.value, null) : formatValue(ctx, desc.value, recurseTimes - 1);
|
|
7727
|
+
if (str.indexOf('\n') > -1) str = array ? str.split('\n').map(function(line) {
|
|
7728
|
+
return ' ' + line;
|
|
7729
|
+
}).join('\n').slice(2) : '\n' + str.split('\n').map(function(line) {
|
|
7730
|
+
return ' ' + line;
|
|
7731
|
+
}).join('\n');
|
|
7732
|
+
} else str = ctx.stylize('[Circular]', 'special');
|
|
7777
7733
|
if (isUndefined(name)) {
|
|
7778
7734
|
if (array && key.match(/^\d+$/)) return str;
|
|
7779
7735
|
name = JSON.stringify('' + key);
|
|
@@ -8092,13 +8048,12 @@ var __webpack_modules__ = {
|
|
|
8092
8048
|
];
|
|
8093
8049
|
function prependListener(emitter, event, fn) {
|
|
8094
8050
|
if ('function' == typeof emitter.prependListener) return emitter.prependListener(event, fn);
|
|
8095
|
-
if (emitter._events && emitter._events[event])
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
} else emitter.on(event, fn);
|
|
8051
|
+
if (emitter._events && emitter._events[event]) if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);
|
|
8052
|
+
else emitter._events[event] = [
|
|
8053
|
+
fn,
|
|
8054
|
+
emitter._events[event]
|
|
8055
|
+
];
|
|
8056
|
+
else emitter.on(event, fn);
|
|
8102
8057
|
}
|
|
8103
8058
|
function ReadableState(options, stream) {
|
|
8104
8059
|
Duplex = Duplex || __webpack_require__("./node_modules/websocket-stream/node_modules/readable-stream/lib/_stream_duplex.js");
|
|
@@ -8193,10 +8148,9 @@ var __webpack_modules__ = {
|
|
|
8193
8148
|
if (er) stream.emit('error', er);
|
|
8194
8149
|
else if (state.objectMode || chunk && chunk.length > 0) {
|
|
8195
8150
|
if ('string' != typeof chunk && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) chunk = _uint8ArrayToBuffer(chunk);
|
|
8196
|
-
if (addToFront)
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
} else if (state.ended) stream.emit('error', new Error('stream.push() after EOF'));
|
|
8151
|
+
if (addToFront) if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));
|
|
8152
|
+
else addChunk(stream, state, chunk, true);
|
|
8153
|
+
else if (state.ended) stream.emit('error', new Error('stream.push() after EOF'));
|
|
8200
8154
|
else {
|
|
8201
8155
|
state.reading = false;
|
|
8202
8156
|
if (state.decoder && !encoding) {
|
|
@@ -8255,10 +8209,8 @@ var __webpack_modules__ = {
|
|
|
8255
8209
|
function howMuchToRead(n, state) {
|
|
8256
8210
|
if (n <= 0 || 0 === state.length && state.ended) return 0;
|
|
8257
8211
|
if (state.objectMode) return 1;
|
|
8258
|
-
if (n !== n)
|
|
8259
|
-
|
|
8260
|
-
return state.length;
|
|
8261
|
-
}
|
|
8212
|
+
if (n !== n) if (state.flowing && state.length) return state.buffer.head.data.length;
|
|
8213
|
+
else return state.length;
|
|
8262
8214
|
if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
|
|
8263
8215
|
if (n <= state.length) return n;
|
|
8264
8216
|
if (!state.ended) {
|
|
@@ -9141,15 +9093,13 @@ var __webpack_modules__ = {
|
|
|
9141
9093
|
});
|
|
9142
9094
|
}
|
|
9143
9095
|
function prefinish(stream, state) {
|
|
9144
|
-
if (!state.prefinished && !state.finalCalled) {
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
stream.emit('prefinish');
|
|
9152
|
-
}
|
|
9096
|
+
if (!state.prefinished && !state.finalCalled) if ('function' == typeof stream._final) {
|
|
9097
|
+
state.pendingcb++;
|
|
9098
|
+
state.finalCalled = true;
|
|
9099
|
+
pna.nextTick(callFinal, stream, state);
|
|
9100
|
+
} else {
|
|
9101
|
+
state.prefinished = true;
|
|
9102
|
+
stream.emit('prefinish');
|
|
9153
9103
|
}
|
|
9154
9104
|
}
|
|
9155
9105
|
function finishMaybe(stream, state) {
|
|
@@ -9166,10 +9116,8 @@ var __webpack_modules__ = {
|
|
|
9166
9116
|
function endWritable(stream, state, cb) {
|
|
9167
9117
|
state.ending = true;
|
|
9168
9118
|
finishMaybe(stream, state);
|
|
9169
|
-
if (cb)
|
|
9170
|
-
|
|
9171
|
-
else stream.once('finish', cb);
|
|
9172
|
-
}
|
|
9119
|
+
if (cb) if (state.finished) pna.nextTick(cb);
|
|
9120
|
+
else stream.once('finish', cb);
|
|
9173
9121
|
state.ended = true;
|
|
9174
9122
|
stream.writable = false;
|
|
9175
9123
|
}
|
|
@@ -9286,27 +9234,24 @@ var __webpack_modules__ = {
|
|
|
9286
9234
|
var writableDestroyed = this._writableState && this._writableState.destroyed;
|
|
9287
9235
|
if (readableDestroyed || writableDestroyed) {
|
|
9288
9236
|
if (cb) cb(err);
|
|
9289
|
-
else if (err) {
|
|
9290
|
-
if (this._writableState) {
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
} else pna.nextTick(emitErrorNT, this, err);
|
|
9296
|
-
}
|
|
9237
|
+
else if (err) if (this._writableState) {
|
|
9238
|
+
if (!this._writableState.errorEmitted) {
|
|
9239
|
+
this._writableState.errorEmitted = true;
|
|
9240
|
+
pna.nextTick(emitErrorNT, this, err);
|
|
9241
|
+
}
|
|
9242
|
+
} else pna.nextTick(emitErrorNT, this, err);
|
|
9297
9243
|
return this;
|
|
9298
9244
|
}
|
|
9299
9245
|
if (this._readableState) this._readableState.destroyed = true;
|
|
9300
9246
|
if (this._writableState) this._writableState.destroyed = true;
|
|
9301
9247
|
this._destroy(err || null, function(err) {
|
|
9302
|
-
if (!cb && err) {
|
|
9303
|
-
if (_this._writableState) {
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
} else if (cb) cb(err);
|
|
9248
|
+
if (!cb && err) if (_this._writableState) {
|
|
9249
|
+
if (!_this._writableState.errorEmitted) {
|
|
9250
|
+
_this._writableState.errorEmitted = true;
|
|
9251
|
+
pna.nextTick(emitErrorNT, _this, err);
|
|
9252
|
+
}
|
|
9253
|
+
} else pna.nextTick(emitErrorNT, _this, err);
|
|
9254
|
+
else if (cb) cb(err);
|
|
9310
9255
|
});
|
|
9311
9256
|
return this;
|
|
9312
9257
|
}
|
|
@@ -9369,10 +9314,9 @@ var __webpack_modules__ = {
|
|
|
9369
9314
|
SafeBuffer.alloc = function(size, fill, encoding) {
|
|
9370
9315
|
if ('number' != typeof size) throw new TypeError('Argument must be a number');
|
|
9371
9316
|
var buf = Buffer(size);
|
|
9372
|
-
if (void 0 !== fill)
|
|
9373
|
-
|
|
9374
|
-
|
|
9375
|
-
} else buf.fill(0);
|
|
9317
|
+
if (void 0 !== fill) if ('string' == typeof encoding) buf.fill(fill, encoding);
|
|
9318
|
+
else buf.fill(fill);
|
|
9319
|
+
else buf.fill(0);
|
|
9376
9320
|
return buf;
|
|
9377
9321
|
};
|
|
9378
9322
|
SafeBuffer.allocUnsafe = function(size) {
|
|
@@ -9511,10 +9455,8 @@ var __webpack_modules__ = {
|
|
|
9511
9455
|
if (--j < i || -2 === nb) return 0;
|
|
9512
9456
|
nb = utf8CheckByte(buf[j]);
|
|
9513
9457
|
if (nb >= 0) {
|
|
9514
|
-
if (nb > 0)
|
|
9515
|
-
|
|
9516
|
-
else self1.lastNeed = nb - 3;
|
|
9517
|
-
}
|
|
9458
|
+
if (nb > 0) if (2 === nb) nb = 0;
|
|
9459
|
+
else self1.lastNeed = nb - 3;
|
|
9518
9460
|
return nb;
|
|
9519
9461
|
}
|
|
9520
9462
|
return 0;
|
|
@@ -9819,7 +9761,7 @@ var __webpack_modules__ = {
|
|
|
9819
9761
|
}
|
|
9820
9762
|
}
|
|
9821
9763
|
},
|
|
9822
|
-
"../../node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[
|
|
9764
|
+
"../../node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[11].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[11].use[2]!../../node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[11].use[3]!./src/styles/main.styl": function(module, __webpack_exports__, __webpack_require__) {
|
|
9823
9765
|
"use strict";
|
|
9824
9766
|
__webpack_require__.d(__webpack_exports__, {
|
|
9825
9767
|
Z: ()=>__WEBPACK_DEFAULT_EXPORT__
|
|
@@ -9831,7 +9773,143 @@ var __webpack_modules__ = {
|
|
|
9831
9773
|
var ___CSS_LOADER_EXPORT___ = _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
|
|
9832
9774
|
___CSS_LOADER_EXPORT___.push([
|
|
9833
9775
|
module.id,
|
|
9834
|
-
|
|
9776
|
+
`@keyframes blink {
|
|
9777
|
+
0% {
|
|
9778
|
+
opacity: .9;
|
|
9779
|
+
}
|
|
9780
|
+
|
|
9781
|
+
35% {
|
|
9782
|
+
opacity: .9;
|
|
9783
|
+
}
|
|
9784
|
+
|
|
9785
|
+
50% {
|
|
9786
|
+
opacity: .1;
|
|
9787
|
+
}
|
|
9788
|
+
|
|
9789
|
+
85% {
|
|
9790
|
+
opacity: .1;
|
|
9791
|
+
}
|
|
9792
|
+
|
|
9793
|
+
100% {
|
|
9794
|
+
opacity: .9;
|
|
9795
|
+
}
|
|
9796
|
+
}
|
|
9797
|
+
|
|
9798
|
+
.videomail .visuals {
|
|
9799
|
+
position: relative;
|
|
9800
|
+
}
|
|
9801
|
+
|
|
9802
|
+
.videomail .visuals video.replay {
|
|
9803
|
+
width: 100%;
|
|
9804
|
+
height: 100%;
|
|
9805
|
+
}
|
|
9806
|
+
|
|
9807
|
+
.videomail .countdown, .videomail .recordTimer, .videomail .recordNote, .videomail .pausedHeader, .videomail .pausedHint {
|
|
9808
|
+
height: auto;
|
|
9809
|
+
margin: 0;
|
|
9810
|
+
}
|
|
9811
|
+
|
|
9812
|
+
.videomail .countdown, .videomail .recordTimer, .videomail .recordNote, .videomail .paused, .videomail .facingMode, .videomail noscript {
|
|
9813
|
+
z-index: 100;
|
|
9814
|
+
position: absolute;
|
|
9815
|
+
}
|
|
9816
|
+
|
|
9817
|
+
.videomail .countdown, .videomail .recordTimer, .videomail .recordNote, .videomail .pausedHeader, .videomail .pausedHint, .videomail noscript {
|
|
9818
|
+
font-weight: bold;
|
|
9819
|
+
}
|
|
9820
|
+
|
|
9821
|
+
.videomail .countdown, .videomail .paused, .videomail noscript {
|
|
9822
|
+
width: 100%;
|
|
9823
|
+
top: 50%;
|
|
9824
|
+
transform: translateY(-50%);
|
|
9825
|
+
}
|
|
9826
|
+
|
|
9827
|
+
.videomail .pausedHeader, .videomail .pausedHint, .videomail .countdown {
|
|
9828
|
+
text-align: center;
|
|
9829
|
+
letter-spacing: 4px;
|
|
9830
|
+
text-shadow: -2px 0 #fff, 0 2px #fff, 2px 0 #fff, 0 -2px #fff;
|
|
9831
|
+
}
|
|
9832
|
+
|
|
9833
|
+
.videomail .pausedHeader, .videomail .countdown {
|
|
9834
|
+
opacity: .9;
|
|
9835
|
+
font-size: 460%;
|
|
9836
|
+
}
|
|
9837
|
+
|
|
9838
|
+
.videomail .pausedHint {
|
|
9839
|
+
font-size: 150%;
|
|
9840
|
+
}
|
|
9841
|
+
|
|
9842
|
+
.videomail .facingMode {
|
|
9843
|
+
color: rgba(245, 245, 245, .9);
|
|
9844
|
+
z-index: 10;
|
|
9845
|
+
background: rgba(30, 30, 30, .5);
|
|
9846
|
+
border: none;
|
|
9847
|
+
outline: none;
|
|
9848
|
+
padding: .1em .3em;
|
|
9849
|
+
font-family: monospace;
|
|
9850
|
+
font-size: 1.2em;
|
|
9851
|
+
transition: all .2s;
|
|
9852
|
+
bottom: .6em;
|
|
9853
|
+
right: .7em;
|
|
9854
|
+
}
|
|
9855
|
+
|
|
9856
|
+
.videomail .facingMode:hover {
|
|
9857
|
+
cursor: pointer;
|
|
9858
|
+
background: rgba(50, 50, 50, .7);
|
|
9859
|
+
}
|
|
9860
|
+
|
|
9861
|
+
.videomail .recordTimer, .videomail .recordNote {
|
|
9862
|
+
color: #00d814;
|
|
9863
|
+
opacity: .9;
|
|
9864
|
+
background: rgba(10, 10, 10, .8);
|
|
9865
|
+
padding: .3em .4em;
|
|
9866
|
+
font-family: monospace;
|
|
9867
|
+
transition: all 1s;
|
|
9868
|
+
right: .7em;
|
|
9869
|
+
}
|
|
9870
|
+
|
|
9871
|
+
.videomail .recordTimer.near, .videomail .recordNote.near {
|
|
9872
|
+
color: #eb9369;
|
|
9873
|
+
}
|
|
9874
|
+
|
|
9875
|
+
.videomail .recordTimer.nigh, .videomail .recordNote.nigh {
|
|
9876
|
+
color: #ea4b2a;
|
|
9877
|
+
}
|
|
9878
|
+
|
|
9879
|
+
.videomail .recordTimer {
|
|
9880
|
+
top: .7em;
|
|
9881
|
+
}
|
|
9882
|
+
|
|
9883
|
+
.videomail .recordNote {
|
|
9884
|
+
top: 3.6em;
|
|
9885
|
+
}
|
|
9886
|
+
|
|
9887
|
+
.videomail .recordNote:before {
|
|
9888
|
+
content: "REC";
|
|
9889
|
+
animation: 1s infinite blink;
|
|
9890
|
+
}
|
|
9891
|
+
|
|
9892
|
+
.videomail .notifier {
|
|
9893
|
+
box-sizing: border-box;
|
|
9894
|
+
overflow: hidden;
|
|
9895
|
+
}
|
|
9896
|
+
|
|
9897
|
+
.videomail .radioGroup {
|
|
9898
|
+
display: block;
|
|
9899
|
+
}
|
|
9900
|
+
|
|
9901
|
+
.videomail .radioGroup label {
|
|
9902
|
+
cursor: pointer;
|
|
9903
|
+
}
|
|
9904
|
+
|
|
9905
|
+
.videomail video {
|
|
9906
|
+
margin-bottom: 0;
|
|
9907
|
+
}
|
|
9908
|
+
|
|
9909
|
+
.videomail video.userMedia {
|
|
9910
|
+
background-color: rgba(50, 50, 50, .1);
|
|
9911
|
+
}
|
|
9912
|
+
`,
|
|
9835
9913
|
""
|
|
9836
9914
|
]);
|
|
9837
9915
|
const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
|
|
@@ -9876,25 +9954,19 @@ var __webpack_modules__ = {
|
|
|
9876
9954
|
for(var _k = 0; _k < modules.length; _k++){
|
|
9877
9955
|
var item = [].concat(modules[_k]);
|
|
9878
9956
|
if (!dedupe || !alreadyImportedModules[item[0]]) {
|
|
9879
|
-
if (void 0 !== layer)
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
item[5] = layer;
|
|
9884
|
-
}
|
|
9885
|
-
}
|
|
9886
|
-
if (media) {
|
|
9887
|
-
if (item[2]) {
|
|
9888
|
-
item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
|
|
9889
|
-
item[2] = media;
|
|
9890
|
-
} else item[2] = media;
|
|
9891
|
-
}
|
|
9892
|
-
if (supports) {
|
|
9893
|
-
if (item[4]) {
|
|
9894
|
-
item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
|
|
9895
|
-
item[4] = supports;
|
|
9896
|
-
} else item[4] = "".concat(supports);
|
|
9957
|
+
if (void 0 !== layer) if (void 0 === item[5]) item[5] = layer;
|
|
9958
|
+
else {
|
|
9959
|
+
item[1] = "@layer".concat(item[5].length > 0 ? " ".concat(item[5]) : "", " {").concat(item[1], "}");
|
|
9960
|
+
item[5] = layer;
|
|
9897
9961
|
}
|
|
9962
|
+
if (media) if (item[2]) {
|
|
9963
|
+
item[1] = "@media ".concat(item[2], " {").concat(item[1], "}");
|
|
9964
|
+
item[2] = media;
|
|
9965
|
+
} else item[2] = media;
|
|
9966
|
+
if (supports) if (item[4]) {
|
|
9967
|
+
item[1] = "@supports (".concat(item[4], ") {").concat(item[1], "}");
|
|
9968
|
+
item[4] = supports;
|
|
9969
|
+
} else item[4] = "".concat(supports);
|
|
9898
9970
|
list.push(item);
|
|
9899
9971
|
}
|
|
9900
9972
|
}
|
|
@@ -10158,6 +10230,127 @@ var __webpack_exports__ = {};
|
|
|
10158
10230
|
};
|
|
10159
10231
|
var client = __webpack_require__("./node_modules/superagent/lib/client.js");
|
|
10160
10232
|
var client_default = /*#__PURE__*/ __webpack_require__.n(client);
|
|
10233
|
+
const list = [
|
|
10234
|
+
Error,
|
|
10235
|
+
EvalError,
|
|
10236
|
+
RangeError,
|
|
10237
|
+
ReferenceError,
|
|
10238
|
+
SyntaxError,
|
|
10239
|
+
TypeError,
|
|
10240
|
+
URIError,
|
|
10241
|
+
AggregateError,
|
|
10242
|
+
globalThis.DOMException,
|
|
10243
|
+
globalThis.AssertionError,
|
|
10244
|
+
globalThis.SystemError
|
|
10245
|
+
].filter(Boolean).map((constructor)=>[
|
|
10246
|
+
constructor.name,
|
|
10247
|
+
constructor
|
|
10248
|
+
]);
|
|
10249
|
+
const errorConstructors = new Map(list);
|
|
10250
|
+
const errorProperties = [
|
|
10251
|
+
{
|
|
10252
|
+
property: 'name',
|
|
10253
|
+
enumerable: false
|
|
10254
|
+
},
|
|
10255
|
+
{
|
|
10256
|
+
property: 'message',
|
|
10257
|
+
enumerable: false
|
|
10258
|
+
},
|
|
10259
|
+
{
|
|
10260
|
+
property: 'stack',
|
|
10261
|
+
enumerable: false
|
|
10262
|
+
},
|
|
10263
|
+
{
|
|
10264
|
+
property: 'code',
|
|
10265
|
+
enumerable: true
|
|
10266
|
+
},
|
|
10267
|
+
{
|
|
10268
|
+
property: 'cause',
|
|
10269
|
+
enumerable: false
|
|
10270
|
+
},
|
|
10271
|
+
{
|
|
10272
|
+
property: 'errors',
|
|
10273
|
+
enumerable: false
|
|
10274
|
+
}
|
|
10275
|
+
];
|
|
10276
|
+
const toJsonWasCalled = new WeakSet();
|
|
10277
|
+
const toJSON = (from)=>{
|
|
10278
|
+
toJsonWasCalled.add(from);
|
|
10279
|
+
const json = from.toJSON();
|
|
10280
|
+
toJsonWasCalled.delete(from);
|
|
10281
|
+
return json;
|
|
10282
|
+
};
|
|
10283
|
+
const newError = (name)=>{
|
|
10284
|
+
const ErrorConstructor = errorConstructors.get(name) ?? Error;
|
|
10285
|
+
return ErrorConstructor === AggregateError ? new ErrorConstructor([]) : new ErrorConstructor();
|
|
10286
|
+
};
|
|
10287
|
+
const destroyCircular = ({ from, seen, to, forceEnumerable, maxDepth, depth, useToJSON, serialize })=>{
|
|
10288
|
+
if (!to) to = Array.isArray(from) ? [] : !serialize && isErrorLike(from) ? newError(from.name) : {};
|
|
10289
|
+
seen.push(from);
|
|
10290
|
+
if (depth >= maxDepth) return to;
|
|
10291
|
+
if (useToJSON && 'function' == typeof from.toJSON && !toJsonWasCalled.has(from)) return toJSON(from);
|
|
10292
|
+
const continueDestroyCircular = (value)=>destroyCircular({
|
|
10293
|
+
from: value,
|
|
10294
|
+
seen: [
|
|
10295
|
+
...seen
|
|
10296
|
+
],
|
|
10297
|
+
forceEnumerable,
|
|
10298
|
+
maxDepth,
|
|
10299
|
+
depth,
|
|
10300
|
+
useToJSON,
|
|
10301
|
+
serialize
|
|
10302
|
+
});
|
|
10303
|
+
for (const [key, value] of Object.entries(from)){
|
|
10304
|
+
if (value && value instanceof Uint8Array && 'Buffer' === value.constructor.name) {
|
|
10305
|
+
to[key] = '[object Buffer]';
|
|
10306
|
+
continue;
|
|
10307
|
+
}
|
|
10308
|
+
if (null !== value && 'object' == typeof value && 'function' == typeof value.pipe) {
|
|
10309
|
+
to[key] = '[object Stream]';
|
|
10310
|
+
continue;
|
|
10311
|
+
}
|
|
10312
|
+
if ('function' != typeof value) {
|
|
10313
|
+
if (!value || 'object' != typeof value) {
|
|
10314
|
+
try {
|
|
10315
|
+
to[key] = value;
|
|
10316
|
+
} catch {}
|
|
10317
|
+
continue;
|
|
10318
|
+
}
|
|
10319
|
+
if (!seen.includes(from[key])) {
|
|
10320
|
+
depth++;
|
|
10321
|
+
to[key] = continueDestroyCircular(from[key]);
|
|
10322
|
+
continue;
|
|
10323
|
+
}
|
|
10324
|
+
to[key] = '[Circular]';
|
|
10325
|
+
}
|
|
10326
|
+
}
|
|
10327
|
+
if (serialize || to instanceof Error) {
|
|
10328
|
+
for (const { property, enumerable } of errorProperties)if (void 0 !== from[property] && null !== from[property]) Object.defineProperty(to, property, {
|
|
10329
|
+
value: isErrorLike(from[property]) || Array.isArray(from[property]) ? continueDestroyCircular(from[property]) : from[property],
|
|
10330
|
+
enumerable: forceEnumerable ? true : enumerable,
|
|
10331
|
+
configurable: true,
|
|
10332
|
+
writable: true
|
|
10333
|
+
});
|
|
10334
|
+
}
|
|
10335
|
+
return to;
|
|
10336
|
+
};
|
|
10337
|
+
function serializeError(value, options = {}) {
|
|
10338
|
+
const { maxDepth = Number.POSITIVE_INFINITY, useToJSON = true } = options;
|
|
10339
|
+
if ('object' == typeof value && null !== value) return destroyCircular({
|
|
10340
|
+
from: value,
|
|
10341
|
+
seen: [],
|
|
10342
|
+
forceEnumerable: true,
|
|
10343
|
+
maxDepth,
|
|
10344
|
+
depth: 0,
|
|
10345
|
+
useToJSON,
|
|
10346
|
+
serialize: true
|
|
10347
|
+
});
|
|
10348
|
+
if ('function' == typeof value) return `[Function: ${value.name || 'anonymous'}]`;
|
|
10349
|
+
return value;
|
|
10350
|
+
}
|
|
10351
|
+
function isErrorLike(value) {
|
|
10352
|
+
return Boolean(value) && 'object' == typeof value && 'string' == typeof value.name && 'string' == typeof value.message && 'string' == typeof value.stack;
|
|
10353
|
+
}
|
|
10161
10354
|
var util = __webpack_require__("./node_modules/util/util.js");
|
|
10162
10355
|
var util_default = /*#__PURE__*/ __webpack_require__.n(util);
|
|
10163
10356
|
function inspect(element) {
|
|
@@ -10270,13 +10463,11 @@ var __webpack_exports__ = {};
|
|
|
10270
10463
|
match = matches[++k];
|
|
10271
10464
|
q = props[p];
|
|
10272
10465
|
if (typeof q === OBJ_TYPE && q.length > 0) {
|
|
10273
|
-
if (2 === q.length)
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
else this[q[0]] = match ? q[1].call(this, match, q[2]) : void 0;
|
|
10279
|
-
} else if (4 === q.length) this[q[0]] = match ? q[3].call(this, match.replace(q[1], q[2])) : void 0;
|
|
10466
|
+
if (2 === q.length) if (typeof q[1] == FUNC_TYPE) this[q[0]] = q[1].call(this, match);
|
|
10467
|
+
else this[q[0]] = q[1];
|
|
10468
|
+
else if (3 === q.length) if (typeof q[1] !== FUNC_TYPE || q[1].exec && q[1].test) this[q[0]] = match ? match.replace(q[1], q[2]) : void 0;
|
|
10469
|
+
else this[q[0]] = match ? q[1].call(this, match, q[2]) : void 0;
|
|
10470
|
+
else if (4 === q.length) this[q[0]] = match ? q[3].call(this, match.replace(q[1], q[2])) : void 0;
|
|
10280
10471
|
} else this[q] = match ? match : void 0;
|
|
10281
10472
|
}
|
|
10282
10473
|
}
|
|
@@ -13248,7 +13439,7 @@ var __webpack_exports__ = {};
|
|
|
13248
13439
|
const message = "Unable to access webcam";
|
|
13249
13440
|
let explanation;
|
|
13250
13441
|
explanation = this.isChromeBased() ? "Click on the allow button to grant access to your webcam" : this.isFirefox() ? "Please grant Firefox access to your webcam" : "Your system does not let your browser access your webcam";
|
|
13251
|
-
return
|
|
13442
|
+
return createError({
|
|
13252
13443
|
message,
|
|
13253
13444
|
explanation,
|
|
13254
13445
|
options: this.options
|
|
@@ -13358,7 +13549,7 @@ var __webpack_exports__ = {};
|
|
|
13358
13549
|
VideomailError_define_property(VideomailError, "TRACK_START_ERROR", "TrackStartError");
|
|
13359
13550
|
VideomailError_define_property(VideomailError, "INVALID_STATE_ERROR", "InvalidStateError");
|
|
13360
13551
|
const error_VideomailError = VideomailError;
|
|
13361
|
-
function
|
|
13552
|
+
function createError_createError(errorParams) {
|
|
13362
13553
|
const { exc, options } = errorParams;
|
|
13363
13554
|
let err = errorParams.err;
|
|
13364
13555
|
if (!err && exc instanceof Error) err = exc;
|
|
@@ -13494,7 +13685,7 @@ var __webpack_exports__ = {};
|
|
|
13494
13685
|
}
|
|
13495
13686
|
return videomailError;
|
|
13496
13687
|
}
|
|
13497
|
-
const
|
|
13688
|
+
const createError = createError_createError;
|
|
13498
13689
|
function _extends() {
|
|
13499
13690
|
_extends = Object.assign || function(target) {
|
|
13500
13691
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -13535,7 +13726,7 @@ var __webpack_exports__ = {};
|
|
|
13535
13726
|
var elementNameLookup = {};
|
|
13536
13727
|
for(var i = 0, l = form.elements.length; i < l; i++){
|
|
13537
13728
|
var element = form.elements[i];
|
|
13538
|
-
if (!IGNORED_ELEMENT_TYPES[element.type] && (!element.disabled ||
|
|
13729
|
+
if (!IGNORED_ELEMENT_TYPES[element.type] && (!element.disabled || options.includeDisabled)) {
|
|
13539
13730
|
elementName = element.name || element.id;
|
|
13540
13731
|
if (elementName && !elementNameLookup[elementName]) {
|
|
13541
13732
|
elementNames.push(elementName);
|
|
@@ -13562,7 +13753,7 @@ var __webpack_exports__ = {};
|
|
|
13562
13753
|
if (!NODE_LIST_CLASSES[es_toString.call(element)]) return getFormElementValue(element, options.trim);
|
|
13563
13754
|
var data = [];
|
|
13564
13755
|
var allRadios = true;
|
|
13565
|
-
for(var i = 0, l = element.length; i < l; i++)if (!element[i].disabled ||
|
|
13756
|
+
for(var i = 0, l = element.length; i < l; i++)if (!element[i].disabled || options.includeDisabled) {
|
|
13566
13757
|
if (allRadios && 'radio' !== element[i].type) allRadios = false;
|
|
13567
13758
|
var value = getFormElementValue(element[i], options.trim);
|
|
13568
13759
|
if (null != value) data = data.concat(value);
|
|
@@ -13755,7 +13946,7 @@ var __webpack_exports__ = {};
|
|
|
13755
13946
|
break;
|
|
13756
13947
|
}
|
|
13757
13948
|
default:
|
|
13758
|
-
throw
|
|
13949
|
+
throw createError({
|
|
13759
13950
|
message: `Unsupported form control tag name $${tagName} found`,
|
|
13760
13951
|
options: this.options
|
|
13761
13952
|
});
|
|
@@ -13766,10 +13957,8 @@ var __webpack_exports__ = {};
|
|
|
13766
13957
|
this.formElement.setAttribute("method", "put");
|
|
13767
13958
|
}
|
|
13768
13959
|
setDisabled(disabled, buttonsToo) {
|
|
13769
|
-
for (const formControl of this.formElement.elements)if (buttonsToo || html_isNotButton(formControl))
|
|
13770
|
-
|
|
13771
|
-
else formControl.removeAttribute("disabled");
|
|
13772
|
-
}
|
|
13960
|
+
for (const formControl of this.formElement.elements)if (buttonsToo || html_isNotButton(formControl)) if (disabled) formControl.setAttribute("disabled", "disabled");
|
|
13961
|
+
else formControl.removeAttribute("disabled");
|
|
13773
13962
|
}
|
|
13774
13963
|
hideAll() {
|
|
13775
13964
|
for (const formElement of this.formElement.elements)hidden_default()(formElement, true);
|
|
@@ -13821,7 +14010,7 @@ var __webpack_exports__ = {};
|
|
|
13821
14010
|
}));
|
|
13822
14011
|
}
|
|
13823
14012
|
} else {
|
|
13824
|
-
const err =
|
|
14013
|
+
const err = createError({
|
|
13825
14014
|
message: "Videomail key for preview is missing!",
|
|
13826
14015
|
options: this.options
|
|
13827
14016
|
});
|
|
@@ -13942,7 +14131,7 @@ var __webpack_exports__ = {};
|
|
|
13942
14131
|
}
|
|
13943
14132
|
const wrappers_form = Form;
|
|
13944
14133
|
var package_namespaceObject = {
|
|
13945
|
-
i8: "10.2.
|
|
14134
|
+
i8: "10.2.21"
|
|
13946
14135
|
};
|
|
13947
14136
|
function resource_define_property(obj, key, value) {
|
|
13948
14137
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
@@ -13997,7 +14186,7 @@ var __webpack_exports__ = {};
|
|
|
13997
14186
|
const videomail = request.body;
|
|
13998
14187
|
return videomail;
|
|
13999
14188
|
} catch (exc) {
|
|
14000
|
-
throw
|
|
14189
|
+
throw createError({
|
|
14001
14190
|
exc: findOriginalExc(exc),
|
|
14002
14191
|
options: this.options
|
|
14003
14192
|
});
|
|
@@ -14013,7 +14202,7 @@ var __webpack_exports__ = {};
|
|
|
14013
14202
|
const request = await client_default()(method, url).query(queryParams).set("Timezone-Id", this.timezoneId).send(videomail).timeout(this.options.timeouts.connection);
|
|
14014
14203
|
return request;
|
|
14015
14204
|
} catch (exc) {
|
|
14016
|
-
throw
|
|
14205
|
+
throw createError({
|
|
14017
14206
|
exc: findOriginalExc(exc),
|
|
14018
14207
|
options: this.options
|
|
14019
14208
|
});
|
|
@@ -14039,8 +14228,7 @@ var __webpack_exports__ = {};
|
|
|
14039
14228
|
cpu: err.cpu,
|
|
14040
14229
|
device: err.device,
|
|
14041
14230
|
engine: err.engine,
|
|
14042
|
-
err: err.err,
|
|
14043
|
-
errStringified: JSON.stringify(err.err, void 0, 2),
|
|
14231
|
+
err: serializeError(err.err),
|
|
14044
14232
|
explanation: err.explanation,
|
|
14045
14233
|
location: err.location,
|
|
14046
14234
|
logLines: err.logLines,
|
|
@@ -14056,7 +14244,7 @@ var __webpack_exports__ = {};
|
|
|
14056
14244
|
stack: err.stack,
|
|
14057
14245
|
versions: {
|
|
14058
14246
|
videomailClient: package_namespaceObject.i8,
|
|
14059
|
-
|
|
14247
|
+
videomailNinjaFormPlugin: null === (_this_options_versions = this.options.versions) || void 0 === _this_options_versions ? void 0 : _this_options_versions.videomailNinjaFormPlugin
|
|
14060
14248
|
}
|
|
14061
14249
|
};
|
|
14062
14250
|
await client_default()(form_FormMethod.POST, url).query(queryParams).set("Timezone-Id", this.timezoneId).send(fullVideomailErrorData).timeout(this.options.timeouts.connection);
|
|
@@ -14075,7 +14263,7 @@ var __webpack_exports__ = {};
|
|
|
14075
14263
|
} else res = await this.write(form_FormMethod.POST, newVideomail);
|
|
14076
14264
|
return res;
|
|
14077
14265
|
} catch (exc) {
|
|
14078
|
-
throw
|
|
14266
|
+
throw createError({
|
|
14079
14267
|
exc: findOriginalExc(exc),
|
|
14080
14268
|
options: this.options
|
|
14081
14269
|
});
|
|
@@ -14094,7 +14282,7 @@ var __webpack_exports__ = {};
|
|
|
14094
14282
|
formType = "form";
|
|
14095
14283
|
break;
|
|
14096
14284
|
default:
|
|
14097
|
-
throw
|
|
14285
|
+
throw createError({
|
|
14098
14286
|
err: new Error(`Invalid enctype given: ${this.options.enctype}`),
|
|
14099
14287
|
options: this.options
|
|
14100
14288
|
});
|
|
@@ -14103,7 +14291,7 @@ var __webpack_exports__ = {};
|
|
|
14103
14291
|
const res = await client_default().post(url).type(formType).set("Timezone-Id", this.timezoneId).send(formData).timeout(this.options.timeouts.connection);
|
|
14104
14292
|
return res;
|
|
14105
14293
|
} catch (exc) {
|
|
14106
|
-
throw
|
|
14294
|
+
throw createError({
|
|
14107
14295
|
exc: findOriginalExc(exc),
|
|
14108
14296
|
options: this.options
|
|
14109
14297
|
});
|
|
@@ -15185,17 +15373,15 @@ var __webpack_exports__ = {};
|
|
|
15185
15373
|
if (!this.getMessageElement()) {
|
|
15186
15374
|
this.messageElement = document.createElement("h2");
|
|
15187
15375
|
this.messageElement.id = NOTIFIER_MESSAGE_ID;
|
|
15188
|
-
if (this.notifyElement)
|
|
15189
|
-
|
|
15190
|
-
|
|
15191
|
-
|
|
15192
|
-
|
|
15193
|
-
|
|
15194
|
-
|
|
15195
|
-
|
|
15196
|
-
|
|
15197
|
-
} else this.options.logger.warn("There is no message element for displaying a message");
|
|
15198
|
-
} else this.options.logger.warn("Not going to update notifierMessage element because message is empty");
|
|
15376
|
+
if (this.notifyElement) if (this.explanationElement) this.notifyElement.insertBefore(this.messageElement, this.explanationElement);
|
|
15377
|
+
else this.notifyElement.appendChild(this.messageElement);
|
|
15378
|
+
else this.options.logger.warn(`Unable to show message ${message} because notifyElement is empty`);
|
|
15379
|
+
}
|
|
15380
|
+
if (message.length > 0) if (this.messageElement) {
|
|
15381
|
+
const problem = null == messageOptions ? void 0 : messageOptions.problem;
|
|
15382
|
+
this.messageElement.innerHTML = (problem ? "☹ " : "") + message;
|
|
15383
|
+
} else this.options.logger.warn("There is no message element for displaying a message");
|
|
15384
|
+
else this.options.logger.warn("Not going to update notifierMessage element because message is empty");
|
|
15199
15385
|
hidden_default()(this.messageElement, false);
|
|
15200
15386
|
}
|
|
15201
15387
|
setExplanation(explanation) {
|
|
@@ -15498,7 +15684,7 @@ var __webpack_exports__ = {};
|
|
|
15498
15684
|
reportErrors: true,
|
|
15499
15685
|
fakeUaString: void 0,
|
|
15500
15686
|
versions: {
|
|
15501
|
-
|
|
15687
|
+
videomailNinjaFormPlugin: void 0
|
|
15502
15688
|
}
|
|
15503
15689
|
};
|
|
15504
15690
|
const src_options = options_options;
|
|
@@ -15538,7 +15724,7 @@ var __webpack_exports__ = {};
|
|
|
15538
15724
|
try {
|
|
15539
15725
|
this.audioInput = this.getAudioContext().createMediaStreamSource(localMediaStream);
|
|
15540
15726
|
} catch (exc) {
|
|
15541
|
-
throw
|
|
15727
|
+
throw createError({
|
|
15542
15728
|
message: "Webcam has no audio",
|
|
15543
15729
|
exc,
|
|
15544
15730
|
options: this.options
|
|
@@ -15546,11 +15732,11 @@ var __webpack_exports__ = {};
|
|
|
15546
15732
|
}
|
|
15547
15733
|
let { bufferSize } = this.options.audio;
|
|
15548
15734
|
if ("auto" === bufferSize) bufferSize = getBrowser(this.options).isFirefox() ? 512 : 2048;
|
|
15549
|
-
if (!is_power_of_two_default()(bufferSize)) throw
|
|
15735
|
+
if (!is_power_of_two_default()(bufferSize)) throw createError({
|
|
15550
15736
|
message: "Audio buffer size must be a power of two.",
|
|
15551
15737
|
options: this.options
|
|
15552
15738
|
});
|
|
15553
|
-
if (!this.options.audio.volume || src_options.audio.volume > 1) throw
|
|
15739
|
+
if (!this.options.audio.volume || src_options.audio.volume > 1) throw createError({
|
|
15554
15740
|
message: "Audio volume must be between zero and one.",
|
|
15555
15741
|
options: this.options
|
|
15556
15742
|
});
|
|
@@ -15575,7 +15761,7 @@ var __webpack_exports__ = {};
|
|
|
15575
15761
|
this.options.logger.debug("AudioRecorder: audio context is closed");
|
|
15576
15762
|
this.vcAudioContext = void 0;
|
|
15577
15763
|
}).catch(function(err) {
|
|
15578
|
-
if (err instanceof Error) throw
|
|
15764
|
+
if (err instanceof Error) throw createError({
|
|
15579
15765
|
err,
|
|
15580
15766
|
options: src_options
|
|
15581
15767
|
});
|
|
@@ -15640,7 +15826,7 @@ var __webpack_exports__ = {};
|
|
|
15640
15826
|
attachMediaStream(stream) {
|
|
15641
15827
|
this.currentVisualStream = stream;
|
|
15642
15828
|
if (this.rawVisualUserMedia) this.rawVisualUserMedia.srcObject = stream;
|
|
15643
|
-
else throw
|
|
15829
|
+
else throw createError({
|
|
15644
15830
|
message: "Error attaching stream to element.",
|
|
15645
15831
|
explanation: "Contact the developer about this",
|
|
15646
15832
|
options: this.options
|
|
@@ -15762,7 +15948,7 @@ var __webpack_exports__ = {};
|
|
|
15762
15948
|
videoHeight: null === (_this_rawVisualUserMedia4 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia4 ? void 0 : _this_rawVisualUserMedia4.videoHeight
|
|
15763
15949
|
});
|
|
15764
15950
|
null === (_this_rawVisualUserMedia5 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia5 || _this_rawVisualUserMedia5.removeEventListener("play", onPlay);
|
|
15765
|
-
if (this.hasEnded() || this.hasInvalidDimensions()) endedEarlyCallback(
|
|
15951
|
+
if (this.hasEnded() || this.hasInvalidDimensions()) endedEarlyCallback(createError({
|
|
15766
15952
|
message: "Already busy",
|
|
15767
15953
|
explanation: "Probably another browser window is using your webcam?",
|
|
15768
15954
|
options: this.options
|
|
@@ -15796,18 +15982,17 @@ var __webpack_exports__ = {};
|
|
|
15796
15982
|
try {
|
|
15797
15983
|
var _this_rawVisualUserMedia, _this_rawVisualUserMedia1, _this_rawVisualUserMedia2;
|
|
15798
15984
|
const videoTrack = media_getFirstVideoTrack(localMediaStream);
|
|
15799
|
-
if (videoTrack) {
|
|
15800
|
-
|
|
15801
|
-
|
|
15802
|
-
|
|
15803
|
-
|
|
15804
|
-
|
|
15805
|
-
|
|
15806
|
-
|
|
15807
|
-
|
|
15808
|
-
|
|
15809
|
-
|
|
15810
|
-
} else this.options.logger.debug("UserMedia: detected (but no video tracks exist");
|
|
15985
|
+
if (videoTrack) if (videoTrack.enabled) {
|
|
15986
|
+
let description = "";
|
|
15987
|
+
if (videoTrack.label && videoTrack.label.length > 0) description = description.concat(videoTrack.label);
|
|
15988
|
+
description = description.concat(` with enabled=${videoTrack.enabled}, muted=${videoTrack.muted}, readyState=${videoTrack.readyState}`);
|
|
15989
|
+
this.options.logger.debug(`UserMedia: ${videoTrack.kind} detected. ${description}`);
|
|
15990
|
+
} else throw createError({
|
|
15991
|
+
message: "Webcam is disabled",
|
|
15992
|
+
explanation: "The video track seems to be disabled. Enable it in your system.",
|
|
15993
|
+
options: this.options
|
|
15994
|
+
});
|
|
15995
|
+
else this.options.logger.debug("UserMedia: detected (but no video tracks exist");
|
|
15811
15996
|
null === (_this_rawVisualUserMedia = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia || _this_rawVisualUserMedia.addEventListener("loadedmetadata", onLoadedMetaData);
|
|
15812
15997
|
null === (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia1 || _this_rawVisualUserMedia1.addEventListener("play", onPlay);
|
|
15813
15998
|
null === (_this_rawVisualUserMedia2 = this.rawVisualUserMedia) || void 0 === _this_rawVisualUserMedia2 || _this_rawVisualUserMedia2.addEventListener("error", (err)=>{
|
|
@@ -15876,14 +16061,14 @@ var __webpack_exports__ = {};
|
|
|
15876
16061
|
let rawHeight;
|
|
15877
16062
|
if (this.options.video.width || this.options.video.height) {
|
|
15878
16063
|
rawHeight = this.recorder.calculateHeight(responsive);
|
|
15879
|
-
if (!rawHeight || rawHeight < 1) throw
|
|
16064
|
+
if (!rawHeight || rawHeight < 1) throw createError({
|
|
15880
16065
|
message: "Bad dimensions",
|
|
15881
16066
|
explanation: "Calculated raw height cannot be less than 1!",
|
|
15882
16067
|
options: this.options
|
|
15883
16068
|
});
|
|
15884
16069
|
} else {
|
|
15885
16070
|
rawHeight = this.getVideoHeight();
|
|
15886
|
-
if (!rawHeight || rawHeight < 1) throw
|
|
16071
|
+
if (!rawHeight || rawHeight < 1) throw createError({
|
|
15887
16072
|
message: "Bad dimensions",
|
|
15888
16073
|
explanation: "Raw video height from DOM element cannot be less than 1!",
|
|
15889
16074
|
options: this.options
|
|
@@ -15940,7 +16125,7 @@ var __webpack_exports__ = {};
|
|
|
15940
16125
|
let minHeight;
|
|
15941
16126
|
if (options.video.height) {
|
|
15942
16127
|
minHeight = Math.min(options.video.height, height);
|
|
15943
|
-
if (minHeight < 1) throw
|
|
16128
|
+
if (minHeight < 1) throw createError({
|
|
15944
16129
|
message: `Got a min height less than 1 (${minHeight})!`,
|
|
15945
16130
|
options
|
|
15946
16131
|
});
|
|
@@ -15962,7 +16147,7 @@ var __webpack_exports__ = {};
|
|
|
15962
16147
|
function limitHeight_limitHeight(height, options, calledFrom) {
|
|
15963
16148
|
let limitedHeight = document.documentElement.clientHeight;
|
|
15964
16149
|
if (height) limitedHeight = Math.min(height, limitedHeight);
|
|
15965
|
-
if (limitedHeight < 1) throw
|
|
16150
|
+
if (limitedHeight < 1) throw createError({
|
|
15966
16151
|
message: `Limited height ${limitedHeight} cannot be less than 1! (Called from ${calledFrom})`,
|
|
15967
16152
|
options
|
|
15968
16153
|
});
|
|
@@ -15972,13 +16157,13 @@ var __webpack_exports__ = {};
|
|
|
15972
16157
|
function calculateWidth(responsive, videoHeight, options, ratio) {
|
|
15973
16158
|
let height = figureMinHeight(videoHeight, options);
|
|
15974
16159
|
if (responsive) height = limitHeight(height, options, "calculateWidth");
|
|
15975
|
-
if (!height || height < 1) throw
|
|
16160
|
+
if (!height || height < 1) throw createError({
|
|
15976
16161
|
message: `Height ${height} cannot be smaller than 1 when calculating width.`,
|
|
15977
16162
|
options
|
|
15978
16163
|
});
|
|
15979
16164
|
const chosenRatio = null != ratio ? ratio : getRatio(options, videoHeight);
|
|
15980
16165
|
const calculatedWidth = Math.round(height / chosenRatio);
|
|
15981
|
-
if (calculatedWidth < 1) throw
|
|
16166
|
+
if (calculatedWidth < 1) throw createError({
|
|
15982
16167
|
message: "Calculated width cannot be smaller than 1!",
|
|
15983
16168
|
options
|
|
15984
16169
|
});
|
|
@@ -15999,7 +16184,7 @@ var __webpack_exports__ = {};
|
|
|
15999
16184
|
let limitedWidth;
|
|
16000
16185
|
const outerWidth = getOuterWidth(element);
|
|
16001
16186
|
limitedWidth = width && "number" == typeof width ? outerWidth > 0 && outerWidth < width ? outerWidth : width : outerWidth;
|
|
16002
|
-
if (Number.isInteger(limitedWidth) && limitedWidth < 1) throw
|
|
16187
|
+
if (Number.isInteger(limitedWidth) && limitedWidth < 1) throw createError({
|
|
16003
16188
|
message: "Limited width cannot be less than 1!",
|
|
16004
16189
|
options
|
|
16005
16190
|
});
|
|
@@ -16008,14 +16193,14 @@ var __webpack_exports__ = {};
|
|
|
16008
16193
|
const limitWidth = limitWidth_limitWidth;
|
|
16009
16194
|
function calculateHeight(responsive, videoWidth, options, target, ratio, element) {
|
|
16010
16195
|
let width = videoWidth;
|
|
16011
|
-
if (width < 1) throw
|
|
16196
|
+
if (width < 1) throw createError({
|
|
16012
16197
|
message: `Unable to calculate height for target ${target} when width is less than 1 (= ${width}) and responsive mode is set to ${responsive}`,
|
|
16013
16198
|
options
|
|
16014
16199
|
});
|
|
16015
16200
|
if (responsive && element) width = limitWidth(element, options, width);
|
|
16016
16201
|
const chosenRatio = null != ratio ? ratio : getRatio(options, void 0, videoWidth);
|
|
16017
16202
|
const height = Math.round(width * chosenRatio);
|
|
16018
|
-
if (Number.isInteger(height) && height < 1) throw
|
|
16203
|
+
if (Number.isInteger(height) && height < 1) throw createError({
|
|
16019
16204
|
message: "Just calculated a height less than 1 which is wrong.",
|
|
16020
16205
|
options
|
|
16021
16206
|
});
|
|
@@ -16036,47 +16221,45 @@ var __webpack_exports__ = {};
|
|
|
16036
16221
|
const PIPE_SYMBOL = "°º¤ø,¸¸,ø¤º°`°º¤ø,¸,ø¤°º¤ø,¸¸,ø¤º°`°º¤ø,¸ ";
|
|
16037
16222
|
class Recorder extends util_Despot {
|
|
16038
16223
|
writeStream(buffer, opts) {
|
|
16039
|
-
if (this.stream) {
|
|
16040
|
-
|
|
16041
|
-
|
|
16042
|
-
|
|
16043
|
-
|
|
16044
|
-
|
|
16045
|
-
|
|
16224
|
+
if (this.stream) if (this.stream.destroyed) {
|
|
16225
|
+
this.stopPings();
|
|
16226
|
+
const err = createError({
|
|
16227
|
+
message: "Already disconnected",
|
|
16228
|
+
explanation: "Sorry, connection to the server has been destroyed. Please reload.",
|
|
16229
|
+
options: this.options
|
|
16230
|
+
});
|
|
16231
|
+
this.emit("ERROR", {
|
|
16232
|
+
err
|
|
16233
|
+
});
|
|
16234
|
+
} else {
|
|
16235
|
+
const onFlushedCallback = null == opts ? void 0 : opts.onFlushedCallback;
|
|
16236
|
+
try {
|
|
16237
|
+
this.stream.write(buffer, ()=>{
|
|
16238
|
+
if (!onFlushedCallback) return;
|
|
16239
|
+
try {
|
|
16240
|
+
onFlushedCallback(opts);
|
|
16241
|
+
} catch (exc) {
|
|
16242
|
+
const err = createError({
|
|
16243
|
+
message: "Failed to write stream buffer",
|
|
16244
|
+
explanation: `stream.write() failed because of ${pretty(exc)}`,
|
|
16245
|
+
options: this.options,
|
|
16246
|
+
exc
|
|
16247
|
+
});
|
|
16248
|
+
this.emit("ERROR", {
|
|
16249
|
+
err
|
|
16250
|
+
});
|
|
16251
|
+
}
|
|
16252
|
+
});
|
|
16253
|
+
} catch (exc) {
|
|
16254
|
+
const err = createError({
|
|
16255
|
+
message: "Failed writing to server",
|
|
16256
|
+
explanation: `stream.write() failed because of ${pretty(exc)}`,
|
|
16257
|
+
options: this.options,
|
|
16258
|
+
exc
|
|
16046
16259
|
});
|
|
16047
16260
|
this.emit("ERROR", {
|
|
16048
16261
|
err
|
|
16049
16262
|
});
|
|
16050
|
-
} else {
|
|
16051
|
-
const onFlushedCallback = null == opts ? void 0 : opts.onFlushedCallback;
|
|
16052
|
-
try {
|
|
16053
|
-
this.stream.write(buffer, ()=>{
|
|
16054
|
-
if (!onFlushedCallback) return;
|
|
16055
|
-
try {
|
|
16056
|
-
onFlushedCallback(opts);
|
|
16057
|
-
} catch (exc) {
|
|
16058
|
-
const err = error_createError({
|
|
16059
|
-
message: "Failed to write stream buffer",
|
|
16060
|
-
explanation: `stream.write() failed because of ${pretty(exc)}`,
|
|
16061
|
-
options: this.options,
|
|
16062
|
-
exc
|
|
16063
|
-
});
|
|
16064
|
-
this.emit("ERROR", {
|
|
16065
|
-
err
|
|
16066
|
-
});
|
|
16067
|
-
}
|
|
16068
|
-
});
|
|
16069
|
-
} catch (exc) {
|
|
16070
|
-
const err = error_createError({
|
|
16071
|
-
message: "Failed writing to server",
|
|
16072
|
-
explanation: `stream.write() failed because of ${pretty(exc)}`,
|
|
16073
|
-
options: this.options,
|
|
16074
|
-
exc
|
|
16075
|
-
});
|
|
16076
|
-
this.emit("ERROR", {
|
|
16077
|
-
err
|
|
16078
|
-
});
|
|
16079
|
-
}
|
|
16080
16263
|
}
|
|
16081
16264
|
}
|
|
16082
16265
|
}
|
|
@@ -16180,7 +16363,7 @@ var __webpack_exports__ = {};
|
|
|
16180
16363
|
});
|
|
16181
16364
|
} catch (exc) {
|
|
16182
16365
|
this.connecting = this.connected = false;
|
|
16183
|
-
const err =
|
|
16366
|
+
const err = createError({
|
|
16184
16367
|
message: "Failed to connect to server",
|
|
16185
16368
|
explanation: "Please upgrade your browser. Your current version does not seem to support websockets.",
|
|
16186
16369
|
options: this.options,
|
|
@@ -16217,7 +16400,7 @@ var __webpack_exports__ = {};
|
|
|
16217
16400
|
command = JSON.parse(data.toString());
|
|
16218
16401
|
} catch (exc) {
|
|
16219
16402
|
this.options.logger.debug(`Failed to parse command: ${exc}`);
|
|
16220
|
-
const err =
|
|
16403
|
+
const err = createError({
|
|
16221
16404
|
message: "Invalid server command",
|
|
16222
16405
|
explanation: `Contact us asap. Bad command was ${data.toString()}. `,
|
|
16223
16406
|
options: this.options,
|
|
@@ -16286,7 +16469,7 @@ var __webpack_exports__ = {};
|
|
|
16286
16469
|
const errorListeners = util_Despot.getListeners("ERROR");
|
|
16287
16470
|
if (null == errorListeners ? void 0 : errorListeners.length) {
|
|
16288
16471
|
if (err.name !== error_VideomailError.MEDIA_DEVICE_NOT_SUPPORTED) {
|
|
16289
|
-
const videomailError =
|
|
16472
|
+
const videomailError = createError({
|
|
16290
16473
|
err,
|
|
16291
16474
|
options: this.options
|
|
16292
16475
|
});
|
|
@@ -16298,7 +16481,7 @@ var __webpack_exports__ = {};
|
|
|
16298
16481
|
} else if (this.unloaded) this.options.logger.debug(`Recorder: already unloaded. Not going to throw error ${pretty(err)}`);
|
|
16299
16482
|
else {
|
|
16300
16483
|
this.options.logger.debug(`Recorder: no error listeners attached but throwing error ${pretty(err)}`);
|
|
16301
|
-
throw
|
|
16484
|
+
throw createError({
|
|
16302
16485
|
err,
|
|
16303
16486
|
message: "Unable to process this error since there are no error listeners anymore.",
|
|
16304
16487
|
options: this.options
|
|
@@ -16407,10 +16590,8 @@ var __webpack_exports__ = {};
|
|
|
16407
16590
|
switch(command.command){
|
|
16408
16591
|
case "ready":
|
|
16409
16592
|
this.emit("SERVER_READY");
|
|
16410
|
-
if (!this.userMediaTimeout)
|
|
16411
|
-
|
|
16412
|
-
else this.loadUserMedia();
|
|
16413
|
-
}
|
|
16593
|
+
if (!this.userMediaTimeout) if (this.options.loadUserMediaOnRecord) this.show();
|
|
16594
|
+
else this.loadUserMedia();
|
|
16414
16595
|
break;
|
|
16415
16596
|
case "preview":
|
|
16416
16597
|
this.preview(command.args);
|
|
@@ -16418,7 +16599,7 @@ var __webpack_exports__ = {};
|
|
|
16418
16599
|
case "error":
|
|
16419
16600
|
{
|
|
16420
16601
|
var _command_args_err_toString;
|
|
16421
|
-
const err =
|
|
16602
|
+
const err = createError({
|
|
16422
16603
|
message: "Oh no, server error!",
|
|
16423
16604
|
explanation: null !== (_command_args_err_toString = command.args.err.toString()) && void 0 !== _command_args_err_toString ? _command_args_err_toString : "(No message given)",
|
|
16424
16605
|
options: this.options
|
|
@@ -16442,7 +16623,7 @@ var __webpack_exports__ = {};
|
|
|
16442
16623
|
break;
|
|
16443
16624
|
default:
|
|
16444
16625
|
{
|
|
16445
|
-
const err =
|
|
16626
|
+
const err = createError({
|
|
16446
16627
|
message: `Unknown server command: ${command.command}`,
|
|
16447
16628
|
options: this.options
|
|
16448
16629
|
});
|
|
@@ -16648,7 +16829,7 @@ var __webpack_exports__ = {};
|
|
|
16648
16829
|
});
|
|
16649
16830
|
this.visuals.checkTimer(elapsedTime);
|
|
16650
16831
|
}
|
|
16651
|
-
} else throw
|
|
16832
|
+
} else throw createError({
|
|
16652
16833
|
message: "Failed to extract webcam data.",
|
|
16653
16834
|
options: this.options
|
|
16654
16835
|
});
|
|
@@ -16680,7 +16861,7 @@ var __webpack_exports__ = {};
|
|
|
16680
16861
|
recordWhenReady: true
|
|
16681
16862
|
});
|
|
16682
16863
|
else {
|
|
16683
|
-
const err =
|
|
16864
|
+
const err = createError({
|
|
16684
16865
|
message: "Load and enable your camera first",
|
|
16685
16866
|
options: this.options
|
|
16686
16867
|
});
|
|
@@ -16694,7 +16875,7 @@ var __webpack_exports__ = {};
|
|
|
16694
16875
|
if (!this.userMedia) throw new Error("No user media defined, unable to create canvas");
|
|
16695
16876
|
this.canvas = this.userMedia.createCanvas();
|
|
16696
16877
|
} catch (exc) {
|
|
16697
|
-
const err =
|
|
16878
|
+
const err = createError({
|
|
16698
16879
|
exc,
|
|
16699
16880
|
options: this.options
|
|
16700
16881
|
});
|
|
@@ -16705,7 +16886,7 @@ var __webpack_exports__ = {};
|
|
|
16705
16886
|
}
|
|
16706
16887
|
this.ctx = this.canvas.getContext("2d");
|
|
16707
16888
|
if (!this.canvas.width) {
|
|
16708
|
-
const err =
|
|
16889
|
+
const err = createError({
|
|
16709
16890
|
message: "Canvas has an invalid width.",
|
|
16710
16891
|
options: this.options
|
|
16711
16892
|
});
|
|
@@ -16715,7 +16896,7 @@ var __webpack_exports__ = {};
|
|
|
16715
16896
|
return;
|
|
16716
16897
|
}
|
|
16717
16898
|
if (!this.canvas.height) {
|
|
16718
|
-
const err =
|
|
16899
|
+
const err = createError({
|
|
16719
16900
|
message: "Canvas has an invalid height.",
|
|
16720
16901
|
options: this.options
|
|
16721
16902
|
});
|
|
@@ -17118,10 +17299,9 @@ var __webpack_exports__ = {};
|
|
|
17118
17299
|
if (!this.replayElement) return;
|
|
17119
17300
|
const tracks = this.replayElement.getElementsByTagName("track");
|
|
17120
17301
|
const firstTrack = tracks[0];
|
|
17121
|
-
if (firstTrack)
|
|
17122
|
-
|
|
17123
|
-
|
|
17124
|
-
} else {
|
|
17302
|
+
if (firstTrack) if (src) firstTrack.setAttribute("src", src);
|
|
17303
|
+
else this.replayElement.removeChild(firstTrack);
|
|
17304
|
+
else {
|
|
17125
17305
|
const track = document.createElement("track");
|
|
17126
17306
|
track.setAttribute("src", src);
|
|
17127
17307
|
track.src = src;
|
|
@@ -17136,10 +17316,9 @@ var __webpack_exports__ = {};
|
|
|
17136
17316
|
let source = this.getVideoSource(type);
|
|
17137
17317
|
let url = src;
|
|
17138
17318
|
if (url && bustCache) url += `?${Date.now()}`;
|
|
17139
|
-
if (source)
|
|
17140
|
-
|
|
17141
|
-
|
|
17142
|
-
} else if (src) {
|
|
17319
|
+
if (source) if (src) source.setAttribute("src", src);
|
|
17320
|
+
else this.replayElement.removeChild(source);
|
|
17321
|
+
else if (src) {
|
|
17143
17322
|
const { fps } = this.options.video;
|
|
17144
17323
|
const t = 1 / fps * 2;
|
|
17145
17324
|
source = document.createElement("source");
|
|
@@ -17286,15 +17465,13 @@ var __webpack_exports__ = {};
|
|
|
17286
17465
|
this.options.logger.debug(`Visuals: build (playerOnly = ${playerOnly}${parentElement ? `, parentElement="${pretty(parentElement)}"` : ""})`);
|
|
17287
17466
|
if (parentElement) this.visualsElement = parentElement.querySelector(`.${this.options.selectors.visualsClass}`);
|
|
17288
17467
|
else this.visualsElement = this.container.querySelector(`.${this.options.selectors.visualsClass}`);
|
|
17289
|
-
if (!this.visualsElement)
|
|
17290
|
-
|
|
17291
|
-
|
|
17292
|
-
|
|
17293
|
-
|
|
17294
|
-
|
|
17295
|
-
|
|
17296
|
-
else this.container.appendChild(this.visualsElement);
|
|
17297
|
-
}
|
|
17468
|
+
if (!this.visualsElement) if (playerOnly && parentElement) this.visualsElement = parentElement;
|
|
17469
|
+
else {
|
|
17470
|
+
this.visualsElement = document.createElement("div");
|
|
17471
|
+
this.visualsElement.classList.add(this.options.selectors.visualsClass);
|
|
17472
|
+
const buttonsElement = this.container.querySelector(`.${this.options.selectors.buttonsClass}`);
|
|
17473
|
+
if (buttonsElement && !this.container.isOutsideElementOf(buttonsElement)) this.container.insertBefore(this.visualsElement, buttonsElement);
|
|
17474
|
+
else this.container.appendChild(this.visualsElement);
|
|
17298
17475
|
}
|
|
17299
17476
|
this.visualsElement.classList.add("visuals");
|
|
17300
17477
|
this.correctDimensions();
|
|
@@ -17411,11 +17588,9 @@ var __webpack_exports__ = {};
|
|
|
17411
17588
|
hidden_default()(this.visualsElement, false);
|
|
17412
17589
|
}
|
|
17413
17590
|
show(params) {
|
|
17414
|
-
if (!(null == params ? void 0 : params.playerOnly)) {
|
|
17415
|
-
if (this.
|
|
17416
|
-
|
|
17417
|
-
} else this.recorder.build();
|
|
17418
|
-
}
|
|
17591
|
+
if (!(null == params ? void 0 : params.playerOnly)) if (this.isReplayShown()) {
|
|
17592
|
+
if (null == params ? void 0 : params.goBack) this.recorder.show();
|
|
17593
|
+
} else this.recorder.build();
|
|
17419
17594
|
this.showVisuals();
|
|
17420
17595
|
}
|
|
17421
17596
|
showReplayOnly() {
|
|
@@ -17506,7 +17681,7 @@ var __webpack_exports__ = {};
|
|
|
17506
17681
|
var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
|
|
17507
17682
|
var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
|
|
17508
17683
|
var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
|
|
17509
|
-
var main = __webpack_require__("../../node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[
|
|
17684
|
+
var main = __webpack_require__("../../node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[11].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[11].use[2]!../../node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[11].use[3]!./src/styles/main.styl");
|
|
17510
17685
|
var main_options = {};
|
|
17511
17686
|
main_options.styleTagTransform = styleTagTransform_default();
|
|
17512
17687
|
main_options.setAttributes = setAttributesWithoutAttributes_default();
|
|
@@ -17594,12 +17769,10 @@ var __webpack_exports__ = {};
|
|
|
17594
17769
|
this.hasError = true;
|
|
17595
17770
|
if (null === (_params_err = params.err) || void 0 === _params_err ? void 0 : _params_err.stack) this.options.logger.error(params.err.stack);
|
|
17596
17771
|
else if (null === (_params_err1 = params.err) || void 0 === _params_err1 ? void 0 : _params_err1.message) this.options.logger.error(params.err.message);
|
|
17597
|
-
else if (params.exc) {
|
|
17598
|
-
if (params.exc
|
|
17599
|
-
|
|
17600
|
-
|
|
17601
|
-
} else this.options.logger.error(params.exc);
|
|
17602
|
-
}
|
|
17772
|
+
else if (params.exc) if (params.exc instanceof Error) {
|
|
17773
|
+
if (params.exc.stack) this.options.logger.error(params.exc.stack);
|
|
17774
|
+
else if (params.exc.message) this.options.logger.error(params.exc.message);
|
|
17775
|
+
} else this.options.logger.error(params.exc);
|
|
17603
17776
|
if (this.options.displayErrors && params.err) this.visuals.error(params.err);
|
|
17604
17777
|
else this.visuals.reset();
|
|
17605
17778
|
}
|
|
@@ -17614,14 +17787,12 @@ var __webpack_exports__ = {};
|
|
|
17614
17787
|
once: true
|
|
17615
17788
|
});
|
|
17616
17789
|
if (!playerOnly) this.visibility.onChange((visible)=>{
|
|
17617
|
-
if (this.built) {
|
|
17618
|
-
if (
|
|
17619
|
-
|
|
17620
|
-
|
|
17621
|
-
|
|
17622
|
-
|
|
17623
|
-
this.emit("INVISIBLE");
|
|
17624
|
-
}
|
|
17790
|
+
if (this.built) if (visible) {
|
|
17791
|
+
if (isAutoPauseEnabled(this.options) && this.isCountingDown()) this.resume();
|
|
17792
|
+
this.emit("VISIBLE");
|
|
17793
|
+
} else {
|
|
17794
|
+
if (isAutoPauseEnabled(this.options) && (this.isCountingDown() || this.isRecording())) this.pause();
|
|
17795
|
+
this.emit("INVISIBLE");
|
|
17625
17796
|
}
|
|
17626
17797
|
});
|
|
17627
17798
|
if (this.options.enableSpace) {
|
|
@@ -17683,7 +17854,7 @@ var __webpack_exports__ = {};
|
|
|
17683
17854
|
return await this.resource.post(videomailFormData);
|
|
17684
17855
|
}
|
|
17685
17856
|
if (method === form_FormMethod.PUT) return await this.resource.put(videomailFormData);
|
|
17686
|
-
throw
|
|
17857
|
+
throw createError({
|
|
17687
17858
|
message: `Unsupported form method ${method}, unable to submit videomail.`,
|
|
17688
17859
|
options: this.options
|
|
17689
17860
|
});
|
|
@@ -17742,7 +17913,7 @@ var __webpack_exports__ = {};
|
|
|
17742
17913
|
}
|
|
17743
17914
|
}
|
|
17744
17915
|
show(params) {
|
|
17745
|
-
if (!this.containerElement) throw
|
|
17916
|
+
if (!this.containerElement) throw createError({
|
|
17746
17917
|
message: "No container element exists.",
|
|
17747
17918
|
options: this.options
|
|
17748
17919
|
});
|
|
@@ -17861,15 +18032,13 @@ var __webpack_exports__ = {};
|
|
|
17861
18032
|
const hasCc = recipients.cc && recipients.cc.length > 0;
|
|
17862
18033
|
const hasBcc = recipients.bcc && recipients.bcc.length > 0;
|
|
17863
18034
|
if (toIsConfigured) {
|
|
17864
|
-
if (!hasTo) {
|
|
17865
|
-
if (
|
|
17866
|
-
|
|
17867
|
-
|
|
17868
|
-
|
|
17869
|
-
|
|
17870
|
-
|
|
17871
|
-
} else valid = false;
|
|
17872
|
-
}
|
|
18035
|
+
if (!hasTo) if (ccIsConfigured && bccIsConfigured) {
|
|
18036
|
+
if (!hasCc && !hasBcc) valid = false;
|
|
18037
|
+
} else if (ccIsConfigured) {
|
|
18038
|
+
if (!hasCc) valid = false;
|
|
18039
|
+
} else if (bccIsConfigured) {
|
|
18040
|
+
if (!hasBcc) valid = false;
|
|
18041
|
+
} else valid = false;
|
|
17873
18042
|
} else if (ccIsConfigured) {
|
|
17874
18043
|
if (!hasCc) {
|
|
17875
18044
|
if (bccIsConfigured && !hasBcc) valid = false;
|
|
@@ -17933,7 +18102,7 @@ var __webpack_exports__ = {};
|
|
|
17933
18102
|
});
|
|
17934
18103
|
}
|
|
17935
18104
|
} catch (exc) {
|
|
17936
|
-
const err =
|
|
18105
|
+
const err = createError({
|
|
17937
18106
|
exc,
|
|
17938
18107
|
options: this.options
|
|
17939
18108
|
});
|
|
@@ -18036,15 +18205,13 @@ var __webpack_exports__ = {};
|
|
|
18036
18205
|
debug() {
|
|
18037
18206
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
|
18038
18207
|
const output = this.lifo("debug", args);
|
|
18039
|
-
if (this.options.verbose)
|
|
18040
|
-
|
|
18041
|
-
|
|
18042
|
-
|
|
18043
|
-
|
|
18044
|
-
|
|
18045
|
-
|
|
18046
|
-
else console.log(output);
|
|
18047
|
-
}
|
|
18208
|
+
if (this.options.verbose) if (this.browser.isFirefox()) this.logger.debug(output);
|
|
18209
|
+
else if (this.logger.groupCollapsed) {
|
|
18210
|
+
this.logger.groupCollapsed(output);
|
|
18211
|
+
this.logger.trace("Trace");
|
|
18212
|
+
this.logger.groupEnd();
|
|
18213
|
+
} else if (this.logger.debug) this.logger.debug(output);
|
|
18214
|
+
else console.log(output);
|
|
18048
18215
|
}
|
|
18049
18216
|
error() {
|
|
18050
18217
|
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)args[_key] = arguments[_key];
|
|
@@ -18103,12 +18270,12 @@ var __webpack_exports__ = {};
|
|
|
18103
18270
|
class VideomailClient extends util_Despot {
|
|
18104
18271
|
validateOptions() {
|
|
18105
18272
|
const width = this.options.video.width;
|
|
18106
|
-
if (void 0 !== width && width % 2 !== 0) throw
|
|
18273
|
+
if (void 0 !== width && width % 2 !== 0) throw createError({
|
|
18107
18274
|
message: "Width must be divisible by two.",
|
|
18108
18275
|
options: this.options
|
|
18109
18276
|
});
|
|
18110
18277
|
const height = this.options.video.height;
|
|
18111
|
-
if (void 0 !== height && height % 2 !== 0) throw
|
|
18278
|
+
if (void 0 !== height && height % 2 !== 0) throw createError({
|
|
18112
18279
|
message: "Height must be divisible by two.",
|
|
18113
18280
|
options: this.options
|
|
18114
18281
|
});
|
|
@@ -18190,8 +18357,12 @@ var __webpack_exports__ = {};
|
|
|
18190
18357
|
client_define_property(VideomailClient, "ENC_TYPE_FORM", constants["public"].ENC_TYPE_FORM);
|
|
18191
18358
|
const src_client = VideomailClient;
|
|
18192
18359
|
})();
|
|
18193
|
-
|
|
18194
|
-
|
|
18195
|
-
|
|
18360
|
+
exports.VideoType = __webpack_exports__.VideoType;
|
|
18361
|
+
exports.VideomailClient = __webpack_exports__.VideomailClient;
|
|
18362
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
18363
|
+
"VideoType",
|
|
18364
|
+
"VideomailClient"
|
|
18365
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
18366
|
+
Object.defineProperty(exports, '__esModule', {
|
|
18196
18367
|
value: true
|
|
18197
18368
|
});
|