videomail-client 10.2.44 → 10.2.46

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.
@@ -1179,7 +1179,7 @@ var __webpack_modules__ = {
1179
1179
  function writeFloat(buf, value, offset, littleEndian, noAssert) {
1180
1180
  value *= 1;
1181
1181
  offset >>>= 0;
1182
- if (!noAssert) checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -340282346638528860000000000000000000000);
1182
+ if (!noAssert) checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38);
1183
1183
  ieee754.write(buf, value, offset, littleEndian, 23, 4);
1184
1184
  return offset + 4;
1185
1185
  }
@@ -1192,7 +1192,7 @@ var __webpack_modules__ = {
1192
1192
  function writeDouble(buf, value, offset, littleEndian, noAssert) {
1193
1193
  value *= 1;
1194
1194
  offset >>>= 0;
1195
- if (!noAssert) checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);
1195
+ if (!noAssert) checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157e+308);
1196
1196
  ieee754.write(buf, value, offset, littleEndian, 52, 8);
1197
1197
  return offset + 8;
1198
1198
  }
@@ -2054,7 +2054,7 @@ var __webpack_modules__ = {
2054
2054
  }
2055
2055
  var util = Object.create(__webpack_require__("./node_modules/core-util-is/lib/util.js"));
2056
2056
  util.inherits = __webpack_require__("./node_modules/inherits/inherits_browser.js");
2057
- var debugUtil = __webpack_require__("?54a4");
2057
+ var debugUtil = __webpack_require__("?2927");
2058
2058
  var debug = void 0;
2059
2059
  debug = debugUtil && debugUtil.debuglog ? debugUtil.debuglog('stream') : function() {};
2060
2060
  var BufferList = __webpack_require__("./node_modules/duplexify/node_modules/readable-stream/lib/internal/streams/BufferList.js");
@@ -3177,7 +3177,7 @@ var __webpack_modules__ = {
3177
3177
  if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
3178
3178
  }
3179
3179
  var Buffer = __webpack_require__("./node_modules/duplexify/node_modules/safe-buffer/index.js").Buffer;
3180
- var util = __webpack_require__("?2a0b");
3180
+ var util = __webpack_require__("?82dc");
3181
3181
  function copyBuffer(src, target, offset) {
3182
3182
  src.copy(target, offset);
3183
3183
  }
@@ -4742,7 +4742,7 @@ var __webpack_modules__ = {
4742
4742
  },
4743
4743
  "./node_modules/global/document.js": function(module, __unused_webpack_exports, __webpack_require__) {
4744
4744
  var topLevel = void 0 !== __webpack_require__.g ? __webpack_require__.g : 'undefined' != typeof window ? window : {};
4745
- var minDoc = __webpack_require__("?39ea");
4745
+ var minDoc = __webpack_require__("?7a90");
4746
4746
  var doccy;
4747
4747
  if ('undefined' != typeof document) doccy = document;
4748
4748
  else {
@@ -5174,7 +5174,7 @@ var __webpack_modules__ = {
5174
5174
  }
5175
5175
  return $replace.call(str, sepRegex, '$&_');
5176
5176
  }
5177
- var utilInspect = __webpack_require__("?72a8");
5177
+ var utilInspect = __webpack_require__("?aa23");
5178
5178
  var inspectCustom = utilInspect.custom;
5179
5179
  var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
5180
5180
  var quotes = {
@@ -8250,7 +8250,7 @@ var __webpack_modules__ = {
8250
8250
  }
8251
8251
  var util = Object.create(__webpack_require__("./node_modules/core-util-is/lib/util.js"));
8252
8252
  util.inherits = __webpack_require__("./node_modules/inherits/inherits_browser.js");
8253
- var debugUtil = __webpack_require__("?e97d");
8253
+ var debugUtil = __webpack_require__("?5f55");
8254
8254
  var debug = void 0;
8255
8255
  debug = debugUtil && debugUtil.debuglog ? debugUtil.debuglog('stream') : function() {};
8256
8256
  var BufferList = __webpack_require__("./node_modules/websocket-stream/node_modules/readable-stream/lib/internal/streams/BufferList.js");
@@ -9373,7 +9373,7 @@ var __webpack_modules__ = {
9373
9373
  if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
9374
9374
  }
9375
9375
  var Buffer = __webpack_require__("./node_modules/websocket-stream/node_modules/safe-buffer/index.js").Buffer;
9376
- var util = __webpack_require__("?ea64");
9376
+ var util = __webpack_require__("?9936");
9377
9377
  function copyBuffer(src, target, offset) {
9378
9378
  src.copy(target, offset);
9379
9379
  }
@@ -9973,16 +9973,16 @@ var __webpack_modules__ = {
9973
9973
  }
9974
9974
  }
9975
9975
  },
9976
- "./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__) {
9976
+ "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl": function(module, __webpack_exports__, __webpack_require__) {
9977
9977
  "use strict";
9978
9978
  __webpack_require__.d(__webpack_exports__, {
9979
9979
  Z: ()=>__WEBPACK_DEFAULT_EXPORT__
9980
9980
  });
9981
- var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
9982
- var _node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
9983
- var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rsbuild/core/compiled/css-loader/api.js");
9984
- var _node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
9985
- 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());
9981
+ var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js");
9982
+ var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
9983
+ var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js");
9984
+ var _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1__);
9985
+ var ___CSS_LOADER_EXPORT___ = _node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_rslib_core_node_modules_rsbuild_core_compiled_css_loader_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());
9986
9986
  ___CSS_LOADER_EXPORT___.push([
9987
9987
  module.id,
9988
9988
  `@keyframes blink {
@@ -10126,13 +10126,13 @@ var __webpack_modules__ = {
10126
10126
  ]);
10127
10127
  const __WEBPACK_DEFAULT_EXPORT__ = ___CSS_LOADER_EXPORT___;
10128
10128
  },
10129
- "?2a0b": function() {},
10130
- "?54a4": function() {},
10131
- "?39ea": function() {},
10132
- "?72a8": function() {},
10133
- "?ea64": function() {},
10134
- "?e97d": function() {},
10135
- "./node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
10129
+ "?82dc": function() {},
10130
+ "?2927": function() {},
10131
+ "?7a90": function() {},
10132
+ "?aa23": function() {},
10133
+ "?9936": function() {},
10134
+ "?5f55": function() {},
10135
+ "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/api.js": function(module) {
10136
10136
  "use strict";
10137
10137
  module.exports = function(cssWithMappingToString) {
10138
10138
  var list = [];
@@ -10186,13 +10186,13 @@ var __webpack_modules__ = {
10186
10186
  return list;
10187
10187
  };
10188
10188
  },
10189
- "./node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
10189
+ "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/noSourceMaps.js": function(module) {
10190
10190
  "use strict";
10191
10191
  module.exports = function(i) {
10192
10192
  return i[1];
10193
10193
  };
10194
10194
  },
10195
- "./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
10195
+ "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js": function(module) {
10196
10196
  "use strict";
10197
10197
  var stylesInDOM = [];
10198
10198
  function getIndexByIdentifier(identifier) {
@@ -10271,7 +10271,7 @@ var __webpack_modules__ = {
10271
10271
  };
10272
10272
  };
10273
10273
  },
10274
- "./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
10274
+ "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js": function(module) {
10275
10275
  "use strict";
10276
10276
  var memo = {};
10277
10277
  function getTarget(target) {
@@ -10293,7 +10293,7 @@ var __webpack_modules__ = {
10293
10293
  }
10294
10294
  module.exports = insertBySelector;
10295
10295
  },
10296
- "./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
10296
+ "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js": function(module) {
10297
10297
  "use strict";
10298
10298
  function insertStyleElement(options) {
10299
10299
  var element = document.createElement("style");
@@ -10303,7 +10303,7 @@ var __webpack_modules__ = {
10303
10303
  }
10304
10304
  module.exports = insertStyleElement;
10305
10305
  },
10306
- "./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
10306
+ "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js": function(module, __unused_webpack_exports, __webpack_require__) {
10307
10307
  "use strict";
10308
10308
  function setAttributesWithoutAttributes(styleElement) {
10309
10309
  var nonce = __webpack_require__.nc;
@@ -10311,7 +10311,7 @@ var __webpack_modules__ = {
10311
10311
  }
10312
10312
  module.exports = setAttributesWithoutAttributes;
10313
10313
  },
10314
- "./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
10314
+ "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js": function(module) {
10315
10315
  "use strict";
10316
10316
  function apply(styleElement, options, obj) {
10317
10317
  var css = "";
@@ -10348,7 +10348,7 @@ var __webpack_modules__ = {
10348
10348
  }
10349
10349
  module.exports = domAPI;
10350
10350
  },
10351
- "./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
10351
+ "./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js": function(module) {
10352
10352
  "use strict";
10353
10353
  function styleTagTransform(css, styleElement) {
10354
10354
  if (styleElement.styleSheet) styleElement.styleSheet.cssText = css;
@@ -10429,8 +10429,8 @@ var __webpack_exports__ = {};
10429
10429
  "use strict";
10430
10430
  __webpack_require__.r(__webpack_exports__);
10431
10431
  __webpack_require__.d(__webpack_exports__, {
10432
- VideoType: ()=>VideoType_VideoType,
10433
- VideomailClient: ()=>src_client
10432
+ VideomailClient: ()=>src_client,
10433
+ VideoType: ()=>VideoType_VideoType
10434
10434
  });
10435
10435
  const constants = {
10436
10436
  SITE_NAME_LABEL: "x-videomail-site-name",
@@ -10602,7 +10602,7 @@ var __webpack_exports__ = {};
10602
10602
  breakLength: 1 / 0
10603
10603
  }).replace(/\s+/gu, " ").replace(/\r?\n/gu, "");
10604
10604
  }
10605
- function pretty_pretty(anything) {
10605
+ function pretty(anything) {
10606
10606
  if (anything instanceof HTMLElement) {
10607
10607
  if (anything.id) return `#${anything.id}`;
10608
10608
  if (anything.className) return `.${anything.className}`;
@@ -10610,7 +10610,7 @@ var __webpack_exports__ = {};
10610
10610
  }
10611
10611
  return inspect(anything);
10612
10612
  }
10613
- const pretty = pretty_pretty;
10613
+ const util_pretty = pretty;
10614
10614
  function isAudioEnabled(options) {
10615
10615
  return Boolean(options.audio.enabled);
10616
10616
  }
@@ -13632,7 +13632,7 @@ var __webpack_exports__ = {};
13632
13632
  return obj;
13633
13633
  }
13634
13634
  const FALLBACK_VIDEO_TYPE = VideoType_VideoType.MP4;
13635
- class Browser {
13635
+ class Browser_Browser {
13636
13636
  isIOS() {
13637
13637
  return "iOS" === this.result.os.name;
13638
13638
  }
@@ -13680,7 +13680,7 @@ var __webpack_exports__ = {};
13680
13680
  const message = "Unable to access webcam";
13681
13681
  let explanation;
13682
13682
  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";
13683
- return createError({
13683
+ return error_createError({
13684
13684
  message,
13685
13685
  explanation,
13686
13686
  options: this.options
@@ -13706,14 +13706,14 @@ var __webpack_exports__ = {};
13706
13706
  this.result = userAgentParser.getResult();
13707
13707
  }
13708
13708
  }
13709
- const util_Browser = Browser;
13709
+ const Browser = Browser_Browser;
13710
13710
  let getBrowser_browser;
13711
- function getBrowser_getBrowser(localOptions) {
13712
- if (!getBrowser_browser) getBrowser_browser = new util_Browser(localOptions);
13711
+ function getBrowser(localOptions) {
13712
+ if (!getBrowser_browser) getBrowser_browser = new Browser(localOptions);
13713
13713
  return getBrowser_browser;
13714
13714
  }
13715
- const getBrowser = getBrowser_getBrowser;
13716
- function HTTPError_define_property(obj, key, value) {
13715
+ const util_getBrowser = getBrowser;
13716
+ function HTTPVideomailError_define_property(obj, key, value) {
13717
13717
  if (key in obj) Object.defineProperty(obj, key, {
13718
13718
  value: value,
13719
13719
  enumerable: true,
@@ -13723,12 +13723,12 @@ var __webpack_exports__ = {};
13723
13723
  else obj[key] = value;
13724
13724
  return obj;
13725
13725
  }
13726
- class HTTPError_HTTPError extends Error {
13726
+ class HTTPVideomailError_HTTPVideomailError extends Error {
13727
13727
  constructor(...args){
13728
- super(...args), HTTPError_define_property(this, "code", void 0), HTTPError_define_property(this, "status", void 0);
13728
+ super(...args), HTTPVideomailError_define_property(this, "code", void 0), HTTPVideomailError_define_property(this, "status", void 0), HTTPVideomailError_define_property(this, "explanation", void 0);
13729
13729
  }
13730
13730
  }
13731
- const HTTPError = HTTPError_HTTPError;
13731
+ const HTTPVideomailError = HTTPVideomailError_HTTPVideomailError;
13732
13732
  function VideomailError_define_property(obj, key, value) {
13733
13733
  if (key in obj) Object.defineProperty(obj, key, {
13734
13734
  value: value,
@@ -13739,7 +13739,7 @@ var __webpack_exports__ = {};
13739
13739
  else obj[key] = value;
13740
13740
  return obj;
13741
13741
  }
13742
- class VideomailError extends HTTPError {
13742
+ class VideomailError extends HTTPVideomailError {
13743
13743
  hasClass(name) {
13744
13744
  var _this_classList;
13745
13745
  return null == (_this_classList = this.classList) ? void 0 : _this_classList.includes(name);
@@ -13751,12 +13751,12 @@ var __webpack_exports__ = {};
13751
13751
  return this.classList;
13752
13752
  }
13753
13753
  constructor(message, options, classList, errData){
13754
- super(message, errData), VideomailError_define_property(this, "title", "Error from videomail-client npm package"), VideomailError_define_property(this, "location", window.location.href), VideomailError_define_property(this, "explanation", void 0), VideomailError_define_property(this, "logLines", void 0), VideomailError_define_property(this, "siteName", void 0), VideomailError_define_property(this, "cookie", void 0), VideomailError_define_property(this, "err", void 0), VideomailError_define_property(this, "promise", void 0), VideomailError_define_property(this, "reason", void 0), VideomailError_define_property(this, "browser", void 0), VideomailError_define_property(this, "cpu", void 0), VideomailError_define_property(this, "device", void 0), VideomailError_define_property(this, "engine", void 0), VideomailError_define_property(this, "os", void 0), VideomailError_define_property(this, "screen", void 0), VideomailError_define_property(this, "orientation", void 0), VideomailError_define_property(this, "classList", void 0);
13754
+ super(message, errData), VideomailError_define_property(this, "title", "Error from videomail-client npm package"), VideomailError_define_property(this, "location", window.location.href), VideomailError_define_property(this, "logLines", void 0), VideomailError_define_property(this, "siteName", void 0), VideomailError_define_property(this, "cookie", void 0), VideomailError_define_property(this, "err", void 0), VideomailError_define_property(this, "promise", void 0), VideomailError_define_property(this, "reason", void 0), VideomailError_define_property(this, "browser", void 0), VideomailError_define_property(this, "cpu", void 0), VideomailError_define_property(this, "device", void 0), VideomailError_define_property(this, "engine", void 0), VideomailError_define_property(this, "os", void 0), VideomailError_define_property(this, "screen", void 0), VideomailError_define_property(this, "orientation", void 0), VideomailError_define_property(this, "classList", void 0);
13755
13755
  this.explanation = null == errData ? void 0 : errData.explanation;
13756
13756
  this.logLines = null == errData ? void 0 : errData.logLines;
13757
13757
  this.siteName = options.siteName;
13758
13758
  this.classList = classList;
13759
- const browser = getBrowser(options);
13759
+ const browser = util_getBrowser(options);
13760
13760
  const usefulClientData = browser.getUsefulData();
13761
13761
  this.browser = usefulClientData.browser;
13762
13762
  if (usefulClientData.cpu.architecture) this.cpu = usefulClientData.cpu;
@@ -13792,7 +13792,7 @@ var __webpack_exports__ = {};
13792
13792
  VideomailError_define_property(VideomailError, "TRACK_START_ERROR", "TrackStartError");
13793
13793
  VideomailError_define_property(VideomailError, "INVALID_STATE_ERROR", "InvalidStateError");
13794
13794
  const error_VideomailError = VideomailError;
13795
- function createError_createError(errorParams) {
13795
+ function createError(errorParams) {
13796
13796
  const { exc, options } = errorParams;
13797
13797
  let err = errorParams.err;
13798
13798
  if (!err && exc instanceof Error) err = exc;
@@ -13802,7 +13802,7 @@ var __webpack_exports__ = {};
13802
13802
  var _errorParams_classList;
13803
13803
  const classList = null != (_errorParams_classList = errorParams.classList) ? _errorParams_classList : [];
13804
13804
  const audioEnabled = isAudioEnabled(options);
13805
- const browser = getBrowser(options);
13805
+ const browser = util_getBrowser(options);
13806
13806
  var _err_name;
13807
13807
  const errName = null != (_err_name = null == err ? void 0 : err.name) ? _err_name : null == err ? void 0 : err.constructor.name;
13808
13808
  switch(errName){
@@ -13883,22 +13883,22 @@ var __webpack_exports__ = {};
13883
13883
  break;
13884
13884
  case error_VideomailError.DOM_EXCEPTION:
13885
13885
  message = "DOM Exception";
13886
- explanation = pretty(err);
13886
+ explanation = util_pretty(err);
13887
13887
  break;
13888
13888
  case error_VideomailError.MEDIA_DEVICE_NOT_SUPPORTED:
13889
13889
  message = "Media device not supported";
13890
- explanation = pretty(err);
13890
+ explanation = util_pretty(err);
13891
13891
  break;
13892
13892
  default:
13893
13893
  {
13894
13894
  const originalExplanation = explanation;
13895
- if (explanation && "object" == typeof explanation) explanation = pretty(explanation);
13895
+ if (explanation && "object" == typeof explanation) explanation = util_pretty(explanation);
13896
13896
  if (!explanation && originalExplanation) explanation = `Inspected: ${originalExplanation}`;
13897
13897
  if (!message && (null == err ? void 0 : err.message)) message = err.message;
13898
13898
  if (!message) {
13899
13899
  if (errName) message = `${errName} (weird)`;
13900
- if (!explanation) explanation = pretty(err);
13901
- if (pretty(message) === explanation) explanation = void 0;
13900
+ if (!explanation) explanation = util_pretty(err);
13901
+ if (util_pretty(message) === explanation) explanation = void 0;
13902
13902
  }
13903
13903
  break;
13904
13904
  }
@@ -13928,7 +13928,7 @@ var __webpack_exports__ = {};
13928
13928
  }
13929
13929
  return videomailError;
13930
13930
  }
13931
- const createError = createError_createError;
13931
+ const error_createError = createError;
13932
13932
  function _extends() {
13933
13933
  _extends = Object.assign || function(target) {
13934
13934
  for(var i = 1; i < arguments.length; i++){
@@ -14059,7 +14059,7 @@ var __webpack_exports__ = {};
14059
14059
  for(var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)params[_key - 1] = arguments[_key];
14060
14060
  const firstParam = params[0];
14061
14061
  const showParams = firstParam && ("object" != typeof firstParam || "object" == typeof firstParam && Object.keys(firstParam).filter(Boolean).length > 0);
14062
- if (showParams) this.options.logger.debug(`${this.name} emits ${eventName} with ${pretty(params)}`);
14062
+ if (showParams) this.options.logger.debug(`${this.name} emits ${eventName} with ${util_pretty(params)}`);
14063
14063
  else this.options.logger.debug(`${this.name} emits ${eventName}`);
14064
14064
  try {
14065
14065
  Despot.EMITTER.emit(eventName, ...params);
@@ -14189,7 +14189,7 @@ var __webpack_exports__ = {};
14189
14189
  break;
14190
14190
  }
14191
14191
  default:
14192
- throw createError({
14192
+ throw error_createError({
14193
14193
  message: `Unsupported form control tag name $${tagName} found`,
14194
14194
  options: this.options
14195
14195
  });
@@ -14253,7 +14253,7 @@ var __webpack_exports__ = {};
14253
14253
  }));
14254
14254
  }
14255
14255
  } else {
14256
- const err = createError({
14256
+ const err = error_createError({
14257
14257
  message: "Videomail key for preview is missing!",
14258
14258
  options: this.options
14259
14259
  });
@@ -14319,7 +14319,7 @@ var __webpack_exports__ = {};
14319
14319
  }
14320
14320
  async doTheSubmit(e) {
14321
14321
  if (e) {
14322
- this.options.logger.debug(`Form: doTheSubmit(${pretty(e)})`);
14322
+ this.options.logger.debug(`Form: doTheSubmit(${util_pretty(e)})`);
14323
14323
  e.preventDefault();
14324
14324
  } else this.options.logger.debug("Form: doTheSubmit()");
14325
14325
  var _this_formElement_getAttribute;
@@ -14375,7 +14375,7 @@ var __webpack_exports__ = {};
14375
14375
  }
14376
14376
  const wrappers_form = Form;
14377
14377
  var package_namespaceObject = {
14378
- i8: "10.2.44"
14378
+ i8: "10.2.46"
14379
14379
  };
14380
14380
  function resource_define_property(obj, key, value) {
14381
14381
  if (key in obj) Object.defineProperty(obj, key, {
@@ -14394,10 +14394,11 @@ var __webpack_exports__ = {};
14394
14394
  if ("error" in body) {
14395
14395
  const message = body.error.message;
14396
14396
  const cause = body.error.cause;
14397
- const error = new HTTPError(message, {
14397
+ const error = new HTTPVideomailError(message, {
14398
14398
  cause
14399
14399
  });
14400
14400
  if (body.error.name) error.name = body.error.name;
14401
+ if (body.error.explanation) error.explanation = body.error.explanation;
14401
14402
  if (body.error.stack) error.stack = body.error.stack;
14402
14403
  if (body.error.status) error.status = body.error.status;
14403
14404
  if (body.error.code) error.code = body.error.code;
@@ -14430,7 +14431,7 @@ var __webpack_exports__ = {};
14430
14431
  const videomail = request.body;
14431
14432
  return videomail;
14432
14433
  } catch (exc) {
14433
- throw createError({
14434
+ throw error_createError({
14434
14435
  exc: findOriginalExc(exc),
14435
14436
  options: this.options
14436
14437
  });
@@ -14446,7 +14447,7 @@ var __webpack_exports__ = {};
14446
14447
  const request = await client_default()(method, url).query(queryParams).set("Timezone-Id", this.timezoneId).send(videomail).timeout(this.options.timeouts.connection);
14447
14448
  return request;
14448
14449
  } catch (exc) {
14449
- throw createError({
14450
+ throw error_createError({
14450
14451
  exc: findOriginalExc(exc),
14451
14452
  options: this.options
14452
14453
  });
@@ -14505,7 +14506,7 @@ var __webpack_exports__ = {};
14505
14506
  } else res = await this.write(form_FormMethod.POST, newVideomail);
14506
14507
  return res;
14507
14508
  } catch (exc) {
14508
- throw createError({
14509
+ throw error_createError({
14509
14510
  exc: findOriginalExc(exc),
14510
14511
  options: this.options
14511
14512
  });
@@ -14524,7 +14525,7 @@ var __webpack_exports__ = {};
14524
14525
  formType = "form";
14525
14526
  break;
14526
14527
  default:
14527
- throw createError({
14528
+ throw error_createError({
14528
14529
  err: new Error(`Invalid enctype given: ${this.options.enctype}`),
14529
14530
  options: this.options
14530
14531
  });
@@ -14533,7 +14534,7 @@ var __webpack_exports__ = {};
14533
14534
  const res = await client_default().post(url).type(formType).set("Timezone-Id", this.timezoneId).send(formData).timeout(this.options.timeouts.connection);
14534
14535
  return res;
14535
14536
  } catch (exc) {
14536
- throw createError({
14537
+ throw error_createError({
14537
14538
  exc: findOriginalExc(exc),
14538
14539
  options: this.options
14539
14540
  });
@@ -14563,28 +14564,28 @@ var __webpack_exports__ = {};
14563
14564
  else element.classList.remove("disabled");
14564
14565
  }
14565
14566
  const html_enableElement = enableElement;
14566
- function hideElement(element) {
14567
+ function hideElement_hideElement(element) {
14567
14568
  if (!element) return;
14568
14569
  hidden_default()(element, true);
14569
14570
  }
14570
- const html_hideElement = hideElement;
14571
- function showElement_showElement(element) {
14571
+ const hideElement = hideElement_hideElement;
14572
+ function showElement(element) {
14572
14573
  if (!element) return;
14573
14574
  hidden_default()(element, false);
14574
14575
  }
14575
- const showElement = showElement_showElement;
14576
- function isShown(element) {
14576
+ const html_showElement = showElement;
14577
+ function isShown_isShown(element) {
14577
14578
  if (!element) return false;
14578
14579
  return !hidden_default()(element);
14579
14580
  }
14580
- const html_isShown = isShown;
14581
- function adjustButton_adjustButton(buttonElement, show, type, disabled) {
14581
+ const isShown = isShown_isShown;
14582
+ function adjustButton(buttonElement, show, type, disabled) {
14582
14583
  if (disabled) html_disableElement(buttonElement);
14583
14584
  if (type) buttonElement.type = type;
14584
- if (!show) html_hideElement(buttonElement);
14585
+ if (!show) hideElement(buttonElement);
14585
14586
  return buttonElement;
14586
14587
  }
14587
- const adjustButton = adjustButton_adjustButton;
14588
+ const html_adjustButton = adjustButton;
14588
14589
  function buttons_define_property(obj, key, value) {
14589
14590
  if (key in obj) Object.defineProperty(obj, key, {
14590
14591
  value: value,
@@ -14650,12 +14651,12 @@ var __webpack_exports__ = {};
14650
14651
  var _this_buttonsElement;
14651
14652
  buttonElement = null == (_this_buttonsElement = this.buttonsElement) ? void 0 : _this_buttonsElement.querySelector(`.${buttonClass}`);
14652
14653
  }
14653
- if (buttonElement) buttonElement = adjustButton(buttonElement, show, type, disabled);
14654
+ if (buttonElement) buttonElement = html_adjustButton(buttonElement, show, type, disabled);
14654
14655
  else {
14655
14656
  buttonElement = document.createElement("button");
14656
14657
  buttonElement.classList.add(buttonClass);
14657
14658
  if (this.options.selectors.buttonClass) buttonElement.classList.add(this.options.selectors.buttonClass);
14658
- buttonElement = adjustButton(buttonElement, show, type, disabled);
14659
+ buttonElement = html_adjustButton(buttonElement, show, type, disabled);
14659
14660
  buttonElement.innerHTML = text;
14660
14661
  if (this.submitButton && contains_default()(this.buttonsElement, this.submitButton)) {
14661
14662
  var _this_buttonsElement1;
@@ -14703,34 +14704,34 @@ var __webpack_exports__ = {};
14703
14704
  }
14704
14705
  }
14705
14706
  onFormReady(params) {
14706
- if (!html_isShown(this.recordAgainButton)) {
14707
- if (!(null == params ? void 0 : params.paused)) showElement(this.recordButton);
14707
+ if (!isShown(this.recordAgainButton)) {
14708
+ if (!(null == params ? void 0 : params.paused)) html_showElement(this.recordButton);
14708
14709
  }
14709
14710
  if (!(null == params ? void 0 : params.paused)) {
14710
14711
  html_disableElement(this.previewButton);
14711
- html_hideElement(this.previewButton);
14712
+ hideElement(this.previewButton);
14712
14713
  }
14713
14714
  if (!this.options.enableAutoValidation) html_enableElement(this.submitButton);
14714
14715
  }
14715
14716
  onGoingBack() {
14716
- html_hideElement(this.recordAgainButton);
14717
- showElement(this.recordButton);
14718
- showElement(this.submitButton);
14717
+ hideElement(this.recordAgainButton);
14718
+ html_showElement(this.recordButton);
14719
+ html_showElement(this.submitButton);
14719
14720
  }
14720
14721
  onReplayShown() {
14721
14722
  this.hide();
14722
14723
  }
14723
14724
  onUserMediaReady(params) {
14724
14725
  this.onFormReady();
14725
- showElement(this.buttonsElement);
14726
- showElement(this.audioOnRadioPair);
14727
- showElement(this.audioOffRadioPair);
14728
- if (html_isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
14729
- else if (html_isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
14726
+ html_showElement(this.buttonsElement);
14727
+ html_showElement(this.audioOnRadioPair);
14728
+ html_showElement(this.audioOffRadioPair);
14729
+ if (isShown(this.recordButton) && !params.recordWhenReady) html_enableElement(this.recordButton);
14730
+ else if (isShown(this.recordAgainButton) && !params.recordWhenReady) html_enableElement(this.recordAgainButton);
14730
14731
  if (this.options.enableAutoValidation) html_disableElement(this.submitButton);
14731
14732
  if (!params.recordWhenReady) {
14732
- if (html_isShown(this.audioOnRadioPair)) html_enableElement(this.audioOnRadioPair);
14733
- if (html_isShown(this.audioOffRadioPair)) html_enableElement(this.audioOffRadioPair);
14733
+ if (isShown(this.audioOnRadioPair)) html_enableElement(this.audioOnRadioPair);
14734
+ if (isShown(this.audioOffRadioPair)) html_enableElement(this.audioOffRadioPair);
14734
14735
  }
14735
14736
  }
14736
14737
  onResetting() {
@@ -14738,11 +14739,11 @@ var __webpack_exports__ = {};
14738
14739
  this.reset();
14739
14740
  }
14740
14741
  onPreview() {
14741
- html_hideElement(this.recordButton);
14742
- html_hideElement(this.previewButton);
14742
+ hideElement(this.recordButton);
14743
+ hideElement(this.previewButton);
14743
14744
  html_disableElement(this.audioOnRadioPair);
14744
14745
  html_disableElement(this.audioOffRadioPair);
14745
- showElement(this.recordAgainButton);
14746
+ html_showElement(this.recordAgainButton);
14746
14747
  html_enableElement(this.recordAgainButton);
14747
14748
  if (!this.options.enableAutoValidation) html_enableElement(this.submitButton);
14748
14749
  }
@@ -14751,23 +14752,23 @@ var __webpack_exports__ = {};
14751
14752
  }
14752
14753
  adjustButtonsForPause() {
14753
14754
  if (!this.isCountingDown()) {
14754
- if (this.pauseButton) html_hideElement(this.pauseButton);
14755
- showElement(this.resumeButton);
14755
+ if (this.pauseButton) hideElement(this.pauseButton);
14756
+ html_showElement(this.resumeButton);
14756
14757
  html_enableElement(this.resumeButton);
14757
- html_hideElement(this.recordButton);
14758
- showElement(this.previewButton);
14758
+ hideElement(this.recordButton);
14759
+ html_showElement(this.previewButton);
14759
14760
  html_enableElement(this.previewButton);
14760
14761
  }
14761
14762
  }
14762
14763
  onFirstFrameSent() {
14763
- html_hideElement(this.recordButton);
14764
- html_hideElement(this.recordAgainButton);
14764
+ hideElement(this.recordButton);
14765
+ hideElement(this.recordAgainButton);
14765
14766
  if (this.pauseButton) {
14766
- showElement(this.pauseButton);
14767
+ html_showElement(this.pauseButton);
14767
14768
  html_enableElement(this.pauseButton);
14768
14769
  }
14769
14770
  html_enableElement(this.previewButton);
14770
- showElement(this.previewButton);
14771
+ html_showElement(this.previewButton);
14771
14772
  }
14772
14773
  onRecording(params) {
14773
14774
  if (params.framesCount > 1) this.onFirstFrameSent();
@@ -14779,18 +14780,18 @@ var __webpack_exports__ = {};
14779
14780
  }
14780
14781
  }
14781
14782
  onResuming() {
14782
- html_hideElement(this.resumeButton);
14783
- html_hideElement(this.recordButton);
14783
+ hideElement(this.resumeButton);
14784
+ hideElement(this.recordButton);
14784
14785
  if (this.pauseButton) {
14785
14786
  html_enableElement(this.pauseButton);
14786
- showElement(this.pauseButton);
14787
+ html_showElement(this.pauseButton);
14787
14788
  }
14788
14789
  }
14789
14790
  onStopping() {
14790
14791
  html_disableElement(this.previewButton);
14791
14792
  html_disableElement(this.recordButton);
14792
- html_hideElement(this.pauseButton);
14793
- html_hideElement(this.resumeButton);
14793
+ hideElement(this.pauseButton);
14794
+ hideElement(this.resumeButton);
14794
14795
  }
14795
14796
  onCountdown() {
14796
14797
  html_disableElement(this.recordButton);
@@ -14815,12 +14816,12 @@ var __webpack_exports__ = {};
14815
14816
  if (this.options.enableAutoValidation) html_enableElement(this.submitButton);
14816
14817
  }
14817
14818
  onHidden() {
14818
- html_hideElement(this.recordButton);
14819
- html_hideElement(this.previewButton);
14820
- html_hideElement(this.recordAgainButton);
14821
- html_hideElement(this.resumeButton);
14822
- html_hideElement(this.audioOnRadioPair);
14823
- html_hideElement(this.audioOffRadioPair);
14819
+ hideElement(this.recordButton);
14820
+ hideElement(this.previewButton);
14821
+ hideElement(this.recordAgainButton);
14822
+ hideElement(this.resumeButton);
14823
+ hideElement(this.audioOnRadioPair);
14824
+ hideElement(this.audioOffRadioPair);
14824
14825
  }
14825
14826
  onEnablingAudio() {
14826
14827
  this.options.logger.debug("Buttons: onEnablingAudio()");
@@ -14840,7 +14841,7 @@ var __webpack_exports__ = {};
14840
14841
  this.container.recordAgain();
14841
14842
  }
14842
14843
  onStartingOver() {
14843
- showElement(this.submitButton);
14844
+ html_showElement(this.submitButton);
14844
14845
  }
14845
14846
  submit() {
14846
14847
  this.container.submit();
@@ -14913,7 +14914,7 @@ var __webpack_exports__ = {};
14913
14914
  });
14914
14915
  this.on("CONNECTED", ()=>{
14915
14916
  if (this.options.loadUserMediaOnRecord) {
14916
- if (html_isShown(this.recordButton)) html_enableElement(this.recordButton);
14917
+ if (isShown(this.recordButton)) html_enableElement(this.recordButton);
14917
14918
  }
14918
14919
  });
14919
14920
  this.on("DISCONNECTED", ()=>{
@@ -14961,7 +14962,7 @@ var __webpack_exports__ = {};
14961
14962
  this.buttonsElement.classList.add(this.options.selectors.buttonsClass);
14962
14963
  this.container.appendChild(this.buttonsElement);
14963
14964
  }
14964
- html_hideElement(this.buttonsElement);
14965
+ hideElement(this.buttonsElement);
14965
14966
  this.buildButtons();
14966
14967
  if (!this.built) this.initEvents();
14967
14968
  this.built = true;
@@ -14977,20 +14978,20 @@ var __webpack_exports__ = {};
14977
14978
  }
14978
14979
  hide() {
14979
14980
  let deep = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false;
14980
- html_hideElement(this.buttonsElement);
14981
+ hideElement(this.buttonsElement);
14981
14982
  if (deep) {
14982
- html_hideElement(this.recordButton);
14983
- html_hideElement(this.pauseButton);
14984
- html_hideElement(this.resumeButton);
14985
- html_hideElement(this.previewButton);
14986
- html_hideElement(this.recordAgainButton);
14987
- html_hideElement(this.submitButton);
14988
- html_hideElement(this.audioOnRadioPair);
14989
- html_hideElement(this.audioOffRadioPair);
14983
+ hideElement(this.recordButton);
14984
+ hideElement(this.pauseButton);
14985
+ hideElement(this.resumeButton);
14986
+ hideElement(this.previewButton);
14987
+ hideElement(this.recordAgainButton);
14988
+ hideElement(this.submitButton);
14989
+ hideElement(this.audioOnRadioPair);
14990
+ hideElement(this.audioOffRadioPair);
14990
14991
  }
14991
14992
  }
14992
14993
  show() {
14993
- showElement(this.buttonsElement);
14994
+ html_showElement(this.buttonsElement);
14994
14995
  }
14995
14996
  isCountingDown() {
14996
14997
  return this.container.isCountingDown();
@@ -15482,7 +15483,7 @@ var __webpack_exports__ = {};
15482
15483
  super("RecorderInsides", options), recorderInsides_define_property(this, "recordNote", void 0), recorderInsides_define_property(this, "recordTimer", void 0), recorderInsides_define_property(this, "countdown", void 0), recorderInsides_define_property(this, "facingMode", void 0), recorderInsides_define_property(this, "pausedNote", void 0), recorderInsides_define_property(this, "built", false);
15483
15484
  this.recordNote = new recorder_recordNote(visuals);
15484
15485
  this.recordTimer = new recordTimer(visuals, this.recordNote, options);
15485
- const browser = getBrowser(options);
15486
+ const browser = util_getBrowser(options);
15486
15487
  if (options.video.countdown) this.countdown = new countdown(visuals, options);
15487
15488
  if (options.video.facingModeButton && browser.isMobile()) this.facingMode = new facingMode(visuals, options);
15488
15489
  if (options.enablePause) this.pausedNote = new pausedNote(visuals, options);
@@ -15605,12 +15606,12 @@ var __webpack_exports__ = {};
15605
15606
  error(err) {
15606
15607
  const message = err.message;
15607
15608
  const explanation = err.explanation ? err.explanation.toString() : void 0;
15608
- if (!message) this.options.logger.debug(`Weird empty error message generated for error ${pretty(err)}`);
15609
+ if (!message) this.options.logger.debug(`Weird empty error message generated for error ${util_pretty(err)}`);
15609
15610
  this.notify(message, explanation, {
15610
15611
  blocking: true,
15611
15612
  problem: true,
15612
15613
  classList: err.getClassList(),
15613
- removeDimensions: getBrowser(this.options).isMobile()
15614
+ removeDimensions: util_getBrowser(this.options).isMobile()
15614
15615
  });
15615
15616
  }
15616
15617
  getMessageElement() {
@@ -15952,7 +15953,7 @@ var __webpack_exports__ = {};
15952
15953
  function getAudioContextClass() {
15953
15954
  return window.AudioContext;
15954
15955
  }
15955
- class AudioRecorder {
15956
+ class AudioRecorder_AudioRecorder {
15956
15957
  hasAudioContext() {
15957
15958
  return Boolean(getAudioContextClass()) && Boolean(this.getAudioContext());
15958
15959
  }
@@ -15974,19 +15975,19 @@ var __webpack_exports__ = {};
15974
15975
  try {
15975
15976
  this.audioInput = this.getAudioContext().createMediaStreamSource(localMediaStream);
15976
15977
  } catch (exc) {
15977
- throw createError({
15978
+ throw error_createError({
15978
15979
  message: "Webcam has no audio",
15979
15980
  exc,
15980
15981
  options: this.options
15981
15982
  });
15982
15983
  }
15983
15984
  let { bufferSize } = this.options.audio;
15984
- if ("auto" === bufferSize) bufferSize = getBrowser(this.options).isFirefox() ? 512 : 2048;
15985
- if (!is_power_of_two_default()(bufferSize)) throw createError({
15985
+ if ("auto" === bufferSize) bufferSize = util_getBrowser(this.options).isFirefox() ? 512 : 2048;
15986
+ if (!is_power_of_two_default()(bufferSize)) throw error_createError({
15986
15987
  message: "Audio buffer size must be a power of two.",
15987
15988
  options: this.options
15988
15989
  });
15989
- if (!this.options.audio.volume || src_options.audio.volume > 1) throw createError({
15990
+ if (!this.options.audio.volume || src_options.audio.volume > 1) throw error_createError({
15990
15991
  message: "Audio volume must be between zero and one.",
15991
15992
  options: this.options
15992
15993
  });
@@ -16011,7 +16012,7 @@ var __webpack_exports__ = {};
16011
16012
  this.options.logger.debug("AudioRecorder: audio context is closed");
16012
16013
  this.vcAudioContext = void 0;
16013
16014
  }).catch(function(err) {
16014
- if (err instanceof Error) throw createError({
16015
+ if (err instanceof Error) throw error_createError({
16015
16016
  err,
16016
16017
  options: src_options
16017
16018
  });
@@ -16032,7 +16033,7 @@ var __webpack_exports__ = {};
16032
16033
  this.userMedia = userMedia;
16033
16034
  }
16034
16035
  }
16035
- const media_AudioRecorder = AudioRecorder;
16036
+ const AudioRecorder = AudioRecorder_AudioRecorder;
16036
16037
  const MEDIA_EVENTS = [
16037
16038
  "loadstart",
16038
16039
  "suspend",
@@ -16076,7 +16077,7 @@ var __webpack_exports__ = {};
16076
16077
  attachMediaStream(stream) {
16077
16078
  this.currentVisualStream = stream;
16078
16079
  if (this.rawVisualUserMedia) this.rawVisualUserMedia.srcObject = stream;
16079
- else throw createError({
16080
+ else throw error_createError({
16080
16081
  message: "Error attaching stream to element.",
16081
16082
  explanation: "Contact the developer about this",
16082
16083
  options: this.options
@@ -16102,7 +16103,7 @@ var __webpack_exports__ = {};
16102
16103
  return false;
16103
16104
  }
16104
16105
  logEvent(eventType, params) {
16105
- this.options.logger.debug(`UserMedia: ... ${EVENT_ASCII} event ${eventType}: ${pretty(params)}`);
16106
+ this.options.logger.debug(`UserMedia: ... ${EVENT_ASCII} event ${eventType}: ${util_pretty(params)}`);
16106
16107
  }
16107
16108
  outputEvent(e) {
16108
16109
  var _this_rawVisualUserMedia, _this_rawVisualUserMedia1;
@@ -16133,7 +16134,7 @@ var __webpack_exports__ = {};
16133
16134
  this.playingPromiseReached = false;
16134
16135
  if (isAudioEnabled(this.options)) {
16135
16136
  var _this_audioRecorder;
16136
- null != this.audioRecorder || (this.audioRecorder = new media_AudioRecorder(this, this.options));
16137
+ null != this.audioRecorder || (this.audioRecorder = new AudioRecorder(this, this.options));
16137
16138
  }
16138
16139
  const unloadAllEventListeners = ()=>{
16139
16140
  var _this_rawVisualUserMedia, _this_rawVisualUserMedia1;
@@ -16148,7 +16149,7 @@ var __webpack_exports__ = {};
16148
16149
  var _this_rawVisualUserMedia, _this_rawVisualUserMedia1;
16149
16150
  null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) || _this_rawVisualUserMedia.load();
16150
16151
  if (null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia1.paused) {
16151
- this.options.logger.debug(`UserMedia: play(): media.readyState=${this.rawVisualUserMedia.readyState}, media.paused=${this.rawVisualUserMedia.paused}, media.ended=${this.rawVisualUserMedia.ended}, media.played=${pretty(this.rawVisualUserMedia.played)}`);
16152
+ this.options.logger.debug(`UserMedia: play(): media.readyState=${this.rawVisualUserMedia.readyState}, media.paused=${this.rawVisualUserMedia.paused}, media.ended=${this.rawVisualUserMedia.ended}, media.played=${util_pretty(this.rawVisualUserMedia.played)}`);
16152
16153
  let p;
16153
16154
  try {
16154
16155
  p = this.rawVisualUserMedia.play();
@@ -16198,7 +16199,7 @@ var __webpack_exports__ = {};
16198
16199
  videoHeight: null == (_this_rawVisualUserMedia4 = this.rawVisualUserMedia) ? void 0 : _this_rawVisualUserMedia4.videoHeight
16199
16200
  });
16200
16201
  null == (_this_rawVisualUserMedia5 = this.rawVisualUserMedia) || _this_rawVisualUserMedia5.removeEventListener("play", onPlay);
16201
- if (this.hasEnded() || this.hasInvalidDimensions()) endedEarlyCallback(createError({
16202
+ if (this.hasEnded() || this.hasInvalidDimensions()) endedEarlyCallback(error_createError({
16202
16203
  message: "Already busy",
16203
16204
  explanation: "Probably another browser window is using your webcam?",
16204
16205
  options: this.options
@@ -16237,7 +16238,7 @@ var __webpack_exports__ = {};
16237
16238
  if (videoTrack.label && videoTrack.label.length > 0) description = description.concat(videoTrack.label);
16238
16239
  description = description.concat(` with enabled=${videoTrack.enabled}, muted=${videoTrack.muted}, readyState=${videoTrack.readyState}`);
16239
16240
  this.options.logger.debug(`UserMedia: ${videoTrack.kind} detected. ${description}`);
16240
- } else throw createError({
16241
+ } else throw error_createError({
16241
16242
  message: "Webcam is disabled",
16242
16243
  explanation: "The video track seems to be disabled. Enable it in your system.",
16243
16244
  options: this.options
@@ -16246,7 +16247,7 @@ var __webpack_exports__ = {};
16246
16247
  null == (_this_rawVisualUserMedia = this.rawVisualUserMedia) || _this_rawVisualUserMedia.addEventListener("loadedmetadata", onLoadedMetaData);
16247
16248
  null == (_this_rawVisualUserMedia1 = this.rawVisualUserMedia) || _this_rawVisualUserMedia1.addEventListener("play", onPlay);
16248
16249
  null == (_this_rawVisualUserMedia2 = this.rawVisualUserMedia) || _this_rawVisualUserMedia2.addEventListener("error", (err)=>{
16249
- this.options.logger.warn(`Caught video element error event: ${pretty(err)}`);
16250
+ this.options.logger.warn(`Caught video element error event: ${util_pretty(err)}`);
16250
16251
  });
16251
16252
  this.setVisualStream(localMediaStream);
16252
16253
  play();
@@ -16311,14 +16312,14 @@ var __webpack_exports__ = {};
16311
16312
  let rawHeight;
16312
16313
  if (this.options.video.width || this.options.video.height) {
16313
16314
  rawHeight = this.recorder.calculateHeight(responsive);
16314
- if (!rawHeight || rawHeight < 1) throw createError({
16315
+ if (!rawHeight || rawHeight < 1) throw error_createError({
16315
16316
  message: "Bad dimensions",
16316
16317
  explanation: "Calculated raw height cannot be less than 1!",
16317
16318
  options: this.options
16318
16319
  });
16319
16320
  } else {
16320
16321
  rawHeight = this.getVideoHeight();
16321
- if (!rawHeight || rawHeight < 1) throw createError({
16322
+ if (!rawHeight || rawHeight < 1) throw error_createError({
16322
16323
  message: "Bad dimensions",
16323
16324
  explanation: "Raw video height from DOM element cannot be less than 1!",
16324
16325
  options: this.options
@@ -16371,18 +16372,18 @@ var __webpack_exports__ = {};
16371
16372
  }
16372
16373
  }
16373
16374
  const visuals_userMedia = UserMedia;
16374
- function figureMinHeight_figureMinHeight(height, options) {
16375
+ function figureMinHeight(height, options) {
16375
16376
  let minHeight;
16376
16377
  if (options.video.height) {
16377
16378
  minHeight = Math.min(options.video.height, height);
16378
- if (minHeight < 1) throw createError({
16379
+ if (minHeight < 1) throw error_createError({
16379
16380
  message: `Got a min height less than 1 (${minHeight})!`,
16380
16381
  options
16381
16382
  });
16382
16383
  } else minHeight = height;
16383
16384
  return minHeight;
16384
16385
  }
16385
- const figureMinHeight = figureMinHeight_figureMinHeight;
16386
+ const dimensions_figureMinHeight = figureMinHeight;
16386
16387
  function getRatio_getRatio(options, videoHeight, videoWidth) {
16387
16388
  let ratio = 1;
16388
16389
  const hasVideoDimensions = videoHeight && videoWidth;
@@ -16394,26 +16395,26 @@ var __webpack_exports__ = {};
16394
16395
  return ratio;
16395
16396
  }
16396
16397
  const getRatio = getRatio_getRatio;
16397
- function limitHeight_limitHeight(height, options, calledFrom) {
16398
+ function limitHeight(height, options, calledFrom) {
16398
16399
  let limitedHeight = document.documentElement.clientHeight;
16399
16400
  if (height) limitedHeight = Math.min(height, limitedHeight);
16400
- if (limitedHeight < 1) throw createError({
16401
+ if (limitedHeight < 1) throw error_createError({
16401
16402
  message: `Limited height ${limitedHeight} cannot be less than 1! (Called from ${calledFrom})`,
16402
16403
  options
16403
16404
  });
16404
16405
  return limitedHeight;
16405
16406
  }
16406
- const limitHeight = limitHeight_limitHeight;
16407
+ const dimensions_limitHeight = limitHeight;
16407
16408
  function calculateWidth(responsive, videoHeight, options, ratio) {
16408
- let height = figureMinHeight(videoHeight, options);
16409
- if (responsive) height = limitHeight(height, options, "calculateWidth");
16410
- if (!height || height < 1) throw createError({
16409
+ let height = dimensions_figureMinHeight(videoHeight, options);
16410
+ if (responsive) height = dimensions_limitHeight(height, options, "calculateWidth");
16411
+ if (!height || height < 1) throw error_createError({
16411
16412
  message: `Height ${height} cannot be smaller than 1 when calculating width.`,
16412
16413
  options
16413
16414
  });
16414
16415
  const chosenRatio = null != ratio ? ratio : getRatio(options, videoHeight);
16415
16416
  const calculatedWidth = Math.round(height / chosenRatio);
16416
- if (calculatedWidth < 1) throw createError({
16417
+ if (calculatedWidth < 1) throw error_createError({
16417
16418
  message: "Calculated width cannot be smaller than 1!",
16418
16419
  options
16419
16420
  });
@@ -16430,31 +16431,31 @@ var __webpack_exports__ = {};
16430
16431
  return outerWidth;
16431
16432
  }
16432
16433
  const getOuterWidth = getOuterWidth_getOuterWidth;
16433
- function limitWidth_limitWidth(element, options, width) {
16434
+ function limitWidth(element, options, width) {
16434
16435
  let limitedWidth;
16435
16436
  const outerWidth = getOuterWidth(element);
16436
16437
  limitedWidth = width && "number" == typeof width ? outerWidth > 0 && outerWidth < width ? outerWidth : width : outerWidth;
16437
- if (Number.isInteger(limitedWidth) && limitedWidth < 1) throw createError({
16438
+ if (Number.isInteger(limitedWidth) && limitedWidth < 1) throw error_createError({
16438
16439
  message: "Limited width cannot be less than 1!",
16439
16440
  options
16440
16441
  });
16441
16442
  return limitedWidth;
16442
16443
  }
16443
- const limitWidth = limitWidth_limitWidth;
16444
+ const dimensions_limitWidth = limitWidth;
16444
16445
  function calculateHeight(responsive, videoWidth, options, target, ratio, element) {
16445
16446
  let width = videoWidth;
16446
- if (width < 1) throw createError({
16447
+ if (width < 1) throw error_createError({
16447
16448
  message: `Unable to calculate height for target ${target} when width is less than 1 (= ${width}) and responsive mode is set to ${responsive}`,
16448
16449
  options
16449
16450
  });
16450
- if (responsive && element) width = limitWidth(element, options, width);
16451
+ if (responsive && element) width = dimensions_limitWidth(element, options, width);
16451
16452
  const chosenRatio = null != ratio ? ratio : getRatio(options, void 0, videoWidth);
16452
16453
  const height = Math.round(width * chosenRatio);
16453
- if (Number.isInteger(height) && height < 1) throw createError({
16454
+ if (Number.isInteger(height) && height < 1) throw error_createError({
16454
16455
  message: "Just calculated a height less than 1 which is wrong.",
16455
16456
  options
16456
16457
  });
16457
- return figureMinHeight(height, options);
16458
+ return dimensions_figureMinHeight(height, options);
16458
16459
  }
16459
16460
  const dimensions_calculateHeight = calculateHeight;
16460
16461
  var Buffer = __webpack_require__("./node_modules/buffer/index.js")["Buffer"];
@@ -16473,7 +16474,7 @@ var __webpack_exports__ = {};
16473
16474
  writeStream(buffer, opts) {
16474
16475
  if (this.stream) if (this.stream.destroyed) {
16475
16476
  this.stopPings();
16476
- const err = createError({
16477
+ const err = error_createError({
16477
16478
  message: "Already disconnected",
16478
16479
  explanation: "Sorry, connection to the server has been destroyed. Please reload.",
16479
16480
  options: this.options
@@ -16489,9 +16490,9 @@ var __webpack_exports__ = {};
16489
16490
  try {
16490
16491
  onFlushedCallback(opts);
16491
16492
  } catch (exc) {
16492
- const err = createError({
16493
+ const err = error_createError({
16493
16494
  message: "Failed to write stream buffer",
16494
- explanation: `stream.write() failed because of ${pretty(exc)}`,
16495
+ explanation: `stream.write() failed because of ${util_pretty(exc)}`,
16495
16496
  options: this.options,
16496
16497
  exc
16497
16498
  });
@@ -16501,9 +16502,9 @@ var __webpack_exports__ = {};
16501
16502
  }
16502
16503
  });
16503
16504
  } catch (exc) {
16504
- const err = createError({
16505
+ const err = error_createError({
16505
16506
  message: "Failed writing to server",
16506
- explanation: `stream.write() failed because of ${pretty(exc)}`,
16507
+ explanation: `stream.write() failed because of ${util_pretty(exc)}`,
16507
16508
  options: this.options,
16508
16509
  exc
16509
16510
  });
@@ -16532,7 +16533,7 @@ var __webpack_exports__ = {};
16532
16533
  }
16533
16534
  onUserMediaReady(params) {
16534
16535
  try {
16535
- this.options.logger.debug(`Recorder: onUserMediaReady(${params ? pretty(params) : ""})`);
16536
+ this.options.logger.debug(`Recorder: onUserMediaReady(${params ? util_pretty(params) : ""})`);
16536
16537
  const switchingFacingMode = null == params ? void 0 : params.switchingFacingMode;
16537
16538
  this.userMediaLoading = this.blocking = this.unloaded = this.submitting = false;
16538
16539
  this.userMediaLoaded = true;
@@ -16572,11 +16573,11 @@ var __webpack_exports__ = {};
16572
16573
  }
16573
16574
  updateFrameProgress(args) {
16574
16575
  if (args) {
16575
- if (!args.frame) throw createError({
16576
+ if (!args.frame) throw error_createError({
16576
16577
  message: "The frame number is missing",
16577
16578
  options: this.options
16578
16579
  });
16579
- } else throw createError({
16580
+ } else throw error_createError({
16580
16581
  message: "Arguments are missing for updating the frame progress",
16581
16582
  options: this.options
16582
16583
  });
@@ -16586,11 +16587,11 @@ var __webpack_exports__ = {};
16586
16587
  }
16587
16588
  updateSampleProgress(args) {
16588
16589
  if (args) {
16589
- if (!args.sample) throw createError({
16590
+ if (!args.sample) throw error_createError({
16590
16591
  message: "The audio sample number is missing",
16591
16592
  options: this.options
16592
16593
  });
16593
- } else throw createError({
16594
+ } else throw error_createError({
16594
16595
  message: "Arguments are missing for updating the audio sample progress",
16595
16596
  options: this.options
16596
16597
  });
@@ -16599,7 +16600,7 @@ var __webpack_exports__ = {};
16599
16600
  this.updateOverallProgress();
16600
16601
  }
16601
16602
  preview(args) {
16602
- if (!args) throw createError({
16603
+ if (!args) throw error_createError({
16603
16604
  message: "Preview arguments are missing.",
16604
16605
  options: this.options
16605
16606
  });
@@ -16635,7 +16636,7 @@ var __webpack_exports__ = {};
16635
16636
  });
16636
16637
  } catch (exc) {
16637
16638
  this.connecting = this.connected = false;
16638
- const err = createError({
16639
+ const err = error_createError({
16639
16640
  message: "Failed to connect to server",
16640
16641
  explanation: "Please upgrade your browser. Your current version does not seem to support websockets.",
16641
16642
  options: this.options,
@@ -16672,7 +16673,7 @@ var __webpack_exports__ = {};
16672
16673
  command = JSON.parse(data.toString());
16673
16674
  } catch (exc) {
16674
16675
  this.options.logger.debug(`Failed to parse command: ${exc}`);
16675
- const err = createError({
16676
+ const err = error_createError({
16676
16677
  message: "Invalid server command",
16677
16678
  explanation: `Contact us asap. Bad command was ${data.toString()}. `,
16678
16679
  options: this.options,
@@ -16686,7 +16687,7 @@ var __webpack_exports__ = {};
16686
16687
  }
16687
16688
  });
16688
16689
  this.stream.on("error", (err)=>{
16689
- this.options.logger.debug(`${PIPE_SYMBOL}Stream *error* event emitted: ${pretty(err)}`);
16690
+ this.options.logger.debug(`${PIPE_SYMBOL}Stream *error* event emitted: ${util_pretty(err)}`);
16690
16691
  });
16691
16692
  this.stream.on("drain", ()=>{
16692
16693
  this.options.logger.debug(`${PIPE_SYMBOL}Stream *drain* event emitted (should not happen!)`);
@@ -16737,23 +16738,23 @@ var __webpack_exports__ = {};
16737
16738
  this.userMediaLoading = false;
16738
16739
  this.clearUserMediaTimeout();
16739
16740
  const characteristics = null == (_this_userMedia = this.userMedia) ? void 0 : _this_userMedia.getCharacteristics();
16740
- this.options.logger.debug(`Recorder: userMediaErrorCallback(), name: ${err.name}, message: ${err.message} and Webcam characteristics: ${characteristics ? pretty(characteristics) : "none"}`);
16741
+ this.options.logger.debug(`Recorder: userMediaErrorCallback(), name: ${err.name}, message: ${err.message} and Webcam characteristics: ${characteristics ? util_pretty(characteristics) : "none"}`);
16741
16742
  const errorListeners = util_Despot.getListeners("ERROR");
16742
16743
  if (null == errorListeners ? void 0 : errorListeners.length) {
16743
16744
  if (err.name !== error_VideomailError.MEDIA_DEVICE_NOT_SUPPORTED) {
16744
- const videomailError = createError({
16745
+ const videomailError = error_createError({
16745
16746
  err,
16746
16747
  options: this.options
16747
16748
  });
16748
16749
  this.emit("ERROR", {
16749
16750
  err: videomailError
16750
16751
  });
16751
- } else this.options.logger.debug(`Recorder: ignore user media error ${pretty(err)}`);
16752
+ } else this.options.logger.debug(`Recorder: ignore user media error ${util_pretty(err)}`);
16752
16753
  this.retryTimeout = window.setTimeout(this.initSocket.bind(this), this.options.timeouts.userMedia);
16753
- } else if (this.unloaded) this.options.logger.debug(`Recorder: already unloaded. Not going to throw error ${pretty(err)}`);
16754
+ } else if (this.unloaded) this.options.logger.debug(`Recorder: already unloaded. Not going to throw error ${util_pretty(err)}`);
16754
16755
  else {
16755
- this.options.logger.debug(`Recorder: no error listeners attached but throwing error ${pretty(err)}`);
16756
- throw createError({
16756
+ this.options.logger.debug(`Recorder: no error listeners attached but throwing error ${util_pretty(err)}`);
16757
+ throw error_createError({
16757
16758
  err,
16758
16759
  message: "Unable to process this error since there are no error listeners anymore.",
16759
16760
  options: this.options
@@ -16762,7 +16763,7 @@ var __webpack_exports__ = {};
16762
16763
  }
16763
16764
  getUserMediaCallback(localStream, params) {
16764
16765
  if (!this.userMedia) throw new Error("No user media is defined");
16765
- this.options.logger.debug(`Recorder: getUserMediaCallback(${params ? pretty(params) : ""})`);
16766
+ this.options.logger.debug(`Recorder: getUserMediaCallback(${params ? util_pretty(params) : ""})`);
16766
16767
  if (this.showUserMedia()) try {
16767
16768
  this.clearUserMediaTimeout();
16768
16769
  this.userMedia.init(localStream, ()=>{
@@ -16779,7 +16780,7 @@ var __webpack_exports__ = {};
16779
16780
  }
16780
16781
  }
16781
16782
  loadGenuineUserMedia(params) {
16782
- this.options.logger.debug(`Recorder: loadGenuineUserMedia(${params ? pretty(params) : ""})`);
16783
+ this.options.logger.debug(`Recorder: loadGenuineUserMedia(${params ? util_pretty(params) : ""})`);
16783
16784
  this.emit("ASKING_WEBCAM_PERMISSION");
16784
16785
  const constraints = {
16785
16786
  video: {
@@ -16807,8 +16808,8 @@ var __webpack_exports__ = {};
16807
16808
  ideal: idealHeight
16808
16809
  };
16809
16810
  }
16810
- this.options.logger.debug(`Recorder: our webcam constraints are: ${pretty(constraints)}`);
16811
- this.options.logger.debug(`Recorder: available webcam constraints are: ${pretty(navigator.mediaDevices.getSupportedConstraints())}`);
16811
+ this.options.logger.debug(`Recorder: our webcam constraints are: ${util_pretty(constraints)}`);
16812
+ this.options.logger.debug(`Recorder: available webcam constraints are: ${util_pretty(navigator.mediaDevices.getSupportedConstraints())}`);
16812
16813
  const genuineUserMediaRequest = navigator.mediaDevices.getUserMedia(constraints);
16813
16814
  genuineUserMediaRequest.then((localStream)=>{
16814
16815
  this.getUserMediaCallback(localStream, params);
@@ -16823,13 +16824,13 @@ var __webpack_exports__ = {};
16823
16824
  return;
16824
16825
  }
16825
16826
  if (this.userMediaLoading) return void this.options.logger.debug("Recorder: skipping loadUserMedia() because it is already asking for permission");
16826
- this.options.logger.debug(`Recorder: loadUserMedia(${params ? pretty(params) : ""})`);
16827
+ this.options.logger.debug(`Recorder: loadUserMedia(${params ? util_pretty(params) : ""})`);
16827
16828
  this.emit("LOADING_USER_MEDIA");
16828
16829
  try {
16829
16830
  if (!navigator.mediaDevices) throw new Error("No media devices are available.");
16830
16831
  this.userMediaTimeout = window.setTimeout(()=>{
16831
16832
  if (!this.isReady()) {
16832
- const err = getBrowser(this.options).getNoAccessIssue();
16833
+ const err = util_getBrowser(this.options).getNoAccessIssue();
16833
16834
  this.emit("ERROR", {
16834
16835
  err
16835
16836
  });
@@ -16854,7 +16855,7 @@ var __webpack_exports__ = {};
16854
16855
  executeCommand(command) {
16855
16856
  if (this.unloaded) return;
16856
16857
  try {
16857
- if (command.args) this.options.logger.debug(`Server commanded: ${command.command} with ${pretty(command.args)}`);
16858
+ if (command.args) this.options.logger.debug(`Server commanded: ${command.command} with ${util_pretty(command.args)}`);
16858
16859
  else this.options.logger.debug(`Server commanded: ${command.command}`);
16859
16860
  switch(command.command){
16860
16861
  case "ready":
@@ -16870,7 +16871,7 @@ var __webpack_exports__ = {};
16870
16871
  var _command_args_err, _command_args, _command_args1;
16871
16872
  let explanation = "(No explanation given)";
16872
16873
  if (null == (_command_args = command.args) ? void 0 : null == (_command_args_err = _command_args.err) ? void 0 : _command_args_err.message) explanation = command.args.err.message;
16873
- const err = createError({
16874
+ const err = error_createError({
16874
16875
  message: "Websocket error from Videomail server",
16875
16876
  explanation,
16876
16877
  err: deserializeError(null == (_command_args1 = command.args) ? void 0 : _command_args1.err),
@@ -16895,7 +16896,7 @@ var __webpack_exports__ = {};
16895
16896
  break;
16896
16897
  default:
16897
16898
  {
16898
- const err = createError({
16899
+ const err = error_createError({
16899
16900
  message: `Unknown server command: ${command.command}`,
16900
16901
  options: this.options
16901
16902
  });
@@ -16920,7 +16921,7 @@ var __webpack_exports__ = {};
16920
16921
  writeCommand(command, args, cb) {
16921
16922
  if (this.connected) {
16922
16923
  if (this.stream) {
16923
- if (args) this.options.logger.debug(`$ ${command} with ${pretty(args)}`);
16924
+ if (args) this.options.logger.debug(`$ ${command} with ${util_pretty(args)}`);
16924
16925
  else this.options.logger.debug(`$ ${command}`);
16925
16926
  const commandObj = {
16926
16927
  command,
@@ -16964,7 +16965,7 @@ var __webpack_exports__ = {};
16964
16965
  stop(params) {
16965
16966
  var _this_loop;
16966
16967
  if (!this.userMedia) throw new Error("No user media defined, unable to stop");
16967
- this.options.logger.debug(`Recorder: stop(${params ? pretty(params) : ""})`);
16968
+ this.options.logger.debug(`Recorder: stop(${params ? util_pretty(params) : ""})`);
16968
16969
  const limitReached = null == params ? void 0 : params.limitReached;
16969
16970
  this.emit("STOPPING", {
16970
16971
  limitReached
@@ -17055,7 +17056,7 @@ var __webpack_exports__ = {};
17055
17056
  }
17056
17057
  pause(params) {
17057
17058
  var _this_userMedia;
17058
- if (params) this.options.logger.debug(`pause() at frame ${this.framesCount} with ${pretty(params)}`);
17059
+ if (params) this.options.logger.debug(`pause() at frame ${this.framesCount} with ${util_pretty(params)}`);
17059
17060
  else this.options.logger.debug(`pause() at frame ${this.framesCount}`);
17060
17061
  null == (_this_userMedia = this.userMedia) || _this_userMedia.pause();
17061
17062
  this.loop.stop();
@@ -17101,7 +17102,7 @@ var __webpack_exports__ = {};
17101
17102
  });
17102
17103
  this.visuals.checkTimer(elapsedTime);
17103
17104
  }
17104
- } else throw createError({
17105
+ } else throw error_createError({
17105
17106
  message: "Failed to extract webcam data.",
17106
17107
  options: this.options
17107
17108
  });
@@ -17133,7 +17134,7 @@ var __webpack_exports__ = {};
17133
17134
  recordWhenReady: true
17134
17135
  });
17135
17136
  else {
17136
- const err = createError({
17137
+ const err = error_createError({
17137
17138
  message: "Load and enable your camera first",
17138
17139
  options: this.options
17139
17140
  });
@@ -17147,7 +17148,7 @@ var __webpack_exports__ = {};
17147
17148
  if (!this.userMedia) throw new Error("No user media defined, unable to create canvas");
17148
17149
  this.canvas = this.userMedia.createCanvas();
17149
17150
  } catch (exc) {
17150
- const err = createError({
17151
+ const err = error_createError({
17151
17152
  exc,
17152
17153
  options: this.options
17153
17154
  });
@@ -17158,7 +17159,7 @@ var __webpack_exports__ = {};
17158
17159
  }
17159
17160
  this.ctx = this.canvas.getContext("2d");
17160
17161
  if (!this.canvas.width) {
17161
- const err = createError({
17162
+ const err = error_createError({
17162
17163
  message: "Canvas has an invalid width.",
17163
17164
  options: this.options
17164
17165
  });
@@ -17168,7 +17169,7 @@ var __webpack_exports__ = {};
17168
17169
  return;
17169
17170
  }
17170
17171
  if (!this.canvas.height) {
17171
- const err = createError({
17172
+ const err = error_createError({
17172
17173
  message: "Canvas has an invalid height.",
17173
17174
  options: this.options
17174
17175
  });
@@ -17232,10 +17233,10 @@ var __webpack_exports__ = {};
17232
17233
  }
17233
17234
  }
17234
17235
  switchFacingMode() {
17235
- if (!getBrowser(this.options).isMobile()) return;
17236
+ if (!util_getBrowser(this.options).isMobile()) return;
17236
17237
  if ("user" === this.facingMode) this.facingMode = "environment";
17237
17238
  else if ("environment" === this.facingMode) this.facingMode = "user";
17238
- else this.options.logger.warn(`Recorder: unsupported facing mode ${pretty(this.facingMode)}`);
17239
+ else this.options.logger.warn(`Recorder: unsupported facing mode ${util_pretty(this.facingMode)}`);
17239
17240
  this.loadGenuineUserMedia({
17240
17241
  switchingFacingMode: this.facingMode
17241
17242
  });
@@ -17313,7 +17314,7 @@ var __webpack_exports__ = {};
17313
17314
  }
17314
17315
  isRecording() {
17315
17316
  var _this_loop;
17316
- return (null == (_this_loop = this.loop) ? void 0 : _this_loop.isRunning()) && !this.isPaused() && !this.isNotifying() && this.stream && !this.stream.destroyed;
17317
+ return Boolean((null == (_this_loop = this.loop) ? void 0 : _this_loop.isRunning()) && !this.isPaused() && !this.isNotifying() && this.stream && !this.stream.destroyed);
17317
17318
  }
17318
17319
  hide() {
17319
17320
  if (!this.isHidden()) {
@@ -17498,7 +17499,7 @@ var __webpack_exports__ = {};
17498
17499
  }
17499
17500
  build(replayParentElement) {
17500
17501
  var _this_visuals_getElement;
17501
- this.options.logger.debug(`Replay: build (replayParentElement="${pretty(replayParentElement)}")`);
17502
+ this.options.logger.debug(`Replay: build (replayParentElement="${util_pretty(replayParentElement)}")`);
17502
17503
  this.replayElement = null == (_this_visuals_getElement = this.visuals.getElement()) ? void 0 : _this_visuals_getElement.querySelector(`video.${this.options.selectors.replayClass}`);
17503
17504
  if (!this.replayElement) this.buildElement(replayParentElement);
17504
17505
  if (!this.replayElement) throw new Error("There is no replayElement to build on");
@@ -17609,7 +17610,7 @@ var __webpack_exports__ = {};
17609
17610
  }
17610
17611
  getVideoType() {
17611
17612
  if (!this.replayElement) return;
17612
- return getBrowser(this.options).getVideoType(this.replayElement);
17613
+ return util_getBrowser(this.options).getVideoType(this.replayElement);
17613
17614
  }
17614
17615
  pause(cb) {
17615
17616
  window.setTimeout(()=>{
@@ -17677,7 +17678,7 @@ var __webpack_exports__ = {};
17677
17678
  buildChildren() {
17678
17679
  let playerOnly = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false, visualsElement = arguments.length > 1 ? arguments[1] : void 0;
17679
17680
  if (!visualsElement) throw new Error("Unable to build children without a visuals element");
17680
- this.options.logger.debug(`Visuals: buildChildren (playerOnly = ${playerOnly}, visualsElement="${pretty(visualsElement)}"})`);
17681
+ this.options.logger.debug(`Visuals: buildChildren (playerOnly = ${playerOnly}, visualsElement="${util_pretty(visualsElement)}"})`);
17681
17682
  this.buildNoScriptTag();
17682
17683
  if (!playerOnly) {
17683
17684
  this.notifier.build();
@@ -17707,7 +17708,7 @@ var __webpack_exports__ = {};
17707
17708
  this.correctDimensions();
17708
17709
  });
17709
17710
  this.on("ERROR", ()=>{
17710
- if (getBrowser(this.options).isMobile()) this.removeDimensions();
17711
+ if (util_getBrowser(this.options).isMobile()) this.removeDimensions();
17711
17712
  });
17712
17713
  }
17713
17714
  }
@@ -17736,7 +17737,7 @@ var __webpack_exports__ = {};
17736
17737
  }
17737
17738
  build() {
17738
17739
  let playerOnly = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false, parentElement = arguments.length > 1 ? arguments[1] : void 0;
17739
- this.options.logger.debug(`Visuals: build (playerOnly = ${playerOnly}${parentElement ? `, parentElement="${pretty(parentElement)}"` : ""})`);
17740
+ this.options.logger.debug(`Visuals: build (playerOnly = ${playerOnly}${parentElement ? `, parentElement="${util_pretty(parentElement)}"` : ""})`);
17740
17741
  if (parentElement) this.visualsElement = parentElement.querySelector(`.${this.options.selectors.visualsClass}`);
17741
17742
  else this.visualsElement = this.container.querySelector(`.${this.options.selectors.visualsClass}`);
17742
17743
  if (!this.visualsElement) if (playerOnly && parentElement) this.visualsElement = parentElement;
@@ -17798,7 +17799,7 @@ var __webpack_exports__ = {};
17798
17799
  unload(params) {
17799
17800
  if (!this.built) return;
17800
17801
  const e = null == params ? void 0 : params.e;
17801
- this.options.logger.debug(`Visuals: unload(${e ? pretty(e) : ""})`);
17802
+ this.options.logger.debug(`Visuals: unload(${e ? util_pretty(e) : ""})`);
17802
17803
  this.recorder.unload(params);
17803
17804
  this.recorderInsides.unload();
17804
17805
  this.replay.unload(params);
@@ -17943,19 +17944,19 @@ var __webpack_exports__ = {};
17943
17944
  }
17944
17945
  }
17945
17946
  const wrappers_visuals = Visuals;
17946
- var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
17947
+ var injectStylesIntoStyleTag = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/injectStylesIntoStyleTag.js");
17947
17948
  var injectStylesIntoStyleTag_default = /*#__PURE__*/ __webpack_require__.n(injectStylesIntoStyleTag);
17948
- var styleDomAPI = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
17949
+ var styleDomAPI = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleDomAPI.js");
17949
17950
  var styleDomAPI_default = /*#__PURE__*/ __webpack_require__.n(styleDomAPI);
17950
- var insertBySelector = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
17951
+ var insertBySelector = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertBySelector.js");
17951
17952
  var insertBySelector_default = /*#__PURE__*/ __webpack_require__.n(insertBySelector);
17952
- var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
17953
+ var setAttributesWithoutAttributes = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/setAttributesWithoutAttributes.js");
17953
17954
  var setAttributesWithoutAttributes_default = /*#__PURE__*/ __webpack_require__.n(setAttributesWithoutAttributes);
17954
- var insertStyleElement = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
17955
+ var insertStyleElement = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/insertStyleElement.js");
17955
17956
  var insertStyleElement_default = /*#__PURE__*/ __webpack_require__.n(insertStyleElement);
17956
- var styleTagTransform = __webpack_require__("./node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
17957
+ var styleTagTransform = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/style-loader/runtime/styleTagTransform.js");
17957
17958
  var styleTagTransform_default = /*#__PURE__*/ __webpack_require__.n(styleTagTransform);
17958
- 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");
17959
+ var main = __webpack_require__("./node_modules/@rslib/core/node_modules/@rsbuild/core/compiled/css-loader/index.js??ruleSet[1].rules[12].use[1]!builtin:lightningcss-loader??ruleSet[1].rules[12].use[2]!./node_modules/stylus-loader/dist/cjs.js??ruleSet[1].rules[12].use[3]!./src/styles/main.styl");
17959
17960
  var main_options = {};
17960
17961
  main_options.styleTagTransform = styleTagTransform_default();
17961
17962
  main_options.setAttributes = setAttributesWithoutAttributes_default();
@@ -17977,13 +17978,13 @@ var __webpack_exports__ = {};
17977
17978
  class Container extends util_Despot {
17978
17979
  buildChildren() {
17979
17980
  let playerOnly = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : false, parentElement = arguments.length > 1 ? arguments[1] : void 0;
17980
- this.options.logger.debug(`Container: buildChildren (playerOnly = ${playerOnly}${parentElement ? `, parentElement="${pretty(parentElement)}"` : ""})`);
17981
+ this.options.logger.debug(`Container: buildChildren (playerOnly = ${playerOnly}${parentElement ? `, parentElement="${util_pretty(parentElement)}"` : ""})`);
17981
17982
  if (this.containerElement) this.containerElement.classList.add(this.options.selectors.containerClass);
17982
17983
  if (!playerOnly) this.buttons.build();
17983
17984
  this.visuals.build(playerOnly, parentElement);
17984
17985
  }
17985
17986
  build(buildOptions) {
17986
- this.options.logger.debug(`Container: build (${buildOptions ? pretty(buildOptions) : ""})`);
17987
+ this.options.logger.debug(`Container: build (${buildOptions ? util_pretty(buildOptions) : ""})`);
17987
17988
  try {
17988
17989
  var _this_containerElement;
17989
17990
  const containerId = this.options.selectors.containerId;
@@ -18087,7 +18088,7 @@ var __webpack_exports__ = {};
18087
18088
  this.on("ERROR", (params)=>{
18088
18089
  this.processError(params);
18089
18090
  this.endWaiting();
18090
- const browser = getBrowser(this.options);
18091
+ const browser = util_getBrowser(this.options);
18091
18092
  if (browser.isMobile()) this.removeDimensions();
18092
18093
  });
18093
18094
  if (!playerOnly) this.on("LOADED_META_DATA", ()=>{
@@ -18128,17 +18129,17 @@ var __webpack_exports__ = {};
18128
18129
  return await this.resource.post(videomailFormData);
18129
18130
  }
18130
18131
  if (method === form_FormMethod.PUT) return await this.resource.put(videomailFormData);
18131
- throw createError({
18132
+ throw error_createError({
18132
18133
  message: `Unsupported form method ${method}, unable to submit videomail.`,
18133
18134
  options: this.options
18134
18135
  });
18135
18136
  }
18136
18137
  limitWidth(width) {
18137
18138
  if (!this.containerElement) return;
18138
- return limitWidth(this.containerElement, this.options, width);
18139
+ return dimensions_limitWidth(this.containerElement, this.options, width);
18139
18140
  }
18140
18141
  limitHeight(height) {
18141
- return limitHeight(height, this.options, "containers limitHeight fn");
18142
+ return dimensions_limitHeight(height, this.options, "containers limitHeight fn");
18142
18143
  }
18143
18144
  areVisualsHidden() {
18144
18145
  return this.visuals.isHidden();
@@ -18173,7 +18174,7 @@ var __webpack_exports__ = {};
18173
18174
  try {
18174
18175
  if (!this.built) return;
18175
18176
  const e = null == params ? void 0 : params.e;
18176
- this.options.logger.debug(`Container: unload(${e ? pretty(e) : ""})`);
18177
+ this.options.logger.debug(`Container: unload(${e ? util_pretty(e) : ""})`);
18177
18178
  this.emit("UNLOADING");
18178
18179
  this.unloadChildren(params);
18179
18180
  this.hide();
@@ -18187,7 +18188,7 @@ var __webpack_exports__ = {};
18187
18188
  }
18188
18189
  }
18189
18190
  show(params) {
18190
- if (!this.containerElement) throw createError({
18191
+ if (!this.containerElement) throw error_createError({
18191
18192
  message: "No container element exists.",
18192
18193
  options: this.options
18193
18194
  });
@@ -18376,7 +18377,7 @@ var __webpack_exports__ = {};
18376
18377
  });
18377
18378
  }
18378
18379
  } catch (exc) {
18379
- const err = createError({
18380
+ const err = error_createError({
18380
18381
  exc,
18381
18382
  options: this.options
18382
18383
  });
@@ -18469,7 +18470,7 @@ var __webpack_exports__ = {};
18469
18470
  else obj[key] = value;
18470
18471
  return obj;
18471
18472
  }
18472
- class CollectLogger {
18473
+ class CollectLogger_CollectLogger {
18473
18474
  lifo(level, parameters) {
18474
18475
  const line = parameters.join();
18475
18476
  if (this.stack.length > this.options.logStackSize) this.stack.pop();
@@ -18508,11 +18509,11 @@ var __webpack_exports__ = {};
18508
18509
  CollectLogger_define_property(this, "stack", []);
18509
18510
  CollectLogger_define_property(this, "options", void 0);
18510
18511
  this.options = options;
18511
- this.browser = getBrowser(options);
18512
+ this.browser = util_getBrowser(options);
18512
18513
  this.logger = options.logger;
18513
18514
  }
18514
18515
  }
18515
- const util_CollectLogger = CollectLogger;
18516
+ const CollectLogger = CollectLogger_CollectLogger;
18516
18517
  var isTest_process = __webpack_require__("./node_modules/process/browser.js");
18517
18518
  function isTest() {
18518
18519
  return "test" === isTest_process.env.ENVIRON;
@@ -18525,7 +18526,7 @@ var __webpack_exports__ = {};
18525
18526
  return source;
18526
18527
  }
18527
18528
  });
18528
- const collectLogger = new util_CollectLogger(newOptions);
18529
+ const collectLogger = new CollectLogger(newOptions);
18529
18530
  newOptions.logger = collectLogger;
18530
18531
  if (util_isTest()) newOptions.verbose = false;
18531
18532
  return newOptions;
@@ -18544,12 +18545,12 @@ var __webpack_exports__ = {};
18544
18545
  class VideomailClient extends util_Despot {
18545
18546
  validateOptions() {
18546
18547
  const width = this.options.video.width;
18547
- if (void 0 !== width && width % 2 !== 0) throw createError({
18548
+ if (void 0 !== width && width % 2 !== 0) throw error_createError({
18548
18549
  message: "Width must be divisible by two.",
18549
18550
  options: this.options
18550
18551
  });
18551
18552
  const height = this.options.video.height;
18552
- if (void 0 !== height && height % 2 !== 0) throw createError({
18553
+ if (void 0 !== height && height % 2 !== 0) throw error_createError({
18553
18554
  message: "Height must be divisible by two.",
18554
18555
  options: this.options
18555
18556
  });