@reactoo/watchtogether-sdk-js 2.5.6 → 2.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/watchtogether-sdk.js +204 -928
- package/dist/watchtogether-sdk.min.js +2 -2
- package/example/bulk_join_room/bulk_join_room.html +0 -5
- package/package.json +3 -4
- package/src/models/auth.js +1 -2
- package/src/models/room-session.js +10 -13
- package/src/modules/wt-room.js +9 -11
- package/src/modules/wt-utils.js +13 -19
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @reactoo/watchtogether-sdk-js
|
|
3
|
-
* @version 2.5.
|
|
3
|
+
* @version 2.5.10
|
|
4
4
|
*/
|
|
5
5
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
6
6
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -694,14 +694,15 @@ eval("module.exports = __webpack_require__(/*! regenerator-runtime */ \"./node_m
|
|
|
694
694
|
|
|
695
695
|
/***/ }),
|
|
696
696
|
|
|
697
|
-
/***/ "./node_modules/@fingerprintjs/fingerprintjs/
|
|
698
|
-
|
|
699
|
-
!*** ./node_modules/@fingerprintjs/fingerprintjs/
|
|
700
|
-
|
|
701
|
-
/*!
|
|
702
|
-
/***/ (function(module,
|
|
697
|
+
/***/ "./node_modules/@fingerprintjs/fingerprintjs/dist/fp.esm.js":
|
|
698
|
+
/*!******************************************************************!*\
|
|
699
|
+
!*** ./node_modules/@fingerprintjs/fingerprintjs/dist/fp.esm.js ***!
|
|
700
|
+
\******************************************************************/
|
|
701
|
+
/*! exports provided: default, componentsToDebugString, getFullscreenElement, getScreenFrame, hashComponents, isAndroid, isChromium, isDesktopSafari, isEdgeHTML, isGecko, isTrident, isWebKit, load, loadSources, murmurX64Hash128, prepareForSources, sources */
|
|
702
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
703
703
|
|
|
704
|
-
eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*\n* Fingerprintjs2 2.1.5 - Modern & flexible browser fingerprint library v2\n* https://github.com/fingerprintjs/fingerprintjs\n* Copyright (c) FingerprintJS, Inc, 2020 (https://fingerprintjs.com)\n* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n* ARE DISCLAIMED. IN NO EVENT SHALL FINGERPRINTJS INC BE LIABLE FOR ANY\n* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n\n/*\n* This software contains code from open-source projects:\n* MurmurHash3 by Karan Lyons (https://github.com/karanlyons/murmurHash3.js)\n*/\n\n/* global define */\n(function (name, context, definition) {\n 'use strict';\n\n if (typeof window !== 'undefined' && \"function\" === 'function' && __webpack_require__(/*! !webpack amd options */ \"./node_modules/webpack/buildin/amd-options.js\")) {\n !(__WEBPACK_AMD_DEFINE_FACTORY__ = (definition),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :\n\t\t\t\t__WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else if ( true && module.exports) {\n module.exports = definition();\n } else if (context.exports) {\n context.exports = definition();\n } else {\n context[name] = definition();\n }\n})('Fingerprint2', this, function () {\n 'use strict'; // detect if object is array\n // only implement if no native implementation is available\n\n if (typeof Array.isArray === 'undefined') {\n Array.isArray = function (obj) {\n return Object.prototype.toString.call(obj) === '[object Array]';\n };\n }\n\n ; /// MurmurHash3 related functions\n //\n // Given two 64bit ints (as an array of two 32bit ints) returns the two\n // added together as a 64bit int (as an array of two 32bit ints).\n //\n\n var x64Add = function (m, n) {\n m = [m[0] >>> 16, m[0] & 0xffff, m[1] >>> 16, m[1] & 0xffff];\n n = [n[0] >>> 16, n[0] & 0xffff, n[1] >>> 16, n[1] & 0xffff];\n var o = [0, 0, 0, 0];\n o[3] += m[3] + n[3];\n o[2] += o[3] >>> 16;\n o[3] &= 0xffff;\n o[2] += m[2] + n[2];\n o[1] += o[2] >>> 16;\n o[2] &= 0xffff;\n o[1] += m[1] + n[1];\n o[0] += o[1] >>> 16;\n o[1] &= 0xffff;\n o[0] += m[0] + n[0];\n o[0] &= 0xffff;\n return [o[0] << 16 | o[1], o[2] << 16 | o[3]];\n }; //\n // Given two 64bit ints (as an array of two 32bit ints) returns the two\n // multiplied together as a 64bit int (as an array of two 32bit ints).\n //\n\n\n var x64Multiply = function (m, n) {\n m = [m[0] >>> 16, m[0] & 0xffff, m[1] >>> 16, m[1] & 0xffff];\n n = [n[0] >>> 16, n[0] & 0xffff, n[1] >>> 16, n[1] & 0xffff];\n var o = [0, 0, 0, 0];\n o[3] += m[3] * n[3];\n o[2] += o[3] >>> 16;\n o[3] &= 0xffff;\n o[2] += m[2] * n[3];\n o[1] += o[2] >>> 16;\n o[2] &= 0xffff;\n o[2] += m[3] * n[2];\n o[1] += o[2] >>> 16;\n o[2] &= 0xffff;\n o[1] += m[1] * n[3];\n o[0] += o[1] >>> 16;\n o[1] &= 0xffff;\n o[1] += m[2] * n[2];\n o[0] += o[1] >>> 16;\n o[1] &= 0xffff;\n o[1] += m[3] * n[1];\n o[0] += o[1] >>> 16;\n o[1] &= 0xffff;\n o[0] += m[0] * n[3] + m[1] * n[2] + m[2] * n[1] + m[3] * n[0];\n o[0] &= 0xffff;\n return [o[0] << 16 | o[1], o[2] << 16 | o[3]];\n }; //\n // Given a 64bit int (as an array of two 32bit ints) and an int\n // representing a number of bit positions, returns the 64bit int (as an\n // array of two 32bit ints) rotated left by that number of positions.\n //\n\n\n var x64Rotl = function (m, n) {\n n %= 64;\n\n if (n === 32) {\n return [m[1], m[0]];\n } else if (n < 32) {\n return [m[0] << n | m[1] >>> 32 - n, m[1] << n | m[0] >>> 32 - n];\n } else {\n n -= 32;\n return [m[1] << n | m[0] >>> 32 - n, m[0] << n | m[1] >>> 32 - n];\n }\n }; //\n // Given a 64bit int (as an array of two 32bit ints) and an int\n // representing a number of bit positions, returns the 64bit int (as an\n // array of two 32bit ints) shifted left by that number of positions.\n //\n\n\n var x64LeftShift = function (m, n) {\n n %= 64;\n\n if (n === 0) {\n return m;\n } else if (n < 32) {\n return [m[0] << n | m[1] >>> 32 - n, m[1] << n];\n } else {\n return [m[1] << n - 32, 0];\n }\n }; //\n // Given two 64bit ints (as an array of two 32bit ints) returns the two\n // xored together as a 64bit int (as an array of two 32bit ints).\n //\n\n\n var x64Xor = function (m, n) {\n return [m[0] ^ n[0], m[1] ^ n[1]];\n }; //\n // Given a block, returns murmurHash3's final x64 mix of that block.\n // (`[0, h[0] >>> 1]` is a 33 bit unsigned right shift. This is the\n // only place where we need to right shift 64bit ints.)\n //\n\n\n var x64Fmix = function (h) {\n h = x64Xor(h, [0, h[0] >>> 1]);\n h = x64Multiply(h, [0xff51afd7, 0xed558ccd]);\n h = x64Xor(h, [0, h[0] >>> 1]);\n h = x64Multiply(h, [0xc4ceb9fe, 0x1a85ec53]);\n h = x64Xor(h, [0, h[0] >>> 1]);\n return h;\n }; //\n // Given a string and an optional seed as an int, returns a 128 bit\n // hash using the x64 flavor of MurmurHash3, as an unsigned hex.\n //\n\n\n var x64hash128 = function (key, seed) {\n key = key || '';\n seed = seed || 0;\n var remainder = key.length % 16;\n var bytes = key.length - remainder;\n var h1 = [0, seed];\n var h2 = [0, seed];\n var k1 = [0, 0];\n var k2 = [0, 0];\n var c1 = [0x87c37b91, 0x114253d5];\n var c2 = [0x4cf5ad43, 0x2745937f];\n\n for (var i = 0; i < bytes; i = i + 16) {\n k1 = [key.charCodeAt(i + 4) & 0xff | (key.charCodeAt(i + 5) & 0xff) << 8 | (key.charCodeAt(i + 6) & 0xff) << 16 | (key.charCodeAt(i + 7) & 0xff) << 24, key.charCodeAt(i) & 0xff | (key.charCodeAt(i + 1) & 0xff) << 8 | (key.charCodeAt(i + 2) & 0xff) << 16 | (key.charCodeAt(i + 3) & 0xff) << 24];\n k2 = [key.charCodeAt(i + 12) & 0xff | (key.charCodeAt(i + 13) & 0xff) << 8 | (key.charCodeAt(i + 14) & 0xff) << 16 | (key.charCodeAt(i + 15) & 0xff) << 24, key.charCodeAt(i + 8) & 0xff | (key.charCodeAt(i + 9) & 0xff) << 8 | (key.charCodeAt(i + 10) & 0xff) << 16 | (key.charCodeAt(i + 11) & 0xff) << 24];\n k1 = x64Multiply(k1, c1);\n k1 = x64Rotl(k1, 31);\n k1 = x64Multiply(k1, c2);\n h1 = x64Xor(h1, k1);\n h1 = x64Rotl(h1, 27);\n h1 = x64Add(h1, h2);\n h1 = x64Add(x64Multiply(h1, [0, 5]), [0, 0x52dce729]);\n k2 = x64Multiply(k2, c2);\n k2 = x64Rotl(k2, 33);\n k2 = x64Multiply(k2, c1);\n h2 = x64Xor(h2, k2);\n h2 = x64Rotl(h2, 31);\n h2 = x64Add(h2, h1);\n h2 = x64Add(x64Multiply(h2, [0, 5]), [0, 0x38495ab5]);\n }\n\n k1 = [0, 0];\n k2 = [0, 0];\n\n switch (remainder) {\n case 15:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 14)], 48));\n // fallthrough\n\n case 14:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 13)], 40));\n // fallthrough\n\n case 13:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 12)], 32));\n // fallthrough\n\n case 12:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 11)], 24));\n // fallthrough\n\n case 11:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 10)], 16));\n // fallthrough\n\n case 10:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 9)], 8));\n // fallthrough\n\n case 9:\n k2 = x64Xor(k2, [0, key.charCodeAt(i + 8)]);\n k2 = x64Multiply(k2, c2);\n k2 = x64Rotl(k2, 33);\n k2 = x64Multiply(k2, c1);\n h2 = x64Xor(h2, k2);\n // fallthrough\n\n case 8:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 7)], 56));\n // fallthrough\n\n case 7:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 6)], 48));\n // fallthrough\n\n case 6:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 5)], 40));\n // fallthrough\n\n case 5:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 4)], 32));\n // fallthrough\n\n case 4:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 3)], 24));\n // fallthrough\n\n case 3:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 2)], 16));\n // fallthrough\n\n case 2:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 1)], 8));\n // fallthrough\n\n case 1:\n k1 = x64Xor(k1, [0, key.charCodeAt(i)]);\n k1 = x64Multiply(k1, c1);\n k1 = x64Rotl(k1, 31);\n k1 = x64Multiply(k1, c2);\n h1 = x64Xor(h1, k1);\n // fallthrough\n }\n\n h1 = x64Xor(h1, [0, key.length]);\n h2 = x64Xor(h2, [0, key.length]);\n h1 = x64Add(h1, h2);\n h2 = x64Add(h2, h1);\n h1 = x64Fmix(h1);\n h2 = x64Fmix(h2);\n h1 = x64Add(h1, h2);\n h2 = x64Add(h2, h1);\n return ('00000000' + (h1[0] >>> 0).toString(16)).slice(-8) + ('00000000' + (h1[1] >>> 0).toString(16)).slice(-8) + ('00000000' + (h2[0] >>> 0).toString(16)).slice(-8) + ('00000000' + (h2[1] >>> 0).toString(16)).slice(-8);\n };\n\n var defaultOptions = {\n preprocessor: null,\n audio: {\n timeout: 1000,\n // On iOS 11, audio context can only be used in response to user interaction.\n // We require users to explicitly enable audio fingerprinting on iOS 11.\n // See https://stackoverflow.com/questions/46363048/onaudioprocess-not-called-on-ios11#46534088\n excludeIOS11: true\n },\n fonts: {\n swfContainerId: 'fingerprintjs2',\n swfPath: 'flash/compiled/FontList.swf',\n userDefinedFonts: [],\n extendedJsFonts: false\n },\n screen: {\n // To ensure consistent fingerprints when users rotate their mobile devices\n detectScreenOrientation: true\n },\n plugins: {\n sortPluginsFor: [/palemoon/i],\n excludeIE: false\n },\n extraComponents: [],\n excludes: {\n // Unreliable on Windows, see https://github.com/fingerprintjs/fingerprintjs/issues/375\n 'enumerateDevices': true,\n // devicePixelRatio depends on browser zoom, and it's impossible to detect browser zoom\n 'pixelRatio': true,\n // DNT depends on incognito mode for some browsers (Chrome) and it's impossible to detect incognito mode\n 'doNotTrack': true,\n // uses js fonts already\n 'fontsFlash': true,\n // Extensions (including AdBlock) are disabled by default in Incognito mod of Chrome and Firefox\n // See https://github.com/fingerprintjs/fingerprintjs/issues/405\n 'adBlock': true\n },\n NOT_AVAILABLE: 'not available',\n ERROR: 'error',\n EXCLUDED: 'excluded'\n };\n\n var each = function (obj, iterator) {\n if (Array.prototype.forEach && obj.forEach === Array.prototype.forEach) {\n obj.forEach(iterator);\n } else if (obj.length === +obj.length) {\n for (var i = 0, l = obj.length; i < l; i++) {\n iterator(obj[i], i, obj);\n }\n } else {\n for (var key in obj) {\n if (obj.hasOwnProperty(key)) {\n iterator(obj[key], key, obj);\n }\n }\n }\n };\n\n var map = function (obj, iterator) {\n var results = []; // Not using strict equality so that this acts as a\n // shortcut to checking for `null` and `undefined`.\n\n if (obj == null) {\n return results;\n }\n\n if (Array.prototype.map && obj.map === Array.prototype.map) {\n return obj.map(iterator);\n }\n\n each(obj, function (value, index, list) {\n results.push(iterator(value, index, list));\n });\n return results;\n };\n\n var extendSoft = function (target, source) {\n if (source == null) {\n return target;\n }\n\n var value;\n var key;\n\n for (key in source) {\n value = source[key];\n\n if (value != null && !Object.prototype.hasOwnProperty.call(target, key)) {\n target[key] = value;\n }\n }\n\n return target;\n }; // https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices\n\n\n var enumerateDevicesKey = function (done, options) {\n if (!isEnumerateDevicesSupported()) {\n return done(options.NOT_AVAILABLE);\n }\n\n navigator.mediaDevices.enumerateDevices().then(function (devices) {\n done(devices.map(function (device) {\n return 'id=' + device.deviceId + ';gid=' + device.groupId + ';' + device.kind + ';' + device.label;\n }));\n }).catch(function (error) {\n done(error);\n });\n };\n\n var isEnumerateDevicesSupported = function () {\n return navigator.mediaDevices && navigator.mediaDevices.enumerateDevices;\n }; // Inspired by and based on https://github.com/cozylife/audio-fingerprint\n\n\n var audioKey = function (done, options) {\n var audioOptions = options.audio;\n\n if (audioOptions.excludeIOS11 && navigator.userAgent.match(/OS 11.+Version\\/11.+Safari/)) {\n // See comment for excludeUserAgent and https://stackoverflow.com/questions/46363048/onaudioprocess-not-called-on-ios11#46534088\n return done(options.EXCLUDED);\n }\n\n var AudioContext = window.OfflineAudioContext || window.webkitOfflineAudioContext;\n\n if (AudioContext == null) {\n return done(options.NOT_AVAILABLE);\n }\n\n var context = new AudioContext(1, 44100, 44100);\n var oscillator = context.createOscillator();\n oscillator.type = 'triangle';\n oscillator.frequency.setValueAtTime(10000, context.currentTime);\n var compressor = context.createDynamicsCompressor();\n each([['threshold', -50], ['knee', 40], ['ratio', 12], ['reduction', -20], ['attack', 0], ['release', 0.25]], function (item) {\n if (compressor[item[0]] !== undefined && typeof compressor[item[0]].setValueAtTime === 'function') {\n compressor[item[0]].setValueAtTime(item[1], context.currentTime);\n }\n });\n oscillator.connect(compressor);\n compressor.connect(context.destination);\n oscillator.start(0);\n context.startRendering();\n var audioTimeoutId = setTimeout(function () {\n console.warn('Audio fingerprint timed out. Please report bug at https://github.com/fingerprintjs/fingerprintjs with your user agent: \"' + navigator.userAgent + '\".');\n\n context.oncomplete = function () {};\n\n context = null;\n return done('audioTimeout');\n }, audioOptions.timeout);\n\n context.oncomplete = function (event) {\n var fingerprint;\n\n try {\n clearTimeout(audioTimeoutId);\n fingerprint = event.renderedBuffer.getChannelData(0).slice(4500, 5000).reduce(function (acc, val) {\n return acc + Math.abs(val);\n }, 0).toString();\n oscillator.disconnect();\n compressor.disconnect();\n } catch (error) {\n done(error);\n return;\n }\n\n done(fingerprint);\n };\n };\n\n var UserAgent = function (done) {\n done(navigator.userAgent);\n };\n\n var webdriver = function (done, options) {\n done(navigator.webdriver == null ? options.NOT_AVAILABLE : navigator.webdriver);\n };\n\n var languageKey = function (done, options) {\n done(navigator.language || navigator.userLanguage || navigator.browserLanguage || navigator.systemLanguage || options.NOT_AVAILABLE);\n };\n\n var colorDepthKey = function (done, options) {\n done(window.screen.colorDepth || options.NOT_AVAILABLE);\n };\n\n var deviceMemoryKey = function (done, options) {\n done(navigator.deviceMemory || options.NOT_AVAILABLE);\n };\n\n var pixelRatioKey = function (done, options) {\n done(window.devicePixelRatio || options.NOT_AVAILABLE);\n };\n\n var screenResolutionKey = function (done, options) {\n done(getScreenResolution(options));\n };\n\n var getScreenResolution = function (options) {\n var resolution = [window.screen.width, window.screen.height];\n\n if (options.screen.detectScreenOrientation) {\n resolution.sort().reverse();\n }\n\n return resolution;\n };\n\n var availableScreenResolutionKey = function (done, options) {\n done(getAvailableScreenResolution(options));\n };\n\n var getAvailableScreenResolution = function (options) {\n if (window.screen.availWidth && window.screen.availHeight) {\n var available = [window.screen.availHeight, window.screen.availWidth];\n\n if (options.screen.detectScreenOrientation) {\n available.sort().reverse();\n }\n\n return available;\n } // headless browsers\n\n\n return options.NOT_AVAILABLE;\n };\n\n var timezoneOffset = function (done) {\n done(new Date().getTimezoneOffset());\n };\n\n var timezone = function (done, options) {\n if (window.Intl && window.Intl.DateTimeFormat) {\n done(new window.Intl.DateTimeFormat().resolvedOptions().timeZone || options.NOT_AVAILABLE);\n return;\n }\n\n done(options.NOT_AVAILABLE);\n };\n\n var sessionStorageKey = function (done, options) {\n done(hasSessionStorage(options));\n };\n\n var localStorageKey = function (done, options) {\n done(hasLocalStorage(options));\n };\n\n var indexedDbKey = function (done, options) {\n done(hasIndexedDB(options));\n };\n\n var addBehaviorKey = function (done) {\n done(!!window.HTMLElement.prototype.addBehavior);\n };\n\n var openDatabaseKey = function (done) {\n done(!!window.openDatabase);\n };\n\n var cpuClassKey = function (done, options) {\n done(getNavigatorCpuClass(options));\n };\n\n var platformKey = function (done, options) {\n done(getNavigatorPlatform(options));\n };\n\n var doNotTrackKey = function (done, options) {\n done(getDoNotTrack(options));\n };\n\n var canvasKey = function (done, options) {\n if (isCanvasSupported()) {\n done(getCanvasFp(options));\n return;\n }\n\n done(options.NOT_AVAILABLE);\n };\n\n var webglKey = function (done, options) {\n if (isWebGlSupported()) {\n done(getWebglFp());\n return;\n }\n\n done(options.NOT_AVAILABLE);\n };\n\n var webglVendorAndRendererKey = function (done) {\n if (isWebGlSupported()) {\n done(getWebglVendorAndRenderer());\n return;\n }\n\n done();\n };\n\n var adBlockKey = function (done) {\n done(getAdBlock());\n };\n\n var hasLiedLanguagesKey = function (done) {\n done(getHasLiedLanguages());\n };\n\n var hasLiedResolutionKey = function (done) {\n done(getHasLiedResolution());\n };\n\n var hasLiedOsKey = function (done) {\n done(getHasLiedOs());\n };\n\n var hasLiedBrowserKey = function (done) {\n done(getHasLiedBrowser());\n }; // flash fonts (will increase fingerprinting time 20X to ~ 130-150ms)\n\n\n var flashFontsKey = function (done, options) {\n // we do flash if swfobject is loaded\n if (!hasSwfObjectLoaded()) {\n return done('swf object not loaded');\n }\n\n if (!hasMinFlashInstalled()) {\n return done('flash not installed');\n }\n\n if (!options.fonts.swfPath) {\n return done('missing options.fonts.swfPath');\n }\n\n loadSwfAndDetectFonts(function (fonts) {\n done(fonts);\n }, options);\n }; // kudos to http://www.lalit.org/lab/javascript-css-font-detect/\n\n\n var jsFontsKey = function (done, options) {\n // a font will be compared against all the three default fonts.\n // and if it doesn't match all 3 then that font is not available.\n var baseFonts = ['monospace', 'sans-serif', 'serif'];\n var fontList = ['Andale Mono', 'Arial', 'Arial Black', 'Arial Hebrew', 'Arial MT', 'Arial Narrow', 'Arial Rounded MT Bold', 'Arial Unicode MS', 'Bitstream Vera Sans Mono', 'Book Antiqua', 'Bookman Old Style', 'Calibri', 'Cambria', 'Cambria Math', 'Century', 'Century Gothic', 'Century Schoolbook', 'Comic Sans', 'Comic Sans MS', 'Consolas', 'Courier', 'Courier New', 'Geneva', 'Georgia', 'Helvetica', 'Helvetica Neue', 'Impact', 'Lucida Bright', 'Lucida Calligraphy', 'Lucida Console', 'Lucida Fax', 'LUCIDA GRANDE', 'Lucida Handwriting', 'Lucida Sans', 'Lucida Sans Typewriter', 'Lucida Sans Unicode', 'Microsoft Sans Serif', 'Monaco', 'Monotype Corsiva', 'MS Gothic', 'MS Outlook', 'MS PGothic', 'MS Reference Sans Serif', 'MS Sans Serif', 'MS Serif', 'MYRIAD', 'MYRIAD PRO', 'Palatino', 'Palatino Linotype', 'Segoe Print', 'Segoe Script', 'Segoe UI', 'Segoe UI Light', 'Segoe UI Semibold', 'Segoe UI Symbol', 'Tahoma', 'Times', 'Times New Roman', 'Times New Roman PS', 'Trebuchet MS', 'Verdana', 'Wingdings', 'Wingdings 2', 'Wingdings 3'];\n\n if (options.fonts.extendedJsFonts) {\n var extendedFontList = ['Abadi MT Condensed Light', 'Academy Engraved LET', 'ADOBE CASLON PRO', 'Adobe Garamond', 'ADOBE GARAMOND PRO', 'Agency FB', 'Aharoni', 'Albertus Extra Bold', 'Albertus Medium', 'Algerian', 'Amazone BT', 'American Typewriter', 'American Typewriter Condensed', 'AmerType Md BT', 'Andalus', 'Angsana New', 'AngsanaUPC', 'Antique Olive', 'Aparajita', 'Apple Chancery', 'Apple Color Emoji', 'Apple SD Gothic Neo', 'Arabic Typesetting', 'ARCHER', 'ARNO PRO', 'Arrus BT', 'Aurora Cn BT', 'AvantGarde Bk BT', 'AvantGarde Md BT', 'AVENIR', 'Ayuthaya', 'Bandy', 'Bangla Sangam MN', 'Bank Gothic', 'BankGothic Md BT', 'Baskerville', 'Baskerville Old Face', 'Batang', 'BatangChe', 'Bauer Bodoni', 'Bauhaus 93', 'Bazooka', 'Bell MT', 'Bembo', 'Benguiat Bk BT', 'Berlin Sans FB', 'Berlin Sans FB Demi', 'Bernard MT Condensed', 'BernhardFashion BT', 'BernhardMod BT', 'Big Caslon', 'BinnerD', 'Blackadder ITC', 'BlairMdITC TT', 'Bodoni 72', 'Bodoni 72 Oldstyle', 'Bodoni 72 Smallcaps', 'Bodoni MT', 'Bodoni MT Black', 'Bodoni MT Condensed', 'Bodoni MT Poster Compressed', 'Bookshelf Symbol 7', 'Boulder', 'Bradley Hand', 'Bradley Hand ITC', 'Bremen Bd BT', 'Britannic Bold', 'Broadway', 'Browallia New', 'BrowalliaUPC', 'Brush Script MT', 'Californian FB', 'Calisto MT', 'Calligrapher', 'Candara', 'CaslonOpnface BT', 'Castellar', 'Centaur', 'Cezanne', 'CG Omega', 'CG Times', 'Chalkboard', 'Chalkboard SE', 'Chalkduster', 'Charlesworth', 'Charter Bd BT', 'Charter BT', 'Chaucer', 'ChelthmITC Bk BT', 'Chiller', 'Clarendon', 'Clarendon Condensed', 'CloisterBlack BT', 'Cochin', 'Colonna MT', 'Constantia', 'Cooper Black', 'Copperplate', 'Copperplate Gothic', 'Copperplate Gothic Bold', 'Copperplate Gothic Light', 'CopperplGoth Bd BT', 'Corbel', 'Cordia New', 'CordiaUPC', 'Cornerstone', 'Coronet', 'Cuckoo', 'Curlz MT', 'DaunPenh', 'Dauphin', 'David', 'DB LCD Temp', 'DELICIOUS', 'Denmark', 'DFKai-SB', 'Didot', 'DilleniaUPC', 'DIN', 'DokChampa', 'Dotum', 'DotumChe', 'Ebrima', 'Edwardian Script ITC', 'Elephant', 'English 111 Vivace BT', 'Engravers MT', 'EngraversGothic BT', 'Eras Bold ITC', 'Eras Demi ITC', 'Eras Light ITC', 'Eras Medium ITC', 'EucrosiaUPC', 'Euphemia', 'Euphemia UCAS', 'EUROSTILE', 'Exotc350 Bd BT', 'FangSong', 'Felix Titling', 'Fixedsys', 'FONTIN', 'Footlight MT Light', 'Forte', 'FrankRuehl', 'Fransiscan', 'Freefrm721 Blk BT', 'FreesiaUPC', 'Freestyle Script', 'French Script MT', 'FrnkGothITC Bk BT', 'Fruitger', 'FRUTIGER', 'Futura', 'Futura Bk BT', 'Futura Lt BT', 'Futura Md BT', 'Futura ZBlk BT', 'FuturaBlack BT', 'Gabriola', 'Galliard BT', 'Gautami', 'Geeza Pro', 'Geometr231 BT', 'Geometr231 Hv BT', 'Geometr231 Lt BT', 'GeoSlab 703 Lt BT', 'GeoSlab 703 XBd BT', 'Gigi', 'Gill Sans', 'Gill Sans MT', 'Gill Sans MT Condensed', 'Gill Sans MT Ext Condensed Bold', 'Gill Sans Ultra Bold', 'Gill Sans Ultra Bold Condensed', 'Gisha', 'Gloucester MT Extra Condensed', 'GOTHAM', 'GOTHAM BOLD', 'Goudy Old Style', 'Goudy Stout', 'GoudyHandtooled BT', 'GoudyOLSt BT', 'Gujarati Sangam MN', 'Gulim', 'GulimChe', 'Gungsuh', 'GungsuhChe', 'Gurmukhi MN', 'Haettenschweiler', 'Harlow Solid Italic', 'Harrington', 'Heather', 'Heiti SC', 'Heiti TC', 'HELV', 'Herald', 'High Tower Text', 'Hiragino Kaku Gothic ProN', 'Hiragino Mincho ProN', 'Hoefler Text', 'Humanst 521 Cn BT', 'Humanst521 BT', 'Humanst521 Lt BT', 'Imprint MT Shadow', 'Incised901 Bd BT', 'Incised901 BT', 'Incised901 Lt BT', 'INCONSOLATA', 'Informal Roman', 'Informal011 BT', 'INTERSTATE', 'IrisUPC', 'Iskoola Pota', 'JasmineUPC', 'Jazz LET', 'Jenson', 'Jester', 'Jokerman', 'Juice ITC', 'Kabel Bk BT', 'Kabel Ult BT', 'Kailasa', 'KaiTi', 'Kalinga', 'Kannada Sangam MN', 'Kartika', 'Kaufmann Bd BT', 'Kaufmann BT', 'Khmer UI', 'KodchiangUPC', 'Kokila', 'Korinna BT', 'Kristen ITC', 'Krungthep', 'Kunstler Script', 'Lao UI', 'Latha', 'Leelawadee', 'Letter Gothic', 'Levenim MT', 'LilyUPC', 'Lithograph', 'Lithograph Light', 'Long Island', 'Lydian BT', 'Magneto', 'Maiandra GD', 'Malayalam Sangam MN', 'Malgun Gothic', 'Mangal', 'Marigold', 'Marion', 'Marker Felt', 'Market', 'Marlett', 'Matisse ITC', 'Matura MT Script Capitals', 'Meiryo', 'Meiryo UI', 'Microsoft Himalaya', 'Microsoft JhengHei', 'Microsoft New Tai Lue', 'Microsoft PhagsPa', 'Microsoft Tai Le', 'Microsoft Uighur', 'Microsoft YaHei', 'Microsoft Yi Baiti', 'MingLiU', 'MingLiU_HKSCS', 'MingLiU_HKSCS-ExtB', 'MingLiU-ExtB', 'Minion', 'Minion Pro', 'Miriam', 'Miriam Fixed', 'Mistral', 'Modern', 'Modern No. 20', 'Mona Lisa Solid ITC TT', 'Mongolian Baiti', 'MONO', 'MoolBoran', 'Mrs Eaves', 'MS LineDraw', 'MS Mincho', 'MS PMincho', 'MS Reference Specialty', 'MS UI Gothic', 'MT Extra', 'MUSEO', 'MV Boli', 'Nadeem', 'Narkisim', 'NEVIS', 'News Gothic', 'News GothicMT', 'NewsGoth BT', 'Niagara Engraved', 'Niagara Solid', 'Noteworthy', 'NSimSun', 'Nyala', 'OCR A Extended', 'Old Century', 'Old English Text MT', 'Onyx', 'Onyx BT', 'OPTIMA', 'Oriya Sangam MN', 'OSAKA', 'OzHandicraft BT', 'Palace Script MT', 'Papyrus', 'Parchment', 'Party LET', 'Pegasus', 'Perpetua', 'Perpetua Titling MT', 'PetitaBold', 'Pickwick', 'Plantagenet Cherokee', 'Playbill', 'PMingLiU', 'PMingLiU-ExtB', 'Poor Richard', 'Poster', 'PosterBodoni BT', 'PRINCETOWN LET', 'Pristina', 'PTBarnum BT', 'Pythagoras', 'Raavi', 'Rage Italic', 'Ravie', 'Ribbon131 Bd BT', 'Rockwell', 'Rockwell Condensed', 'Rockwell Extra Bold', 'Rod', 'Roman', 'Sakkal Majalla', 'Santa Fe LET', 'Savoye LET', 'Sceptre', 'Script', 'Script MT Bold', 'SCRIPTINA', 'Serifa', 'Serifa BT', 'Serifa Th BT', 'ShelleyVolante BT', 'Sherwood', 'Shonar Bangla', 'Showcard Gothic', 'Shruti', 'Signboard', 'SILKSCREEN', 'SimHei', 'Simplified Arabic', 'Simplified Arabic Fixed', 'SimSun', 'SimSun-ExtB', 'Sinhala Sangam MN', 'Sketch Rockwell', 'Skia', 'Small Fonts', 'Snap ITC', 'Snell Roundhand', 'Socket', 'Souvenir Lt BT', 'Staccato222 BT', 'Steamer', 'Stencil', 'Storybook', 'Styllo', 'Subway', 'Swis721 BlkEx BT', 'Swiss911 XCm BT', 'Sylfaen', 'Synchro LET', 'System', 'Tamil Sangam MN', 'Technical', 'Teletype', 'Telugu Sangam MN', 'Tempus Sans ITC', 'Terminal', 'Thonburi', 'Traditional Arabic', 'Trajan', 'TRAJAN PRO', 'Tristan', 'Tubular', 'Tunga', 'Tw Cen MT', 'Tw Cen MT Condensed', 'Tw Cen MT Condensed Extra Bold', 'TypoUpright BT', 'Unicorn', 'Univers', 'Univers CE 55 Medium', 'Univers Condensed', 'Utsaah', 'Vagabond', 'Vani', 'Vijaya', 'Viner Hand ITC', 'VisualUI', 'Vivaldi', 'Vladimir Script', 'Vrinda', 'Westminster', 'WHITNEY', 'Wide Latin', 'ZapfEllipt BT', 'ZapfHumnst BT', 'ZapfHumnst Dm BT', 'Zapfino', 'Zurich BlkEx BT', 'Zurich Ex BT', 'ZWAdobeF'];\n fontList = fontList.concat(extendedFontList);\n }\n\n fontList = fontList.concat(options.fonts.userDefinedFonts); // remove duplicate fonts\n\n fontList = fontList.filter(function (font, position) {\n return fontList.indexOf(font) === position;\n }); // we use m or w because these two characters take up the maximum width.\n // And we use a LLi so that the same matching fonts can get separated\n\n var testString = 'mmmmmmmmmmlli'; // we test using 72px font size, we may use any size. I guess larger the better.\n\n var testSize = '72px';\n var h = document.getElementsByTagName('body')[0]; // div to load spans for the base fonts\n\n var baseFontsDiv = document.createElement('div'); // div to load spans for the fonts to detect\n\n var fontsDiv = document.createElement('div');\n var defaultWidth = {};\n var defaultHeight = {}; // creates a span where the fonts will be loaded\n\n var createSpan = function () {\n var s = document.createElement('span');\n /*\n * We need this css as in some weird browser this\n * span elements shows up for a microSec which creates a\n * bad user experience\n */\n\n s.style.position = 'absolute';\n s.style.left = '-9999px';\n s.style.fontSize = testSize; // css font reset to reset external styles\n\n s.style.fontStyle = 'normal';\n s.style.fontWeight = 'normal';\n s.style.letterSpacing = 'normal';\n s.style.lineBreak = 'auto';\n s.style.lineHeight = 'normal';\n s.style.textTransform = 'none';\n s.style.textAlign = 'left';\n s.style.textDecoration = 'none';\n s.style.textShadow = 'none';\n s.style.whiteSpace = 'normal';\n s.style.wordBreak = 'normal';\n s.style.wordSpacing = 'normal';\n s.innerHTML = testString;\n return s;\n }; // creates a span and load the font to detect and a base font for fallback\n\n\n var createSpanWithFonts = function (fontToDetect, baseFont) {\n var s = createSpan();\n s.style.fontFamily = \"'\" + fontToDetect + \"',\" + baseFont;\n return s;\n }; // creates spans for the base fonts and adds them to baseFontsDiv\n\n\n var initializeBaseFontsSpans = function () {\n var spans = [];\n\n for (var index = 0, length = baseFonts.length; index < length; index++) {\n var s = createSpan();\n s.style.fontFamily = baseFonts[index];\n baseFontsDiv.appendChild(s);\n spans.push(s);\n }\n\n return spans;\n }; // creates spans for the fonts to detect and adds them to fontsDiv\n\n\n var initializeFontsSpans = function () {\n var spans = {};\n\n for (var i = 0, l = fontList.length; i < l; i++) {\n var fontSpans = [];\n\n for (var j = 0, numDefaultFonts = baseFonts.length; j < numDefaultFonts; j++) {\n var s = createSpanWithFonts(fontList[i], baseFonts[j]);\n fontsDiv.appendChild(s);\n fontSpans.push(s);\n }\n\n spans[fontList[i]] = fontSpans; // Stores {fontName : [spans for that font]}\n }\n\n return spans;\n }; // checks if a font is available\n\n\n var isFontAvailable = function (fontSpans) {\n var detected = false;\n\n for (var i = 0; i < baseFonts.length; i++) {\n detected = fontSpans[i].offsetWidth !== defaultWidth[baseFonts[i]] || fontSpans[i].offsetHeight !== defaultHeight[baseFonts[i]];\n\n if (detected) {\n return detected;\n }\n }\n\n return detected;\n }; // create spans for base fonts\n\n\n var baseFontsSpans = initializeBaseFontsSpans(); // add the spans to the DOM\n\n h.appendChild(baseFontsDiv); // get the default width for the three base fonts\n\n for (var index = 0, length = baseFonts.length; index < length; index++) {\n defaultWidth[baseFonts[index]] = baseFontsSpans[index].offsetWidth; // width for the default font\n\n defaultHeight[baseFonts[index]] = baseFontsSpans[index].offsetHeight; // height for the default font\n } // create spans for fonts to detect\n\n\n var fontsSpans = initializeFontsSpans(); // add all the spans to the DOM\n\n h.appendChild(fontsDiv); // check available fonts\n\n var available = [];\n\n for (var i = 0, l = fontList.length; i < l; i++) {\n if (isFontAvailable(fontsSpans[fontList[i]])) {\n available.push(fontList[i]);\n }\n } // remove spans from DOM\n\n\n h.removeChild(fontsDiv);\n h.removeChild(baseFontsDiv);\n done(available);\n };\n\n var pluginsComponent = function (done, options) {\n if (isIE()) {\n if (!options.plugins.excludeIE) {\n done(getIEPlugins(options));\n } else {\n done(options.EXCLUDED);\n }\n } else {\n done(getRegularPlugins(options));\n }\n };\n\n var getRegularPlugins = function (options) {\n if (navigator.plugins == null) {\n return options.NOT_AVAILABLE;\n }\n\n var plugins = []; // plugins isn't defined in Node envs.\n\n for (var i = 0, l = navigator.plugins.length; i < l; i++) {\n if (navigator.plugins[i]) {\n plugins.push(navigator.plugins[i]);\n }\n } // sorting plugins only for those user agents, that we know randomize the plugins\n // every time we try to enumerate them\n\n\n if (pluginsShouldBeSorted(options)) {\n plugins = plugins.sort(function (a, b) {\n if (a.name > b.name) {\n return 1;\n }\n\n if (a.name < b.name) {\n return -1;\n }\n\n return 0;\n });\n }\n\n return map(plugins, function (p) {\n var mimeTypes = map(p, function (mt) {\n return [mt.type, mt.suffixes];\n });\n return [p.name, p.description, mimeTypes];\n });\n };\n\n var getIEPlugins = function (options) {\n var result = [];\n\n if (Object.getOwnPropertyDescriptor && Object.getOwnPropertyDescriptor(window, 'ActiveXObject') || 'ActiveXObject' in window) {\n var names = ['AcroPDF.PDF', // Adobe PDF reader 7+\n 'Adodb.Stream', 'AgControl.AgControl', // Silverlight\n 'DevalVRXCtrl.DevalVRXCtrl.1', 'MacromediaFlashPaper.MacromediaFlashPaper', 'Msxml2.DOMDocument', 'Msxml2.XMLHTTP', 'PDF.PdfCtrl', // Adobe PDF reader 6 and earlier, brrr\n 'QuickTime.QuickTime', // QuickTime\n 'QuickTimeCheckObject.QuickTimeCheck.1', 'RealPlayer', 'RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)', 'RealVideo.RealVideo(tm) ActiveX Control (32-bit)', 'Scripting.Dictionary', 'SWCtl.SWCtl', // ShockWave player\n 'Shell.UIHelper', 'ShockwaveFlash.ShockwaveFlash', // flash plugin\n 'Skype.Detection', 'TDCCtl.TDCCtl', 'WMPlayer.OCX', // Windows media player\n 'rmocx.RealPlayer G2 Control', 'rmocx.RealPlayer G2 Control.1']; // starting to detect plugins in IE\n\n result = map(names, function (name) {\n try {\n // eslint-disable-next-line no-new\n new window.ActiveXObject(name);\n return name;\n } catch (e) {\n return options.ERROR;\n }\n });\n } else {\n result.push(options.NOT_AVAILABLE);\n }\n\n if (navigator.plugins) {\n result = result.concat(getRegularPlugins(options));\n }\n\n return result;\n };\n\n var pluginsShouldBeSorted = function (options) {\n var should = false;\n\n for (var i = 0, l = options.plugins.sortPluginsFor.length; i < l; i++) {\n var re = options.plugins.sortPluginsFor[i];\n\n if (navigator.userAgent.match(re)) {\n should = true;\n break;\n }\n }\n\n return should;\n };\n\n var touchSupportKey = function (done) {\n done(getTouchSupport());\n };\n\n var hardwareConcurrencyKey = function (done, options) {\n done(getHardwareConcurrency(options));\n };\n\n var hasSessionStorage = function (options) {\n try {\n return !!window.sessionStorage;\n } catch (e) {\n return options.ERROR; // SecurityError when referencing it means it exists\n }\n }; // https://bugzilla.mozilla.org/show_bug.cgi?id=781447\n\n\n var hasLocalStorage = function (options) {\n try {\n return !!window.localStorage;\n } catch (e) {\n return options.ERROR; // SecurityError when referencing it means it exists\n }\n };\n\n var hasIndexedDB = function (options) {\n // IE and Edge don't allow accessing indexedDB in private mode, therefore IE and Edge will have different\n // fingerprints in normal and private modes.\n if (isIEOrOldEdge()) {\n return options.EXCLUDED;\n }\n\n try {\n return !!window.indexedDB;\n } catch (e) {\n return options.ERROR; // SecurityError when referencing it means it exists\n }\n };\n\n var getHardwareConcurrency = function (options) {\n if (navigator.hardwareConcurrency) {\n return navigator.hardwareConcurrency;\n }\n\n return options.NOT_AVAILABLE;\n };\n\n var getNavigatorCpuClass = function (options) {\n return navigator.cpuClass || options.NOT_AVAILABLE;\n };\n\n var getNavigatorPlatform = function (options) {\n if (navigator.platform) {\n return navigator.platform;\n } else {\n return options.NOT_AVAILABLE;\n }\n };\n\n var getDoNotTrack = function (options) {\n if (navigator.doNotTrack) {\n return navigator.doNotTrack;\n } else if (navigator.msDoNotTrack) {\n return navigator.msDoNotTrack;\n } else if (window.doNotTrack) {\n return window.doNotTrack;\n } else {\n return options.NOT_AVAILABLE;\n }\n }; // This is a crude and primitive touch screen detection.\n // It's not possible to currently reliably detect the availability of a touch screen\n // with a JS, without actually subscribing to a touch event.\n // http://www.stucox.com/blog/you-cant-detect-a-touchscreen/\n // https://github.com/Modernizr/Modernizr/issues/548\n // method returns an array of 3 values:\n // maxTouchPoints, the success or failure of creating a TouchEvent,\n // and the availability of the 'ontouchstart' property\n\n\n var getTouchSupport = function () {\n var maxTouchPoints = 0;\n var touchEvent;\n\n if (typeof navigator.maxTouchPoints !== 'undefined') {\n maxTouchPoints = navigator.maxTouchPoints;\n } else if (typeof navigator.msMaxTouchPoints !== 'undefined') {\n maxTouchPoints = navigator.msMaxTouchPoints;\n }\n\n try {\n document.createEvent('TouchEvent');\n touchEvent = true;\n } catch (_) {\n touchEvent = false;\n }\n\n var touchStart = ('ontouchstart' in window);\n return [maxTouchPoints, touchEvent, touchStart];\n }; // https://www.browserleaks.com/canvas#how-does-it-work\n\n\n var getCanvasFp = function (options) {\n var result = []; // Very simple now, need to make it more complex (geo shapes etc)\n\n var canvas = document.createElement('canvas');\n canvas.width = 2000;\n canvas.height = 200;\n canvas.style.display = 'inline';\n var ctx = canvas.getContext('2d'); // detect browser support of canvas winding\n // http://blogs.adobe.com/webplatform/2013/01/30/winding-rules-in-canvas/\n // https://github.com/Modernizr/Modernizr/blob/master/feature-detects/canvas/winding.js\n\n ctx.rect(0, 0, 10, 10);\n ctx.rect(2, 2, 6, 6);\n result.push('canvas winding:' + (ctx.isPointInPath(5, 5, 'evenodd') === false ? 'yes' : 'no'));\n ctx.textBaseline = 'alphabetic';\n ctx.fillStyle = '#f60';\n ctx.fillRect(125, 1, 62, 20);\n ctx.fillStyle = '#069'; // https://github.com/fingerprintjs/fingerprintjs/issues/66\n\n if (options.dontUseFakeFontInCanvas) {\n ctx.font = '11pt Arial';\n } else {\n ctx.font = '11pt no-real-font-123';\n }\n\n ctx.fillText('Cwm fjordbank glyphs vext quiz, \\ud83d\\ude03', 2, 15);\n ctx.fillStyle = 'rgba(102, 204, 0, 0.2)';\n ctx.font = '18pt Arial';\n ctx.fillText('Cwm fjordbank glyphs vext quiz, \\ud83d\\ude03', 4, 45); // canvas blending\n // http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/\n // http://jsfiddle.net/NDYV8/16/\n\n ctx.globalCompositeOperation = 'multiply';\n ctx.fillStyle = 'rgb(255,0,255)';\n ctx.beginPath();\n ctx.arc(50, 50, 50, 0, Math.PI * 2, true);\n ctx.closePath();\n ctx.fill();\n ctx.fillStyle = 'rgb(0,255,255)';\n ctx.beginPath();\n ctx.arc(100, 50, 50, 0, Math.PI * 2, true);\n ctx.closePath();\n ctx.fill();\n ctx.fillStyle = 'rgb(255,255,0)';\n ctx.beginPath();\n ctx.arc(75, 100, 50, 0, Math.PI * 2, true);\n ctx.closePath();\n ctx.fill();\n ctx.fillStyle = 'rgb(255,0,255)'; // canvas winding\n // http://blogs.adobe.com/webplatform/2013/01/30/winding-rules-in-canvas/\n // http://jsfiddle.net/NDYV8/19/\n\n ctx.arc(75, 75, 75, 0, Math.PI * 2, true);\n ctx.arc(75, 75, 25, 0, Math.PI * 2, true);\n ctx.fill('evenodd');\n\n if (canvas.toDataURL) {\n result.push('canvas fp:' + canvas.toDataURL());\n }\n\n return result;\n };\n\n var getWebglFp = function () {\n var gl;\n\n var fa2s = function (fa) {\n gl.clearColor(0.0, 0.0, 0.0, 1.0);\n gl.enable(gl.DEPTH_TEST);\n gl.depthFunc(gl.LEQUAL);\n gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);\n return '[' + fa[0] + ', ' + fa[1] + ']';\n };\n\n var maxAnisotropy = function (gl) {\n var ext = gl.getExtension('EXT_texture_filter_anisotropic') || gl.getExtension('WEBKIT_EXT_texture_filter_anisotropic') || gl.getExtension('MOZ_EXT_texture_filter_anisotropic');\n\n if (ext) {\n var anisotropy = gl.getParameter(ext.MAX_TEXTURE_MAX_ANISOTROPY_EXT);\n\n if (anisotropy === 0) {\n anisotropy = 2;\n }\n\n return anisotropy;\n } else {\n return null;\n }\n };\n\n gl = getWebglCanvas();\n\n if (!gl) {\n return null;\n }\n\n try {\n // WebGL fingerprinting is a combination of techniques, found in MaxMind antifraud script & Augur fingerprinting.\n // First it draws a gradient object with shaders and convers the image to the Base64 string.\n // Then it enumerates all WebGL extensions & capabilities and appends them to the Base64 string, resulting in a huge WebGL string, potentially very unique on each device\n // Since iOS supports webgl starting from version 8.1 and 8.1 runs on several graphics chips, the results may be different across ios devices, but we need to verify it.\n var result = [];\n var vShaderTemplate = 'attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}';\n var fShaderTemplate = 'precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}';\n var vertexPosBuffer = gl.createBuffer();\n gl.bindBuffer(gl.ARRAY_BUFFER, vertexPosBuffer);\n var vertices = new Float32Array([-0.2, -0.9, 0, 0.4, -0.26, 0, 0, 0.732134444, 0]);\n gl.bufferData(gl.ARRAY_BUFFER, vertices, gl.STATIC_DRAW);\n vertexPosBuffer.itemSize = 3;\n vertexPosBuffer.numItems = 3;\n var program = gl.createProgram();\n var vshader = gl.createShader(gl.VERTEX_SHADER);\n gl.shaderSource(vshader, vShaderTemplate);\n gl.compileShader(vshader);\n var fshader = gl.createShader(gl.FRAGMENT_SHADER);\n gl.shaderSource(fshader, fShaderTemplate);\n gl.compileShader(fshader);\n gl.attachShader(program, vshader);\n gl.attachShader(program, fshader);\n gl.linkProgram(program);\n gl.useProgram(program);\n program.vertexPosAttrib = gl.getAttribLocation(program, 'attrVertex');\n program.offsetUniform = gl.getUniformLocation(program, 'uniformOffset');\n gl.enableVertexAttribArray(program.vertexPosArray);\n gl.vertexAttribPointer(program.vertexPosAttrib, vertexPosBuffer.itemSize, gl.FLOAT, !1, 0, 0);\n gl.uniform2f(program.offsetUniform, 1, 1);\n gl.drawArrays(gl.TRIANGLE_STRIP, 0, vertexPosBuffer.numItems);\n\n try {\n result.push(gl.canvas.toDataURL());\n } catch (e) {\n /* .toDataURL may be absent or broken (blocked by extension) */\n }\n\n result.push('extensions:' + (gl.getSupportedExtensions() || []).join(';'));\n result.push('webgl aliased line width range:' + fa2s(gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE)));\n result.push('webgl aliased point size range:' + fa2s(gl.getParameter(gl.ALIASED_POINT_SIZE_RANGE)));\n result.push('webgl alpha bits:' + gl.getParameter(gl.ALPHA_BITS));\n result.push('webgl antialiasing:' + (gl.getContextAttributes().antialias ? 'yes' : 'no'));\n result.push('webgl blue bits:' + gl.getParameter(gl.BLUE_BITS));\n result.push('webgl depth bits:' + gl.getParameter(gl.DEPTH_BITS));\n result.push('webgl green bits:' + gl.getParameter(gl.GREEN_BITS));\n result.push('webgl max anisotropy:' + maxAnisotropy(gl));\n result.push('webgl max combined texture image units:' + gl.getParameter(gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS));\n result.push('webgl max cube map texture size:' + gl.getParameter(gl.MAX_CUBE_MAP_TEXTURE_SIZE));\n result.push('webgl max fragment uniform vectors:' + gl.getParameter(gl.MAX_FRAGMENT_UNIFORM_VECTORS));\n result.push('webgl max render buffer size:' + gl.getParameter(gl.MAX_RENDERBUFFER_SIZE));\n result.push('webgl max texture image units:' + gl.getParameter(gl.MAX_TEXTURE_IMAGE_UNITS));\n result.push('webgl max texture size:' + gl.getParameter(gl.MAX_TEXTURE_SIZE));\n result.push('webgl max varying vectors:' + gl.getParameter(gl.MAX_VARYING_VECTORS));\n result.push('webgl max vertex attribs:' + gl.getParameter(gl.MAX_VERTEX_ATTRIBS));\n result.push('webgl max vertex texture image units:' + gl.getParameter(gl.MAX_VERTEX_TEXTURE_IMAGE_UNITS));\n result.push('webgl max vertex uniform vectors:' + gl.getParameter(gl.MAX_VERTEX_UNIFORM_VECTORS));\n result.push('webgl max viewport dims:' + fa2s(gl.getParameter(gl.MAX_VIEWPORT_DIMS)));\n result.push('webgl red bits:' + gl.getParameter(gl.RED_BITS));\n result.push('webgl renderer:' + gl.getParameter(gl.RENDERER));\n result.push('webgl shading language version:' + gl.getParameter(gl.SHADING_LANGUAGE_VERSION));\n result.push('webgl stencil bits:' + gl.getParameter(gl.STENCIL_BITS));\n result.push('webgl vendor:' + gl.getParameter(gl.VENDOR));\n result.push('webgl version:' + gl.getParameter(gl.VERSION));\n\n try {\n // Add the unmasked vendor and unmasked renderer if the debug_renderer_info extension is available\n var extensionDebugRendererInfo = gl.getExtension('WEBGL_debug_renderer_info');\n\n if (extensionDebugRendererInfo) {\n result.push('webgl unmasked vendor:' + gl.getParameter(extensionDebugRendererInfo.UNMASKED_VENDOR_WEBGL));\n result.push('webgl unmasked renderer:' + gl.getParameter(extensionDebugRendererInfo.UNMASKED_RENDERER_WEBGL));\n }\n } catch (e) {\n /* squelch */\n }\n\n if (!gl.getShaderPrecisionFormat) {\n return result;\n }\n\n each(['FLOAT', 'INT'], function (numType) {\n each(['VERTEX', 'FRAGMENT'], function (shader) {\n each(['HIGH', 'MEDIUM', 'LOW'], function (numSize) {\n each(['precision', 'rangeMin', 'rangeMax'], function (key) {\n var format = gl.getShaderPrecisionFormat(gl[shader + '_SHADER'], gl[numSize + '_' + numType])[key];\n\n if (key !== 'precision') {\n key = 'precision ' + key;\n }\n\n var line = ['webgl ', shader.toLowerCase(), ' shader ', numSize.toLowerCase(), ' ', numType.toLowerCase(), ' ', key, ':', format].join('');\n result.push(line);\n });\n });\n });\n });\n return result;\n } finally {\n try {\n loseWebglContext(gl);\n } catch (e) {\n /* Let the original error be thrown */\n }\n }\n };\n\n var getWebglVendorAndRenderer = function () {\n /* This a subset of the WebGL fingerprint with a lot of entropy, while being reasonably browser-independent */\n try {\n var glContext = getWebglCanvas();\n var extensionDebugRendererInfo = glContext.getExtension('WEBGL_debug_renderer_info');\n return glContext.getParameter(extensionDebugRendererInfo.UNMASKED_VENDOR_WEBGL) + '~' + glContext.getParameter(extensionDebugRendererInfo.UNMASKED_RENDERER_WEBGL);\n } catch (e) {\n return null;\n } finally {\n try {\n loseWebglContext(glContext);\n } catch (e) {\n /* Keep the original result */\n }\n }\n };\n\n var getAdBlock = function () {\n var ads = document.createElement('div');\n ads.innerHTML = ' ';\n ads.className = 'adsbox';\n var result = false;\n\n try {\n // body may not exist, that's why we need try/catch\n document.body.appendChild(ads);\n result = document.getElementsByClassName('adsbox')[0].offsetHeight === 0;\n document.body.removeChild(ads);\n } catch (e) {\n result = false;\n }\n\n return result;\n };\n\n var getHasLiedLanguages = function () {\n // We check if navigator.language is equal to the first language of navigator.languages\n // navigator.languages is undefined on IE11 (and potentially older IEs)\n if (typeof navigator.languages !== 'undefined') {\n try {\n var firstLanguages = navigator.languages[0].substr(0, 2);\n\n if (firstLanguages !== navigator.language.substr(0, 2)) {\n return true;\n }\n } catch (err) {\n return true;\n }\n }\n\n return false;\n };\n\n var getHasLiedResolution = function () {\n return window.screen.width < window.screen.availWidth || window.screen.height < window.screen.availHeight;\n };\n\n var getHasLiedOs = function () {\n var userAgent = navigator.userAgent.toLowerCase();\n var oscpu = navigator.oscpu;\n var platform = navigator.platform.toLowerCase();\n var os; // We extract the OS from the user agent (respect the order of the if else if statement)\n\n if (userAgent.indexOf('windows phone') >= 0) {\n os = 'Windows Phone';\n } else if (userAgent.indexOf('windows') >= 0 || userAgent.indexOf('win16') >= 0 || userAgent.indexOf('win32') >= 0 || userAgent.indexOf('win64') >= 0 || userAgent.indexOf('win95') >= 0 || userAgent.indexOf('win98') >= 0 || userAgent.indexOf('winnt') >= 0 || userAgent.indexOf('wow64') >= 0) {\n os = 'Windows';\n } else if (userAgent.indexOf('android') >= 0) {\n os = 'Android';\n } else if (userAgent.indexOf('linux') >= 0 || userAgent.indexOf('cros') >= 0 || userAgent.indexOf('x11') >= 0) {\n os = 'Linux';\n } else if (userAgent.indexOf('iphone') >= 0 || userAgent.indexOf('ipad') >= 0 || userAgent.indexOf('ipod') >= 0 || userAgent.indexOf('crios') >= 0 || userAgent.indexOf('fxios') >= 0) {\n os = 'iOS';\n } else if (userAgent.indexOf('macintosh') >= 0 || userAgent.indexOf('mac_powerpc)') >= 0) {\n os = 'Mac';\n } else {\n os = 'Other';\n } // We detect if the person uses a touch device\n\n\n var mobileDevice = 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;\n\n if (mobileDevice && os !== 'Windows' && os !== 'Windows Phone' && os !== 'Android' && os !== 'iOS' && os !== 'Other' && userAgent.indexOf('cros') === -1) {\n return true;\n } // We compare oscpu with the OS extracted from the UA\n\n\n if (typeof oscpu !== 'undefined') {\n oscpu = oscpu.toLowerCase();\n\n if (oscpu.indexOf('win') >= 0 && os !== 'Windows' && os !== 'Windows Phone') {\n return true;\n } else if (oscpu.indexOf('linux') >= 0 && os !== 'Linux' && os !== 'Android') {\n return true;\n } else if (oscpu.indexOf('mac') >= 0 && os !== 'Mac' && os !== 'iOS') {\n return true;\n } else if ((oscpu.indexOf('win') === -1 && oscpu.indexOf('linux') === -1 && oscpu.indexOf('mac') === -1) !== (os === 'Other')) {\n return true;\n }\n } // We compare platform with the OS extracted from the UA\n\n\n if (platform.indexOf('win') >= 0 && os !== 'Windows' && os !== 'Windows Phone') {\n return true;\n } else if ((platform.indexOf('linux') >= 0 || platform.indexOf('android') >= 0 || platform.indexOf('pike') >= 0) && os !== 'Linux' && os !== 'Android') {\n return true;\n } else if ((platform.indexOf('mac') >= 0 || platform.indexOf('ipad') >= 0 || platform.indexOf('ipod') >= 0 || platform.indexOf('iphone') >= 0) && os !== 'Mac' && os !== 'iOS') {\n return true;\n } else if (platform.indexOf('arm') >= 0 && os === 'Windows Phone') {\n return false;\n } else if (platform.indexOf('pike') >= 0 && userAgent.indexOf('opera mini') >= 0) {\n return false;\n } else {\n var platformIsOther = platform.indexOf('win') < 0 && platform.indexOf('linux') < 0 && platform.indexOf('mac') < 0 && platform.indexOf('iphone') < 0 && platform.indexOf('ipad') < 0 && platform.indexOf('ipod') < 0;\n\n if (platformIsOther !== (os === 'Other')) {\n return true;\n }\n }\n\n return typeof navigator.plugins === 'undefined' && os !== 'Windows' && os !== 'Windows Phone';\n };\n\n var getHasLiedBrowser = function () {\n var userAgent = navigator.userAgent.toLowerCase();\n var productSub = navigator.productSub; // we extract the browser from the user agent (respect the order of the tests)\n\n var browser;\n\n if (userAgent.indexOf('edge/') >= 0 || userAgent.indexOf('iemobile/') >= 0) {\n // Unreliable, different versions use EdgeHTML, Webkit, Blink, etc.\n return false;\n } else if (userAgent.indexOf('opera mini') >= 0) {\n // Unreliable, different modes use Presto, WebView, Webkit, etc.\n return false;\n } else if (userAgent.indexOf('firefox/') >= 0) {\n browser = 'Firefox';\n } else if (userAgent.indexOf('opera/') >= 0 || userAgent.indexOf(' opr/') >= 0) {\n browser = 'Opera';\n } else if (userAgent.indexOf('chrome/') >= 0) {\n browser = 'Chrome';\n } else if (userAgent.indexOf('safari/') >= 0) {\n if (userAgent.indexOf('android 1.') >= 0 || userAgent.indexOf('android 2.') >= 0 || userAgent.indexOf('android 3.') >= 0 || userAgent.indexOf('android 4.') >= 0) {\n browser = 'AOSP';\n } else {\n browser = 'Safari';\n }\n } else if (userAgent.indexOf('trident/') >= 0) {\n browser = 'Internet Explorer';\n } else {\n browser = 'Other';\n }\n\n if ((browser === 'Chrome' || browser === 'Safari' || browser === 'Opera') && productSub !== '20030107') {\n return true;\n } // eslint-disable-next-line no-eval\n\n\n var tempRes = eval.toString().length;\n\n if (tempRes === 37 && browser !== 'Safari' && browser !== 'Firefox' && browser !== 'Other') {\n return true;\n } else if (tempRes === 39 && browser !== 'Internet Explorer' && browser !== 'Other') {\n return true;\n } else if (tempRes === 33 && browser !== 'Chrome' && browser !== 'AOSP' && browser !== 'Opera' && browser !== 'Other') {\n return true;\n } // We create an error to see how it is handled\n\n\n var errFirefox;\n\n try {\n // eslint-disable-next-line no-throw-literal\n throw 'a';\n } catch (err) {\n try {\n err.toSource();\n errFirefox = true;\n } catch (errOfErr) {\n errFirefox = false;\n }\n }\n\n return errFirefox && browser !== 'Firefox' && browser !== 'Other';\n };\n\n var isCanvasSupported = function () {\n var elem = document.createElement('canvas');\n return !!(elem.getContext && elem.getContext('2d'));\n };\n\n var isWebGlSupported = function () {\n // code taken from Modernizr\n if (!isCanvasSupported() || !window.WebGLRenderingContext) {\n return false;\n }\n\n var glContext = getWebglCanvas();\n\n if (glContext) {\n try {\n loseWebglContext(glContext);\n } catch (e) {\n /* The try block is optional, so let the main algorithm continue */\n }\n\n return true;\n } else {\n return false;\n }\n };\n\n var isIE = function () {\n if (navigator.appName === 'Microsoft Internet Explorer') {\n return true;\n } else if (navigator.appName === 'Netscape' && /Trident/.test(navigator.userAgent)) {\n // IE 11\n return true;\n }\n\n return false;\n };\n\n var isIEOrOldEdge = function () {\n // The properties are checked to be in IE 10, IE 11 and Edge 18 and not to be in other browsers\n return ('msWriteProfilerMark' in window) + ('msLaunchUri' in navigator) + ('msSaveBlob' in navigator) >= 2;\n };\n\n var hasSwfObjectLoaded = function () {\n return typeof window.swfobject !== 'undefined';\n };\n\n var hasMinFlashInstalled = function () {\n return window.swfobject.hasFlashPlayerVersion('9.0.0');\n };\n\n var addFlashDivNode = function (options) {\n var node = document.createElement('div');\n node.setAttribute('id', options.fonts.swfContainerId);\n document.body.appendChild(node);\n };\n\n var loadSwfAndDetectFonts = function (done, options) {\n var hiddenCallback = '___fp_swf_loaded';\n\n window[hiddenCallback] = function (fonts) {\n done(fonts);\n };\n\n var id = options.fonts.swfContainerId;\n addFlashDivNode();\n var flashvars = {\n onReady: hiddenCallback\n };\n var flashparams = {\n allowScriptAccess: 'always',\n menu: 'false'\n };\n window.swfobject.embedSWF(options.fonts.swfPath, id, '1', '1', '9.0.0', false, flashvars, flashparams, {});\n };\n\n var getWebglCanvas = function () {\n var canvas = document.createElement('canvas');\n var gl = null;\n\n try {\n gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');\n } catch (e) {\n /* squelch */\n }\n\n if (!gl) {\n gl = null;\n }\n\n return gl;\n };\n\n var loseWebglContext = function (context) {\n var loseContextExtension = context.getExtension('WEBGL_lose_context');\n\n if (loseContextExtension != null) {\n loseContextExtension.loseContext();\n }\n };\n\n var components = [{\n key: 'userAgent',\n getData: UserAgent\n }, {\n key: 'webdriver',\n getData: webdriver\n }, {\n key: 'language',\n getData: languageKey\n }, {\n key: 'colorDepth',\n getData: colorDepthKey\n }, {\n key: 'deviceMemory',\n getData: deviceMemoryKey\n }, {\n key: 'pixelRatio',\n getData: pixelRatioKey\n }, {\n key: 'hardwareConcurrency',\n getData: hardwareConcurrencyKey\n }, {\n key: 'screenResolution',\n getData: screenResolutionKey\n }, {\n key: 'availableScreenResolution',\n getData: availableScreenResolutionKey\n }, {\n key: 'timezoneOffset',\n getData: timezoneOffset\n }, {\n key: 'timezone',\n getData: timezone\n }, {\n key: 'sessionStorage',\n getData: sessionStorageKey\n }, {\n key: 'localStorage',\n getData: localStorageKey\n }, {\n key: 'indexedDb',\n getData: indexedDbKey\n }, {\n key: 'addBehavior',\n getData: addBehaviorKey\n }, {\n key: 'openDatabase',\n getData: openDatabaseKey\n }, {\n key: 'cpuClass',\n getData: cpuClassKey\n }, {\n key: 'platform',\n getData: platformKey\n }, {\n key: 'doNotTrack',\n getData: doNotTrackKey\n }, {\n key: 'plugins',\n getData: pluginsComponent\n }, {\n key: 'canvas',\n getData: canvasKey\n }, {\n key: 'webgl',\n getData: webglKey\n }, {\n key: 'webglVendorAndRenderer',\n getData: webglVendorAndRendererKey\n }, {\n key: 'adBlock',\n getData: adBlockKey\n }, {\n key: 'hasLiedLanguages',\n getData: hasLiedLanguagesKey\n }, {\n key: 'hasLiedResolution',\n getData: hasLiedResolutionKey\n }, {\n key: 'hasLiedOs',\n getData: hasLiedOsKey\n }, {\n key: 'hasLiedBrowser',\n getData: hasLiedBrowserKey\n }, {\n key: 'touchSupport',\n getData: touchSupportKey\n }, {\n key: 'fonts',\n getData: jsFontsKey,\n pauseBefore: true\n }, {\n key: 'fontsFlash',\n getData: flashFontsKey,\n pauseBefore: true\n }, {\n key: 'audio',\n getData: audioKey\n }, {\n key: 'enumerateDevices',\n getData: enumerateDevicesKey\n }];\n\n var Fingerprint2 = function (options) {\n throw new Error(\"'new Fingerprint()' is deprecated, see https://github.com/fingerprintjs/fingerprintjs#upgrade-guide-from-182-to-200\");\n };\n\n Fingerprint2.get = function (options, callback) {\n if (!callback) {\n callback = options;\n options = {};\n } else if (!options) {\n options = {};\n }\n\n extendSoft(options, defaultOptions);\n options.components = options.extraComponents.concat(components);\n var keys = {\n data: [],\n addPreprocessedComponent: function (key, value) {\n if (typeof options.preprocessor === 'function') {\n value = options.preprocessor(key, value);\n }\n\n keys.data.push({\n key: key,\n value: value\n });\n }\n };\n var i = -1;\n\n var chainComponents = function (alreadyWaited) {\n i += 1;\n\n if (i >= options.components.length) {\n // on finish\n callback(keys.data);\n return;\n }\n\n var component = options.components[i];\n\n if (options.excludes[component.key]) {\n chainComponents(false); // skip\n\n return;\n }\n\n if (!alreadyWaited && component.pauseBefore) {\n i -= 1;\n setTimeout(function () {\n chainComponents(true);\n }, 1);\n return;\n }\n\n try {\n component.getData(function (value) {\n keys.addPreprocessedComponent(component.key, value);\n chainComponents(false);\n }, options);\n } catch (error) {\n // main body error\n keys.addPreprocessedComponent(component.key, String(error));\n chainComponents(false);\n }\n };\n\n chainComponents(false);\n };\n\n Fingerprint2.getPromise = function (options) {\n return new Promise(function (resolve, reject) {\n Fingerprint2.get(options, resolve);\n });\n };\n\n Fingerprint2.getV18 = function (options, callback) {\n if (callback == null) {\n callback = options;\n options = {};\n }\n\n return Fingerprint2.get(options, function (components) {\n var newComponents = [];\n\n for (var i = 0; i < components.length; i++) {\n var component = components[i];\n\n if (component.value === (options.NOT_AVAILABLE || 'not available')) {\n newComponents.push({\n key: component.key,\n value: 'unknown'\n });\n } else if (component.key === 'plugins') {\n newComponents.push({\n key: 'plugins',\n value: map(component.value, function (p) {\n var mimeTypes = map(p[2], function (mt) {\n if (mt.join) {\n return mt.join('~');\n }\n\n return mt;\n }).join(',');\n return [p[0], p[1], mimeTypes].join('::');\n })\n });\n } else if (['canvas', 'webgl'].indexOf(component.key) !== -1 && Array.isArray(component.value)) {\n // sometimes WebGL returns error in headless browsers (during CI testing for example)\n // so we need to join only if the values are array\n newComponents.push({\n key: component.key,\n value: component.value.join('~')\n });\n } else if (['sessionStorage', 'localStorage', 'indexedDb', 'addBehavior', 'openDatabase'].indexOf(component.key) !== -1) {\n if (component.value) {\n newComponents.push({\n key: component.key,\n value: 1\n });\n } else {\n // skip\n continue;\n }\n } else {\n if (component.value) {\n newComponents.push(component.value.join ? {\n key: component.key,\n value: component.value.join(';')\n } : component);\n } else {\n newComponents.push({\n key: component.key,\n value: component.value\n });\n }\n }\n }\n\n var murmur = x64hash128(map(newComponents, function (component) {\n return component.value;\n }).join('~~~'), 31);\n callback(murmur, newComponents);\n });\n };\n\n Fingerprint2.x64hash128 = x64hash128;\n Fingerprint2.VERSION = '2.1.5';\n return Fingerprint2;\n});\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/@fingerprintjs/fingerprintjs/fingerprint2.js?");
|
|
704
|
+
"use strict";
|
|
705
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"componentsToDebugString\", function() { return componentsToDebugString; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getFullscreenElement\", function() { return getFullscreenElement; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getScreenFrame\", function() { return getScreenFrame; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"hashComponents\", function() { return hashComponents; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isAndroid\", function() { return isAndroid; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isChromium\", function() { return isChromium; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isDesktopSafari\", function() { return isDesktopSafari; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isEdgeHTML\", function() { return isEdgeHTML; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isGecko\", function() { return isGecko; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isTrident\", function() { return isTrident; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isWebKit\", function() { return isWebKit; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"load\", function() { return load; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadSources\", function() { return loadSources; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"murmurX64Hash128\", function() { return murmurX64Hash128; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"prepareForSources\", function() { return prepareForSources; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"sources\", function() { return sources; });\n/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ \"./node_modules/tslib/tslib.es6.js\");\n/**\n * FingerprintJS v3.3.2 - Copyright (c) FingerprintJS, Inc, 2021 (https://fingerprintjs.com)\n * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.\n *\n * This software contains code from open-source projects:\n * MurmurHash3 by Karan Lyons (https://github.com/karanlyons/murmurHash3.js)\n */\n\nvar version = \"3.3.2\";\n\nfunction wait(durationMs, resolveWith) {\n return new Promise(function (resolve) {\n return setTimeout(resolve, durationMs, resolveWith);\n });\n}\n\nfunction requestIdleCallbackIfAvailable(fallbackTimeout, deadlineTimeout) {\n if (deadlineTimeout === void 0) {\n deadlineTimeout = Infinity;\n }\n\n var requestIdleCallback = window.requestIdleCallback;\n\n if (requestIdleCallback) {\n // The function `requestIdleCallback` loses the binding to `window` here.\n // `globalThis` isn't always equal `window` (see https://github.com/fingerprintjs/fingerprintjs/issues/683).\n // Therefore, an error can occur. `call(window,` prevents the error.\n return new Promise(function (resolve) {\n return requestIdleCallback.call(window, function () {\n return resolve();\n }, {\n timeout: deadlineTimeout\n });\n });\n } else {\n return wait(Math.min(fallbackTimeout, deadlineTimeout));\n }\n}\n\nfunction isPromise(value) {\n return value && typeof value.then === 'function';\n}\n/**\n * Calls a maybe asynchronous function without creating microtasks when the function is synchronous.\n * Catches errors in both cases.\n *\n * If just you run a code like this:\n * ```\n * console.time('Action duration')\n * await action()\n * console.timeEnd('Action duration')\n * ```\n * The synchronous function time can be measured incorrectly because another microtask may run before the `await`\n * returns the control back to the code.\n */\n\n\nfunction awaitIfAsync(action, callback) {\n try {\n var returnedValue = action();\n\n if (isPromise(returnedValue)) {\n returnedValue.then(function (result) {\n return callback(true, result);\n }, function (error) {\n return callback(false, error);\n });\n } else {\n callback(true, returnedValue);\n }\n } catch (error) {\n callback(false, error);\n }\n}\n/**\n * If you run many synchronous tasks without using this function, the JS main loop will be busy and asynchronous tasks\n * (e.g. completing a network request, rendering the page) won't be able to happen.\n * This function allows running many synchronous tasks such way that asynchronous tasks can run too in background.\n */\n\n\nfunction forEachWithBreaks(items, callback, loopReleaseInterval) {\n if (loopReleaseInterval === void 0) {\n loopReleaseInterval = 16;\n }\n\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function () {\n var lastLoopReleaseTime, i, now;\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_a) {\n switch (_a.label) {\n case 0:\n lastLoopReleaseTime = Date.now();\n i = 0;\n _a.label = 1;\n\n case 1:\n if (!(i < items.length)) return [3\n /*break*/\n , 4];\n callback(items[i], i);\n now = Date.now();\n if (!(now >= lastLoopReleaseTime + loopReleaseInterval)) return [3\n /*break*/\n , 3];\n lastLoopReleaseTime = now; // Allows asynchronous actions and microtasks to happen\n\n return [4\n /*yield*/\n , wait(0)];\n\n case 2:\n // Allows asynchronous actions and microtasks to happen\n _a.sent();\n\n _a.label = 3;\n\n case 3:\n ++i;\n return [3\n /*break*/\n , 1];\n\n case 4:\n return [2\n /*return*/\n ];\n }\n });\n });\n}\n/*\n * Taken from https://github.com/karanlyons/murmurHash3.js/blob/a33d0723127e2e5415056c455f8aed2451ace208/murmurHash3.js\n */\n//\n// Given two 64bit ints (as an array of two 32bit ints) returns the two\n// added together as a 64bit int (as an array of two 32bit ints).\n//\n\n\nfunction x64Add(m, n) {\n m = [m[0] >>> 16, m[0] & 0xffff, m[1] >>> 16, m[1] & 0xffff];\n n = [n[0] >>> 16, n[0] & 0xffff, n[1] >>> 16, n[1] & 0xffff];\n var o = [0, 0, 0, 0];\n o[3] += m[3] + n[3];\n o[2] += o[3] >>> 16;\n o[3] &= 0xffff;\n o[2] += m[2] + n[2];\n o[1] += o[2] >>> 16;\n o[2] &= 0xffff;\n o[1] += m[1] + n[1];\n o[0] += o[1] >>> 16;\n o[1] &= 0xffff;\n o[0] += m[0] + n[0];\n o[0] &= 0xffff;\n return [o[0] << 16 | o[1], o[2] << 16 | o[3]];\n} //\n// Given two 64bit ints (as an array of two 32bit ints) returns the two\n// multiplied together as a 64bit int (as an array of two 32bit ints).\n//\n\n\nfunction x64Multiply(m, n) {\n m = [m[0] >>> 16, m[0] & 0xffff, m[1] >>> 16, m[1] & 0xffff];\n n = [n[0] >>> 16, n[0] & 0xffff, n[1] >>> 16, n[1] & 0xffff];\n var o = [0, 0, 0, 0];\n o[3] += m[3] * n[3];\n o[2] += o[3] >>> 16;\n o[3] &= 0xffff;\n o[2] += m[2] * n[3];\n o[1] += o[2] >>> 16;\n o[2] &= 0xffff;\n o[2] += m[3] * n[2];\n o[1] += o[2] >>> 16;\n o[2] &= 0xffff;\n o[1] += m[1] * n[3];\n o[0] += o[1] >>> 16;\n o[1] &= 0xffff;\n o[1] += m[2] * n[2];\n o[0] += o[1] >>> 16;\n o[1] &= 0xffff;\n o[1] += m[3] * n[1];\n o[0] += o[1] >>> 16;\n o[1] &= 0xffff;\n o[0] += m[0] * n[3] + m[1] * n[2] + m[2] * n[1] + m[3] * n[0];\n o[0] &= 0xffff;\n return [o[0] << 16 | o[1], o[2] << 16 | o[3]];\n} //\n// Given a 64bit int (as an array of two 32bit ints) and an int\n// representing a number of bit positions, returns the 64bit int (as an\n// array of two 32bit ints) rotated left by that number of positions.\n//\n\n\nfunction x64Rotl(m, n) {\n n %= 64;\n\n if (n === 32) {\n return [m[1], m[0]];\n } else if (n < 32) {\n return [m[0] << n | m[1] >>> 32 - n, m[1] << n | m[0] >>> 32 - n];\n } else {\n n -= 32;\n return [m[1] << n | m[0] >>> 32 - n, m[0] << n | m[1] >>> 32 - n];\n }\n} //\n// Given a 64bit int (as an array of two 32bit ints) and an int\n// representing a number of bit positions, returns the 64bit int (as an\n// array of two 32bit ints) shifted left by that number of positions.\n//\n\n\nfunction x64LeftShift(m, n) {\n n %= 64;\n\n if (n === 0) {\n return m;\n } else if (n < 32) {\n return [m[0] << n | m[1] >>> 32 - n, m[1] << n];\n } else {\n return [m[1] << n - 32, 0];\n }\n} //\n// Given two 64bit ints (as an array of two 32bit ints) returns the two\n// xored together as a 64bit int (as an array of two 32bit ints).\n//\n\n\nfunction x64Xor(m, n) {\n return [m[0] ^ n[0], m[1] ^ n[1]];\n} //\n// Given a block, returns murmurHash3's final x64 mix of that block.\n// (`[0, h[0] >>> 1]` is a 33 bit unsigned right shift. This is the\n// only place where we need to right shift 64bit ints.)\n//\n\n\nfunction x64Fmix(h) {\n h = x64Xor(h, [0, h[0] >>> 1]);\n h = x64Multiply(h, [0xff51afd7, 0xed558ccd]);\n h = x64Xor(h, [0, h[0] >>> 1]);\n h = x64Multiply(h, [0xc4ceb9fe, 0x1a85ec53]);\n h = x64Xor(h, [0, h[0] >>> 1]);\n return h;\n} //\n// Given a string and an optional seed as an int, returns a 128 bit\n// hash using the x64 flavor of MurmurHash3, as an unsigned hex.\n//\n\n\nfunction x64hash128(key, seed) {\n key = key || '';\n seed = seed || 0;\n var remainder = key.length % 16;\n var bytes = key.length - remainder;\n var h1 = [0, seed];\n var h2 = [0, seed];\n var k1 = [0, 0];\n var k2 = [0, 0];\n var c1 = [0x87c37b91, 0x114253d5];\n var c2 = [0x4cf5ad43, 0x2745937f];\n var i;\n\n for (i = 0; i < bytes; i = i + 16) {\n k1 = [key.charCodeAt(i + 4) & 0xff | (key.charCodeAt(i + 5) & 0xff) << 8 | (key.charCodeAt(i + 6) & 0xff) << 16 | (key.charCodeAt(i + 7) & 0xff) << 24, key.charCodeAt(i) & 0xff | (key.charCodeAt(i + 1) & 0xff) << 8 | (key.charCodeAt(i + 2) & 0xff) << 16 | (key.charCodeAt(i + 3) & 0xff) << 24];\n k2 = [key.charCodeAt(i + 12) & 0xff | (key.charCodeAt(i + 13) & 0xff) << 8 | (key.charCodeAt(i + 14) & 0xff) << 16 | (key.charCodeAt(i + 15) & 0xff) << 24, key.charCodeAt(i + 8) & 0xff | (key.charCodeAt(i + 9) & 0xff) << 8 | (key.charCodeAt(i + 10) & 0xff) << 16 | (key.charCodeAt(i + 11) & 0xff) << 24];\n k1 = x64Multiply(k1, c1);\n k1 = x64Rotl(k1, 31);\n k1 = x64Multiply(k1, c2);\n h1 = x64Xor(h1, k1);\n h1 = x64Rotl(h1, 27);\n h1 = x64Add(h1, h2);\n h1 = x64Add(x64Multiply(h1, [0, 5]), [0, 0x52dce729]);\n k2 = x64Multiply(k2, c2);\n k2 = x64Rotl(k2, 33);\n k2 = x64Multiply(k2, c1);\n h2 = x64Xor(h2, k2);\n h2 = x64Rotl(h2, 31);\n h2 = x64Add(h2, h1);\n h2 = x64Add(x64Multiply(h2, [0, 5]), [0, 0x38495ab5]);\n }\n\n k1 = [0, 0];\n k2 = [0, 0];\n\n switch (remainder) {\n case 15:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 14)], 48));\n // fallthrough\n\n case 14:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 13)], 40));\n // fallthrough\n\n case 13:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 12)], 32));\n // fallthrough\n\n case 12:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 11)], 24));\n // fallthrough\n\n case 11:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 10)], 16));\n // fallthrough\n\n case 10:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 9)], 8));\n // fallthrough\n\n case 9:\n k2 = x64Xor(k2, [0, key.charCodeAt(i + 8)]);\n k2 = x64Multiply(k2, c2);\n k2 = x64Rotl(k2, 33);\n k2 = x64Multiply(k2, c1);\n h2 = x64Xor(h2, k2);\n // fallthrough\n\n case 8:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 7)], 56));\n // fallthrough\n\n case 7:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 6)], 48));\n // fallthrough\n\n case 6:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 5)], 40));\n // fallthrough\n\n case 5:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 4)], 32));\n // fallthrough\n\n case 4:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 3)], 24));\n // fallthrough\n\n case 3:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 2)], 16));\n // fallthrough\n\n case 2:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 1)], 8));\n // fallthrough\n\n case 1:\n k1 = x64Xor(k1, [0, key.charCodeAt(i)]);\n k1 = x64Multiply(k1, c1);\n k1 = x64Rotl(k1, 31);\n k1 = x64Multiply(k1, c2);\n h1 = x64Xor(h1, k1);\n // fallthrough\n }\n\n h1 = x64Xor(h1, [0, key.length]);\n h2 = x64Xor(h2, [0, key.length]);\n h1 = x64Add(h1, h2);\n h2 = x64Add(h2, h1);\n h1 = x64Fmix(h1);\n h2 = x64Fmix(h2);\n h1 = x64Add(h1, h2);\n h2 = x64Add(h2, h1);\n return ('00000000' + (h1[0] >>> 0).toString(16)).slice(-8) + ('00000000' + (h1[1] >>> 0).toString(16)).slice(-8) + ('00000000' + (h2[0] >>> 0).toString(16)).slice(-8) + ('00000000' + (h2[1] >>> 0).toString(16)).slice(-8);\n}\n/**\n * Converts an error object to a plain object that can be used with `JSON.stringify`.\n * If you just run `JSON.stringify(error)`, you'll get `'{}'`.\n */\n\n\nfunction errorToObject(error) {\n var _a;\n\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__assign\"])({\n name: error.name,\n message: error.message,\n stack: (_a = error.stack) === null || _a === void 0 ? void 0 : _a.split('\\n')\n }, error);\n}\n/*\n * This file contains functions to work with pure data only (no browser features, DOM, side effects, etc).\n */\n\n/**\n * Does the same as Array.prototype.includes but has better typing\n */\n\n\nfunction includes(haystack, needle) {\n for (var i = 0, l = haystack.length; i < l; ++i) {\n if (haystack[i] === needle) {\n return true;\n }\n }\n\n return false;\n}\n/**\n * Like `!includes()` but with proper typing\n */\n\n\nfunction excludes(haystack, needle) {\n return !includes(haystack, needle);\n}\n/**\n * Be careful, NaN can return\n */\n\n\nfunction toInt(value) {\n return parseInt(value);\n}\n/**\n * Be careful, NaN can return\n */\n\n\nfunction toFloat(value) {\n return parseFloat(value);\n}\n\nfunction replaceNaN(value, replacement) {\n return typeof value === 'number' && isNaN(value) ? replacement : value;\n}\n\nfunction countTruthy(values) {\n return values.reduce(function (sum, value) {\n return sum + (value ? 1 : 0);\n }, 0);\n}\n\nfunction round(value, base) {\n if (base === void 0) {\n base = 1;\n }\n\n if (Math.abs(base) >= 1) {\n return Math.round(value / base) * base;\n } else {\n // Sometimes when a number is multiplied by a small number, precision is lost,\n // for example 1234 * 0.0001 === 0.12340000000000001, and it's more precise divide: 1234 / (1 / 0.0001) === 0.1234.\n var counterBase = 1 / base;\n return Math.round(value * counterBase) / counterBase;\n }\n}\n/**\n * Parses a CSS selector into tag name with HTML attributes.\n * Only single element selector are supported (without operators like space, +, >, etc).\n *\n * Multiple values can be returned for each attribute. You decide how to handle them.\n */\n\n\nfunction parseSimpleCssSelector(selector) {\n var _a, _b;\n\n var errorMessage = \"Unexpected syntax '\" + selector + \"'\";\n var tagMatch = /^\\s*([a-z-]*)(.*)$/i.exec(selector);\n var tag = tagMatch[1] || undefined;\n var attributes = {};\n var partsRegex = /([.:#][\\w-]+|\\[.+?\\])/gi;\n\n var addAttribute = function (name, value) {\n attributes[name] = attributes[name] || [];\n attributes[name].push(value);\n };\n\n for (;;) {\n var match = partsRegex.exec(tagMatch[2]);\n\n if (!match) {\n break;\n }\n\n var part = match[0];\n\n switch (part[0]) {\n case '.':\n addAttribute('class', part.slice(1));\n break;\n\n case '#':\n addAttribute('id', part.slice(1));\n break;\n\n case '[':\n {\n var attributeMatch = /^\\[([\\w-]+)([~|^$*]?=(\"(.*?)\"|([\\w-]+)))?(\\s+[is])?\\]$/.exec(part);\n\n if (attributeMatch) {\n addAttribute(attributeMatch[1], (_b = (_a = attributeMatch[4]) !== null && _a !== void 0 ? _a : attributeMatch[5]) !== null && _b !== void 0 ? _b : '');\n } else {\n throw new Error(errorMessage);\n }\n\n break;\n }\n\n default:\n throw new Error(errorMessage);\n }\n }\n\n return [tag, attributes];\n}\n\nfunction ensureErrorWithMessage(error) {\n return error && typeof error === 'object' && 'message' in error ? error : {\n message: error\n };\n}\n/**\n * Loads the given entropy source. Returns a function that gets an entropy component from the source.\n *\n * The result is returned synchronously to prevent `loadSources` from\n * waiting for one source to load before getting the components from the other sources.\n */\n\n\nfunction loadSource(source, sourceOptions) {\n var isFinalResultLoaded = function (loadResult) {\n return typeof loadResult !== 'function';\n };\n\n var sourceLoadPromise = new Promise(function (resolveLoad) {\n var loadStartTime = Date.now(); // `awaitIfAsync` is used instead of just `await` in order to measure the duration of synchronous sources\n // correctly (other microtasks won't affect the duration).\n\n awaitIfAsync(source.bind(null, sourceOptions), function () {\n var loadArgs = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n loadArgs[_i] = arguments[_i];\n }\n\n var loadDuration = Date.now() - loadStartTime; // Source loading failed\n\n if (!loadArgs[0]) {\n return resolveLoad(function () {\n return {\n error: ensureErrorWithMessage(loadArgs[1]),\n duration: loadDuration\n };\n });\n }\n\n var loadResult = loadArgs[1]; // Source loaded with the final result\n\n if (isFinalResultLoaded(loadResult)) {\n return resolveLoad(function () {\n return {\n value: loadResult,\n duration: loadDuration\n };\n });\n } // Source loaded with \"get\" stage\n\n\n resolveLoad(function () {\n return new Promise(function (resolveGet) {\n var getStartTime = Date.now();\n awaitIfAsync(loadResult, function () {\n var getArgs = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n getArgs[_i] = arguments[_i];\n }\n\n var duration = loadDuration + Date.now() - getStartTime; // Source getting failed\n\n if (!getArgs[0]) {\n return resolveGet({\n error: ensureErrorWithMessage(getArgs[1]),\n duration: duration\n });\n } // Source getting succeeded\n\n\n resolveGet({\n value: getArgs[1],\n duration: duration\n });\n });\n });\n });\n });\n });\n return function getComponent() {\n return sourceLoadPromise.then(function (finalizeSource) {\n return finalizeSource();\n });\n };\n}\n/**\n * Loads the given entropy sources. Returns a function that collects the entropy components.\n *\n * The result is returned synchronously in order to allow start getting the components\n * before the sources are loaded completely.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\n\n\nfunction loadSources(sources, sourceOptions, excludeSources) {\n var includedSources = Object.keys(sources).filter(function (sourceKey) {\n return excludes(excludeSources, sourceKey);\n });\n var sourceGetters = Array(includedSources.length); // Using `forEachWithBreaks` allows asynchronous sources to complete between synchronous sources\n // and measure the duration correctly\n\n forEachWithBreaks(includedSources, function (sourceKey, index) {\n sourceGetters[index] = loadSource(sources[sourceKey], sourceOptions);\n });\n return function getComponents() {\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function () {\n var components, _i, includedSources_1, sourceKey, componentPromises, _loop_1, state_1;\n\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_a) {\n switch (_a.label) {\n case 0:\n components = {};\n\n for (_i = 0, includedSources_1 = includedSources; _i < includedSources_1.length; _i++) {\n sourceKey = includedSources_1[_i];\n components[sourceKey] = undefined;\n }\n\n componentPromises = Array(includedSources.length);\n\n _loop_1 = function () {\n var hasAllComponentPromises;\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_a) {\n switch (_a.label) {\n case 0:\n hasAllComponentPromises = true;\n return [4\n /*yield*/\n , forEachWithBreaks(includedSources, function (sourceKey, index) {\n if (!componentPromises[index]) {\n // `sourceGetters` may be incomplete at this point of execution because `forEachWithBreaks` is asynchronous\n if (sourceGetters[index]) {\n componentPromises[index] = sourceGetters[index]().then(function (component) {\n return components[sourceKey] = component;\n });\n } else {\n hasAllComponentPromises = false;\n }\n }\n })];\n\n case 1:\n _a.sent();\n\n if (hasAllComponentPromises) {\n return [2\n /*return*/\n , \"break\"];\n }\n\n return [4\n /*yield*/\n , wait(1)];\n // Lets the source load loop continue\n\n case 2:\n _a.sent(); // Lets the source load loop continue\n\n\n return [2\n /*return*/\n ];\n }\n });\n };\n\n _a.label = 1;\n\n case 1:\n return [5\n /*yield**/\n , _loop_1()];\n\n case 2:\n state_1 = _a.sent();\n if (state_1 === \"break\") return [3\n /*break*/\n , 4];\n _a.label = 3;\n\n case 3:\n return [3\n /*break*/\n , 1];\n\n case 4:\n return [4\n /*yield*/\n , Promise.all(componentPromises)];\n\n case 5:\n _a.sent();\n\n return [2\n /*return*/\n , components];\n }\n });\n });\n };\n}\n/*\n * Functions to help with features that vary through browsers\n */\n\n/**\n * Checks whether the browser is based on Trident (the Internet Explorer engine) without using user-agent.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\n\n\nfunction isTrident() {\n var w = window;\n var n = navigator; // The properties are checked to be in IE 10, IE 11 and not to be in other browsers in October 2020\n\n return countTruthy(['MSCSSMatrix' in w, 'msSetImmediate' in w, 'msIndexedDB' in w, 'msMaxTouchPoints' in n, 'msPointerEnabled' in n]) >= 4;\n}\n/**\n * Checks whether the browser is based on EdgeHTML (the pre-Chromium Edge engine) without using user-agent.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\n\n\nfunction isEdgeHTML() {\n // Based on research in October 2020\n var w = window;\n var n = navigator;\n return countTruthy(['msWriteProfilerMark' in w, 'MSStream' in w, 'msLaunchUri' in n, 'msSaveBlob' in n]) >= 3 && !isTrident();\n}\n/**\n * Checks whether the browser is based on Chromium without using user-agent.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\n\n\nfunction isChromium() {\n // Based on research in October 2020. Tested to detect Chromium 42-86.\n var w = window;\n var n = navigator;\n return countTruthy(['webkitPersistentStorage' in n, 'webkitTemporaryStorage' in n, n.vendor.indexOf('Google') === 0, 'webkitResolveLocalFileSystemURL' in w, 'BatteryManager' in w, 'webkitMediaStream' in w, 'webkitSpeechGrammar' in w]) >= 5;\n}\n/**\n * Checks whether the browser is based on mobile or desktop Safari without using user-agent.\n * All iOS browsers use WebKit (the Safari engine).\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\n\n\nfunction isWebKit() {\n // Based on research in September 2020\n var w = window;\n var n = navigator;\n return countTruthy(['ApplePayError' in w, 'CSSPrimitiveValue' in w, 'Counter' in w, n.vendor.indexOf('Apple') === 0, 'getStorageUpdates' in n, 'WebKitMediaKeys' in w]) >= 4;\n}\n/**\n * Checks whether the WebKit browser is a desktop Safari.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\n\n\nfunction isDesktopSafari() {\n var w = window;\n return countTruthy(['safari' in w, !('DeviceMotionEvent' in w), !('ongestureend' in w), !('standalone' in navigator)]) >= 3;\n}\n/**\n * Checks whether the browser is based on Gecko (Firefox engine) without using user-agent.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\n\n\nfunction isGecko() {\n var _a, _b;\n\n var w = window; // Based on research in September 2020\n\n return countTruthy(['buildID' in navigator, 'MozAppearance' in ((_b = (_a = document.documentElement) === null || _a === void 0 ? void 0 : _a.style) !== null && _b !== void 0 ? _b : {}), 'onmozfullscreenchange' in w, 'mozInnerScreenX' in w, 'CSSMozDocumentRule' in w, 'CanvasCaptureMediaStream' in w]) >= 4;\n}\n/**\n * Checks whether the browser is based on Chromium version ≥86 without using user-agent.\n * It doesn't check that the browser is based on Chromium, there is a separate function for this.\n */\n\n\nfunction isChromium86OrNewer() {\n // Checked in Chrome 85 vs Chrome 86 both on desktop and Android\n var w = window;\n return countTruthy([!('MediaSettingsRange' in w), 'RTCEncodedAudioFrame' in w, '' + w.Intl === '[object Intl]', '' + w.Reflect === '[object Reflect]']) >= 3;\n}\n/**\n * Checks whether the browser is based on WebKit version ≥606 (Safari ≥12) without using user-agent.\n * It doesn't check that the browser is based on WebKit, there is a separate function for this.\n *\n * @link https://en.wikipedia.org/wiki/Safari_version_history#Release_history Safari-WebKit versions map\n */\n\n\nfunction isWebKit606OrNewer() {\n // Checked in Safari 9–14\n var w = window;\n return countTruthy(['DOMRectList' in w, 'RTCPeerConnectionIceEvent' in w, 'SVGGeometryElement' in w, 'ontransitioncancel' in w]) >= 3;\n}\n/**\n * Checks whether the device is an iPad.\n * It doesn't check that the engine is WebKit and that the WebKit isn't desktop.\n */\n\n\nfunction isIPad() {\n // Checked on:\n // Safari on iPadOS (both mobile and desktop modes): 8, 11, 12, 13, 14\n // Chrome on iPadOS (both mobile and desktop modes): 11, 12, 13, 14\n // Safari on iOS (both mobile and desktop modes): 9, 10, 11, 12, 13, 14\n // Chrome on iOS (both mobile and desktop modes): 9, 10, 11, 12, 13, 14\n // Before iOS 13. Safari tampers the value in \"request desktop site\" mode since iOS 13.\n if (navigator.platform === 'iPad') {\n return true;\n }\n\n var s = screen;\n var screenRatio = s.width / s.height;\n return countTruthy(['MediaSource' in window, !!Element.prototype.webkitRequestFullscreen, // iPhone 4S that runs iOS 9 matches this. But it won't match the criteria above, so it won't be detected as iPad.\n screenRatio > 0.65 && screenRatio < 1.53]) >= 2;\n}\n/**\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\n\n\nfunction getFullscreenElement() {\n var d = document;\n return d.fullscreenElement || d.msFullscreenElement || d.mozFullScreenElement || d.webkitFullscreenElement || null;\n}\n\nfunction exitFullscreen() {\n var d = document; // `call` is required because the function throws an error without a proper \"this\" context\n\n return (d.exitFullscreen || d.msExitFullscreen || d.mozCancelFullScreen || d.webkitExitFullscreen).call(d);\n}\n/**\n * Checks whether the device runs on Android without using user-agent.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\n\n\nfunction isAndroid() {\n var isItChromium = isChromium();\n var isItGecko = isGecko(); // Only 2 browser engines are presented on Android.\n // Actually, there is also Android 4.1 browser, but it's not worth detecting it at the moment.\n\n if (!isItChromium && !isItGecko) {\n return false;\n }\n\n var w = window; // Chrome removes all words \"Android\" from `navigator` when desktop version is requested\n // Firefox keeps \"Android\" in `navigator.appVersion` when desktop version is requested\n\n return countTruthy(['onorientationchange' in w, 'orientation' in w, isItChromium && !('SharedWorker' in w), isItGecko && /android/i.test(navigator.appVersion)]) >= 2;\n}\n/**\n * A deep description: https://fingerprintjs.com/blog/audio-fingerprinting/\n * Inspired by and based on https://github.com/cozylife/audio-fingerprint\n */\n\n\nfunction getAudioFingerprint() {\n var w = window;\n var AudioContext = w.OfflineAudioContext || w.webkitOfflineAudioContext;\n\n if (!AudioContext) {\n return -2\n /* NotSupported */\n ;\n } // In some browsers, audio context always stays suspended unless the context is started in response to a user action\n // (e.g. a click or a tap). It prevents audio fingerprint from being taken at an arbitrary moment of time.\n // Such browsers are old and unpopular, so the audio fingerprinting is just skipped in them.\n // See a similar case explanation at https://stackoverflow.com/questions/46363048/onaudioprocess-not-called-on-ios11#46534088\n\n\n if (doesCurrentBrowserSuspendAudioContext()) {\n return -1\n /* KnownToSuspend */\n ;\n }\n\n var hashFromIndex = 4500;\n var hashToIndex = 5000;\n var context = new AudioContext(1, hashToIndex, 44100);\n var oscillator = context.createOscillator();\n oscillator.type = 'triangle';\n oscillator.frequency.value = 10000;\n var compressor = context.createDynamicsCompressor();\n compressor.threshold.value = -50;\n compressor.knee.value = 40;\n compressor.ratio.value = 12;\n compressor.attack.value = 0;\n compressor.release.value = 0.25;\n oscillator.connect(compressor);\n compressor.connect(context.destination);\n oscillator.start(0);\n\n var _a = startRenderingAudio(context),\n renderPromise = _a[0],\n finishRendering = _a[1];\n\n var fingerprintPromise = renderPromise.then(function (buffer) {\n return getHash(buffer.getChannelData(0).subarray(hashFromIndex));\n }, function (error) {\n if (error.name === \"timeout\"\n /* Timeout */\n || error.name === \"suspended\"\n /* Suspended */\n ) {\n return -3\n /* Timeout */\n ;\n }\n\n throw error;\n }); // Suppresses the console error message in case when the fingerprint fails before requested\n\n fingerprintPromise.catch(function () {\n return undefined;\n });\n return function () {\n finishRendering();\n return fingerprintPromise;\n };\n}\n/**\n * Checks if the current browser is known to always suspend audio context\n */\n\n\nfunction doesCurrentBrowserSuspendAudioContext() {\n return isWebKit() && !isDesktopSafari() && !isWebKit606OrNewer();\n}\n/**\n * Starts rendering the audio context.\n * When the returned function is called, the render process starts finishing.\n */\n\n\nfunction startRenderingAudio(context) {\n var renderTryMaxCount = 3;\n var renderRetryDelay = 500;\n var runningMaxAwaitTime = 500;\n var runningSufficientTime = 5000;\n\n var finalize = function () {\n return undefined;\n };\n\n var resultPromise = new Promise(function (resolve, reject) {\n var isFinalized = false;\n var renderTryCount = 0;\n var startedRunningAt = 0;\n\n context.oncomplete = function (event) {\n return resolve(event.renderedBuffer);\n };\n\n var startRunningTimeout = function () {\n setTimeout(function () {\n return reject(makeInnerError(\"timeout\"\n /* Timeout */\n ));\n }, Math.min(runningMaxAwaitTime, startedRunningAt + runningSufficientTime - Date.now()));\n };\n\n var tryRender = function () {\n try {\n context.startRendering();\n\n switch (context.state) {\n case 'running':\n startedRunningAt = Date.now();\n\n if (isFinalized) {\n startRunningTimeout();\n }\n\n break;\n // Sometimes the audio context doesn't start after calling `startRendering` (in addition to the cases where\n // audio context doesn't start at all). A known case is starting an audio context when the browser tab is in\n // background on iPhone. Retries usually help in this case.\n\n case 'suspended':\n // The audio context can reject starting until the tab is in foreground. Long fingerprint duration\n // in background isn't a problem, therefore the retry attempts don't count in background. It can lead to\n // a situation when a fingerprint takes very long time and finishes successfully. FYI, the audio context\n // can be suspended when `document.hidden === false` and start running after a retry.\n if (!document.hidden) {\n renderTryCount++;\n }\n\n if (isFinalized && renderTryCount >= renderTryMaxCount) {\n reject(makeInnerError(\"suspended\"\n /* Suspended */\n ));\n } else {\n setTimeout(tryRender, renderRetryDelay);\n }\n\n break;\n }\n } catch (error) {\n reject(error);\n }\n };\n\n tryRender();\n\n finalize = function () {\n if (!isFinalized) {\n isFinalized = true;\n\n if (startedRunningAt > 0) {\n startRunningTimeout();\n }\n }\n };\n });\n return [resultPromise, finalize];\n}\n\nfunction getHash(signal) {\n var hash = 0;\n\n for (var i = 0; i < signal.length; ++i) {\n hash += Math.abs(signal[i]);\n }\n\n return hash;\n}\n\nfunction makeInnerError(name) {\n var error = new Error(name);\n error.name = name;\n return error;\n}\n/**\n * Creates and keeps an invisible iframe while the given function runs.\n * The given function is called when the iframe is loaded and has a body.\n * The iframe allows to measure DOM sizes inside itself.\n *\n * Notice: passing an initial HTML code doesn't work in IE.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\n\n\nfunction withIframe(action, initialHtml, domPollInterval) {\n var _a, _b, _c;\n\n if (domPollInterval === void 0) {\n domPollInterval = 50;\n }\n\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function () {\n var d, iframe;\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_d) {\n switch (_d.label) {\n case 0:\n d = document;\n _d.label = 1;\n\n case 1:\n if (!!d.body) return [3\n /*break*/\n , 3];\n return [4\n /*yield*/\n , wait(domPollInterval)];\n\n case 2:\n _d.sent();\n\n return [3\n /*break*/\n , 1];\n\n case 3:\n iframe = d.createElement('iframe');\n _d.label = 4;\n\n case 4:\n _d.trys.push([4,, 10, 11]);\n\n return [4\n /*yield*/\n , new Promise(function (_resolve, _reject) {\n var isComplete = false;\n\n var resolve = function () {\n isComplete = true;\n\n _resolve();\n };\n\n var reject = function (error) {\n isComplete = true;\n\n _reject(error);\n };\n\n iframe.onload = resolve;\n iframe.onerror = reject;\n var style = iframe.style;\n style.setProperty('display', 'block', 'important'); // Required for browsers to calculate the layout\n\n style.position = 'absolute';\n style.top = '0';\n style.left = '0';\n style.visibility = 'hidden';\n\n if (initialHtml && 'srcdoc' in iframe) {\n iframe.srcdoc = initialHtml;\n } else {\n iframe.src = 'about:blank';\n }\n\n d.body.appendChild(iframe); // WebKit in WeChat doesn't fire the iframe's `onload` for some reason.\n // This code checks for the loading state manually.\n // See https://github.com/fingerprintjs/fingerprintjs/issues/645\n\n var checkReadyState = function () {\n var _a, _b; // The ready state may never become 'complete' in Firefox despite the 'load' event being fired.\n // So an infinite setTimeout loop can happen without this check.\n // See https://github.com/fingerprintjs/fingerprintjs/pull/716#issuecomment-986898796\n\n\n if (isComplete) {\n return;\n } // Make sure iframe.contentWindow and iframe.contentWindow.document are both loaded\n // The contentWindow.document can miss in JSDOM (https://github.com/jsdom/jsdom).\n\n\n if (((_b = (_a = iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.document) === null || _b === void 0 ? void 0 : _b.readyState) === 'complete') {\n resolve();\n } else {\n setTimeout(checkReadyState, 10);\n }\n };\n\n checkReadyState();\n })];\n\n case 5:\n _d.sent();\n\n _d.label = 6;\n\n case 6:\n if (!!((_b = (_a = iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.document) === null || _b === void 0 ? void 0 : _b.body)) return [3\n /*break*/\n , 8];\n return [4\n /*yield*/\n , wait(domPollInterval)];\n\n case 7:\n _d.sent();\n\n return [3\n /*break*/\n , 6];\n\n case 8:\n return [4\n /*yield*/\n , action(iframe, iframe.contentWindow)];\n\n case 9:\n return [2\n /*return*/\n , _d.sent()];\n\n case 10:\n (_c = iframe.parentNode) === null || _c === void 0 ? void 0 : _c.removeChild(iframe);\n return [7\n /*endfinally*/\n ];\n\n case 11:\n return [2\n /*return*/\n ];\n }\n });\n });\n}\n/**\n * Creates a DOM element that matches the given selector.\n * Only single element selector are supported (without operators like space, +, >, etc).\n */\n\n\nfunction selectorToElement(selector) {\n var _a = parseSimpleCssSelector(selector),\n tag = _a[0],\n attributes = _a[1];\n\n var element = document.createElement(tag !== null && tag !== void 0 ? tag : 'div');\n\n for (var _i = 0, _b = Object.keys(attributes); _i < _b.length; _i++) {\n var name_1 = _b[_i];\n element.setAttribute(name_1, attributes[name_1].join(' '));\n }\n\n return element;\n} // We use m or w because these two characters take up the maximum width.\n// And we use a LLi so that the same matching fonts can get separated.\n\n\nvar testString = 'mmMwWLliI0O&1'; // We test using 48px font size, we may use any size. I guess larger the better.\n\nvar textSize = '48px'; // A font will be compared against all the three default fonts.\n// And if for any default fonts it doesn't match, then that font is available.\n\nvar baseFonts = ['monospace', 'sans-serif', 'serif'];\nvar fontList = [// This is android-specific font from \"Roboto\" family\n'sans-serif-thin', 'ARNO PRO', 'Agency FB', 'Arabic Typesetting', 'Arial Unicode MS', 'AvantGarde Bk BT', 'BankGothic Md BT', 'Batang', 'Bitstream Vera Sans Mono', 'Calibri', 'Century', 'Century Gothic', 'Clarendon', 'EUROSTILE', 'Franklin Gothic', 'Futura Bk BT', 'Futura Md BT', 'GOTHAM', 'Gill Sans', 'HELV', 'Haettenschweiler', 'Helvetica Neue', 'Humanst521 BT', 'Leelawadee', 'Letter Gothic', 'Levenim MT', 'Lucida Bright', 'Lucida Sans', 'Menlo', 'MS Mincho', 'MS Outlook', 'MS Reference Specialty', 'MS UI Gothic', 'MT Extra', 'MYRIAD PRO', 'Marlett', 'Meiryo UI', 'Microsoft Uighur', 'Minion Pro', 'Monotype Corsiva', 'PMingLiU', 'Pristina', 'SCRIPTINA', 'Segoe UI Light', 'Serifa', 'SimHei', 'Small Fonts', 'Staccato222 BT', 'TRAJAN PRO', 'Univers CE 55 Medium', 'Vrinda', 'ZWAdobeF']; // kudos to http://www.lalit.org/lab/javascript-css-font-detect/\n\nfunction getFonts() {\n // Running the script in an iframe makes it not affect the page look and not be affected by the page CSS. See:\n // https://github.com/fingerprintjs/fingerprintjs/issues/592\n // https://github.com/fingerprintjs/fingerprintjs/issues/628\n return withIframe(function (_, _a) {\n var document = _a.document;\n var holder = document.body;\n holder.style.fontSize = textSize; // div to load spans for the default fonts and the fonts to detect\n\n var spansContainer = document.createElement('div');\n var defaultWidth = {};\n var defaultHeight = {}; // creates a span where the fonts will be loaded\n\n var createSpan = function (fontFamily) {\n var span = document.createElement('span');\n var style = span.style;\n style.position = 'absolute';\n style.top = '0';\n style.left = '0';\n style.fontFamily = fontFamily;\n span.textContent = testString;\n spansContainer.appendChild(span);\n return span;\n }; // creates a span and load the font to detect and a base font for fallback\n\n\n var createSpanWithFonts = function (fontToDetect, baseFont) {\n return createSpan(\"'\" + fontToDetect + \"',\" + baseFont);\n }; // creates spans for the base fonts and adds them to baseFontsDiv\n\n\n var initializeBaseFontsSpans = function () {\n return baseFonts.map(createSpan);\n }; // creates spans for the fonts to detect and adds them to fontsDiv\n\n\n var initializeFontsSpans = function () {\n // Stores {fontName : [spans for that font]}\n var spans = {};\n\n var _loop_1 = function (font) {\n spans[font] = baseFonts.map(function (baseFont) {\n return createSpanWithFonts(font, baseFont);\n });\n };\n\n for (var _i = 0, fontList_1 = fontList; _i < fontList_1.length; _i++) {\n var font = fontList_1[_i];\n\n _loop_1(font);\n }\n\n return spans;\n }; // checks if a font is available\n\n\n var isFontAvailable = function (fontSpans) {\n return baseFonts.some(function (baseFont, baseFontIndex) {\n return fontSpans[baseFontIndex].offsetWidth !== defaultWidth[baseFont] || fontSpans[baseFontIndex].offsetHeight !== defaultHeight[baseFont];\n });\n }; // create spans for base fonts\n\n\n var baseFontsSpans = initializeBaseFontsSpans(); // create spans for fonts to detect\n\n var fontsSpans = initializeFontsSpans(); // add all the spans to the DOM\n\n holder.appendChild(spansContainer); // get the default width for the three base fonts\n\n for (var index = 0; index < baseFonts.length; index++) {\n defaultWidth[baseFonts[index]] = baseFontsSpans[index].offsetWidth; // width for the default font\n\n defaultHeight[baseFonts[index]] = baseFontsSpans[index].offsetHeight; // height for the default font\n } // check available fonts\n\n\n return fontList.filter(function (font) {\n return isFontAvailable(fontsSpans[font]);\n });\n });\n}\n\nfunction getPlugins() {\n var rawPlugins = navigator.plugins;\n\n if (!rawPlugins) {\n return undefined;\n }\n\n var plugins = []; // Safari 10 doesn't support iterating navigator.plugins with for...of\n\n for (var i = 0; i < rawPlugins.length; ++i) {\n var plugin = rawPlugins[i];\n\n if (!plugin) {\n continue;\n }\n\n var mimeTypes = [];\n\n for (var j = 0; j < plugin.length; ++j) {\n var mimeType = plugin[j];\n mimeTypes.push({\n type: mimeType.type,\n suffixes: mimeType.suffixes\n });\n }\n\n plugins.push({\n name: plugin.name,\n description: plugin.description,\n mimeTypes: mimeTypes\n });\n }\n\n return plugins;\n} // https://www.browserleaks.com/canvas#how-does-it-work\n\n\nfunction getCanvasFingerprint() {\n var _a = makeCanvasContext(),\n canvas = _a[0],\n context = _a[1];\n\n if (!isSupported(canvas, context)) {\n return {\n winding: false,\n geometry: '',\n text: ''\n };\n }\n\n return {\n winding: doesSupportWinding(context),\n geometry: makeGeometryImage(canvas, context),\n // Text is unstable:\n // https://github.com/fingerprintjs/fingerprintjs/issues/583\n // https://github.com/fingerprintjs/fingerprintjs/issues/103\n // Therefore it's extracted into a separate image.\n text: makeTextImage(canvas, context)\n };\n}\n\nfunction makeCanvasContext() {\n var canvas = document.createElement('canvas');\n canvas.width = 1;\n canvas.height = 1;\n return [canvas, canvas.getContext('2d')];\n}\n\nfunction isSupported(canvas, context) {\n // TODO: look into: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob\n return !!(context && canvas.toDataURL);\n}\n\nfunction doesSupportWinding(context) {\n // https://web.archive.org/web/20170825024655/http://blogs.adobe.com/webplatform/2013/01/30/winding-rules-in-canvas/\n // https://github.com/Modernizr/Modernizr/blob/master/feature-detects/canvas/winding.js\n context.rect(0, 0, 10, 10);\n context.rect(2, 2, 6, 6);\n return !context.isPointInPath(5, 5, 'evenodd');\n}\n\nfunction makeTextImage(canvas, context) {\n // Resizing the canvas cleans it\n canvas.width = 240;\n canvas.height = 60;\n context.textBaseline = 'alphabetic';\n context.fillStyle = '#f60';\n context.fillRect(100, 1, 62, 20);\n context.fillStyle = '#069'; // It's important to use explicit built-in fonts in order to exclude the affect of font preferences\n // (there is a separate entropy source for them).\n\n context.font = '11pt \"Times New Roman\"'; // The choice of emojis has a gigantic impact on rendering performance (especially in FF).\n // Some newer emojis cause it to slow down 50-200 times.\n // There must be no text to the right of the emoji, see https://github.com/fingerprintjs/fingerprintjs/issues/574\n // A bare emoji shouldn't be used because the canvas will change depending on the script encoding:\n // https://github.com/fingerprintjs/fingerprintjs/issues/66\n // Escape sequence shouldn't be used too because Terser will turn it into a bare unicode.\n\n var printedText = \"Cwm fjordbank gly \" + String.fromCharCode(55357, 56835)\n /* 😃 */\n ;\n context.fillText(printedText, 2, 15);\n context.fillStyle = 'rgba(102, 204, 0, 0.2)';\n context.font = '18pt Arial';\n context.fillText(printedText, 4, 45);\n return save(canvas);\n}\n\nfunction makeGeometryImage(canvas, context) {\n // Resizing the canvas cleans it\n canvas.width = 122;\n canvas.height = 110; // Canvas blending\n // https://web.archive.org/web/20170826194121/http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/\n // http://jsfiddle.net/NDYV8/16/\n\n context.globalCompositeOperation = 'multiply';\n\n for (var _i = 0, _a = [['#f2f', 40, 40], ['#2ff', 80, 40], ['#ff2', 60, 80]]; _i < _a.length; _i++) {\n var _b = _a[_i],\n color = _b[0],\n x = _b[1],\n y = _b[2];\n context.fillStyle = color;\n context.beginPath();\n context.arc(x, y, 40, 0, Math.PI * 2, true);\n context.closePath();\n context.fill();\n } // Canvas winding\n // https://web.archive.org/web/20130913061632/http://blogs.adobe.com/webplatform/2013/01/30/winding-rules-in-canvas/\n // http://jsfiddle.net/NDYV8/19/\n\n\n context.fillStyle = '#f9c';\n context.arc(60, 60, 60, 0, Math.PI * 2, true);\n context.arc(60, 60, 20, 0, Math.PI * 2, true);\n context.fill('evenodd');\n return save(canvas);\n}\n\nfunction save(canvas) {\n // TODO: look into: https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob\n return canvas.toDataURL();\n}\n/**\n * This is a crude and primitive touch screen detection. It's not possible to currently reliably detect the availability\n * of a touch screen with a JS, without actually subscribing to a touch event.\n *\n * @see http://www.stucox.com/blog/you-cant-detect-a-touchscreen/\n * @see https://github.com/Modernizr/Modernizr/issues/548\n */\n\n\nfunction getTouchSupport() {\n var n = navigator;\n var maxTouchPoints = 0;\n var touchEvent;\n\n if (n.maxTouchPoints !== undefined) {\n maxTouchPoints = toInt(n.maxTouchPoints);\n } else if (n.msMaxTouchPoints !== undefined) {\n maxTouchPoints = n.msMaxTouchPoints;\n }\n\n try {\n document.createEvent('TouchEvent');\n touchEvent = true;\n } catch (_a) {\n touchEvent = false;\n }\n\n var touchStart = ('ontouchstart' in window);\n return {\n maxTouchPoints: maxTouchPoints,\n touchEvent: touchEvent,\n touchStart: touchStart\n };\n}\n\nfunction getOsCpu() {\n return navigator.oscpu;\n}\n\nfunction getLanguages() {\n var n = navigator;\n var result = [];\n var language = n.language || n.userLanguage || n.browserLanguage || n.systemLanguage;\n\n if (language !== undefined) {\n result.push([language]);\n }\n\n if (Array.isArray(n.languages)) {\n // Starting from Chromium 86, there is only a single value in `navigator.language` in Incognito mode:\n // the value of `navigator.language`. Therefore the value is ignored in this browser.\n if (!(isChromium() && isChromium86OrNewer())) {\n result.push(n.languages);\n }\n } else if (typeof n.languages === 'string') {\n var languages = n.languages;\n\n if (languages) {\n result.push(languages.split(','));\n }\n }\n\n return result;\n}\n\nfunction getColorDepth() {\n return window.screen.colorDepth;\n}\n\nfunction getDeviceMemory() {\n // `navigator.deviceMemory` is a string containing a number in some unidentified cases\n return replaceNaN(toFloat(navigator.deviceMemory), undefined);\n}\n\nfunction getScreenResolution() {\n var s = screen; // Some browsers return screen resolution as strings, e.g. \"1200\", instead of a number, e.g. 1200.\n // I suspect it's done by certain plugins that randomize browser properties to prevent fingerprinting.\n // Some browsers even return screen resolution as not numbers.\n\n var parseDimension = function (value) {\n return replaceNaN(toInt(value), null);\n };\n\n var dimensions = [parseDimension(s.width), parseDimension(s.height)];\n dimensions.sort().reverse();\n return dimensions;\n}\n\nvar screenFrameCheckInterval = 2500;\nvar roundingPrecision = 10; // The type is readonly to protect from unwanted mutations\n\nvar screenFrameBackup;\nvar screenFrameSizeTimeoutId;\n/**\n * Starts watching the screen frame size. When a non-zero size appears, the size is saved and the watch is stopped.\n * Later, when `getScreenFrame` runs, it will return the saved non-zero size if the current size is null.\n *\n * This trick is required to mitigate the fact that the screen frame turns null in some cases.\n * See more on this at https://github.com/fingerprintjs/fingerprintjs/issues/568\n */\n\nfunction watchScreenFrame() {\n if (screenFrameSizeTimeoutId !== undefined) {\n return;\n }\n\n var checkScreenFrame = function () {\n var frameSize = getCurrentScreenFrame();\n\n if (isFrameSizeNull(frameSize)) {\n screenFrameSizeTimeoutId = setTimeout(checkScreenFrame, screenFrameCheckInterval);\n } else {\n screenFrameBackup = frameSize;\n screenFrameSizeTimeoutId = undefined;\n }\n };\n\n checkScreenFrame();\n}\n\nfunction getScreenFrame() {\n var _this = this;\n\n watchScreenFrame();\n return function () {\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(_this, void 0, void 0, function () {\n var frameSize;\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_a) {\n switch (_a.label) {\n case 0:\n frameSize = getCurrentScreenFrame();\n if (!isFrameSizeNull(frameSize)) return [3\n /*break*/\n , 2];\n\n if (screenFrameBackup) {\n return [2\n /*return*/\n , Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__spreadArrays\"])(screenFrameBackup)];\n }\n\n if (!getFullscreenElement()) return [3\n /*break*/\n , 2]; // Some browsers set the screen frame to zero when programmatic fullscreen is on.\n // There is a chance of getting a non-zero frame after exiting the fullscreen.\n // See more on this at https://github.com/fingerprintjs/fingerprintjs/issues/568\n\n return [4\n /*yield*/\n , exitFullscreen()];\n\n case 1:\n // Some browsers set the screen frame to zero when programmatic fullscreen is on.\n // There is a chance of getting a non-zero frame after exiting the fullscreen.\n // See more on this at https://github.com/fingerprintjs/fingerprintjs/issues/568\n _a.sent();\n\n frameSize = getCurrentScreenFrame();\n _a.label = 2;\n\n case 2:\n if (!isFrameSizeNull(frameSize)) {\n screenFrameBackup = frameSize;\n }\n\n return [2\n /*return*/\n , frameSize];\n }\n });\n });\n };\n}\n/**\n * Sometimes the available screen resolution changes a bit, e.g. 1900x1440 → 1900x1439. A possible reason: macOS Dock\n * shrinks to fit more icons when there is too little space. The rounding is used to mitigate the difference.\n */\n\n\nfunction getRoundedScreenFrame() {\n var _this = this;\n\n var screenFrameGetter = getScreenFrame();\n return function () {\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(_this, void 0, void 0, function () {\n var frameSize, processSize;\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_a) {\n switch (_a.label) {\n case 0:\n return [4\n /*yield*/\n , screenFrameGetter()];\n\n case 1:\n frameSize = _a.sent();\n\n processSize = function (sideSize) {\n return sideSize === null ? null : round(sideSize, roundingPrecision);\n }; // It might look like I don't know about `for` and `map`.\n // In fact, such code is used to avoid TypeScript issues without using `as`.\n\n\n return [2\n /*return*/\n , [processSize(frameSize[0]), processSize(frameSize[1]), processSize(frameSize[2]), processSize(frameSize[3])]];\n }\n });\n });\n };\n}\n\nfunction getCurrentScreenFrame() {\n var s = screen; // Some browsers return screen resolution as strings, e.g. \"1200\", instead of a number, e.g. 1200.\n // I suspect it's done by certain plugins that randomize browser properties to prevent fingerprinting.\n //\n // Some browsers (IE, Edge ≤18) don't provide `screen.availLeft` and `screen.availTop`. The property values are\n // replaced with 0 in such cases to not lose the entropy from `screen.availWidth` and `screen.availHeight`.\n\n return [replaceNaN(toFloat(s.availTop), null), replaceNaN(toFloat(s.width) - toFloat(s.availWidth) - replaceNaN(toFloat(s.availLeft), 0), null), replaceNaN(toFloat(s.height) - toFloat(s.availHeight) - replaceNaN(toFloat(s.availTop), 0), null), replaceNaN(toFloat(s.availLeft), null)];\n}\n\nfunction isFrameSizeNull(frameSize) {\n for (var i = 0; i < 4; ++i) {\n if (frameSize[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction getHardwareConcurrency() {\n // sometimes hardware concurrency is a string\n return replaceNaN(toInt(navigator.hardwareConcurrency), undefined);\n}\n\nfunction getTimezone() {\n var _a;\n\n var DateTimeFormat = (_a = window.Intl) === null || _a === void 0 ? void 0 : _a.DateTimeFormat;\n\n if (DateTimeFormat) {\n var timezone = new DateTimeFormat().resolvedOptions().timeZone;\n\n if (timezone) {\n return timezone;\n }\n } // For browsers that don't support timezone names\n // The minus is intentional because the JS offset is opposite to the real offset\n\n\n var offset = -getTimezoneOffset();\n return \"UTC\" + (offset >= 0 ? '+' : '') + Math.abs(offset);\n}\n\nfunction getTimezoneOffset() {\n var currentYear = new Date().getFullYear(); // The timezone offset may change over time due to daylight saving time (DST) shifts.\n // The non-DST timezone offset is used as the result timezone offset.\n // Since the DST season differs in the northern and the southern hemispheres,\n // both January and July timezones offsets are considered.\n\n return Math.max( // `getTimezoneOffset` returns a number as a string in some unidentified cases\n toFloat(new Date(currentYear, 0, 1).getTimezoneOffset()), toFloat(new Date(currentYear, 6, 1).getTimezoneOffset()));\n}\n\nfunction getSessionStorage() {\n try {\n return !!window.sessionStorage;\n } catch (error) {\n /* SecurityError when referencing it means it exists */\n return true;\n }\n} // https://bugzilla.mozilla.org/show_bug.cgi?id=781447\n\n\nfunction getLocalStorage() {\n try {\n return !!window.localStorage;\n } catch (e) {\n /* SecurityError when referencing it means it exists */\n return true;\n }\n}\n\nfunction getIndexedDB() {\n // IE and Edge don't allow accessing indexedDB in private mode, therefore IE and Edge will have different\n // visitor identifier in normal and private modes.\n if (isTrident() || isEdgeHTML()) {\n return undefined;\n }\n\n try {\n return !!window.indexedDB;\n } catch (e) {\n /* SecurityError when referencing it means it exists */\n return true;\n }\n}\n\nfunction getOpenDatabase() {\n return !!window.openDatabase;\n}\n\nfunction getCpuClass() {\n return navigator.cpuClass;\n}\n\nfunction getPlatform() {\n // Android Chrome 86 and 87 and Android Firefox 80 and 84 don't mock the platform value when desktop mode is requested\n var platform = navigator.platform; // iOS mocks the platform value when desktop version is requested: https://github.com/fingerprintjs/fingerprintjs/issues/514\n // iPad uses desktop mode by default since iOS 13\n // The value is 'MacIntel' on M1 Macs\n // The value is 'iPhone' on iPod Touch\n\n if (platform === 'MacIntel') {\n if (isWebKit() && !isDesktopSafari()) {\n return isIPad() ? 'iPad' : 'iPhone';\n }\n }\n\n return platform;\n}\n\nfunction getVendor() {\n return navigator.vendor || '';\n}\n/**\n * Checks for browser-specific (not engine specific) global variables to tell browsers with the same engine apart.\n * Only somewhat popular browsers are considered.\n */\n\n\nfunction getVendorFlavors() {\n var flavors = [];\n\n for (var _i = 0, _a = [// Blink and some browsers on iOS\n 'chrome', // Safari on macOS\n 'safari', // Chrome on iOS (checked in 85 on 13 and 87 on 14)\n '__crWeb', '__gCrWeb', // Yandex Browser on iOS, macOS and Android (checked in 21.2 on iOS 14, macOS and Android)\n 'yandex', // Yandex Browser on iOS (checked in 21.2 on 14)\n '__yb', '__ybro', // Firefox on iOS (checked in 32 on 14)\n '__firefox__', // Edge on iOS (checked in 46 on 14)\n '__edgeTrackingPreventionStatistics', 'webkit', // Opera Touch on iOS (checked in 2.6 on 14)\n 'oprt', // Samsung Internet on Android (checked in 11.1)\n 'samsungAr', // UC Browser on Android (checked in 12.10 and 13.0)\n 'ucweb', 'UCShellJava', // Puffin on Android (checked in 9.0)\n 'puffinDevice']; _i < _a.length; _i++) {\n var key = _a[_i];\n var value = window[key];\n\n if (value && typeof value === 'object') {\n flavors.push(key);\n }\n }\n\n return flavors.sort();\n}\n/**\n * navigator.cookieEnabled cannot detect custom or nuanced cookie blocking configurations. For example, when blocking\n * cookies via the Advanced Privacy Settings in IE9, it always returns true. And there have been issues in the past with\n * site-specific exceptions. Don't rely on it.\n *\n * @see https://github.com/Modernizr/Modernizr/blob/master/feature-detects/cookies.js Taken from here\n */\n\n\nfunction areCookiesEnabled() {\n var d = document; // Taken from here: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/cookies.js\n // navigator.cookieEnabled cannot detect custom or nuanced cookie blocking configurations. For example, when blocking\n // cookies via the Advanced Privacy Settings in IE9, it always returns true. And there have been issues in the past\n // with site-specific exceptions. Don't rely on it.\n // try..catch because some in situations `document.cookie` is exposed but throws a\n // SecurityError if you try to access it; e.g. documents created from data URIs\n // or in sandboxed iframes (depending on flags/context)\n\n try {\n // Create cookie\n d.cookie = 'cookietest=1; SameSite=Strict;';\n var result = d.cookie.indexOf('cookietest=') !== -1; // Delete cookie\n\n d.cookie = 'cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT';\n return result;\n } catch (e) {\n return false;\n }\n}\n/**\n * Only single element selector are supported (no operators like space, +, >, etc).\n * `embed` and `position: fixed;` will be considered as blocked anyway because it always has no offsetParent.\n * Avoid `iframe` and anything with `[src=]` because they produce excess HTTP requests.\n *\n * See docs/content_blockers.md to learn how to make the list\n */\n\n\nvar filters = {\n abpIndo: ['#Iklan-Melayang', '#Kolom-Iklan-728', '#SidebarIklan-wrapper', 'a[title=\"7naga poker\" i]', '[title=\"ALIENBOLA\" i]'],\n abpvn: ['#quangcaomb', '.iosAdsiosAds-layout', '.quangcao', '[href^=\"https://r88.vn/\"]', '[href^=\"https://zbet.vn/\"]'],\n adBlockFinland: ['.mainostila', '.sponsorit', '.ylamainos', 'a[href*=\"/clickthrgh.asp?\"]', 'a[href^=\"https://app.readpeak.com/ads\"]'],\n adBlockPersian: ['#navbar_notice_50', 'a[href^=\"http://g1.v.fwmrm.net/ad/\"]', '.kadr', 'TABLE[width=\"140px\"]', '#divAgahi'],\n adBlockWarningRemoval: ['#adblock-honeypot', '.adblocker-root', '.wp_adblock_detect'],\n adGuardAnnoyances: ['amp-embed[type=\"zen\"]', '.hs-sosyal', '#cookieconsentdiv', 'div[class^=\"app_gdpr\"]', '.as-oil'],\n adGuardBase: ['#ad-after', '#ad-p3', '.BetterJsPopOverlay', '#ad_300X250', '#bannerfloat22'],\n adGuardChinese: ['#piao_div_0[style*=\"width:140px;\"]', 'a[href*=\".ttz5.cn\"]', 'a[href*=\".yabovip2027.com/\"]', '.tm3all2h4b', '.cc5278_banner_ad'],\n adGuardFrench: ['.zonepub', '[class*=\"_adLeaderboard\"]', '[id^=\"block-xiti_oas-\"]', 'a[href^=\"http://ptapjmp.com/\"]', 'a[href^=\"https://go.alvexo.com/\"]'],\n adGuardGerman: ['.banneritemwerbung_head_1', '.boxstartwerbung', '.werbung3', 'a[href^=\"http://www.eis.de/index.phtml?refid=\"]', 'a[href^=\"https://www.tipico.com/?affiliateId=\"]'],\n adGuardJapanese: ['#kauli_yad_1', '#ad-giftext', '#adsSPRBlock', 'a[href^=\"http://ad2.trafficgate.net/\"]', 'a[href^=\"http://www.rssad.jp/\"]'],\n adGuardMobile: ['amp-auto-ads', '#mgid_iframe', '.amp_ad', 'amp-embed[type=\"24smi\"]', '#mgid_iframe1'],\n adGuardRussian: ['a[href^=\"https://ya-distrib.ru/r/\"]', 'a[href^=\"https://ad.letmeads.com/\"]', '.reclama', 'div[id^=\"smi2adblock\"]', 'div[id^=\"AdFox_banner_\"]'],\n adGuardSocial: ['a[href^=\"//www.stumbleupon.com/submit?url=\"]', 'a[href^=\"//telegram.me/share/url?\"]', '.etsy-tweet', '#inlineShare', '.popup-social'],\n adGuardSpanishPortuguese: ['#barraPublicidade', '#Publicidade', '#publiEspecial', '#queTooltip', '[href^=\"http://ads.glispa.com/\"]'],\n adGuardTrackingProtection: ['amp-embed[type=\"taboola\"]', '#qoo-counter', 'a[href^=\"http://click.hotlog.ru/\"]', 'a[href^=\"http://hitcounter.ru/top/stat.php\"]', 'a[href^=\"http://top.mail.ru/jump\"]'],\n adGuardTurkish: ['#backkapat', '#reklami', 'a[href^=\"http://adserv.ontek.com.tr/\"]', 'a[href^=\"http://izlenzi.com/campaign/\"]', 'a[href^=\"http://www.installads.net/\"]'],\n bulgarian: ['td#freenet_table_ads', '#adbody', '#ea_intext_div', '.lapni-pop-over', '#xenium_hot_offers'],\n easyList: ['#AD_banner_bottom', '#Ads_google_02', '#N-ad-article-rightRail-1', '#ad-fullbanner2', '#ad-zone-2'],\n easyListChina: ['a[href*=\".wensixuetang.com/\"]', 'A[href*=\"/hth107.com/\"]', '.appguide-wrap[onclick*=\"bcebos.com\"]', '.frontpageAdvM', '#taotaole'],\n easyListCookie: ['#adtoniq-msg-bar', '#CoockiesPage', '#CookieModal_cookiemodal', '#DO_CC_PANEL', '#ShowCookie'],\n easyListCzechSlovak: ['#onlajny-stickers', '#reklamni-box', '.reklama-megaboard', '.sklik', '[id^=\"sklikReklama\"]'],\n easyListDutch: ['#advertentie', '#vipAdmarktBannerBlock', '.adstekst', 'a[href^=\"https://xltube.nl/click/\"]', '#semilo-lrectangle'],\n easyListGermany: ['a[href^=\"http://www.hw-area.com/?dp=\"]', 'a[href^=\"https://ads.sunmaker.com/tracking.php?\"]', '.werbung-skyscraper2', '.bannergroup_werbung', '.ads_rechts'],\n easyListItaly: ['.box_adv_annunci', '.sb-box-pubbliredazionale', 'a[href^=\"http://affiliazioniads.snai.it/\"]', 'a[href^=\"https://adserver.html.it/\"]', 'a[href^=\"https://affiliazioniads.snai.it/\"]'],\n easyListLithuania: ['.reklamos_tarpas', '.reklamos_nuorodos', 'img[alt=\"Reklaminis skydelis\"]', 'img[alt=\"Dedikuoti.lt serveriai\"]', 'img[alt=\"Hostingas Serveriai.lt\"]'],\n estonian: ['A[href*=\"http://pay4results24.eu\"]'],\n fanboyAnnoyances: ['#feedback-tab', '#taboola-below-article', '.feedburnerFeedBlock', '.widget-feedburner-counter', '[title=\"Subscribe to our blog\"]'],\n fanboyAntiFacebook: ['.util-bar-module-firefly-visible'],\n fanboyEnhancedTrackers: ['.open.pushModal', '#issuem-leaky-paywall-articles-zero-remaining-nag', '#sovrn_container', 'div[class$=\"-hide\"][zoompage-fontsize][style=\"display: block;\"]', '.BlockNag__Card'],\n fanboySocial: ['.td-tags-and-social-wrapper-box', '.twitterContainer', '.youtube-social', 'a[title^=\"Like us on Facebook\"]', 'img[alt^=\"Share on Digg\"]'],\n frellwitSwedish: ['a[href*=\"casinopro.se\"][target=\"_blank\"]', 'a[href*=\"doktor-se.onelink.me\"]', 'article.category-samarbete', 'div.holidAds', 'ul.adsmodern'],\n greekAdBlock: ['A[href*=\"adman.otenet.gr/click?\"]', 'A[href*=\"http://axiabanners.exodus.gr/\"]', 'A[href*=\"http://interactive.forthnet.gr/click?\"]', 'DIV.agores300', 'TABLE.advright'],\n hungarian: ['A[href*=\"ad.eval.hu\"]', 'A[href*=\"ad.netmedia.hu\"]', 'A[href*=\"daserver.ultraweb.hu\"]', '#cemp_doboz', '.optimonk-iframe-container'],\n iDontCareAboutCookies: ['.alert-info[data-block-track*=\"CookieNotice\"]', '.ModuleTemplateCookieIndicator', '.o--cookies--container', '.cookie-msg-info-container', '#cookies-policy-sticky'],\n icelandicAbp: ['A[href^=\"/framework/resources/forms/ads.aspx\"]'],\n latvian: ['a[href=\"http://www.salidzini.lv/\"][style=\"display: block; width: 120px; height: 40px; overflow: hidden; position: relative;\"]', 'a[href=\"http://www.salidzini.lv/\"][style=\"display: block; width: 88px; height: 31px; overflow: hidden; position: relative;\"]'],\n listKr: ['a[href*=\"//kingtoon.slnk.kr\"]', 'a[href*=\"//playdsb.com/kr\"]', 'div.logly-lift-adz', 'div[data-widget_id=\"ml6EJ074\"]', 'ins.daum_ddn_area'],\n listeAr: ['.geminiLB1Ad', '.right-and-left-sponsers', 'a[href*=\".aflam.info\"]', 'a[href*=\"booraq.org\"]', 'a[href*=\"dubizzle.com/ar/?utm_source=\"]'],\n listeFr: ['a[href^=\"http://promo.vador.com/\"]', '#adcontainer_recherche', 'a[href*=\"weborama.fr/fcgi-bin/\"]', '.site-pub-interstitiel', 'div[id^=\"crt-\"][data-criteo-id]'],\n officialPolish: ['#ceneo-placeholder-ceneo-12', '[href^=\"https://aff.sendhub.pl/\"]', 'a[href^=\"http://advmanager.techfun.pl/redirect/\"]', 'a[href^=\"http://www.trizer.pl/?utm_source\"]', 'div#skapiec_ad'],\n ro: ['a[href^=\"//afftrk.altex.ro/Counter/Click\"]', 'a[href^=\"/magazin/\"]', 'a[href^=\"https://blackfridaysales.ro/trk/shop/\"]', 'a[href^=\"https://event.2performant.com/events/click\"]', 'a[href^=\"https://l.profitshare.ro/\"]'],\n ruAd: ['a[href*=\"//febrare.ru/\"]', 'a[href*=\"//utimg.ru/\"]', 'a[href*=\"://chikidiki.ru\"]', '#pgeldiz', '.yandex-rtb-block'],\n thaiAds: ['a[href*=macau-uta-popup]', '#ads-google-middle_rectangle-group', '.ads300s', '.bumq', '.img-kosana'],\n webAnnoyancesUltralist: ['#mod-social-share-2', '#social-tools', '.ctpl-fullbanner', '.zergnet-recommend', '.yt.btn-link.btn-md.btn']\n};\n/**\n * The order of the returned array means nothing (it's always sorted alphabetically).\n *\n * Notice that the source is slightly unstable.\n * Safari provides a 2-taps way to disable all content blockers on a page temporarily.\n * Also content blockers can be disabled permanently for a domain, but it requires 4 taps.\n * So empty array shouldn't be treated as \"no blockers\", it should be treated as \"no signal\".\n * If you are a website owner, don't make your visitors want to disable content blockers.\n */\n\nfunction getDomBlockers(_a) {\n var debug = (_a === void 0 ? {} : _a).debug;\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function () {\n var filterNames, allSelectors, blockedSelectors, activeBlockers;\n\n var _b;\n\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_c) {\n switch (_c.label) {\n case 0:\n if (!isApplicable()) {\n return [2\n /*return*/\n , undefined];\n }\n\n filterNames = Object.keys(filters);\n allSelectors = (_b = []).concat.apply(_b, filterNames.map(function (filterName) {\n return filters[filterName];\n }));\n return [4\n /*yield*/\n , getBlockedSelectors(allSelectors)];\n\n case 1:\n blockedSelectors = _c.sent();\n\n if (debug) {\n printDebug(blockedSelectors);\n }\n\n activeBlockers = filterNames.filter(function (filterName) {\n var selectors = filters[filterName];\n var blockedCount = countTruthy(selectors.map(function (selector) {\n return blockedSelectors[selector];\n }));\n return blockedCount > selectors.length * 0.6;\n });\n activeBlockers.sort();\n return [2\n /*return*/\n , activeBlockers];\n }\n });\n });\n}\n\nfunction isApplicable() {\n // Safari (desktop and mobile) and all Android browsers keep content blockers in both regular and private mode\n return isWebKit() || isAndroid();\n}\n\nfunction getBlockedSelectors(selectors) {\n var _a;\n\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function () {\n var d, root, elements, blockedSelectors, i, element, holder, i;\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_b) {\n switch (_b.label) {\n case 0:\n d = document;\n root = d.createElement('div');\n elements = new Array(selectors.length);\n blockedSelectors = {} // Set() isn't used just in case somebody need older browser support\n ;\n forceShow(root); // First create all elements that can be blocked. If the DOM steps below are done in a single cycle,\n // browser will alternate tree modification and layout reading, that is very slow.\n\n for (i = 0; i < selectors.length; ++i) {\n element = selectorToElement(selectors[i]);\n holder = d.createElement('div') // Protects from unwanted effects of `+` and `~` selectors of filters\n ;\n forceShow(holder);\n holder.appendChild(element);\n root.appendChild(holder);\n elements[i] = element;\n }\n\n _b.label = 1;\n\n case 1:\n if (!!d.body) return [3\n /*break*/\n , 3];\n return [4\n /*yield*/\n , wait(50)];\n\n case 2:\n _b.sent();\n\n return [3\n /*break*/\n , 1];\n\n case 3:\n d.body.appendChild(root);\n\n try {\n // Then check which of the elements are blocked\n for (i = 0; i < selectors.length; ++i) {\n if (!elements[i].offsetParent) {\n blockedSelectors[selectors[i]] = true;\n }\n }\n } finally {\n // Then remove the elements\n (_a = root.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(root);\n }\n\n return [2\n /*return*/\n , blockedSelectors];\n }\n });\n });\n}\n\nfunction forceShow(element) {\n element.style.setProperty('display', 'block', 'important');\n}\n\nfunction printDebug(blockedSelectors) {\n var message = 'DOM blockers debug:\\n```';\n\n for (var _i = 0, _a = Object.keys(filters); _i < _a.length; _i++) {\n var filterName = _a[_i];\n message += \"\\n\" + filterName + \":\";\n\n for (var _b = 0, _c = filters[filterName]; _b < _c.length; _b++) {\n var selector = _c[_b];\n message += \"\\n \" + selector + \" \" + (blockedSelectors[selector] ? '🚫' : '➡️');\n }\n } // console.log is ok here because it's under a debug clause\n // eslint-disable-next-line no-console\n\n\n console.log(message + \"\\n```\");\n}\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/@media/color-gamut\n */\n\n\nfunction getColorGamut() {\n // rec2020 includes p3 and p3 includes srgb\n for (var _i = 0, _a = ['rec2020', 'p3', 'srgb']; _i < _a.length; _i++) {\n var gamut = _a[_i];\n\n if (matchMedia(\"(color-gamut: \" + gamut + \")\").matches) {\n return gamut;\n }\n }\n\n return undefined;\n}\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/@media/inverted-colors\n */\n\n\nfunction areColorsInverted() {\n if (doesMatch('inverted')) {\n return true;\n }\n\n if (doesMatch('none')) {\n return false;\n }\n\n return undefined;\n}\n\nfunction doesMatch(value) {\n return matchMedia(\"(inverted-colors: \" + value + \")\").matches;\n}\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/@media/forced-colors\n */\n\n\nfunction areColorsForced() {\n if (doesMatch$1('active')) {\n return true;\n }\n\n if (doesMatch$1('none')) {\n return false;\n }\n\n return undefined;\n}\n\nfunction doesMatch$1(value) {\n return matchMedia(\"(forced-colors: \" + value + \")\").matches;\n}\n\nvar maxValueToCheck = 100;\n/**\n * If the display is monochrome (e.g. black&white), the value will be ≥0 and will mean the number of bits per pixel.\n * If the display is not monochrome, the returned value will be 0.\n * If the browser doesn't support this feature, the returned value will be undefined.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/@media/monochrome\n */\n\nfunction getMonochromeDepth() {\n if (!matchMedia('(min-monochrome: 0)').matches) {\n // The media feature isn't supported by the browser\n return undefined;\n } // A variation of binary search algorithm can be used here.\n // But since expected values are very small (≤10), there is no sense in adding the complexity.\n\n\n for (var i = 0; i <= maxValueToCheck; ++i) {\n if (matchMedia(\"(max-monochrome: \" + i + \")\").matches) {\n return i;\n }\n }\n\n throw new Error('Too high value');\n}\n/**\n * @see https://www.w3.org/TR/mediaqueries-5/#prefers-contrast\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-contrast\n */\n\n\nfunction getContrastPreference() {\n if (doesMatch$2('no-preference')) {\n return 0\n /* None */\n ;\n } // The sources contradict on the keywords. Probably 'high' and 'low' will never be implemented.\n // Need to check it when all browsers implement the feature.\n\n\n if (doesMatch$2('high') || doesMatch$2('more')) {\n return 1\n /* More */\n ;\n }\n\n if (doesMatch$2('low') || doesMatch$2('less')) {\n return -1\n /* Less */\n ;\n }\n\n if (doesMatch$2('forced')) {\n return 10\n /* ForcedColors */\n ;\n }\n\n return undefined;\n}\n\nfunction doesMatch$2(value) {\n return matchMedia(\"(prefers-contrast: \" + value + \")\").matches;\n}\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion\n */\n\n\nfunction isMotionReduced() {\n if (doesMatch$3('reduce')) {\n return true;\n }\n\n if (doesMatch$3('no-preference')) {\n return false;\n }\n\n return undefined;\n}\n\nfunction doesMatch$3(value) {\n return matchMedia(\"(prefers-reduced-motion: \" + value + \")\").matches;\n}\n/**\n * @see https://www.w3.org/TR/mediaqueries-5/#dynamic-range\n */\n\n\nfunction isHDR() {\n if (doesMatch$4('high')) {\n return true;\n }\n\n if (doesMatch$4('standard')) {\n return false;\n }\n\n return undefined;\n}\n\nfunction doesMatch$4(value) {\n return matchMedia(\"(dynamic-range: \" + value + \")\").matches;\n}\n\nvar M = Math; // To reduce the minified code size\n\nvar fallbackFn = function () {\n return 0;\n};\n/**\n * @see https://gitlab.torproject.org/legacy/trac/-/issues/13018\n * @see https://bugzilla.mozilla.org/show_bug.cgi?id=531915\n */\n\n\nfunction getMathFingerprint() {\n // Native operations\n var acos = M.acos || fallbackFn;\n var acosh = M.acosh || fallbackFn;\n var asin = M.asin || fallbackFn;\n var asinh = M.asinh || fallbackFn;\n var atanh = M.atanh || fallbackFn;\n var atan = M.atan || fallbackFn;\n var sin = M.sin || fallbackFn;\n var sinh = M.sinh || fallbackFn;\n var cos = M.cos || fallbackFn;\n var cosh = M.cosh || fallbackFn;\n var tan = M.tan || fallbackFn;\n var tanh = M.tanh || fallbackFn;\n var exp = M.exp || fallbackFn;\n var expm1 = M.expm1 || fallbackFn;\n var log1p = M.log1p || fallbackFn; // Operation polyfills\n\n var powPI = function (value) {\n return M.pow(M.PI, value);\n };\n\n var acoshPf = function (value) {\n return M.log(value + M.sqrt(value * value - 1));\n };\n\n var asinhPf = function (value) {\n return M.log(value + M.sqrt(value * value + 1));\n };\n\n var atanhPf = function (value) {\n return M.log((1 + value) / (1 - value)) / 2;\n };\n\n var sinhPf = function (value) {\n return M.exp(value) - 1 / M.exp(value) / 2;\n };\n\n var coshPf = function (value) {\n return (M.exp(value) + 1 / M.exp(value)) / 2;\n };\n\n var expm1Pf = function (value) {\n return M.exp(value) - 1;\n };\n\n var tanhPf = function (value) {\n return (M.exp(2 * value) - 1) / (M.exp(2 * value) + 1);\n };\n\n var log1pPf = function (value) {\n return M.log(1 + value);\n }; // Note: constant values are empirical\n\n\n return {\n acos: acos(0.123124234234234242),\n acosh: acosh(1e308),\n acoshPf: acoshPf(1e154),\n asin: asin(0.123124234234234242),\n asinh: asinh(1),\n asinhPf: asinhPf(1),\n atanh: atanh(0.5),\n atanhPf: atanhPf(0.5),\n atan: atan(0.5),\n sin: sin(-1e300),\n sinh: sinh(1),\n sinhPf: sinhPf(1),\n cos: cos(10.000000000123),\n cosh: cosh(1),\n coshPf: coshPf(1),\n tan: tan(-1e300),\n tanh: tanh(1),\n tanhPf: tanhPf(1),\n exp: exp(1),\n expm1: expm1(1),\n expm1Pf: expm1Pf(1),\n log1p: log1p(10),\n log1pPf: log1pPf(10),\n powPI: powPI(-100)\n };\n}\n/**\n * We use m or w because these two characters take up the maximum width.\n * Also there are a couple of ligatures.\n */\n\n\nvar defaultText = 'mmMwWLliI0fiflO&1';\n/**\n * Settings of text blocks to measure. The keys are random but persistent words.\n */\n\nvar presets = {\n /**\n * The default font. User can change it in desktop Chrome, desktop Firefox, IE 11,\n * Android Chrome (but only when the size is ≥ than the default) and Android Firefox.\n */\n default: [],\n\n /** OS font on macOS. User can change its size and weight. Applies after Safari restart. */\n apple: [{\n font: '-apple-system-body'\n }],\n\n /** User can change it in desktop Chrome and desktop Firefox. */\n serif: [{\n fontFamily: 'serif'\n }],\n\n /** User can change it in desktop Chrome and desktop Firefox. */\n sans: [{\n fontFamily: 'sans-serif'\n }],\n\n /** User can change it in desktop Chrome and desktop Firefox. */\n mono: [{\n fontFamily: 'monospace'\n }],\n\n /**\n * Check the smallest allowed font size. User can change it in desktop Chrome, desktop Firefox and desktop Safari.\n * The height can be 0 in Chrome on a retina display.\n */\n min: [{\n fontSize: '1px'\n }],\n\n /** Tells one OS from another in desktop Chrome. */\n system: [{\n fontFamily: 'system-ui'\n }]\n};\n/**\n * The result is a dictionary of the width of the text samples.\n * Heights aren't included because they give no extra entropy and are unstable.\n *\n * The result is very stable in IE 11, Edge 18 and Safari 14.\n * The result changes when the OS pixel density changes in Chromium 87. The real pixel density is required to solve,\n * but seems like it's impossible: https://stackoverflow.com/q/1713771/1118709.\n * The \"min\" and the \"mono\" (only on Windows) value may change when the page is zoomed in Firefox 87.\n */\n\nfunction getFontPreferences() {\n return withNaturalFonts(function (document, container) {\n var elements = {};\n var sizes = {}; // First create all elements to measure. If the DOM steps below are done in a single cycle,\n // browser will alternate tree modification and layout reading, that is very slow.\n\n for (var _i = 0, _a = Object.keys(presets); _i < _a.length; _i++) {\n var key = _a[_i];\n var _b = presets[key],\n _c = _b[0],\n style = _c === void 0 ? {} : _c,\n _d = _b[1],\n text = _d === void 0 ? defaultText : _d;\n var element = document.createElement('span');\n element.textContent = text;\n element.style.whiteSpace = 'nowrap';\n\n for (var _e = 0, _f = Object.keys(style); _e < _f.length; _e++) {\n var name_1 = _f[_e];\n var value = style[name_1];\n\n if (value !== undefined) {\n element.style[name_1] = value;\n }\n }\n\n elements[key] = element;\n container.appendChild(document.createElement('br'));\n container.appendChild(element);\n } // Then measure the created elements\n\n\n for (var _g = 0, _h = Object.keys(presets); _g < _h.length; _g++) {\n var key = _h[_g];\n sizes[key] = elements[key].getBoundingClientRect().width;\n }\n\n return sizes;\n });\n}\n/**\n * Creates a DOM environment that provides the most natural font available, including Android OS font.\n * Measurements of the elements are zoom-independent.\n * Don't put a content to measure inside an absolutely positioned element.\n */\n\n\nfunction withNaturalFonts(action, containerWidthPx) {\n if (containerWidthPx === void 0) {\n containerWidthPx = 4000;\n }\n /*\n * Requirements for Android Chrome to apply the system font size to a text inside an iframe:\n * - The iframe mustn't have a `display: none;` style;\n * - The text mustn't be positioned absolutely;\n * - The text block must be wide enough.\n * 2560px on some devices in portrait orientation for the biggest font size option (32px);\n * - There must be much enough text to form a few lines (I don't know the exact numbers);\n * - The text must have the `text-size-adjust: none` style. Otherwise the text will scale in \"Desktop site\" mode;\n *\n * Requirements for Android Firefox to apply the system font size to a text inside an iframe:\n * - The iframe document must have a header: `<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />`.\n * The only way to set it is to use the `srcdoc` attribute of the iframe;\n * - The iframe content must get loaded before adding extra content with JavaScript;\n *\n * https://example.com as the iframe target always inherits Android font settings so it can be used as a reference.\n *\n * Observations on how page zoom affects the measurements:\n * - macOS Safari 11.1, 12.1, 13.1, 14.0: zoom reset + offsetWidth = 100% reliable;\n * - macOS Safari 11.1, 12.1, 13.1, 14.0: zoom reset + getBoundingClientRect = 100% reliable;\n * - macOS Safari 14.0: offsetWidth = 5% fluctuation;\n * - macOS Safari 14.0: getBoundingClientRect = 5% fluctuation;\n * - iOS Safari 9, 10, 11.0, 12.0: haven't found a way to zoom a page (pinch doesn't change layout);\n * - iOS Safari 13.1, 14.0: zoom reset + offsetWidth = 100% reliable;\n * - iOS Safari 13.1, 14.0: zoom reset + getBoundingClientRect = 100% reliable;\n * - iOS Safari 14.0: offsetWidth = 100% reliable;\n * - iOS Safari 14.0: getBoundingClientRect = 100% reliable;\n * - Chrome 42, 65, 80, 87: zoom 1/devicePixelRatio + offsetWidth = 1px fluctuation;\n * - Chrome 42, 65, 80, 87: zoom 1/devicePixelRatio + getBoundingClientRect = 100% reliable;\n * - Chrome 87: offsetWidth = 1px fluctuation;\n * - Chrome 87: getBoundingClientRect = 0.7px fluctuation;\n * - Firefox 48, 51: offsetWidth = 10% fluctuation;\n * - Firefox 48, 51: getBoundingClientRect = 10% fluctuation;\n * - Firefox 52, 53, 57, 62, 66, 67, 68, 71, 75, 80, 84: offsetWidth = width 100% reliable, height 10% fluctuation;\n * - Firefox 52, 53, 57, 62, 66, 67, 68, 71, 75, 80, 84: getBoundingClientRect = width 100% reliable, height 10%\n * fluctuation;\n * - Android Chrome 86: haven't found a way to zoom a page (pinch doesn't change layout);\n * - Android Firefox 84: font size in accessibility settings changes all the CSS sizes, but offsetWidth and\n * getBoundingClientRect keep measuring with regular units, so the size reflects the font size setting and doesn't\n * fluctuate;\n * - IE 11, Edge 18: zoom 1/devicePixelRatio + offsetWidth = 100% reliable;\n * - IE 11, Edge 18: zoom 1/devicePixelRatio + getBoundingClientRect = reflects the zoom level;\n * - IE 11, Edge 18: offsetWidth = 100% reliable;\n * - IE 11, Edge 18: getBoundingClientRect = 100% reliable;\n */\n\n\n return withIframe(function (_, iframeWindow) {\n var iframeDocument = iframeWindow.document;\n var iframeBody = iframeDocument.body;\n var bodyStyle = iframeBody.style;\n bodyStyle.width = containerWidthPx + \"px\";\n bodyStyle.webkitTextSizeAdjust = bodyStyle.textSizeAdjust = 'none'; // See the big comment above\n\n if (isChromium()) {\n iframeBody.style.zoom = \"\" + 1 / iframeWindow.devicePixelRatio;\n } else if (isWebKit()) {\n iframeBody.style.zoom = 'reset';\n } // See the big comment above\n\n\n var linesOfText = iframeDocument.createElement('div');\n linesOfText.textContent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__spreadArrays\"])(Array(containerWidthPx / 20 << 0)).map(function () {\n return 'word';\n }).join(' ');\n iframeBody.appendChild(linesOfText);\n return action(iframeDocument, iframeBody);\n }, '<!doctype html><html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">');\n}\n/**\n * The list of entropy sources used to make visitor identifiers.\n *\n * This value isn't restricted by Semantic Versioning, i.e. it may be changed without bumping minor or major version of\n * this package.\n */\n\n\nvar sources = {\n // READ FIRST:\n // See https://github.com/fingerprintjs/fingerprintjs/blob/master/contributing.md#how-to-make-an-entropy-source\n // to learn how entropy source works and how to make your own.\n // The sources run in this exact order.\n // The asynchronous sources are at the start to run in parallel with other sources.\n fonts: getFonts,\n domBlockers: getDomBlockers,\n fontPreferences: getFontPreferences,\n audio: getAudioFingerprint,\n screenFrame: getRoundedScreenFrame,\n osCpu: getOsCpu,\n languages: getLanguages,\n colorDepth: getColorDepth,\n deviceMemory: getDeviceMemory,\n screenResolution: getScreenResolution,\n hardwareConcurrency: getHardwareConcurrency,\n timezone: getTimezone,\n sessionStorage: getSessionStorage,\n localStorage: getLocalStorage,\n indexedDB: getIndexedDB,\n openDatabase: getOpenDatabase,\n cpuClass: getCpuClass,\n platform: getPlatform,\n plugins: getPlugins,\n canvas: getCanvasFingerprint,\n touchSupport: getTouchSupport,\n vendor: getVendor,\n vendorFlavors: getVendorFlavors,\n cookiesEnabled: areCookiesEnabled,\n colorGamut: getColorGamut,\n invertedColors: areColorsInverted,\n forcedColors: areColorsForced,\n monochrome: getMonochromeDepth,\n contrast: getContrastPreference,\n reducedMotion: isMotionReduced,\n hdr: isHDR,\n math: getMathFingerprint\n};\n/**\n * Loads the built-in entropy sources.\n * Returns a function that collects the entropy components to make the visitor identifier.\n */\n\nfunction loadBuiltinSources(options) {\n return loadSources(sources, options, []);\n}\n\nvar commentTemplate = '$ if upgrade to Pro: https://fpjs.dev/pro';\n\nfunction getConfidence(components) {\n var openConfidenceScore = getOpenConfidenceScore(components);\n var proConfidenceScore = deriveProConfidenceScore(openConfidenceScore);\n return {\n score: openConfidenceScore,\n comment: commentTemplate.replace(/\\$/g, \"\" + proConfidenceScore)\n };\n}\n\nfunction getOpenConfidenceScore(components) {\n // In order to calculate the true probability of the visitor identifier being correct, we need to know the number of\n // website visitors (the higher the number, the less the probability because the fingerprint entropy is limited).\n // JS agent doesn't know the number of visitors, so we can only do an approximate assessment.\n if (isAndroid()) {\n return 0.4;\n } // Safari (mobile and desktop)\n\n\n if (isWebKit()) {\n return isDesktopSafari() ? 0.5 : 0.3;\n }\n\n var platform = components.platform.value || ''; // Windows\n\n if (/^Win/.test(platform)) {\n // The score is greater than on macOS because of the higher variety of devices running Windows.\n // Chrome provides more entropy than Firefox according too\n // https://netmarketshare.com/browser-market-share.aspx?options=%7B%22filter%22%3A%7B%22%24and%22%3A%5B%7B%22platform%22%3A%7B%22%24in%22%3A%5B%22Windows%22%5D%7D%7D%5D%7D%2C%22dateLabel%22%3A%22Trend%22%2C%22attributes%22%3A%22share%22%2C%22group%22%3A%22browser%22%2C%22sort%22%3A%7B%22share%22%3A-1%7D%2C%22id%22%3A%22browsersDesktop%22%2C%22dateInterval%22%3A%22Monthly%22%2C%22dateStart%22%3A%222019-11%22%2C%22dateEnd%22%3A%222020-10%22%2C%22segments%22%3A%22-1000%22%7D\n // So we assign the same score to them.\n return 0.6;\n } // macOS\n\n\n if (/^Mac/.test(platform)) {\n // Chrome provides more entropy than Safari and Safari provides more entropy than Firefox.\n // Chrome is more popular than Safari and Safari is more popular than Firefox according to\n // https://netmarketshare.com/browser-market-share.aspx?options=%7B%22filter%22%3A%7B%22%24and%22%3A%5B%7B%22platform%22%3A%7B%22%24in%22%3A%5B%22Mac%20OS%22%5D%7D%7D%5D%7D%2C%22dateLabel%22%3A%22Trend%22%2C%22attributes%22%3A%22share%22%2C%22group%22%3A%22browser%22%2C%22sort%22%3A%7B%22share%22%3A-1%7D%2C%22id%22%3A%22browsersDesktop%22%2C%22dateInterval%22%3A%22Monthly%22%2C%22dateStart%22%3A%222019-11%22%2C%22dateEnd%22%3A%222020-10%22%2C%22segments%22%3A%22-1000%22%7D\n // So we assign the same score to them.\n return 0.5;\n } // Another platform, e.g. a desktop Linux. It's rare, so it should be pretty unique.\n\n\n return 0.7;\n}\n\nfunction deriveProConfidenceScore(openConfidenceScore) {\n return round(0.99 + 0.01 * openConfidenceScore, 0.0001);\n}\n\nfunction componentsToCanonicalString(components) {\n var result = '';\n\n for (var _i = 0, _a = Object.keys(components).sort(); _i < _a.length; _i++) {\n var componentKey = _a[_i];\n var component = components[componentKey];\n var value = component.error ? 'error' : JSON.stringify(component.value);\n result += \"\" + (result ? '|' : '') + componentKey.replace(/([:|\\\\])/g, '\\\\$1') + \":\" + value;\n }\n\n return result;\n}\n\nfunction componentsToDebugString(components) {\n return JSON.stringify(components, function (_key, value) {\n if (value instanceof Error) {\n return errorToObject(value);\n }\n\n return value;\n }, 2);\n}\n\nfunction hashComponents(components) {\n return x64hash128(componentsToCanonicalString(components));\n}\n/**\n * Makes a GetResult implementation that calculates the visitor id hash on demand.\n * Designed for optimisation.\n */\n\n\nfunction makeLazyGetResult(components) {\n var visitorIdCache; // This function runs very fast, so there is no need to make it lazy\n\n var confidence = getConfidence(components); // A plain class isn't used because its getters and setters aren't enumerable.\n\n return {\n get visitorId() {\n if (visitorIdCache === undefined) {\n visitorIdCache = hashComponents(this.components);\n }\n\n return visitorIdCache;\n },\n\n set visitorId(visitorId) {\n visitorIdCache = visitorId;\n },\n\n confidence: confidence,\n components: components,\n version: version\n };\n}\n/**\n * A delay is required to ensure consistent entropy components.\n * See https://github.com/fingerprintjs/fingerprintjs/issues/254\n * and https://github.com/fingerprintjs/fingerprintjs/issues/307\n * and https://github.com/fingerprintjs/fingerprintjs/commit/945633e7c5f67ae38eb0fea37349712f0e669b18\n */\n\n\nfunction prepareForSources(delayFallback) {\n if (delayFallback === void 0) {\n delayFallback = 50;\n } // A proper deadline is unknown. Let it be twice the fallback timeout so that both cases have the same average time.\n\n\n return requestIdleCallbackIfAvailable(delayFallback, delayFallback * 2);\n}\n/**\n * The function isn't exported from the index file to not allow to call it without `load()`.\n * The hiding gives more freedom for future non-breaking updates.\n *\n * A factory function is used instead of a class to shorten the attribute names in the minified code.\n * Native private class fields could've been used, but TypeScript doesn't allow them with `\"target\": \"es5\"`.\n */\n\n\nfunction makeAgent(getComponents, debug) {\n var creationTime = Date.now();\n return {\n get: function (options) {\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function () {\n var startTime, components, result;\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_a) {\n switch (_a.label) {\n case 0:\n startTime = Date.now();\n return [4\n /*yield*/\n , getComponents()];\n\n case 1:\n components = _a.sent();\n result = makeLazyGetResult(components);\n\n if (debug || (options === null || options === void 0 ? void 0 : options.debug)) {\n // console.log is ok here because it's under a debug clause\n // eslint-disable-next-line no-console\n console.log(\"Copy the text below to get the debug data:\\n\\n```\\nversion: \" + result.version + \"\\nuserAgent: \" + navigator.userAgent + \"\\ntimeBetweenLoadAndGet: \" + (startTime - creationTime) + \"\\nvisitorId: \" + result.visitorId + \"\\ncomponents: \" + componentsToDebugString(components) + \"\\n```\");\n }\n\n return [2\n /*return*/\n , result];\n }\n });\n });\n }\n };\n}\n/**\n * Sends an unpersonalized AJAX request to collect installation statistics\n */\n\n\nfunction monitor() {\n // The FingerprintJS CDN (https://github.com/fingerprintjs/cdn) replaces `window.__fpjs_d_m` with `true`\n if (window.__fpjs_d_m || Math.random() >= 0.01) {\n return;\n }\n\n try {\n var request = new XMLHttpRequest();\n request.open('get', \"https://openfpcdn.io/fingerprintjs/v\" + version + \"/npm-monitoring\", true);\n request.send();\n } catch (error) {\n // console.error is ok here because it's an unexpected error handler\n // eslint-disable-next-line no-console\n console.error(error);\n }\n}\n/**\n * Builds an instance of Agent and waits a delay required for a proper operation.\n */\n\n\nfunction load(_a) {\n var _b = _a === void 0 ? {} : _a,\n delayFallback = _b.delayFallback,\n debug = _b.debug,\n _c = _b.monitoring,\n monitoring = _c === void 0 ? true : _c;\n\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__awaiter\"])(this, void 0, void 0, function () {\n var getComponents;\n return Object(tslib__WEBPACK_IMPORTED_MODULE_0__[\"__generator\"])(this, function (_d) {\n switch (_d.label) {\n case 0:\n if (monitoring) {\n monitor();\n }\n\n return [4\n /*yield*/\n , prepareForSources(delayFallback)];\n\n case 1:\n _d.sent();\n\n getComponents = loadBuiltinSources({\n debug: debug\n });\n return [2\n /*return*/\n , makeAgent(getComponents, debug)];\n }\n });\n });\n} // The default export is a syntax sugar (`import * as FP from '...' → import FP from '...'`).\n// It should contain all the public exported values.\n\n\nvar index = {\n load: load,\n hashComponents: hashComponents,\n componentsToDebugString: componentsToDebugString\n}; // The exports below are for private usage. They may change unexpectedly. Use them at your own risk.\n\n/** Not documented, out of Semantic Versioning, usage is at your own risk */\n\nvar murmurX64Hash128 = x64hash128;\n/* harmony default export */ __webpack_exports__[\"default\"] = (index);\n\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/@fingerprintjs/fingerprintjs/dist/fp.esm.js?");
|
|
705
706
|
|
|
706
707
|
/***/ }),
|
|
707
708
|
|
|
@@ -1436,7 +1437,7 @@ eval("var Buffer = __webpack_require__(/*! safe-buffer */ \"./node_modules/safe-
|
|
|
1436
1437
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1437
1438
|
|
|
1438
1439
|
"use strict";
|
|
1439
|
-
eval("/*!\n * cookie\n * Copyright(c) 2012-2014 Roman Shtylman\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n/**\n * Module exports.\n * @public\n */\n\nexports.parse = parse;\nexports.serialize = serialize;\n/**\n * Module variables.\n * @private\n */\n\nvar decode = decodeURIComponent;\nvar encode = encodeURIComponent;\
|
|
1440
|
+
eval("/*!\n * cookie\n * Copyright(c) 2012-2014 Roman Shtylman\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n/**\n * Module exports.\n * @public\n */\n\nexports.parse = parse;\nexports.serialize = serialize;\n/**\n * Module variables.\n * @private\n */\n\nvar decode = decodeURIComponent;\nvar encode = encodeURIComponent;\n/**\n * RegExp to match field-content in RFC 7230 sec 3.2\n *\n * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]\n * field-vchar = VCHAR / obs-text\n * obs-text = %x80-FF\n */\n\nvar fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\n/**\n * Parse a cookie header.\n *\n * Parse the given cookie header string into an object\n * The object has the various cookies as keys(names) => values\n *\n * @param {string} str\n * @param {object} [options]\n * @return {object}\n * @public\n */\n\nfunction parse(str, options) {\n if (typeof str !== 'string') {\n throw new TypeError('argument str must be a string');\n }\n\n var obj = {};\n var opt = options || {};\n var pairs = str.split(';');\n var dec = opt.decode || decode;\n\n for (var i = 0; i < pairs.length; i++) {\n var pair = pairs[i];\n var index = pair.indexOf('='); // skip things that don't look like key=value\n\n if (index < 0) {\n continue;\n }\n\n var key = pair.substring(0, index).trim(); // only assign once\n\n if (undefined == obj[key]) {\n var val = pair.substring(index + 1, pair.length).trim(); // quoted values\n\n if (val[0] === '\"') {\n val = val.slice(1, -1);\n }\n\n obj[key] = tryDecode(val, dec);\n }\n }\n\n return obj;\n}\n/**\n * Serialize data into a cookie header.\n *\n * Serialize the a name value pair into a cookie string suitable for\n * http headers. An optional options object specified cookie parameters.\n *\n * serialize('foo', 'bar', { httpOnly: true })\n * => \"foo=bar; httpOnly\"\n *\n * @param {string} name\n * @param {string} val\n * @param {object} [options]\n * @return {string}\n * @public\n */\n\n\nfunction serialize(name, val, options) {\n var opt = options || {};\n var enc = opt.encode || encode;\n\n if (typeof enc !== 'function') {\n throw new TypeError('option encode is invalid');\n }\n\n if (!fieldContentRegExp.test(name)) {\n throw new TypeError('argument name is invalid');\n }\n\n var value = enc(val);\n\n if (value && !fieldContentRegExp.test(value)) {\n throw new TypeError('argument val is invalid');\n }\n\n var str = name + '=' + value;\n\n if (null != opt.maxAge) {\n var maxAge = opt.maxAge - 0;\n\n if (isNaN(maxAge) || !isFinite(maxAge)) {\n throw new TypeError('option maxAge is invalid');\n }\n\n str += '; Max-Age=' + Math.floor(maxAge);\n }\n\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n\n str += '; Domain=' + opt.domain;\n }\n\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n\n str += '; Path=' + opt.path;\n }\n\n if (opt.expires) {\n if (typeof opt.expires.toUTCString !== 'function') {\n throw new TypeError('option expires is invalid');\n }\n\n str += '; Expires=' + opt.expires.toUTCString();\n }\n\n if (opt.httpOnly) {\n str += '; HttpOnly';\n }\n\n if (opt.secure) {\n str += '; Secure';\n }\n\n if (opt.sameSite) {\n var sameSite = typeof opt.sameSite === 'string' ? opt.sameSite.toLowerCase() : opt.sameSite;\n\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n\n case 'lax':\n str += '; SameSite=Lax';\n break;\n\n case 'strict':\n str += '; SameSite=Strict';\n break;\n\n case 'none':\n str += '; SameSite=None';\n break;\n\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n\n return str;\n}\n/**\n * Try decoding a string using a decoding function.\n *\n * @param {string} str\n * @param {function} decode\n * @private\n */\n\n\nfunction tryDecode(str, decode) {\n try {\n return decode(str);\n } catch (e) {\n return str;\n }\n}\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/cookie/index.js?");
|
|
1440
1441
|
|
|
1441
1442
|
/***/ }),
|
|
1442
1443
|
|
|
@@ -2763,9 +2764,9 @@ eval("var fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules
|
|
|
2763
2764
|
!*** ./node_modules/core-js-pure/internals/function-apply.js ***!
|
|
2764
2765
|
\***************************************************************/
|
|
2765
2766
|
/*! no static exports found */
|
|
2766
|
-
/***/ (function(module, exports) {
|
|
2767
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2767
2768
|
|
|
2768
|
-
eval("var
|
|
2769
|
+
eval("var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ \"./node_modules/core-js-pure/internals/function-bind-native.js\");\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call; // eslint-disable-next-line es/no-reflect -- safe\n\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/core-js-pure/internals/function-apply.js?");
|
|
2769
2770
|
|
|
2770
2771
|
/***/ }),
|
|
2771
2772
|
|
|
@@ -2776,7 +2777,18 @@ eval("var FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype
|
|
|
2776
2777
|
/*! no static exports found */
|
|
2777
2778
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2778
2779
|
|
|
2779
|
-
eval("var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js-pure/internals/function-uncurry-this.js\");\n\nvar aCallable = __webpack_require__(/*! ../internals/a-callable */ \"./node_modules/core-js-pure/internals/a-callable.js\");\n\nvar bind = uncurryThis(uncurryThis.bind); // optional / simple context binding\n\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn :
|
|
2780
|
+
eval("var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js-pure/internals/function-uncurry-this.js\");\n\nvar aCallable = __webpack_require__(/*! ../internals/a-callable */ \"./node_modules/core-js-pure/internals/a-callable.js\");\n\nvar NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ \"./node_modules/core-js-pure/internals/function-bind-native.js\");\n\nvar bind = uncurryThis(uncurryThis.bind); // optional / simple context binding\n\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function\n /* ...args */\n () {\n return fn.apply(that, arguments);\n };\n};\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/core-js-pure/internals/function-bind-context.js?");
|
|
2781
|
+
|
|
2782
|
+
/***/ }),
|
|
2783
|
+
|
|
2784
|
+
/***/ "./node_modules/core-js-pure/internals/function-bind-native.js":
|
|
2785
|
+
/*!*********************************************************************!*\
|
|
2786
|
+
!*** ./node_modules/core-js-pure/internals/function-bind-native.js ***!
|
|
2787
|
+
\*********************************************************************/
|
|
2788
|
+
/*! no static exports found */
|
|
2789
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2790
|
+
|
|
2791
|
+
eval("var fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js-pure/internals/fails.js\");\n\nmodule.exports = !fails(function () {\n var test = function () {\n /* empty */\n }.bind(); // eslint-disable-next-line no-prototype-builtins -- safe\n\n\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/core-js-pure/internals/function-bind-native.js?");
|
|
2780
2792
|
|
|
2781
2793
|
/***/ }),
|
|
2782
2794
|
|
|
@@ -2785,9 +2797,9 @@ eval("var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-th
|
|
|
2785
2797
|
!*** ./node_modules/core-js-pure/internals/function-call.js ***!
|
|
2786
2798
|
\**************************************************************/
|
|
2787
2799
|
/*! no static exports found */
|
|
2788
|
-
/***/ (function(module, exports) {
|
|
2800
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2789
2801
|
|
|
2790
|
-
eval("var call = Function.prototype.call;\nmodule.exports =
|
|
2802
|
+
eval("var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ \"./node_modules/core-js-pure/internals/function-bind-native.js\");\n\nvar call = Function.prototype.call;\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/core-js-pure/internals/function-call.js?");
|
|
2791
2803
|
|
|
2792
2804
|
/***/ }),
|
|
2793
2805
|
|
|
@@ -2807,9 +2819,9 @@ eval("var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"./
|
|
|
2807
2819
|
!*** ./node_modules/core-js-pure/internals/function-uncurry-this.js ***!
|
|
2808
2820
|
\**********************************************************************/
|
|
2809
2821
|
/*! no static exports found */
|
|
2810
|
-
/***/ (function(module, exports) {
|
|
2822
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2811
2823
|
|
|
2812
|
-
eval("var FunctionPrototype = Function.prototype;\nvar bind = FunctionPrototype.bind;\nvar call = FunctionPrototype.call;\nvar uncurryThis =
|
|
2824
|
+
eval("var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ \"./node_modules/core-js-pure/internals/function-bind-native.js\");\n\nvar FunctionPrototype = Function.prototype;\nvar bind = FunctionPrototype.bind;\nvar call = FunctionPrototype.call;\nvar uncurryThis = NATIVE_BIND && bind.bind(call, call);\nmodule.exports = NATIVE_BIND ? function (fn) {\n return fn && uncurryThis(fn);\n} : function (fn) {\n return fn && function () {\n return call.apply(fn, arguments);\n };\n};\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/core-js-pure/internals/function-uncurry-this.js?");
|
|
2813
2825
|
|
|
2814
2826
|
/***/ }),
|
|
2815
2827
|
|
|
@@ -2919,7 +2931,7 @@ eval("var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ \"./
|
|
|
2919
2931
|
/*! no static exports found */
|
|
2920
2932
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2921
2933
|
|
|
2922
|
-
eval("var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"./node_modules/core-js-pure/internals/descriptors.js\");\n\nvar fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js-pure/internals/fails.js\");\n\nvar createElement = __webpack_require__(/*! ../internals/document-create-element */ \"./node_modules/core-js-pure/internals/document-create-element.js\"); //
|
|
2934
|
+
eval("var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"./node_modules/core-js-pure/internals/descriptors.js\");\n\nvar fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js-pure/internals/fails.js\");\n\nvar createElement = __webpack_require__(/*! ../internals/document-create-element */ \"./node_modules/core-js-pure/internals/document-create-element.js\"); // Thanks to IE8 for its funny defineProperty\n\n\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () {\n return 7;\n }\n }).a != 7;\n});\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/core-js-pure/internals/ie8-dom-define.js?");
|
|
2923
2935
|
|
|
2924
2936
|
/***/ }),
|
|
2925
2937
|
|
|
@@ -3574,7 +3586,7 @@ eval("var global = __webpack_require__(/*! ../internals/global */ \"./node_modul
|
|
|
3574
3586
|
/*! no static exports found */
|
|
3575
3587
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3576
3588
|
|
|
3577
|
-
eval("var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ \"./node_modules/core-js-pure/internals/is-pure.js\");\n\nvar store = __webpack_require__(/*! ../internals/shared-store */ \"./node_modules/core-js-pure/internals/shared-store.js\");\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.
|
|
3589
|
+
eval("var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ \"./node_modules/core-js-pure/internals/is-pure.js\");\n\nvar store = __webpack_require__(/*! ../internals/shared-store */ \"./node_modules/core-js-pure/internals/shared-store.js\");\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.21.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/core-js-pure/internals/shared.js?");
|
|
3578
3590
|
|
|
3579
3591
|
/***/ }),
|
|
3580
3592
|
|
|
@@ -3607,7 +3619,7 @@ eval("var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-th
|
|
|
3607
3619
|
/*! no static exports found */
|
|
3608
3620
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3609
3621
|
|
|
3610
|
-
eval("var global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js-pure/internals/global.js\");\n\nvar apply = __webpack_require__(/*! ../internals/function-apply */ \"./node_modules/core-js-pure/internals/function-apply.js\");\n\nvar bind = __webpack_require__(/*! ../internals/function-bind-context */ \"./node_modules/core-js-pure/internals/function-bind-context.js\");\n\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js-pure/internals/is-callable.js\");\n\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"./node_modules/core-js-pure/internals/has-own-property.js\");\n\nvar fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js-pure/internals/fails.js\");\n\nvar html = __webpack_require__(/*! ../internals/html */ \"./node_modules/core-js-pure/internals/html.js\");\n\nvar arraySlice = __webpack_require__(/*! ../internals/array-slice */ \"./node_modules/core-js-pure/internals/array-slice.js\");\n\nvar createElement = __webpack_require__(/*! ../internals/document-create-element */ \"./node_modules/core-js-pure/internals/document-create-element.js\");\n\nvar IS_IOS = __webpack_require__(/*! ../internals/engine-is-ios */ \"./node_modules/core-js-pure/internals/engine-is-ios.js\");\n\nvar IS_NODE = __webpack_require__(/*! ../internals/engine-is-node */ \"./node_modules/core-js-pure/internals/engine-is-node.js\");\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar location, defer, channel, port;\n\ntry {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n location = global.location;\n} catch (error) {\n /* empty */\n}\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar listener = function (event) {\n run(event.data);\n};\n\nvar post = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), location.protocol + '//' + location.host);\n}; // Node.js 0.9+ & IE10+ has setImmediate, otherwise:\n\n\nif (!set || !clear) {\n set = function setImmediate(
|
|
3622
|
+
eval("var global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js-pure/internals/global.js\");\n\nvar apply = __webpack_require__(/*! ../internals/function-apply */ \"./node_modules/core-js-pure/internals/function-apply.js\");\n\nvar bind = __webpack_require__(/*! ../internals/function-bind-context */ \"./node_modules/core-js-pure/internals/function-bind-context.js\");\n\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js-pure/internals/is-callable.js\");\n\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"./node_modules/core-js-pure/internals/has-own-property.js\");\n\nvar fails = __webpack_require__(/*! ../internals/fails */ \"./node_modules/core-js-pure/internals/fails.js\");\n\nvar html = __webpack_require__(/*! ../internals/html */ \"./node_modules/core-js-pure/internals/html.js\");\n\nvar arraySlice = __webpack_require__(/*! ../internals/array-slice */ \"./node_modules/core-js-pure/internals/array-slice.js\");\n\nvar createElement = __webpack_require__(/*! ../internals/document-create-element */ \"./node_modules/core-js-pure/internals/document-create-element.js\");\n\nvar validateArgumentsLength = __webpack_require__(/*! ../internals/validate-arguments-length */ \"./node_modules/core-js-pure/internals/validate-arguments-length.js\");\n\nvar IS_IOS = __webpack_require__(/*! ../internals/engine-is-ios */ \"./node_modules/core-js-pure/internals/engine-is-ios.js\");\n\nvar IS_NODE = __webpack_require__(/*! ../internals/engine-is-node */ \"./node_modules/core-js-pure/internals/engine-is-node.js\");\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar location, defer, channel, port;\n\ntry {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n location = global.location;\n} catch (error) {\n /* empty */\n}\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar listener = function (event) {\n run(event.data);\n};\n\nvar post = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), location.protocol + '//' + location.host);\n}; // Node.js 0.9+ & IE10+ has setImmediate, otherwise:\n\n\nif (!set || !clear) {\n set = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable(handler) ? handler : Function(handler);\n var args = arraySlice(arguments, 1);\n\n queue[++counter] = function () {\n apply(fn, undefined, args);\n };\n\n defer(counter);\n return counter;\n };\n\n clear = function clearImmediate(id) {\n delete queue[id];\n }; // Node.js 0.8-\n\n\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n }; // Sphere (JS game engine) Dispatch API\n\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n }; // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = bind(port.postMessage, port); // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (global.addEventListener && isCallable(global.postMessage) && !global.importScripts && location && location.protocol !== 'file:' && !fails(post)) {\n defer = post;\n global.addEventListener('message', listener, false); // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n }; // Rest old browsers\n\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/core-js-pure/internals/task.js?");
|
|
3611
3623
|
|
|
3612
3624
|
/***/ }),
|
|
3613
3625
|
|
|
@@ -3754,6 +3766,17 @@ eval("var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ \"./
|
|
|
3754
3766
|
|
|
3755
3767
|
/***/ }),
|
|
3756
3768
|
|
|
3769
|
+
/***/ "./node_modules/core-js-pure/internals/validate-arguments-length.js":
|
|
3770
|
+
/*!**************************************************************************!*\
|
|
3771
|
+
!*** ./node_modules/core-js-pure/internals/validate-arguments-length.js ***!
|
|
3772
|
+
\**************************************************************************/
|
|
3773
|
+
/*! no static exports found */
|
|
3774
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3775
|
+
|
|
3776
|
+
eval("var global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js-pure/internals/global.js\");\n\nvar TypeError = global.TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw TypeError('Not enough arguments');\n return passed;\n};\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/core-js-pure/internals/validate-arguments-length.js?");
|
|
3777
|
+
|
|
3778
|
+
/***/ }),
|
|
3779
|
+
|
|
3757
3780
|
/***/ "./node_modules/core-js-pure/internals/well-known-symbol-wrapped.js":
|
|
3758
3781
|
/*!**************************************************************************!*\
|
|
3759
3782
|
!*** ./node_modules/core-js-pure/internals/well-known-symbol-wrapped.js ***!
|
|
@@ -4365,7 +4388,7 @@ eval("// TODO: Remove from `core-js@4`\n__webpack_require__(/*! ../modules/es.pr
|
|
|
4365
4388
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4366
4389
|
|
|
4367
4390
|
"use strict";
|
|
4368
|
-
eval("\n\nvar $ = __webpack_require__(/*! ../internals/export */ \"./node_modules/core-js-pure/internals/export.js\");\n\nvar newPromiseCapabilityModule = __webpack_require__(/*! ../internals/new-promise-capability */ \"./node_modules/core-js-pure/internals/new-promise-capability.js\");\n\nvar perform = __webpack_require__(/*! ../internals/perform */ \"./node_modules/core-js-pure/internals/perform.js\"); // `Promise.try` method\n// https://github.com/tc39/proposal-promise-try\n\n\n$({\n target: 'Promise',\n stat: true\n}, {\n 'try': function (callbackfn) {\n var promiseCapability = newPromiseCapabilityModule.f(this);\n var result = perform(callbackfn);\n (result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value);\n return promiseCapability.promise;\n }\n});\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/core-js-pure/modules/esnext.promise.try.js?");
|
|
4391
|
+
eval("\n\nvar $ = __webpack_require__(/*! ../internals/export */ \"./node_modules/core-js-pure/internals/export.js\");\n\nvar newPromiseCapabilityModule = __webpack_require__(/*! ../internals/new-promise-capability */ \"./node_modules/core-js-pure/internals/new-promise-capability.js\");\n\nvar perform = __webpack_require__(/*! ../internals/perform */ \"./node_modules/core-js-pure/internals/perform.js\"); // `Promise.try` method\n// https://github.com/tc39/proposal-promise-try\n\n\n$({\n target: 'Promise',\n stat: true,\n forced: true\n}, {\n 'try': function (callbackfn) {\n var promiseCapability = newPromiseCapabilityModule.f(this);\n var result = perform(callbackfn);\n (result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value);\n return promiseCapability.promise;\n }\n});\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/core-js-pure/modules/esnext.promise.try.js?");
|
|
4369
4392
|
|
|
4370
4393
|
/***/ }),
|
|
4371
4394
|
|
|
@@ -4465,7 +4488,7 @@ eval("__webpack_require__(/*! ../modules/es.array.iterator */ \"./node_modules/c
|
|
|
4465
4488
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4466
4489
|
|
|
4467
4490
|
"use strict";
|
|
4468
|
-
eval(" // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`\n\n__webpack_require__(/*! ../modules/es.array.iterator */ \"./node_modules/core-js-pure/modules/es.array.iterator.js\");\n\nvar $ = __webpack_require__(/*! ../internals/export */ \"./node_modules/core-js-pure/internals/export.js\");\n\nvar global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js-pure/internals/global.js\");\n\nvar getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ \"./node_modules/core-js-pure/internals/get-built-in.js\");\n\nvar call = __webpack_require__(/*! ../internals/function-call */ \"./node_modules/core-js-pure/internals/function-call.js\");\n\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js-pure/internals/function-uncurry-this.js\");\n\nvar USE_NATIVE_URL = __webpack_require__(/*! ../internals/native-url */ \"./node_modules/core-js-pure/internals/native-url.js\");\n\nvar redefine = __webpack_require__(/*! ../internals/redefine */ \"./node_modules/core-js-pure/internals/redefine.js\");\n\nvar redefineAll = __webpack_require__(/*! ../internals/redefine-all */ \"./node_modules/core-js-pure/internals/redefine-all.js\");\n\nvar setToStringTag = __webpack_require__(/*! ../internals/set-to-string-tag */ \"./node_modules/core-js-pure/internals/set-to-string-tag.js\");\n\nvar createIteratorConstructor = __webpack_require__(/*! ../internals/create-iterator-constructor */ \"./node_modules/core-js-pure/internals/create-iterator-constructor.js\");\n\nvar InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ \"./node_modules/core-js-pure/internals/internal-state.js\");\n\nvar anInstance = __webpack_require__(/*! ../internals/an-instance */ \"./node_modules/core-js-pure/internals/an-instance.js\");\n\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js-pure/internals/is-callable.js\");\n\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"./node_modules/core-js-pure/internals/has-own-property.js\");\n\nvar bind = __webpack_require__(/*! ../internals/function-bind-context */ \"./node_modules/core-js-pure/internals/function-bind-context.js\");\n\nvar classof = __webpack_require__(/*! ../internals/classof */ \"./node_modules/core-js-pure/internals/classof.js\");\n\nvar anObject = __webpack_require__(/*! ../internals/an-object */ \"./node_modules/core-js-pure/internals/an-object.js\");\n\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"./node_modules/core-js-pure/internals/is-object.js\");\n\nvar $toString = __webpack_require__(/*! ../internals/to-string */ \"./node_modules/core-js-pure/internals/to-string.js\");\n\nvar create = __webpack_require__(/*! ../internals/object-create */ \"./node_modules/core-js-pure/internals/object-create.js\");\n\nvar createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ \"./node_modules/core-js-pure/internals/create-property-descriptor.js\");\n\nvar getIterator = __webpack_require__(/*! ../internals/get-iterator */ \"./node_modules/core-js-pure/internals/get-iterator.js\");\n\nvar getIteratorMethod = __webpack_require__(/*! ../internals/get-iterator-method */ \"./node_modules/core-js-pure/internals/get-iterator-method.js\");\n\nvar wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ \"./node_modules/core-js-pure/internals/well-known-symbol.js\");\n\nvar arraySort = __webpack_require__(/*! ../internals/array-sort */ \"./node_modules/core-js-pure/internals/array-sort.js\");\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar URL_SEARCH_PARAMS = 'URLSearchParams';\nvar URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);\nvar getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);\nvar n$Fetch = getBuiltIn('fetch');\nvar N$Request = getBuiltIn('Request');\nvar Headers = getBuiltIn('Headers');\nvar RequestPrototype = N$Request && N$Request.prototype;\nvar HeadersPrototype = Headers && Headers.prototype;\nvar RegExp = global.RegExp;\nvar TypeError = global.TypeError;\nvar decodeURIComponent = global.decodeURIComponent;\nvar encodeURIComponent = global.encodeURIComponent;\nvar charAt = uncurryThis(''.charAt);\nvar join = uncurryThis([].join);\nvar push = uncurryThis([].push);\nvar replace = uncurryThis(''.replace);\nvar shift = uncurryThis([].shift);\nvar splice = uncurryThis([].splice);\nvar split = uncurryThis(''.split);\nvar stringSlice = uncurryThis(''.slice);\nvar plus = /\\+/g;\nvar sequences = Array(4);\n\nvar percentSequence = function (bytes) {\n return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\\\da-f]{2}){' + bytes + '})', 'gi'));\n};\n\nvar percentDecode = function (sequence) {\n try {\n return decodeURIComponent(sequence);\n } catch (error) {\n return sequence;\n }\n};\n\nvar deserialize = function (it) {\n var result = replace(it, plus, ' ');\n var bytes = 4;\n\n try {\n return decodeURIComponent(result);\n } catch (error) {\n while (bytes) {\n result = replace(result, percentSequence(bytes--), percentDecode);\n }\n\n return result;\n }\n};\n\nvar find = /[!'()~]|%20/g;\nvar replacements = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+'\n};\n\nvar replacer = function (match) {\n return replacements[match];\n};\n\nvar serialize = function (it) {\n return replace(encodeURIComponent(it), find, replacer);\n};\n\nvar validateArgumentsLength = function (passed, required) {\n if (passed < required) throw TypeError('Not enough arguments');\n};\n\nvar URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {\n setInternalState(this, {\n type: URL_SEARCH_PARAMS_ITERATOR,\n iterator: getIterator(getInternalParamsState(params).entries),\n kind: kind\n });\n}, 'Iterator', function next() {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var step = state.iterator.next();\n var entry = step.value;\n\n if (!step.done) {\n step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];\n }\n\n return step;\n}, true);\n\nvar URLSearchParamsState = function (init) {\n this.entries = [];\n this.url = null;\n\n if (init !== undefined) {\n if (isObject(init)) this.parseObject(init);else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init));\n }\n};\n\nURLSearchParamsState.prototype = {\n type: URL_SEARCH_PARAMS,\n bindURL: function (url) {\n this.url = url;\n this.update();\n },\n parseObject: function (object) {\n var iteratorMethod = getIteratorMethod(object);\n var iterator, next, step, entryIterator, entryNext, first, second;\n\n if (iteratorMethod) {\n iterator = getIterator(object, iteratorMethod);\n next = iterator.next;\n\n while (!(step = call(next, iterator)).done) {\n entryIterator = getIterator(anObject(step.value));\n entryNext = entryIterator.next;\n if ((first = call(entryNext, entryIterator)).done || (second = call(entryNext, entryIterator)).done || !call(entryNext, entryIterator).done) throw TypeError('Expected sequence with length 2');\n push(this.entries, {\n key: $toString(first.value),\n value: $toString(second.value)\n });\n }\n } else for (var key in object) if (hasOwn(object, key)) {\n push(this.entries, {\n key: key,\n value: $toString(object[key])\n });\n }\n },\n parseQuery: function (query) {\n if (query) {\n var attributes = split(query, '&');\n var index = 0;\n var attribute, entry;\n\n while (index < attributes.length) {\n attribute = attributes[index++];\n\n if (attribute.length) {\n entry = split(attribute, '=');\n push(this.entries, {\n key: deserialize(shift(entry)),\n value: deserialize(join(entry, '='))\n });\n }\n }\n }\n },\n serialize: function () {\n var entries = this.entries;\n var result = [];\n var index = 0;\n var entry;\n\n while (index < entries.length) {\n entry = entries[index++];\n push(result, serialize(entry.key) + '=' + serialize(entry.value));\n }\n\n return join(result, '&');\n },\n update: function () {\n this.entries.length = 0;\n this.parseQuery(this.url.query);\n },\n updateURL: function () {\n if (this.url) this.url.update();\n }\n}; // `URLSearchParams` constructor\n// https://url.spec.whatwg.org/#interface-urlsearchparams\n\nvar URLSearchParamsConstructor = function\n /* init */\nURLSearchParams() {\n anInstance(this, URLSearchParamsPrototype);\n var init = arguments.length > 0 ? arguments[0] : undefined;\n setInternalState(this, new URLSearchParamsState(init));\n};\n\nvar URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;\nredefineAll(URLSearchParamsPrototype, {\n // `URLSearchParams.prototype.append` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-append\n append: function append(name, value) {\n validateArgumentsLength(arguments.length, 2);\n var state = getInternalParamsState(this);\n push(state.entries, {\n key: $toString(name),\n value: $toString(value)\n });\n state.updateURL();\n },\n // `URLSearchParams.prototype.delete` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-delete\n 'delete': function (name) {\n validateArgumentsLength(arguments.length, 1);\n var state = getInternalParamsState(this);\n var entries = state.entries;\n var key = $toString(name);\n var index = 0;\n\n while (index < entries.length) {\n if (entries[index].key === key) splice(entries, index, 1);else index++;\n }\n\n state.updateURL();\n },\n // `URLSearchParams.prototype.get` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-get\n get: function get(name) {\n validateArgumentsLength(arguments.length, 1);\n var entries = getInternalParamsState(this).entries;\n var key = $toString(name);\n var index = 0;\n\n for (; index < entries.length; index++) {\n if (entries[index].key === key) return entries[index].value;\n }\n\n return null;\n },\n // `URLSearchParams.prototype.getAll` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-getall\n getAll: function getAll(name) {\n validateArgumentsLength(arguments.length, 1);\n var entries = getInternalParamsState(this).entries;\n var key = $toString(name);\n var result = [];\n var index = 0;\n\n for (; index < entries.length; index++) {\n if (entries[index].key === key) push(result, entries[index].value);\n }\n\n return result;\n },\n // `URLSearchParams.prototype.has` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-has\n has: function has(name) {\n validateArgumentsLength(arguments.length, 1);\n var entries = getInternalParamsState(this).entries;\n var key = $toString(name);\n var index = 0;\n\n while (index < entries.length) {\n if (entries[index++].key === key) return true;\n }\n\n return false;\n },\n // `URLSearchParams.prototype.set` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-set\n set: function set(name, value) {\n validateArgumentsLength(arguments.length, 1);\n var state = getInternalParamsState(this);\n var entries = state.entries;\n var found = false;\n var key = $toString(name);\n var val = $toString(value);\n var index = 0;\n var entry;\n\n for (; index < entries.length; index++) {\n entry = entries[index];\n\n if (entry.key === key) {\n if (found) splice(entries, index--, 1);else {\n found = true;\n entry.value = val;\n }\n }\n }\n\n if (!found) push(entries, {\n key: key,\n value: val\n });\n state.updateURL();\n },\n // `URLSearchParams.prototype.sort` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-sort\n sort: function sort() {\n var state = getInternalParamsState(this);\n arraySort(state.entries, function (a, b) {\n return a.key > b.key ? 1 : -1;\n });\n state.updateURL();\n },\n // `URLSearchParams.prototype.forEach` method\n forEach: function forEach(callback\n /* , thisArg */\n ) {\n var entries = getInternalParamsState(this).entries;\n var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined);\n var index = 0;\n var entry;\n\n while (index < entries.length) {\n entry = entries[index++];\n boundFunction(entry.value, entry.key, this);\n }\n },\n // `URLSearchParams.prototype.keys` method\n keys: function keys() {\n return new URLSearchParamsIterator(this, 'keys');\n },\n // `URLSearchParams.prototype.values` method\n values: function values() {\n return new URLSearchParamsIterator(this, 'values');\n },\n // `URLSearchParams.prototype.entries` method\n entries: function entries() {\n return new URLSearchParamsIterator(this, 'entries');\n }\n}, {\n enumerable: true\n}); // `URLSearchParams.prototype[@@iterator]` method\n\nredefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, {\n name: 'entries'\n}); // `URLSearchParams.prototype.toString` method\n// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior\n\nredefine(URLSearchParamsPrototype, 'toString', function toString() {\n return getInternalParamsState(this).serialize();\n}, {\n enumerable: true\n});\nsetToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);\n$({\n global: true,\n forced: !USE_NATIVE_URL\n}, {\n URLSearchParams: URLSearchParamsConstructor\n}); // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`\n\nif (!USE_NATIVE_URL && isCallable(Headers)) {\n var headersHas = uncurryThis(HeadersPrototype.has);\n var headersSet = uncurryThis(HeadersPrototype.set);\n\n var wrapRequestOptions = function (init) {\n if (isObject(init)) {\n var body = init.body;\n var headers;\n\n if (classof(body) === URL_SEARCH_PARAMS) {\n headers = init.headers ? new Headers(init.headers) : new Headers();\n\n if (!headersHas(headers, 'content-type')) {\n headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n }\n\n return create(init, {\n body: createPropertyDescriptor(0, $toString(body)),\n headers: createPropertyDescriptor(0, headers)\n });\n }\n }\n\n return init;\n };\n\n if (isCallable(n$Fetch)) {\n $({\n global: true,\n enumerable: true,\n forced: true\n }, {\n fetch: function fetch(input\n /* , init */\n ) {\n return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});\n }\n });\n }\n\n if (isCallable(N$Request)) {\n var RequestConstructor = function Request(input\n /* , init */\n ) {\n anInstance(this, RequestPrototype);\n return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});\n };\n\n RequestPrototype.constructor = RequestConstructor;\n RequestConstructor.prototype = RequestPrototype;\n $({\n global: true,\n forced: true\n }, {\n Request: RequestConstructor\n });\n }\n}\n\nmodule.exports = {\n URLSearchParams: URLSearchParamsConstructor,\n getState: getInternalParamsState\n};\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/core-js-pure/modules/web.url-search-params.js?");
|
|
4491
|
+
eval(" // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`\n\n__webpack_require__(/*! ../modules/es.array.iterator */ \"./node_modules/core-js-pure/modules/es.array.iterator.js\");\n\nvar $ = __webpack_require__(/*! ../internals/export */ \"./node_modules/core-js-pure/internals/export.js\");\n\nvar global = __webpack_require__(/*! ../internals/global */ \"./node_modules/core-js-pure/internals/global.js\");\n\nvar getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ \"./node_modules/core-js-pure/internals/get-built-in.js\");\n\nvar call = __webpack_require__(/*! ../internals/function-call */ \"./node_modules/core-js-pure/internals/function-call.js\");\n\nvar uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ \"./node_modules/core-js-pure/internals/function-uncurry-this.js\");\n\nvar USE_NATIVE_URL = __webpack_require__(/*! ../internals/native-url */ \"./node_modules/core-js-pure/internals/native-url.js\");\n\nvar redefine = __webpack_require__(/*! ../internals/redefine */ \"./node_modules/core-js-pure/internals/redefine.js\");\n\nvar redefineAll = __webpack_require__(/*! ../internals/redefine-all */ \"./node_modules/core-js-pure/internals/redefine-all.js\");\n\nvar setToStringTag = __webpack_require__(/*! ../internals/set-to-string-tag */ \"./node_modules/core-js-pure/internals/set-to-string-tag.js\");\n\nvar createIteratorConstructor = __webpack_require__(/*! ../internals/create-iterator-constructor */ \"./node_modules/core-js-pure/internals/create-iterator-constructor.js\");\n\nvar InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ \"./node_modules/core-js-pure/internals/internal-state.js\");\n\nvar anInstance = __webpack_require__(/*! ../internals/an-instance */ \"./node_modules/core-js-pure/internals/an-instance.js\");\n\nvar isCallable = __webpack_require__(/*! ../internals/is-callable */ \"./node_modules/core-js-pure/internals/is-callable.js\");\n\nvar hasOwn = __webpack_require__(/*! ../internals/has-own-property */ \"./node_modules/core-js-pure/internals/has-own-property.js\");\n\nvar bind = __webpack_require__(/*! ../internals/function-bind-context */ \"./node_modules/core-js-pure/internals/function-bind-context.js\");\n\nvar classof = __webpack_require__(/*! ../internals/classof */ \"./node_modules/core-js-pure/internals/classof.js\");\n\nvar anObject = __webpack_require__(/*! ../internals/an-object */ \"./node_modules/core-js-pure/internals/an-object.js\");\n\nvar isObject = __webpack_require__(/*! ../internals/is-object */ \"./node_modules/core-js-pure/internals/is-object.js\");\n\nvar $toString = __webpack_require__(/*! ../internals/to-string */ \"./node_modules/core-js-pure/internals/to-string.js\");\n\nvar create = __webpack_require__(/*! ../internals/object-create */ \"./node_modules/core-js-pure/internals/object-create.js\");\n\nvar createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ \"./node_modules/core-js-pure/internals/create-property-descriptor.js\");\n\nvar getIterator = __webpack_require__(/*! ../internals/get-iterator */ \"./node_modules/core-js-pure/internals/get-iterator.js\");\n\nvar getIteratorMethod = __webpack_require__(/*! ../internals/get-iterator-method */ \"./node_modules/core-js-pure/internals/get-iterator-method.js\");\n\nvar validateArgumentsLength = __webpack_require__(/*! ../internals/validate-arguments-length */ \"./node_modules/core-js-pure/internals/validate-arguments-length.js\");\n\nvar wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ \"./node_modules/core-js-pure/internals/well-known-symbol.js\");\n\nvar arraySort = __webpack_require__(/*! ../internals/array-sort */ \"./node_modules/core-js-pure/internals/array-sort.js\");\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar URL_SEARCH_PARAMS = 'URLSearchParams';\nvar URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);\nvar getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);\nvar n$Fetch = getBuiltIn('fetch');\nvar N$Request = getBuiltIn('Request');\nvar Headers = getBuiltIn('Headers');\nvar RequestPrototype = N$Request && N$Request.prototype;\nvar HeadersPrototype = Headers && Headers.prototype;\nvar RegExp = global.RegExp;\nvar TypeError = global.TypeError;\nvar decodeURIComponent = global.decodeURIComponent;\nvar encodeURIComponent = global.encodeURIComponent;\nvar charAt = uncurryThis(''.charAt);\nvar join = uncurryThis([].join);\nvar push = uncurryThis([].push);\nvar replace = uncurryThis(''.replace);\nvar shift = uncurryThis([].shift);\nvar splice = uncurryThis([].splice);\nvar split = uncurryThis(''.split);\nvar stringSlice = uncurryThis(''.slice);\nvar plus = /\\+/g;\nvar sequences = Array(4);\n\nvar percentSequence = function (bytes) {\n return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\\\da-f]{2}){' + bytes + '})', 'gi'));\n};\n\nvar percentDecode = function (sequence) {\n try {\n return decodeURIComponent(sequence);\n } catch (error) {\n return sequence;\n }\n};\n\nvar deserialize = function (it) {\n var result = replace(it, plus, ' ');\n var bytes = 4;\n\n try {\n return decodeURIComponent(result);\n } catch (error) {\n while (bytes) {\n result = replace(result, percentSequence(bytes--), percentDecode);\n }\n\n return result;\n }\n};\n\nvar find = /[!'()~]|%20/g;\nvar replacements = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+'\n};\n\nvar replacer = function (match) {\n return replacements[match];\n};\n\nvar serialize = function (it) {\n return replace(encodeURIComponent(it), find, replacer);\n};\n\nvar URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {\n setInternalState(this, {\n type: URL_SEARCH_PARAMS_ITERATOR,\n iterator: getIterator(getInternalParamsState(params).entries),\n kind: kind\n });\n}, 'Iterator', function next() {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var step = state.iterator.next();\n var entry = step.value;\n\n if (!step.done) {\n step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];\n }\n\n return step;\n}, true);\n\nvar URLSearchParamsState = function (init) {\n this.entries = [];\n this.url = null;\n\n if (init !== undefined) {\n if (isObject(init)) this.parseObject(init);else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init));\n }\n};\n\nURLSearchParamsState.prototype = {\n type: URL_SEARCH_PARAMS,\n bindURL: function (url) {\n this.url = url;\n this.update();\n },\n parseObject: function (object) {\n var iteratorMethod = getIteratorMethod(object);\n var iterator, next, step, entryIterator, entryNext, first, second;\n\n if (iteratorMethod) {\n iterator = getIterator(object, iteratorMethod);\n next = iterator.next;\n\n while (!(step = call(next, iterator)).done) {\n entryIterator = getIterator(anObject(step.value));\n entryNext = entryIterator.next;\n if ((first = call(entryNext, entryIterator)).done || (second = call(entryNext, entryIterator)).done || !call(entryNext, entryIterator).done) throw TypeError('Expected sequence with length 2');\n push(this.entries, {\n key: $toString(first.value),\n value: $toString(second.value)\n });\n }\n } else for (var key in object) if (hasOwn(object, key)) {\n push(this.entries, {\n key: key,\n value: $toString(object[key])\n });\n }\n },\n parseQuery: function (query) {\n if (query) {\n var attributes = split(query, '&');\n var index = 0;\n var attribute, entry;\n\n while (index < attributes.length) {\n attribute = attributes[index++];\n\n if (attribute.length) {\n entry = split(attribute, '=');\n push(this.entries, {\n key: deserialize(shift(entry)),\n value: deserialize(join(entry, '='))\n });\n }\n }\n }\n },\n serialize: function () {\n var entries = this.entries;\n var result = [];\n var index = 0;\n var entry;\n\n while (index < entries.length) {\n entry = entries[index++];\n push(result, serialize(entry.key) + '=' + serialize(entry.value));\n }\n\n return join(result, '&');\n },\n update: function () {\n this.entries.length = 0;\n this.parseQuery(this.url.query);\n },\n updateURL: function () {\n if (this.url) this.url.update();\n }\n}; // `URLSearchParams` constructor\n// https://url.spec.whatwg.org/#interface-urlsearchparams\n\nvar URLSearchParamsConstructor = function\n /* init */\nURLSearchParams() {\n anInstance(this, URLSearchParamsPrototype);\n var init = arguments.length > 0 ? arguments[0] : undefined;\n setInternalState(this, new URLSearchParamsState(init));\n};\n\nvar URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;\nredefineAll(URLSearchParamsPrototype, {\n // `URLSearchParams.prototype.append` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-append\n append: function append(name, value) {\n validateArgumentsLength(arguments.length, 2);\n var state = getInternalParamsState(this);\n push(state.entries, {\n key: $toString(name),\n value: $toString(value)\n });\n state.updateURL();\n },\n // `URLSearchParams.prototype.delete` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-delete\n 'delete': function (name) {\n validateArgumentsLength(arguments.length, 1);\n var state = getInternalParamsState(this);\n var entries = state.entries;\n var key = $toString(name);\n var index = 0;\n\n while (index < entries.length) {\n if (entries[index].key === key) splice(entries, index, 1);else index++;\n }\n\n state.updateURL();\n },\n // `URLSearchParams.prototype.get` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-get\n get: function get(name) {\n validateArgumentsLength(arguments.length, 1);\n var entries = getInternalParamsState(this).entries;\n var key = $toString(name);\n var index = 0;\n\n for (; index < entries.length; index++) {\n if (entries[index].key === key) return entries[index].value;\n }\n\n return null;\n },\n // `URLSearchParams.prototype.getAll` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-getall\n getAll: function getAll(name) {\n validateArgumentsLength(arguments.length, 1);\n var entries = getInternalParamsState(this).entries;\n var key = $toString(name);\n var result = [];\n var index = 0;\n\n for (; index < entries.length; index++) {\n if (entries[index].key === key) push(result, entries[index].value);\n }\n\n return result;\n },\n // `URLSearchParams.prototype.has` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-has\n has: function has(name) {\n validateArgumentsLength(arguments.length, 1);\n var entries = getInternalParamsState(this).entries;\n var key = $toString(name);\n var index = 0;\n\n while (index < entries.length) {\n if (entries[index++].key === key) return true;\n }\n\n return false;\n },\n // `URLSearchParams.prototype.set` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-set\n set: function set(name, value) {\n validateArgumentsLength(arguments.length, 1);\n var state = getInternalParamsState(this);\n var entries = state.entries;\n var found = false;\n var key = $toString(name);\n var val = $toString(value);\n var index = 0;\n var entry;\n\n for (; index < entries.length; index++) {\n entry = entries[index];\n\n if (entry.key === key) {\n if (found) splice(entries, index--, 1);else {\n found = true;\n entry.value = val;\n }\n }\n }\n\n if (!found) push(entries, {\n key: key,\n value: val\n });\n state.updateURL();\n },\n // `URLSearchParams.prototype.sort` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-sort\n sort: function sort() {\n var state = getInternalParamsState(this);\n arraySort(state.entries, function (a, b) {\n return a.key > b.key ? 1 : -1;\n });\n state.updateURL();\n },\n // `URLSearchParams.prototype.forEach` method\n forEach: function forEach(callback\n /* , thisArg */\n ) {\n var entries = getInternalParamsState(this).entries;\n var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined);\n var index = 0;\n var entry;\n\n while (index < entries.length) {\n entry = entries[index++];\n boundFunction(entry.value, entry.key, this);\n }\n },\n // `URLSearchParams.prototype.keys` method\n keys: function keys() {\n return new URLSearchParamsIterator(this, 'keys');\n },\n // `URLSearchParams.prototype.values` method\n values: function values() {\n return new URLSearchParamsIterator(this, 'values');\n },\n // `URLSearchParams.prototype.entries` method\n entries: function entries() {\n return new URLSearchParamsIterator(this, 'entries');\n }\n}, {\n enumerable: true\n}); // `URLSearchParams.prototype[@@iterator]` method\n\nredefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, {\n name: 'entries'\n}); // `URLSearchParams.prototype.toString` method\n// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior\n\nredefine(URLSearchParamsPrototype, 'toString', function toString() {\n return getInternalParamsState(this).serialize();\n}, {\n enumerable: true\n});\nsetToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);\n$({\n global: true,\n forced: !USE_NATIVE_URL\n}, {\n URLSearchParams: URLSearchParamsConstructor\n}); // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`\n\nif (!USE_NATIVE_URL && isCallable(Headers)) {\n var headersHas = uncurryThis(HeadersPrototype.has);\n var headersSet = uncurryThis(HeadersPrototype.set);\n\n var wrapRequestOptions = function (init) {\n if (isObject(init)) {\n var body = init.body;\n var headers;\n\n if (classof(body) === URL_SEARCH_PARAMS) {\n headers = init.headers ? new Headers(init.headers) : new Headers();\n\n if (!headersHas(headers, 'content-type')) {\n headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n }\n\n return create(init, {\n body: createPropertyDescriptor(0, $toString(body)),\n headers: createPropertyDescriptor(0, headers)\n });\n }\n }\n\n return init;\n };\n\n if (isCallable(n$Fetch)) {\n $({\n global: true,\n enumerable: true,\n forced: true\n }, {\n fetch: function fetch(input\n /* , init */\n ) {\n return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});\n }\n });\n }\n\n if (isCallable(N$Request)) {\n var RequestConstructor = function Request(input\n /* , init */\n ) {\n anInstance(this, RequestPrototype);\n return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});\n };\n\n RequestPrototype.constructor = RequestConstructor;\n RequestConstructor.prototype = RequestPrototype;\n $({\n global: true,\n forced: true\n }, {\n Request: RequestConstructor\n });\n }\n}\n\nmodule.exports = {\n URLSearchParams: URLSearchParamsConstructor,\n getState: getInternalParamsState\n};\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/core-js-pure/modules/web.url-search-params.js?");
|
|
4469
4492
|
|
|
4470
4493
|
/***/ }),
|
|
4471
4494
|
|
|
@@ -4979,15 +5002,15 @@ eval("/**\n * This is the common logic for both the Node.js and web browser\n *
|
|
|
4979
5002
|
|
|
4980
5003
|
/***/ }),
|
|
4981
5004
|
|
|
4982
|
-
/***/ "./node_modules/
|
|
4983
|
-
|
|
4984
|
-
!*** ./node_modules/
|
|
4985
|
-
|
|
5005
|
+
/***/ "./node_modules/deepmerge/dist/cjs.js":
|
|
5006
|
+
/*!********************************************!*\
|
|
5007
|
+
!*** ./node_modules/deepmerge/dist/cjs.js ***!
|
|
5008
|
+
\********************************************/
|
|
4986
5009
|
/*! no static exports found */
|
|
4987
5010
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4988
5011
|
|
|
4989
5012
|
"use strict";
|
|
4990
|
-
eval("
|
|
5013
|
+
eval("\n\nvar isMergeableObject = function isMergeableObject(value) {\n return isNonNullObject(value) && !isSpecial(value);\n};\n\nfunction isNonNullObject(value) {\n return !!value && typeof value === 'object';\n}\n\nfunction isSpecial(value) {\n var stringValue = Object.prototype.toString.call(value);\n return stringValue === '[object RegExp]' || stringValue === '[object Date]' || isReactElement(value);\n} // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25\n\n\nvar canUseSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;\n\nfunction isReactElement(value) {\n return value.$$typeof === REACT_ELEMENT_TYPE;\n}\n\nfunction emptyTarget(val) {\n return Array.isArray(val) ? [] : {};\n}\n\nfunction cloneUnlessOtherwiseSpecified(value, options) {\n return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;\n}\n\nfunction defaultArrayMerge(target, source, options) {\n return target.concat(source).map(function (element) {\n return cloneUnlessOtherwiseSpecified(element, options);\n });\n}\n\nfunction getMergeFunction(key, options) {\n if (!options.customMerge) {\n return deepmerge;\n }\n\n var customMerge = options.customMerge(key);\n return typeof customMerge === 'function' ? customMerge : deepmerge;\n}\n\nfunction getEnumerableOwnPropertySymbols(target) {\n return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(target).filter(function (symbol) {\n return target.propertyIsEnumerable(symbol);\n }) : [];\n}\n\nfunction getKeys(target) {\n return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target));\n}\n\nfunction propertyIsOnObject(object, property) {\n try {\n return property in object;\n } catch (_) {\n return false;\n }\n} // Protects from prototype poisoning and unexpected merging up the prototype chain.\n\n\nfunction propertyIsUnsafe(target, key) {\n return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,\n && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,\n && Object.propertyIsEnumerable.call(target, key)); // and also unsafe if they're nonenumerable.\n}\n\nfunction mergeObject(target, source, options) {\n var destination = {};\n\n if (options.isMergeableObject(target)) {\n getKeys(target).forEach(function (key) {\n destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);\n });\n }\n\n getKeys(source).forEach(function (key) {\n if (propertyIsUnsafe(target, key)) {\n return;\n }\n\n if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {\n destination[key] = getMergeFunction(key, options)(target[key], source[key], options);\n } else {\n destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);\n }\n });\n return destination;\n}\n\nfunction deepmerge(target, source, options) {\n options = options || {};\n options.arrayMerge = options.arrayMerge || defaultArrayMerge;\n options.isMergeableObject = options.isMergeableObject || isMergeableObject; // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()\n // implementations can use it. The caller may not replace it.\n\n options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;\n var sourceIsArray = Array.isArray(source);\n var targetIsArray = Array.isArray(target);\n var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;\n\n if (!sourceAndTargetTypesMatch) {\n return cloneUnlessOtherwiseSpecified(source, options);\n } else if (sourceIsArray) {\n return options.arrayMerge(target, source, options);\n } else {\n return mergeObject(target, source, options);\n }\n}\n\ndeepmerge.all = function deepmergeAll(array, options) {\n if (!Array.isArray(array)) {\n throw new Error('first argument should be an array');\n }\n\n return array.reduce(function (prev, next) {\n return deepmerge(prev, next, options);\n }, {});\n};\n\nvar deepmerge_1 = deepmerge;\nmodule.exports = deepmerge_1;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/deepmerge/dist/cjs.js?");
|
|
4991
5014
|
|
|
4992
5015
|
/***/ }),
|
|
4993
5016
|
|
|
@@ -5731,17 +5754,6 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
5731
5754
|
|
|
5732
5755
|
/***/ }),
|
|
5733
5756
|
|
|
5734
|
-
/***/ "./node_modules/lodash/_DataView.js":
|
|
5735
|
-
/*!******************************************!*\
|
|
5736
|
-
!*** ./node_modules/lodash/_DataView.js ***!
|
|
5737
|
-
\******************************************/
|
|
5738
|
-
/*! no static exports found */
|
|
5739
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5740
|
-
|
|
5741
|
-
eval("var getNative = __webpack_require__(/*! ./_getNative */ \"./node_modules/lodash/_getNative.js\"),\n root = __webpack_require__(/*! ./_root */ \"./node_modules/lodash/_root.js\");\n/* Built-in method references that are verified to be native. */\n\n\nvar DataView = getNative(root, 'DataView');\nmodule.exports = DataView;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_DataView.js?");
|
|
5742
|
-
|
|
5743
|
-
/***/ }),
|
|
5744
|
-
|
|
5745
5757
|
/***/ "./node_modules/lodash/_Hash.js":
|
|
5746
5758
|
/*!**************************************!*\
|
|
5747
5759
|
!*** ./node_modules/lodash/_Hash.js ***!
|
|
@@ -5786,804 +5798,298 @@ eval("var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ \"./node_m
|
|
|
5786
5798
|
|
|
5787
5799
|
/***/ }),
|
|
5788
5800
|
|
|
5789
|
-
/***/ "./node_modules/lodash/
|
|
5790
|
-
|
|
5791
|
-
!*** ./node_modules/lodash/
|
|
5792
|
-
|
|
5801
|
+
/***/ "./node_modules/lodash/_Symbol.js":
|
|
5802
|
+
/*!****************************************!*\
|
|
5803
|
+
!*** ./node_modules/lodash/_Symbol.js ***!
|
|
5804
|
+
\****************************************/
|
|
5793
5805
|
/*! no static exports found */
|
|
5794
5806
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5795
5807
|
|
|
5796
|
-
eval("var
|
|
5808
|
+
eval("var root = __webpack_require__(/*! ./_root */ \"./node_modules/lodash/_root.js\");\n/** Built-in value references. */\n\n\nvar Symbol = root.Symbol;\nmodule.exports = Symbol;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_Symbol.js?");
|
|
5797
5809
|
|
|
5798
5810
|
/***/ }),
|
|
5799
5811
|
|
|
5800
|
-
/***/ "./node_modules/lodash/
|
|
5801
|
-
|
|
5802
|
-
!*** ./node_modules/lodash/
|
|
5803
|
-
|
|
5812
|
+
/***/ "./node_modules/lodash/_arrayMap.js":
|
|
5813
|
+
/*!******************************************!*\
|
|
5814
|
+
!*** ./node_modules/lodash/_arrayMap.js ***!
|
|
5815
|
+
\******************************************/
|
|
5804
5816
|
/*! no static exports found */
|
|
5805
|
-
/***/ (function(module, exports
|
|
5817
|
+
/***/ (function(module, exports) {
|
|
5806
5818
|
|
|
5807
|
-
eval("
|
|
5819
|
+
eval("/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n\n return result;\n}\n\nmodule.exports = arrayMap;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_arrayMap.js?");
|
|
5808
5820
|
|
|
5809
5821
|
/***/ }),
|
|
5810
5822
|
|
|
5811
|
-
/***/ "./node_modules/lodash/
|
|
5812
|
-
|
|
5813
|
-
!*** ./node_modules/lodash/
|
|
5814
|
-
|
|
5823
|
+
/***/ "./node_modules/lodash/_assocIndexOf.js":
|
|
5824
|
+
/*!**********************************************!*\
|
|
5825
|
+
!*** ./node_modules/lodash/_assocIndexOf.js ***!
|
|
5826
|
+
\**********************************************/
|
|
5815
5827
|
/*! no static exports found */
|
|
5816
5828
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5817
5829
|
|
|
5818
|
-
eval("var
|
|
5830
|
+
eval("var eq = __webpack_require__(/*! ./eq */ \"./node_modules/lodash/eq.js\");\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n\n\nfunction assocIndexOf(array, key) {\n var length = array.length;\n\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_assocIndexOf.js?");
|
|
5819
5831
|
|
|
5820
5832
|
/***/ }),
|
|
5821
5833
|
|
|
5822
|
-
/***/ "./node_modules/lodash/
|
|
5823
|
-
|
|
5824
|
-
!*** ./node_modules/lodash/
|
|
5825
|
-
|
|
5834
|
+
/***/ "./node_modules/lodash/_baseGet.js":
|
|
5835
|
+
/*!*****************************************!*\
|
|
5836
|
+
!*** ./node_modules/lodash/_baseGet.js ***!
|
|
5837
|
+
\*****************************************/
|
|
5826
5838
|
/*! no static exports found */
|
|
5827
5839
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5828
5840
|
|
|
5829
|
-
eval("var
|
|
5841
|
+
eval("var castPath = __webpack_require__(/*! ./_castPath */ \"./node_modules/lodash/_castPath.js\"),\n toKey = __webpack_require__(/*! ./_toKey */ \"./node_modules/lodash/_toKey.js\");\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n\n\nfunction baseGet(object, path) {\n path = castPath(path, object);\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n\n return index && index == length ? object : undefined;\n}\n\nmodule.exports = baseGet;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_baseGet.js?");
|
|
5830
5842
|
|
|
5831
5843
|
/***/ }),
|
|
5832
5844
|
|
|
5833
|
-
/***/ "./node_modules/lodash/
|
|
5845
|
+
/***/ "./node_modules/lodash/_baseGetTag.js":
|
|
5834
5846
|
/*!********************************************!*\
|
|
5835
|
-
!*** ./node_modules/lodash/
|
|
5847
|
+
!*** ./node_modules/lodash/_baseGetTag.js ***!
|
|
5836
5848
|
\********************************************/
|
|
5837
5849
|
/*! no static exports found */
|
|
5838
5850
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5839
5851
|
|
|
5840
|
-
eval("var
|
|
5852
|
+
eval("var Symbol = __webpack_require__(/*! ./_Symbol */ \"./node_modules/lodash/_Symbol.js\"),\n getRawTag = __webpack_require__(/*! ./_getRawTag */ \"./node_modules/lodash/_getRawTag.js\"),\n objectToString = __webpack_require__(/*! ./_objectToString */ \"./node_modules/lodash/_objectToString.js\");\n/** `Object#toString` result references. */\n\n\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n/** Built-in value references. */\n\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n\n return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_baseGetTag.js?");
|
|
5841
5853
|
|
|
5842
5854
|
/***/ }),
|
|
5843
5855
|
|
|
5844
|
-
/***/ "./node_modules/lodash/
|
|
5845
|
-
|
|
5846
|
-
!*** ./node_modules/lodash/
|
|
5847
|
-
|
|
5856
|
+
/***/ "./node_modules/lodash/_baseIsNative.js":
|
|
5857
|
+
/*!**********************************************!*\
|
|
5858
|
+
!*** ./node_modules/lodash/_baseIsNative.js ***!
|
|
5859
|
+
\**********************************************/
|
|
5848
5860
|
/*! no static exports found */
|
|
5849
5861
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5850
5862
|
|
|
5851
|
-
eval("var
|
|
5852
|
-
|
|
5853
|
-
/***/ }),
|
|
5854
|
-
|
|
5855
|
-
/***/ "./node_modules/lodash/_arrayEach.js":
|
|
5856
|
-
/*!*******************************************!*\
|
|
5857
|
-
!*** ./node_modules/lodash/_arrayEach.js ***!
|
|
5858
|
-
\*******************************************/
|
|
5859
|
-
/*! no static exports found */
|
|
5860
|
-
/***/ (function(module, exports) {
|
|
5861
|
-
|
|
5862
|
-
eval("/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n\n return array;\n}\n\nmodule.exports = arrayEach;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_arrayEach.js?");
|
|
5863
|
-
|
|
5864
|
-
/***/ }),
|
|
5865
|
-
|
|
5866
|
-
/***/ "./node_modules/lodash/_arrayFilter.js":
|
|
5867
|
-
/*!*********************************************!*\
|
|
5868
|
-
!*** ./node_modules/lodash/_arrayFilter.js ***!
|
|
5869
|
-
\*********************************************/
|
|
5870
|
-
/*! no static exports found */
|
|
5871
|
-
/***/ (function(module, exports) {
|
|
5872
|
-
|
|
5873
|
-
eval("/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n\n return result;\n}\n\nmodule.exports = arrayFilter;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_arrayFilter.js?");
|
|
5863
|
+
eval("var isFunction = __webpack_require__(/*! ./isFunction */ \"./node_modules/lodash/isFunction.js\"),\n isMasked = __webpack_require__(/*! ./_isMasked */ \"./node_modules/lodash/_isMasked.js\"),\n isObject = __webpack_require__(/*! ./isObject */ \"./node_modules/lodash/isObject.js\"),\n toSource = __webpack_require__(/*! ./_toSource */ \"./node_modules/lodash/_toSource.js\");\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n\n\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n/** Used to detect host constructors (Safari). */\n\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n/** Used for built-in method references. */\n\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n/** Used to resolve the decompiled source of functions. */\n\nvar funcToString = funcProto.toString;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/** Used to detect if a method is native. */\n\nvar reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_baseIsNative.js?");
|
|
5874
5864
|
|
|
5875
5865
|
/***/ }),
|
|
5876
5866
|
|
|
5877
|
-
/***/ "./node_modules/lodash/
|
|
5878
|
-
|
|
5879
|
-
!*** ./node_modules/lodash/
|
|
5880
|
-
|
|
5867
|
+
/***/ "./node_modules/lodash/_baseToString.js":
|
|
5868
|
+
/*!**********************************************!*\
|
|
5869
|
+
!*** ./node_modules/lodash/_baseToString.js ***!
|
|
5870
|
+
\**********************************************/
|
|
5881
5871
|
/*! no static exports found */
|
|
5882
5872
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5883
5873
|
|
|
5884
|
-
eval("var
|
|
5874
|
+
eval("var Symbol = __webpack_require__(/*! ./_Symbol */ \"./node_modules/lodash/_Symbol.js\"),\n arrayMap = __webpack_require__(/*! ./_arrayMap */ \"./node_modules/lodash/_arrayMap.js\"),\n isArray = __webpack_require__(/*! ./isArray */ \"./node_modules/lodash/isArray.js\"),\n isSymbol = __webpack_require__(/*! ./isSymbol */ \"./node_modules/lodash/isSymbol.js\");\n/** Used as references for various `Number` constants. */\n\n\nvar INFINITY = 1 / 0;\n/** Used to convert symbols to primitives and strings. */\n\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n\n var result = value + '';\n return result == '0' && 1 / value == -INFINITY ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_baseToString.js?");
|
|
5885
5875
|
|
|
5886
5876
|
/***/ }),
|
|
5887
5877
|
|
|
5888
|
-
/***/ "./node_modules/lodash/
|
|
5878
|
+
/***/ "./node_modules/lodash/_castPath.js":
|
|
5889
5879
|
/*!******************************************!*\
|
|
5890
|
-
!*** ./node_modules/lodash/
|
|
5880
|
+
!*** ./node_modules/lodash/_castPath.js ***!
|
|
5891
5881
|
\******************************************/
|
|
5892
5882
|
/*! no static exports found */
|
|
5893
|
-
/***/ (function(module, exports) {
|
|
5883
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5894
5884
|
|
|
5895
|
-
eval("
|
|
5885
|
+
eval("var isArray = __webpack_require__(/*! ./isArray */ \"./node_modules/lodash/isArray.js\"),\n isKey = __webpack_require__(/*! ./_isKey */ \"./node_modules/lodash/_isKey.js\"),\n stringToPath = __webpack_require__(/*! ./_stringToPath */ \"./node_modules/lodash/_stringToPath.js\"),\n toString = __webpack_require__(/*! ./toString */ \"./node_modules/lodash/toString.js\");\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n\n\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_castPath.js?");
|
|
5896
5886
|
|
|
5897
5887
|
/***/ }),
|
|
5898
5888
|
|
|
5899
|
-
/***/ "./node_modules/lodash/
|
|
5900
|
-
|
|
5901
|
-
!*** ./node_modules/lodash/
|
|
5902
|
-
|
|
5889
|
+
/***/ "./node_modules/lodash/_coreJsData.js":
|
|
5890
|
+
/*!********************************************!*\
|
|
5891
|
+
!*** ./node_modules/lodash/_coreJsData.js ***!
|
|
5892
|
+
\********************************************/
|
|
5903
5893
|
/*! no static exports found */
|
|
5904
|
-
/***/ (function(module, exports) {
|
|
5894
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5905
5895
|
|
|
5906
|
-
eval("
|
|
5896
|
+
eval("var root = __webpack_require__(/*! ./_root */ \"./node_modules/lodash/_root.js\");\n/** Used to detect overreaching core-js shims. */\n\n\nvar coreJsData = root['__core-js_shared__'];\nmodule.exports = coreJsData;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_coreJsData.js?");
|
|
5907
5897
|
|
|
5908
5898
|
/***/ }),
|
|
5909
5899
|
|
|
5910
|
-
/***/ "./node_modules/lodash/
|
|
5911
|
-
|
|
5912
|
-
!*** ./node_modules/lodash/
|
|
5913
|
-
|
|
5900
|
+
/***/ "./node_modules/lodash/_freeGlobal.js":
|
|
5901
|
+
/*!********************************************!*\
|
|
5902
|
+
!*** ./node_modules/lodash/_freeGlobal.js ***!
|
|
5903
|
+
\********************************************/
|
|
5914
5904
|
/*! no static exports found */
|
|
5915
5905
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5916
5906
|
|
|
5917
|
-
eval("
|
|
5907
|
+
eval("/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\nmodule.exports = freeGlobal;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_freeGlobal.js?");
|
|
5918
5908
|
|
|
5919
5909
|
/***/ }),
|
|
5920
5910
|
|
|
5921
|
-
/***/ "./node_modules/lodash/
|
|
5922
|
-
|
|
5923
|
-
!*** ./node_modules/lodash/
|
|
5924
|
-
|
|
5911
|
+
/***/ "./node_modules/lodash/_getMapData.js":
|
|
5912
|
+
/*!********************************************!*\
|
|
5913
|
+
!*** ./node_modules/lodash/_getMapData.js ***!
|
|
5914
|
+
\********************************************/
|
|
5925
5915
|
/*! no static exports found */
|
|
5926
5916
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5927
5917
|
|
|
5928
|
-
eval("var
|
|
5918
|
+
eval("var isKeyable = __webpack_require__(/*! ./_isKeyable */ \"./node_modules/lodash/_isKeyable.js\");\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n\n\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;\n}\n\nmodule.exports = getMapData;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_getMapData.js?");
|
|
5929
5919
|
|
|
5930
5920
|
/***/ }),
|
|
5931
5921
|
|
|
5932
|
-
/***/ "./node_modules/lodash/
|
|
5933
|
-
|
|
5934
|
-
!*** ./node_modules/lodash/
|
|
5935
|
-
|
|
5922
|
+
/***/ "./node_modules/lodash/_getNative.js":
|
|
5923
|
+
/*!*******************************************!*\
|
|
5924
|
+
!*** ./node_modules/lodash/_getNative.js ***!
|
|
5925
|
+
\*******************************************/
|
|
5936
5926
|
/*! no static exports found */
|
|
5937
5927
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5938
5928
|
|
|
5939
|
-
eval("var
|
|
5929
|
+
eval("var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ \"./node_modules/lodash/_baseIsNative.js\"),\n getValue = __webpack_require__(/*! ./_getValue */ \"./node_modules/lodash/_getValue.js\");\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n\n\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_getNative.js?");
|
|
5940
5930
|
|
|
5941
5931
|
/***/ }),
|
|
5942
5932
|
|
|
5943
|
-
/***/ "./node_modules/lodash/
|
|
5944
|
-
|
|
5945
|
-
!*** ./node_modules/lodash/
|
|
5946
|
-
|
|
5933
|
+
/***/ "./node_modules/lodash/_getRawTag.js":
|
|
5934
|
+
/*!*******************************************!*\
|
|
5935
|
+
!*** ./node_modules/lodash/_getRawTag.js ***!
|
|
5936
|
+
\*******************************************/
|
|
5947
5937
|
/*! no static exports found */
|
|
5948
5938
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5949
5939
|
|
|
5950
|
-
eval("var
|
|
5940
|
+
eval("var Symbol = __webpack_require__(/*! ./_Symbol */ \"./node_modules/lodash/_Symbol.js\");\n/** Used for built-in method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar nativeObjectToString = objectProto.toString;\n/** Built-in value references. */\n\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n\n return result;\n}\n\nmodule.exports = getRawTag;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_getRawTag.js?");
|
|
5951
5941
|
|
|
5952
5942
|
/***/ }),
|
|
5953
5943
|
|
|
5954
|
-
/***/ "./node_modules/lodash/
|
|
5955
|
-
|
|
5956
|
-
!*** ./node_modules/lodash/
|
|
5957
|
-
|
|
5944
|
+
/***/ "./node_modules/lodash/_getValue.js":
|
|
5945
|
+
/*!******************************************!*\
|
|
5946
|
+
!*** ./node_modules/lodash/_getValue.js ***!
|
|
5947
|
+
\******************************************/
|
|
5958
5948
|
/*! no static exports found */
|
|
5959
|
-
/***/ (function(module, exports
|
|
5949
|
+
/***/ (function(module, exports) {
|
|
5960
5950
|
|
|
5961
|
-
eval("
|
|
5951
|
+
eval("/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_getValue.js?");
|
|
5962
5952
|
|
|
5963
5953
|
/***/ }),
|
|
5964
5954
|
|
|
5965
|
-
/***/ "./node_modules/lodash/
|
|
5955
|
+
/***/ "./node_modules/lodash/_hashClear.js":
|
|
5966
5956
|
/*!*******************************************!*\
|
|
5967
|
-
!*** ./node_modules/lodash/
|
|
5957
|
+
!*** ./node_modules/lodash/_hashClear.js ***!
|
|
5968
5958
|
\*******************************************/
|
|
5969
5959
|
/*! no static exports found */
|
|
5970
5960
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5971
5961
|
|
|
5972
|
-
eval("var
|
|
5962
|
+
eval("var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ \"./node_modules/lodash/_nativeCreate.js\");\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n\n\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_hashClear.js?");
|
|
5973
5963
|
|
|
5974
5964
|
/***/ }),
|
|
5975
5965
|
|
|
5976
|
-
/***/ "./node_modules/lodash/
|
|
5966
|
+
/***/ "./node_modules/lodash/_hashDelete.js":
|
|
5977
5967
|
/*!********************************************!*\
|
|
5978
|
-
!*** ./node_modules/lodash/
|
|
5968
|
+
!*** ./node_modules/lodash/_hashDelete.js ***!
|
|
5979
5969
|
\********************************************/
|
|
5980
5970
|
/*! no static exports found */
|
|
5981
|
-
/***/ (function(module, exports
|
|
5971
|
+
/***/ (function(module, exports) {
|
|
5982
5972
|
|
|
5983
|
-
eval("
|
|
5973
|
+
eval("/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_hashDelete.js?");
|
|
5984
5974
|
|
|
5985
5975
|
/***/ }),
|
|
5986
5976
|
|
|
5987
|
-
/***/ "./node_modules/lodash/
|
|
5977
|
+
/***/ "./node_modules/lodash/_hashGet.js":
|
|
5988
5978
|
/*!*****************************************!*\
|
|
5989
|
-
!*** ./node_modules/lodash/
|
|
5979
|
+
!*** ./node_modules/lodash/_hashGet.js ***!
|
|
5990
5980
|
\*****************************************/
|
|
5991
5981
|
/*! no static exports found */
|
|
5992
5982
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5993
5983
|
|
|
5994
|
-
eval("var
|
|
5984
|
+
eval("var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ \"./node_modules/lodash/_nativeCreate.js\");\n/** Used to stand-in for `undefined` hash values. */\n\n\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n/** Used for built-in method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n\nfunction hashGet(key) {\n var data = this.__data__;\n\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_hashGet.js?");
|
|
5995
5985
|
|
|
5996
5986
|
/***/ }),
|
|
5997
5987
|
|
|
5998
|
-
/***/ "./node_modules/lodash/
|
|
5999
|
-
|
|
6000
|
-
!*** ./node_modules/lodash/
|
|
6001
|
-
|
|
5988
|
+
/***/ "./node_modules/lodash/_hashHas.js":
|
|
5989
|
+
/*!*****************************************!*\
|
|
5990
|
+
!*** ./node_modules/lodash/_hashHas.js ***!
|
|
5991
|
+
\*****************************************/
|
|
6002
5992
|
/*! no static exports found */
|
|
6003
5993
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6004
5994
|
|
|
6005
|
-
eval("var
|
|
5995
|
+
eval("var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ \"./node_modules/lodash/_nativeCreate.js\");\n/** Used for built-in method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_hashHas.js?");
|
|
6006
5996
|
|
|
6007
5997
|
/***/ }),
|
|
6008
5998
|
|
|
6009
|
-
/***/ "./node_modules/lodash/
|
|
6010
|
-
|
|
6011
|
-
!*** ./node_modules/lodash/
|
|
6012
|
-
|
|
5999
|
+
/***/ "./node_modules/lodash/_hashSet.js":
|
|
6000
|
+
/*!*****************************************!*\
|
|
6001
|
+
!*** ./node_modules/lodash/_hashSet.js ***!
|
|
6002
|
+
\*****************************************/
|
|
6013
6003
|
/*! no static exports found */
|
|
6014
6004
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6015
6005
|
|
|
6016
|
-
eval("var
|
|
6006
|
+
eval("var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ \"./node_modules/lodash/_nativeCreate.js\");\n/** Used to stand-in for `undefined` hash values. */\n\n\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_hashSet.js?");
|
|
6017
6007
|
|
|
6018
6008
|
/***/ }),
|
|
6019
6009
|
|
|
6020
|
-
/***/ "./node_modules/lodash/
|
|
6021
|
-
|
|
6022
|
-
!*** ./node_modules/lodash/
|
|
6023
|
-
|
|
6010
|
+
/***/ "./node_modules/lodash/_isKey.js":
|
|
6011
|
+
/*!***************************************!*\
|
|
6012
|
+
!*** ./node_modules/lodash/_isKey.js ***!
|
|
6013
|
+
\***************************************/
|
|
6024
6014
|
/*! no static exports found */
|
|
6025
6015
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6026
6016
|
|
|
6027
|
-
eval("var
|
|
6017
|
+
eval("var isArray = __webpack_require__(/*! ./isArray */ \"./node_modules/lodash/isArray.js\"),\n isSymbol = __webpack_require__(/*! ./isSymbol */ \"./node_modules/lodash/isSymbol.js\");\n/** Used to match property names within property paths. */\n\n\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n\n var type = typeof value;\n\n if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) {\n return true;\n }\n\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);\n}\n\nmodule.exports = isKey;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_isKey.js?");
|
|
6028
6018
|
|
|
6029
6019
|
/***/ }),
|
|
6030
6020
|
|
|
6031
|
-
/***/ "./node_modules/lodash/
|
|
6021
|
+
/***/ "./node_modules/lodash/_isKeyable.js":
|
|
6032
6022
|
/*!*******************************************!*\
|
|
6033
|
-
!*** ./node_modules/lodash/
|
|
6023
|
+
!*** ./node_modules/lodash/_isKeyable.js ***!
|
|
6034
6024
|
\*******************************************/
|
|
6035
6025
|
/*! no static exports found */
|
|
6036
|
-
/***/ (function(module, exports
|
|
6026
|
+
/***/ (function(module, exports) {
|
|
6037
6027
|
|
|
6038
|
-
eval("
|
|
6028
|
+
eval("/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null;\n}\n\nmodule.exports = isKeyable;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_isKeyable.js?");
|
|
6039
6029
|
|
|
6040
6030
|
/***/ }),
|
|
6041
6031
|
|
|
6042
|
-
/***/ "./node_modules/lodash/
|
|
6043
|
-
|
|
6044
|
-
!*** ./node_modules/lodash/
|
|
6045
|
-
|
|
6032
|
+
/***/ "./node_modules/lodash/_isMasked.js":
|
|
6033
|
+
/*!******************************************!*\
|
|
6034
|
+
!*** ./node_modules/lodash/_isMasked.js ***!
|
|
6035
|
+
\******************************************/
|
|
6046
6036
|
/*! no static exports found */
|
|
6047
6037
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6048
6038
|
|
|
6049
|
-
eval("var
|
|
6039
|
+
eval("var coreJsData = __webpack_require__(/*! ./_coreJsData */ \"./node_modules/lodash/_coreJsData.js\");\n/** Used to detect methods masquerading as native. */\n\n\nvar maskSrcKey = function () {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? 'Symbol(src)_1.' + uid : '';\n}();\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n\n\nfunction isMasked(func) {\n return !!maskSrcKey && maskSrcKey in func;\n}\n\nmodule.exports = isMasked;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_isMasked.js?");
|
|
6050
6040
|
|
|
6051
6041
|
/***/ }),
|
|
6052
6042
|
|
|
6053
|
-
/***/ "./node_modules/lodash/
|
|
6054
|
-
|
|
6055
|
-
!*** ./node_modules/lodash/
|
|
6056
|
-
|
|
6043
|
+
/***/ "./node_modules/lodash/_listCacheClear.js":
|
|
6044
|
+
/*!************************************************!*\
|
|
6045
|
+
!*** ./node_modules/lodash/_listCacheClear.js ***!
|
|
6046
|
+
\************************************************/
|
|
6057
6047
|
/*! no static exports found */
|
|
6058
|
-
/***/ (function(module, exports
|
|
6048
|
+
/***/ (function(module, exports) {
|
|
6059
6049
|
|
|
6060
|
-
eval("
|
|
6050
|
+
eval("/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_listCacheClear.js?");
|
|
6061
6051
|
|
|
6062
6052
|
/***/ }),
|
|
6063
6053
|
|
|
6064
|
-
/***/ "./node_modules/lodash/
|
|
6065
|
-
|
|
6066
|
-
!*** ./node_modules/lodash/
|
|
6067
|
-
|
|
6054
|
+
/***/ "./node_modules/lodash/_listCacheDelete.js":
|
|
6055
|
+
/*!*************************************************!*\
|
|
6056
|
+
!*** ./node_modules/lodash/_listCacheDelete.js ***!
|
|
6057
|
+
\*************************************************/
|
|
6068
6058
|
/*! no static exports found */
|
|
6069
6059
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6070
6060
|
|
|
6071
|
-
eval("var
|
|
6061
|
+
eval("var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ \"./node_modules/lodash/_assocIndexOf.js\");\n/** Used for built-in method references. */\n\n\nvar arrayProto = Array.prototype;\n/** Built-in value references. */\n\nvar splice = arrayProto.splice;\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n\n var lastIndex = data.length - 1;\n\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_listCacheDelete.js?");
|
|
6072
6062
|
|
|
6073
6063
|
/***/ }),
|
|
6074
6064
|
|
|
6075
|
-
/***/ "./node_modules/lodash/
|
|
6076
|
-
|
|
6077
|
-
!*** ./node_modules/lodash/
|
|
6078
|
-
|
|
6065
|
+
/***/ "./node_modules/lodash/_listCacheGet.js":
|
|
6066
|
+
/*!**********************************************!*\
|
|
6067
|
+
!*** ./node_modules/lodash/_listCacheGet.js ***!
|
|
6068
|
+
\**********************************************/
|
|
6079
6069
|
/*! no static exports found */
|
|
6080
6070
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6081
6071
|
|
|
6082
|
-
eval("var
|
|
6072
|
+
eval("var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ \"./node_modules/lodash/_assocIndexOf.js\");\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n\n\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_listCacheGet.js?");
|
|
6083
6073
|
|
|
6084
6074
|
/***/ }),
|
|
6085
6075
|
|
|
6086
|
-
/***/ "./node_modules/lodash/
|
|
6087
|
-
|
|
6088
|
-
!*** ./node_modules/lodash/
|
|
6089
|
-
|
|
6076
|
+
/***/ "./node_modules/lodash/_listCacheHas.js":
|
|
6077
|
+
/*!**********************************************!*\
|
|
6078
|
+
!*** ./node_modules/lodash/_listCacheHas.js ***!
|
|
6079
|
+
\**********************************************/
|
|
6090
6080
|
/*! no static exports found */
|
|
6091
6081
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6092
6082
|
|
|
6093
|
-
eval("var
|
|
6083
|
+
eval("var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ \"./node_modules/lodash/_assocIndexOf.js\");\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n\n\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_listCacheHas.js?");
|
|
6094
6084
|
|
|
6095
6085
|
/***/ }),
|
|
6096
6086
|
|
|
6097
|
-
/***/ "./node_modules/lodash/
|
|
6098
|
-
|
|
6099
|
-
!*** ./node_modules/lodash/
|
|
6100
|
-
|
|
6087
|
+
/***/ "./node_modules/lodash/_listCacheSet.js":
|
|
6088
|
+
/*!**********************************************!*\
|
|
6089
|
+
!*** ./node_modules/lodash/_listCacheSet.js ***!
|
|
6090
|
+
\**********************************************/
|
|
6101
6091
|
/*! no static exports found */
|
|
6102
|
-
/***/ (function(module, exports) {
|
|
6103
|
-
|
|
6104
|
-
eval("/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n\n return result;\n}\n\nmodule.exports = baseTimes;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_baseTimes.js?");
|
|
6105
|
-
|
|
6106
|
-
/***/ }),
|
|
6107
|
-
|
|
6108
|
-
/***/ "./node_modules/lodash/_baseToString.js":
|
|
6109
|
-
/*!**********************************************!*\
|
|
6110
|
-
!*** ./node_modules/lodash/_baseToString.js ***!
|
|
6111
|
-
\**********************************************/
|
|
6112
|
-
/*! no static exports found */
|
|
6113
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6114
|
-
|
|
6115
|
-
eval("var Symbol = __webpack_require__(/*! ./_Symbol */ \"./node_modules/lodash/_Symbol.js\"),\n arrayMap = __webpack_require__(/*! ./_arrayMap */ \"./node_modules/lodash/_arrayMap.js\"),\n isArray = __webpack_require__(/*! ./isArray */ \"./node_modules/lodash/isArray.js\"),\n isSymbol = __webpack_require__(/*! ./isSymbol */ \"./node_modules/lodash/isSymbol.js\");\n/** Used as references for various `Number` constants. */\n\n\nvar INFINITY = 1 / 0;\n/** Used to convert symbols to primitives and strings. */\n\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n\n var result = value + '';\n return result == '0' && 1 / value == -INFINITY ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_baseToString.js?");
|
|
6116
|
-
|
|
6117
|
-
/***/ }),
|
|
6118
|
-
|
|
6119
|
-
/***/ "./node_modules/lodash/_baseUnary.js":
|
|
6120
|
-
/*!*******************************************!*\
|
|
6121
|
-
!*** ./node_modules/lodash/_baseUnary.js ***!
|
|
6122
|
-
\*******************************************/
|
|
6123
|
-
/*! no static exports found */
|
|
6124
|
-
/***/ (function(module, exports) {
|
|
6125
|
-
|
|
6126
|
-
eval("/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function (value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_baseUnary.js?");
|
|
6127
|
-
|
|
6128
|
-
/***/ }),
|
|
6129
|
-
|
|
6130
|
-
/***/ "./node_modules/lodash/_castPath.js":
|
|
6131
|
-
/*!******************************************!*\
|
|
6132
|
-
!*** ./node_modules/lodash/_castPath.js ***!
|
|
6133
|
-
\******************************************/
|
|
6134
|
-
/*! no static exports found */
|
|
6135
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6136
|
-
|
|
6137
|
-
eval("var isArray = __webpack_require__(/*! ./isArray */ \"./node_modules/lodash/isArray.js\"),\n isKey = __webpack_require__(/*! ./_isKey */ \"./node_modules/lodash/_isKey.js\"),\n stringToPath = __webpack_require__(/*! ./_stringToPath */ \"./node_modules/lodash/_stringToPath.js\"),\n toString = __webpack_require__(/*! ./toString */ \"./node_modules/lodash/toString.js\");\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n\n\nfunction castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_castPath.js?");
|
|
6138
|
-
|
|
6139
|
-
/***/ }),
|
|
6140
|
-
|
|
6141
|
-
/***/ "./node_modules/lodash/_cloneArrayBuffer.js":
|
|
6142
|
-
/*!**************************************************!*\
|
|
6143
|
-
!*** ./node_modules/lodash/_cloneArrayBuffer.js ***!
|
|
6144
|
-
\**************************************************/
|
|
6145
|
-
/*! no static exports found */
|
|
6146
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6147
|
-
|
|
6148
|
-
eval("var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ \"./node_modules/lodash/_Uint8Array.js\");\n/**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n\n\nfunction cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n}\n\nmodule.exports = cloneArrayBuffer;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_cloneArrayBuffer.js?");
|
|
6149
|
-
|
|
6150
|
-
/***/ }),
|
|
6151
|
-
|
|
6152
|
-
/***/ "./node_modules/lodash/_cloneBuffer.js":
|
|
6153
|
-
/*!*********************************************!*\
|
|
6154
|
-
!*** ./node_modules/lodash/_cloneBuffer.js ***!
|
|
6155
|
-
\*********************************************/
|
|
6156
|
-
/*! no static exports found */
|
|
6157
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6158
|
-
|
|
6159
|
-
eval("/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ \"./node_modules/lodash/_root.js\");\n/** Detect free variable `exports`. */\n\n\nvar freeExports = true && exports && !exports.nodeType && exports;\n/** Detect free variable `module`. */\n\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n/** Detect the popular CommonJS extension `module.exports`. */\n\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n/** Built-in value references. */\n\nvar Buffer = moduleExports ? root.Buffer : undefined,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;\n/**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n\nfunction cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n buffer.copy(result);\n return result;\n}\n\nmodule.exports = cloneBuffer;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ \"./node_modules/webpack/buildin/module.js\")(module)))\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_cloneBuffer.js?");
|
|
6160
|
-
|
|
6161
|
-
/***/ }),
|
|
6162
|
-
|
|
6163
|
-
/***/ "./node_modules/lodash/_cloneDataView.js":
|
|
6164
|
-
/*!***********************************************!*\
|
|
6165
|
-
!*** ./node_modules/lodash/_cloneDataView.js ***!
|
|
6166
|
-
\***********************************************/
|
|
6167
|
-
/*! no static exports found */
|
|
6168
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6169
|
-
|
|
6170
|
-
eval("var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ \"./node_modules/lodash/_cloneArrayBuffer.js\");\n/**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n\n\nfunction cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n}\n\nmodule.exports = cloneDataView;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_cloneDataView.js?");
|
|
6171
|
-
|
|
6172
|
-
/***/ }),
|
|
6173
|
-
|
|
6174
|
-
/***/ "./node_modules/lodash/_cloneRegExp.js":
|
|
6175
|
-
/*!*********************************************!*\
|
|
6176
|
-
!*** ./node_modules/lodash/_cloneRegExp.js ***!
|
|
6177
|
-
\*********************************************/
|
|
6178
|
-
/*! no static exports found */
|
|
6179
|
-
/***/ (function(module, exports) {
|
|
6180
|
-
|
|
6181
|
-
eval("/** Used to match `RegExp` flags from their coerced string values. */\nvar reFlags = /\\w*$/;\n/**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n\nfunction cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n}\n\nmodule.exports = cloneRegExp;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_cloneRegExp.js?");
|
|
6182
|
-
|
|
6183
|
-
/***/ }),
|
|
6184
|
-
|
|
6185
|
-
/***/ "./node_modules/lodash/_cloneSymbol.js":
|
|
6186
|
-
/*!*********************************************!*\
|
|
6187
|
-
!*** ./node_modules/lodash/_cloneSymbol.js ***!
|
|
6188
|
-
\*********************************************/
|
|
6189
|
-
/*! no static exports found */
|
|
6190
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6191
|
-
|
|
6192
|
-
eval("var Symbol = __webpack_require__(/*! ./_Symbol */ \"./node_modules/lodash/_Symbol.js\");\n/** Used to convert symbols to primitives and strings. */\n\n\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n/**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n\nfunction cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n}\n\nmodule.exports = cloneSymbol;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_cloneSymbol.js?");
|
|
6193
|
-
|
|
6194
|
-
/***/ }),
|
|
6195
|
-
|
|
6196
|
-
/***/ "./node_modules/lodash/_cloneTypedArray.js":
|
|
6197
|
-
/*!*************************************************!*\
|
|
6198
|
-
!*** ./node_modules/lodash/_cloneTypedArray.js ***!
|
|
6199
|
-
\*************************************************/
|
|
6200
|
-
/*! no static exports found */
|
|
6201
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6202
|
-
|
|
6203
|
-
eval("var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ \"./node_modules/lodash/_cloneArrayBuffer.js\");\n/**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n\n\nfunction cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n}\n\nmodule.exports = cloneTypedArray;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_cloneTypedArray.js?");
|
|
6204
|
-
|
|
6205
|
-
/***/ }),
|
|
6206
|
-
|
|
6207
|
-
/***/ "./node_modules/lodash/_copyArray.js":
|
|
6208
|
-
/*!*******************************************!*\
|
|
6209
|
-
!*** ./node_modules/lodash/_copyArray.js ***!
|
|
6210
|
-
\*******************************************/
|
|
6211
|
-
/*! no static exports found */
|
|
6212
|
-
/***/ (function(module, exports) {
|
|
6213
|
-
|
|
6214
|
-
eval("/**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\nfunction copyArray(source, array) {\n var index = -1,\n length = source.length;\n array || (array = Array(length));\n\n while (++index < length) {\n array[index] = source[index];\n }\n\n return array;\n}\n\nmodule.exports = copyArray;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_copyArray.js?");
|
|
6215
|
-
|
|
6216
|
-
/***/ }),
|
|
6217
|
-
|
|
6218
|
-
/***/ "./node_modules/lodash/_copyObject.js":
|
|
6219
|
-
/*!********************************************!*\
|
|
6220
|
-
!*** ./node_modules/lodash/_copyObject.js ***!
|
|
6221
|
-
\********************************************/
|
|
6222
|
-
/*! no static exports found */
|
|
6223
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6224
|
-
|
|
6225
|
-
eval("var assignValue = __webpack_require__(/*! ./_assignValue */ \"./node_modules/lodash/_assignValue.js\"),\n baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ \"./node_modules/lodash/_baseAssignValue.js\");\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n\n\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n\n return object;\n}\n\nmodule.exports = copyObject;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_copyObject.js?");
|
|
6226
|
-
|
|
6227
|
-
/***/ }),
|
|
6228
|
-
|
|
6229
|
-
/***/ "./node_modules/lodash/_copySymbols.js":
|
|
6230
|
-
/*!*********************************************!*\
|
|
6231
|
-
!*** ./node_modules/lodash/_copySymbols.js ***!
|
|
6232
|
-
\*********************************************/
|
|
6233
|
-
/*! no static exports found */
|
|
6234
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6235
|
-
|
|
6236
|
-
eval("var copyObject = __webpack_require__(/*! ./_copyObject */ \"./node_modules/lodash/_copyObject.js\"),\n getSymbols = __webpack_require__(/*! ./_getSymbols */ \"./node_modules/lodash/_getSymbols.js\");\n/**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n\n\nfunction copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n}\n\nmodule.exports = copySymbols;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_copySymbols.js?");
|
|
6237
|
-
|
|
6238
|
-
/***/ }),
|
|
6239
|
-
|
|
6240
|
-
/***/ "./node_modules/lodash/_copySymbolsIn.js":
|
|
6241
|
-
/*!***********************************************!*\
|
|
6242
|
-
!*** ./node_modules/lodash/_copySymbolsIn.js ***!
|
|
6243
|
-
\***********************************************/
|
|
6244
|
-
/*! no static exports found */
|
|
6245
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6246
|
-
|
|
6247
|
-
eval("var copyObject = __webpack_require__(/*! ./_copyObject */ \"./node_modules/lodash/_copyObject.js\"),\n getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ \"./node_modules/lodash/_getSymbolsIn.js\");\n/**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n\n\nfunction copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n}\n\nmodule.exports = copySymbolsIn;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_copySymbolsIn.js?");
|
|
6248
|
-
|
|
6249
|
-
/***/ }),
|
|
6250
|
-
|
|
6251
|
-
/***/ "./node_modules/lodash/_coreJsData.js":
|
|
6252
|
-
/*!********************************************!*\
|
|
6253
|
-
!*** ./node_modules/lodash/_coreJsData.js ***!
|
|
6254
|
-
\********************************************/
|
|
6255
|
-
/*! no static exports found */
|
|
6256
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6257
|
-
|
|
6258
|
-
eval("var root = __webpack_require__(/*! ./_root */ \"./node_modules/lodash/_root.js\");\n/** Used to detect overreaching core-js shims. */\n\n\nvar coreJsData = root['__core-js_shared__'];\nmodule.exports = coreJsData;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_coreJsData.js?");
|
|
6259
|
-
|
|
6260
|
-
/***/ }),
|
|
6261
|
-
|
|
6262
|
-
/***/ "./node_modules/lodash/_defineProperty.js":
|
|
6263
|
-
/*!************************************************!*\
|
|
6264
|
-
!*** ./node_modules/lodash/_defineProperty.js ***!
|
|
6265
|
-
\************************************************/
|
|
6266
|
-
/*! no static exports found */
|
|
6267
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6268
|
-
|
|
6269
|
-
eval("var getNative = __webpack_require__(/*! ./_getNative */ \"./node_modules/lodash/_getNative.js\");\n\nvar defineProperty = function () {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}();\n\nmodule.exports = defineProperty;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_defineProperty.js?");
|
|
6270
|
-
|
|
6271
|
-
/***/ }),
|
|
6272
|
-
|
|
6273
|
-
/***/ "./node_modules/lodash/_freeGlobal.js":
|
|
6274
|
-
/*!********************************************!*\
|
|
6275
|
-
!*** ./node_modules/lodash/_freeGlobal.js ***!
|
|
6276
|
-
\********************************************/
|
|
6277
|
-
/*! no static exports found */
|
|
6278
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6279
|
-
|
|
6280
|
-
eval("/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\nmodule.exports = freeGlobal;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_freeGlobal.js?");
|
|
6281
|
-
|
|
6282
|
-
/***/ }),
|
|
6283
|
-
|
|
6284
|
-
/***/ "./node_modules/lodash/_getAllKeys.js":
|
|
6285
|
-
/*!********************************************!*\
|
|
6286
|
-
!*** ./node_modules/lodash/_getAllKeys.js ***!
|
|
6287
|
-
\********************************************/
|
|
6288
|
-
/*! no static exports found */
|
|
6289
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6290
|
-
|
|
6291
|
-
eval("var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ \"./node_modules/lodash/_baseGetAllKeys.js\"),\n getSymbols = __webpack_require__(/*! ./_getSymbols */ \"./node_modules/lodash/_getSymbols.js\"),\n keys = __webpack_require__(/*! ./keys */ \"./node_modules/lodash/keys.js\");\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n\n\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_getAllKeys.js?");
|
|
6292
|
-
|
|
6293
|
-
/***/ }),
|
|
6294
|
-
|
|
6295
|
-
/***/ "./node_modules/lodash/_getAllKeysIn.js":
|
|
6296
|
-
/*!**********************************************!*\
|
|
6297
|
-
!*** ./node_modules/lodash/_getAllKeysIn.js ***!
|
|
6298
|
-
\**********************************************/
|
|
6299
|
-
/*! no static exports found */
|
|
6300
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6301
|
-
|
|
6302
|
-
eval("var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ \"./node_modules/lodash/_baseGetAllKeys.js\"),\n getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ \"./node_modules/lodash/_getSymbolsIn.js\"),\n keysIn = __webpack_require__(/*! ./keysIn */ \"./node_modules/lodash/keysIn.js\");\n/**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n\n\nfunction getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n}\n\nmodule.exports = getAllKeysIn;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_getAllKeysIn.js?");
|
|
6303
|
-
|
|
6304
|
-
/***/ }),
|
|
6305
|
-
|
|
6306
|
-
/***/ "./node_modules/lodash/_getMapData.js":
|
|
6307
|
-
/*!********************************************!*\
|
|
6308
|
-
!*** ./node_modules/lodash/_getMapData.js ***!
|
|
6309
|
-
\********************************************/
|
|
6310
|
-
/*! no static exports found */
|
|
6311
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6312
|
-
|
|
6313
|
-
eval("var isKeyable = __webpack_require__(/*! ./_isKeyable */ \"./node_modules/lodash/_isKeyable.js\");\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n\n\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map;\n}\n\nmodule.exports = getMapData;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_getMapData.js?");
|
|
6314
|
-
|
|
6315
|
-
/***/ }),
|
|
6316
|
-
|
|
6317
|
-
/***/ "./node_modules/lodash/_getNative.js":
|
|
6318
|
-
/*!*******************************************!*\
|
|
6319
|
-
!*** ./node_modules/lodash/_getNative.js ***!
|
|
6320
|
-
\*******************************************/
|
|
6321
|
-
/*! no static exports found */
|
|
6322
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6323
|
-
|
|
6324
|
-
eval("var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ \"./node_modules/lodash/_baseIsNative.js\"),\n getValue = __webpack_require__(/*! ./_getValue */ \"./node_modules/lodash/_getValue.js\");\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n\n\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_getNative.js?");
|
|
6325
|
-
|
|
6326
|
-
/***/ }),
|
|
6327
|
-
|
|
6328
|
-
/***/ "./node_modules/lodash/_getPrototype.js":
|
|
6329
|
-
/*!**********************************************!*\
|
|
6330
|
-
!*** ./node_modules/lodash/_getPrototype.js ***!
|
|
6331
|
-
\**********************************************/
|
|
6332
|
-
/*! no static exports found */
|
|
6333
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6334
|
-
|
|
6335
|
-
eval("var overArg = __webpack_require__(/*! ./_overArg */ \"./node_modules/lodash/_overArg.js\");\n/** Built-in value references. */\n\n\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\nmodule.exports = getPrototype;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_getPrototype.js?");
|
|
6336
|
-
|
|
6337
|
-
/***/ }),
|
|
6338
|
-
|
|
6339
|
-
/***/ "./node_modules/lodash/_getRawTag.js":
|
|
6340
|
-
/*!*******************************************!*\
|
|
6341
|
-
!*** ./node_modules/lodash/_getRawTag.js ***!
|
|
6342
|
-
\*******************************************/
|
|
6343
|
-
/*! no static exports found */
|
|
6344
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6345
|
-
|
|
6346
|
-
eval("var Symbol = __webpack_require__(/*! ./_Symbol */ \"./node_modules/lodash/_Symbol.js\");\n/** Used for built-in method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n\nvar nativeObjectToString = objectProto.toString;\n/** Built-in value references. */\n\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n\n return result;\n}\n\nmodule.exports = getRawTag;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_getRawTag.js?");
|
|
6347
|
-
|
|
6348
|
-
/***/ }),
|
|
6349
|
-
|
|
6350
|
-
/***/ "./node_modules/lodash/_getSymbols.js":
|
|
6351
|
-
/*!********************************************!*\
|
|
6352
|
-
!*** ./node_modules/lodash/_getSymbols.js ***!
|
|
6353
|
-
\********************************************/
|
|
6354
|
-
/*! no static exports found */
|
|
6355
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6356
|
-
|
|
6357
|
-
eval("var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ \"./node_modules/lodash/_arrayFilter.js\"),\n stubArray = __webpack_require__(/*! ./stubArray */ \"./node_modules/lodash/stubArray.js\");\n/** Used for built-in method references. */\n\n\nvar objectProto = Object.prototype;\n/** Built-in value references. */\n\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n/* Built-in method references for those with the same name as other `lodash` methods. */\n\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n\nvar getSymbols = !nativeGetSymbols ? stubArray : function (object) {\n if (object == null) {\n return [];\n }\n\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function (symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\nmodule.exports = getSymbols;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_getSymbols.js?");
|
|
6358
|
-
|
|
6359
|
-
/***/ }),
|
|
6360
|
-
|
|
6361
|
-
/***/ "./node_modules/lodash/_getSymbolsIn.js":
|
|
6362
|
-
/*!**********************************************!*\
|
|
6363
|
-
!*** ./node_modules/lodash/_getSymbolsIn.js ***!
|
|
6364
|
-
\**********************************************/
|
|
6365
|
-
/*! no static exports found */
|
|
6366
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6367
|
-
|
|
6368
|
-
eval("var arrayPush = __webpack_require__(/*! ./_arrayPush */ \"./node_modules/lodash/_arrayPush.js\"),\n getPrototype = __webpack_require__(/*! ./_getPrototype */ \"./node_modules/lodash/_getPrototype.js\"),\n getSymbols = __webpack_require__(/*! ./_getSymbols */ \"./node_modules/lodash/_getSymbols.js\"),\n stubArray = __webpack_require__(/*! ./stubArray */ \"./node_modules/lodash/stubArray.js\");\n/* Built-in method references for those with the same name as other `lodash` methods. */\n\n\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n/**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n\nvar getSymbolsIn = !nativeGetSymbols ? stubArray : function (object) {\n var result = [];\n\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n\n return result;\n};\nmodule.exports = getSymbolsIn;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_getSymbolsIn.js?");
|
|
6369
|
-
|
|
6370
|
-
/***/ }),
|
|
6371
|
-
|
|
6372
|
-
/***/ "./node_modules/lodash/_getTag.js":
|
|
6373
|
-
/*!****************************************!*\
|
|
6374
|
-
!*** ./node_modules/lodash/_getTag.js ***!
|
|
6375
|
-
\****************************************/
|
|
6376
|
-
/*! no static exports found */
|
|
6377
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6378
|
-
|
|
6379
|
-
eval("var DataView = __webpack_require__(/*! ./_DataView */ \"./node_modules/lodash/_DataView.js\"),\n Map = __webpack_require__(/*! ./_Map */ \"./node_modules/lodash/_Map.js\"),\n Promise = __webpack_require__(/*! ./_Promise */ \"./node_modules/lodash/_Promise.js\"),\n Set = __webpack_require__(/*! ./_Set */ \"./node_modules/lodash/_Set.js\"),\n WeakMap = __webpack_require__(/*! ./_WeakMap */ \"./node_modules/lodash/_WeakMap.js\"),\n baseGetTag = __webpack_require__(/*! ./_baseGetTag */ \"./node_modules/lodash/_baseGetTag.js\"),\n toSource = __webpack_require__(/*! ./_toSource */ \"./node_modules/lodash/_toSource.js\");\n/** `Object#toString` result references. */\n\n\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\nvar dataViewTag = '[object DataView]';\n/** Used to detect maps, sets, and weakmaps. */\n\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n\nvar getTag = baseGetTag; // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n\nif (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map && getTag(new Map()) != mapTag || Promise && getTag(Promise.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {\n getTag = function (value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString:\n return dataViewTag;\n\n case mapCtorString:\n return mapTag;\n\n case promiseCtorString:\n return promiseTag;\n\n case setCtorString:\n return setTag;\n\n case weakMapCtorString:\n return weakMapTag;\n }\n }\n\n return result;\n };\n}\n\nmodule.exports = getTag;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_getTag.js?");
|
|
6380
|
-
|
|
6381
|
-
/***/ }),
|
|
6382
|
-
|
|
6383
|
-
/***/ "./node_modules/lodash/_getValue.js":
|
|
6384
|
-
/*!******************************************!*\
|
|
6385
|
-
!*** ./node_modules/lodash/_getValue.js ***!
|
|
6386
|
-
\******************************************/
|
|
6387
|
-
/*! no static exports found */
|
|
6388
|
-
/***/ (function(module, exports) {
|
|
6389
|
-
|
|
6390
|
-
eval("/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_getValue.js?");
|
|
6391
|
-
|
|
6392
|
-
/***/ }),
|
|
6393
|
-
|
|
6394
|
-
/***/ "./node_modules/lodash/_hashClear.js":
|
|
6395
|
-
/*!*******************************************!*\
|
|
6396
|
-
!*** ./node_modules/lodash/_hashClear.js ***!
|
|
6397
|
-
\*******************************************/
|
|
6398
|
-
/*! no static exports found */
|
|
6399
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6400
|
-
|
|
6401
|
-
eval("var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ \"./node_modules/lodash/_nativeCreate.js\");\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n\n\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_hashClear.js?");
|
|
6402
|
-
|
|
6403
|
-
/***/ }),
|
|
6404
|
-
|
|
6405
|
-
/***/ "./node_modules/lodash/_hashDelete.js":
|
|
6406
|
-
/*!********************************************!*\
|
|
6407
|
-
!*** ./node_modules/lodash/_hashDelete.js ***!
|
|
6408
|
-
\********************************************/
|
|
6409
|
-
/*! no static exports found */
|
|
6410
|
-
/***/ (function(module, exports) {
|
|
6411
|
-
|
|
6412
|
-
eval("/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_hashDelete.js?");
|
|
6413
|
-
|
|
6414
|
-
/***/ }),
|
|
6415
|
-
|
|
6416
|
-
/***/ "./node_modules/lodash/_hashGet.js":
|
|
6417
|
-
/*!*****************************************!*\
|
|
6418
|
-
!*** ./node_modules/lodash/_hashGet.js ***!
|
|
6419
|
-
\*****************************************/
|
|
6420
|
-
/*! no static exports found */
|
|
6421
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6422
|
-
|
|
6423
|
-
eval("var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ \"./node_modules/lodash/_nativeCreate.js\");\n/** Used to stand-in for `undefined` hash values. */\n\n\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n/** Used for built-in method references. */\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n\nfunction hashGet(key) {\n var data = this.__data__;\n\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_hashGet.js?");
|
|
6424
|
-
|
|
6425
|
-
/***/ }),
|
|
6426
|
-
|
|
6427
|
-
/***/ "./node_modules/lodash/_hashHas.js":
|
|
6428
|
-
/*!*****************************************!*\
|
|
6429
|
-
!*** ./node_modules/lodash/_hashHas.js ***!
|
|
6430
|
-
\*****************************************/
|
|
6431
|
-
/*! no static exports found */
|
|
6432
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6433
|
-
|
|
6434
|
-
eval("var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ \"./node_modules/lodash/_nativeCreate.js\");\n/** Used for built-in method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_hashHas.js?");
|
|
6435
|
-
|
|
6436
|
-
/***/ }),
|
|
6437
|
-
|
|
6438
|
-
/***/ "./node_modules/lodash/_hashSet.js":
|
|
6439
|
-
/*!*****************************************!*\
|
|
6440
|
-
!*** ./node_modules/lodash/_hashSet.js ***!
|
|
6441
|
-
\*****************************************/
|
|
6442
|
-
/*! no static exports found */
|
|
6443
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6444
|
-
|
|
6445
|
-
eval("var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ \"./node_modules/lodash/_nativeCreate.js\");\n/** Used to stand-in for `undefined` hash values. */\n\n\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_hashSet.js?");
|
|
6446
|
-
|
|
6447
|
-
/***/ }),
|
|
6448
|
-
|
|
6449
|
-
/***/ "./node_modules/lodash/_initCloneArray.js":
|
|
6450
|
-
/*!************************************************!*\
|
|
6451
|
-
!*** ./node_modules/lodash/_initCloneArray.js ***!
|
|
6452
|
-
\************************************************/
|
|
6453
|
-
/*! no static exports found */
|
|
6454
|
-
/***/ (function(module, exports) {
|
|
6455
|
-
|
|
6456
|
-
eval("/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n\nfunction initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length); // Add properties assigned by `RegExp#exec`.\n\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n\n return result;\n}\n\nmodule.exports = initCloneArray;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_initCloneArray.js?");
|
|
6457
|
-
|
|
6458
|
-
/***/ }),
|
|
6459
|
-
|
|
6460
|
-
/***/ "./node_modules/lodash/_initCloneByTag.js":
|
|
6461
|
-
/*!************************************************!*\
|
|
6462
|
-
!*** ./node_modules/lodash/_initCloneByTag.js ***!
|
|
6463
|
-
\************************************************/
|
|
6464
|
-
/*! no static exports found */
|
|
6465
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6466
|
-
|
|
6467
|
-
eval("var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ \"./node_modules/lodash/_cloneArrayBuffer.js\"),\n cloneDataView = __webpack_require__(/*! ./_cloneDataView */ \"./node_modules/lodash/_cloneDataView.js\"),\n cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ \"./node_modules/lodash/_cloneRegExp.js\"),\n cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ \"./node_modules/lodash/_cloneSymbol.js\"),\n cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ \"./node_modules/lodash/_cloneTypedArray.js\");\n/** `Object#toString` result references. */\n\n\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n/**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n\nfunction initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag:\n case float64Tag:\n case int8Tag:\n case int16Tag:\n case int32Tag:\n case uint8Tag:\n case uint8ClampedTag:\n case uint16Tag:\n case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor();\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor();\n\n case symbolTag:\n return cloneSymbol(object);\n }\n}\n\nmodule.exports = initCloneByTag;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_initCloneByTag.js?");
|
|
6468
|
-
|
|
6469
|
-
/***/ }),
|
|
6470
|
-
|
|
6471
|
-
/***/ "./node_modules/lodash/_initCloneObject.js":
|
|
6472
|
-
/*!*************************************************!*\
|
|
6473
|
-
!*** ./node_modules/lodash/_initCloneObject.js ***!
|
|
6474
|
-
\*************************************************/
|
|
6475
|
-
/*! no static exports found */
|
|
6476
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6477
|
-
|
|
6478
|
-
eval("var baseCreate = __webpack_require__(/*! ./_baseCreate */ \"./node_modules/lodash/_baseCreate.js\"),\n getPrototype = __webpack_require__(/*! ./_getPrototype */ \"./node_modules/lodash/_getPrototype.js\"),\n isPrototype = __webpack_require__(/*! ./_isPrototype */ \"./node_modules/lodash/_isPrototype.js\");\n/**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n\n\nfunction initCloneObject(object) {\n return typeof object.constructor == 'function' && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};\n}\n\nmodule.exports = initCloneObject;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_initCloneObject.js?");
|
|
6479
|
-
|
|
6480
|
-
/***/ }),
|
|
6481
|
-
|
|
6482
|
-
/***/ "./node_modules/lodash/_isIndex.js":
|
|
6483
|
-
/*!*****************************************!*\
|
|
6484
|
-
!*** ./node_modules/lodash/_isIndex.js ***!
|
|
6485
|
-
\*****************************************/
|
|
6486
|
-
/*! no static exports found */
|
|
6487
|
-
/***/ (function(module, exports) {
|
|
6488
|
-
|
|
6489
|
-
eval("/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/** Used to detect unsigned integer values. */\n\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length && (type == 'number' || type != 'symbol' && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;\n}\n\nmodule.exports = isIndex;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_isIndex.js?");
|
|
6490
|
-
|
|
6491
|
-
/***/ }),
|
|
6492
|
-
|
|
6493
|
-
/***/ "./node_modules/lodash/_isKey.js":
|
|
6494
|
-
/*!***************************************!*\
|
|
6495
|
-
!*** ./node_modules/lodash/_isKey.js ***!
|
|
6496
|
-
\***************************************/
|
|
6497
|
-
/*! no static exports found */
|
|
6498
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6499
|
-
|
|
6500
|
-
eval("var isArray = __webpack_require__(/*! ./isArray */ \"./node_modules/lodash/isArray.js\"),\n isSymbol = __webpack_require__(/*! ./isSymbol */ \"./node_modules/lodash/isSymbol.js\");\n/** Used to match property names within property paths. */\n\n\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n\n var type = typeof value;\n\n if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) {\n return true;\n }\n\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);\n}\n\nmodule.exports = isKey;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_isKey.js?");
|
|
6501
|
-
|
|
6502
|
-
/***/ }),
|
|
6503
|
-
|
|
6504
|
-
/***/ "./node_modules/lodash/_isKeyable.js":
|
|
6505
|
-
/*!*******************************************!*\
|
|
6506
|
-
!*** ./node_modules/lodash/_isKeyable.js ***!
|
|
6507
|
-
\*******************************************/
|
|
6508
|
-
/*! no static exports found */
|
|
6509
|
-
/***/ (function(module, exports) {
|
|
6510
|
-
|
|
6511
|
-
eval("/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' : value === null;\n}\n\nmodule.exports = isKeyable;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_isKeyable.js?");
|
|
6512
|
-
|
|
6513
|
-
/***/ }),
|
|
6514
|
-
|
|
6515
|
-
/***/ "./node_modules/lodash/_isMasked.js":
|
|
6516
|
-
/*!******************************************!*\
|
|
6517
|
-
!*** ./node_modules/lodash/_isMasked.js ***!
|
|
6518
|
-
\******************************************/
|
|
6519
|
-
/*! no static exports found */
|
|
6520
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6521
|
-
|
|
6522
|
-
eval("var coreJsData = __webpack_require__(/*! ./_coreJsData */ \"./node_modules/lodash/_coreJsData.js\");\n/** Used to detect methods masquerading as native. */\n\n\nvar maskSrcKey = function () {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? 'Symbol(src)_1.' + uid : '';\n}();\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n\n\nfunction isMasked(func) {\n return !!maskSrcKey && maskSrcKey in func;\n}\n\nmodule.exports = isMasked;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_isMasked.js?");
|
|
6523
|
-
|
|
6524
|
-
/***/ }),
|
|
6525
|
-
|
|
6526
|
-
/***/ "./node_modules/lodash/_isPrototype.js":
|
|
6527
|
-
/*!*********************************************!*\
|
|
6528
|
-
!*** ./node_modules/lodash/_isPrototype.js ***!
|
|
6529
|
-
\*********************************************/
|
|
6530
|
-
/*! no static exports found */
|
|
6531
|
-
/***/ (function(module, exports) {
|
|
6532
|
-
|
|
6533
|
-
eval("/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = typeof Ctor == 'function' && Ctor.prototype || objectProto;\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_isPrototype.js?");
|
|
6534
|
-
|
|
6535
|
-
/***/ }),
|
|
6536
|
-
|
|
6537
|
-
/***/ "./node_modules/lodash/_listCacheClear.js":
|
|
6538
|
-
/*!************************************************!*\
|
|
6539
|
-
!*** ./node_modules/lodash/_listCacheClear.js ***!
|
|
6540
|
-
\************************************************/
|
|
6541
|
-
/*! no static exports found */
|
|
6542
|
-
/***/ (function(module, exports) {
|
|
6543
|
-
|
|
6544
|
-
eval("/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_listCacheClear.js?");
|
|
6545
|
-
|
|
6546
|
-
/***/ }),
|
|
6547
|
-
|
|
6548
|
-
/***/ "./node_modules/lodash/_listCacheDelete.js":
|
|
6549
|
-
/*!*************************************************!*\
|
|
6550
|
-
!*** ./node_modules/lodash/_listCacheDelete.js ***!
|
|
6551
|
-
\*************************************************/
|
|
6552
|
-
/*! no static exports found */
|
|
6553
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6554
|
-
|
|
6555
|
-
eval("var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ \"./node_modules/lodash/_assocIndexOf.js\");\n/** Used for built-in method references. */\n\n\nvar arrayProto = Array.prototype;\n/** Built-in value references. */\n\nvar splice = arrayProto.splice;\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n\n var lastIndex = data.length - 1;\n\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_listCacheDelete.js?");
|
|
6556
|
-
|
|
6557
|
-
/***/ }),
|
|
6558
|
-
|
|
6559
|
-
/***/ "./node_modules/lodash/_listCacheGet.js":
|
|
6560
|
-
/*!**********************************************!*\
|
|
6561
|
-
!*** ./node_modules/lodash/_listCacheGet.js ***!
|
|
6562
|
-
\**********************************************/
|
|
6563
|
-
/*! no static exports found */
|
|
6564
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6565
|
-
|
|
6566
|
-
eval("var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ \"./node_modules/lodash/_assocIndexOf.js\");\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n\n\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_listCacheGet.js?");
|
|
6567
|
-
|
|
6568
|
-
/***/ }),
|
|
6569
|
-
|
|
6570
|
-
/***/ "./node_modules/lodash/_listCacheHas.js":
|
|
6571
|
-
/*!**********************************************!*\
|
|
6572
|
-
!*** ./node_modules/lodash/_listCacheHas.js ***!
|
|
6573
|
-
\**********************************************/
|
|
6574
|
-
/*! no static exports found */
|
|
6575
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6576
|
-
|
|
6577
|
-
eval("var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ \"./node_modules/lodash/_assocIndexOf.js\");\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n\n\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_listCacheHas.js?");
|
|
6578
|
-
|
|
6579
|
-
/***/ }),
|
|
6580
|
-
|
|
6581
|
-
/***/ "./node_modules/lodash/_listCacheSet.js":
|
|
6582
|
-
/*!**********************************************!*\
|
|
6583
|
-
!*** ./node_modules/lodash/_listCacheSet.js ***!
|
|
6584
|
-
\**********************************************/
|
|
6585
|
-
/*! no static exports found */
|
|
6586
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6092
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6587
6093
|
|
|
6588
6094
|
eval("var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ \"./node_modules/lodash/_assocIndexOf.js\");\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n\n\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n\n return this;\n}\n\nmodule.exports = listCacheSet;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_listCacheSet.js?");
|
|
6589
6095
|
|
|
@@ -6666,39 +6172,6 @@ eval("var getNative = __webpack_require__(/*! ./_getNative */ \"./node_modules/l
|
|
|
6666
6172
|
|
|
6667
6173
|
/***/ }),
|
|
6668
6174
|
|
|
6669
|
-
/***/ "./node_modules/lodash/_nativeKeys.js":
|
|
6670
|
-
/*!********************************************!*\
|
|
6671
|
-
!*** ./node_modules/lodash/_nativeKeys.js ***!
|
|
6672
|
-
\********************************************/
|
|
6673
|
-
/*! no static exports found */
|
|
6674
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6675
|
-
|
|
6676
|
-
eval("var overArg = __webpack_require__(/*! ./_overArg */ \"./node_modules/lodash/_overArg.js\");\n/* Built-in method references for those with the same name as other `lodash` methods. */\n\n\nvar nativeKeys = overArg(Object.keys, Object);\nmodule.exports = nativeKeys;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_nativeKeys.js?");
|
|
6677
|
-
|
|
6678
|
-
/***/ }),
|
|
6679
|
-
|
|
6680
|
-
/***/ "./node_modules/lodash/_nativeKeysIn.js":
|
|
6681
|
-
/*!**********************************************!*\
|
|
6682
|
-
!*** ./node_modules/lodash/_nativeKeysIn.js ***!
|
|
6683
|
-
\**********************************************/
|
|
6684
|
-
/*! no static exports found */
|
|
6685
|
-
/***/ (function(module, exports) {
|
|
6686
|
-
|
|
6687
|
-
eval("/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_nativeKeysIn.js?");
|
|
6688
|
-
|
|
6689
|
-
/***/ }),
|
|
6690
|
-
|
|
6691
|
-
/***/ "./node_modules/lodash/_nodeUtil.js":
|
|
6692
|
-
/*!******************************************!*\
|
|
6693
|
-
!*** ./node_modules/lodash/_nodeUtil.js ***!
|
|
6694
|
-
\******************************************/
|
|
6695
|
-
/*! no static exports found */
|
|
6696
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6697
|
-
|
|
6698
|
-
eval("/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ \"./node_modules/lodash/_freeGlobal.js\");\n/** Detect free variable `exports`. */\n\n\nvar freeExports = true && exports && !exports.nodeType && exports;\n/** Detect free variable `module`. */\n\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n/** Detect the popular CommonJS extension `module.exports`. */\n\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n/** Detect free variable `process` from Node.js. */\n\nvar freeProcess = moduleExports && freeGlobal.process;\n/** Used to access faster Node.js helpers. */\n\nvar nodeUtil = function () {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n } // Legacy `process.binding('util')` for Node.js < 10.\n\n\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}();\n\nmodule.exports = nodeUtil;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ \"./node_modules/webpack/buildin/module.js\")(module)))\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_nodeUtil.js?");
|
|
6699
|
-
|
|
6700
|
-
/***/ }),
|
|
6701
|
-
|
|
6702
6175
|
/***/ "./node_modules/lodash/_objectToString.js":
|
|
6703
6176
|
/*!************************************************!*\
|
|
6704
6177
|
!*** ./node_modules/lodash/_objectToString.js ***!
|
|
@@ -6710,17 +6183,6 @@ eval("/** Used for built-in method references. */\nvar objectProto = Object.prot
|
|
|
6710
6183
|
|
|
6711
6184
|
/***/ }),
|
|
6712
6185
|
|
|
6713
|
-
/***/ "./node_modules/lodash/_overArg.js":
|
|
6714
|
-
/*!*****************************************!*\
|
|
6715
|
-
!*** ./node_modules/lodash/_overArg.js ***!
|
|
6716
|
-
\*****************************************/
|
|
6717
|
-
/*! no static exports found */
|
|
6718
|
-
/***/ (function(module, exports) {
|
|
6719
|
-
|
|
6720
|
-
eval("/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function (arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_overArg.js?");
|
|
6721
|
-
|
|
6722
|
-
/***/ }),
|
|
6723
|
-
|
|
6724
6186
|
/***/ "./node_modules/lodash/_root.js":
|
|
6725
6187
|
/*!**************************************!*\
|
|
6726
6188
|
!*** ./node_modules/lodash/_root.js ***!
|
|
@@ -6732,61 +6194,6 @@ eval("var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ \"./node_modules
|
|
|
6732
6194
|
|
|
6733
6195
|
/***/ }),
|
|
6734
6196
|
|
|
6735
|
-
/***/ "./node_modules/lodash/_stackClear.js":
|
|
6736
|
-
/*!********************************************!*\
|
|
6737
|
-
!*** ./node_modules/lodash/_stackClear.js ***!
|
|
6738
|
-
\********************************************/
|
|
6739
|
-
/*! no static exports found */
|
|
6740
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6741
|
-
|
|
6742
|
-
eval("var ListCache = __webpack_require__(/*! ./_ListCache */ \"./node_modules/lodash/_ListCache.js\");\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n\n\nfunction stackClear() {\n this.__data__ = new ListCache();\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_stackClear.js?");
|
|
6743
|
-
|
|
6744
|
-
/***/ }),
|
|
6745
|
-
|
|
6746
|
-
/***/ "./node_modules/lodash/_stackDelete.js":
|
|
6747
|
-
/*!*********************************************!*\
|
|
6748
|
-
!*** ./node_modules/lodash/_stackDelete.js ***!
|
|
6749
|
-
\*********************************************/
|
|
6750
|
-
/*! no static exports found */
|
|
6751
|
-
/***/ (function(module, exports) {
|
|
6752
|
-
|
|
6753
|
-
eval("/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_stackDelete.js?");
|
|
6754
|
-
|
|
6755
|
-
/***/ }),
|
|
6756
|
-
|
|
6757
|
-
/***/ "./node_modules/lodash/_stackGet.js":
|
|
6758
|
-
/*!******************************************!*\
|
|
6759
|
-
!*** ./node_modules/lodash/_stackGet.js ***!
|
|
6760
|
-
\******************************************/
|
|
6761
|
-
/*! no static exports found */
|
|
6762
|
-
/***/ (function(module, exports) {
|
|
6763
|
-
|
|
6764
|
-
eval("/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_stackGet.js?");
|
|
6765
|
-
|
|
6766
|
-
/***/ }),
|
|
6767
|
-
|
|
6768
|
-
/***/ "./node_modules/lodash/_stackHas.js":
|
|
6769
|
-
/*!******************************************!*\
|
|
6770
|
-
!*** ./node_modules/lodash/_stackHas.js ***!
|
|
6771
|
-
\******************************************/
|
|
6772
|
-
/*! no static exports found */
|
|
6773
|
-
/***/ (function(module, exports) {
|
|
6774
|
-
|
|
6775
|
-
eval("/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_stackHas.js?");
|
|
6776
|
-
|
|
6777
|
-
/***/ }),
|
|
6778
|
-
|
|
6779
|
-
/***/ "./node_modules/lodash/_stackSet.js":
|
|
6780
|
-
/*!******************************************!*\
|
|
6781
|
-
!*** ./node_modules/lodash/_stackSet.js ***!
|
|
6782
|
-
\******************************************/
|
|
6783
|
-
/*! no static exports found */
|
|
6784
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6785
|
-
|
|
6786
|
-
eval("var ListCache = __webpack_require__(/*! ./_ListCache */ \"./node_modules/lodash/_ListCache.js\"),\n Map = __webpack_require__(/*! ./_Map */ \"./node_modules/lodash/_Map.js\"),\n MapCache = __webpack_require__(/*! ./_MapCache */ \"./node_modules/lodash/_MapCache.js\");\n/** Used as the size to enable large array optimizations. */\n\n\nvar LARGE_ARRAY_SIZE = 200;\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n\nfunction stackSet(key, value) {\n var data = this.__data__;\n\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n\n if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n\n data = this.__data__ = new MapCache(pairs);\n }\n\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/_stackSet.js?");
|
|
6787
|
-
|
|
6788
|
-
/***/ }),
|
|
6789
|
-
|
|
6790
6197
|
/***/ "./node_modules/lodash/_stringToPath.js":
|
|
6791
6198
|
/*!**********************************************!*\
|
|
6792
6199
|
!*** ./node_modules/lodash/_stringToPath.js ***!
|
|
@@ -6820,17 +6227,6 @@ eval("/** Used for built-in method references. */\nvar funcProto = Function.prot
|
|
|
6820
6227
|
|
|
6821
6228
|
/***/ }),
|
|
6822
6229
|
|
|
6823
|
-
/***/ "./node_modules/lodash/cloneDeep.js":
|
|
6824
|
-
/*!******************************************!*\
|
|
6825
|
-
!*** ./node_modules/lodash/cloneDeep.js ***!
|
|
6826
|
-
\******************************************/
|
|
6827
|
-
/*! no static exports found */
|
|
6828
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6829
|
-
|
|
6830
|
-
eval("var baseClone = __webpack_require__(/*! ./_baseClone */ \"./node_modules/lodash/_baseClone.js\");\n/** Used to compose bitmasks for cloning. */\n\n\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nmodule.exports = cloneDeep;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/cloneDeep.js?");
|
|
6831
|
-
|
|
6832
|
-
/***/ }),
|
|
6833
|
-
|
|
6834
6230
|
/***/ "./node_modules/lodash/eq.js":
|
|
6835
6231
|
/*!***********************************!*\
|
|
6836
6232
|
!*** ./node_modules/lodash/eq.js ***!
|
|
@@ -6853,17 +6249,6 @@ eval("var baseGet = __webpack_require__(/*! ./_baseGet */ \"./node_modules/lodas
|
|
|
6853
6249
|
|
|
6854
6250
|
/***/ }),
|
|
6855
6251
|
|
|
6856
|
-
/***/ "./node_modules/lodash/isArguments.js":
|
|
6857
|
-
/*!********************************************!*\
|
|
6858
|
-
!*** ./node_modules/lodash/isArguments.js ***!
|
|
6859
|
-
\********************************************/
|
|
6860
|
-
/*! no static exports found */
|
|
6861
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6862
|
-
|
|
6863
|
-
eval("var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ \"./node_modules/lodash/_baseIsArguments.js\"),\n isObjectLike = __webpack_require__(/*! ./isObjectLike */ \"./node_modules/lodash/isObjectLike.js\");\n/** Used for built-in method references. */\n\n\nvar objectProto = Object.prototype;\n/** Used to check objects for own properties. */\n\nvar hasOwnProperty = objectProto.hasOwnProperty;\n/** Built-in value references. */\n\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n\nvar isArguments = baseIsArguments(function () {\n return arguments;\n}()) ? baseIsArguments : function (value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');\n};\nmodule.exports = isArguments;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/isArguments.js?");
|
|
6864
|
-
|
|
6865
|
-
/***/ }),
|
|
6866
|
-
|
|
6867
6252
|
/***/ "./node_modules/lodash/isArray.js":
|
|
6868
6253
|
/*!****************************************!*\
|
|
6869
6254
|
!*** ./node_modules/lodash/isArray.js ***!
|
|
@@ -6875,28 +6260,6 @@ eval("/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @sta
|
|
|
6875
6260
|
|
|
6876
6261
|
/***/ }),
|
|
6877
6262
|
|
|
6878
|
-
/***/ "./node_modules/lodash/isArrayLike.js":
|
|
6879
|
-
/*!********************************************!*\
|
|
6880
|
-
!*** ./node_modules/lodash/isArrayLike.js ***!
|
|
6881
|
-
\********************************************/
|
|
6882
|
-
/*! no static exports found */
|
|
6883
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6884
|
-
|
|
6885
|
-
eval("var isFunction = __webpack_require__(/*! ./isFunction */ \"./node_modules/lodash/isFunction.js\"),\n isLength = __webpack_require__(/*! ./isLength */ \"./node_modules/lodash/isLength.js\");\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n\n\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/isArrayLike.js?");
|
|
6886
|
-
|
|
6887
|
-
/***/ }),
|
|
6888
|
-
|
|
6889
|
-
/***/ "./node_modules/lodash/isBuffer.js":
|
|
6890
|
-
/*!*****************************************!*\
|
|
6891
|
-
!*** ./node_modules/lodash/isBuffer.js ***!
|
|
6892
|
-
\*****************************************/
|
|
6893
|
-
/*! no static exports found */
|
|
6894
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6895
|
-
|
|
6896
|
-
eval("/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ \"./node_modules/lodash/_root.js\"),\n stubFalse = __webpack_require__(/*! ./stubFalse */ \"./node_modules/lodash/stubFalse.js\");\n/** Detect free variable `exports`. */\n\n\nvar freeExports = true && exports && !exports.nodeType && exports;\n/** Detect free variable `module`. */\n\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n/** Detect the popular CommonJS extension `module.exports`. */\n\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n/** Built-in value references. */\n\nvar Buffer = moduleExports ? root.Buffer : undefined;\n/* Built-in method references for those with the same name as other `lodash` methods. */\n\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n\nvar isBuffer = nativeIsBuffer || stubFalse;\nmodule.exports = isBuffer;\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ \"./node_modules/webpack/buildin/module.js\")(module)))\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/isBuffer.js?");
|
|
6897
|
-
|
|
6898
|
-
/***/ }),
|
|
6899
|
-
|
|
6900
6263
|
/***/ "./node_modules/lodash/isFunction.js":
|
|
6901
6264
|
/*!*******************************************!*\
|
|
6902
6265
|
!*** ./node_modules/lodash/isFunction.js ***!
|
|
@@ -6908,28 +6271,6 @@ eval("var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ \"./node_modules
|
|
|
6908
6271
|
|
|
6909
6272
|
/***/ }),
|
|
6910
6273
|
|
|
6911
|
-
/***/ "./node_modules/lodash/isLength.js":
|
|
6912
|
-
/*!*****************************************!*\
|
|
6913
|
-
!*** ./node_modules/lodash/isLength.js ***!
|
|
6914
|
-
\*****************************************/
|
|
6915
|
-
/*! no static exports found */
|
|
6916
|
-
/***/ (function(module, exports) {
|
|
6917
|
-
|
|
6918
|
-
eval("/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/isLength.js?");
|
|
6919
|
-
|
|
6920
|
-
/***/ }),
|
|
6921
|
-
|
|
6922
|
-
/***/ "./node_modules/lodash/isMap.js":
|
|
6923
|
-
/*!**************************************!*\
|
|
6924
|
-
!*** ./node_modules/lodash/isMap.js ***!
|
|
6925
|
-
\**************************************/
|
|
6926
|
-
/*! no static exports found */
|
|
6927
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6928
|
-
|
|
6929
|
-
eval("var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ \"./node_modules/lodash/_baseIsMap.js\"),\n baseUnary = __webpack_require__(/*! ./_baseUnary */ \"./node_modules/lodash/_baseUnary.js\"),\n nodeUtil = __webpack_require__(/*! ./_nodeUtil */ \"./node_modules/lodash/_nodeUtil.js\");\n/* Node.js helper references. */\n\n\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\nmodule.exports = isMap;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/isMap.js?");
|
|
6930
|
-
|
|
6931
|
-
/***/ }),
|
|
6932
|
-
|
|
6933
6274
|
/***/ "./node_modules/lodash/isObject.js":
|
|
6934
6275
|
/*!*****************************************!*\
|
|
6935
6276
|
!*** ./node_modules/lodash/isObject.js ***!
|
|
@@ -6952,17 +6293,6 @@ eval("/**\n * Checks if `value` is object-like. A value is object-like if it's n
|
|
|
6952
6293
|
|
|
6953
6294
|
/***/ }),
|
|
6954
6295
|
|
|
6955
|
-
/***/ "./node_modules/lodash/isSet.js":
|
|
6956
|
-
/*!**************************************!*\
|
|
6957
|
-
!*** ./node_modules/lodash/isSet.js ***!
|
|
6958
|
-
\**************************************/
|
|
6959
|
-
/*! no static exports found */
|
|
6960
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6961
|
-
|
|
6962
|
-
eval("var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ \"./node_modules/lodash/_baseIsSet.js\"),\n baseUnary = __webpack_require__(/*! ./_baseUnary */ \"./node_modules/lodash/_baseUnary.js\"),\n nodeUtil = __webpack_require__(/*! ./_nodeUtil */ \"./node_modules/lodash/_nodeUtil.js\");\n/* Node.js helper references. */\n\n\nvar nodeIsSet = nodeUtil && nodeUtil.isSet;\n/**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n\nvar isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\nmodule.exports = isSet;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/isSet.js?");
|
|
6963
|
-
|
|
6964
|
-
/***/ }),
|
|
6965
|
-
|
|
6966
6296
|
/***/ "./node_modules/lodash/isSymbol.js":
|
|
6967
6297
|
/*!*****************************************!*\
|
|
6968
6298
|
!*** ./node_modules/lodash/isSymbol.js ***!
|
|
@@ -6974,39 +6304,6 @@ eval("var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ \"./node_modules
|
|
|
6974
6304
|
|
|
6975
6305
|
/***/ }),
|
|
6976
6306
|
|
|
6977
|
-
/***/ "./node_modules/lodash/isTypedArray.js":
|
|
6978
|
-
/*!*********************************************!*\
|
|
6979
|
-
!*** ./node_modules/lodash/isTypedArray.js ***!
|
|
6980
|
-
\*********************************************/
|
|
6981
|
-
/*! no static exports found */
|
|
6982
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6983
|
-
|
|
6984
|
-
eval("var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ \"./node_modules/lodash/_baseIsTypedArray.js\"),\n baseUnary = __webpack_require__(/*! ./_baseUnary */ \"./node_modules/lodash/_baseUnary.js\"),\n nodeUtil = __webpack_require__(/*! ./_nodeUtil */ \"./node_modules/lodash/_nodeUtil.js\");\n/* Node.js helper references. */\n\n\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\nmodule.exports = isTypedArray;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/isTypedArray.js?");
|
|
6985
|
-
|
|
6986
|
-
/***/ }),
|
|
6987
|
-
|
|
6988
|
-
/***/ "./node_modules/lodash/keys.js":
|
|
6989
|
-
/*!*************************************!*\
|
|
6990
|
-
!*** ./node_modules/lodash/keys.js ***!
|
|
6991
|
-
\*************************************/
|
|
6992
|
-
/*! no static exports found */
|
|
6993
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6994
|
-
|
|
6995
|
-
eval("var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ \"./node_modules/lodash/_arrayLikeKeys.js\"),\n baseKeys = __webpack_require__(/*! ./_baseKeys */ \"./node_modules/lodash/_baseKeys.js\"),\n isArrayLike = __webpack_require__(/*! ./isArrayLike */ \"./node_modules/lodash/isArrayLike.js\");\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n\n\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/keys.js?");
|
|
6996
|
-
|
|
6997
|
-
/***/ }),
|
|
6998
|
-
|
|
6999
|
-
/***/ "./node_modules/lodash/keysIn.js":
|
|
7000
|
-
/*!***************************************!*\
|
|
7001
|
-
!*** ./node_modules/lodash/keysIn.js ***!
|
|
7002
|
-
\***************************************/
|
|
7003
|
-
/*! no static exports found */
|
|
7004
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7005
|
-
|
|
7006
|
-
eval("var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ \"./node_modules/lodash/_arrayLikeKeys.js\"),\n baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ \"./node_modules/lodash/_baseKeysIn.js\"),\n isArrayLike = __webpack_require__(/*! ./isArrayLike */ \"./node_modules/lodash/isArrayLike.js\");\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n\n\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/keysIn.js?");
|
|
7007
|
-
|
|
7008
|
-
/***/ }),
|
|
7009
|
-
|
|
7010
6307
|
/***/ "./node_modules/lodash/memoize.js":
|
|
7011
6308
|
/*!****************************************!*\
|
|
7012
6309
|
!*** ./node_modules/lodash/memoize.js ***!
|
|
@@ -7018,28 +6315,6 @@ eval("var MapCache = __webpack_require__(/*! ./_MapCache */ \"./node_modules/lod
|
|
|
7018
6315
|
|
|
7019
6316
|
/***/ }),
|
|
7020
6317
|
|
|
7021
|
-
/***/ "./node_modules/lodash/stubArray.js":
|
|
7022
|
-
/*!******************************************!*\
|
|
7023
|
-
!*** ./node_modules/lodash/stubArray.js ***!
|
|
7024
|
-
\******************************************/
|
|
7025
|
-
/*! no static exports found */
|
|
7026
|
-
/***/ (function(module, exports) {
|
|
7027
|
-
|
|
7028
|
-
eval("/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n return [];\n}\n\nmodule.exports = stubArray;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/stubArray.js?");
|
|
7029
|
-
|
|
7030
|
-
/***/ }),
|
|
7031
|
-
|
|
7032
|
-
/***/ "./node_modules/lodash/stubFalse.js":
|
|
7033
|
-
/*!******************************************!*\
|
|
7034
|
-
!*** ./node_modules/lodash/stubFalse.js ***!
|
|
7035
|
-
\******************************************/
|
|
7036
|
-
/*! no static exports found */
|
|
7037
|
-
/***/ (function(module, exports) {
|
|
7038
|
-
|
|
7039
|
-
eval("/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n return false;\n}\n\nmodule.exports = stubFalse;\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/lodash/stubFalse.js?");
|
|
7040
|
-
|
|
7041
|
-
/***/ }),
|
|
7042
|
-
|
|
7043
6318
|
/***/ "./node_modules/lodash/toString.js":
|
|
7044
6319
|
/*!*****************************************!*\
|
|
7045
6320
|
!*** ./node_modules/lodash/toString.js ***!
|
|
@@ -7638,7 +6913,7 @@ eval("\n\nvar stringify = __webpack_require__(/*! ./stringify */ \"./node_module
|
|
|
7638
6913
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7639
6914
|
|
|
7640
6915
|
"use strict";
|
|
7641
|
-
eval("\n\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/qs/lib/utils.js\");\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\nvar defaults = {\n allowDots: false,\n allowPrototypes: false,\n allowSparse: false,\n arrayLimit: 20,\n charset: 'utf-8',\n charsetSentinel: false,\n comma: false,\n decoder: utils.decode,\n delimiter: '&',\n depth: 5,\n ignoreQueryPrefix: false,\n interpretNumericEntities: false,\n parameterLimit: 1000,\n parseArrays: true,\n plainObjects: false,\n strictNullHandling: false\n};\n\nvar interpretNumericEntities = function (str) {\n return str.replace(/&#(\\d+);/g, function ($0, numberStr) {\n return String.fromCharCode(parseInt(numberStr, 10));\n });\n};\n\nvar parseArrayValue = function (val, options) {\n if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {\n return val.split(',');\n }\n\n return val;\n}; // This is what browsers will submit when the ✓ character occurs in an\n// application/x-www-form-urlencoded body and the encoding of the page containing\n// the form is iso-8859-1, or when the submitted form has an accept-charset\n// attribute of iso-8859-1. Presumably also with other charsets that do not contain\n// the ✓ character, such as us-ascii.\n\n\nvar isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')\n// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.\n\nvar charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')\n\nvar parseValues = function parseQueryStringValues(str, options) {\n var obj = {};\n var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\\?/, '') : str;\n var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;\n var parts = cleanStr.split(options.delimiter, limit);\n var skipIndex = -1; // Keep track of where the utf8 sentinel was found\n\n var i;\n var charset = options.charset;\n\n if (options.charsetSentinel) {\n for (i = 0; i < parts.length; ++i) {\n if (parts[i].indexOf('utf8=') === 0) {\n if (parts[i] === charsetSentinel) {\n charset = 'utf-8';\n } else if (parts[i] === isoSentinel) {\n charset = 'iso-8859-1';\n }\n\n skipIndex = i;\n i = parts.length; // The eslint settings do not allow break;\n }\n }\n }\n\n for (i = 0; i < parts.length; ++i) {\n if (i === skipIndex) {\n continue;\n }\n\n var part = parts[i];\n var bracketEqualsPos = part.indexOf(']=');\n var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;\n var key, val;\n\n if (pos === -1) {\n key = options.decoder(part, defaults.decoder, charset, 'key');\n val = options.strictNullHandling ? null : '';\n } else {\n key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');\n val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options), function (encodedVal) {\n return options.decoder(encodedVal, defaults.decoder, charset, 'value');\n });\n }\n\n if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {\n val = interpretNumericEntities(val);\n }\n\n if (part.indexOf('[]=') > -1) {\n val = isArray(val) ? [val] : val;\n }\n\n if (has.call(obj, key)) {\n obj[key] = utils.combine(obj[key], val);\n } else {\n obj[key] = val;\n }\n }\n\n return obj;\n};\n\nvar parseObject = function (chain, val, options, valuesParsed) {\n var leaf = valuesParsed ? val : parseArrayValue(val, options);\n\n for (var i = chain.length - 1; i >= 0; --i) {\n var obj;\n var root = chain[i];\n\n if (root === '[]' && options.parseArrays) {\n obj = [].concat(leaf);\n } else {\n obj = options.plainObjects ? Object.create(null) : {};\n var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n var index = parseInt(cleanRoot, 10);\n\n if (!options.parseArrays && cleanRoot === '') {\n obj = {\n 0: leaf\n };\n } else if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && options.parseArrays && index <= options.arrayLimit) {\n obj = [];\n obj[index] = leaf;\n } else {\n obj[cleanRoot] = leaf;\n }\n }\n\n leaf = obj;\n }\n\n return leaf;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {\n if (!givenKey) {\n return;\n } // Transform dot notation to bracket notation\n\n\n var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey; // The regex chunks\n\n var brackets = /(\\[[^[\\]]*])/;\n var child = /(\\[[^[\\]]*])/g; // Get the parent\n\n var segment = options.depth > 0 && brackets.exec(key);\n var parent = segment ? key.slice(0, segment.index) : key; // Stash the parent if it exists\n\n var keys = [];\n\n if (parent) {\n // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties\n if (!options.plainObjects && has.call(Object.prototype, parent)) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(parent);\n } // Loop through children appending to the array until we hit depth\n\n\n var i = 0;\n\n while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n\n if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(segment[1]);\n } // If there's a remainder, just add whatever is left\n\n\n if (segment) {\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return parseObject(keys, val, options, valuesParsed);\n};\n\nvar normalizeParseOptions = function normalizeParseOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {\n throw new TypeError('Decoder has to be a function.');\n }\n\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;\n return {\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,\n allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,\n arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,\n decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,\n delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,\n // eslint-disable-next-line no-implicit-coercion, no-extra-parens\n depth: typeof opts.depth === 'number' || opts.depth === false ? +opts.depth : defaults.depth,\n ignoreQueryPrefix: opts.ignoreQueryPrefix === true,\n interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,\n parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,\n parseArrays: opts.parseArrays !== false,\n plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (str, opts) {\n var options = normalizeParseOptions(opts);\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? Object.create(null) : {};\n }\n\n var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n var obj = options.plainObjects ? Object.create(null) : {}; // Iterate over the keys and setup the new object\n\n var keys = Object.keys(tempObj);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');\n obj = utils.merge(obj, newObj, options);\n }\n\n if (options.allowSparse === true) {\n return obj;\n }\n\n return utils.compact(obj);\n};\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/qs/lib/parse.js?");
|
|
6916
|
+
eval("\n\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/qs/lib/utils.js\");\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\nvar defaults = {\n allowDots: false,\n allowPrototypes: false,\n allowSparse: false,\n arrayLimit: 20,\n charset: 'utf-8',\n charsetSentinel: false,\n comma: false,\n decoder: utils.decode,\n delimiter: '&',\n depth: 5,\n ignoreQueryPrefix: false,\n interpretNumericEntities: false,\n parameterLimit: 1000,\n parseArrays: true,\n plainObjects: false,\n strictNullHandling: false\n};\n\nvar interpretNumericEntities = function (str) {\n return str.replace(/&#(\\d+);/g, function ($0, numberStr) {\n return String.fromCharCode(parseInt(numberStr, 10));\n });\n};\n\nvar parseArrayValue = function (val, options) {\n if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {\n return val.split(',');\n }\n\n return val;\n}; // This is what browsers will submit when the ✓ character occurs in an\n// application/x-www-form-urlencoded body and the encoding of the page containing\n// the form is iso-8859-1, or when the submitted form has an accept-charset\n// attribute of iso-8859-1. Presumably also with other charsets that do not contain\n// the ✓ character, such as us-ascii.\n\n\nvar isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')\n// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.\n\nvar charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')\n\nvar parseValues = function parseQueryStringValues(str, options) {\n var obj = {};\n var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\\?/, '') : str;\n var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;\n var parts = cleanStr.split(options.delimiter, limit);\n var skipIndex = -1; // Keep track of where the utf8 sentinel was found\n\n var i;\n var charset = options.charset;\n\n if (options.charsetSentinel) {\n for (i = 0; i < parts.length; ++i) {\n if (parts[i].indexOf('utf8=') === 0) {\n if (parts[i] === charsetSentinel) {\n charset = 'utf-8';\n } else if (parts[i] === isoSentinel) {\n charset = 'iso-8859-1';\n }\n\n skipIndex = i;\n i = parts.length; // The eslint settings do not allow break;\n }\n }\n }\n\n for (i = 0; i < parts.length; ++i) {\n if (i === skipIndex) {\n continue;\n }\n\n var part = parts[i];\n var bracketEqualsPos = part.indexOf(']=');\n var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;\n var key, val;\n\n if (pos === -1) {\n key = options.decoder(part, defaults.decoder, charset, 'key');\n val = options.strictNullHandling ? null : '';\n } else {\n key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');\n val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options), function (encodedVal) {\n return options.decoder(encodedVal, defaults.decoder, charset, 'value');\n });\n }\n\n if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {\n val = interpretNumericEntities(val);\n }\n\n if (part.indexOf('[]=') > -1) {\n val = isArray(val) ? [val] : val;\n }\n\n if (has.call(obj, key)) {\n obj[key] = utils.combine(obj[key], val);\n } else {\n obj[key] = val;\n }\n }\n\n return obj;\n};\n\nvar parseObject = function (chain, val, options, valuesParsed) {\n var leaf = valuesParsed ? val : parseArrayValue(val, options);\n\n for (var i = chain.length - 1; i >= 0; --i) {\n var obj;\n var root = chain[i];\n\n if (root === '[]' && options.parseArrays) {\n obj = [].concat(leaf);\n } else {\n obj = options.plainObjects ? Object.create(null) : {};\n var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n var index = parseInt(cleanRoot, 10);\n\n if (!options.parseArrays && cleanRoot === '') {\n obj = {\n 0: leaf\n };\n } else if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && options.parseArrays && index <= options.arrayLimit) {\n obj = [];\n obj[index] = leaf;\n } else if (cleanRoot !== '__proto__') {\n obj[cleanRoot] = leaf;\n }\n }\n\n leaf = obj;\n }\n\n return leaf;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {\n if (!givenKey) {\n return;\n } // Transform dot notation to bracket notation\n\n\n var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey; // The regex chunks\n\n var brackets = /(\\[[^[\\]]*])/;\n var child = /(\\[[^[\\]]*])/g; // Get the parent\n\n var segment = options.depth > 0 && brackets.exec(key);\n var parent = segment ? key.slice(0, segment.index) : key; // Stash the parent if it exists\n\n var keys = [];\n\n if (parent) {\n // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties\n if (!options.plainObjects && has.call(Object.prototype, parent)) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(parent);\n } // Loop through children appending to the array until we hit depth\n\n\n var i = 0;\n\n while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n\n if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(segment[1]);\n } // If there's a remainder, just add whatever is left\n\n\n if (segment) {\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return parseObject(keys, val, options, valuesParsed);\n};\n\nvar normalizeParseOptions = function normalizeParseOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {\n throw new TypeError('Decoder has to be a function.');\n }\n\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;\n return {\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,\n allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,\n arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,\n decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,\n delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,\n // eslint-disable-next-line no-implicit-coercion, no-extra-parens\n depth: typeof opts.depth === 'number' || opts.depth === false ? +opts.depth : defaults.depth,\n ignoreQueryPrefix: opts.ignoreQueryPrefix === true,\n interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,\n parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,\n parseArrays: opts.parseArrays !== false,\n plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (str, opts) {\n var options = normalizeParseOptions(opts);\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? Object.create(null) : {};\n }\n\n var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n var obj = options.plainObjects ? Object.create(null) : {}; // Iterate over the keys and setup the new object\n\n var keys = Object.keys(tempObj);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');\n obj = utils.merge(obj, newObj, options);\n }\n\n if (options.allowSparse === true) {\n return obj;\n }\n\n return utils.compact(obj);\n};\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/qs/lib/parse.js?");
|
|
7642
6917
|
|
|
7643
6918
|
/***/ }),
|
|
7644
6919
|
|
|
@@ -7650,7 +6925,7 @@ eval("\n\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/qs/lib
|
|
|
7650
6925
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7651
6926
|
|
|
7652
6927
|
"use strict";
|
|
7653
|
-
eval("\n\nvar getSideChannel = __webpack_require__(/*! side-channel */ \"./node_modules/side-channel/index.js\");\n\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/qs/lib/utils.js\");\n\nvar formats = __webpack_require__(/*! ./formats */ \"./node_modules/qs/lib/formats.js\");\n\nvar has = Object.prototype.hasOwnProperty;\nvar arrayPrefixGenerators = {\n brackets: function brackets(prefix) {\n return prefix + '[]';\n },\n comma: 'comma',\n indices: function indices(prefix, key) {\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) {\n return prefix;\n }\n};\nvar isArray = Array.isArray;\nvar split = String.prototype.split;\nvar push = Array.prototype.push;\n\nvar pushToArray = function (arr, valueOrArray) {\n push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);\n};\n\nvar toISO = Date.prototype.toISOString;\nvar defaultFormat = formats['default'];\nvar defaults = {\n addQueryPrefix: false,\n allowDots: false,\n charset: 'utf-8',\n charsetSentinel: false,\n delimiter: '&',\n encode: true,\n encoder: utils.encode,\n encodeValuesOnly: false,\n format: defaultFormat,\n formatter: formats.formatters[defaultFormat],\n // deprecated\n indices: false,\n serializeDate: function serializeDate(date) {\n return toISO.call(date);\n },\n skipNulls: false,\n strictNullHandling: false\n};\n\nvar isNonNullishPrimitive = function isNonNullishPrimitive(v) {\n return typeof v === 'string' || typeof v === 'number' || typeof v === 'boolean' || typeof v === 'symbol' || typeof v === 'bigint';\n};\n\nvar sentinel = {};\n\nvar stringify = function stringify(object, prefix, generateArrayPrefix, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {\n var obj = object;\n var tmpSc = sideChannel;\n var step = 0;\n var findFlag = false;\n\n while ((tmpSc = tmpSc.get(sentinel)) !== undefined && !findFlag) {\n // Where object last appeared in the ref tree\n var pos = tmpSc.get(object);\n step += 1;\n\n if (typeof pos !== 'undefined') {\n if (pos === step) {\n throw new RangeError('Cyclic object value');\n } else {\n findFlag = true; // Break while\n }\n }\n\n if (typeof tmpSc.get(sentinel) === 'undefined') {\n step = 0;\n }\n }\n\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (obj instanceof Date) {\n obj = serializeDate(obj);\n } else if (generateArrayPrefix === 'comma' && isArray(obj)) {\n obj = utils.maybeMap(obj, function (value) {\n if (value instanceof Date) {\n return serializeDate(value);\n }\n\n return value;\n });\n }\n\n if (obj === null) {\n if (strictNullHandling) {\n return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;\n }\n\n obj = '';\n }\n\n if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {\n if (encoder) {\n var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);\n\n if (generateArrayPrefix === 'comma' && encodeValuesOnly) {\n var valuesArray = split.call(String(obj), ',');\n var valuesJoined = '';\n\n for (var i = 0; i < valuesArray.length; ++i) {\n valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));\n }\n\n return [formatter(keyValue) + '=' + valuesJoined];\n }\n\n return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];\n }\n\n return [formatter(prefix) + '=' + formatter(String(obj))];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n\n if (generateArrayPrefix === 'comma' && isArray(obj)) {\n // we need to join elements in\n objKeys = [{\n value: obj.length > 0 ? obj.join(',') || null : undefined\n }];\n } else if (isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = Object.keys(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n for (var j = 0; j < objKeys.length; ++j) {\n var key = objKeys[j];\n var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];\n\n if (skipNulls && value === null) {\n continue;\n }\n\n var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix : prefix + (allowDots ? '.' + key : '[' + key + ']');\n sideChannel.set(object, step);\n var valueSideChannel = getSideChannel();\n valueSideChannel.set(sentinel, sideChannel);\n pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));\n }\n\n return values;\n};\n\nvar normalizeStringifyOptions = function normalizeStringifyOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {\n throw new TypeError('Encoder has to be a function.');\n }\n\n var charset = opts.charset || defaults.charset;\n\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n var format = formats['default'];\n\n if (typeof opts.format !== 'undefined') {\n if (!has.call(formats.formatters, opts.format)) {\n throw new TypeError('Unknown format option provided.');\n }\n\n format = opts.format;\n }\n\n var formatter = formats.formatters[format];\n var filter = defaults.filter;\n\n if (typeof opts.filter === 'function' || isArray(opts.filter)) {\n filter = opts.filter;\n }\n\n return {\n addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,\n encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,\n encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,\n encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,\n filter: filter,\n format: format,\n formatter: formatter,\n serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,\n skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,\n sort: typeof opts.sort === 'function' ? opts.sort : null,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = normalizeStringifyOptions(opts);\n var objKeys;\n var filter;\n\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (isArray(options.filter)) {\n filter = options.filter;\n objKeys = filter;\n }\n\n var keys = [];\n\n if (typeof obj !== 'object' || obj === null) {\n return '';\n }\n\n var arrayFormat;\n\n if (opts && opts.arrayFormat in arrayPrefixGenerators) {\n arrayFormat = opts.arrayFormat;\n } else if (opts && 'indices' in opts) {\n arrayFormat = opts.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = 'indices';\n }\n\n var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];\n\n if (!objKeys) {\n objKeys = Object.keys(obj);\n }\n\n if (options.sort) {\n objKeys.sort(options.sort);\n }\n\n var sideChannel = getSideChannel();\n\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (options.skipNulls && obj[key] === null) {\n continue;\n }\n\n pushToArray(keys, stringify(obj[key], key, generateArrayPrefix, options.strictNullHandling, options.skipNulls, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));\n }\n\n var joined = keys.join(options.delimiter);\n var prefix = options.addQueryPrefix === true ? '?' : '';\n\n if (options.charsetSentinel) {\n if (options.charset === 'iso-8859-1') {\n // encodeURIComponent('✓'), the \"numeric entity\" representation of a checkmark\n prefix += 'utf8=%26%2310003%3B&';\n } else {\n // encodeURIComponent('✓')\n prefix += 'utf8=%E2%9C%93&';\n }\n }\n\n return joined.length > 0 ? prefix + joined : '';\n};\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/qs/lib/stringify.js?");
|
|
6928
|
+
eval("\n\nvar getSideChannel = __webpack_require__(/*! side-channel */ \"./node_modules/side-channel/index.js\");\n\nvar utils = __webpack_require__(/*! ./utils */ \"./node_modules/qs/lib/utils.js\");\n\nvar formats = __webpack_require__(/*! ./formats */ \"./node_modules/qs/lib/formats.js\");\n\nvar has = Object.prototype.hasOwnProperty;\nvar arrayPrefixGenerators = {\n brackets: function brackets(prefix) {\n return prefix + '[]';\n },\n comma: 'comma',\n indices: function indices(prefix, key) {\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) {\n return prefix;\n }\n};\nvar isArray = Array.isArray;\nvar split = String.prototype.split;\nvar push = Array.prototype.push;\n\nvar pushToArray = function (arr, valueOrArray) {\n push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);\n};\n\nvar toISO = Date.prototype.toISOString;\nvar defaultFormat = formats['default'];\nvar defaults = {\n addQueryPrefix: false,\n allowDots: false,\n charset: 'utf-8',\n charsetSentinel: false,\n delimiter: '&',\n encode: true,\n encoder: utils.encode,\n encodeValuesOnly: false,\n format: defaultFormat,\n formatter: formats.formatters[defaultFormat],\n // deprecated\n indices: false,\n serializeDate: function serializeDate(date) {\n return toISO.call(date);\n },\n skipNulls: false,\n strictNullHandling: false\n};\n\nvar isNonNullishPrimitive = function isNonNullishPrimitive(v) {\n return typeof v === 'string' || typeof v === 'number' || typeof v === 'boolean' || typeof v === 'symbol' || typeof v === 'bigint';\n};\n\nvar sentinel = {};\n\nvar stringify = function stringify(object, prefix, generateArrayPrefix, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {\n var obj = object;\n var tmpSc = sideChannel;\n var step = 0;\n var findFlag = false;\n\n while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {\n // Where object last appeared in the ref tree\n var pos = tmpSc.get(object);\n step += 1;\n\n if (typeof pos !== 'undefined') {\n if (pos === step) {\n throw new RangeError('Cyclic object value');\n } else {\n findFlag = true; // Break while\n }\n }\n\n if (typeof tmpSc.get(sentinel) === 'undefined') {\n step = 0;\n }\n }\n\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (obj instanceof Date) {\n obj = serializeDate(obj);\n } else if (generateArrayPrefix === 'comma' && isArray(obj)) {\n obj = utils.maybeMap(obj, function (value) {\n if (value instanceof Date) {\n return serializeDate(value);\n }\n\n return value;\n });\n }\n\n if (obj === null) {\n if (strictNullHandling) {\n return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;\n }\n\n obj = '';\n }\n\n if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {\n if (encoder) {\n var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);\n\n if (generateArrayPrefix === 'comma' && encodeValuesOnly) {\n var valuesArray = split.call(String(obj), ',');\n var valuesJoined = '';\n\n for (var i = 0; i < valuesArray.length; ++i) {\n valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));\n }\n\n return [formatter(keyValue) + '=' + valuesJoined];\n }\n\n return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];\n }\n\n return [formatter(prefix) + '=' + formatter(String(obj))];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n\n if (generateArrayPrefix === 'comma' && isArray(obj)) {\n // we need to join elements in\n objKeys = [{\n value: obj.length > 0 ? obj.join(',') || null : void undefined\n }];\n } else if (isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = Object.keys(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n for (var j = 0; j < objKeys.length; ++j) {\n var key = objKeys[j];\n var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];\n\n if (skipNulls && value === null) {\n continue;\n }\n\n var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix : prefix + (allowDots ? '.' + key : '[' + key + ']');\n sideChannel.set(object, step);\n var valueSideChannel = getSideChannel();\n valueSideChannel.set(sentinel, sideChannel);\n pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));\n }\n\n return values;\n};\n\nvar normalizeStringifyOptions = function normalizeStringifyOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {\n throw new TypeError('Encoder has to be a function.');\n }\n\n var charset = opts.charset || defaults.charset;\n\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n var format = formats['default'];\n\n if (typeof opts.format !== 'undefined') {\n if (!has.call(formats.formatters, opts.format)) {\n throw new TypeError('Unknown format option provided.');\n }\n\n format = opts.format;\n }\n\n var formatter = formats.formatters[format];\n var filter = defaults.filter;\n\n if (typeof opts.filter === 'function' || isArray(opts.filter)) {\n filter = opts.filter;\n }\n\n return {\n addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,\n allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,\n encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,\n encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,\n encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,\n filter: filter,\n format: format,\n formatter: formatter,\n serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,\n skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,\n sort: typeof opts.sort === 'function' ? opts.sort : null,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = normalizeStringifyOptions(opts);\n var objKeys;\n var filter;\n\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (isArray(options.filter)) {\n filter = options.filter;\n objKeys = filter;\n }\n\n var keys = [];\n\n if (typeof obj !== 'object' || obj === null) {\n return '';\n }\n\n var arrayFormat;\n\n if (opts && opts.arrayFormat in arrayPrefixGenerators) {\n arrayFormat = opts.arrayFormat;\n } else if (opts && 'indices' in opts) {\n arrayFormat = opts.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = 'indices';\n }\n\n var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];\n\n if (!objKeys) {\n objKeys = Object.keys(obj);\n }\n\n if (options.sort) {\n objKeys.sort(options.sort);\n }\n\n var sideChannel = getSideChannel();\n\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (options.skipNulls && obj[key] === null) {\n continue;\n }\n\n pushToArray(keys, stringify(obj[key], key, generateArrayPrefix, options.strictNullHandling, options.skipNulls, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));\n }\n\n var joined = keys.join(options.delimiter);\n var prefix = options.addQueryPrefix === true ? '?' : '';\n\n if (options.charsetSentinel) {\n if (options.charset === 'iso-8859-1') {\n // encodeURIComponent('✓'), the \"numeric entity\" representation of a checkmark\n prefix += 'utf8=%26%2310003%3B&';\n } else {\n // encodeURIComponent('✓')\n prefix += 'utf8=%E2%9C%93&';\n }\n }\n\n return joined.length > 0 ? prefix + joined : '';\n};\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/qs/lib/stringify.js?");
|
|
7654
6929
|
|
|
7655
6930
|
/***/ }),
|
|
7656
6931
|
|
|
@@ -7966,11 +7241,11 @@ eval("/* eslint-env node */\n // SDP helpers.\n\nconst SDPUtils = {}; // Generat
|
|
|
7966
7241
|
/*!***********************************************!*\
|
|
7967
7242
|
!*** ./node_modules/serialize-error/index.js ***!
|
|
7968
7243
|
\***********************************************/
|
|
7969
|
-
/*!
|
|
7970
|
-
/***/ (function(module,
|
|
7244
|
+
/*! exports provided: NonError, serializeError, deserializeError */
|
|
7245
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7971
7246
|
|
|
7972
7247
|
"use strict";
|
|
7973
|
-
eval("\n\nclass NonError extends Error {\n constructor(message) {\n super(NonError._prepareSuperMessage(message));\n Object.defineProperty(this, 'name', {\n value: 'NonError',\n configurable: true,\n writable: true\n });\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, NonError);\n }\n }\n\n static _prepareSuperMessage(message) {\n try {\n return JSON.stringify(message);\n } catch
|
|
7248
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(Buffer) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"NonError\", function() { return NonError; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"serializeError\", function() { return serializeError; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"deserializeError\", function() { return deserializeError; });\nclass NonError extends Error {\n constructor(message) {\n super(NonError._prepareSuperMessage(message));\n Object.defineProperty(this, 'name', {\n value: 'NonError',\n configurable: true,\n writable: true\n });\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, NonError);\n }\n }\n\n static _prepareSuperMessage(message) {\n try {\n return JSON.stringify(message);\n } catch {\n return String(message);\n }\n }\n\n}\nconst commonProperties = [{\n property: 'name',\n enumerable: false\n}, {\n property: 'message',\n enumerable: false\n}, {\n property: 'stack',\n enumerable: false\n}, {\n property: 'code',\n enumerable: true\n}];\nconst toJsonWasCalled = Symbol('.toJSON was called');\n\nconst toJSON = from => {\n from[toJsonWasCalled] = true;\n const json = from.toJSON();\n delete from[toJsonWasCalled];\n return json;\n};\n\nconst destroyCircular = ({\n from,\n seen,\n to_,\n forceEnumerable,\n maxDepth,\n depth\n}) => {\n const to = to_ || (Array.isArray(from) ? [] : {});\n seen.push(from);\n\n if (depth >= maxDepth) {\n return to;\n }\n\n if (typeof from.toJSON === 'function' && from[toJsonWasCalled] !== true) {\n return toJSON(from);\n }\n\n for (const [key, value] of Object.entries(from)) {\n // eslint-disable-next-line node/prefer-global/buffer\n if (typeof Buffer === 'function' && Buffer.isBuffer(value)) {\n to[key] = '[object Buffer]';\n continue;\n } // TODO: Use `stream.isReadable()` when targeting Node.js 18.\n\n\n if (typeof value === 'object' && typeof value.pipe === 'function') {\n to[key] = '[object Stream]';\n continue;\n }\n\n if (typeof value === 'function') {\n continue;\n }\n\n if (!value || typeof value !== 'object') {\n to[key] = value;\n continue;\n }\n\n if (!seen.includes(from[key])) {\n depth++;\n to[key] = destroyCircular({\n from: from[key],\n seen: [...seen],\n forceEnumerable,\n maxDepth,\n depth\n });\n continue;\n }\n\n to[key] = '[Circular]';\n }\n\n for (const {\n property,\n enumerable\n } of commonProperties) {\n if (typeof from[property] === 'string') {\n Object.defineProperty(to, property, {\n value: from[property],\n enumerable: forceEnumerable ? true : enumerable,\n configurable: true,\n writable: true\n });\n }\n }\n\n return to;\n};\n\nfunction serializeError(value, options = {}) {\n const {\n maxDepth = Number.POSITIVE_INFINITY\n } = options;\n\n if (typeof value === 'object' && value !== null) {\n return destroyCircular({\n from: value,\n seen: [],\n forceEnumerable: true,\n maxDepth,\n depth: 0\n });\n } // People sometimes throw things besides Error objects…\n\n\n if (typeof value === 'function') {\n // `JSON.stringify()` discards functions. We do too, unless a function is thrown directly.\n return `[Function: ${value.name || 'anonymous'}]`;\n }\n\n return value;\n}\nfunction deserializeError(value, options = {}) {\n const {\n maxDepth = Number.POSITIVE_INFINITY\n } = options;\n\n if (value instanceof Error) {\n return value;\n }\n\n if (typeof value === 'object' && value !== null && !Array.isArray(value)) {\n const newError = new Error(); // eslint-disable-line unicorn/error-message\n\n destroyCircular({\n from: value,\n seen: [],\n to_: newError,\n maxDepth,\n depth: 0\n });\n return newError;\n }\n\n return new NonError(value);\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../node-libs-browser/node_modules/buffer/index.js */ \"./node_modules/node-libs-browser/node_modules/buffer/index.js\").Buffer))\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/serialize-error/index.js?");
|
|
7974
7249
|
|
|
7975
7250
|
/***/ }),
|
|
7976
7251
|
|
|
@@ -8361,7 +7636,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n// These functions will updat
|
|
|
8361
7636
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8362
7637
|
|
|
8363
7638
|
"use strict";
|
|
8364
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isOAS3\", function() { return isOAS3; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isSwagger2\", function() { return isSwagger2; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"opId\", function() { return opId; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"idFromPathMethod\", function() { return idFromPathMethod; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"legacyIdFromPathMethod\", function() { return legacyIdFromPathMethod; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getOperationRaw\", function() { return getOperationRaw; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"findOperation\", function() { return findOperation; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"eachOperation\", function() { return eachOperation; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"normalizeSwagger\", function() { return normalizeSwagger; });\n/* harmony import */ var _babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/createForOfIteratorHelper */ \"./node_modules/@babel/runtime-corejs3/helpers/createForOfIteratorHelper.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"./node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/starts-with */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/starts-with.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\n\nvar toLower = function toLower(str) {\n return String.prototype.toLowerCase.call(str);\n};\n\nvar escapeString = function escapeString(str) {\n return str.replace(/[^\\w]/gi, '_');\n}; // Spec version detection\n\n\nfunction isOAS3(spec) {\n var oasVersion = spec.openapi;\n\n if (!oasVersion) {\n return false;\n }\n\n return _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_2___default()(oasVersion).call(oasVersion, '3');\n}\nfunction isSwagger2(spec) {\n var swaggerVersion = spec.swagger;\n\n if (!swaggerVersion) {\n return false;\n }\n\n return _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_2___default()(swaggerVersion).call(swaggerVersion, '2');\n} // Strategy for determining operationId\n\nfunction opId(operation, pathName) {\n var method = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n\n var _ref = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},\n v2OperationIdCompatibilityMode = _ref.v2OperationIdCompatibilityMode;\n\n if (!operation || _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(operation) !== 'object') {\n return null;\n }\n\n var idWithoutWhitespace = (operation.operationId || '').replace(/\\s/g, '');\n\n if (idWithoutWhitespace.length) {\n return escapeString(operation.operationId);\n }\n\n return idFromPathMethod(pathName, method, {\n v2OperationIdCompatibilityMode: v2OperationIdCompatibilityMode\n });\n} // Create a generated operationId from pathName + method\n\nfunction idFromPathMethod(pathName, method) {\n var _context3;\n\n var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n v2OperationIdCompatibilityMode = _ref2.v2OperationIdCompatibilityMode;\n\n if (v2OperationIdCompatibilityMode) {\n var _context, _context2;\n\n var res = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context = \"\".concat(method.toLowerCase(), \"_\")).call(_context, pathName).replace(/[\\s!@#$%^&*()_+=[{\\]};:<>|./?,\\\\'\"\"-]/g, '_');\n\n res = res || _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context2 = \"\".concat(pathName.substring(1), \"_\")).call(_context2, method);\n return res.replace(/((_){2,})/g, '_').replace(/^(_)*/g, '').replace(/([_])*$/g, '');\n }\n\n return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context3 = \"\".concat(toLower(method))).call(_context3, escapeString(pathName));\n}\nfunction legacyIdFromPathMethod(pathName, method) {\n var _context4;\n\n return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context4 = \"\".concat(toLower(method), \"-\")).call(_context4, pathName);\n} // Get the operation, based on operationId ( just return the object, no inheritence )\n\nfunction getOperationRaw(spec, id) {\n if (!spec || !spec.paths) {\n return null;\n }\n\n return findOperation(spec, function (_ref3) {\n var pathName = _ref3.pathName,\n method = _ref3.method,\n operation = _ref3.operation;\n\n if (!operation || _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(operation) !== 'object') {\n return false;\n }\n\n var rawOperationId = operation.operationId; // straight from the source\n\n var operationId = opId(operation, pathName, method);\n var legacyOperationId = legacyIdFromPathMethod(pathName, method);\n return [operationId, legacyOperationId, rawOperationId].some(function (val) {\n return val && val === id;\n });\n });\n} // Will stop iterating over the operations and return the operationObj\n// as soon as predicate returns true\n\nfunction findOperation(spec, predicate) {\n return eachOperation(spec, predicate, true) || null;\n} // iterate over each operation, and fire a callback with details\n// `find=true` will stop iterating, when the cb returns truthy\n\nfunction eachOperation(spec, cb, find) {\n if (!spec || _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(spec) !== 'object' || !spec.paths || _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(spec.paths) !== 'object') {\n return null;\n }\n\n var paths = spec.paths; // Iterate over the spec, collecting operations\n // eslint-disable-next-line no-restricted-syntax, guard-for-in\n\n for (var pathName in paths) {\n // eslint-disable-next-line no-restricted-syntax, guard-for-in\n for (var method in paths[pathName]) {\n if (method.toUpperCase() === 'PARAMETERS') {\n continue; // eslint-disable-line no-continue\n }\n\n var operation = paths[pathName][method];\n\n if (!operation || _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(operation) !== 'object') {\n continue; // eslint-disable-line no-continue\n }\n\n var operationObj = {\n spec: spec,\n pathName: pathName,\n method: method.toUpperCase(),\n operation: operation\n };\n var cbValue = cb(operationObj);\n\n if (find && cbValue) {\n return operationObj;\n }\n }\n }\n\n return undefined;\n} // REVIEW: OAS3: identify normalization steps that need changes\n// ...maybe create `normalizeOAS3`?\n\nfunction normalizeSwagger(parsedSpec) {\n var spec = parsedSpec.spec;\n var paths = spec.paths;\n var map = {};\n\n if (!paths || spec.$$normalized) {\n return parsedSpec;\n } // eslint-disable-next-line no-restricted-syntax, guard-for-in\n\n\n for (var pathName in paths) {\n var _context5;\n\n var path = paths[pathName];\n\n if (path == null || !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_4___default()(_context5 = ['object', 'function']).call(_context5, _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(path))) {\n continue; // eslint-disable-line no-continue\n }\n\n var pathParameters = path.parameters; // eslint-disable-next-line no-restricted-syntax, guard-for-in\n\n var _loop = function _loop(method) {\n var _context6;\n\n var operation = path[method];\n\n if (path == null || !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_4___default()(_context6 = ['object', 'function']).call(_context6, _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(path))) {\n return \"continue\"; // eslint-disable-line no-continue\n }\n\n var oid = opId(operation, pathName, method);\n\n if (oid) {\n if (map[oid]) {\n map[oid].push(operation);\n } else {\n map[oid] = [operation];\n }\n\n var opList = map[oid];\n\n if (opList.length > 1) {\n opList.forEach(function (o, i) {\n var _context7; // eslint-disable-next-line no-underscore-dangle\n\n\n o.__originalOperationId = o.__originalOperationId || o.operationId;\n o.operationId = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context7 = \"\".concat(oid)).call(_context7, i + 1);\n });\n } else if (typeof operation.operationId !== 'undefined') {\n // Ensure we always add the normalized operation ID if one already exists\n // ( potentially different, given that we normalize our IDs)\n // ... _back_ to the spec. Otherwise, they might not line up\n var obj = opList[0]; // eslint-disable-next-line no-underscore-dangle\n\n obj.__originalOperationId = obj.__originalOperationId || operation.operationId;\n obj.operationId = oid;\n }\n }\n\n if (method !== 'parameters') {\n // Add inherited consumes, produces, parameters, securities\n var inheritsList = [];\n var toBeInherit = {}; // Global-levels\n // eslint-disable-next-line no-restricted-syntax\n\n for (var key in spec) {\n if (key === 'produces' || key === 'consumes' || key === 'security') {\n toBeInherit[key] = spec[key];\n inheritsList.push(toBeInherit);\n }\n } // Path-levels\n\n\n if (pathParameters) {\n toBeInherit.parameters = pathParameters;\n inheritsList.push(toBeInherit);\n }\n\n if (inheritsList.length) {\n // eslint-disable-next-line no-restricted-syntax\n var _iterator = _babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0___default()(inheritsList),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var inherits = _step.value; // eslint-disable-next-line no-restricted-syntax\n\n for (var inheritName in inherits) {\n if (!operation[inheritName]) {\n operation[inheritName] = inherits[inheritName];\n } else if (inheritName === 'parameters') {\n // eslint-disable-next-line no-restricted-syntax\n var _iterator2 = _babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0___default()(inherits[inheritName]),\n _step2;\n\n try {\n var _loop2 = function _loop2() {\n var param = _step2.value;\n var exists = operation[inheritName].some(function (opParam) {\n return opParam.name && opParam.name === param.name || opParam.$ref && opParam.$ref === param.$ref || opParam.$$ref && opParam.$$ref === param.$$ref || opParam === param;\n });\n\n if (!exists) {\n operation[inheritName].push(param);\n }\n };\n\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n _loop2();\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n }\n };\n\n for (var method in path) {\n var _ret = _loop(method);\n\n if (_ret === \"continue\") continue;\n }\n }\n\n spec.$$normalized = true;\n return parsedSpec;\n}\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/swagger-client/es/helpers.js?");
|
|
7639
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isOAS3\", function() { return isOAS3; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isSwagger2\", function() { return isSwagger2; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"opId\", function() { return opId; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"idFromPathMethod\", function() { return idFromPathMethod; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"legacyIdFromPathMethod\", function() { return legacyIdFromPathMethod; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getOperationRaw\", function() { return getOperationRaw; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"findOperation\", function() { return findOperation; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"eachOperation\", function() { return eachOperation; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"normalizeSwagger\", function() { return normalizeSwagger; });\n/* harmony import */ var _babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/createForOfIteratorHelper */ \"./node_modules/@babel/runtime-corejs3/helpers/createForOfIteratorHelper.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"./node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/starts-with */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/starts-with.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\n\nvar toLower = function toLower(str) {\n return String.prototype.toLowerCase.call(str);\n};\n\nvar escapeString = function escapeString(str) {\n return str.replace(/[^\\w]/gi, '_');\n}; // Spec version detection\n\n\nfunction isOAS3(spec) {\n var oasVersion = spec.openapi;\n\n if (!oasVersion) {\n return false;\n }\n\n return _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_2___default()(oasVersion).call(oasVersion, '3');\n}\nfunction isSwagger2(spec) {\n var swaggerVersion = spec.swagger;\n\n if (!swaggerVersion) {\n return false;\n }\n\n return _babel_runtime_corejs3_core_js_stable_instance_starts_with__WEBPACK_IMPORTED_MODULE_2___default()(swaggerVersion).call(swaggerVersion, '2');\n} // Strategy for determining operationId\n\nfunction opId(operation, pathName) {\n var method = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';\n\n var _ref = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},\n v2OperationIdCompatibilityMode = _ref.v2OperationIdCompatibilityMode;\n\n if (!operation || _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(operation) !== 'object') {\n return null;\n }\n\n var idWithoutWhitespace = (operation.operationId || '').replace(/\\s/g, '');\n\n if (idWithoutWhitespace.length) {\n return escapeString(operation.operationId);\n }\n\n return idFromPathMethod(pathName, method, {\n v2OperationIdCompatibilityMode: v2OperationIdCompatibilityMode\n });\n} // Create a generated operationId from pathName + method\n\nfunction idFromPathMethod(pathName, method) {\n var _context3;\n\n var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n v2OperationIdCompatibilityMode = _ref2.v2OperationIdCompatibilityMode;\n\n if (v2OperationIdCompatibilityMode) {\n var _context, _context2;\n\n var res = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context = \"\".concat(method.toLowerCase(), \"_\")).call(_context, pathName).replace(/[\\s!@#$%^&*()_+=[{\\]};:<>|./?,\\\\'\"\"-]/g, '_');\n\n res = res || _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context2 = \"\".concat(pathName.substring(1), \"_\")).call(_context2, method);\n return res.replace(/((_){2,})/g, '_').replace(/^(_)*/g, '').replace(/([_])*$/g, '');\n }\n\n return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context3 = \"\".concat(toLower(method))).call(_context3, escapeString(pathName));\n}\nfunction legacyIdFromPathMethod(pathName, method) {\n var _context4;\n\n return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context4 = \"\".concat(toLower(method), \"-\")).call(_context4, pathName);\n} // Get the operation, based on operationId ( just return the object, no inheritence )\n\nfunction getOperationRaw(spec, id) {\n if (!spec || !spec.paths) {\n return null;\n }\n\n return findOperation(spec, function (_ref3) {\n var pathName = _ref3.pathName,\n method = _ref3.method,\n operation = _ref3.operation;\n\n if (!operation || _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(operation) !== 'object') {\n return false;\n }\n\n var rawOperationId = operation.operationId; // straight from the source\n\n var operationId = opId(operation, pathName, method);\n var legacyOperationId = legacyIdFromPathMethod(pathName, method);\n return [operationId, legacyOperationId, rawOperationId].some(function (val) {\n return val && val === id;\n });\n });\n} // Will stop iterating over the operations and return the operationObj\n// as soon as predicate returns true\n\nfunction findOperation(spec, predicate) {\n return eachOperation(spec, predicate, true) || null;\n} // iterate over each operation, and fire a callback with details\n// `find=true` will stop iterating, when the cb returns truthy\n\nfunction eachOperation(spec, cb, find) {\n if (!spec || _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(spec) !== 'object' || !spec.paths || _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(spec.paths) !== 'object') {\n return null;\n }\n\n var paths = spec.paths; // Iterate over the spec, collecting operations\n // eslint-disable-next-line no-restricted-syntax, guard-for-in\n\n for (var pathName in paths) {\n // eslint-disable-next-line no-restricted-syntax, guard-for-in\n for (var method in paths[pathName]) {\n if (method.toUpperCase() === 'PARAMETERS') {\n continue; // eslint-disable-line no-continue\n }\n\n var operation = paths[pathName][method];\n\n if (!operation || _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(operation) !== 'object') {\n continue; // eslint-disable-line no-continue\n }\n\n var operationObj = {\n spec: spec,\n pathName: pathName,\n method: method.toUpperCase(),\n operation: operation\n };\n var cbValue = cb(operationObj);\n\n if (find && cbValue) {\n return operationObj;\n }\n }\n }\n\n return undefined;\n} // REVIEW: OAS3: identify normalization steps that need changes\n// ...maybe create `normalizeOAS3`?\n\nfunction normalizeSwagger(parsedSpec) {\n var spec = parsedSpec.spec;\n var paths = spec.paths;\n var map = {};\n\n if (!paths || spec.$$normalized) {\n return parsedSpec;\n } // eslint-disable-next-line no-restricted-syntax, guard-for-in\n\n\n for (var pathName in paths) {\n var _context5;\n\n var path = paths[pathName];\n\n if (path == null || !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_4___default()(_context5 = ['object', 'function']).call(_context5, _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(path))) {\n continue; // eslint-disable-line no-continue\n }\n\n var pathParameters = path.parameters; // eslint-disable-next-line no-restricted-syntax, guard-for-in\n\n var _loop = function _loop(method) {\n var _context6;\n\n var operation = path[method];\n\n if (operation == null || !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_4___default()(_context6 = ['object', 'function']).call(_context6, _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_1___default()(operation))) {\n return \"continue\"; // eslint-disable-line no-continue\n }\n\n var oid = opId(operation, pathName, method);\n\n if (oid) {\n if (map[oid]) {\n map[oid].push(operation);\n } else {\n map[oid] = [operation];\n }\n\n var opList = map[oid];\n\n if (opList.length > 1) {\n opList.forEach(function (o, i) {\n var _context7; // eslint-disable-next-line no-underscore-dangle\n\n\n o.__originalOperationId = o.__originalOperationId || o.operationId;\n o.operationId = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_3___default()(_context7 = \"\".concat(oid)).call(_context7, i + 1);\n });\n } else if (typeof operation.operationId !== 'undefined') {\n // Ensure we always add the normalized operation ID if one already exists\n // ( potentially different, given that we normalize our IDs)\n // ... _back_ to the spec. Otherwise, they might not line up\n var obj = opList[0]; // eslint-disable-next-line no-underscore-dangle\n\n obj.__originalOperationId = obj.__originalOperationId || operation.operationId;\n obj.operationId = oid;\n }\n }\n\n if (method !== 'parameters') {\n // Add inherited consumes, produces, parameters, securities\n var inheritsList = [];\n var toBeInherit = {}; // Global-levels\n // eslint-disable-next-line no-restricted-syntax\n\n for (var key in spec) {\n if (key === 'produces' || key === 'consumes' || key === 'security') {\n toBeInherit[key] = spec[key];\n inheritsList.push(toBeInherit);\n }\n } // Path-levels\n\n\n if (pathParameters) {\n toBeInherit.parameters = pathParameters;\n inheritsList.push(toBeInherit);\n }\n\n if (inheritsList.length) {\n // eslint-disable-next-line no-restricted-syntax\n var _iterator = _babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0___default()(inheritsList),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var inherits = _step.value; // eslint-disable-next-line no-restricted-syntax\n\n for (var inheritName in inherits) {\n if (!operation[inheritName]) {\n operation[inheritName] = inherits[inheritName];\n } else if (inheritName === 'parameters') {\n // eslint-disable-next-line no-restricted-syntax\n var _iterator2 = _babel_runtime_corejs3_helpers_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0___default()(inherits[inheritName]),\n _step2;\n\n try {\n var _loop2 = function _loop2() {\n var param = _step2.value;\n var exists = operation[inheritName].some(function (opParam) {\n return opParam.name && opParam.name === param.name || opParam.$ref && opParam.$ref === param.$ref || opParam.$$ref && opParam.$$ref === param.$$ref || opParam === param;\n });\n\n if (!exists) {\n operation[inheritName].push(param);\n }\n };\n\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n _loop2();\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n }\n };\n\n for (var method in path) {\n var _ret = _loop(method);\n\n if (_ret === \"continue\") continue;\n }\n }\n\n spec.$$normalized = true;\n return parsedSpec;\n}\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/swagger-client/es/helpers.js?");
|
|
8365
7640
|
|
|
8366
7641
|
/***/ }),
|
|
8367
7642
|
|
|
@@ -8457,7 +7732,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
8457
7732
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8458
7733
|
|
|
8459
7734
|
"use strict";
|
|
8460
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"./node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectSpread2 */ \"./node_modules/@babel/runtime-corejs3/helpers/objectSpread2.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helpers.js */ \"./node_modules/swagger-client/es/specmap/helpers.js\");\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n key: 'allOf',\n plugin: function plugin(val, key, fullPath, specmap, patch) {\n // Ignore replace patches created by $ref because the changes will\n // occur in the original \"add\" patch and we don't want this plugin\n // to redundantly processes those \"relace\" patches.\n if (patch.meta && patch.meta.$$ref) {\n return undefined;\n }\n\n var parent = _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_2___default()(fullPath).call(fullPath, 0, -1);\n\n if (Object(_helpers_js__WEBPACK_IMPORTED_MODULE_5__[\"isFreelyNamed\"])(parent)) {\n return undefined;\n }\n\n if (!Array.isArray(val)) {\n var err = new TypeError('allOf must be an array');\n err.fullPath = fullPath; // This is an array\n\n return err;\n }\n\n var alreadyAddError = false; // Find the original definition from the `patch.value` object\n // Remove the `allOf` property so it doesn't get added to the result of the `allOf` plugin\n\n var originalDefinitionObj = patch.value;\n parent.forEach(function (part) {\n if (!originalDefinitionObj) return; // bail out if we've lost sight of our target\n\n originalDefinitionObj = originalDefinitionObj[part];\n });\n originalDefinitionObj = _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1___default()({}, originalDefinitionObj); // when we've lost sight, interrupt prematurely\n\n if (_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3___default()(originalDefinitionObj).length === 0) {\n return undefined;\n }\n\n delete originalDefinitionObj.allOf;\n var patches = []; // remove existing content\n\n patches.push(specmap.replace(parent, {}));\n val.forEach(function (toMerge, i) {\n if (!specmap.isObject(toMerge)) {\n if (alreadyAddError) {\n return null;\n }\n\n alreadyAddError = true;\n\n var _err = new TypeError('Elements in allOf must be objects');\n\n _err.fullPath = fullPath; // This is an array\n\n return patches.push(_err);\n } // Deeply merge the member's contents onto the parent location\n\n\n patches.push(specmap.mergeDeep(parent, toMerge)); // Generate patches that migrate $ref values based on ContextTree information\n // remove [\"allOf\"], which will not be present when these patches are applied\n\n var collapsedFullPath = _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_2___default()(fullPath).call(fullPath, 0, -1);\n\n var absoluteRefPatches = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_5__[\"generateAbsoluteRefPatches\"])(toMerge, collapsedFullPath, {\n getBaseUrlForNodePath: function getBaseUrlForNodePath(nodePath) {\n var _context;\n\n return specmap.getContext(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context = []).call(_context, _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(fullPath), [i], _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(nodePath))).baseDoc;\n },\n specmap: specmap\n });\n patches.push.apply(patches, _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(absoluteRefPatches));\n return undefined;\n }); // Merge back the values from the original definition\n\n patches.push(specmap.mergeDeep(parent, originalDefinitionObj)); // If there was not an original $$ref value, make sure to remove\n // any $$ref value that may exist from the result of `allOf` merges\n\n if (!originalDefinitionObj.$$ref) {\n var
|
|
7735
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"./node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectSpread2 */ \"./node_modules/@babel/runtime-corejs3/helpers/objectSpread2.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/slice */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _helpers_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../helpers.js */ \"./node_modules/swagger-client/es/specmap/helpers.js\");\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n key: 'allOf',\n plugin: function plugin(val, key, fullPath, specmap, patch) {\n // Ignore replace patches created by $ref because the changes will\n // occur in the original \"add\" patch and we don't want this plugin\n // to redundantly processes those \"relace\" patches.\n if (patch.meta && patch.meta.$$ref) {\n return undefined;\n }\n\n var parent = _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_2___default()(fullPath).call(fullPath, 0, -1);\n\n if (Object(_helpers_js__WEBPACK_IMPORTED_MODULE_5__[\"isFreelyNamed\"])(parent)) {\n return undefined;\n }\n\n if (!Array.isArray(val)) {\n var err = new TypeError('allOf must be an array');\n err.fullPath = fullPath; // This is an array\n\n return err;\n }\n\n var alreadyAddError = false; // Find the original definition from the `patch.value` object\n // Remove the `allOf` property so it doesn't get added to the result of the `allOf` plugin\n\n var originalDefinitionObj = patch.value;\n parent.forEach(function (part) {\n if (!originalDefinitionObj) return; // bail out if we've lost sight of our target\n\n originalDefinitionObj = originalDefinitionObj[part];\n });\n originalDefinitionObj = _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_1___default()({}, originalDefinitionObj); // when we've lost sight, interrupt prematurely\n\n if (_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3___default()(originalDefinitionObj).length === 0) {\n return undefined;\n }\n\n delete originalDefinitionObj.allOf;\n var patches = []; // remove existing content\n\n patches.push(specmap.replace(parent, {}));\n val.forEach(function (toMerge, i) {\n if (!specmap.isObject(toMerge)) {\n if (alreadyAddError) {\n return null;\n }\n\n alreadyAddError = true;\n\n var _err = new TypeError('Elements in allOf must be objects');\n\n _err.fullPath = fullPath; // This is an array\n\n return patches.push(_err);\n } // Deeply merge the member's contents onto the parent location\n\n\n patches.push(specmap.mergeDeep(parent, toMerge)); // Generate patches that migrate $ref values based on ContextTree information\n // remove [\"allOf\"], which will not be present when these patches are applied\n\n var collapsedFullPath = _babel_runtime_corejs3_core_js_stable_instance_slice__WEBPACK_IMPORTED_MODULE_2___default()(fullPath).call(fullPath, 0, -1);\n\n var absoluteRefPatches = Object(_helpers_js__WEBPACK_IMPORTED_MODULE_5__[\"generateAbsoluteRefPatches\"])(toMerge, collapsedFullPath, {\n getBaseUrlForNodePath: function getBaseUrlForNodePath(nodePath) {\n var _context;\n\n return specmap.getContext(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context = []).call(_context, _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(fullPath), [i], _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(nodePath))).baseDoc;\n },\n specmap: specmap\n });\n patches.push.apply(patches, _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(absoluteRefPatches));\n return undefined;\n }); // If there was an example in the original definition,\n // keep it instead of merging with examples from other schema\n\n if (originalDefinitionObj.example) {\n var _context2; // Delete other schema examples\n\n\n patches.push(specmap.remove(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context2 = []).call(_context2, parent, 'example')));\n } // Merge back the values from the original definition\n\n\n patches.push(specmap.mergeDeep(parent, originalDefinitionObj)); // If there was not an original $$ref value, make sure to remove\n // any $$ref value that may exist from the result of `allOf` merges\n\n if (!originalDefinitionObj.$$ref) {\n var _context3;\n\n patches.push(specmap.remove(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_4___default()(_context3 = []).call(_context3, parent, '$$ref')));\n }\n\n return patches;\n }\n});\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/swagger-client/es/specmap/lib/all-of.js?");
|
|
8461
7736
|
|
|
8462
7737
|
/***/ }),
|
|
8463
7738
|
|
|
@@ -8493,7 +7768,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
8493
7768
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8494
7769
|
|
|
8495
7770
|
"use strict";
|
|
8496
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"./node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"./node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/defineProperty */ \"./node_modules/@babel/runtime-corejs3/helpers/defineProperty.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectSpread2 */ \"./node_modules/@babel/runtime-corejs3/helpers/objectSpread2.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/assign */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/object/assign.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var fast_json_patch__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! fast-json-patch */ \"./node_modules/fast-json-patch/index.mjs\");\n/* harmony import */ var deep_extend__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! deep-extend */ \"./node_modules/deep-extend/lib/deep-extend.js\");\n/* harmony import */ var deep_extend__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(deep_extend__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/cloneDeep */ \"./node_modules/lodash/cloneDeep.js\");\n/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_11__);\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n add: add,\n replace: replace,\n remove: remove,\n merge: merge,\n mergeDeep: mergeDeep,\n context: context,\n getIn: getIn,\n applyPatch: applyPatch,\n parentPathMatch: parentPathMatch,\n flatten: flatten,\n fullyNormalizeArray: fullyNormalizeArray,\n normalizeArray: normalizeArray,\n isPromise: isPromise,\n forEachNew: forEachNew,\n forEachNewPrimitive: forEachNewPrimitive,\n isJsonPatch: isJsonPatch,\n isContextPatch: isContextPatch,\n isPatch: isPatch,\n isMutation: isMutation,\n isAdditiveMutation: isAdditiveMutation,\n isGenerator: isGenerator,\n isFunction: isFunction,\n isObject: isObject,\n isError: isError\n});\n\nfunction applyPatch(obj, patch, opts) {\n opts = opts || {};\n patch = _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3___default()(_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3___default()({}, patch), {}, {\n path: patch.path && normalizeJSONPath(patch.path)\n });\n\n if (patch.op === 'merge') {\n var newValue = getInByJsonPath(obj, patch.path);\n\n _babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_4___default()(newValue, patch.value);\n\n fast_json_patch__WEBPACK_IMPORTED_MODULE_9__[\"applyPatch\"](obj, [replace(patch.path, newValue)]);\n } else if (patch.op === 'mergeDeep') {\n var currentValue = getInByJsonPath(obj, patch.path); // Iterate the properties of the patch\n // eslint-disable-next-line no-restricted-syntax, guard-for-in\n\n for (var prop in patch.value) {\n var propVal = patch.value[prop];\n var isArray = Array.isArray(propVal);\n\n if (isArray) {\n // deepExtend doesn't merge arrays, so we will do it manually\n var existing = currentValue[prop] || [];\n currentValue[prop] = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_5___default()(existing).call(existing, propVal);\n } else if (isObject(propVal) && !isArray) {\n // If it's an object, iterate it's keys and merge\n // if there are conflicting keys, merge deep, otherwise shallow merge\n var currentObj = _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3___default()({}, currentValue[prop]); // eslint-disable-next-line no-restricted-syntax\n\n\n for (var key in propVal) {\n if (Object.prototype.hasOwnProperty.call(currentObj, key)) {\n // if there is a single conflicting key, just deepExtend the entire value\n // and break from the loop (since all future keys are also merged)\n // We do this because we can't deepExtend two primitives\n // (currentObj[key] & propVal[key] may be primitives).\n //\n // we also deeply assign here, since we aren't in control of\n // how deepExtend affects existing nested objects\n currentObj = deep_extend__WEBPACK_IMPORTED_MODULE_10___default()(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_11___default()(currentObj), propVal);\n break;\n } else {\n _babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_4___default()(currentObj, _babel_runtime_corejs3_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, key, propVal[key]));\n }\n }\n\n currentValue[prop] = currentObj;\n } else {\n // It's a primitive, just replace existing\n currentValue[prop] = propVal;\n }\n }\n } else if (patch.op === 'add' && patch.path === '' && isObject(patch.value)) {\n // { op: 'add', path: '', value: { a: 1, b: 2 }}\n // has no effect: json patch refuses to do anything.\n // so let's break that patch down into a set of patches,\n // one for each key in the intended root value.\n var patches = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6___default()(patch.value).reduce(function (arr, key) {\n arr.push({\n op: 'add',\n path: \"/\".concat(normalizeJSONPath(key)),\n value: patch.value[key]\n });\n return arr;\n }, []);\n\n fast_json_patch__WEBPACK_IMPORTED_MODULE_9__[\"applyPatch\"](obj, patches);\n } else if (patch.op === 'replace' && patch.path === '') {\n var _patch = patch,\n value = _patch.value;\n\n if (opts.allowMetaPatches && patch.meta && isAdditiveMutation(patch) && (Array.isArray(patch.value) || isObject(patch.value))) {\n value = _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3___default()(_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3___default()({}, value), patch.meta);\n }\n\n obj = value;\n } else {\n fast_json_patch__WEBPACK_IMPORTED_MODULE_9__[\"applyPatch\"](obj, [patch]); // Attach metadata to the resulting value.\n\n if (opts.allowMetaPatches && patch.meta && isAdditiveMutation(patch) && (Array.isArray(patch.value) || isObject(patch.value))) {\n var _currentValue = getInByJsonPath(obj, patch.path);\n\n var _newValue = _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3___default()(_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_3___default()({}, _currentValue), patch.meta);\n\n fast_json_patch__WEBPACK_IMPORTED_MODULE_9__[\"applyPatch\"](obj, [replace(patch.path, _newValue)]);\n }\n }\n\n return obj;\n}\n\nfunction normalizeJSONPath(path) {\n if (Array.isArray(path)) {\n if (path.length < 1) {\n return '';\n }\n\n return \"/\".concat(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7___default()(path).call(path, function (item) {\n return (// eslint-disable-line prefer-template\n (item + '').replace(/~/g, '~0').replace(/\\//g, '~1')\n );\n } // eslint-disable-line prefer-template\n ).join('/'));\n }\n\n return path;\n} // =========================\n// JSON-Patch Wrappers\n// =========================\n\n\nfunction add(path, value) {\n return {\n op: 'add',\n path: path,\n value: value\n };\n} // function _get(path) {\n// return { op: '_get', path };\n// }\n\n\nfunction replace(path, value, meta) {\n return {\n op: 'replace',\n path: path,\n value: value,\n meta: meta\n };\n}\n\nfunction remove(path) {\n return {\n op: 'remove',\n path: path\n };\n} // Custom wrappers\n\n\nfunction merge(path, value) {\n return {\n type: 'mutation',\n op: 'merge',\n path: path,\n value: value\n };\n} // Custom wrappers\n\n\nfunction mergeDeep(path, value) {\n return {\n type: 'mutation',\n op: 'mergeDeep',\n path: path,\n value: value\n };\n}\n\nfunction context(path, value) {\n return {\n type: 'context',\n path: path,\n value: value\n };\n} // =========================\n// Iterators\n// =========================\n\n\nfunction forEachNew(mutations, fn) {\n try {\n return forEachNewPatch(mutations, forEach, fn);\n } catch (e) {\n return e;\n }\n}\n\nfunction forEachNewPrimitive(mutations, fn) {\n try {\n return forEachNewPatch(mutations, forEachPrimitive, fn);\n } catch (e) {\n return e;\n }\n}\n\nfunction forEachNewPatch(mutations, fn, callback) {\n var _context;\n\n var res = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7___default()(_context = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_8___default()(mutations).call(mutations, isAdditiveMutation)).call(_context, function (mutation) {\n return fn(mutation.value, callback, mutation.path);\n }) || [];\n var flat = flatten(res);\n var clean = cleanArray(flat);\n return clean;\n}\n\nfunction forEachPrimitive(obj, fn, basePath) {\n basePath = basePath || [];\n\n if (Array.isArray(obj)) {\n return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7___default()(obj).call(obj, function (val, key) {\n return forEachPrimitive(val, fn, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_5___default()(basePath).call(basePath, key));\n });\n }\n\n if (isObject(obj)) {\n var _context2;\n\n return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7___default()(_context2 = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj)).call(_context2, function (key) {\n return forEachPrimitive(obj[key], fn, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_5___default()(basePath).call(basePath, key));\n });\n }\n\n return fn(obj, basePath[basePath.length - 1], basePath);\n}\n\nfunction forEach(obj, fn, basePath) {\n basePath = basePath || [];\n var results = [];\n\n if (basePath.length > 0) {\n var newResults = fn(obj, basePath[basePath.length - 1], basePath);\n\n if (newResults) {\n results = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_5___default()(results).call(results, newResults);\n }\n }\n\n if (Array.isArray(obj)) {\n var arrayResults = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7___default()(obj).call(obj, function (val, key) {\n return forEach(val, fn, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_5___default()(basePath).call(basePath, key));\n });\n\n if (arrayResults) {\n results = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_5___default()(results).call(results, arrayResults);\n }\n } else if (isObject(obj)) {\n var _context3;\n\n var moreResults = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7___default()(_context3 = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj)).call(_context3, function (key) {\n return forEach(obj[key], fn, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_5___default()(basePath).call(basePath, key));\n });\n\n if (moreResults) {\n results = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_5___default()(results).call(results, moreResults);\n }\n }\n\n results = flatten(results);\n return results;\n} // =========================\n// Paths\n// =========================\n\n\nfunction parentPathMatch(path, arr) {\n if (!Array.isArray(arr)) {\n return false;\n }\n\n for (var i = 0, len = arr.length; i < len; i += 1) {\n if (arr[i] !== path[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction getIn(obj, path) {\n return path.reduce(function (val, token) {\n if (typeof token !== 'undefined' && val) {\n return val[token];\n }\n\n return val;\n }, obj);\n} // =========================\n// Array\n// =========================\n\n\nfunction fullyNormalizeArray(arr) {\n return cleanArray(flatten(normalizeArray(arr)));\n}\n\nfunction normalizeArray(arr) {\n return Array.isArray(arr) ? arr : [arr];\n}\n\nfunction flatten(arr) {\n var _ref;\n\n return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_5___default()(_ref = []).apply(_ref, _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_7___default()(arr).call(arr, function (val) {\n return Array.isArray(val) ? flatten(val) : val;\n })));\n}\n\nfunction cleanArray(arr) {\n return _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_8___default()(arr).call(arr, function (elm) {\n return typeof elm !== 'undefined';\n });\n} // =========================\n// Is-Thing.\n// =========================\n\n\nfunction isObject(val) {\n return val && _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(val) === 'object';\n}\n\nfunction isPromise(val) {\n return isObject(val) && isFunction(val.then);\n}\n\nfunction isFunction(val) {\n return val && typeof val === 'function';\n}\n\nfunction isError(patch) {\n return patch instanceof Error;\n}\n\nfunction isJsonPatch(patch) {\n if (isPatch(patch)) {\n var op = patch.op;\n return op === 'add' || op === 'remove' || op === 'replace';\n }\n\n return false;\n}\n\nfunction isGenerator(thing) {\n return Object.prototype.toString.call(thing) === '[object GeneratorFunction]';\n}\n\nfunction isMutation(patch) {\n return isJsonPatch(patch) || isPatch(patch) && patch.type === 'mutation';\n}\n\nfunction isAdditiveMutation(patch) {\n return isMutation(patch) && (patch.op === 'add' || patch.op === 'replace' || patch.op === 'merge' || patch.op === 'mergeDeep');\n}\n\nfunction isContextPatch(patch) {\n return isPatch(patch) && patch.type === 'context';\n}\n\nfunction isPatch(patch) {\n return patch && _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(patch) === 'object';\n}\n\nfunction getInByJsonPath(obj, jsonPath) {\n try {\n return fast_json_patch__WEBPACK_IMPORTED_MODULE_9__[\"getValueByPointer\"](obj, jsonPath);\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n\n return {};\n }\n}\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/swagger-client/es/specmap/lib/index.js?");
|
|
7771
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/typeof */ \"./node_modules/@babel/runtime-corejs3/helpers/typeof.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/toConsumableArray */ \"./node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/objectSpread2 */ \"./node_modules/@babel/runtime-corejs3/helpers/objectSpread2.js\");\n/* harmony import */ var _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/assign */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/object/assign.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/map */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/filter */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var fast_json_patch__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! fast-json-patch */ \"./node_modules/fast-json-patch/index.mjs\");\n/* harmony import */ var deepmerge__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! deepmerge */ \"./node_modules/deepmerge/dist/cjs.js\");\n/* harmony import */ var deepmerge__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(deepmerge__WEBPACK_IMPORTED_MODULE_9__);\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n add: add,\n replace: replace,\n remove: remove,\n merge: merge,\n mergeDeep: mergeDeep,\n context: context,\n getIn: getIn,\n applyPatch: applyPatch,\n parentPathMatch: parentPathMatch,\n flatten: flatten,\n fullyNormalizeArray: fullyNormalizeArray,\n normalizeArray: normalizeArray,\n isPromise: isPromise,\n forEachNew: forEachNew,\n forEachNewPrimitive: forEachNewPrimitive,\n isJsonPatch: isJsonPatch,\n isContextPatch: isContextPatch,\n isPatch: isPatch,\n isMutation: isMutation,\n isAdditiveMutation: isAdditiveMutation,\n isGenerator: isGenerator,\n isFunction: isFunction,\n isObject: isObject,\n isError: isError\n});\n\nfunction applyPatch(obj, patch, opts) {\n opts = opts || {};\n patch = _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_2___default()(_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_2___default()({}, patch), {}, {\n path: patch.path && normalizeJSONPath(patch.path)\n });\n\n if (patch.op === 'merge') {\n var newValue = getInByJsonPath(obj, patch.path);\n\n _babel_runtime_corejs3_core_js_stable_object_assign__WEBPACK_IMPORTED_MODULE_3___default()(newValue, patch.value);\n\n fast_json_patch__WEBPACK_IMPORTED_MODULE_8__[\"applyPatch\"](obj, [replace(patch.path, newValue)]);\n } else if (patch.op === 'mergeDeep') {\n var currentValue = getInByJsonPath(obj, patch.path);\n\n var _newValue = deepmerge__WEBPACK_IMPORTED_MODULE_9___default()(currentValue, patch.value);\n\n obj = fast_json_patch__WEBPACK_IMPORTED_MODULE_8__[\"applyPatch\"](obj, [replace(patch.path, _newValue)]).newDocument;\n } else if (patch.op === 'add' && patch.path === '' && isObject(patch.value)) {\n // { op: 'add', path: '', value: { a: 1, b: 2 }}\n // has no effect: json patch refuses to do anything.\n // so let's break that patch down into a set of patches,\n // one for each key in the intended root value.\n var patches = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4___default()(patch.value).reduce(function (arr, key) {\n arr.push({\n op: 'add',\n path: \"/\".concat(normalizeJSONPath(key)),\n value: patch.value[key]\n });\n return arr;\n }, []);\n\n fast_json_patch__WEBPACK_IMPORTED_MODULE_8__[\"applyPatch\"](obj, patches);\n } else if (patch.op === 'replace' && patch.path === '') {\n var _patch = patch,\n value = _patch.value;\n\n if (opts.allowMetaPatches && patch.meta && isAdditiveMutation(patch) && (Array.isArray(patch.value) || isObject(patch.value))) {\n value = _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_2___default()(_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_2___default()({}, value), patch.meta);\n }\n\n obj = value;\n } else {\n fast_json_patch__WEBPACK_IMPORTED_MODULE_8__[\"applyPatch\"](obj, [patch]); // Attach metadata to the resulting value.\n\n if (opts.allowMetaPatches && patch.meta && isAdditiveMutation(patch) && (Array.isArray(patch.value) || isObject(patch.value))) {\n var _currentValue = getInByJsonPath(obj, patch.path);\n\n var _newValue2 = _babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_2___default()(_babel_runtime_corejs3_helpers_objectSpread2__WEBPACK_IMPORTED_MODULE_2___default()({}, _currentValue), patch.meta);\n\n fast_json_patch__WEBPACK_IMPORTED_MODULE_8__[\"applyPatch\"](obj, [replace(patch.path, _newValue2)]);\n }\n }\n\n return obj;\n}\n\nfunction normalizeJSONPath(path) {\n if (Array.isArray(path)) {\n if (path.length < 1) {\n return '';\n }\n\n return \"/\".concat(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_5___default()(path).call(path, function (item) {\n return (// eslint-disable-line prefer-template\n (item + '').replace(/~/g, '~0').replace(/\\//g, '~1')\n );\n } // eslint-disable-line prefer-template\n ).join('/'));\n }\n\n return path;\n} // =========================\n// JSON-Patch Wrappers\n// =========================\n\n\nfunction add(path, value) {\n return {\n op: 'add',\n path: path,\n value: value\n };\n} // function _get(path) {\n// return { op: '_get', path };\n// }\n\n\nfunction replace(path, value, meta) {\n return {\n op: 'replace',\n path: path,\n value: value,\n meta: meta\n };\n}\n\nfunction remove(path) {\n return {\n op: 'remove',\n path: path\n };\n} // Custom wrappers\n\n\nfunction merge(path, value) {\n return {\n type: 'mutation',\n op: 'merge',\n path: path,\n value: value\n };\n} // Custom wrappers\n\n\nfunction mergeDeep(path, value) {\n return {\n type: 'mutation',\n op: 'mergeDeep',\n path: path,\n value: value\n };\n}\n\nfunction context(path, value) {\n return {\n type: 'context',\n path: path,\n value: value\n };\n} // =========================\n// Iterators\n// =========================\n\n\nfunction forEachNew(mutations, fn) {\n try {\n return forEachNewPatch(mutations, forEach, fn);\n } catch (e) {\n return e;\n }\n}\n\nfunction forEachNewPrimitive(mutations, fn) {\n try {\n return forEachNewPatch(mutations, forEachPrimitive, fn);\n } catch (e) {\n return e;\n }\n}\n\nfunction forEachNewPatch(mutations, fn, callback) {\n var _context;\n\n var res = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_5___default()(_context = _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(mutations).call(mutations, isAdditiveMutation)).call(_context, function (mutation) {\n return fn(mutation.value, callback, mutation.path);\n }) || [];\n var flat = flatten(res);\n var clean = cleanArray(flat);\n return clean;\n}\n\nfunction forEachPrimitive(obj, fn, basePath) {\n basePath = basePath || [];\n\n if (Array.isArray(obj)) {\n return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_5___default()(obj).call(obj, function (val, key) {\n return forEachPrimitive(val, fn, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(basePath).call(basePath, key));\n });\n }\n\n if (isObject(obj)) {\n var _context2;\n\n return _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_5___default()(_context2 = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4___default()(obj)).call(_context2, function (key) {\n return forEachPrimitive(obj[key], fn, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(basePath).call(basePath, key));\n });\n }\n\n return fn(obj, basePath[basePath.length - 1], basePath);\n}\n\nfunction forEach(obj, fn, basePath) {\n basePath = basePath || [];\n var results = [];\n\n if (basePath.length > 0) {\n var newResults = fn(obj, basePath[basePath.length - 1], basePath);\n\n if (newResults) {\n results = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(results).call(results, newResults);\n }\n }\n\n if (Array.isArray(obj)) {\n var arrayResults = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_5___default()(obj).call(obj, function (val, key) {\n return forEach(val, fn, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(basePath).call(basePath, key));\n });\n\n if (arrayResults) {\n results = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(results).call(results, arrayResults);\n }\n } else if (isObject(obj)) {\n var _context3;\n\n var moreResults = _babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_5___default()(_context3 = _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_4___default()(obj)).call(_context3, function (key) {\n return forEach(obj[key], fn, _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(basePath).call(basePath, key));\n });\n\n if (moreResults) {\n results = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(results).call(results, moreResults);\n }\n }\n\n results = flatten(results);\n return results;\n} // =========================\n// Paths\n// =========================\n\n\nfunction parentPathMatch(path, arr) {\n if (!Array.isArray(arr)) {\n return false;\n }\n\n for (var i = 0, len = arr.length; i < len; i += 1) {\n if (arr[i] !== path[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction getIn(obj, path) {\n return path.reduce(function (val, token) {\n if (typeof token !== 'undefined' && val) {\n return val[token];\n }\n\n return val;\n }, obj);\n} // =========================\n// Array\n// =========================\n\n\nfunction fullyNormalizeArray(arr) {\n return cleanArray(flatten(normalizeArray(arr)));\n}\n\nfunction normalizeArray(arr) {\n return Array.isArray(arr) ? arr : [arr];\n}\n\nfunction flatten(arr) {\n var _ref;\n\n return _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_7___default()(_ref = []).apply(_ref, _babel_runtime_corejs3_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1___default()(_babel_runtime_corejs3_core_js_stable_instance_map__WEBPACK_IMPORTED_MODULE_5___default()(arr).call(arr, function (val) {\n return Array.isArray(val) ? flatten(val) : val;\n })));\n}\n\nfunction cleanArray(arr) {\n return _babel_runtime_corejs3_core_js_stable_instance_filter__WEBPACK_IMPORTED_MODULE_6___default()(arr).call(arr, function (elm) {\n return typeof elm !== 'undefined';\n });\n} // =========================\n// Is-Thing.\n// =========================\n\n\nfunction isObject(val) {\n return val && _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(val) === 'object';\n}\n\nfunction isPromise(val) {\n return isObject(val) && isFunction(val.then);\n}\n\nfunction isFunction(val) {\n return val && typeof val === 'function';\n}\n\nfunction isError(patch) {\n return patch instanceof Error;\n}\n\nfunction isJsonPatch(patch) {\n if (isPatch(patch)) {\n var op = patch.op;\n return op === 'add' || op === 'remove' || op === 'replace';\n }\n\n return false;\n}\n\nfunction isGenerator(thing) {\n return Object.prototype.toString.call(thing) === '[object GeneratorFunction]';\n}\n\nfunction isMutation(patch) {\n return isJsonPatch(patch) || isPatch(patch) && patch.type === 'mutation';\n}\n\nfunction isAdditiveMutation(patch) {\n return isMutation(patch) && (patch.op === 'add' || patch.op === 'replace' || patch.op === 'merge' || patch.op === 'mergeDeep');\n}\n\nfunction isContextPatch(patch) {\n return isPatch(patch) && patch.type === 'context';\n}\n\nfunction isPatch(patch) {\n return patch && _babel_runtime_corejs3_helpers_typeof__WEBPACK_IMPORTED_MODULE_0___default()(patch) === 'object';\n}\n\nfunction getInByJsonPath(obj, jsonPath) {\n try {\n return fast_json_patch__WEBPACK_IMPORTED_MODULE_8__[\"getValueByPointer\"](obj, jsonPath);\n } catch (e) {\n console.error(e); // eslint-disable-line no-console\n\n return {};\n }\n}\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/swagger-client/es/specmap/lib/index.js?");
|
|
8497
7772
|
|
|
8498
7773
|
/***/ }),
|
|
8499
7774
|
|
|
@@ -8567,6 +7842,18 @@ eval("var traverse = module.exports = function (obj) {\n return new Traverse(ob
|
|
|
8567
7842
|
|
|
8568
7843
|
/***/ }),
|
|
8569
7844
|
|
|
7845
|
+
/***/ "./node_modules/tslib/tslib.es6.js":
|
|
7846
|
+
/*!*****************************************!*\
|
|
7847
|
+
!*** ./node_modules/tslib/tslib.es6.js ***!
|
|
7848
|
+
\*****************************************/
|
|
7849
|
+
/*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */
|
|
7850
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7851
|
+
|
|
7852
|
+
"use strict";
|
|
7853
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__extends\", function() { return __extends; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__assign\", function() { return __assign; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__rest\", function() { return __rest; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__decorate\", function() { return __decorate; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__param\", function() { return __param; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__metadata\", function() { return __metadata; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__awaiter\", function() { return __awaiter; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__generator\", function() { return __generator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__createBinding\", function() { return __createBinding; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__exportStar\", function() { return __exportStar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__values\", function() { return __values; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__read\", function() { return __read; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__spread\", function() { return __spread; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__spreadArrays\", function() { return __spreadArrays; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__spreadArray\", function() { return __spreadArray; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__await\", function() { return __await; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__asyncGenerator\", function() { return __asyncGenerator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__asyncDelegator\", function() { return __asyncDelegator; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__asyncValues\", function() { return __asyncValues; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__makeTemplateObject\", function() { return __makeTemplateObject; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__importStar\", function() { return __importStar; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__importDefault\", function() { return __importDefault; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__classPrivateFieldGet\", function() { return __classPrivateFieldGet; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"__classPrivateFieldSet\", function() { return __classPrivateFieldSet; });\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\n\n/* global Reflect, Promise */\nvar extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n\n return extendStatics(d, b);\n};\n\nfunction __extends(d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\nvar __assign = function () {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n\n return t;\n };\n\n return __assign.apply(this, arguments);\n};\nfunction __rest(s, e) {\n var t = {};\n\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nfunction __decorate(decorators, target, key, desc) {\n var c = arguments.length,\n r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\nfunction __param(paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n}\nfunction __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\nfunction __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nfunction __generator(thisArg, body) {\n var _ = {\n label: 0,\n sent: function () {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n\n case 7:\n op = _.ops.pop();\n\n _.trys.pop();\n\n continue;\n\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n\n if (t && _.label < t[2]) {\n _.label = t[2];\n\n _.ops.push(op);\n\n break;\n }\n\n if (t[2]) _.ops.pop();\n\n _.trys.pop();\n\n continue;\n }\n\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nvar __createBinding = Object.create ? function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, {\n enumerable: true,\n get: function () {\n return m[k];\n }\n });\n} : function (o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n};\nfunction __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\nfunction __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator,\n m = s && o[s],\n i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\nfunction __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n}\n/** @deprecated */\n\nfunction __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n\n return ar;\n}\n/** @deprecated */\n\nfunction __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n\n for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];\n\n return r;\n}\nfunction __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\nfunction __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\nfunction __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []),\n i,\n q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () {\n return this;\n }, i;\n\n function verb(n) {\n if (g[n]) i[n] = function (v) {\n return new Promise(function (a, b) {\n q.push([n, v, a, b]) > 1 || resume(n, v);\n });\n };\n }\n\n function resume(n, v) {\n try {\n step(g[n](v));\n } catch (e) {\n settle(q[0][3], e);\n }\n }\n\n function step(r) {\n r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);\n }\n\n function fulfill(value) {\n resume(\"next\", value);\n }\n\n function reject(value) {\n resume(\"throw\", value);\n }\n\n function settle(f, v) {\n if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);\n }\n}\nfunction __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) {\n throw e;\n }), verb(\"return\"), i[Symbol.iterator] = function () {\n return this;\n }, i;\n\n function verb(n, f) {\n i[n] = o[n] ? function (v) {\n return (p = !p) ? {\n value: __await(o[n](v)),\n done: n === \"return\"\n } : f ? f(v) : v;\n } : f;\n }\n}\nfunction __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator],\n i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () {\n return this;\n }, i);\n\n function verb(n) {\n i[n] = o[n] && function (v) {\n return new Promise(function (resolve, reject) {\n v = o[n](v), settle(resolve, reject, v.done, v.value);\n });\n };\n }\n\n function settle(resolve, reject, d, v) {\n Promise.resolve(v).then(function (v) {\n resolve({\n value: v,\n done: d\n });\n }, reject);\n }\n}\nfunction __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) {\n Object.defineProperty(cooked, \"raw\", {\n value: raw\n });\n } else {\n cooked.raw = raw;\n }\n\n return cooked;\n}\n;\n\nvar __setModuleDefault = Object.create ? function (o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function (o, v) {\n o[\"default\"] = v;\n};\n\nfunction __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n\n __setModuleDefault(result, mod);\n\n return result;\n}\nfunction __importDefault(mod) {\n return mod && mod.__esModule ? mod : {\n default: mod\n };\n}\nfunction __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\nfunction __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n}\n\n//# sourceURL=webpack://WatchTogetherSDK/./node_modules/tslib/tslib.es6.js?");
|
|
7854
|
+
|
|
7855
|
+
/***/ }),
|
|
7856
|
+
|
|
8570
7857
|
/***/ "./node_modules/url/url.js":
|
|
8571
7858
|
/*!*********************************!*\
|
|
8572
7859
|
!*** ./node_modules/url/url.js ***!
|
|
@@ -8635,17 +7922,6 @@ eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. a
|
|
|
8635
7922
|
|
|
8636
7923
|
/***/ }),
|
|
8637
7924
|
|
|
8638
|
-
/***/ "./node_modules/webpack/buildin/amd-options.js":
|
|
8639
|
-
/*!****************************************!*\
|
|
8640
|
-
!*** (webpack)/buildin/amd-options.js ***!
|
|
8641
|
-
\****************************************/
|
|
8642
|
-
/*! no static exports found */
|
|
8643
|
-
/***/ (function(module, exports) {
|
|
8644
|
-
|
|
8645
|
-
eval("/* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */\nmodule.exports = __webpack_amd_options__;\n\n/* WEBPACK VAR INJECTION */}.call(this, {}))\n\n//# sourceURL=webpack://WatchTogetherSDK/(webpack)/buildin/amd-options.js?");
|
|
8646
|
-
|
|
8647
|
-
/***/ }),
|
|
8648
|
-
|
|
8649
7925
|
/***/ "./node_modules/webpack/buildin/global.js":
|
|
8650
7926
|
/*!***********************************!*\
|
|
8651
7927
|
!*** (webpack)/buildin/global.js ***!
|
|
@@ -9006,7 +8282,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _mod
|
|
|
9006
8282
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9007
8283
|
|
|
9008
8284
|
"use strict";
|
|
9009
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../modules/wt-utils */ \"./src/modules/wt-utils.js\");\n\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\nvar auth = function auth() {\n var _this = this;\n\n return {\n login: function login(username, password) {\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.auth.signIn({}, {\n requestBody: {\n username: username,\n password: password\n }\n });\n }).then(function (response) {\n _this.userId = response.data.userId;\n _this.username = response.data.username;\n return _this.__privates.auth.login(response.data.idToken, response.data.accessToken, response.data.refreshToken);\n });\n },\n providerLogin: function providerLogin(domain, token, displayname, deviceId) {\n if (!token && typeof _this.__privates.providerAuth === 'function') {\n var _this$__privates$prov = _this.__privates.providerAuth();\n\n token = _this$__privates$prov.token;\n displayname = _this$__privates$prov.displayname;\n }\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.auth.providerSignIn({}, {\n requestBody: _objectSpread(_objectSpread({\n domain: domain,\n token: token\n }, displayname && {\n displayname: displayname\n }), deviceId && {\n deviceId: deviceId\n })\n });\n }).then(function (response) {\n _this.userId = response.data.userId;\n _this.username = response.data.username;\n return _this.__privates.auth.login(response.data.idToken, response.data.accessToken, response.data.refreshToken);\n });\n },\n getProviderAuth: function getProviderAuth() {\n return _this.__privates.providerAuth;\n },\n deviceLogin: function deviceLogin(salt) {\n return Object(_modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__[\"
|
|
8285
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../modules/wt-utils */ \"./src/modules/wt-utils.js\");\n\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\nvar auth = function auth() {\n var _this = this;\n\n return {\n login: function login(username, password) {\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.auth.signIn({}, {\n requestBody: {\n username: username,\n password: password\n }\n });\n }).then(function (response) {\n _this.userId = response.data.userId;\n _this.username = response.data.username;\n return _this.__privates.auth.login(response.data.idToken, response.data.accessToken, response.data.refreshToken);\n });\n },\n providerLogin: function providerLogin(domain, token, displayname, deviceId) {\n if (!token && typeof _this.__privates.providerAuth === 'function') {\n var _this$__privates$prov = _this.__privates.providerAuth();\n\n token = _this$__privates$prov.token;\n displayname = _this$__privates$prov.displayname;\n }\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.auth.providerSignIn({}, {\n requestBody: _objectSpread(_objectSpread({\n domain: domain,\n token: token\n }, displayname && {\n displayname: displayname\n }), deviceId && {\n deviceId: deviceId\n })\n });\n }).then(function (response) {\n _this.userId = response.data.userId;\n _this.username = response.data.username;\n return _this.__privates.auth.login(response.data.idToken, response.data.accessToken, response.data.refreshToken);\n });\n },\n getProviderAuth: function getProviderAuth() {\n return _this.__privates.providerAuth;\n },\n deviceLogin: function deviceLogin(salt) {\n return Object(_modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__[\"getBrowserFingerprint\"])(_this.__instanceType, salt).then(function (deviceId) {\n return Promise.all([deviceId, _this.__privates.auth.__client]);\n }).then(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n deviceId = _ref2[0],\n client = _ref2[1];\n\n return client.apis.auth.deviceSignIn({}, {\n requestBody: {\n deviceId: deviceId,\n domain: location.hostname\n }\n });\n }).then(function (response) {\n _this.userId = response.data.userId;\n _this.username = response.data.username;\n return _this.__privates.auth.login(response.data.idToken, response.data.accessToken, response.data.refreshToken);\n });\n },\n logout: function logout() {\n return _this.__privates.auth.logout();\n },\n isLoggedIn: function isLoggedIn() {\n return _this.__privates.auth.isLoggedIn();\n },\n setLanguage: function setLanguage(language) {\n return _this.__privates.auth.setLanguage(language);\n },\n getLanguage: function getLanguage() {\n return _this.__privates.auth.__language;\n },\n signUp: function signUp(username, password, email, phone) {\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.auth.signUp({}, {\n requestBody: {\n username: username,\n password: password,\n email: email,\n phone: phone\n }\n });\n });\n },\n confirmSignUp: function confirmSignUp(confirmationCode, username, displayname) {\n var isPublic = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.auth.confirmSignUp({}, {\n requestBody: {\n confirmationCode: confirmationCode,\n username: username,\n displayname: displayname,\n isPublic: isPublic\n }\n });\n }).then(function (response) {\n _this.userId = response.data.userId;\n _this.username = response.data.username;\n return _this.__privates.auth.login(response.data.idToken, response.data.accessToken, response.data.refreshToken);\n });\n },\n resendConfirmationCode: function resendConfirmationCode(username) {\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.auth.resendConfirmationCode({}, {\n requestBody: {\n username: username\n }\n });\n });\n },\n forgotPassword: function forgotPassword(username) {\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.auth.forgotPassword({}, {\n requestBody: {\n username: username\n }\n });\n });\n },\n confirmForgotPassword: function confirmForgotPassword(username, confirmationCode, password) {\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.auth.confirmForgotPassword({}, {\n requestBody: {\n password: password,\n confirmationCode: confirmationCode,\n username: username\n }\n });\n });\n },\n $on: function $on(key, callback, that) {\n return _this.__privates.auth.on(key, callback, that || _this);\n },\n $off: function $off(key, callback, that) {\n return _this.__privates.auth.off(key, callback, that || _this);\n },\n $clear: function $clear() {\n return _this.__privates.auth.clear();\n }\n };\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (auth);\n\n//# sourceURL=webpack://WatchTogetherSDK/./src/models/auth.js?");
|
|
9010
8286
|
|
|
9011
8287
|
/***/ }),
|
|
9012
8288
|
|
|
@@ -9030,7 +8306,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n\n\nfunction _toConsumableArr
|
|
|
9030
8306
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9031
8307
|
|
|
9032
8308
|
"use strict";
|
|
9033
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../modules/wt-utils */ \"./src/modules/wt-utils.js\");\n/* harmony import */ var _modules_wt_emitter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../modules/wt-emitter */ \"./src/modules/wt-emitter.js\");\n/* harmony import */ var _modules_sync_modules_sync_hls__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../modules/sync-modules/sync-hls */ \"./src/modules/sync-modules/sync-hls.js\");\n/* harmony import */ var _modules_sync_modules_sync_hls_vod__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../modules/sync-modules/sync-hls-vod */ \"./src/modules/sync-modules/sync-hls-vod.js\");\n/* harmony import */ var _modules_sync_modules_sync_native_hls_vod__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../modules/sync-modules/sync-native-hls-vod */ \"./src/modules/sync-modules/sync-native-hls-vod.js\");\n/* harmony import */ var _modules_sync_modules_sync_native_hls__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../modules/sync-modules/sync-native-hls */ \"./src/modules/sync-modules/sync-native-hls.js\");\n/* harmony import */ var _modules_sync_modules_sync_shaka_dash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../modules/sync-modules/sync-shaka-dash */ \"./src/modules/sync-modules/sync-shaka-dash.js\");\n/* harmony import */ var _modules_sync_modules_sync_shaka_dash_vod__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../modules/sync-modules/sync-shaka-dash-vod */ \"./src/modules/sync-modules/sync-shaka-dash-vod.js\");\n/* harmony import */ var _modules_sync_modules_sync_dash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../modules/sync-modules/sync-dash */ \"./src/modules/sync-modules/sync-dash.js\");\n/* harmony import */ var _modules_sync_modules_sync_dash_vod__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../modules/sync-modules/sync-dash-vod */ \"./src/modules/sync-modules/sync-dash-vod.js\");\n/* harmony import */ var _modules_sync_modules_sync_doris__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../modules/sync-modules/sync-doris */ \"./src/modules/sync-modules/sync-doris.js\");\n/* harmony import */ var _modules_sync_modules_sync_disabled__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../modules/sync-modules/sync-disabled */ \"./src/modules/sync-modules/sync-disabled.js\");\n/* harmony import */ var _modules_sync_modules_sync_dazn_dash__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../modules/sync-modules/sync-dazn-dash */ \"./src/modules/sync-modules/sync-dazn-dash.js\");\n/* harmony import */ var _modules_sync_modules_sync_universal__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../modules/sync-modules/sync-universal */ \"./src/modules/sync-modules/sync-universal.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n\n // SYNCHRONISATION MODULES\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar roomSession = function roomSession(_ref, room, wt) {\n var _this4 = this;\n\n var roomId = _ref.roomId,\n pinHash = _ref.pinHash,\n isTalkback = _ref.isTalkback,\n isMonitor = _ref.isMonitor,\n isInstructor = _ref.isInstructor;\n var publicCustomEvents = ['changePlayerSource', 'chatMessage', 'userUpdate', 'reconnecting', 'connecting', 'remoteMuted', 'scaling'];\n\n var addEvents = function addEvents(events) {\n publicCustomEvents = [].concat(_toConsumableArray(publicCustomEvents), _toConsumableArray(events));\n };\n\n var removeEvents = function removeEvents(events) {\n publicCustomEvents = publicCustomEvents.filter(function (ev) {\n return events.indexOf(ev) === -1;\n });\n };\n\n var emitter = Object(_modules_wt_emitter__WEBPACK_IMPORTED_MODULE_1__[\"default\"])();\n\n var alpTimeoutId = null;\n\n var ___; // return object\n\n\n room.on('addLocalParticipant', function () {\n // TODO: this timeout is a hotfix and should be sorted differently\n // At some random case we don't get message back if we don't wait\n clearTimeout(alpTimeoutId);\n alpTimeoutId = setTimeout(function () {\n ___.__requestMuteStatus();\n }, 1000);\n });\n room.on('localMuted', function (_ref2) {\n var type = _ref2.type,\n value = _ref2.value;\n\n ___.sendSystemMessage('remote_muted', {\n type: type,\n value: value\n });\n });\n room.on('data', function (data) {\n ___.__parseDataEvents(data);\n });\n return ___ = {\n syncModule: null,\n playerInterface: null,\n\n get userId() {\n return room.userId;\n },\n\n get roomId() {\n return roomId;\n },\n\n get sessionId() {\n return room.sessionId;\n },\n\n get constructId() {\n return room.constructId;\n },\n\n destroy: function destroy() {\n var _this = this;\n\n clearTimeout(alpTimeoutId);\n this.detachPlayer();\n return room.destroy().finally(function () {\n _this.$clear();\n\n return true;\n });\n },\n iceRestart: function iceRestart() {\n return room._iceRestart(room.handleId);\n },\n connect: function connect() {\n var _this2 = this;\n\n emitter.emit('connecting', true);\n clearTimeout(alpTimeoutId);\n return Promise.all([wt.room.__joinRoom({\n roomId: roomId,\n pinHash: pinHash,\n isTalkback: isTalkback,\n isMonitor: isMonitor,\n isInstructor: isInstructor\n }), wt.user.getUserSelf()]).then(function (_ref3) {\n var _roomData$data;\n\n var _ref4 = _slicedToArray(_ref3, 2),\n roomData = _ref4[0],\n userData = _ref4[1];\n\n // Happens when we reroute user to a different room\n if (roomData !== null && roomData !== void 0 && (_roomData$data = roomData.data) !== null && _roomData$data !== void 0 && _roomData$data.reactooRoomId) {\n roomId = roomData.data.reactooRoomId;\n }\n\n return Promise.all([roomData, userData]);\n }).then(function (_ref5) {\n var _ref6 = _slicedToArray(_ref5, 2),\n roomData = _ref6[0],\n userData = _ref6[1];\n\n return Promise.all([roomData, userData, _this2.setRoomVars()]);\n }).then(function (_ref7) {\n var _ref8 = _slicedToArray(_ref7, 3),\n roomData = _ref8[0],\n userData = _ref8[1],\n _ = _ref8[2];\n\n return Promise.all([roomData, userData, room.connect(roomData.data.roomId, roomData.data.pin, roomData.data.href, roomData.data.iceServers, roomData.data.accessToken, isMonitor || isInstructor || isTalkback ? roomData.data.userId : userData.data._id, roomData.data.webrtcVersion, roomData.data.bitrate ? parseInt(roomData.data.bitrate) : 0, isMonitor, roomData.data.recordingFilename)]);\n }).then(function (_ref9) {\n var _ref10 = _slicedToArray(_ref9, 3),\n roomData = _ref10[0],\n userData = _ref10[1],\n _ = _ref10[2];\n\n return roomData.data;\n }).finally(function () {\n emitter.emit('connecting', false);\n });\n },\n disconnect: function disconnect(dontWaitForResponses) {\n clearTimeout(alpTimeoutId);\n return room.disconnect(dontWaitForResponses);\n },\n //TODO: refactor restart method\n restart: function restart() {\n var _handle$webrtcStuff,\n _this3 = this;\n\n var isObserver = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n emitter.emit('reconnecting', true);\n room.isRestarting = true;\n var wasPublished = room._isPublished;\n\n var handle = room._getHandle(room.handleId);\n\n var stream = null;\n\n if (handle !== null && handle !== void 0 && (_handle$webrtcStuff = handle.webrtcStuff) !== null && _handle$webrtcStuff !== void 0 && _handle$webrtcStuff.stream && wasPublished) {\n stream = handle.webrtcStuff.stream;\n }\n\n return this.disconnect().then(function () {\n return Object(_modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__[\"wait\"])(1000);\n }) //TODO: remove 1000ms wait by waiting for proper events from janus\n .then(function () {\n return _this3.connect();\n }).then(function () {\n if (isObserver) {\n return _this3.publishLocal(null, {\n getStreamIfEmpty: false,\n unpublishFirst: true\n });\n } else if (stream) {\n return _this3.publishLocal(stream);\n } else return Promise.resolve();\n }).then(function () {\n room.isRestarting = false;\n emitter.emit('reconnecting', false);\n return 1;\n }).catch(function (error) {\n room.isRestarting = false;\n emitter.emit('reconnecting', false);\n emitter.emit('error', {\n type: 'error',\n id: 26,\n message: 'reconnecting failed',\n data: error\n });\n return Promise.reject(0);\n });\n },\n getStats: function getStats() {\n var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return room._getStats(type);\n },\n getRoomParticipants: function getRoomParticipants() {\n return room._participants;\n },\n __parseDataEvents: function __parseDataEvents() {\n var msg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (msg.videoroom === 'message') {\n if (msg.action === 'pending_shutdown' || msg.action === 'shutting_down') {\n emitter.emit('scaling');\n this.restart(); // current videoroom was reassigned to a different WebRTC instance\n } else if (msg.action === 'force_restart') {\n this.restart();\n } else if (msg.action === 'user_update_displayname' || msg.action === 'user_update_avatar' || msg.action === 'user_update_customattributes' || msg.action === 'user_update_privateattributes') {\n emitter.emit('userUpdate', msg.text);\n } else if (msg.action === 'observer_connecting' || msg.action === 'talkback_connecting' || msg.action === 'instructor_connecting') {\n this.setRoomVars(null, msg.action === 'observer_connecting').catch(function (e) {\n room._log('Setting observers failed, this will cause issues', e);\n });\n } else if (msg.action === 'bitrate_changed') {\n this.setBitrateCap(msg.text);\n } else if (msg.user_action === 'chat_message') {\n emitter.emit('chatMessage', msg);\n } else if (msg.user_action === 'remote_muted') {\n if (msg.from !== room.userId) {\n emitter.emit('remoteMuted', _objectSpread({\n userId: msg.from\n }, msg.text && JSON.parse(msg.text)));\n }\n } else if (msg.user_action === 'remote_muted_request') {\n if (msg.from !== room.userId) {\n this.__sendMuteStatus();\n }\n }\n }\n },\n renderPlayer: function renderPlayer(playerWrapper, fullscreenElement) {\n try {\n this.syncModule = Object(_modules_sync_modules_sync_universal__WEBPACK_IMPORTED_MODULE_13__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n this.playerInterface = wt.__privates.playerFactory(playerWrapper, fullscreenElement, this.syncModule.getHandlers(), {\n roomId: room.roomId\n });\n this.syncModule.initialize({\n playerInterface: this.playerInterface\n });\n return true;\n } catch (e) {\n return false;\n }\n },\n attachPlayer: function attachPlayer(type, inputs) {\n this.detachPlayer();\n\n if (type === 'hlsjs') {\n this.syncModule = Object(_modules_sync_modules_sync_hls__WEBPACK_IMPORTED_MODULE_2__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'hlsjs-vod') {\n this.syncModule = Object(_modules_sync_modules_sync_hls_vod__WEBPACK_IMPORTED_MODULE_3__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'hlsnative-vod') {\n this.syncModule = Object(_modules_sync_modules_sync_native_hls_vod__WEBPACK_IMPORTED_MODULE_4__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'hlsnative') {\n this.syncModule = Object(_modules_sync_modules_sync_native_hls__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'shaka-dash-vod') {\n this.syncModule = Object(_modules_sync_modules_sync_shaka_dash_vod__WEBPACK_IMPORTED_MODULE_7__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'shaka-dash') {\n this.syncModule = Object(_modules_sync_modules_sync_shaka_dash__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'dashjs') {\n this.syncModule = Object(_modules_sync_modules_sync_dash__WEBPACK_IMPORTED_MODULE_8__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'dashjs-vod') {\n this.syncModule = Object(_modules_sync_modules_sync_dash_vod__WEBPACK_IMPORTED_MODULE_9__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'doris') {\n this.syncModule = Object(_modules_sync_modules_sync_doris__WEBPACK_IMPORTED_MODULE_10__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'dazn-dash') {\n this.syncModule = Object(_modules_sync_modules_sync_dazn_dash__WEBPACK_IMPORTED_MODULE_12__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'disabled') {\n this.syncModule = Object(_modules_sync_modules_sync_disabled__WEBPACK_IMPORTED_MODULE_11__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else {\n room._log('Synchronisation type not recognised');\n }\n },\n detachPlayer: function detachPlayer() {\n if (this.syncModule) {\n this.playerInterface = null;\n this.syncModule.destroy();\n\n if (this.syncModule.__events) {\n removeEvents(this.syncModule.__events);\n }\n\n this.syncModule = null;\n }\n },\n setRoomVars: function setRoomVars() {\n var observerIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var emit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n return wt.room.getRoomById(roomId, pinHash).then(function (r) {\n var _r$data$classroom;\n\n if (emit) {\n // emiting \"fake\" playerSource event\n //TODO: somehow push into sync modules instead\n emitter.emit('changePlayerSource', r.data.wtChannelId, true);\n } // setting observers userId's so we can ignore them when creating participant\n\n\n room.setObserverIds(r.data.allowedObservers);\n room.setTalkbackIds(r.data.allowedTalkbacks);\n room.setInstructorId((_r$data$classroom = r.data.classroom) === null || _r$data$classroom === void 0 ? void 0 : _r$data$classroom.instructorUserId);\n });\n },\n publishLocal: function publishLocal() {\n var stream = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n var _ref11 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref11$keepAudio = _ref11.keepAudio,\n keepAudio = _ref11$keepAudio === void 0 ? false : _ref11$keepAudio,\n _ref11$keepVideo = _ref11.keepVideo,\n keepVideo = _ref11$keepVideo === void 0 ? false : _ref11$keepVideo,\n _ref11$getStreamIfEmp = _ref11.getStreamIfEmpty,\n getStreamIfEmpty = _ref11$getStreamIfEmp === void 0 ? true : _ref11$getStreamIfEmp,\n _ref11$askVideo = _ref11.askVideo,\n askVideo = _ref11$askVideo === void 0 ? true : _ref11$askVideo;\n\n return stream || !getStreamIfEmpty ? room.publishLocal(stream, {\n keepAudio: keepAudio,\n keepVideo: keepVideo\n }) : wt.utils.getUserStream(askVideo).then(function (stream) {\n return room.publishLocal(stream);\n });\n },\n unpublishLocal: function unpublishLocal() {\n return room.unpublishLocal();\n },\n toggleAudio: function toggleAudio(value) {\n return room.toggleAudio(value);\n },\n toggleVideo: function toggleVideo() {\n return room.toggleVideo();\n },\n setBitrateCap: function setBitrateCap(bitrate) {\n if (isInstructor) {\n return;\n }\n\n return room.sendMessage(room.handleId, {\n \"body\": {\n \"request\": \"configure\",\n \"bitrate\": parseInt(bitrate)\n }\n }).catch(function () {\n return null;\n });\n },\n switchChannel: function switchChannel(channelId) {\n return room.sendMessage(room.handleId, {\n body: {\n request: \"sync_source_set\",\n room: room.roomId,\n timestamp: new Date().getTime(),\n wt_channel_id: channelId,\n fragment: \"0\",\n fragment_pos: 0\n }\n });\n },\n sendSystemMessage: function sendSystemMessage(action) {\n var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var to = arguments.length > 2 ? arguments[2] : undefined;\n var set_master = arguments.length > 3 ? arguments[3] : undefined;\n return room.sendMessage(room.handleId, {\n body: _objectSpread(_objectSpread({\n action: action,\n request: \"message\",\n room: room.roomId,\n timestamp: new Date().getTime(),\n text: JSON.stringify(value)\n }, to && Array.isArray(to) ? {\n tos: to\n } : {\n to: to\n }), set_master && {\n set_master: set_master\n })\n });\n },\n sendChatMessage: function sendChatMessage(text, to) {\n return room.sendMessage(room.handleId, {\n body: _objectSpread({\n action: \"chat_message\",\n request: \"message\",\n room: room.roomId,\n timestamp: new Date().getTime(),\n text: text\n }, to && Array.isArray(to) ? {\n tos: to\n } : {\n to: to\n })\n });\n },\n __requestMuteStatus: function __requestMuteStatus() {\n this.sendSystemMessage('remote_muted_request');\n },\n __sendMuteStatus: function __sendMuteStatus() {\n this.sendSystemMessage('remote_muted', {\n type: 'video',\n value: room.isVideoMuted\n });\n this.sendSystemMessage('remote_muted', {\n type: 'audio',\n value: room.isAudioMuted\n });\n },\n $on: function $on(key, callback, that) {\n emitter.on(key, callback, that || _this4);\n room.on(key, callback, that || _this4);\n },\n $off: function $off(key, callback, that) {\n emitter.on(key, callback, that || _this4);\n room.on(key, callback, that || _this4);\n },\n $clear: function $clear() {\n room.clear();\n emitter.clear();\n }\n };\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (roomSession);\n\n//# sourceURL=webpack://WatchTogetherSDK/./src/models/room-session.js?");
|
|
8309
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../modules/wt-utils */ \"./src/modules/wt-utils.js\");\n/* harmony import */ var _modules_wt_emitter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../modules/wt-emitter */ \"./src/modules/wt-emitter.js\");\n/* harmony import */ var _modules_sync_modules_sync_hls__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../modules/sync-modules/sync-hls */ \"./src/modules/sync-modules/sync-hls.js\");\n/* harmony import */ var _modules_sync_modules_sync_hls_vod__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../modules/sync-modules/sync-hls-vod */ \"./src/modules/sync-modules/sync-hls-vod.js\");\n/* harmony import */ var _modules_sync_modules_sync_native_hls_vod__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../modules/sync-modules/sync-native-hls-vod */ \"./src/modules/sync-modules/sync-native-hls-vod.js\");\n/* harmony import */ var _modules_sync_modules_sync_native_hls__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../modules/sync-modules/sync-native-hls */ \"./src/modules/sync-modules/sync-native-hls.js\");\n/* harmony import */ var _modules_sync_modules_sync_shaka_dash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../modules/sync-modules/sync-shaka-dash */ \"./src/modules/sync-modules/sync-shaka-dash.js\");\n/* harmony import */ var _modules_sync_modules_sync_shaka_dash_vod__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../modules/sync-modules/sync-shaka-dash-vod */ \"./src/modules/sync-modules/sync-shaka-dash-vod.js\");\n/* harmony import */ var _modules_sync_modules_sync_dash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../modules/sync-modules/sync-dash */ \"./src/modules/sync-modules/sync-dash.js\");\n/* harmony import */ var _modules_sync_modules_sync_dash_vod__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../modules/sync-modules/sync-dash-vod */ \"./src/modules/sync-modules/sync-dash-vod.js\");\n/* harmony import */ var _modules_sync_modules_sync_doris__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../modules/sync-modules/sync-doris */ \"./src/modules/sync-modules/sync-doris.js\");\n/* harmony import */ var _modules_sync_modules_sync_disabled__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../modules/sync-modules/sync-disabled */ \"./src/modules/sync-modules/sync-disabled.js\");\n/* harmony import */ var _modules_sync_modules_sync_dazn_dash__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../modules/sync-modules/sync-dazn-dash */ \"./src/modules/sync-modules/sync-dazn-dash.js\");\n/* harmony import */ var _modules_sync_modules_sync_universal__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../modules/sync-modules/sync-universal */ \"./src/modules/sync-modules/sync-universal.js\");\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n\n // SYNCHRONISATION MODULES\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar roomSession = function roomSession(_ref, room, wt) {\n var _this4 = this;\n\n var roomId = _ref.roomId,\n pinHash = _ref.pinHash,\n isTalkback = _ref.isTalkback,\n isMonitor = _ref.isMonitor,\n isInstructor = _ref.isInstructor;\n var primaryRoomId = roomId;\n var publicCustomEvents = ['changePlayerSource', 'chatMessage', 'userUpdate', 'reconnecting', 'connecting', 'remoteMuted', 'scaling'];\n\n var addEvents = function addEvents(events) {\n publicCustomEvents = [].concat(_toConsumableArray(publicCustomEvents), _toConsumableArray(events));\n };\n\n var removeEvents = function removeEvents(events) {\n publicCustomEvents = publicCustomEvents.filter(function (ev) {\n return events.indexOf(ev) === -1;\n });\n };\n\n var emitter = Object(_modules_wt_emitter__WEBPACK_IMPORTED_MODULE_1__[\"default\"])();\n\n var alpTimeoutId = null;\n\n var ___; // return object\n\n\n room.on('addLocalParticipant', function () {\n // TODO: this doesnt seem to be fixable until we switch to differen type of messaging\n // At some random case we don't get message back if we don't wait\n clearTimeout(alpTimeoutId);\n alpTimeoutId = setTimeout(function () {\n ___.__requestMuteStatus();\n }, 2000);\n });\n room.on('localMuted', function (_ref2) {\n var type = _ref2.type,\n value = _ref2.value;\n\n ___.sendSystemMessage('remote_muted', {\n type: type,\n value: value\n });\n });\n room.on('data', function (data) {\n ___.__parseDataEvents(data);\n });\n return ___ = {\n syncModule: null,\n playerInterface: null,\n\n get userId() {\n return room.userId;\n },\n\n get roomId() {\n return roomId;\n },\n\n get sessionId() {\n return room.sessionId;\n },\n\n get constructId() {\n return room.constructId;\n },\n\n destroy: function destroy() {\n var _this = this;\n\n clearTimeout(alpTimeoutId);\n this.detachPlayer();\n return room.destroy().finally(function () {\n _this.$clear();\n\n return true;\n });\n },\n iceRestart: function iceRestart() {\n return room._iceRestart(room.handleId);\n },\n connect: function connect() {\n var _this2 = this;\n\n var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref3$reactooRoomId = _ref3.reactooRoomId,\n reactooRoomId = _ref3$reactooRoomId === void 0 ? null : _ref3$reactooRoomId;\n\n emitter.emit('connecting', true);\n clearTimeout(alpTimeoutId);\n return Promise.all([wt.room.__joinRoom({\n roomId: reactooRoomId || primaryRoomId,\n pinHash: pinHash,\n isTalkback: isTalkback,\n isMonitor: isMonitor,\n isInstructor: isInstructor\n }), wt.user.getUserSelf()]).then(function (_ref4) {\n var _roomData$data;\n\n var _ref5 = _slicedToArray(_ref4, 2),\n roomData = _ref5[0],\n userData = _ref5[1];\n\n // Happens when we reroute user to a different room\n if ((roomData === null || roomData === void 0 ? void 0 : (_roomData$data = roomData.data) === null || _roomData$data === void 0 ? void 0 : _roomData$data.reactooRoomId) !== roomId) {\n roomId = roomData.data.reactooRoomId;\n emitter.emit('changeRoomId', roomId);\n }\n\n return Promise.all([roomData, userData]);\n }).then(function (_ref6) {\n var _ref7 = _slicedToArray(_ref6, 2),\n roomData = _ref7[0],\n userData = _ref7[1];\n\n return Promise.all([roomData, userData, _this2.setRoomVars()]);\n }).then(function (_ref8) {\n var _ref9 = _slicedToArray(_ref8, 3),\n roomData = _ref9[0],\n userData = _ref9[1],\n _ = _ref9[2];\n\n return Promise.all([roomData, userData, room.connect(roomData.data.roomId, roomData.data.pin, roomData.data.href, roomData.data.iceServers, roomData.data.accessToken, isMonitor || isInstructor || isTalkback ? roomData.data.userId : userData.data._id, roomData.data.webrtcVersion, roomData.data.bitrate ? parseInt(roomData.data.bitrate) : 0, isMonitor, roomData.data.recordingFilename)]);\n }).finally(function () {\n emitter.emit('connecting', false);\n });\n },\n disconnect: function disconnect(dontWaitForResponses) {\n clearTimeout(alpTimeoutId);\n return room.disconnect(dontWaitForResponses);\n },\n //TODO: refactor restart method\n restart: function restart() {\n var _handle$webrtcStuff,\n _this3 = this;\n\n var _ref10 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref10$isObserver = _ref10.isObserver,\n isObserver = _ref10$isObserver === void 0 ? false : _ref10$isObserver,\n _ref10$reactooRoomId = _ref10.reactooRoomId,\n reactooRoomId = _ref10$reactooRoomId === void 0 ? null : _ref10$reactooRoomId;\n\n emitter.emit('reconnecting', true);\n room.isRestarting = true;\n var wasPublished = room._isPublished;\n\n var handle = room._getHandle(room.handleId);\n\n var stream = null;\n\n if (handle !== null && handle !== void 0 && (_handle$webrtcStuff = handle.webrtcStuff) !== null && _handle$webrtcStuff !== void 0 && _handle$webrtcStuff.stream && wasPublished) {\n stream = handle.webrtcStuff.stream;\n }\n\n return this.disconnect().then(function () {\n return Object(_modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__[\"wait\"])(1000);\n }) //TODO: remove 1000ms wait by waiting for proper events from janus\n .then(function () {\n return _this3.connect({\n reactooRoomId: reactooRoomId\n });\n }).then(function () {\n if (isObserver) {\n return _this3.publishLocal(null, {\n getStreamIfEmpty: false,\n unpublishFirst: true\n });\n } else if (stream) {\n return _this3.publishLocal(stream);\n } else return Promise.resolve();\n }).then(function () {\n room.isRestarting = false;\n emitter.emit('reconnecting', false);\n return 1;\n }).catch(function (error) {\n room.isRestarting = false;\n emitter.emit('reconnecting', false);\n emitter.emit('error', {\n type: 'error',\n id: 26,\n message: 'reconnecting failed',\n data: error\n });\n return Promise.reject(0);\n });\n },\n getStats: function getStats() {\n var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return room._getStats(type);\n },\n getRoomParticipants: function getRoomParticipants() {\n return room._participants;\n },\n __parseDataEvents: function __parseDataEvents() {\n var msg = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (msg.videoroom === 'message') {\n if (msg.action === 'pending_shutdown' || msg.action === 'shutting_down') {\n emitter.emit('scaling');\n this.restart(); // current videoroom was reassigned to a different WebRTC instance\n } else if (msg.action === 'force_restart') {\n this.restart();\n } else if (msg.action === 'user_update_displayname' || msg.action === 'user_update_avatar' || msg.action === 'user_update_customattributes' || msg.action === 'user_update_privateattributes') {\n emitter.emit('userUpdate', msg.text);\n } else if (msg.action === 'observer_connecting' || msg.action === 'talkback_connecting' || msg.action === 'instructor_connecting') {\n this.setRoomVars(null, msg.action === 'observer_connecting').catch(function (e) {\n room._log('Setting observers failed, this will cause issues', e);\n });\n } else if (msg.action === 'bitrate_changed') {\n this.setBitrateCap(msg.text);\n } else if (msg.user_action === 'chat_message') {\n emitter.emit('chatMessage', msg);\n } else if (msg.user_action === 'remote_muted') {\n if (msg.from !== room.userId) {\n emitter.emit('remoteMuted', _objectSpread({\n userId: msg.from\n }, msg.text && JSON.parse(msg.text)));\n }\n } else if (msg.user_action === 'remote_muted_request') {\n if (msg.from !== room.userId) {\n this.__sendMuteStatus();\n }\n }\n }\n },\n renderPlayer: function renderPlayer(playerWrapper, fullscreenElement) {\n try {\n this.syncModule = Object(_modules_sync_modules_sync_universal__WEBPACK_IMPORTED_MODULE_13__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n this.playerInterface = wt.__privates.playerFactory(playerWrapper, fullscreenElement, this.syncModule.getHandlers(), {\n roomId: room.roomId\n });\n this.syncModule.initialize({\n playerInterface: this.playerInterface\n });\n return true;\n } catch (e) {\n return false;\n }\n },\n attachPlayer: function attachPlayer(type, inputs) {\n this.detachPlayer();\n\n if (type === 'hlsjs') {\n this.syncModule = Object(_modules_sync_modules_sync_hls__WEBPACK_IMPORTED_MODULE_2__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'hlsjs-vod') {\n this.syncModule = Object(_modules_sync_modules_sync_hls_vod__WEBPACK_IMPORTED_MODULE_3__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'hlsnative-vod') {\n this.syncModule = Object(_modules_sync_modules_sync_native_hls_vod__WEBPACK_IMPORTED_MODULE_4__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'hlsnative') {\n this.syncModule = Object(_modules_sync_modules_sync_native_hls__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'shaka-dash-vod') {\n this.syncModule = Object(_modules_sync_modules_sync_shaka_dash_vod__WEBPACK_IMPORTED_MODULE_7__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'shaka-dash') {\n this.syncModule = Object(_modules_sync_modules_sync_shaka_dash__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'dashjs') {\n this.syncModule = Object(_modules_sync_modules_sync_dash__WEBPACK_IMPORTED_MODULE_8__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'dashjs-vod') {\n this.syncModule = Object(_modules_sync_modules_sync_dash_vod__WEBPACK_IMPORTED_MODULE_9__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'doris') {\n this.syncModule = Object(_modules_sync_modules_sync_doris__WEBPACK_IMPORTED_MODULE_10__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'dazn-dash') {\n this.syncModule = Object(_modules_sync_modules_sync_dazn_dash__WEBPACK_IMPORTED_MODULE_12__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else if (type === 'disabled') {\n this.syncModule = Object(_modules_sync_modules_sync_disabled__WEBPACK_IMPORTED_MODULE_11__[\"default\"])({\n room: room,\n wt: wt,\n roomSession: this,\n emitter: emitter\n });\n\n if (this.syncModule.__events) {\n addEvents(this.syncModule.__events);\n }\n\n this.syncModule.initialize(inputs);\n } else {\n room._log('Synchronisation type not recognised');\n }\n },\n detachPlayer: function detachPlayer() {\n if (this.syncModule) {\n this.playerInterface = null;\n this.syncModule.destroy();\n\n if (this.syncModule.__events) {\n removeEvents(this.syncModule.__events);\n }\n\n this.syncModule = null;\n }\n },\n setRoomVars: function setRoomVars() {\n var observerIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var emit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n return wt.room.getRoomById(roomId, pinHash).then(function (r) {\n var _r$data$classroom;\n\n if (emit) {\n // emiting \"fake\" playerSource event\n //TODO: somehow push into sync modules instead\n emitter.emit('changePlayerSource', r.data.wtChannelId, true);\n } // setting observers userId's so we can ignore them when creating participant\n\n\n room.setObserverIds(r.data.allowedObservers);\n room.setTalkbackIds(r.data.allowedTalkbacks);\n room.setInstructorId((_r$data$classroom = r.data.classroom) === null || _r$data$classroom === void 0 ? void 0 : _r$data$classroom.instructorUserId);\n });\n },\n publishLocal: function publishLocal() {\n var stream = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n var _ref11 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref11$keepAudio = _ref11.keepAudio,\n keepAudio = _ref11$keepAudio === void 0 ? false : _ref11$keepAudio,\n _ref11$keepVideo = _ref11.keepVideo,\n keepVideo = _ref11$keepVideo === void 0 ? false : _ref11$keepVideo,\n _ref11$getStreamIfEmp = _ref11.getStreamIfEmpty,\n getStreamIfEmpty = _ref11$getStreamIfEmp === void 0 ? true : _ref11$getStreamIfEmp,\n _ref11$askVideo = _ref11.askVideo,\n askVideo = _ref11$askVideo === void 0 ? true : _ref11$askVideo;\n\n return stream || !getStreamIfEmpty ? room.publishLocal(stream, {\n keepAudio: keepAudio,\n keepVideo: keepVideo\n }) : wt.utils.getUserStream(askVideo).then(function (stream) {\n return room.publishLocal(stream);\n });\n },\n unpublishLocal: function unpublishLocal() {\n return room.unpublishLocal();\n },\n toggleAudio: function toggleAudio(value) {\n return room.toggleAudio(value);\n },\n toggleVideo: function toggleVideo() {\n return room.toggleVideo();\n },\n setBitrateCap: function setBitrateCap(bitrate) {\n if (isInstructor) {\n return;\n }\n\n return room.sendMessage(room.handleId, {\n \"body\": {\n \"request\": \"configure\",\n \"bitrate\": parseInt(bitrate)\n }\n }).catch(function () {\n return null;\n });\n },\n switchChannel: function switchChannel(channelId) {\n return room.sendMessage(room.handleId, {\n body: {\n request: \"sync_source_set\",\n room: room.roomId,\n timestamp: new Date().getTime(),\n wt_channel_id: channelId,\n fragment: \"0\",\n fragment_pos: 0\n }\n });\n },\n sendSystemMessage: function sendSystemMessage(action) {\n var value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var to = arguments.length > 2 ? arguments[2] : undefined;\n var set_master = arguments.length > 3 ? arguments[3] : undefined;\n return room.sendMessage(room.handleId, {\n body: _objectSpread(_objectSpread({\n action: action,\n request: \"message\",\n room: room.roomId,\n timestamp: new Date().getTime(),\n text: JSON.stringify(value)\n }, to && Array.isArray(to) ? {\n tos: to\n } : {\n to: to\n }), set_master && {\n set_master: set_master\n })\n });\n },\n sendChatMessage: function sendChatMessage(text, to) {\n return room.sendMessage(room.handleId, {\n body: _objectSpread({\n action: \"chat_message\",\n request: \"message\",\n room: room.roomId,\n timestamp: new Date().getTime(),\n text: text\n }, to && Array.isArray(to) ? {\n tos: to\n } : {\n to: to\n })\n });\n },\n __requestMuteStatus: function __requestMuteStatus() {\n this.sendSystemMessage('remote_muted_request');\n },\n __sendMuteStatus: function __sendMuteStatus() {\n this.sendSystemMessage('remote_muted', {\n type: 'video',\n value: room.isVideoMuted\n });\n this.sendSystemMessage('remote_muted', {\n type: 'audio',\n value: room.isAudioMuted\n });\n },\n $on: function $on(key, callback, that) {\n emitter.on(key, callback, that || _this4);\n room.on(key, callback, that || _this4);\n },\n $off: function $off(key, callback, that) {\n emitter.on(key, callback, that || _this4);\n room.on(key, callback, that || _this4);\n },\n $clear: function $clear() {\n room.clear();\n emitter.clear();\n }\n };\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (roomSession);\n\n//# sourceURL=webpack://WatchTogetherSDK/./src/models/room-session.js?");
|
|
9034
8310
|
|
|
9035
8311
|
/***/ }),
|
|
9036
8312
|
|
|
@@ -9078,7 +8354,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n\n\nfunction ownKeys(object,
|
|
|
9078
8354
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9079
8355
|
|
|
9080
8356
|
"use strict";
|
|
9081
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../modules/wt-utils */ \"./src/modules/wt-utils.js\");\n/* harmony import */ var serialize_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! serialize-error */ \"./node_modules/serialize-error/index.js\");\n/* harmony import */ var serialize_error__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(serialize_error__WEBPACK_IMPORTED_MODULE_1__);\n\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\nvar user = function user() {\n var _this = this;\n\n return {\n updateUserSelf: function updateUserSelf() {\n var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.user.updateMyself(_objectSpread({}, data.lastRoomId && {\n lastRoomId: data.lastRoomId\n }), {\n requestBody: _objectSpread({}, data)\n });\n });\n },\n updateUser: function updateUser() {\n var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.user.updateUser(_objectSpread({}, data), {\n requestBody: _objectSpread({}, data)\n });\n });\n },\n uploadAvatar: function uploadAvatar(file, lastRoomId) {\n var id = Object(_modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__[\"generateUUID\"])();\n return _this.__privates.auth.__client.then(function (client) {\n return Promise.all([client, client.apis.user.initiateMyAvatarUpload({\n id: id\n })]);\n }).then(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n client = _ref2[0],\n response = _ref2[1];\n\n return Promise.all([client, client.http({\n url: response.data.signedUrl,\n method: response.data.httpMethod,\n headers: {\n \"Content-Type\": file.type\n },\n body: file\n })]);\n }).then(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 2),\n client = _ref4[0],\n response = _ref4[1];\n\n return client.apis.user.publishMyAvatar({\n id: id,\n lastRoomId: lastRoomId\n });\n });\n },\n uploadReaction: function uploadReaction(files) {\n var id = Object(_modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__[\"generateUUID\"])();\n return _this.__privates.auth.__client.then(function (client) {\n return Promise.all([client, client.apis.reaction.initiateReactionUpload({\n id: id,\n segmentCount: files.length || 0\n })]);\n }).then(function (_ref5) {\n var _ref6 = _slicedToArray(_ref5, 2),\n client = _ref6[0],\n response = _ref6[1];\n\n return Promise.all([client].concat(_toConsumableArray(response.data.signedUrlSegments.map(function (url, index) {\n return client.http({\n url: url,\n method: response.data.httpMethod,\n headers: {\n \"Content-Type\": files[index].type\n },\n body: files[index]\n });\n }))));\n }).then(function (_ref7) {\n var _ref8 = _slicedToArray(_ref7, 1),\n client = _ref8[0];\n\n return client.apis.reaction.processReaction({\n id: id,\n type: 'concat'\n });\n }).then(function (response) {\n return response.data.key;\n });\n },\n uploadVideo: function uploadVideo(roomId, files) {\n var privateAttributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var id = Object(_modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__[\"generateUUID\"])();\n return _this.__privates.auth.__client.then(function (client) {\n return Promise.all([client, client.apis.video.initiateVideoUpload({\n id: id,\n segmentCount: files.length || 0\n })]);\n }).then(function (_ref9) {\n var _ref10 = _slicedToArray(_ref9, 2),\n client = _ref10[0],\n response = _ref10[1];\n\n return Promise.all([client, response.data.signedUrlSegments.reduce(function (acc, url, index) {\n return acc.then(function () {\n return client.http({\n url: url,\n method: response.data.httpMethod,\n headers: {\n \"Content-Type\": files[index].type\n },\n body: files[index]\n });\n });\n }, Promise.resolve())]);\n }).then(function (_ref11) {\n var _ref12 = _slicedToArray(_ref11, 1),\n client = _ref12[0];\n\n return client.apis.video.publishVideo({\n _id: id,\n roomId: roomId\n }, {\n requestBody: {\n _id: id,\n roomId: roomId,\n privateAttributes: privateAttributes\n }\n });\n });\n },\n getReactionById: function getReactionById(id) {\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.reaction.getReactionById({\n id: id\n });\n });\n },\n getReactions: function getReactions() {\n var _ref13 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n userId = _ref13.userId,\n roomId = _ref13.roomId,\n type = _ref13.type,\n size = _ref13.size,\n startKey = _ref13.startKey,\n _ref13$includeUserMod = _ref13.includeUserModels,\n includeUserModels = _ref13$includeUserMod === void 0 ? false : _ref13$includeUserMod;\n\n var apiParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, roomId && {\n roomId: roomId\n }), userId && {\n userId: userId\n }), size && {\n size: size\n }), startKey && {\n startKey: startKey\n }), {}, {\n includeUserModels: includeUserModels,\n type: type\n });\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.reaction.getReactions(apiParams);\n });\n },\n getVideoById: function getVideoById(id) {\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.video.getVideoById({\n id: id\n });\n });\n },\n getVideos: function getVideos() {\n var _ref14 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n roomId = _ref14.roomId,\n userId = _ref14.userId,\n type = _ref14.type,\n size = _ref14.size,\n startKey = _ref14.startKey,\n _ref14$includeUserMod = _ref14.includeUserModels,\n includeUserModels = _ref14$includeUserMod === void 0 ? false : _ref14$includeUserMod,\n includeRoomQueueStatus = _ref14.includeRoomQueueStatus;\n\n var apiParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, roomId && {\n roomId: roomId\n }), userId && {\n userId: userId\n }), size && {\n size: size\n }), startKey && {\n startKey: startKey\n }), includeRoomQueueStatus && {\n includeRoomQueueStatus: includeRoomQueueStatus\n }), {}, {\n includeUserModels: includeUserModels,\n type: type\n });\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.video.getVideos(apiParams);\n });\n },\n getUserSelf: function getUserSelf() {\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.user.getUserMyself();\n });\n },\n getUserById: function getUserById(id) {\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.user.getUserById({\n id: id\n });\n });\n },\n getUsersByIds: function getUsersByIds() {\n var _ref15 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref15$ids = _ref15.ids,\n ids = _ref15$ids === void 0 ? [] : _ref15$ids,\n _ref15$size = _ref15.size,\n size = _ref15$size === void 0 ? null : _ref15$size,\n _ref15$startKey = _ref15.startKey,\n startKey = _ref15$startKey === void 0 ? null : _ref15$startKey;\n\n var apiParams = _objectSpread(_objectSpread(_objectSpread({\n type: 'ids'\n }, size && {\n size: size\n }), ids && {\n ids: ids.join(',')\n }), startKey && {\n startKey: startKey\n });\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.user.getUsers(apiParams);\n });\n },\n getUsers: function getUsers() {\n var _ref16 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n type = _ref16.type,\n userId = _ref16.userId,\n roomId = _ref16.roomId,\n _ref16$size = _ref16.size,\n size = _ref16$size === void 0 ? 20 : _ref16$size,\n _ref16$startKey = _ref16.startKey,\n startKey = _ref16$startKey === void 0 ? null : _ref16$startKey;\n\n var apiParams = _objectSpread(_objectSpread(_objectSpread({\n type: type,\n size: size\n }, roomId && {\n roomId: roomId\n }), userId && {\n userId: userId\n }), startKey && {\n startKey: startKey\n });\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.user.getUsers(apiParams);\n });\n },\n //TODO: should have own model\n track: function track() {\n var _ref17 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref17$eventType = _ref17.eventType,\n eventType = _ref17$eventType === void 0 ? 'ERROR' : _ref17$eventType,\n message = _ref17.message;\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.wt.track({}, {\n requestBody: {\n \"eventType\": eventType,\n \"appType\": \"web\",\n \"deviceType\": \"desktop\".concat(navigator.maxTouchPoints ? '/touch' : ''),\n \"os\": navigator.platform,\n \"browser\": navigator.userAgent,\n \"domain\": location.host,\n \"url\": location.href,\n \"message\": Object(serialize_error__WEBPACK_IMPORTED_MODULE_1__[\"serializeError\"])(message)\n }\n });\n });\n },\n //TODO: new model\n getTranslation: function getTranslation() {\n var _ref18 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref18$namespace = _ref18.namespace,\n namespace = _ref18$namespace === void 0 ? 'wt' : _ref18$namespace;\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.system.getTranslation({\n namespace: namespace\n });\n });\n },\n //TODO: new model\n getConfig: function getConfig() {\n var _ref19 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref19$instanceType = _ref19.instanceType,\n instanceType = _ref19$instanceType === void 0 ? _this.__instanceType : _ref19$instanceType,\n _ref19$domain = _ref19.domain,\n domain = _ref19$domain === void 0 ? location.hostname : _ref19$domain;\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.system.getConfig({\n instanceType: instanceType,\n domain: domain\n });\n });\n },\n //TODO: new model\n getIntegrationPublic: function getIntegrationPublic(type) {\n var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.system.integrationPublic({\n type: type\n }, {\n requestBody: _objectSpread({}, data)\n });\n });\n },\n updateConfig: function updateConfig() {\n var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.wt.updateConfig({\n id: data.instanceType || _this.__instanceType\n }, {\n requestBody: _objectSpread({}, data)\n });\n });\n },\n admin: function admin() {\n var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.wt.admin({}, {\n requestBody: _objectSpread({\n instanceType: _this.__instanceType\n }, data)\n });\n });\n },\n analytics: function analytics() {\n var _ref20 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n action = _ref20.action,\n _ref20$startKey = _ref20.startKey,\n startKey = _ref20$startKey === void 0 ? null : _ref20$startKey,\n _ref20$limit = _ref20.limit,\n limit = _ref20$limit === void 0 ? 20 : _ref20$limit;\n\n var apiParams = _objectSpread({\n action: action,\n limit: limit\n }, startKey && {\n startKey: startKey\n });\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.wt.analytics({}, {\n requestBody: _objectSpread({\n instanceType: _this.__instanceType\n }, apiParams)\n });\n });\n }\n };\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (user);\n\n//# sourceURL=webpack://WatchTogetherSDK/./src/models/user.js?");
|
|
8357
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../modules/wt-utils */ \"./src/modules/wt-utils.js\");\n/* harmony import */ var serialize_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! serialize-error */ \"./node_modules/serialize-error/index.js\");\n\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\n\nvar user = function user() {\n var _this = this;\n\n return {\n updateUserSelf: function updateUserSelf() {\n var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.user.updateMyself(_objectSpread({}, data.lastRoomId && {\n lastRoomId: data.lastRoomId\n }), {\n requestBody: _objectSpread({}, data)\n });\n });\n },\n updateUser: function updateUser() {\n var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.user.updateUser(_objectSpread({}, data), {\n requestBody: _objectSpread({}, data)\n });\n });\n },\n uploadAvatar: function uploadAvatar(file, lastRoomId) {\n var id = Object(_modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__[\"generateUUID\"])();\n return _this.__privates.auth.__client.then(function (client) {\n return Promise.all([client, client.apis.user.initiateMyAvatarUpload({\n id: id\n })]);\n }).then(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n client = _ref2[0],\n response = _ref2[1];\n\n return Promise.all([client, client.http({\n url: response.data.signedUrl,\n method: response.data.httpMethod,\n headers: {\n \"Content-Type\": file.type\n },\n body: file\n })]);\n }).then(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 2),\n client = _ref4[0],\n response = _ref4[1];\n\n return client.apis.user.publishMyAvatar({\n id: id,\n lastRoomId: lastRoomId\n });\n });\n },\n uploadReaction: function uploadReaction(files) {\n var id = Object(_modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__[\"generateUUID\"])();\n return _this.__privates.auth.__client.then(function (client) {\n return Promise.all([client, client.apis.reaction.initiateReactionUpload({\n id: id,\n segmentCount: files.length || 0\n })]);\n }).then(function (_ref5) {\n var _ref6 = _slicedToArray(_ref5, 2),\n client = _ref6[0],\n response = _ref6[1];\n\n return Promise.all([client].concat(_toConsumableArray(response.data.signedUrlSegments.map(function (url, index) {\n return client.http({\n url: url,\n method: response.data.httpMethod,\n headers: {\n \"Content-Type\": files[index].type\n },\n body: files[index]\n });\n }))));\n }).then(function (_ref7) {\n var _ref8 = _slicedToArray(_ref7, 1),\n client = _ref8[0];\n\n return client.apis.reaction.processReaction({\n id: id,\n type: 'concat'\n });\n }).then(function (response) {\n return response.data.key;\n });\n },\n uploadVideo: function uploadVideo(roomId, files) {\n var privateAttributes = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var id = Object(_modules_wt_utils__WEBPACK_IMPORTED_MODULE_0__[\"generateUUID\"])();\n return _this.__privates.auth.__client.then(function (client) {\n return Promise.all([client, client.apis.video.initiateVideoUpload({\n id: id,\n segmentCount: files.length || 0\n })]);\n }).then(function (_ref9) {\n var _ref10 = _slicedToArray(_ref9, 2),\n client = _ref10[0],\n response = _ref10[1];\n\n return Promise.all([client, response.data.signedUrlSegments.reduce(function (acc, url, index) {\n return acc.then(function () {\n return client.http({\n url: url,\n method: response.data.httpMethod,\n headers: {\n \"Content-Type\": files[index].type\n },\n body: files[index]\n });\n });\n }, Promise.resolve())]);\n }).then(function (_ref11) {\n var _ref12 = _slicedToArray(_ref11, 1),\n client = _ref12[0];\n\n return client.apis.video.publishVideo({\n _id: id,\n roomId: roomId\n }, {\n requestBody: {\n _id: id,\n roomId: roomId,\n privateAttributes: privateAttributes\n }\n });\n });\n },\n getReactionById: function getReactionById(id) {\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.reaction.getReactionById({\n id: id\n });\n });\n },\n getReactions: function getReactions() {\n var _ref13 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n userId = _ref13.userId,\n roomId = _ref13.roomId,\n type = _ref13.type,\n size = _ref13.size,\n startKey = _ref13.startKey,\n _ref13$includeUserMod = _ref13.includeUserModels,\n includeUserModels = _ref13$includeUserMod === void 0 ? false : _ref13$includeUserMod;\n\n var apiParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, roomId && {\n roomId: roomId\n }), userId && {\n userId: userId\n }), size && {\n size: size\n }), startKey && {\n startKey: startKey\n }), {}, {\n includeUserModels: includeUserModels,\n type: type\n });\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.reaction.getReactions(apiParams);\n });\n },\n getVideoById: function getVideoById(id) {\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.video.getVideoById({\n id: id\n });\n });\n },\n getVideos: function getVideos() {\n var _ref14 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n roomId = _ref14.roomId,\n userId = _ref14.userId,\n type = _ref14.type,\n size = _ref14.size,\n startKey = _ref14.startKey,\n _ref14$includeUserMod = _ref14.includeUserModels,\n includeUserModels = _ref14$includeUserMod === void 0 ? false : _ref14$includeUserMod,\n includeRoomQueueStatus = _ref14.includeRoomQueueStatus;\n\n var apiParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, roomId && {\n roomId: roomId\n }), userId && {\n userId: userId\n }), size && {\n size: size\n }), startKey && {\n startKey: startKey\n }), includeRoomQueueStatus && {\n includeRoomQueueStatus: includeRoomQueueStatus\n }), {}, {\n includeUserModels: includeUserModels,\n type: type\n });\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.video.getVideos(apiParams);\n });\n },\n getUserSelf: function getUserSelf() {\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.user.getUserMyself();\n });\n },\n getUserById: function getUserById(id) {\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.user.getUserById({\n id: id\n });\n });\n },\n getUsersByIds: function getUsersByIds() {\n var _ref15 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref15$ids = _ref15.ids,\n ids = _ref15$ids === void 0 ? [] : _ref15$ids,\n _ref15$size = _ref15.size,\n size = _ref15$size === void 0 ? null : _ref15$size,\n _ref15$startKey = _ref15.startKey,\n startKey = _ref15$startKey === void 0 ? null : _ref15$startKey;\n\n var apiParams = _objectSpread(_objectSpread(_objectSpread({\n type: 'ids'\n }, size && {\n size: size\n }), ids && {\n ids: ids.join(',')\n }), startKey && {\n startKey: startKey\n });\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.user.getUsers(apiParams);\n });\n },\n getUsers: function getUsers() {\n var _ref16 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n type = _ref16.type,\n userId = _ref16.userId,\n roomId = _ref16.roomId,\n _ref16$size = _ref16.size,\n size = _ref16$size === void 0 ? 20 : _ref16$size,\n _ref16$startKey = _ref16.startKey,\n startKey = _ref16$startKey === void 0 ? null : _ref16$startKey;\n\n var apiParams = _objectSpread(_objectSpread(_objectSpread({\n type: type,\n size: size\n }, roomId && {\n roomId: roomId\n }), userId && {\n userId: userId\n }), startKey && {\n startKey: startKey\n });\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.user.getUsers(apiParams);\n });\n },\n //TODO: should have own model\n track: function track() {\n var _ref17 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref17$eventType = _ref17.eventType,\n eventType = _ref17$eventType === void 0 ? 'ERROR' : _ref17$eventType,\n message = _ref17.message;\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.wt.track({}, {\n requestBody: {\n \"eventType\": eventType,\n \"appType\": \"web\",\n \"deviceType\": \"desktop\".concat(navigator.maxTouchPoints ? '/touch' : ''),\n \"os\": navigator.platform,\n \"browser\": navigator.userAgent,\n \"domain\": location.host,\n \"url\": location.href,\n \"message\": Object(serialize_error__WEBPACK_IMPORTED_MODULE_1__[\"serializeError\"])(message)\n }\n });\n });\n },\n //TODO: new model\n getTranslation: function getTranslation() {\n var _ref18 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref18$namespace = _ref18.namespace,\n namespace = _ref18$namespace === void 0 ? 'wt' : _ref18$namespace;\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.system.getTranslation({\n namespace: namespace\n });\n });\n },\n //TODO: new model\n getConfig: function getConfig() {\n var _ref19 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref19$instanceType = _ref19.instanceType,\n instanceType = _ref19$instanceType === void 0 ? _this.__instanceType : _ref19$instanceType,\n _ref19$domain = _ref19.domain,\n domain = _ref19$domain === void 0 ? location.hostname : _ref19$domain;\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.system.getConfig({\n instanceType: instanceType,\n domain: domain\n });\n });\n },\n //TODO: new model\n getIntegrationPublic: function getIntegrationPublic(type) {\n var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.system.integrationPublic({\n type: type\n }, {\n requestBody: _objectSpread({}, data)\n });\n });\n },\n updateConfig: function updateConfig() {\n var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.wt.updateConfig({\n id: data.instanceType || _this.__instanceType\n }, {\n requestBody: _objectSpread({}, data)\n });\n });\n },\n admin: function admin() {\n var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.wt.admin({}, {\n requestBody: _objectSpread({\n instanceType: _this.__instanceType\n }, data)\n });\n });\n },\n analytics: function analytics() {\n var _ref20 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n action = _ref20.action,\n _ref20$startKey = _ref20.startKey,\n startKey = _ref20$startKey === void 0 ? null : _ref20$startKey,\n _ref20$limit = _ref20.limit,\n limit = _ref20$limit === void 0 ? 20 : _ref20$limit;\n\n var apiParams = _objectSpread({\n action: action,\n limit: limit\n }, startKey && {\n startKey: startKey\n });\n\n return _this.__privates.auth.__client.then(function (client) {\n return client.apis.wt.analytics({}, {\n requestBody: _objectSpread({\n instanceType: _this.__instanceType\n }, apiParams)\n });\n });\n }\n };\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (user);\n\n//# sourceURL=webpack://WatchTogetherSDK/./src/models/user.js?");
|
|
9082
8358
|
|
|
9083
8359
|
/***/ }),
|
|
9084
8360
|
|
|
@@ -9294,7 +8570,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var aws_
|
|
|
9294
8570
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9295
8571
|
|
|
9296
8572
|
"use strict";
|
|
9297
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! webrtc-adapter */ \"./node_modules/webrtc-adapter/src/js/adapter_core.js\");\n/* harmony import */ var _wt_emitter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./wt-emitter */ \"./src/modules/wt-emitter.js\");\n/* harmony import */ var _wt_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./wt-utils */ \"./src/modules/wt-utils.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n// Watch together janus webrtc library\n\n\n\n\nvar Room = /*#__PURE__*/function () {\n function Room(debug) {\n var _this = this;\n\n _classCallCheck(this, Room);\n\n this.debug = debug;\n this.sessions = [];\n this.safariVp8 = false;\n this.browser = webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser;\n this.browserDetails = webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails;\n this.isWebrtcSupported = Room.isWebrtcSupported();\n this.safariVp8TestPromise = Room.testSafariVp8();\n this.safariVp8 = null;\n this.safariVp8TestPromise.then(function (safariVp8) {\n _this.safariVp8 = safariVp8;\n }); // Let's get it started\n\n this.whenInitialized = this.initialize();\n }\n\n _createClass(Room, [{\n key: \"initialize\",\n value: function initialize() {\n var _this2 = this;\n\n return this.safariVp8TestPromise.then(function () {\n return _this2;\n });\n }\n }, {\n key: \"createSession\",\n value: function createSession() {\n var constructId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'reactooroom';\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n return new RoomSession(constructId, type, this.debug, options);\n }\n }], [{\n key: \"testSafariVp8\",\n value: function testSafariVp8() {\n return new Promise(function (resolve) {\n if (webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === 'safari' && webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.version >= 605) {\n if (RTCRtpSender && RTCRtpSender.getCapabilities && RTCRtpSender.getCapabilities(\"video\") && RTCRtpSender.getCapabilities(\"video\").codecs && RTCRtpSender.getCapabilities(\"video\").codecs.length) {\n var isVp8 = false;\n\n for (var i in RTCRtpSender.getCapabilities(\"video\").codecs) {\n var codec = RTCRtpSender.getCapabilities(\"video\").codecs[i];\n\n if (codec && codec.mimeType && codec.mimeType.toLowerCase() === \"video/vp8\") {\n isVp8 = true;\n break;\n }\n }\n\n resolve(isVp8);\n } else {\n // We do it in a very ugly way, as there's no alternative...\n // We create a PeerConnection to see if VP8 is in an offer\n var testpc = new RTCPeerConnection({}, {});\n testpc.createOffer({\n offerToReceiveVideo: true\n }).then(function (offer) {\n var result = offer.sdp.indexOf(\"VP8\") !== -1;\n testpc.close();\n testpc = null;\n resolve(result);\n });\n }\n } else resolve(false);\n });\n }\n }, {\n key: \"isWebrtcSupported\",\n value: function isWebrtcSupported() {\n return window.RTCPeerConnection !== undefined && window.RTCPeerConnection !== null && navigator.mediaDevices !== undefined && navigator.mediaDevices !== null && navigator.mediaDevices.getUserMedia !== undefined && navigator.mediaDevices.getUserMedia !== null;\n }\n }]);\n\n return Room;\n}();\n\nvar RoomSession = /*#__PURE__*/function () {\n function RoomSession() {\n var constructId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'reactooroom';\n var debug = arguments.length > 2 ? arguments[2] : undefined;\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n _classCallCheck(this, RoomSession);\n\n this.server = null;\n this.iceServers = null;\n this.token = null;\n this.roomId = null;\n this.streamId = null;\n this.pin = null;\n this.userId = null;\n this.sessiontype = type;\n this.initialBitrate = 0;\n this.isMonitor = false; // currently used just for classroom context so monitor user only subscribes to participants and not trainer (for other monitor this flag is not necessary)\n\n this.recordingFilename = null;\n this.pluginName = RoomSession.sessionTypes()[type];\n this.options = _objectSpread(_objectSpread({}, {\n debug: debug,\n classroomObserverSubscribeToInstructor: false,\n classroomInstructorSubscribeToParticipants: false,\n safariBugHotfixEnabled: webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === 'safari' && webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.version < 605\n }), {}, {\n options: options\n });\n Object.assign(this, Object(_wt_emitter__WEBPACK_IMPORTED_MODULE_1__[\"default\"])());\n this.id = null;\n this.privateId = null;\n this.constructId = constructId || RoomSession.randomString(16);\n this.sessionId = null;\n this.handleId = null;\n this.ws = null;\n this.isRestarting = false; // double click prevention\n\n this.connectingPromise = null;\n this.disconnectingPromise = null;\n this._ipv6Support = false;\n this._retries = 0;\n this._maxRetries = 3;\n this._keepAliveId = null;\n this._participants = [];\n this._observerIds = [];\n this._talkbackIds = [];\n this._instuctorId = null;\n this._hasJoined = false;\n this._isStreaming = false;\n this._isPublished = false;\n this._isDataChannelOpen = false;\n this.isAudioMuted = false;\n this.isVideoMuted = false;\n this.isVideoEnabled = false;\n this.isAudioEnabed = false;\n this.isUnifiedPlan = RoomSession.checkUnifiedPlan();\n this._log = RoomSession.noop;\n\n if (this.options.debug) {\n this._enableDebug();\n }\n } // Check if this browser supports Unified Plan and transceivers\n // Based on https://codepen.io/anon/pen/ZqLwWV?editors=0010\n\n\n _createClass(RoomSession, [{\n key: \"sendMessage\",\n value: function sendMessage(handleId) {\n var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n body: 'Example Body'\n };\n var dontWait = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var dontResolveOnAck = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n return this._send(_objectSpread({\n \"janus\": \"message\",\n \"handle_id\": handleId\n }, message), dontWait, dontResolveOnAck).then(function (json) {\n if (json && json[\"janus\"] === \"success\") {\n var plugindata = json[\"plugindata\"] || {};\n var data = plugindata[\"data\"];\n return Promise.resolve(data);\n }\n\n return Promise.resolve();\n }).catch(function (json) {\n if (json && json[\"error\"]) {\n return Promise.reject({\n type: 'warning',\n id: 1,\n message: 'sendMessage failed',\n data: json[\"error\"]\n });\n } else {\n return Promise.reject({\n type: 'warning',\n id: 1,\n message: 'sendMessage failed',\n data: json\n });\n }\n });\n }\n }, {\n key: \"_send\",\n value: function _send() {\n var _this3 = this;\n\n var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var ignoreResponse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var dontResolveOnAck = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var transaction = RoomSession.randomString(12);\n\n var requestData = _objectSpread(_objectSpread({}, request), {}, {\n transaction: transaction,\n token: this.token\n }, this.sessionId && {\n 'session_id': this.sessionId\n } || {});\n\n var timeouId = null;\n return new Promise(function (resolve, reject) {\n var parseResponse = function parseResponse(event) {\n var json = JSON.parse(event.data);\n var r_transaction = json['transaction'];\n\n if (r_transaction === transaction && (!dontResolveOnAck || json['janus'] !== 'ack')) {\n clearTimeout(timeouId);\n\n _this3.ws.removeEventListener('message', parseResponse);\n\n if (json['janus'] === 'error') {\n var _json$error;\n\n if ((json === null || json === void 0 ? void 0 : (_json$error = json.error) === null || _json$error === void 0 ? void 0 : _json$error.code) == 403) {\n _this3.disconnect(true);\n }\n\n reject({\n type: 'error',\n id: 2,\n message: 'send failed',\n data: json,\n requestData: requestData\n });\n } else {\n resolve(json);\n }\n }\n };\n\n if (ignoreResponse) {\n if (_this3.ws && _this3.ws.readyState === 1) {\n _this3.ws.send(JSON.stringify(requestData));\n }\n\n resolve();\n } else {\n if (_this3.ws && _this3.ws.readyState === 1) {\n _this3.ws.addEventListener('message', parseResponse);\n\n timeouId = setTimeout(function () {\n _this3.ws.removeEventListener('message', parseResponse);\n\n reject({\n type: 'error',\n id: 3,\n message: 'send timeout',\n data: requestData\n });\n }, 10000);\n\n _this3.ws.send(JSON.stringify(requestData));\n } else {\n reject({\n type: 'warning',\n id: 29,\n message: 'No connection to WebSockets',\n data: requestData\n });\n }\n }\n });\n }\n }, {\n key: \"_connectionClosed\",\n value: function _connectionClosed() {\n var _this4 = this;\n\n if (this.disconnectingPromise || this.connectingPromise) {\n return;\n }\n\n if (this._retries < this._maxRetries) {\n setTimeout(function () {\n _this4._retries++;\n\n _this4._reconnect().catch(function (e) {\n _this4.emit('error', e);\n });\n }, 3000 * this._retries);\n } else {\n if (this.sessiontype === 'reactooroom') {\n this.disconnect(true);\n } else if (this.sessiontype === 'streaming') {\n this.stopStream();\n }\n\n this.emit('error', {\n type: 'error',\n id: 4,\n message: 'lost connection to WebSockets',\n data: null\n });\n }\n }\n }, {\n key: \"_wipeListeners\",\n value: function _wipeListeners() {\n if (this.ws) {\n this.ws.removeEventListener('close', this.__connectionClosedBoundFn);\n this.ws.removeEventListener('message', this.__handleWsEventsBoundFn);\n }\n }\n }, {\n key: \"_startKeepAlive\",\n value: function _startKeepAlive() {\n var _this5 = this;\n\n this._send({\n \"janus\": \"keepalive\"\n }).then(function (json) {\n if (json[\"janus\"] !== 'ack') {\n _this5.emit('error', {\n type: 'warning',\n id: 5,\n message: 'keepalive response suspicious',\n data: json[\"janus\"]\n });\n }\n }).catch(function (e) {\n _this5.emit('error', {\n type: 'warning',\n id: 6,\n message: 'keepalive dead',\n data: e\n });\n\n _this5._connectionClosed();\n });\n\n this._keepAliveId = setTimeout(function () {\n _this5._startKeepAlive();\n }, 30000);\n }\n }, {\n key: \"_stopKeepAlive\",\n value: function _stopKeepAlive() {\n clearTimeout(this._keepAliveId);\n }\n }, {\n key: \"_handleWsEvents\",\n value: function _handleWsEvents(event) {\n var _this6 = this;\n\n var json = JSON.parse(event.data);\n var sender = json[\"sender\"];\n var type = json[\"janus\"];\n\n var handle = this._getHandle(sender);\n\n if (!handle) {\n return;\n }\n\n if (type === \"trickle\") {\n var candidate = json[\"candidate\"];\n var config = handle.webrtcStuff;\n\n if (config.pc && config.remoteSdp) {\n if (!candidate || candidate.completed === true) {\n config.pc.addIceCandidate(null);\n } else {\n config.pc.addIceCandidate(candidate);\n }\n } else {\n if (!config.candidates) {\n config.candidates = [];\n }\n\n config.candidates.push(candidate);\n }\n } else if (type === \"webrtcup\") {//none universal\n } else if (type === \"hangup\") {\n this._log('hangup on', handle.handleId);\n\n this._removeParticipant(handle.handleId, null, false);\n } else if (type === \"detached\") {\n this._log('detached on', handle.handleId);\n\n this._removeParticipant(handle.handleId, null, true);\n } else if (type === \"media\") {\n this._log('Media event:', handle.handleId, json[\"type\"], json[\"receiving\"]);\n } else if (type === \"slowlink\") {\n this._log('Slowlink', handle.handleId, json[\"uplink\"], json[\"nacks\"]);\n } else if (type === \"event\") {//none universal\n } else if (type === 'timeout') {\n this.ws.close(3504, \"Gateway timeout\");\n } else if (type === 'success' || type === 'error') {// we're capturing those elsewhere\n } else {\n this._log(\"Unknown event: \".concat(type, \" on session: \").concat(this.sessionId));\n } // LOCAL\n\n\n if (sender === this.handleId) {\n if (type === \"event\") {\n var plugindata = json[\"plugindata\"] || {};\n var msg = plugindata[\"data\"] || {};\n var jsep = json[\"jsep\"];\n var result = msg[\"result\"] || null;\n\n var _event = msg[\"videoroom\"] || null;\n\n var list = msg[\"publishers\"] || {};\n var leaving = msg[\"leaving\"]; //let joining = msg[\"joining\"];\n\n var unpublished = msg[\"unpublished\"];\n var error = msg[\"error\"];\n var allowedObservers = this._observerIds || [];\n var allowedTalkback = this._talkbackIds || [];\n var allowedInstructor = this._instuctorId || null;\n\n if (_event === \"joined\") {\n this.id = msg[\"id\"];\n this.privateId = msg[\"private_id\"];\n this._hasJoined = true;\n this.emit('joined', true);\n\n this._log('We have successfully joined Room');\n\n var _loop = function _loop(f) {\n var userId = list[f][\"display\"];\n var streams = list[f][\"streams\"] || [];\n var id = list[f][\"id\"];\n\n for (var i in streams) {\n streams[i][\"id\"] = id;\n streams[i][\"display\"] = userId;\n }\n\n _this6._log('Remote userId: ', userId);\n\n var isClassroom = allowedInstructor !== null;\n var subscribeCondition = void 0;\n var subCondition = false;\n\n if (!isClassroom) {\n subscribeCondition = allowedObservers.indexOf(userId) === -1 && allowedTalkback.indexOf(_this6.userId) === -1;\n } else {\n // instructor -> everyone but observer\n if (_this6.options.classroomInstructorSubscribeToParticipants) {\n subCondition = _this6.userId === allowedInstructor && allowedObservers.indexOf(userId) === -1;\n }\n\n if (_this6.options.classroomObserverSubscribeToInstructor) {\n /*\n \t\t\tmonitor/talkback -> all but talkback\n \tobserver -> all but talkback\n \tinstructor -> no one\n \tparticipant -> only instructor, observer and talkback\n \t\n \t1st line -> Im not monitor/talkback and im not observer and im not instructor and user to subscribe is instructor or observer or talkback\n \t2nd line -> Im monitor/talkback and im not instructor and user connecting is not talkback\n \t3rd line -> Im observer and im not instructor and user connecting is not talkback\n \t\n */\n subscribeCondition = subCondition || !_this6.isMonitor && allowedObservers.indexOf(_this6.userId) === -1 && _this6.userId !== allowedInstructor && (userId === allowedInstructor || allowedObservers.indexOf(userId) > -1 || allowedTalkback.indexOf(userId) > -1) || _this6.isMonitor && _this6.userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1 || allowedObservers.indexOf(_this6.userId) > -1 && _this6.userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1;\n } else {\n /*\n \t\t\t\t\t\tmonitor/talkback -> all but talkback\n \tobserver -> all but instructor and talkback\n \tinstructor -> no one\n \tparticipant -> only instructor, observer and talkback\n \t\n \t1st line -> Im not monitor/talkback and im not observer and im not instructor and user to subscribe is instructor or observer or talkback\n \t2nd line -> Im monitor/talkback and im not instructor and user connecting is not talkback\n \t3rd line -> Im observer and im not instructor and user connecting is not instructor and its not talkback\n \t\n */\n subscribeCondition = subCondition || !_this6.isMonitor && allowedObservers.indexOf(_this6.userId) === -1 && _this6.userId !== allowedInstructor && (userId === allowedInstructor || allowedObservers.indexOf(userId) > -1 || allowedTalkback.indexOf(userId) > -1) || _this6.isMonitor && _this6.userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1 || allowedObservers.indexOf(_this6.userId) > -1 && _this6.userId !== allowedInstructor && userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1;\n }\n }\n\n if (subscribeCondition) {\n _this6._log('Creating user: ', userId);\n\n _this6._createParticipant(userId, id).then(function (handle) {\n return _this6.sendMessage(handle.handleId, {\n body: {\n \"request\": \"join\",\n \"room\": _this6.roomId,\n \"ptype\": \"subscriber\",\n \"feed\": id,\n \"private_id\": _this6.privateId,\n pin: _this6.pin\n }\n });\n }).catch(function (err) {\n _this6.emit('error', err);\n });\n }\n };\n\n for (var f in list) {\n _loop(f);\n }\n } else if (_event === \"event\") {\n if (msg[\"streams\"] !== undefined && msg[\"streams\"] !== null) {\n this._log('Got my own streams back', msg[\"streams\"]);\n }\n\n var _loop2 = function _loop2(_f) {\n var userId = list[_f][\"display\"];\n var streams = list[_f][\"streams\"] || [];\n var id = list[_f][\"id\"];\n\n for (var i in streams) {\n streams[i][\"id\"] = id;\n streams[i][\"display\"] = userId;\n }\n\n _this6._log('Remote userId: ', userId);\n\n var isClassroom = allowedInstructor !== null;\n var subscribeCondition = void 0;\n var subCondition = false;\n\n if (!isClassroom) {\n subscribeCondition = allowedObservers.indexOf(userId) === -1 && allowedTalkback.indexOf(_this6.userId) === -1;\n } else {\n // instructor -> everyone but observer\n if (_this6.options.classroomInstructorSubscribeToParticipants) {\n subCondition = _this6.userId === allowedInstructor && allowedObservers.indexOf(userId) === -1;\n }\n\n if (_this6.options.classroomObserverSubscribeToInstructor) {\n /*\n \t\t\tmonitor/talkback -> all but talkback\n \tobserver -> all but talkback\n \tinstructor -> no one\n \tparticipant -> only instructor, observer and talkback\n \t\n \t1st line -> Im not monitor/talkback and im not observer and im not instructor and user to subscribe is instructor or observer or talkback\n \t2nd line -> Im monitor/talkback and im not instructor and user connecting is not talkback\n \t3rd line -> Im observer and im not instructor and user connecting is not talkback\n \t\n */\n subscribeCondition = subCondition || !_this6.isMonitor && allowedObservers.indexOf(_this6.userId) === -1 && _this6.userId !== allowedInstructor && (userId === allowedInstructor || allowedObservers.indexOf(userId) > -1 || allowedTalkback.indexOf(userId) > -1) || _this6.isMonitor && _this6.userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1 || allowedObservers.indexOf(_this6.userId) > -1 && _this6.userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1;\n } else {\n /*\n \t\t\t\t\t\tmonitor/talkback -> all but talkback\n \tobserver -> all but instructor and talkback\n \tinstructor -> no one\n \tparticipant -> only instructor, observer and talkback\n \t\n \t1st line -> Im not monitor/talkback and im not observer and im not instructor and user to subscribe is instructor or observer or talkback\n \t2nd line -> Im monitor/talkback and im not instructor and user connecting is not talkback\n \t3rd line -> Im observer and im not instructor and user connecting is not instructor and its not talkback\n \t\n */\n subscribeCondition = subCondition || !_this6.isMonitor && allowedObservers.indexOf(_this6.userId) === -1 && _this6.userId !== allowedInstructor && (userId === allowedInstructor || allowedObservers.indexOf(userId) > -1 || allowedTalkback.indexOf(userId) > -1) || _this6.isMonitor && _this6.userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1 || allowedObservers.indexOf(_this6.userId) > -1 && _this6.userId !== allowedInstructor && userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1;\n }\n }\n\n if (subscribeCondition) {\n _this6._log('Creating user: ', userId);\n\n _this6._createParticipant(userId, id).then(function (handle) {\n return _this6.sendMessage(handle.handleId, {\n body: {\n \"request\": \"join\",\n \"room\": _this6.roomId,\n \"ptype\": \"subscriber\",\n \"feed\": id,\n \"private_id\": _this6.privateId,\n pin: _this6.pin\n }\n });\n }).catch(function (err) {\n _this6.emit('error', err);\n });\n }\n };\n\n for (var _f in list) {\n _loop2(_f);\n }\n\n if (leaving === 'ok') {\n this._log('leaving', this.handleId, 'this is us');\n\n this._removeParticipant(this.handleId);\n\n if (msg['reason'] === 'kicked') {\n this.emit('kicked');\n this.disconnect().catch(function () {});\n }\n } else if (leaving) {\n this._log('leaving', leaving);\n\n this._removeParticipant(null, leaving);\n }\n\n if (unpublished === 'ok') {\n this._log('unpublished', this.handleId, 'this is us');\n\n this._removeParticipant(this.handleId, null, false); // we do just hangup\n\n } else if (unpublished) {\n this._log('unpublished', unpublished);\n\n this._removeParticipant(null, unpublished, true); // we do hangup and detach\n\n }\n\n if (error) {\n this.emit('error', {\n type: 'error',\n id: 7,\n message: 'local participant error',\n data: [sender, msg]\n });\n }\n } // Streaming related\n else if (result && result[\"status\"]) {\n this.emit('streamingStatus', result[\"status\"]);\n\n if (result[\"status\"] === 'stopped') {\n this.stopStream();\n }\n\n if (result[\"status\"] === 'started') {\n this.emit('streaming', true);\n this._isStreaming = true;\n }\n }\n\n if (jsep !== undefined && jsep !== null) {\n if (this.sessiontype === 'reactooroom') {\n this._webrtcPeer(this.handleId, jsep).catch(function (err) {\n _this6.emit('error', err);\n });\n } else if (this.sessiontype === 'streaming') {\n this._publishRemote(this.handleId, jsep).catch(function (err) {\n _this6.emit('error', err);\n });\n }\n }\n } else if (type === \"webrtcup\") {\n this._log('Configuring bitrate: ' + this.initialBitrate);\n\n if (this.initialBitrate > 0) {\n this.sendMessage(this.handleId, {\n \"body\": {\n \"request\": \"configure\",\n \"bitrate\": this.initialBitrate\n }\n }).catch(function () {\n return null;\n });\n }\n }\n } //REMOTE\n else {\n var _plugindata = json[\"plugindata\"] || {};\n\n var _msg = _plugindata[\"data\"] || {};\n\n var _jsep2 = json[\"jsep\"];\n var _event2 = _msg[\"videoroom\"];\n var _error = _msg[\"error\"];\n\n if (_event2 === \"attached\") {\n this._log('Remote have successfully joined Room', _msg);\n\n var _allowedTalkback = this._talkbackIds || [];\n\n var _allowedObservers = this._observerIds || [];\n\n var eventName = 'addRemoteParticipant';\n\n if (_allowedTalkback.indexOf(handle.userId) > -1) {\n eventName = 'addRemoteTalkback';\n }\n\n if (_allowedObservers.indexOf(handle.userId) > -1) {\n eventName = 'addRemoteObserver';\n }\n\n this.emit(eventName, {\n tid: Object(_wt_utils__WEBPACK_IMPORTED_MODULE_2__[\"generateUUID\"])(),\n id: handle.handleId,\n userId: handle.userId,\n stream: null,\n track: null,\n adding: false,\n constructId: this.constructId,\n hasAudioTrack: false,\n hasVideoTrack: false\n });\n }\n\n if (_error) {\n this.emit('error', {\n type: 'warning',\n id: 8,\n message: 'remote participant error',\n data: [sender, _msg]\n });\n }\n\n if (_jsep2) {\n this._publishRemote(handle.handleId, _jsep2).catch(function (err) {\n _this6.emit('error', err);\n });\n }\n }\n }\n }, {\n key: \"_handleDataEvents\",\n value: function _handleDataEvents(handleId, type, data) {\n var handle = this._getHandle(handleId);\n\n if (type === 'state') {\n this._log(\" - Data channel status - \", \"UID: \".concat(handleId), \"STATUS: \".concat(data), \"ME: \".concat(handleId === this.handleId));\n\n if (handle) {\n var config = handle.webrtcStuff;\n config.dataChannelOpen = data === 'open';\n }\n\n if (handleId === this.handleId) {\n this._isDataChannelOpen = data === 'open';\n this.emit('dataChannel', data === 'open');\n }\n }\n\n if (type === 'error') {\n this.emit('error', {\n type: 'warning',\n id: 9,\n message: 'data event warning',\n data: [handleId, data]\n });\n\n if (handle) {\n var _config = handle.webrtcStuff;\n _config.dataChannelOpen = false;\n }\n\n if (handleId === this.handleId) {\n this._isDataChannelOpen = false;\n this.emit('dataChannel', false);\n }\n }\n\n if (handleId === this.handleId && type === 'message') {\n var d = null;\n\n try {\n d = JSON.parse(data);\n } catch (e) {\n this.emit('error', {\n type: 'warning',\n id: 10,\n message: 'data message parse error',\n data: [handleId, e]\n });\n return;\n }\n\n this.emit('data', d);\n }\n } //removeHandle === true -> hangup, detach, removeHandle === false -> hangup\n\n }, {\n key: \"_removeParticipant\",\n value: function _removeParticipant(handleId, rfid) {\n var _this7 = this;\n\n var removeHandle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n var handle = this._getHandle(handleId, rfid);\n\n if (!handle) {\n return Promise.resolve();\n } else {\n handleId = handle.handleId;\n }\n\n return this._send({\n \"janus\": \"hangup\",\n \"handle_id\": handleId\n }, true).then(function () {\n return removeHandle ? _this7._send({\n \"janus\": \"detach\",\n \"handle_id\": handleId\n }, true) : Promise.resolve();\n }).finally(function () {\n try {\n if (handle.webrtcStuff.stream && !_this7.isRestarting) {\n handle.webrtcStuff.stream.getTracks().forEach(function (track) {\n return track.stop();\n });\n }\n } catch (e) {// Do nothing\n }\n\n handle.webrtcStuff.stream = null;\n\n if (handle.webrtcStuff.dataChannel) {\n handle.webrtcStuff.dataChannel.onmessage = null;\n handle.webrtcStuff.dataChannel.onopen = null;\n handle.webrtcStuff.dataChannel.onclose = null;\n handle.webrtcStuff.dataChannel.onerror = null;\n }\n\n if (handle.webrtcStuff.pc) {\n handle.webrtcStuff.pc.onicecandidate = null;\n handle.webrtcStuff.pc.ontrack = null;\n handle.webrtcStuff.pc.ondatachannel = null;\n handle.webrtcStuff.pc.onconnectionstatechange = null;\n handle.webrtcStuff.pc.oniceconnectionstatechange = null;\n }\n\n try {\n handle.webrtcStuff.pc.close();\n } catch (e) {}\n\n handle.webrtcStuff = {\n stream: null,\n mySdp: null,\n mediaConstraints: null,\n pc: null,\n dataChannelOpen: false,\n dataChannel: null,\n dtmfSender: null,\n trickle: true,\n iceDone: false\n };\n\n if (handleId === _this7.handleId) {\n _this7._isDataChannelOpen = false;\n _this7._isPublished = false;\n\n _this7.emit('published', {\n status: false,\n hasStream: false\n });\n\n _this7.emit('removeLocalParticipant', {\n id: handleId,\n userId: handle.userId\n });\n } else {\n var allowedTalkback = _this7._talkbackIds || [];\n var allowedObservers = _this7._observerIds || [];\n var allowedInstructor = _this7._instuctorId || null;\n var eventName = 'removeRemoteParticipant';\n\n if (handle.userId === allowedInstructor) {\n eventName = 'removeRemoteInstructor';\n }\n\n if (allowedTalkback.indexOf(handle.userId) > -1) {\n eventName = 'removeRemoteTalkback';\n }\n\n if (allowedObservers.indexOf(handle.userId) > -1) {\n eventName = 'removeRemoteObserver';\n }\n\n _this7.emit(eventName, {\n id: handleId,\n userId: handle.userId\n });\n }\n\n if (removeHandle) {\n var handleIndex = _this7._participants.findIndex(function (p) {\n return p.handleId === handleId;\n });\n\n _this7._participants.splice(handleIndex, 1);\n }\n\n return true;\n });\n }\n }, {\n key: \"_createParticipant\",\n value: function _createParticipant() {\n var _this8 = this;\n\n var userId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var rfid = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n return this._send({\n \"janus\": \"attach\",\n \"plugin\": this.pluginName\n }).then(function (json) {\n var handleId = json.data[\"id\"];\n var handle = {\n handleId: handleId,\n rfid: rfid,\n userId: userId,\n webrtcStuff: {\n stream: null,\n mySdp: null,\n mediaConstraints: null,\n pc: null,\n dataChannelOpen: false,\n dataChannel: null,\n dtmfSender: null,\n trickle: true,\n iceDone: false,\n isIceRestarting: false\n }\n };\n\n _this8._participants.push(handle);\n\n return handle;\n });\n }\n }, {\n key: \"_joinRoom\",\n value: function _joinRoom(roomId, pin, userId) {\n return this.sendMessage(this.handleId, {\n body: {\n \"request\": \"join\",\n \"room\": roomId,\n \"pin\": pin,\n \"ptype\": \"publisher\",\n \"display\": userId\n }\n }, false, true);\n }\n }, {\n key: \"_watchStream\",\n value: function _watchStream(id) {\n return this.sendMessage(this.handleId, {\n body: {\n \"request\": \"watch\",\n id: parseInt(id)\n }\n }, false, true);\n }\n }, {\n key: \"_leaveRoom\",\n value: function _leaveRoom() {\n var _this9 = this;\n\n var dontWait = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return this._hasJoined ? this.sendMessage(this.handleId, {\n body: {\n \"request\": \"leave\"\n }\n }, dontWait).finally(function () {\n _this9._hasJoined = false;\n\n _this9.emit('joined', false);\n }) : Promise.resolve();\n } // internal reconnect\n\n }, {\n key: \"_reconnect\",\n value: function _reconnect() {\n var _this10 = this;\n\n if (this.connectingPromise) {\n return this.connectingPromise;\n }\n\n if (this.ws) {\n this._wipeListeners();\n\n if (this.ws.readyState === 1) {\n this.ws.close();\n }\n }\n\n this._stopKeepAlive();\n\n this.connectingPromise = new Promise(function (resolve, reject) {\n _this10.emit('joining', true);\n\n _this10.ws = new WebSocket(_this10.server, 'janus-protocol');\n _this10.__connectionClosedBoundFn = _this10._connectionClosed.bind(_this10);\n _this10.__handleWsEventsBoundFn = _this10._handleWsEvents.bind(_this10);\n\n _this10.ws.addEventListener('close', _this10.__connectionClosedBoundFn);\n\n _this10.ws.addEventListener('message', _this10.__handleWsEventsBoundFn);\n\n _this10.ws.onopen = function () {\n _this10._send({\n \"janus\": \"claim\"\n }).then(function (json) {\n _this10.sessionId = json[\"session_id\"] ? json[\"session_id\"] : json.data[\"id\"];\n\n _this10._startKeepAlive();\n\n _this10.connectingPromise = null;\n\n _this10.emit('joining', false);\n\n _this10._retries = 0;\n resolve(json);\n }).catch(function (error) {\n _this10.connectingPromise = null;\n\n _this10.emit('joining', false);\n\n reject({\n type: 'error',\n id: 11,\n message: 'reconnection error',\n data: error\n });\n });\n }; // this is called before 'close' event callback so it doesn't break reconnect loop\n\n\n _this10.ws.onerror = function (e) {\n _this10.connectingPromise = null;\n\n _this10.emit('joining', false);\n\n reject({\n type: 'warning',\n id: 12,\n message: 'ws reconnection error',\n data: e\n });\n };\n });\n return this.connectingPromise;\n }\n }, {\n key: \"connect\",\n value: function connect(roomId, pin, server, iceServers, token, userId) {\n var _this11 = this;\n\n var webrtcVersion = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : 0;\n var initialBitrate = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;\n var isMonitor = arguments.length > 8 ? arguments[8] : undefined;\n var recordingFilename = arguments.length > 9 ? arguments[9] : undefined;\n\n if (this.connectingPromise) {\n return this.connectingPromise;\n }\n\n this.emit('joined', false);\n\n if (this.ws) {\n this._wipeListeners();\n }\n\n this._stopKeepAlive();\n\n this.disconnectingPromise = null;\n this.sessionId = null;\n this.server = server;\n this.iceServers = iceServers;\n this.token = token;\n this.roomId = roomId;\n this.pin = pin;\n this.userId = userId;\n this.initialBitrate = initialBitrate;\n this.isMonitor = isMonitor;\n this.recordingFilename = recordingFilename;\n this.disconnectingPromise = null;\n this.connectingPromise = new Promise(function (resolve, reject) {\n _this11.emit('joining', true);\n\n _this11.ws = new WebSocket(_this11.server, 'janus-protocol');\n _this11.__connectionClosedBoundFn = _this11._connectionClosed.bind(_this11);\n _this11.__handleWsEventsBoundFn = _this11._handleWsEvents.bind(_this11);\n\n _this11.ws.addEventListener('close', _this11.__connectionClosedBoundFn);\n\n _this11.ws.addEventListener('message', _this11.__handleWsEventsBoundFn);\n\n _this11.ws.onopen = function () {\n _this11._retries = 0;\n\n _this11._send({\n \"janus\": \"create\"\n }).then(function (json) {\n _this11.sessionId = json[\"session_id\"] ? json[\"session_id\"] : json.data[\"id\"];\n\n _this11._startKeepAlive();\n\n return 1;\n }).then(function () {\n return _this11._createParticipant(userId);\n }).then(function (handle) {\n _this11.handleId = handle.handleId;\n return 1;\n }).then(function () {\n return _this11._joinRoom(roomId, pin, userId);\n }).then(function () {\n _this11.connectingPromise = null;\n\n _this11.emit('joining', false);\n\n resolve(_this11);\n }).catch(function (error) {\n _this11.connectingPromise = null;\n\n _this11.emit('joining', false);\n\n reject({\n type: 'error',\n id: 13,\n message: 'connection error',\n data: error\n });\n });\n };\n\n _this11.ws.onerror = function (e) {\n _this11.connectingPromise = null;\n\n _this11.emit('joining', false);\n\n reject({\n type: 'error',\n id: 14,\n message: 'ws connection error',\n data: e\n });\n };\n });\n return this.connectingPromise;\n }\n }, {\n key: \"disconnect\",\n value: function disconnect() {\n var _this12 = this;\n\n if (this.disconnectingPromise) {\n return this.disconnectingPromise;\n }\n\n this._stopKeepAlive();\n\n this.disconnectingPromise = Promise.all(this._participants.map(function (p) {\n return _this12._removeParticipant(p.handleId);\n })).finally(function () {\n _this12._wipeListeners();\n\n if (_this12.ws && _this12.ws.readyState === 1) {\n _this12._send({\n \"janus\": \"destroy\"\n }, true);\n\n _this12.ws.close();\n }\n\n _this12.sessionId = null; //TODO: Just in case something crashed along the way\n\n _this12._isPublished = false;\n _this12._hasJoined = false;\n\n _this12.emit('published', {\n status: false,\n hasStream: false\n });\n\n _this12.emit('joined', false);\n\n _this12.emit('disconnect');\n\n return Promise.resolve('Disconnected');\n });\n return this.disconnectingPromise;\n }\n }, {\n key: \"startStream\",\n value: function startStream(streamId, server, iceServers, token, userId) {\n var _this13 = this;\n\n if (this.connectingPromise) {\n return this.connectingPromise;\n }\n\n this.emit('streaming', false);\n\n if (this.ws) {\n this._wipeListeners();\n }\n\n this._stopKeepAlive();\n\n this.disconnectingPromise = null;\n this.sessionId = null;\n this.server = server;\n this.iceServers = iceServers;\n this.token = token;\n this.streamId = streamId;\n this.userId = userId;\n this.connectingPromise = new Promise(function (resolve, reject) {\n _this13.emit('streamStarting', true);\n\n _this13.ws = new WebSocket(_this13.server, 'janus-protocol');\n _this13.__connectionClosedBoundFn = _this13._connectionClosed.bind(_this13);\n _this13.__handleWsEventsBoundFn = _this13._handleWsEvents.bind(_this13);\n\n _this13.ws.addEventListener('close', _this13.__connectionClosedBoundFn);\n\n _this13.ws.addEventListener('message', _this13.__handleWsEventsBoundFn);\n\n _this13.ws.onopen = function () {\n _this13._retries = 0;\n\n _this13._send({\n \"janus\": \"create\"\n }).then(function (json) {\n _this13.sessionId = json[\"session_id\"] ? json[\"session_id\"] : json.data[\"id\"];\n\n _this13._startKeepAlive();\n\n return 1;\n }).then(function () {\n return _this13._createParticipant(userId);\n }).then(function (handle) {\n _this13.handleId = handle.handleId;\n return 1;\n }).then(function () {\n return _this13._watchStream(streamId);\n }).then(function () {\n _this13.connectingPromise = null;\n\n _this13.emit('streamStarting', false);\n\n resolve(_this13);\n }).catch(function (error) {\n _this13.connectingPromise = null;\n\n _this13.emit('streamStarting', false);\n\n reject({\n type: 'error',\n id: 13,\n message: 'connection error',\n data: error\n });\n });\n };\n\n _this13.ws.onerror = function (e) {\n _this13.connectingPromise = null;\n\n _this13.emit('streamStarting', false);\n\n reject({\n type: 'error',\n id: 14,\n message: 'ws connection error',\n data: e\n });\n };\n });\n return this.connectingPromise;\n }\n }, {\n key: \"stopStream\",\n value: function stopStream() {\n var _this14 = this;\n\n if (this.disconnectingPromise) {\n return this.disconnectingPromise;\n }\n\n this._stopKeepAlive();\n\n this.disconnectingPromise = this.sendMessage(this.handleId, {\n body: {\n \"request\": \"stop\"\n }\n }, false, true).then(function () {\n return _this14._removeParticipant(_this14.handleId);\n }).finally(function () {\n _this14._wipeListeners();\n\n _this14._send({\n \"janus\": \"destroy\"\n }, true);\n\n if (_this14.ws && _this14.ws.readyState === 1) {\n _this14.ws.close();\n }\n\n _this14.sessionId = null;\n _this14._isStreaming = false;\n\n _this14.emit('streaming', false); // last event\n\n\n _this14.emit('disconnect');\n\n _this14.disconnectingPromise = null;\n return Promise.resolve('Disconnected');\n });\n return this.disconnectingPromise;\n }\n }, {\n key: \"destroy\",\n value: function destroy() {\n var _this15 = this;\n\n if (this.sessiontype === 'reactooroom') {\n return this.disconnect().then(function () {\n _this15.clear();\n\n return true;\n });\n } else if (this.sessiontype === 'streaming') {\n return this.stopStream().then(function () {\n _this15.clear();\n\n return true;\n });\n }\n }\n }, {\n key: \"_enableDebug\",\n value: function _enableDebug() {\n this._log = console.log.bind(console);\n }\n }, {\n key: \"_getHandle\",\n value: function _getHandle(handleId) {\n var rfid = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n return this._participants.find(function (p) {\n return p.handleId === handleId || rfid && p.rfid === rfid;\n });\n }\n }, {\n key: \"_getStats\",\n value: function _getStats() {\n var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return Promise.all(this._participants.map(function (participant) {\n var mediaTrack = null;\n\n if (type === 'video') {\n mediaTrack = participant.webrtcStuff && participant.webrtcStuff.stream && participant.webrtcStuff.stream.getVideoTracks().length && participant.webrtcStuff.stream.getVideoTracks()[0];\n } else if (type === 'audio') {\n mediaTrack = participant.webrtcStuff && participant.webrtcStuff.stream && participant.webrtcStuff.stream.getAudioTracks().length && participant.webrtcStuff.stream.getAudioTracks()[0];\n }\n\n return participant.webrtcStuff && participant.webrtcStuff.pc && participant.webrtcStuff.pc.getStats(mediaTrack).then(function (r) {\n return {\n handle: participant,\n stats: r\n };\n }).catch(function (e) {\n return Promise.resolve({\n handle: participant,\n stats: e\n });\n });\n }));\n }\n }, {\n key: \"_sendTrickleCandidate\",\n value: function _sendTrickleCandidate(handleId, candidate) {\n return this._send({\n \"janus\": \"trickle\",\n \"candidate\": candidate,\n \"handle_id\": handleId\n });\n }\n }, {\n key: \"_webrtc\",\n value: function _webrtc(handleId) {\n var _this16 = this;\n\n var enableOntrack = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n var handle = this._getHandle(handleId);\n\n if (!handle) {\n this.emit('error', {\n type: 'warning',\n id: 15,\n message: 'id non-existent',\n data: [handleId, 'create rtc connection']\n });\n }\n\n var config = handle.webrtcStuff;\n\n if (!config.pc) {\n var pc_config = {\n \"iceServers\": this.iceServers,\n \"iceTransportPolicy\": 'all',\n \"bundlePolicy\": undefined\n };\n pc_config[\"sdpSemantics\"] = this.isUnifiedPlan ? \"unified-plan\" : \"plan-b\";\n var pc_constraints = {\n \"optional\": [{\n \"DtlsSrtpKeyAgreement\": true\n }]\n };\n\n if (this._ipv6Support === true) {\n pc_constraints.optional.push({\n \"googIPv6\": true\n });\n }\n\n if (webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === \"edge\") {\n // This is Edge, enable BUNDLE explicitly\n pc_config.bundlePolicy = \"max-bundle\";\n }\n\n this._log('new RTCPeerConnection', pc_config, pc_constraints);\n\n config.pc = new RTCPeerConnection(pc_config, pc_constraints);\n\n config.pc.onconnectionstatechange = function () {\n if (config.pc.connectionState === 'failed') {\n _this16._iceRestart(handleId);\n }\n\n _this16.emit('connectionState', [handleId, handleId === _this16.handleId, config.pc.connectionState]);\n };\n\n config.pc.oniceconnectionstatechange = function () {\n if (config.pc.iceConnectionState === 'failed') {\n _this16._iceRestart(handleId);\n }\n\n _this16.emit('iceState', [handleId, handleId === _this16.handleId, config.pc.iceConnectionState]);\n };\n\n config.pc.onicecandidate = function (event) {\n if (event.candidate == null || webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === 'edge' && event.candidate.candidate.indexOf('endOfCandidates') > 0) {\n config.iceDone = true;\n\n _this16._sendTrickleCandidate(handleId, {\n \"completed\": true\n }).catch(function (e) {\n _this16.emit('error', e);\n });\n } else {\n // JSON.stringify doesn't work on some WebRTC objects anymore\n // See https://code.google.com/p/chromium/issues/detail?id=467366\n var candidate = {\n \"candidate\": event.candidate.candidate,\n \"sdpMid\": event.candidate.sdpMid,\n \"sdpMLineIndex\": event.candidate.sdpMLineIndex\n };\n\n _this16._sendTrickleCandidate(handleId, candidate).catch(function (e) {\n _this16.emit('error', e);\n });\n }\n };\n\n if (enableOntrack) {\n config.pc.ontrack = function (event) {\n // if(!event.streams)\n // return;\n //config.stream = event.streams[0];\n if (!config.stream) {\n config.stream = new MediaStream();\n }\n\n if (event.track) {\n config.stream.addTrack(event.track);\n var allowedTalkback = _this16._talkbackIds || [];\n var allowedObservers = _this16._observerIds || [];\n var allowedInstructor = _this16._instuctorId || null;\n var eventName = 'addRemoteParticipant';\n\n if (handle.userId === allowedInstructor) {\n eventName = 'addRemoteInstructor';\n }\n\n if (allowedTalkback.indexOf(handle.userId) > -1) {\n eventName = 'addRemoteTalkback';\n }\n\n if (allowedObservers.indexOf(handle.userId) > -1) {\n eventName = 'addRemoteObserver';\n }\n\n _this16._log(eventName, 'ontrack');\n\n _this16.emit(eventName, {\n tid: Object(_wt_utils__WEBPACK_IMPORTED_MODULE_2__[\"generateUUID\"])(),\n id: handle.handleId,\n userId: handle.userId,\n stream: config.stream,\n track: event.track,\n constructId: _this16.constructId,\n adding: true,\n hasAudioTrack: !!(config.stream && config.stream.getAudioTracks().length),\n hasVideoTrack: !!(config.stream && config.stream.getVideoTracks().length)\n });\n\n if (event.track.onended) return;\n\n event.track.onended = function (ev) {\n var allowedTalkback = _this16._talkbackIds || [];\n var allowedObservers = _this16._observerIds || [];\n var allowedInstructor = _this16._instuctorId || null;\n var eventName = 'addRemoteParticipant';\n\n if (handle.userId === allowedInstructor) {\n eventName = 'addRemoteInstructor';\n }\n\n if (allowedTalkback.indexOf(handle.userId) > -1) {\n eventName = 'addRemoteTalkback';\n }\n\n if (allowedObservers.indexOf(handle.userId) > -1) {\n eventName = 'addRemoteObserver';\n }\n\n _this16._log(eventName, 'onended');\n\n if (config.stream) {\n config.stream && config.stream.removeTrack(ev.target);\n\n _this16.emit(eventName, {\n tid: Object(_wt_utils__WEBPACK_IMPORTED_MODULE_2__[\"generateUUID\"])(),\n id: handle.handleId,\n userId: handle.userId,\n stream: config.stream,\n track: ev.target,\n constructId: _this16.constructId,\n adding: false,\n hasAudioTrack: !!(config.stream && config.stream.getAudioTracks().length),\n hasVideoTrack: !!(config.stream && config.stream.getVideoTracks().length)\n });\n }\n };\n\n event.track.onmute = function (ev) {\n _this16._log('remoteTrackMuted', 'onmute');\n\n _this16.emit('remoteTrackMuted', {\n id: handle.handleId,\n userId: handle.userId,\n stream: config.stream,\n kind: ev.target.kind,\n track: ev.target,\n muted: true\n });\n };\n\n event.track.onunmute = function (ev) {\n _this16._log('remoteTrackMuted', 'onunmute');\n\n _this16.emit('remoteTrackMuted', {\n id: handle.handleId,\n userId: handle.userId,\n stream: config.stream,\n kind: ev.target.kind,\n track: ev.target,\n muted: false\n });\n };\n }\n };\n }\n }\n\n var defaultDataChannelLabel = 'JanusDataChannel';\n\n if (!config.dataChannel || !config.dataChannelOpen) {\n var onDataChannelMessage = function onDataChannelMessage(event) {\n _this16._handleDataEvents(handleId, 'message', event.data);\n };\n\n var onDataChannelStateChange = function onDataChannelStateChange(event) {\n _this16._handleDataEvents(handleId, 'state', config.dataChannel.readyState);\n };\n\n var onDataChannelError = function onDataChannelError(error) {\n _this16._handleDataEvents(handleId, 'error', error);\n }; // Until we implement the proxying of open requests within the Janus core, we open a channel ourselves whatever the case\n\n\n config.dataChannel = config.pc.createDataChannel(defaultDataChannelLabel, {\n ordered: true\n });\n config.dataChannel.onmessage = onDataChannelMessage;\n config.dataChannel.onopen = onDataChannelStateChange;\n config.dataChannel.onclose = onDataChannelStateChange;\n config.dataChannel.onerror = onDataChannelError;\n\n config.pc.ondatachannel = function (event) {\n //TODO: implement this\n console.log('Janus is creating data channel');\n };\n }\n }\n }, {\n key: \"_webrtcPeer\",\n value: function _webrtcPeer(handleId, jsep) {\n var handle = this._getHandle(handleId);\n\n if (!handle) {\n return Promise.reject({\n type: 'warning',\n id: 16,\n message: 'id non-existent',\n data: [handleId, 'rtc peer']\n });\n }\n\n var config = handle.webrtcStuff;\n\n if (jsep !== undefined && jsep !== null) {\n if (config.pc === null) {\n this._log(\"No PeerConnection: if this is an answer, use createAnswer and not _webrtcPeer\");\n\n return Promise.resolve(null);\n }\n\n return config.pc.setRemoteDescription(jsep).then(function () {\n config.remoteSdp = jsep.sdp; // Any trickle candidate we cached?\n\n if (config.candidates && config.candidates.length > 0) {\n for (var i = 0; i < config.candidates.length; i++) {\n var candidate = config.candidates[i];\n\n if (!candidate || candidate.completed === true) {\n config.pc.addIceCandidate(null);\n } else {\n config.pc.addIceCandidate(candidate);\n }\n }\n\n config.candidates = [];\n } // Done\n\n\n return true;\n });\n } else {\n return Promise.reject({\n type: 'warning',\n id: 22,\n message: 'rtc peer',\n data: [handleId, 'invalid jsep']\n });\n }\n }\n }, {\n key: \"_iceRestart\",\n value: function _iceRestart(handleId) {\n var _this17 = this;\n\n var handle = this._getHandle(handleId);\n\n if (!handle) {\n return;\n }\n\n var config = handle.webrtcStuff; // Already restarting;\n\n if (config.isIceRestarting) {\n return;\n }\n\n if (this.handleId === handleId) {\n this._log('Performing local ICE restart');\n\n config.isIceRestarting = true;\n var hasAudio = !!(config.stream && config.stream.getAudioTracks().length > 0);\n var hasVideo = !!(config.stream && config.stream.getVideoTracks().length > 0);\n\n this._createAO('offer', handleId, true, [hasAudio, false, hasVideo, false]).then(function (jsep) {\n if (!jsep) {\n return null;\n }\n\n return _this17.sendMessage(handleId, {\n body: _objectSpread({\n \"request\": \"configure\",\n \"audio\": hasAudio,\n \"video\": hasVideo,\n \"data\": true\n }, _this17.recordingFilename ? {\n filename: _this17.recordingFilename\n } : {}),\n jsep: jsep\n });\n }).then(function (r) {\n config.isIceRestarting = false;\n\n _this17._log('ICE restart success');\n }).catch(function (e) {\n config.isIceRestarting = false;\n\n _this17.emit('warning', {\n type: 'error',\n id: 28,\n message: 'iceRestart failed',\n data: e\n });\n });\n } else {\n this._log('Performing remote ICE restart', handleId);\n\n config.isIceRestarting = true;\n return this.sendMessage(handleId, {\n body: {\n \"request\": \"configure\",\n \"restart\": true\n }\n }).then(function () {\n config.isIceRestarting = false;\n }).catch(function () {\n config.isIceRestarting = false;\n });\n }\n }\n }, {\n key: \"_createAO\",\n value: function _createAO() {\n var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'offer';\n var handleId = arguments.length > 1 ? arguments[1] : undefined;\n var iceRestart = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n var _ref = arguments.length > 3 ? arguments[3] : undefined,\n _ref2 = _slicedToArray(_ref, 4),\n audioSend = _ref2[0],\n audioRecv = _ref2[1],\n videoSend = _ref2[2],\n videoRecv = _ref2[3];\n\n var handle = this._getHandle(handleId);\n\n if (!handle) {\n return Promise.reject({\n type: 'warning',\n id: 17,\n message: 'id non-existent',\n data: [handleId, 'createAO', type]\n });\n }\n\n var methodName = null;\n\n if (type === 'offer') {\n methodName = 'createOffer';\n } else {\n methodName = 'createAnswer';\n }\n\n var config = handle.webrtcStuff; // https://code.google.com/p/webrtc/issues/detail?id=3508\n\n var mediaConstraints = {};\n\n if (this.isUnifiedPlan) {\n var audioTransceiver = null,\n videoTransceiver = null;\n var transceivers = config.pc.getTransceivers();\n\n if (transceivers && transceivers.length > 0) {\n for (var i in transceivers) {\n var t = transceivers[i];\n\n if (t.sender && t.sender.track && t.sender.track.kind === \"audio\" && t.stopped === false || t.receiver && t.receiver.track && t.receiver.track.kind === \"audio\" && t.stopped === false) {\n if (!audioTransceiver) audioTransceiver = t;\n continue;\n }\n\n if (t.sender && t.sender.track && t.sender.track.kind === \"video\" && t.stopped === false || t.receiver && t.receiver.track && t.receiver.track.kind === \"video\" && t.stopped === false) {\n if (!videoTransceiver) videoTransceiver = t;\n continue;\n }\n }\n } // Handle audio (and related changes, if any)\n\n\n if (!audioSend && !audioRecv) {\n // Audio disabled: have we removed it?\n if (audioTransceiver) {\n if (audioTransceiver.setDirection) {\n audioTransceiver.setDirection(\"inactive\");\n } else {\n audioTransceiver.direction = \"inactive\";\n }\n }\n } else {\n // Take care of audio m-line\n if (audioSend && audioRecv) {\n if (audioTransceiver) {\n if (audioTransceiver.setDirection) {\n audioTransceiver.setDirection(\"sendrecv\");\n } else {\n audioTransceiver.direction = \"sendrecv\";\n }\n }\n } else if (audioSend && !audioRecv) {\n if (audioTransceiver) {\n if (audioTransceiver.setDirection) {\n audioTransceiver.setDirection(\"sendonly\");\n } else {\n audioTransceiver.direction = \"sendonly\";\n }\n }\n } else if (!audioSend && audioRecv) {\n if (audioTransceiver) {\n if (audioTransceiver.setDirection) {\n audioTransceiver.setDirection(\"recvonly\");\n } else {\n audioTransceiver.direction = \"recvonly\";\n }\n } else {\n // In theory, this is the only case where we might not have a transceiver yet\n audioTransceiver = config.pc.addTransceiver(\"audio\", {\n direction: \"recvonly\"\n });\n }\n }\n } // Handle video (and related changes, if any)\n\n\n if (!videoSend && !videoRecv) {\n if (videoTransceiver) {\n if (videoTransceiver.setDirection) {\n videoTransceiver.setDirection(\"inactive\");\n } else {\n videoTransceiver.direction = \"inactive\";\n }\n }\n } else {\n // Take care of video m-line\n if (videoSend && videoRecv) {\n if (videoTransceiver) {\n if (videoTransceiver.setDirection) {\n videoTransceiver.setDirection(\"sendrecv\");\n } else {\n videoTransceiver.direction = \"sendrecv\";\n }\n }\n } else if (videoSend && !videoRecv) {\n if (videoTransceiver) {\n if (videoTransceiver.setDirection) {\n videoTransceiver.setDirection(\"sendonly\");\n } else {\n videoTransceiver.direction = \"sendonly\";\n }\n }\n } else if (!videoSend && videoRecv) {\n if (videoTransceiver) {\n if (videoTransceiver.setDirection) {\n videoTransceiver.setDirection(\"recvonly\");\n } else {\n videoTransceiver.direction = \"recvonly\";\n }\n } else {\n // In theory, this is the only case where we might not have a transceiver yet\n videoTransceiver = config.pc.addTransceiver(\"video\", {\n direction: \"recvonly\"\n });\n }\n }\n }\n } else {\n if (webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === \"firefox\" || webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === \"edge\") {\n mediaConstraints = {\n offerToReceiveAudio: audioRecv,\n offerToReceiveVideo: videoRecv\n };\n } else {\n mediaConstraints = {\n mandatory: {\n OfferToReceiveAudio: audioRecv,\n OfferToReceiveVideo: videoRecv\n }\n };\n }\n }\n\n if (iceRestart) {\n mediaConstraints[\"iceRestart\"] = true;\n }\n\n return config.pc[methodName](mediaConstraints).then(function (response) {\n config.mySdp = response.sdp;\n\n var _p = config.pc.setLocalDescription(response).catch(function (e) {\n return Promise.reject({\n type: 'warning',\n id: 24,\n message: 'setLocalDescription',\n data: [handleId, e]\n });\n });\n\n config.mediaConstraints = mediaConstraints;\n\n if (!config.iceDone && !config.trickle) {\n // Don't do anything until we have all candidates\n return Promise.resolve(null);\n } // JSON.stringify doesn't work on some WebRTC objects anymore\n // See https://code.google.com/p/chromium/issues/detail?id=467366\n\n\n var jsep = {\n \"type\": response.type,\n \"sdp\": response.sdp\n };\n return _p.then(function () {\n return jsep;\n });\n }, function (e) {\n return Promise.reject({\n type: 'warning',\n id: 25,\n message: methodName,\n data: [handleId, e]\n });\n });\n }\n }, {\n key: \"_publishRemote\",\n value: function _publishRemote(handleId, jsep) {\n var _this18 = this;\n\n var handle = this._getHandle(handleId);\n\n if (!handle) {\n return Promise.reject({\n type: 'warning',\n id: 18,\n message: 'id non-existent',\n data: [handleId, 'publish remote participant']\n });\n }\n\n this._webrtc(handleId, true);\n\n var config = handle.webrtcStuff;\n\n if (jsep) {\n return config.pc.setRemoteDescription(jsep).then(function () {\n config.remoteSdp = jsep.sdp; // Any trickle candidate we cached?\n\n if (config.candidates && config.candidates.length > 0) {\n for (var i = 0; i < config.candidates.length; i++) {\n var candidate = config.candidates[i];\n\n if (!candidate || candidate.completed === true) {\n // end-of-candidates\n config.pc.addIceCandidate(null);\n } else {\n // New candidate\n config.pc.addIceCandidate(candidate);\n }\n }\n\n config.candidates = [];\n } // Create the answer now\n\n\n return _this18._createAO('answer', handleId, false, [false, true, false, true]).then(function (_jsep) {\n if (!_jsep) {\n _this18.emit('error', {\n type: 'warning',\n id: 19,\n message: 'publish remote participant',\n data: [handleId, 'no jsep']\n });\n\n return Promise.resolve();\n }\n\n return _this18.sendMessage(handleId, {\n \"body\": _objectSpread(_objectSpread({\n \"request\": \"start\"\n }, _this18.roomId && {\n \"room\": _this18.roomId\n }), _this18.pin && {\n pin: _this18.pin\n }),\n \"jsep\": _jsep\n });\n });\n }, function (e) {\n return Promise.reject({\n type: 'warning',\n id: 23,\n message: 'setRemoteDescription',\n data: [handleId, e]\n });\n });\n } else {\n return Promise.resolve();\n }\n } //Public methods\n\n }, {\n key: \"publishLocal\",\n value: function publishLocal(stream) {\n var _this19 = this;\n\n var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref3$keepAudio = _ref3.keepAudio,\n keepAudio = _ref3$keepAudio === void 0 ? false : _ref3$keepAudio,\n _ref3$keepVideo = _ref3.keepVideo,\n keepVideo = _ref3$keepVideo === void 0 ? false : _ref3$keepVideo;\n\n this.emit('publishing', true);\n\n var handle = this._getHandle(this.handleId);\n\n if (!handle) {\n return Promise.reject({\n type: 'error',\n id: 21,\n message: 'no local id, connect before publishing',\n data: null\n });\n }\n\n this._webrtc(this.handleId);\n\n var config = handle.webrtcStuff;\n\n if (stream) {\n if (!config.stream) {\n config.stream = stream;\n stream.getTracks().forEach(function (track) {\n config.pc.addTrack(track, stream);\n });\n } else {\n /* UPDATE Audio */\n var replaceAudio = stream.getAudioTracks().length;\n\n if (replaceAudio || !keepAudio) {\n //this will stop existing tracks\n var oldAudioStream = config.stream.getAudioTracks()[0];\n\n if (oldAudioStream) {\n config.stream.removeTrack(oldAudioStream);\n\n try {\n oldAudioStream.stop();\n } catch (e) {\n this._log(e);\n }\n }\n }\n\n if (config.pc.getSenders() && config.pc.getSenders().length) {\n if (replaceAudio && this.isUnifiedPlan) {//using replace\n } else {\n for (var index in config.pc.getSenders()) {\n var s = config.pc.getSenders()[index];\n\n if (s && s.track && s.track.kind === \"audio\") {\n config.pc.removeTrack(s);\n }\n }\n }\n }\n\n if (replaceAudio) {\n config.stream.addTrack(stream.getAudioTracks()[0]);\n var audioTransceiver = null;\n\n if (this.isUnifiedPlan) {\n var transceivers = config.pc.getTransceivers();\n\n if (transceivers && transceivers.length > 0) {\n for (var i in transceivers) {\n var t = transceivers[i];\n\n if (t.sender && t.sender.track && t.sender.track.kind === \"audio\" && t.stopped === false || t.receiver && t.receiver.track && t.receiver.track.kind === \"audio\" && t.stopped === false) {\n audioTransceiver = t;\n break;\n }\n }\n }\n }\n\n if (audioTransceiver && audioTransceiver.sender) {\n audioTransceiver.sender.replaceTrack(stream.getAudioTracks()[0]);\n } else {\n config.pc.addTrack(stream.getAudioTracks()[0], stream);\n }\n }\n /* UPDATE Video */\n\n\n var replaceVideo = stream.getVideoTracks().length;\n\n if (replaceVideo || !keepVideo) {\n var oldVideoStream = config.stream.getVideoTracks()[0];\n\n if (oldVideoStream) {\n config.stream.removeTrack(oldVideoStream);\n\n try {\n oldVideoStream.stop();\n } catch (e) {\n this._log(e);\n }\n }\n }\n\n if (config.pc.getSenders() && config.pc.getSenders().length) {\n if (replaceVideo && this.isUnifiedPlan) {//using replace\n } else {\n for (var _index in config.pc.getSenders()) {\n var _s2 = config.pc.getSenders()[_index];\n\n if (_s2 && _s2.track && _s2.track.kind === \"video\") {\n config.pc.removeTrack(_s2);\n }\n }\n }\n }\n\n if (replaceVideo) {\n config.stream.addTrack(stream.getVideoTracks()[0]);\n var videoTransceiver = null;\n\n if (this.isUnifiedPlan) {\n var _transceivers = config.pc.getTransceivers();\n\n if (_transceivers && _transceivers.length > 0) {\n for (var _i2 in _transceivers) {\n var _t = _transceivers[_i2];\n\n if (_t.sender && _t.sender.track && _t.sender.track.kind === \"video\" && _t.stopped === false || _t.receiver && _t.receiver.track && _t.receiver.track.kind === \"video\" && _t.stopped === false) {\n videoTransceiver = _t;\n break;\n }\n }\n }\n }\n\n if (videoTransceiver && videoTransceiver.sender) {\n //TODO: check if t.stopped === false still gets us videoTransceiver\n videoTransceiver.sender.replaceTrack(stream.getVideoTracks()[0]);\n } else {\n config.pc.addTrack(stream.getVideoTracks()[0], stream);\n }\n }\n }\n }\n\n var hasAudio = !!(stream && stream.getAudioTracks().length > 0);\n var hasVideo = !!(stream && stream.getVideoTracks().length > 0);\n var isAudioMuted = !stream || stream.getAudioTracks().length === 0 || !stream.getAudioTracks()[0].enabled;\n var isVideoMuted = !stream || stream.getVideoTracks().length === 0 || !stream.getVideoTracks()[0].enabled;\n this.isAudioEnabed = hasAudio;\n this.isVideoEnabled = hasVideo;\n this.isAudioMuted = isAudioMuted;\n this.isVideoMuted = isVideoMuted;\n return this._createAO('offer', this.handleId, false, [hasAudio, false, hasVideo, false]).then(function (jsep) {\n if (!jsep) {\n return null;\n } //HOTFIX: Temporary fix for Safari 13\n\n\n if (jsep.sdp && jsep.sdp.indexOf(\"\\r\\na=ice-ufrag\") === -1) {\n jsep.sdp = jsep.sdp.replace(\"\\na=ice-ufrag\", \"\\r\\na=ice-ufrag\");\n }\n\n return _this19.sendMessage(_this19.handleId, {\n body: _objectSpread({\n \"request\": \"configure\",\n \"audio\": hasAudio,\n \"video\": hasVideo,\n \"data\": true\n }, _this19.recordingFilename ? {\n filename: _this19.recordingFilename\n } : {}),\n jsep: jsep\n });\n }).then(function (r) {\n if (_this19._isDataChannelOpen) {\n return Promise.resolve(r);\n } else {\n return new Promise(function (resolve, reject) {\n var __ = function __(val) {\n if (val) {\n clearTimeout(___);\n\n _this19.off('dataChannel', __, _this19);\n\n resolve(_this19);\n }\n };\n\n var ___ = setTimeout(function () {\n _this19.off('dataChannel', __, _this19);\n\n reject({\n type: 'error',\n id: 27,\n message: 'Data channel did not open',\n data: null\n });\n }, 5000);\n\n _this19.on('dataChannel', __, _this19);\n });\n }\n }).then(function (r) {\n _this19._isPublished = true;\n\n _this19.emit('addLocalParticipant', {\n tid: Object(_wt_utils__WEBPACK_IMPORTED_MODULE_2__[\"generateUUID\"])(),\n id: handle.handleId,\n userId: handle.userId,\n stream: config.stream\n });\n\n _this19.emit('published', {\n status: true,\n hasStream: !!config.stream\n });\n\n _this19.emit('publishing', false);\n\n _this19.emit('localHasVideo', hasVideo);\n\n _this19.emit('localHasAudio', hasAudio);\n\n _this19.emit('localMuted', {\n type: 'video',\n value: isVideoMuted\n });\n\n _this19.emit('localMuted', {\n type: 'audio',\n value: isAudioMuted\n });\n\n return r;\n }).catch(function (e) {\n _this19.emit('publishing', false);\n\n return Promise.reject(e);\n });\n }\n }, {\n key: \"unpublishLocal\",\n value: function unpublishLocal() {\n var _this20 = this;\n\n var dontWait = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return this._isPublished ? this.sendMessage(this.handleId, {\n body: {\n \"request\": \"unpublish\"\n }\n }, dontWait).finally(function (r) {\n _this20._isPublished = false;\n\n _this20.emit('published', {\n status: false,\n hasStream: false\n });\n\n return r;\n }) : Promise.resolve();\n }\n }, {\n key: \"toggleAudio\",\n value: function toggleAudio() {\n var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n var handle = this._getHandle(this.handleId);\n\n if (!handle) {\n return Promise.reject({\n type: 'error',\n id: 21,\n message: 'no local id, connect first',\n data: null\n });\n }\n\n var config = handle.webrtcStuff;\n\n if (this.isUnifiedPlan) {\n var transceiver = config.pc.getTransceivers().find(function (t) {\n return t.sender && t.sender.track && t.receiver.track.kind === \"audio\" && t.stopped === false;\n });\n\n if (transceiver) {\n transceiver.sender.track.enabled = value !== null ? !!value : !transceiver.sender.track.enabled;\n }\n\n this.isAudioMuted = !transceiver || !transceiver.sender.track.enabled;\n } else {\n if (config.stream && config.stream.getAudioTracks().length) {\n config.stream.getAudioTracks()[0].enabled = value !== null ? !!value : !config.stream.getAudioTracks()[0].enabled;\n }\n\n this.isAudioMuted = config.stream.getAudioTracks().length === 0 || !config.stream.getAudioTracks()[0].enabled;\n }\n\n this.emit('localMuted', {\n type: 'audio',\n value: this.isAudioMuted\n });\n }\n }, {\n key: \"toggleVideo\",\n value: function toggleVideo() {\n var handle = this._getHandle(this.handleId);\n\n if (!handle) {\n return Promise.reject({\n type: 'error',\n id: 21,\n message: 'no local id, connect first',\n data: null\n });\n }\n\n var config = handle.webrtcStuff;\n\n if (this.options.safariBugHotfixEnabled) {\n this.isVideoMuted = !this.isVideoMuted;\n } else if (this.isUnifiedPlan) {\n var transceiver = config.pc.getTransceivers().find(function (t) {\n return t.sender && t.sender.track && t.receiver.track.kind === \"video\" && t.stopped === false;\n });\n\n if (transceiver) {\n transceiver.sender.track.enabled = !transceiver.sender.track.enabled;\n }\n\n this.isVideoMuted = !transceiver || !transceiver.sender.track.enabled;\n } else {\n if (config.stream && config.stream.getVideoTracks().length) {\n config.stream.getVideoTracks()[0].enabled = !config.stream.getVideoTracks()[0].enabled;\n }\n\n this.isVideoMuted = config.stream.getVideoTracks().length === 0 || !config.stream.getVideoTracks()[0].enabled;\n }\n\n this.emit('localMuted', {\n type: 'video',\n value: this.isVideoMuted\n });\n }\n }, {\n key: \"setInstructorId\",\n value: function setInstructorId() {\n var instructorId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n this._instuctorId = instructorId;\n this.emit('instructorId', this._instuctorId);\n return this._instuctorId;\n }\n }, {\n key: \"setObserverIds\",\n value: function setObserverIds() {\n var observerIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n this._observerIds = observerIds;\n this.emit('observerIds', this._observerIds);\n return this._observerIds;\n }\n }, {\n key: \"setTalkbackIds\",\n value: function setTalkbackIds() {\n var talkbackIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n this._talkbackIds = talkbackIds;\n this.emit('talkbackIds', this._talkbackIds);\n return this._talkbackIds;\n }\n }], [{\n key: \"noop\",\n value: function noop() {}\n }, {\n key: \"randomString\",\n value: function randomString(len) {\n var charSet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n var randomString = '';\n\n for (var i = 0; i < len; i++) {\n var randomPoz = Math.floor(Math.random() * charSet.length);\n randomString += charSet.substring(randomPoz, randomPoz + 1);\n }\n\n return randomString;\n } //TODO: solve\n // #eventList = ['error', 'kicked', 'addLocalParticipant', ,'addRemoteInstructor','addRemoteParticipant','addRemoteTalkback', 'addRemoteObserver', 'removeRemoteInstructor', 'removeLocalParticipant', 'removeRemoteParticipant', 'removeRemoteTalkback', 'removeRemoteObserver', 'localMuted', 'localHasVideo', 'localHasAudio', 'data', 'iceState', 'connectionState', 'joined', 'joining', 'dataChannel', 'disconnect', 'observerIds', 'talkbackIds', 'instructorId', 'published', 'publishing', 'remoteTrackMuted', 'streamingStatus', 'streaming', 'streamStarting'];\n //\n // #sessionTypes = {\n // 'reactooroom': 'janus.plugin.reactooroom',\n // 'streaming': 'janus.plugin.streaming'\n // };\n\n }, {\n key: \"sessionTypes\",\n value: function sessionTypes() {\n return {\n 'reactooroom': 'janus.plugin.reactooroom',\n 'streaming': 'janus.plugin.streaming'\n };\n }\n }, {\n key: \"checkUnifiedPlan\",\n value: function checkUnifiedPlan() {\n var unifiedPlan = false;\n\n if (webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === 'firefox' && webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.version >= 59) {\n // Firefox definitely does, starting from version 59\n unifiedPlan = true;\n } else if (webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === 'chrome' && webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.version >= 72) {\n // Chrome does, but it's only usable from version 72 on\n unifiedPlan = true;\n } else if (!window.RTCRtpTransceiver || !('currentDirection' in RTCRtpTransceiver.prototype)) {\n // Safari supports addTransceiver() but not Unified Plan when\n // currentDirection is not defined (see codepen above).\n unifiedPlan = false;\n } else {\n // Check if addTransceiver() throws an exception\n var tempPc = new RTCPeerConnection();\n\n try {\n tempPc.addTransceiver('audio');\n unifiedPlan = true;\n } catch (e) {}\n\n tempPc.close();\n }\n\n return unifiedPlan;\n }\n }]);\n\n return RoomSession;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Room);\n\n//# sourceURL=webpack://WatchTogetherSDK/./src/modules/wt-room.js?");
|
|
8573
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! webrtc-adapter */ \"./node_modules/webrtc-adapter/src/js/adapter_core.js\");\n/* harmony import */ var _wt_emitter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./wt-emitter */ \"./src/modules/wt-emitter.js\");\n/* harmony import */ var _wt_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./wt-utils */ \"./src/modules/wt-utils.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\n\n// Watch together janus webrtc library\n\n\n\n\nvar Room = /*#__PURE__*/function () {\n function Room(debug) {\n var _this = this;\n\n _classCallCheck(this, Room);\n\n this.debug = debug;\n this.sessions = [];\n this.safariVp8 = false;\n this.browser = webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser;\n this.browserDetails = webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails;\n this.webrtcSupported = Room.isWebrtcSupported();\n this.safariVp8TestPromise = Room.testSafariVp8();\n this.safariVp8 = null;\n this.safariVp8TestPromise.then(function (safariVp8) {\n _this.safariVp8 = safariVp8;\n }); // Let's get it started\n\n this.whenInitialized = this.initialize();\n }\n\n _createClass(Room, [{\n key: \"initialize\",\n value: function initialize() {\n var _this2 = this;\n\n return this.safariVp8TestPromise.then(function () {\n return _this2;\n });\n }\n }, {\n key: \"createSession\",\n value: function createSession() {\n var constructId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'reactooroom';\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n return new RoomSession(constructId, type, this.debug, options);\n }\n }], [{\n key: \"testSafariVp8\",\n value: function testSafariVp8() {\n return new Promise(function (resolve) {\n if (webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === 'safari' && webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.version >= 605) {\n if (RTCRtpSender && RTCRtpSender.getCapabilities && RTCRtpSender.getCapabilities(\"video\") && RTCRtpSender.getCapabilities(\"video\").codecs && RTCRtpSender.getCapabilities(\"video\").codecs.length) {\n var isVp8 = false;\n\n for (var i in RTCRtpSender.getCapabilities(\"video\").codecs) {\n var codec = RTCRtpSender.getCapabilities(\"video\").codecs[i];\n\n if (codec && codec.mimeType && codec.mimeType.toLowerCase() === \"video/vp8\") {\n isVp8 = true;\n break;\n }\n }\n\n resolve(isVp8);\n } else {\n // We do it in a very ugly way, as there's no alternative...\n // We create a PeerConnection to see if VP8 is in an offer\n var testpc = new RTCPeerConnection({}, {});\n testpc.createOffer({\n offerToReceiveVideo: true\n }).then(function (offer) {\n var result = offer.sdp.indexOf(\"VP8\") !== -1;\n testpc.close();\n testpc = null;\n resolve(result);\n });\n }\n } else resolve(false);\n });\n }\n }, {\n key: \"isWebrtcSupported\",\n value: function isWebrtcSupported() {\n return window.RTCPeerConnection !== undefined && window.RTCPeerConnection !== null && navigator.mediaDevices !== undefined && navigator.mediaDevices !== null && navigator.mediaDevices.getUserMedia !== undefined && navigator.mediaDevices.getUserMedia !== null;\n }\n }]);\n\n return Room;\n}();\n\nvar RoomSession = /*#__PURE__*/function () {\n function RoomSession() {\n var constructId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'reactooroom';\n var debug = arguments.length > 2 ? arguments[2] : undefined;\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n _classCallCheck(this, RoomSession);\n\n Object.assign(this, Object(_wt_emitter__WEBPACK_IMPORTED_MODULE_1__[\"default\"])());\n this.server = null;\n this.iceServers = null;\n this.token = null;\n this.roomId = null;\n this.streamId = null;\n this.pin = null;\n this.userId = null;\n this.sessiontype = type;\n this.initialBitrate = 0;\n this.isMonitor = false; // currently used just for classroom context so monitor user only subscribes to participants and not trainer (for other monitor this flag is not necessary)\n\n this.recordingFilename = null;\n this.pluginName = RoomSession.sessionTypes()[type];\n this.options = _objectSpread(_objectSpread({}, {\n debug: debug,\n classroomObserverSubscribeToInstructor: false,\n classroomInstructorSubscribeToParticipants: false,\n safariBugHotfixEnabled: webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === 'safari' && webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.version < 605\n }), {}, {\n options: options\n });\n this.id = null;\n this.privateId = null;\n this.constructId = constructId || RoomSession.randomString(16);\n this.sessionId = null;\n this.handleId = null;\n this.ws = null;\n this.isRestarting = false; //TODO: do it better\n // double click prevention\n\n this.connectingPromise = null;\n this.disconnectingPromise = null;\n this._ipv6Support = false;\n this._retries = 0;\n this._maxRetries = 3;\n this._keepAliveId = null;\n this._participants = [];\n this._observerIds = [];\n this._talkbackIds = [];\n this._instuctorId = null;\n this._hasJoined = false;\n this._isStreaming = false;\n this._isPublished = false;\n this._isDataChannelOpen = false;\n this.isAudioMuted = false;\n this.isVideoMuted = false;\n this.isVideoEnabled = false;\n this.isAudioEnabed = false;\n this.isUnifiedPlan = RoomSession.checkUnifiedPlan();\n this._log = RoomSession.noop;\n\n if (this.options.debug) {\n this._enableDebug();\n }\n } // Check if this browser supports Unified Plan and transceivers\n // Based on https://codepen.io/anon/pen/ZqLwWV?editors=0010\n\n\n _createClass(RoomSession, [{\n key: \"sendMessage\",\n value: function sendMessage(handleId) {\n var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n body: 'Example Body'\n };\n var dontWait = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var dontResolveOnAck = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n return this._send(_objectSpread({\n \"janus\": \"message\",\n \"handle_id\": handleId\n }, message), dontWait, dontResolveOnAck).then(function (json) {\n if (json && json[\"janus\"] === \"success\") {\n var plugindata = json[\"plugindata\"] || {};\n var data = plugindata[\"data\"];\n return Promise.resolve(data);\n }\n\n return Promise.resolve();\n }).catch(function (json) {\n if (json && json[\"error\"]) {\n return Promise.reject({\n type: 'warning',\n id: 1,\n message: 'sendMessage failed',\n data: json[\"error\"]\n });\n } else {\n return Promise.reject({\n type: 'warning',\n id: 1,\n message: 'sendMessage failed',\n data: json\n });\n }\n });\n }\n }, {\n key: \"_send\",\n value: function _send() {\n var _this3 = this;\n\n var request = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var ignoreResponse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var dontResolveOnAck = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var transaction = RoomSession.randomString(12);\n\n var requestData = _objectSpread(_objectSpread({}, request), {}, {\n transaction: transaction,\n token: this.token\n }, this.sessionId && {\n 'session_id': this.sessionId\n } || {});\n\n var timeouId = null;\n return new Promise(function (resolve, reject) {\n var parseResponse = function parseResponse(event) {\n var json = JSON.parse(event.data);\n var r_transaction = json['transaction'];\n\n if (r_transaction === transaction && (!dontResolveOnAck || json['janus'] !== 'ack')) {\n clearTimeout(timeouId);\n\n _this3.ws.removeEventListener('message', parseResponse);\n\n if (json['janus'] === 'error') {\n var _json$error;\n\n if ((json === null || json === void 0 ? void 0 : (_json$error = json.error) === null || _json$error === void 0 ? void 0 : _json$error.code) == 403) {\n _this3.disconnect(true);\n }\n\n reject({\n type: 'error',\n id: 2,\n message: 'send failed',\n data: json,\n requestData: requestData\n });\n } else {\n resolve(json);\n }\n }\n };\n\n if (ignoreResponse) {\n if (_this3.ws && _this3.ws.readyState === 1) {\n _this3.ws.send(JSON.stringify(requestData));\n }\n\n resolve();\n } else {\n if (_this3.ws && _this3.ws.readyState === 1) {\n _this3.ws.addEventListener('message', parseResponse);\n\n timeouId = setTimeout(function () {\n _this3.ws.removeEventListener('message', parseResponse);\n\n reject({\n type: 'error',\n id: 3,\n message: 'send timeout',\n data: requestData\n });\n }, 10000);\n\n _this3.ws.send(JSON.stringify(requestData));\n } else {\n reject({\n type: 'warning',\n id: 29,\n message: 'No connection to WebSockets',\n data: requestData\n });\n }\n }\n });\n }\n }, {\n key: \"_connectionClosed\",\n value: function _connectionClosed() {\n var _this4 = this;\n\n if (this.disconnectingPromise || this.connectingPromise) {\n return;\n }\n\n if (this._retries < this._maxRetries) {\n setTimeout(function () {\n _this4._retries++;\n\n _this4._reconnect().catch(function (e) {\n _this4.emit('error', e);\n });\n }, 3000 * this._retries);\n } else {\n if (this.sessiontype === 'reactooroom') {\n this.disconnect(true);\n } else if (this.sessiontype === 'streaming') {\n this.stopStream();\n }\n\n this.emit('error', {\n type: 'error',\n id: 4,\n message: 'lost connection to WebSockets',\n data: null\n });\n }\n }\n }, {\n key: \"_wipeListeners\",\n value: function _wipeListeners() {\n if (this.ws) {\n this.ws.removeEventListener('close', this.__connectionClosedBoundFn);\n this.ws.removeEventListener('message', this.__handleWsEventsBoundFn);\n }\n }\n }, {\n key: \"_startKeepAlive\",\n value: function _startKeepAlive() {\n var _this5 = this;\n\n this._send({\n \"janus\": \"keepalive\"\n }).then(function (json) {\n if (json[\"janus\"] !== 'ack') {\n _this5.emit('error', {\n type: 'warning',\n id: 5,\n message: 'keepalive response suspicious',\n data: json[\"janus\"]\n });\n }\n }).catch(function (e) {\n _this5.emit('error', {\n type: 'warning',\n id: 6,\n message: 'keepalive dead',\n data: e\n });\n\n _this5._connectionClosed();\n });\n\n this._keepAliveId = setTimeout(function () {\n _this5._startKeepAlive();\n }, 30000);\n }\n }, {\n key: \"_stopKeepAlive\",\n value: function _stopKeepAlive() {\n clearTimeout(this._keepAliveId);\n }\n }, {\n key: \"_handleWsEvents\",\n value: function _handleWsEvents(event) {\n var _this6 = this;\n\n var json = JSON.parse(event.data);\n var sender = json[\"sender\"];\n var type = json[\"janus\"];\n\n var handle = this._getHandle(sender);\n\n if (!handle) {\n return;\n }\n\n if (type === \"trickle\") {\n var candidate = json[\"candidate\"];\n var config = handle.webrtcStuff;\n\n if (config.pc && config.remoteSdp) {\n if (!candidate || candidate.completed === true) {\n config.pc.addIceCandidate(null);\n } else {\n config.pc.addIceCandidate(candidate);\n }\n } else {\n if (!config.candidates) {\n config.candidates = [];\n }\n\n config.candidates.push(candidate);\n }\n } else if (type === \"webrtcup\") {//none universal\n } else if (type === \"hangup\") {\n this._log('hangup on', handle.handleId);\n\n this._removeParticipant(handle.handleId, null, false);\n } else if (type === \"detached\") {\n this._log('detached on', handle.handleId);\n\n this._removeParticipant(handle.handleId, null, true);\n } else if (type === \"media\") {\n this._log('Media event:', handle.handleId, json[\"type\"], json[\"receiving\"]);\n } else if (type === \"slowlink\") {\n this._log('Slowlink', handle.handleId, json[\"uplink\"], json[\"nacks\"]);\n } else if (type === \"event\") {//none universal\n } else if (type === 'timeout') {\n this.ws.close(3504, \"Gateway timeout\");\n } else if (type === 'success' || type === 'error') {// we're capturing those elsewhere\n } else {\n this._log(\"Unknown event: \".concat(type, \" on session: \").concat(this.sessionId));\n } // LOCAL\n\n\n if (sender === this.handleId) {\n if (type === \"event\") {\n var plugindata = json[\"plugindata\"] || {};\n var msg = plugindata[\"data\"] || {};\n var jsep = json[\"jsep\"];\n var result = msg[\"result\"] || null;\n\n var _event = msg[\"videoroom\"] || null;\n\n var list = msg[\"publishers\"] || {};\n var leaving = msg[\"leaving\"]; //let joining = msg[\"joining\"];\n\n var unpublished = msg[\"unpublished\"];\n var error = msg[\"error\"];\n var allowedObservers = this._observerIds || [];\n var allowedTalkback = this._talkbackIds || [];\n var allowedInstructor = this._instuctorId || null;\n\n if (_event === \"joined\") {\n this.id = msg[\"id\"];\n this.privateId = msg[\"private_id\"];\n this._hasJoined = true;\n this.emit('joined', true);\n\n this._log('We have successfully joined Room');\n\n var _loop = function _loop(f) {\n var userId = list[f][\"display\"];\n var streams = list[f][\"streams\"] || [];\n var id = list[f][\"id\"];\n\n for (var i in streams) {\n streams[i][\"id\"] = id;\n streams[i][\"display\"] = userId;\n }\n\n _this6._log('Remote userId: ', userId);\n\n var isClassroom = allowedInstructor !== null;\n var subscribeCondition = void 0;\n var subCondition = false;\n\n if (!isClassroom) {\n subscribeCondition = allowedObservers.indexOf(userId) === -1 && allowedTalkback.indexOf(_this6.userId) === -1;\n } else {\n // instructor -> everyone but observer\n if (_this6.options.classroomInstructorSubscribeToParticipants) {\n subCondition = _this6.userId === allowedInstructor && allowedObservers.indexOf(userId) === -1;\n }\n\n if (_this6.options.classroomObserverSubscribeToInstructor) {\n /*\n \t\t\tmonitor/talkback -> all but talkback\n \tobserver -> all but talkback\n \tinstructor -> no one\n \tparticipant -> only instructor, observer and talkback\n \t\n \t1st line -> Im not monitor/talkback and im not observer and im not instructor and user to subscribe is instructor or observer or talkback\n \t2nd line -> Im monitor/talkback and im not instructor and user connecting is not talkback\n \t3rd line -> Im observer and im not instructor and user connecting is not talkback\n \t\n */\n subscribeCondition = subCondition || !_this6.isMonitor && allowedObservers.indexOf(_this6.userId) === -1 && _this6.userId !== allowedInstructor && (userId === allowedInstructor || allowedObservers.indexOf(userId) > -1 || allowedTalkback.indexOf(userId) > -1) || _this6.isMonitor && _this6.userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1 || allowedObservers.indexOf(_this6.userId) > -1 && _this6.userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1;\n } else {\n /*\n \t\t\t\t\t\tmonitor/talkback -> all but talkback\n \tobserver -> all but instructor and talkback\n \tinstructor -> no one\n \tparticipant -> only instructor, observer and talkback\n \t\n \t1st line -> Im not monitor/talkback and im not observer and im not instructor and user to subscribe is instructor or observer or talkback\n \t2nd line -> Im monitor/talkback and im not instructor and user connecting is not talkback\n \t3rd line -> Im observer and im not instructor and user connecting is not instructor and its not talkback\n \t\n */\n subscribeCondition = subCondition || !_this6.isMonitor && allowedObservers.indexOf(_this6.userId) === -1 && _this6.userId !== allowedInstructor && (userId === allowedInstructor || allowedObservers.indexOf(userId) > -1 || allowedTalkback.indexOf(userId) > -1) || _this6.isMonitor && _this6.userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1 || allowedObservers.indexOf(_this6.userId) > -1 && _this6.userId !== allowedInstructor && userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1;\n }\n }\n\n if (subscribeCondition) {\n _this6._log('Creating user: ', userId);\n\n _this6._createParticipant(userId, id).then(function (handle) {\n return _this6.sendMessage(handle.handleId, {\n body: {\n \"request\": \"join\",\n \"room\": _this6.roomId,\n \"ptype\": \"subscriber\",\n \"feed\": id,\n \"private_id\": _this6.privateId,\n pin: _this6.pin\n }\n });\n }).catch(function (err) {\n _this6.emit('error', err);\n });\n }\n };\n\n for (var f in list) {\n _loop(f);\n }\n } else if (_event === \"event\") {\n if (msg[\"streams\"] !== undefined && msg[\"streams\"] !== null) {\n this._log('Got my own streams back', msg[\"streams\"]);\n }\n\n var _loop2 = function _loop2(_f) {\n var userId = list[_f][\"display\"];\n var streams = list[_f][\"streams\"] || [];\n var id = list[_f][\"id\"];\n\n for (var i in streams) {\n streams[i][\"id\"] = id;\n streams[i][\"display\"] = userId;\n }\n\n _this6._log('Remote userId: ', userId);\n\n var isClassroom = allowedInstructor !== null;\n var subscribeCondition = void 0;\n var subCondition = false;\n\n if (!isClassroom) {\n subscribeCondition = allowedObservers.indexOf(userId) === -1 && allowedTalkback.indexOf(_this6.userId) === -1;\n } else {\n // instructor -> everyone but observer\n if (_this6.options.classroomInstructorSubscribeToParticipants) {\n subCondition = _this6.userId === allowedInstructor && allowedObservers.indexOf(userId) === -1;\n }\n\n if (_this6.options.classroomObserverSubscribeToInstructor) {\n /*\n \t\t\tmonitor/talkback -> all but talkback\n \tobserver -> all but talkback\n \tinstructor -> no one\n \tparticipant -> only instructor, observer and talkback\n \t\n \t1st line -> Im not monitor/talkback and im not observer and im not instructor and user to subscribe is instructor or observer or talkback\n \t2nd line -> Im monitor/talkback and im not instructor and user connecting is not talkback\n \t3rd line -> Im observer and im not instructor and user connecting is not talkback\n \t\n */\n subscribeCondition = subCondition || !_this6.isMonitor && allowedObservers.indexOf(_this6.userId) === -1 && _this6.userId !== allowedInstructor && (userId === allowedInstructor || allowedObservers.indexOf(userId) > -1 || allowedTalkback.indexOf(userId) > -1) || _this6.isMonitor && _this6.userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1 || allowedObservers.indexOf(_this6.userId) > -1 && _this6.userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1;\n } else {\n /*\n \t\t\t\t\t\tmonitor/talkback -> all but talkback\n \tobserver -> all but instructor and talkback\n \tinstructor -> no one\n \tparticipant -> only instructor, observer and talkback\n \t\n \t1st line -> Im not monitor/talkback and im not observer and im not instructor and user to subscribe is instructor or observer or talkback\n \t2nd line -> Im monitor/talkback and im not instructor and user connecting is not talkback\n \t3rd line -> Im observer and im not instructor and user connecting is not instructor and its not talkback\n \t\n */\n subscribeCondition = subCondition || !_this6.isMonitor && allowedObservers.indexOf(_this6.userId) === -1 && _this6.userId !== allowedInstructor && (userId === allowedInstructor || allowedObservers.indexOf(userId) > -1 || allowedTalkback.indexOf(userId) > -1) || _this6.isMonitor && _this6.userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1 || allowedObservers.indexOf(_this6.userId) > -1 && _this6.userId !== allowedInstructor && userId !== allowedInstructor && allowedTalkback.indexOf(userId) === -1;\n }\n }\n\n if (subscribeCondition) {\n _this6._log('Creating user: ', userId);\n\n _this6._createParticipant(userId, id).then(function (handle) {\n return _this6.sendMessage(handle.handleId, {\n body: {\n \"request\": \"join\",\n \"room\": _this6.roomId,\n \"ptype\": \"subscriber\",\n \"feed\": id,\n \"private_id\": _this6.privateId,\n pin: _this6.pin\n }\n });\n }).catch(function (err) {\n _this6.emit('error', err);\n });\n }\n };\n\n for (var _f in list) {\n _loop2(_f);\n }\n\n if (leaving === 'ok') {\n this._log('leaving', this.handleId, 'this is us');\n\n this._removeParticipant(this.handleId);\n\n if (msg['reason'] === 'kicked') {\n this.emit('kicked');\n this.disconnect().catch(function () {});\n }\n } else if (leaving) {\n this._log('leaving', leaving);\n\n this._removeParticipant(null, leaving);\n }\n\n if (unpublished === 'ok') {\n this._log('unpublished', this.handleId, 'this is us');\n\n this._removeParticipant(this.handleId, null, false); // we do just hangup\n\n } else if (unpublished) {\n this._log('unpublished', unpublished);\n\n this._removeParticipant(null, unpublished, true); // we do hangup and detach\n\n }\n\n if (error) {\n this.emit('error', {\n type: 'error',\n id: 7,\n message: 'local participant error',\n data: [sender, msg]\n });\n }\n } // Streaming related\n else if (result && result[\"status\"]) {\n this.emit('streamingStatus', result[\"status\"]);\n\n if (result[\"status\"] === 'stopped') {\n this.stopStream();\n }\n\n if (result[\"status\"] === 'started') {\n this.emit('streaming', true);\n this._isStreaming = true;\n }\n }\n\n if (jsep !== undefined && jsep !== null) {\n if (this.sessiontype === 'reactooroom') {\n this._webrtcPeer(this.handleId, jsep).catch(function (err) {\n _this6.emit('error', err);\n });\n } else if (this.sessiontype === 'streaming') {\n this._publishRemote(this.handleId, jsep).catch(function (err) {\n _this6.emit('error', err);\n });\n }\n }\n } else if (type === \"webrtcup\") {\n this._log('Configuring bitrate: ' + this.initialBitrate);\n\n if (this.initialBitrate > 0) {\n this.sendMessage(this.handleId, {\n \"body\": {\n \"request\": \"configure\",\n \"bitrate\": this.initialBitrate\n }\n }).catch(function () {\n return null;\n });\n }\n }\n } //REMOTE\n else {\n var _plugindata = json[\"plugindata\"] || {};\n\n var _msg = _plugindata[\"data\"] || {};\n\n var _jsep2 = json[\"jsep\"];\n var _event2 = _msg[\"videoroom\"];\n var _error = _msg[\"error\"];\n\n if (_event2 === \"attached\") {\n this._log('Remote have successfully joined Room', _msg);\n\n var _allowedTalkback = this._talkbackIds || [];\n\n var _allowedObservers = this._observerIds || [];\n\n var eventName = 'addRemoteParticipant';\n\n if (_allowedTalkback.indexOf(handle.userId) > -1) {\n eventName = 'addRemoteTalkback';\n }\n\n if (_allowedObservers.indexOf(handle.userId) > -1) {\n eventName = 'addRemoteObserver';\n }\n\n this.emit(eventName, {\n tid: Object(_wt_utils__WEBPACK_IMPORTED_MODULE_2__[\"generateUUID\"])(),\n id: handle.handleId,\n userId: handle.userId,\n stream: null,\n track: null,\n adding: false,\n constructId: this.constructId,\n metaData: this.options.metaData,\n hasAudioTrack: false,\n hasVideoTrack: false\n });\n }\n\n if (_error) {\n this.emit('error', {\n type: 'warning',\n id: 8,\n message: 'remote participant error',\n data: [sender, _msg]\n });\n }\n\n if (_jsep2) {\n this._publishRemote(handle.handleId, _jsep2).catch(function (err) {\n _this6.emit('error', err);\n });\n }\n }\n }\n }, {\n key: \"_handleDataEvents\",\n value: function _handleDataEvents(handleId, type, data) {\n var handle = this._getHandle(handleId);\n\n if (type === 'state') {\n this._log(\" - Data channel status - \", \"UID: \".concat(handleId), \"STATUS: \".concat(data), \"ME: \".concat(handleId === this.handleId));\n\n if (handle) {\n var config = handle.webrtcStuff;\n config.dataChannelOpen = data === 'open';\n }\n\n if (handleId === this.handleId) {\n this._isDataChannelOpen = data === 'open';\n this.emit('dataChannel', data === 'open');\n }\n }\n\n if (type === 'error') {\n this.emit('error', {\n type: 'warning',\n id: 9,\n message: 'data event warning',\n data: [handleId, data]\n });\n\n if (handle) {\n var _config = handle.webrtcStuff;\n _config.dataChannelOpen = false;\n }\n\n if (handleId === this.handleId) {\n this._isDataChannelOpen = false;\n this.emit('dataChannel', false);\n }\n }\n\n if (handleId === this.handleId && type === 'message') {\n var d = null;\n\n try {\n d = JSON.parse(data);\n } catch (e) {\n this.emit('error', {\n type: 'warning',\n id: 10,\n message: 'data message parse error',\n data: [handleId, e]\n });\n return;\n }\n\n this.emit('data', d);\n }\n } //removeHandle === true -> hangup, detach, removeHandle === false -> hangup\n\n }, {\n key: \"_removeParticipant\",\n value: function _removeParticipant(handleId, rfid) {\n var _this7 = this;\n\n var removeHandle = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n var handle = this._getHandle(handleId, rfid);\n\n if (!handle) {\n return Promise.resolve();\n } else {\n handleId = handle.handleId;\n }\n\n return this._send({\n \"janus\": \"hangup\",\n \"handle_id\": handleId\n }, true).then(function () {\n return removeHandle ? _this7._send({\n \"janus\": \"detach\",\n \"handle_id\": handleId\n }, true) : Promise.resolve();\n }).finally(function () {\n try {\n if (handle.webrtcStuff.stream && !_this7.isRestarting) {\n handle.webrtcStuff.stream.getTracks().forEach(function (track) {\n return track.stop();\n });\n }\n } catch (e) {// Do nothing\n }\n\n handle.webrtcStuff.stream = null;\n\n if (handle.webrtcStuff.dataChannel) {\n handle.webrtcStuff.dataChannel.onmessage = null;\n handle.webrtcStuff.dataChannel.onopen = null;\n handle.webrtcStuff.dataChannel.onclose = null;\n handle.webrtcStuff.dataChannel.onerror = null;\n }\n\n if (handle.webrtcStuff.pc) {\n handle.webrtcStuff.pc.onicecandidate = null;\n handle.webrtcStuff.pc.ontrack = null;\n handle.webrtcStuff.pc.ondatachannel = null;\n handle.webrtcStuff.pc.onconnectionstatechange = null;\n handle.webrtcStuff.pc.oniceconnectionstatechange = null;\n }\n\n try {\n handle.webrtcStuff.pc.close();\n } catch (e) {}\n\n handle.webrtcStuff = {\n stream: null,\n mySdp: null,\n mediaConstraints: null,\n pc: null,\n dataChannelOpen: false,\n dataChannel: null,\n dtmfSender: null,\n trickle: true,\n iceDone: false\n };\n\n if (handleId === _this7.handleId) {\n _this7._isDataChannelOpen = false;\n _this7._isPublished = false;\n\n _this7.emit('published', {\n status: false,\n hasStream: false\n });\n\n _this7.emit('removeLocalParticipant', {\n id: handleId,\n userId: handle.userId\n });\n } else {\n var allowedTalkback = _this7._talkbackIds || [];\n var allowedObservers = _this7._observerIds || [];\n var allowedInstructor = _this7._instuctorId || null;\n var eventName = 'removeRemoteParticipant';\n\n if (handle.userId === allowedInstructor) {\n eventName = 'removeRemoteInstructor';\n }\n\n if (allowedTalkback.indexOf(handle.userId) > -1) {\n eventName = 'removeRemoteTalkback';\n }\n\n if (allowedObservers.indexOf(handle.userId) > -1) {\n eventName = 'removeRemoteObserver';\n }\n\n _this7.emit(eventName, {\n id: handleId,\n userId: handle.userId\n });\n }\n\n if (removeHandle) {\n var handleIndex = _this7._participants.findIndex(function (p) {\n return p.handleId === handleId;\n });\n\n _this7._participants.splice(handleIndex, 1);\n }\n\n return true;\n });\n }\n }, {\n key: \"_createParticipant\",\n value: function _createParticipant() {\n var _this8 = this;\n\n var userId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var rfid = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n return this._send({\n \"janus\": \"attach\",\n \"plugin\": this.pluginName\n }).then(function (json) {\n var handleId = json.data[\"id\"];\n var handle = {\n handleId: handleId,\n rfid: rfid,\n userId: userId,\n webrtcStuff: {\n stream: null,\n mySdp: null,\n mediaConstraints: null,\n pc: null,\n dataChannelOpen: false,\n dataChannel: null,\n dtmfSender: null,\n trickle: true,\n iceDone: false,\n isIceRestarting: false\n }\n };\n\n _this8._participants.push(handle);\n\n return handle;\n });\n }\n }, {\n key: \"_joinRoom\",\n value: function _joinRoom(roomId, pin, userId) {\n return this.sendMessage(this.handleId, {\n body: {\n \"request\": \"join\",\n \"room\": roomId,\n \"pin\": pin,\n \"ptype\": \"publisher\",\n \"display\": userId\n }\n }, false, true);\n }\n }, {\n key: \"_watchStream\",\n value: function _watchStream(id) {\n return this.sendMessage(this.handleId, {\n body: {\n \"request\": \"watch\",\n id: parseInt(id)\n }\n }, false, true);\n }\n }, {\n key: \"_leaveRoom\",\n value: function _leaveRoom() {\n var _this9 = this;\n\n var dontWait = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return this._hasJoined ? this.sendMessage(this.handleId, {\n body: {\n \"request\": \"leave\"\n }\n }, dontWait).finally(function () {\n _this9._hasJoined = false;\n\n _this9.emit('joined', false);\n }) : Promise.resolve();\n } // internal reconnect\n\n }, {\n key: \"_reconnect\",\n value: function _reconnect() {\n var _this10 = this;\n\n if (this.connectingPromise) {\n return this.connectingPromise;\n }\n\n if (this.ws) {\n this._wipeListeners();\n\n if (this.ws.readyState === 1) {\n this.ws.close();\n }\n }\n\n this._stopKeepAlive();\n\n this.connectingPromise = new Promise(function (resolve, reject) {\n _this10.emit('joining', true);\n\n _this10.ws = new WebSocket(_this10.server, 'janus-protocol');\n _this10.__connectionClosedBoundFn = _this10._connectionClosed.bind(_this10);\n _this10.__handleWsEventsBoundFn = _this10._handleWsEvents.bind(_this10);\n\n _this10.ws.addEventListener('close', _this10.__connectionClosedBoundFn);\n\n _this10.ws.addEventListener('message', _this10.__handleWsEventsBoundFn);\n\n _this10.ws.onopen = function () {\n _this10._send({\n \"janus\": \"claim\"\n }).then(function (json) {\n _this10.sessionId = json[\"session_id\"] ? json[\"session_id\"] : json.data[\"id\"];\n\n _this10._startKeepAlive();\n\n _this10.connectingPromise = null;\n\n _this10.emit('joining', false);\n\n _this10._retries = 0;\n resolve(json);\n }).catch(function (error) {\n _this10.connectingPromise = null;\n\n _this10.emit('joining', false);\n\n reject({\n type: 'error',\n id: 11,\n message: 'reconnection error',\n data: error\n });\n });\n }; // this is called before 'close' event callback so it doesn't break reconnect loop\n\n\n _this10.ws.onerror = function (e) {\n _this10.connectingPromise = null;\n\n _this10.emit('joining', false);\n\n reject({\n type: 'warning',\n id: 12,\n message: 'ws reconnection error',\n data: e\n });\n };\n });\n return this.connectingPromise;\n }\n }, {\n key: \"connect\",\n value: function connect(roomId, pin, server, iceServers, token, userId) {\n var _this11 = this;\n\n var webrtcVersion = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : 0;\n var initialBitrate = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 0;\n var isMonitor = arguments.length > 8 ? arguments[8] : undefined;\n var recordingFilename = arguments.length > 9 ? arguments[9] : undefined;\n\n if (this.connectingPromise) {\n return this.connectingPromise;\n }\n\n this.emit('joined', false);\n\n if (this.ws) {\n this._wipeListeners();\n }\n\n this._stopKeepAlive();\n\n this.disconnectingPromise = null;\n this.sessionId = null;\n this.server = server;\n this.iceServers = iceServers;\n this.token = token;\n this.roomId = roomId;\n this.pin = pin;\n this.userId = userId;\n this.initialBitrate = initialBitrate;\n this.isMonitor = isMonitor;\n this.recordingFilename = recordingFilename;\n this.disconnectingPromise = null;\n this.connectingPromise = new Promise(function (resolve, reject) {\n _this11.emit('joining', true);\n\n _this11.ws = new WebSocket(_this11.server, 'janus-protocol');\n _this11.__connectionClosedBoundFn = _this11._connectionClosed.bind(_this11);\n _this11.__handleWsEventsBoundFn = _this11._handleWsEvents.bind(_this11);\n\n _this11.ws.addEventListener('close', _this11.__connectionClosedBoundFn);\n\n _this11.ws.addEventListener('message', _this11.__handleWsEventsBoundFn);\n\n _this11.ws.onopen = function () {\n _this11._retries = 0;\n\n _this11._send({\n \"janus\": \"create\"\n }).then(function (json) {\n _this11.sessionId = json[\"session_id\"] ? json[\"session_id\"] : json.data[\"id\"];\n\n _this11._startKeepAlive();\n\n return 1;\n }).then(function () {\n return _this11._createParticipant(userId);\n }).then(function (handle) {\n _this11.handleId = handle.handleId;\n return 1;\n }).then(function () {\n return _this11._joinRoom(roomId, pin, userId);\n }).then(function () {\n _this11.connectingPromise = null;\n\n _this11.emit('joining', false);\n\n resolve(_this11);\n }).catch(function (error) {\n _this11.connectingPromise = null;\n\n _this11.emit('joining', false);\n\n reject({\n type: 'error',\n id: 13,\n message: 'connection error',\n data: error\n });\n });\n };\n\n _this11.ws.onerror = function (e) {\n _this11.connectingPromise = null;\n\n _this11.emit('joining', false);\n\n reject({\n type: 'error',\n id: 14,\n message: 'ws connection error',\n data: e\n });\n };\n });\n return this.connectingPromise;\n }\n }, {\n key: \"disconnect\",\n value: function disconnect() {\n var _this12 = this;\n\n if (this.disconnectingPromise) {\n return this.disconnectingPromise;\n }\n\n this._stopKeepAlive();\n\n this.disconnectingPromise = Promise.all(this._participants.map(function (p) {\n return _this12._removeParticipant(p.handleId);\n })).finally(function () {\n _this12._wipeListeners();\n\n if (_this12.ws && _this12.ws.readyState === 1) {\n _this12._send({\n \"janus\": \"destroy\"\n }, true);\n\n _this12.ws.close();\n }\n\n _this12.sessionId = null; //TODO: Just in case something crashed along the way\n\n _this12._isPublished = false;\n _this12._hasJoined = false;\n\n _this12.emit('published', {\n status: false,\n hasStream: false\n });\n\n _this12.emit('joined', false);\n\n _this12.emit('disconnect');\n\n return Promise.resolve('Disconnected');\n });\n return this.disconnectingPromise;\n }\n }, {\n key: \"startStream\",\n value: function startStream(streamId, server, iceServers, token, userId) {\n var _this13 = this;\n\n if (this.connectingPromise) {\n return this.connectingPromise;\n }\n\n this.emit('streaming', false);\n\n if (this.ws) {\n this._wipeListeners();\n }\n\n this._stopKeepAlive();\n\n this.disconnectingPromise = null;\n this.sessionId = null;\n this.server = server;\n this.iceServers = iceServers;\n this.token = token;\n this.streamId = streamId;\n this.userId = userId;\n this.connectingPromise = new Promise(function (resolve, reject) {\n _this13.emit('streamStarting', true);\n\n _this13.ws = new WebSocket(_this13.server, 'janus-protocol');\n _this13.__connectionClosedBoundFn = _this13._connectionClosed.bind(_this13);\n _this13.__handleWsEventsBoundFn = _this13._handleWsEvents.bind(_this13);\n\n _this13.ws.addEventListener('close', _this13.__connectionClosedBoundFn);\n\n _this13.ws.addEventListener('message', _this13.__handleWsEventsBoundFn);\n\n _this13.ws.onopen = function () {\n _this13._retries = 0;\n\n _this13._send({\n \"janus\": \"create\"\n }).then(function (json) {\n _this13.sessionId = json[\"session_id\"] ? json[\"session_id\"] : json.data[\"id\"];\n\n _this13._startKeepAlive();\n\n return 1;\n }).then(function () {\n return _this13._createParticipant(userId);\n }).then(function (handle) {\n _this13.handleId = handle.handleId;\n return 1;\n }).then(function () {\n return _this13._watchStream(streamId);\n }).then(function () {\n _this13.connectingPromise = null;\n\n _this13.emit('streamStarting', false);\n\n resolve(_this13);\n }).catch(function (error) {\n _this13.connectingPromise = null;\n\n _this13.emit('streamStarting', false);\n\n reject({\n type: 'error',\n id: 13,\n message: 'connection error',\n data: error\n });\n });\n };\n\n _this13.ws.onerror = function (e) {\n _this13.connectingPromise = null;\n\n _this13.emit('streamStarting', false);\n\n reject({\n type: 'error',\n id: 14,\n message: 'ws connection error',\n data: e\n });\n };\n });\n return this.connectingPromise;\n }\n }, {\n key: \"stopStream\",\n value: function stopStream() {\n var _this14 = this;\n\n if (this.disconnectingPromise) {\n return this.disconnectingPromise;\n }\n\n this._stopKeepAlive();\n\n this.disconnectingPromise = this.sendMessage(this.handleId, {\n body: {\n \"request\": \"stop\"\n }\n }, false, true).then(function () {\n return _this14._removeParticipant(_this14.handleId);\n }).finally(function () {\n _this14._wipeListeners();\n\n _this14._send({\n \"janus\": \"destroy\"\n }, true);\n\n if (_this14.ws && _this14.ws.readyState === 1) {\n _this14.ws.close();\n }\n\n _this14.sessionId = null;\n _this14._isStreaming = false;\n\n _this14.emit('streaming', false); // last event\n\n\n _this14.emit('disconnect');\n\n _this14.disconnectingPromise = null;\n return Promise.resolve('Disconnected');\n });\n return this.disconnectingPromise;\n }\n }, {\n key: \"destroy\",\n value: function destroy() {\n var _this15 = this;\n\n if (this.sessiontype === 'reactooroom') {\n return this.disconnect().then(function () {\n _this15.clear();\n\n return true;\n });\n } else if (this.sessiontype === 'streaming') {\n return this.stopStream().then(function () {\n _this15.clear();\n\n return true;\n });\n }\n }\n }, {\n key: \"_enableDebug\",\n value: function _enableDebug() {\n this._log = console.log.bind(console);\n }\n }, {\n key: \"_getHandle\",\n value: function _getHandle(handleId) {\n var rfid = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n return this._participants.find(function (p) {\n return p.handleId === handleId || rfid && p.rfid === rfid;\n });\n }\n }, {\n key: \"_getStats\",\n value: function _getStats() {\n var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n return Promise.all(this._participants.map(function (participant) {\n var mediaTrack = null;\n\n if (type === 'video') {\n mediaTrack = participant.webrtcStuff && participant.webrtcStuff.stream && participant.webrtcStuff.stream.getVideoTracks().length && participant.webrtcStuff.stream.getVideoTracks()[0];\n } else if (type === 'audio') {\n mediaTrack = participant.webrtcStuff && participant.webrtcStuff.stream && participant.webrtcStuff.stream.getAudioTracks().length && participant.webrtcStuff.stream.getAudioTracks()[0];\n }\n\n return participant.webrtcStuff && participant.webrtcStuff.pc && participant.webrtcStuff.pc.getStats(mediaTrack).then(function (r) {\n return {\n handle: participant,\n stats: r\n };\n }).catch(function (e) {\n return Promise.resolve({\n handle: participant,\n stats: e\n });\n });\n }));\n }\n }, {\n key: \"_sendTrickleCandidate\",\n value: function _sendTrickleCandidate(handleId, candidate) {\n return this._send({\n \"janus\": \"trickle\",\n \"candidate\": candidate,\n \"handle_id\": handleId\n });\n }\n }, {\n key: \"_webrtc\",\n value: function _webrtc(handleId) {\n var _this16 = this;\n\n var enableOntrack = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n var handle = this._getHandle(handleId);\n\n if (!handle) {\n this.emit('error', {\n type: 'warning',\n id: 15,\n message: 'id non-existent',\n data: [handleId, 'create rtc connection']\n });\n }\n\n var config = handle.webrtcStuff;\n\n if (!config.pc) {\n var pc_config = {\n \"iceServers\": this.iceServers,\n \"iceTransportPolicy\": 'all',\n \"bundlePolicy\": undefined\n };\n pc_config[\"sdpSemantics\"] = this.isUnifiedPlan ? \"unified-plan\" : \"plan-b\";\n var pc_constraints = {\n \"optional\": [{\n \"DtlsSrtpKeyAgreement\": true\n }]\n };\n\n if (this._ipv6Support === true) {\n pc_constraints.optional.push({\n \"googIPv6\": true\n });\n }\n\n if (webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === \"edge\") {\n // This is Edge, enable BUNDLE explicitly\n pc_config.bundlePolicy = \"max-bundle\";\n }\n\n this._log('new RTCPeerConnection', pc_config, pc_constraints);\n\n config.pc = new RTCPeerConnection(pc_config, pc_constraints);\n\n config.pc.onconnectionstatechange = function () {\n if (config.pc.connectionState === 'failed') {\n _this16._iceRestart(handleId);\n }\n\n _this16.emit('connectionState', [handleId, handleId === _this16.handleId, config.pc.connectionState]);\n };\n\n config.pc.oniceconnectionstatechange = function () {\n if (config.pc.iceConnectionState === 'failed') {\n _this16._iceRestart(handleId);\n }\n\n _this16.emit('iceState', [handleId, handleId === _this16.handleId, config.pc.iceConnectionState]);\n };\n\n config.pc.onicecandidate = function (event) {\n if (event.candidate == null || webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === 'edge' && event.candidate.candidate.indexOf('endOfCandidates') > 0) {\n config.iceDone = true;\n\n _this16._sendTrickleCandidate(handleId, {\n \"completed\": true\n }).catch(function (e) {\n _this16.emit('error', e);\n });\n } else {\n // JSON.stringify doesn't work on some WebRTC objects anymore\n // See https://code.google.com/p/chromium/issues/detail?id=467366\n var candidate = {\n \"candidate\": event.candidate.candidate,\n \"sdpMid\": event.candidate.sdpMid,\n \"sdpMLineIndex\": event.candidate.sdpMLineIndex\n };\n\n _this16._sendTrickleCandidate(handleId, candidate).catch(function (e) {\n _this16.emit('error', e);\n });\n }\n };\n\n if (enableOntrack) {\n config.pc.ontrack = function (event) {\n // if(!event.streams)\n // return;\n //config.stream = event.streams[0];\n if (!config.stream) {\n config.stream = new MediaStream();\n }\n\n if (event.track) {\n config.stream.addTrack(event.track);\n var allowedTalkback = _this16._talkbackIds || [];\n var allowedObservers = _this16._observerIds || [];\n var allowedInstructor = _this16._instuctorId || null;\n var eventName = 'addRemoteParticipant';\n\n if (handle.userId === allowedInstructor) {\n eventName = 'addRemoteInstructor';\n }\n\n if (allowedTalkback.indexOf(handle.userId) > -1) {\n eventName = 'addRemoteTalkback';\n }\n\n if (allowedObservers.indexOf(handle.userId) > -1) {\n eventName = 'addRemoteObserver';\n }\n\n _this16._log(eventName, 'ontrack');\n\n _this16.emit(eventName, {\n tid: Object(_wt_utils__WEBPACK_IMPORTED_MODULE_2__[\"generateUUID\"])(),\n id: handle.handleId,\n userId: handle.userId,\n stream: config.stream,\n track: event.track,\n constructId: _this16.constructId,\n metaData: _this16.options.metaData,\n adding: true,\n hasAudioTrack: !!(config.stream && config.stream.getAudioTracks().length),\n hasVideoTrack: !!(config.stream && config.stream.getVideoTracks().length)\n });\n\n if (event.track.onended) return;\n\n event.track.onended = function (ev) {\n var allowedTalkback = _this16._talkbackIds || [];\n var allowedObservers = _this16._observerIds || [];\n var allowedInstructor = _this16._instuctorId || null;\n var eventName = 'addRemoteParticipant';\n\n if (handle.userId === allowedInstructor) {\n eventName = 'addRemoteInstructor';\n }\n\n if (allowedTalkback.indexOf(handle.userId) > -1) {\n eventName = 'addRemoteTalkback';\n }\n\n if (allowedObservers.indexOf(handle.userId) > -1) {\n eventName = 'addRemoteObserver';\n }\n\n _this16._log(eventName, 'onended');\n\n if (config.stream) {\n config.stream && config.stream.removeTrack(ev.target);\n\n _this16.emit(eventName, {\n tid: Object(_wt_utils__WEBPACK_IMPORTED_MODULE_2__[\"generateUUID\"])(),\n id: handle.handleId,\n userId: handle.userId,\n stream: config.stream,\n track: ev.target,\n constructId: _this16.constructId,\n metaData: _this16.options.metaData,\n adding: false,\n hasAudioTrack: !!(config.stream && config.stream.getAudioTracks().length),\n hasVideoTrack: !!(config.stream && config.stream.getVideoTracks().length)\n });\n }\n };\n\n event.track.onmute = function (ev) {\n _this16._log('remoteTrackMuted', 'onmute');\n\n _this16.emit('remoteTrackMuted', {\n id: handle.handleId,\n userId: handle.userId,\n stream: config.stream,\n kind: ev.target.kind,\n track: ev.target,\n muted: true\n });\n };\n\n event.track.onunmute = function (ev) {\n _this16._log('remoteTrackMuted', 'onunmute');\n\n _this16.emit('remoteTrackMuted', {\n id: handle.handleId,\n userId: handle.userId,\n stream: config.stream,\n kind: ev.target.kind,\n track: ev.target,\n muted: false\n });\n };\n }\n };\n }\n }\n\n var defaultDataChannelLabel = 'JanusDataChannel';\n\n if (!config.dataChannel || !config.dataChannelOpen) {\n var onDataChannelMessage = function onDataChannelMessage(event) {\n _this16._handleDataEvents(handleId, 'message', event.data);\n };\n\n var onDataChannelStateChange = function onDataChannelStateChange(event) {\n _this16._handleDataEvents(handleId, 'state', config.dataChannel.readyState);\n };\n\n var onDataChannelError = function onDataChannelError(error) {\n _this16._handleDataEvents(handleId, 'error', error);\n }; // Until we implement the proxying of open requests within the Janus core, we open a channel ourselves whatever the case\n\n\n config.dataChannel = config.pc.createDataChannel(defaultDataChannelLabel, {\n ordered: true\n });\n config.dataChannel.onmessage = onDataChannelMessage;\n config.dataChannel.onopen = onDataChannelStateChange;\n config.dataChannel.onclose = onDataChannelStateChange;\n config.dataChannel.onerror = onDataChannelError;\n\n config.pc.ondatachannel = function (event) {\n //TODO: implement this\n console.log('Janus is creating data channel');\n };\n }\n }\n }, {\n key: \"_webrtcPeer\",\n value: function _webrtcPeer(handleId, jsep) {\n var handle = this._getHandle(handleId);\n\n if (!handle) {\n return Promise.reject({\n type: 'warning',\n id: 16,\n message: 'id non-existent',\n data: [handleId, 'rtc peer']\n });\n }\n\n var config = handle.webrtcStuff;\n\n if (jsep !== undefined && jsep !== null) {\n if (config.pc === null) {\n this._log(\"No PeerConnection: if this is an answer, use createAnswer and not _webrtcPeer\");\n\n return Promise.resolve(null);\n }\n\n return config.pc.setRemoteDescription(jsep).then(function () {\n config.remoteSdp = jsep.sdp; // Any trickle candidate we cached?\n\n if (config.candidates && config.candidates.length > 0) {\n for (var i = 0; i < config.candidates.length; i++) {\n var candidate = config.candidates[i];\n\n if (!candidate || candidate.completed === true) {\n config.pc.addIceCandidate(null);\n } else {\n config.pc.addIceCandidate(candidate);\n }\n }\n\n config.candidates = [];\n } // Done\n\n\n return true;\n });\n } else {\n return Promise.reject({\n type: 'warning',\n id: 22,\n message: 'rtc peer',\n data: [handleId, 'invalid jsep']\n });\n }\n }\n }, {\n key: \"_iceRestart\",\n value: function _iceRestart(handleId) {\n var _this17 = this;\n\n var handle = this._getHandle(handleId);\n\n if (!handle) {\n return;\n }\n\n var config = handle.webrtcStuff; // Already restarting;\n\n if (config.isIceRestarting) {\n return;\n }\n\n if (this.handleId === handleId) {\n this._log('Performing local ICE restart');\n\n config.isIceRestarting = true;\n var hasAudio = !!(config.stream && config.stream.getAudioTracks().length > 0);\n var hasVideo = !!(config.stream && config.stream.getVideoTracks().length > 0);\n\n this._createAO('offer', handleId, true, [hasAudio, false, hasVideo, false]).then(function (jsep) {\n if (!jsep) {\n return null;\n }\n\n return _this17.sendMessage(handleId, {\n body: _objectSpread({\n \"request\": \"configure\",\n \"audio\": hasAudio,\n \"video\": hasVideo,\n \"data\": true\n }, _this17.recordingFilename ? {\n filename: _this17.recordingFilename\n } : {}),\n jsep: jsep\n });\n }).then(function (r) {\n config.isIceRestarting = false;\n\n _this17._log('ICE restart success');\n }).catch(function (e) {\n config.isIceRestarting = false;\n\n _this17.emit('warning', {\n type: 'error',\n id: 28,\n message: 'iceRestart failed',\n data: e\n });\n });\n } else {\n this._log('Performing remote ICE restart', handleId);\n\n config.isIceRestarting = true;\n return this.sendMessage(handleId, {\n body: {\n \"request\": \"configure\",\n \"restart\": true\n }\n }).then(function () {\n config.isIceRestarting = false;\n }).catch(function () {\n config.isIceRestarting = false;\n });\n }\n }\n }, {\n key: \"_createAO\",\n value: function _createAO() {\n var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'offer';\n var handleId = arguments.length > 1 ? arguments[1] : undefined;\n var iceRestart = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n var _ref = arguments.length > 3 ? arguments[3] : undefined,\n _ref2 = _slicedToArray(_ref, 4),\n audioSend = _ref2[0],\n audioRecv = _ref2[1],\n videoSend = _ref2[2],\n videoRecv = _ref2[3];\n\n var handle = this._getHandle(handleId);\n\n if (!handle) {\n return Promise.reject({\n type: 'warning',\n id: 17,\n message: 'id non-existent',\n data: [handleId, 'createAO', type]\n });\n }\n\n var methodName = null;\n\n if (type === 'offer') {\n methodName = 'createOffer';\n } else {\n methodName = 'createAnswer';\n }\n\n var config = handle.webrtcStuff; // https://code.google.com/p/webrtc/issues/detail?id=3508\n\n var mediaConstraints = {};\n\n if (this.isUnifiedPlan) {\n var audioTransceiver = null,\n videoTransceiver = null;\n var transceivers = config.pc.getTransceivers();\n\n if (transceivers && transceivers.length > 0) {\n for (var i in transceivers) {\n var t = transceivers[i];\n\n if (t.sender && t.sender.track && t.sender.track.kind === \"audio\" && t.stopped === false || t.receiver && t.receiver.track && t.receiver.track.kind === \"audio\" && t.stopped === false) {\n if (!audioTransceiver) audioTransceiver = t;\n continue;\n }\n\n if (t.sender && t.sender.track && t.sender.track.kind === \"video\" && t.stopped === false || t.receiver && t.receiver.track && t.receiver.track.kind === \"video\" && t.stopped === false) {\n if (!videoTransceiver) videoTransceiver = t;\n continue;\n }\n }\n } // Handle audio (and related changes, if any)\n\n\n if (!audioSend && !audioRecv) {\n // Audio disabled: have we removed it?\n if (audioTransceiver) {\n if (audioTransceiver.setDirection) {\n audioTransceiver.setDirection(\"inactive\");\n } else {\n audioTransceiver.direction = \"inactive\";\n }\n }\n } else {\n // Take care of audio m-line\n if (audioSend && audioRecv) {\n if (audioTransceiver) {\n if (audioTransceiver.setDirection) {\n audioTransceiver.setDirection(\"sendrecv\");\n } else {\n audioTransceiver.direction = \"sendrecv\";\n }\n }\n } else if (audioSend && !audioRecv) {\n if (audioTransceiver) {\n if (audioTransceiver.setDirection) {\n audioTransceiver.setDirection(\"sendonly\");\n } else {\n audioTransceiver.direction = \"sendonly\";\n }\n }\n } else if (!audioSend && audioRecv) {\n if (audioTransceiver) {\n if (audioTransceiver.setDirection) {\n audioTransceiver.setDirection(\"recvonly\");\n } else {\n audioTransceiver.direction = \"recvonly\";\n }\n } else {\n // In theory, this is the only case where we might not have a transceiver yet\n audioTransceiver = config.pc.addTransceiver(\"audio\", {\n direction: \"recvonly\"\n });\n }\n }\n } // Handle video (and related changes, if any)\n\n\n if (!videoSend && !videoRecv) {\n if (videoTransceiver) {\n if (videoTransceiver.setDirection) {\n videoTransceiver.setDirection(\"inactive\");\n } else {\n videoTransceiver.direction = \"inactive\";\n }\n }\n } else {\n // Take care of video m-line\n if (videoSend && videoRecv) {\n if (videoTransceiver) {\n if (videoTransceiver.setDirection) {\n videoTransceiver.setDirection(\"sendrecv\");\n } else {\n videoTransceiver.direction = \"sendrecv\";\n }\n }\n } else if (videoSend && !videoRecv) {\n if (videoTransceiver) {\n if (videoTransceiver.setDirection) {\n videoTransceiver.setDirection(\"sendonly\");\n } else {\n videoTransceiver.direction = \"sendonly\";\n }\n }\n } else if (!videoSend && videoRecv) {\n if (videoTransceiver) {\n if (videoTransceiver.setDirection) {\n videoTransceiver.setDirection(\"recvonly\");\n } else {\n videoTransceiver.direction = \"recvonly\";\n }\n } else {\n // In theory, this is the only case where we might not have a transceiver yet\n videoTransceiver = config.pc.addTransceiver(\"video\", {\n direction: \"recvonly\"\n });\n }\n }\n }\n } else {\n if (webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === \"firefox\" || webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === \"edge\") {\n mediaConstraints = {\n offerToReceiveAudio: audioRecv,\n offerToReceiveVideo: videoRecv\n };\n } else {\n mediaConstraints = {\n mandatory: {\n OfferToReceiveAudio: audioRecv,\n OfferToReceiveVideo: videoRecv\n }\n };\n }\n }\n\n if (iceRestart) {\n mediaConstraints[\"iceRestart\"] = true;\n }\n\n return config.pc[methodName](mediaConstraints).then(function (response) {\n config.mySdp = response.sdp;\n\n var _p = config.pc.setLocalDescription(response).catch(function (e) {\n return Promise.reject({\n type: 'warning',\n id: 24,\n message: 'setLocalDescription',\n data: [handleId, e]\n });\n });\n\n config.mediaConstraints = mediaConstraints;\n\n if (!config.iceDone && !config.trickle) {\n // Don't do anything until we have all candidates\n return Promise.resolve(null);\n } // JSON.stringify doesn't work on some WebRTC objects anymore\n // See https://code.google.com/p/chromium/issues/detail?id=467366\n\n\n var jsep = {\n \"type\": response.type,\n \"sdp\": response.sdp\n };\n return _p.then(function () {\n return jsep;\n });\n }, function (e) {\n return Promise.reject({\n type: 'warning',\n id: 25,\n message: methodName,\n data: [handleId, e]\n });\n });\n }\n }, {\n key: \"_publishRemote\",\n value: function _publishRemote(handleId, jsep) {\n var _this18 = this;\n\n var handle = this._getHandle(handleId);\n\n if (!handle) {\n return Promise.reject({\n type: 'warning',\n id: 18,\n message: 'id non-existent',\n data: [handleId, 'publish remote participant']\n });\n }\n\n this._webrtc(handleId, true);\n\n var config = handle.webrtcStuff;\n\n if (jsep) {\n return config.pc.setRemoteDescription(jsep).then(function () {\n config.remoteSdp = jsep.sdp; // Any trickle candidate we cached?\n\n if (config.candidates && config.candidates.length > 0) {\n for (var i = 0; i < config.candidates.length; i++) {\n var candidate = config.candidates[i];\n\n if (!candidate || candidate.completed === true) {\n // end-of-candidates\n config.pc.addIceCandidate(null);\n } else {\n // New candidate\n config.pc.addIceCandidate(candidate);\n }\n }\n\n config.candidates = [];\n } // Create the answer now\n\n\n return _this18._createAO('answer', handleId, false, [false, true, false, true]).then(function (_jsep) {\n if (!_jsep) {\n _this18.emit('error', {\n type: 'warning',\n id: 19,\n message: 'publish remote participant',\n data: [handleId, 'no jsep']\n });\n\n return Promise.resolve();\n }\n\n return _this18.sendMessage(handleId, {\n \"body\": _objectSpread(_objectSpread({\n \"request\": \"start\"\n }, _this18.roomId && {\n \"room\": _this18.roomId\n }), _this18.pin && {\n pin: _this18.pin\n }),\n \"jsep\": _jsep\n });\n });\n }, function (e) {\n return Promise.reject({\n type: 'warning',\n id: 23,\n message: 'setRemoteDescription',\n data: [handleId, e]\n });\n });\n } else {\n return Promise.resolve();\n }\n } //Public methods\n\n }, {\n key: \"publishLocal\",\n value: function publishLocal(stream) {\n var _this19 = this;\n\n var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref3$keepAudio = _ref3.keepAudio,\n keepAudio = _ref3$keepAudio === void 0 ? false : _ref3$keepAudio,\n _ref3$keepVideo = _ref3.keepVideo,\n keepVideo = _ref3$keepVideo === void 0 ? false : _ref3$keepVideo;\n\n this.emit('publishing', true);\n\n var handle = this._getHandle(this.handleId);\n\n if (!handle) {\n return Promise.reject({\n type: 'error',\n id: 21,\n message: 'no local id, connect before publishing',\n data: null\n });\n }\n\n this._webrtc(this.handleId);\n\n var config = handle.webrtcStuff;\n\n if (stream) {\n if (!config.stream) {\n config.stream = stream;\n stream.getTracks().forEach(function (track) {\n config.pc.addTrack(track, stream);\n });\n } else {\n /* UPDATE Audio */\n var replaceAudio = stream.getAudioTracks().length;\n\n if (replaceAudio || !keepAudio) {\n //this will stop existing tracks\n var oldAudioStream = config.stream.getAudioTracks()[0];\n\n if (oldAudioStream) {\n config.stream.removeTrack(oldAudioStream);\n\n try {\n oldAudioStream.stop();\n } catch (e) {\n this._log(e);\n }\n }\n }\n\n if (config.pc.getSenders() && config.pc.getSenders().length) {\n if (replaceAudio && this.isUnifiedPlan) {//using replace\n } else {\n for (var index in config.pc.getSenders()) {\n var s = config.pc.getSenders()[index];\n\n if (s && s.track && s.track.kind === \"audio\") {\n config.pc.removeTrack(s);\n }\n }\n }\n }\n\n if (replaceAudio) {\n config.stream.addTrack(stream.getAudioTracks()[0]);\n var audioTransceiver = null;\n\n if (this.isUnifiedPlan) {\n var transceivers = config.pc.getTransceivers();\n\n if (transceivers && transceivers.length > 0) {\n for (var i in transceivers) {\n var t = transceivers[i];\n\n if (t.sender && t.sender.track && t.sender.track.kind === \"audio\" && t.stopped === false || t.receiver && t.receiver.track && t.receiver.track.kind === \"audio\" && t.stopped === false) {\n audioTransceiver = t;\n break;\n }\n }\n }\n }\n\n if (audioTransceiver && audioTransceiver.sender) {\n audioTransceiver.sender.replaceTrack(stream.getAudioTracks()[0]);\n } else {\n config.pc.addTrack(stream.getAudioTracks()[0], stream);\n }\n }\n /* UPDATE Video */\n\n\n var replaceVideo = stream.getVideoTracks().length;\n\n if (replaceVideo || !keepVideo) {\n var oldVideoStream = config.stream.getVideoTracks()[0];\n\n if (oldVideoStream) {\n config.stream.removeTrack(oldVideoStream);\n\n try {\n oldVideoStream.stop();\n } catch (e) {\n this._log(e);\n }\n }\n }\n\n if (config.pc.getSenders() && config.pc.getSenders().length) {\n if (replaceVideo && this.isUnifiedPlan) {//using replace\n } else {\n for (var _index in config.pc.getSenders()) {\n var _s2 = config.pc.getSenders()[_index];\n\n if (_s2 && _s2.track && _s2.track.kind === \"video\") {\n config.pc.removeTrack(_s2);\n }\n }\n }\n }\n\n if (replaceVideo) {\n config.stream.addTrack(stream.getVideoTracks()[0]);\n var videoTransceiver = null;\n\n if (this.isUnifiedPlan) {\n var _transceivers = config.pc.getTransceivers();\n\n if (_transceivers && _transceivers.length > 0) {\n for (var _i2 in _transceivers) {\n var _t = _transceivers[_i2];\n\n if (_t.sender && _t.sender.track && _t.sender.track.kind === \"video\" && _t.stopped === false || _t.receiver && _t.receiver.track && _t.receiver.track.kind === \"video\" && _t.stopped === false) {\n videoTransceiver = _t;\n break;\n }\n }\n }\n }\n\n if (videoTransceiver && videoTransceiver.sender) {\n //TODO: check if t.stopped === false still gets us videoTransceiver\n videoTransceiver.sender.replaceTrack(stream.getVideoTracks()[0]);\n } else {\n config.pc.addTrack(stream.getVideoTracks()[0], stream);\n }\n }\n }\n }\n\n var hasAudio = !!(stream && stream.getAudioTracks().length > 0);\n var hasVideo = !!(stream && stream.getVideoTracks().length > 0);\n var isAudioMuted = !stream || stream.getAudioTracks().length === 0 || !stream.getAudioTracks()[0].enabled;\n var isVideoMuted = !stream || stream.getVideoTracks().length === 0 || !stream.getVideoTracks()[0].enabled;\n this.isAudioEnabed = hasAudio;\n this.isVideoEnabled = hasVideo;\n this.isAudioMuted = isAudioMuted;\n this.isVideoMuted = isVideoMuted;\n return this._createAO('offer', this.handleId, false, [hasAudio, false, hasVideo, false]).then(function (jsep) {\n if (!jsep) {\n return null;\n } //HOTFIX: Temporary fix for Safari 13\n\n\n if (jsep.sdp && jsep.sdp.indexOf(\"\\r\\na=ice-ufrag\") === -1) {\n jsep.sdp = jsep.sdp.replace(\"\\na=ice-ufrag\", \"\\r\\na=ice-ufrag\");\n }\n\n return _this19.sendMessage(_this19.handleId, {\n body: _objectSpread({\n \"request\": \"configure\",\n \"audio\": hasAudio,\n \"video\": hasVideo,\n \"data\": true\n }, _this19.recordingFilename ? {\n filename: _this19.recordingFilename\n } : {}),\n jsep: jsep\n });\n }).then(function (r) {\n if (_this19._isDataChannelOpen) {\n return Promise.resolve(r);\n } else {\n return new Promise(function (resolve, reject) {\n var __ = function __(val) {\n if (val) {\n clearTimeout(___);\n\n _this19.off('dataChannel', __, _this19);\n\n resolve(_this19);\n }\n };\n\n var ___ = setTimeout(function () {\n _this19.off('dataChannel', __, _this19);\n\n reject({\n type: 'error',\n id: 27,\n message: 'Data channel did not open',\n data: null\n });\n }, 5000);\n\n _this19.on('dataChannel', __, _this19);\n });\n }\n }).then(function (r) {\n _this19._isPublished = true;\n\n _this19.emit('addLocalParticipant', {\n tid: Object(_wt_utils__WEBPACK_IMPORTED_MODULE_2__[\"generateUUID\"])(),\n id: handle.handleId,\n userId: handle.userId,\n stream: config.stream\n });\n\n _this19.emit('published', {\n status: true,\n hasStream: !!config.stream\n });\n\n _this19.emit('publishing', false);\n\n _this19.emit('localHasVideo', hasVideo);\n\n _this19.emit('localHasAudio', hasAudio);\n\n _this19.emit('localMuted', {\n type: 'video',\n value: isVideoMuted\n });\n\n _this19.emit('localMuted', {\n type: 'audio',\n value: isAudioMuted\n });\n\n return r;\n }).catch(function (e) {\n _this19.emit('publishing', false);\n\n return Promise.reject(e);\n });\n }\n }, {\n key: \"unpublishLocal\",\n value: function unpublishLocal() {\n var _this20 = this;\n\n var dontWait = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n return this._isPublished ? this.sendMessage(this.handleId, {\n body: {\n \"request\": \"unpublish\"\n }\n }, dontWait).finally(function (r) {\n _this20._isPublished = false;\n\n _this20.emit('published', {\n status: false,\n hasStream: false\n });\n\n return r;\n }) : Promise.resolve();\n }\n }, {\n key: \"toggleAudio\",\n value: function toggleAudio() {\n var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n var handle = this._getHandle(this.handleId);\n\n if (!handle) {\n return Promise.reject({\n type: 'error',\n id: 21,\n message: 'no local id, connect first',\n data: null\n });\n }\n\n var config = handle.webrtcStuff;\n\n if (this.isUnifiedPlan) {\n var transceiver = config.pc.getTransceivers().find(function (t) {\n return t.sender && t.sender.track && t.receiver.track.kind === \"audio\" && t.stopped === false;\n });\n\n if (transceiver) {\n transceiver.sender.track.enabled = value !== null ? !!value : !transceiver.sender.track.enabled;\n }\n\n this.isAudioMuted = !transceiver || !transceiver.sender.track.enabled;\n } else {\n if (config.stream && config.stream.getAudioTracks().length) {\n config.stream.getAudioTracks()[0].enabled = value !== null ? !!value : !config.stream.getAudioTracks()[0].enabled;\n }\n\n this.isAudioMuted = config.stream.getAudioTracks().length === 0 || !config.stream.getAudioTracks()[0].enabled;\n }\n\n this.emit('localMuted', {\n type: 'audio',\n value: this.isAudioMuted\n });\n }\n }, {\n key: \"toggleVideo\",\n value: function toggleVideo() {\n var handle = this._getHandle(this.handleId);\n\n if (!handle) {\n return Promise.reject({\n type: 'error',\n id: 21,\n message: 'no local id, connect first',\n data: null\n });\n }\n\n var config = handle.webrtcStuff;\n\n if (this.options.safariBugHotfixEnabled) {\n this.isVideoMuted = !this.isVideoMuted;\n } else if (this.isUnifiedPlan) {\n var transceiver = config.pc.getTransceivers().find(function (t) {\n return t.sender && t.sender.track && t.receiver.track.kind === \"video\" && t.stopped === false;\n });\n\n if (transceiver) {\n transceiver.sender.track.enabled = !transceiver.sender.track.enabled;\n }\n\n this.isVideoMuted = !transceiver || !transceiver.sender.track.enabled;\n } else {\n if (config.stream && config.stream.getVideoTracks().length) {\n config.stream.getVideoTracks()[0].enabled = !config.stream.getVideoTracks()[0].enabled;\n }\n\n this.isVideoMuted = config.stream.getVideoTracks().length === 0 || !config.stream.getVideoTracks()[0].enabled;\n }\n\n this.emit('localMuted', {\n type: 'video',\n value: this.isVideoMuted\n });\n }\n }, {\n key: \"setInstructorId\",\n value: function setInstructorId() {\n var instructorId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n this._instuctorId = instructorId;\n this.emit('instructorId', this._instuctorId);\n return this._instuctorId;\n }\n }, {\n key: \"setObserverIds\",\n value: function setObserverIds() {\n var observerIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n this._observerIds = observerIds;\n this.emit('observerIds', this._observerIds);\n return this._observerIds;\n }\n }, {\n key: \"setTalkbackIds\",\n value: function setTalkbackIds() {\n var talkbackIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n this._talkbackIds = talkbackIds;\n this.emit('talkbackIds', this._talkbackIds);\n return this._talkbackIds;\n }\n }], [{\n key: \"noop\",\n value: function noop() {}\n }, {\n key: \"randomString\",\n value: function randomString(len) {\n var charSet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n var randomString = '';\n\n for (var i = 0; i < len; i++) {\n var randomPoz = Math.floor(Math.random() * charSet.length);\n randomString += charSet.substring(randomPoz, randomPoz + 1);\n }\n\n return randomString;\n } //TODO: solve\n // #eventList = ['error', 'kicked', 'addLocalParticipant', ,'addRemoteInstructor','addRemoteParticipant','addRemoteTalkback', 'addRemoteObserver', 'removeRemoteInstructor', 'removeLocalParticipant', 'removeRemoteParticipant', 'removeRemoteTalkback', 'removeRemoteObserver', 'localMuted', 'localHasVideo', 'localHasAudio', 'data', 'iceState', 'connectionState', 'joined', 'joining', 'dataChannel', 'disconnect', 'observerIds', 'talkbackIds', 'instructorId', 'published', 'publishing', 'remoteTrackMuted', 'streamingStatus', 'streaming', 'streamStarting'];\n //\n // #sessionTypes = {\n // 'reactooroom': 'janus.plugin.reactooroom',\n // 'streaming': 'janus.plugin.streaming'\n // };\n\n }, {\n key: \"sessionTypes\",\n value: function sessionTypes() {\n return {\n 'reactooroom': 'janus.plugin.reactooroom',\n 'streaming': 'janus.plugin.streaming'\n };\n }\n }, {\n key: \"checkUnifiedPlan\",\n value: function checkUnifiedPlan() {\n var unifiedPlan = false;\n\n if (webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === 'firefox' && webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.version >= 59) {\n // Firefox definitely does, starting from version 59\n unifiedPlan = true;\n } else if (webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.browser === 'chrome' && webrtc_adapter__WEBPACK_IMPORTED_MODULE_0__[\"default\"].browserDetails.version >= 72) {\n // Chrome does, but it's only usable from version 72 on\n unifiedPlan = true;\n } else if (!window.RTCRtpTransceiver || !('currentDirection' in RTCRtpTransceiver.prototype)) {\n // Safari supports addTransceiver() but not Unified Plan when\n // currentDirection is not defined (see codepen above).\n unifiedPlan = false;\n } else {\n // Check if addTransceiver() throws an exception\n var tempPc = new RTCPeerConnection();\n\n try {\n tempPc.addTransceiver('audio');\n unifiedPlan = true;\n } catch (e) {}\n\n tempPc.close();\n }\n\n return unifiedPlan;\n }\n }]);\n\n return RoomSession;\n}();\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Room);\n\n//# sourceURL=webpack://WatchTogetherSDK/./src/modules/wt-room.js?");
|
|
9298
8574
|
|
|
9299
8575
|
/***/ }),
|
|
9300
8576
|
|
|
@@ -9306,7 +8582,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var webr
|
|
|
9306
8582
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9307
8583
|
|
|
9308
8584
|
"use strict";
|
|
9309
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"wait\", function() { return wait; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getBrowserFingerprint\", function() { return getBrowserFingerprint; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"generateUUID\", function() { return generateUUID; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setExactTimeout\", function() { return setExactTimeout; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"clearExactTimeout\", function() { return clearExactTimeout; });\n/* harmony import */ var _fingerprintjs_fingerprintjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fingerprintjs/fingerprintjs */ \"./node_modules/@fingerprintjs/fingerprintjs/
|
|
8585
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"wait\", function() { return wait; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getBrowserFingerprint\", function() { return getBrowserFingerprint; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"generateUUID\", function() { return generateUUID; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"setExactTimeout\", function() { return setExactTimeout; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"clearExactTimeout\", function() { return clearExactTimeout; });\n/* harmony import */ var _fingerprintjs_fingerprintjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fingerprintjs/fingerprintjs */ \"./node_modules/@fingerprintjs/fingerprintjs/dist/fp.esm.js\");\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\nvar wait = function wait(ms) {\n return new Promise(function (resolve) {\n return setTimeout(resolve, ms);\n });\n};\n\nvar fingerprint = _fingerprintjs_fingerprintjs__WEBPACK_IMPORTED_MODULE_0__[\"default\"].load({\n monitoring: false\n});\n\nvar getBrowserFingerprint = function getBrowserFingerprint() {\n var instanceType = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var salt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n return fingerprint.then(function (fp) {\n return fp.get();\n }).then(function (result) {\n var components = _objectSpread(_objectSpread({}, result.components), {}, {\n instanceType: {\n value: instanceType + '_' + salt\n }\n });\n\n return [8, 13, 18, 23].reduce(function (acc, cur) {\n return acc.slice(0, cur) + '-' + acc.slice(cur);\n }, _fingerprintjs_fingerprintjs__WEBPACK_IMPORTED_MODULE_0__[\"default\"].hashComponents(components)).substring(0, 36);\n });\n};\n\nvar generateUUID = function generateUUID() {\n var d = Date.now();\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n var r = (d + Math.random() * 16) % 16 | 0;\n d = Math.floor(d / 16);\n return (c == 'x' ? r : r & 0x3 | 0x8).toString(16);\n });\n};\n\nvar setExactTimeout = function setExactTimeout(callback, duration, resolution) {\n var start = new Date().getTime();\n var timeout = setInterval(function () {\n if (new Date().getTime() - start > duration) {\n callback();\n clearInterval(timeout);\n }\n }, resolution);\n return timeout;\n};\n\nvar clearExactTimeout = function clearExactTimeout(timeout) {\n clearInterval(timeout);\n};\n\n\n\n//# sourceURL=webpack://WatchTogetherSDK/./src/modules/wt-utils.js?");
|
|
9310
8586
|
|
|
9311
8587
|
/***/ }),
|
|
9312
8588
|
|