@webex/plugin-meetings 3.13.0-next.5 → 3.13.0-next.7
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/babel.config.js +17 -1
- package/dist/aiEnableRequest/index.js +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/common/wasm-loader.js +174 -0
- package/dist/common/wasm-loader.js.map +1 -0
- package/dist/config.js +2 -1
- package/dist/config.js.map +1 -1
- package/dist/e2ee/E2eeManager.js +91 -0
- package/dist/e2ee/E2eeManager.js.map +1 -0
- package/dist/e2ee/E2eeSignaling.js +200 -0
- package/dist/e2ee/E2eeSignaling.js.map +1 -0
- package/dist/e2ee/MediaEncryptionService.js +75 -0
- package/dist/e2ee/MediaEncryptionService.js.map +1 -0
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meetings/index.js +20 -0
- package/dist/meetings/index.js.map +1 -1
- package/dist/types/common/wasm-loader.d.ts +55 -0
- package/dist/types/config.d.ts +1 -0
- package/dist/types/e2ee/E2eeManager.d.ts +23 -0
- package/dist/types/e2ee/E2eeSignaling.d.ts +94 -0
- package/dist/types/e2ee/MediaEncryptionService.d.ts +27 -0
- package/dist/types/meetings/index.d.ts +4 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +1 -1
- package/src/common/wasm-loader.ts +124 -0
- package/src/config.ts +1 -0
- package/src/e2ee/E2eeManager.ts +58 -0
- package/src/e2ee/E2eeSignaling.ts +215 -0
- package/src/e2ee/MediaEncryptionService.ts +41 -0
- package/src/meetings/ai-docs/meetings-spec.md +2 -0
- package/src/meetings/index.ts +18 -0
- package/test/unit/spec/common/wasm-loader.ts +171 -0
- package/test/unit/spec/e2ee/E2eeManager.ts +82 -0
- package/test/unit/spec/e2ee/E2eeSignaling.ts +172 -0
- package/test/unit/spec/e2ee/MediaEncryptionService.ts +43 -0
- package/test/unit/spec/meetings/index.js +20 -0
package/babel.config.js
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
const babelConfigLegacy = require('@webex/babel-config-legacy');
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const [presetEnv, ...otherPresets] = babelConfigLegacy.presets;
|
|
4
|
+
const [presetEnvName, presetEnvOptions] = presetEnv;
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
...babelConfigLegacy,
|
|
8
|
+
overrides: [
|
|
9
|
+
{
|
|
10
|
+
// Keep the WASM loader's dynamic import() native instead of compiling it to require(), so
|
|
11
|
+
// the runtime-served emscripten loader is fetched by the browser rather than bundled.
|
|
12
|
+
test: /src[\\/]common[\\/]wasm-loader\.ts$/,
|
|
13
|
+
presets: [
|
|
14
|
+
[presetEnvName, {...presetEnvOptions, exclude: ['transform-dynamic-import']}],
|
|
15
|
+
...otherPresets,
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
};
|
|
@@ -191,7 +191,7 @@ var AIEnableRequest = _webexCore.WebexPlugin.extend({
|
|
|
191
191
|
method: _constants.HTTP_VERBS.PUT
|
|
192
192
|
});
|
|
193
193
|
},
|
|
194
|
-
version: "3.13.0-next.
|
|
194
|
+
version: "3.13.0-next.7"
|
|
195
195
|
});
|
|
196
196
|
var _default = exports.default = AIEnableRequest;
|
|
197
197
|
//# sourceMappingURL=index.js.map
|
package/dist/breakouts/index.js
CHANGED
|
@@ -1230,7 +1230,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
|
|
|
1230
1230
|
this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
|
|
1231
1231
|
}
|
|
1232
1232
|
},
|
|
1233
|
-
version: "3.13.0-next.
|
|
1233
|
+
version: "3.13.0-next.7"
|
|
1234
1234
|
});
|
|
1235
1235
|
var _default = exports.default = Breakouts;
|
|
1236
1236
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
|
|
10
|
+
var _map = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/map"));
|
|
11
|
+
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
|
|
12
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
|
|
13
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
14
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
|
15
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
|
|
16
|
+
var _loggerProxy = _interopRequireDefault(require("./logs/logger-proxy"));
|
|
17
|
+
/*!
|
|
18
|
+
* Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* An emscripten MODULARIZE factory — the default export of a generated `*.js` WASM loader. Calling
|
|
23
|
+
* it instantiates the module; `locateFile` lets us point the loader at the `.wasm` binary URL.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Natively imports an emscripten loader served at runtime.
|
|
28
|
+
*
|
|
29
|
+
* This must stay a real `import()`: babel.config.js excludes `transform-dynamic-import` for this
|
|
30
|
+
* file so Babel doesn't rewrite it to `require()`, and `webpackIgnore` stops consumers' webpack
|
|
31
|
+
* from trying to bundle it. The URL is resolved against the document because a native `import()`
|
|
32
|
+
* would otherwise resolve relative paths against the SDK bundle's URL.
|
|
33
|
+
* @param {string} jsUrl - URL of the emscripten loader module (e.g. '/assets/plugin-meetings/e2ee.js').
|
|
34
|
+
* @returns {Promise<{default: EmscriptenModuleFactory}>}
|
|
35
|
+
*/
|
|
36
|
+
var nativeImport = function nativeImport(jsUrl) {
|
|
37
|
+
return import(/* webpackIgnore: true */new URL(jsUrl, document.baseURI).href);
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Loads and caches emscripten WebAssembly modules, each uniquely identified by its `.wasm` URL
|
|
41
|
+
* (the `.js` loader URL is derived by replacing the `.wasm` suffix). A single instance can load
|
|
42
|
+
* multiple distinct modules; each URL is loaded at most once and cached. Instantiated once per
|
|
43
|
+
* session so slow loads can be warmed ahead of when they're needed.
|
|
44
|
+
*/
|
|
45
|
+
var WasmLoader = exports.default = /*#__PURE__*/function () {
|
|
46
|
+
/**
|
|
47
|
+
* @param {Object} [options]
|
|
48
|
+
* @param {Function} [options.importModule] - Override the dynamic import (used by tests).
|
|
49
|
+
*/
|
|
50
|
+
function WasmLoader() {
|
|
51
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
52
|
+
importModule = _ref.importModule;
|
|
53
|
+
(0, _classCallCheck2.default)(this, WasmLoader);
|
|
54
|
+
(0, _defineProperty2.default)(this, "importModule", void 0);
|
|
55
|
+
(0, _defineProperty2.default)(this, "modules", new _map.default());
|
|
56
|
+
this.importModule = importModule || nativeImport;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @param {string} wasmUrl
|
|
61
|
+
* @returns {boolean} whether the module for the given URL has finished loading and is cached.
|
|
62
|
+
*/
|
|
63
|
+
return (0, _createClass2.default)(WasmLoader, [{
|
|
64
|
+
key: "isLoaded",
|
|
65
|
+
value: function isLoaded(wasmUrl) {
|
|
66
|
+
var cached = this.modules.get(wasmUrl);
|
|
67
|
+
return !!cached && cached.instance !== null;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Warms the cache for the given module URL. Safe to call repeatedly; concurrent calls share a
|
|
72
|
+
* single load.
|
|
73
|
+
* @param {string} wasmUrl
|
|
74
|
+
* @returns {Promise<void>}
|
|
75
|
+
*/
|
|
76
|
+
}, {
|
|
77
|
+
key: "preload",
|
|
78
|
+
value: (function () {
|
|
79
|
+
var _preload = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(wasmUrl) {
|
|
80
|
+
return _regenerator.default.wrap(function (_context) {
|
|
81
|
+
while (1) switch (_context.prev = _context.next) {
|
|
82
|
+
case 0:
|
|
83
|
+
_context.next = 1;
|
|
84
|
+
return this.get(wasmUrl);
|
|
85
|
+
case 1:
|
|
86
|
+
case "end":
|
|
87
|
+
return _context.stop();
|
|
88
|
+
}
|
|
89
|
+
}, _callee, this);
|
|
90
|
+
}));
|
|
91
|
+
function preload(_x) {
|
|
92
|
+
return _preload.apply(this, arguments);
|
|
93
|
+
}
|
|
94
|
+
return preload;
|
|
95
|
+
}()
|
|
96
|
+
/**
|
|
97
|
+
* Returns the cached module for the given URL, loading it if necessary.
|
|
98
|
+
* @param {string} wasmUrl
|
|
99
|
+
* @returns {Promise<TModule>}
|
|
100
|
+
*/
|
|
101
|
+
)
|
|
102
|
+
}, {
|
|
103
|
+
key: "get",
|
|
104
|
+
value: function get(wasmUrl) {
|
|
105
|
+
var cached = this.modules.get(wasmUrl);
|
|
106
|
+
if (!cached) {
|
|
107
|
+
cached = {
|
|
108
|
+
instance: null,
|
|
109
|
+
loadPromise: null
|
|
110
|
+
};
|
|
111
|
+
this.modules.set(wasmUrl, cached);
|
|
112
|
+
}
|
|
113
|
+
if (cached.instance !== null) {
|
|
114
|
+
return _promise.default.resolve(cached.instance);
|
|
115
|
+
}
|
|
116
|
+
if (!cached.loadPromise) {
|
|
117
|
+
cached.loadPromise = this.load(wasmUrl, cached);
|
|
118
|
+
}
|
|
119
|
+
return cached.loadPromise;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @param {string} wasmUrl
|
|
124
|
+
* @param {CachedModule} cached
|
|
125
|
+
* @returns {Promise<unknown>}
|
|
126
|
+
*/
|
|
127
|
+
}, {
|
|
128
|
+
key: "load",
|
|
129
|
+
value: (function () {
|
|
130
|
+
var _load = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(wasmUrl, cached) {
|
|
131
|
+
var jsUrl, _yield$this$importMod, factory, instance, _t;
|
|
132
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
133
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
134
|
+
case 0:
|
|
135
|
+
jsUrl = wasmUrl.replace(/\.wasm(?=[?#]|$)/, '.js');
|
|
136
|
+
_context2.prev = 1;
|
|
137
|
+
_context2.next = 2;
|
|
138
|
+
return this.importModule(jsUrl);
|
|
139
|
+
case 2:
|
|
140
|
+
_yield$this$importMod = _context2.sent;
|
|
141
|
+
factory = _yield$this$importMod.default;
|
|
142
|
+
_context2.next = 3;
|
|
143
|
+
return factory({
|
|
144
|
+
locateFile: function locateFile(path) {
|
|
145
|
+
return path.endsWith('.wasm') ? wasmUrl : path;
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
case 3:
|
|
149
|
+
instance = _context2.sent;
|
|
150
|
+
cached.instance = instance;
|
|
151
|
+
return _context2.abrupt("return", instance);
|
|
152
|
+
case 4:
|
|
153
|
+
_context2.prev = 4;
|
|
154
|
+
_t = _context2["catch"](1);
|
|
155
|
+
// Reset so a failed load can be retried on the next get().
|
|
156
|
+
cached.loadPromise = null;
|
|
157
|
+
_loggerProxy.default.logger.error("WasmLoader#load --> failed to load WASM module ".concat(wasmUrl, ": ").concat(_t));
|
|
158
|
+
throw new Error("Failed to load WASM module ".concat(wasmUrl, ": ").concat(_t), {
|
|
159
|
+
cause: _t
|
|
160
|
+
});
|
|
161
|
+
case 5:
|
|
162
|
+
case "end":
|
|
163
|
+
return _context2.stop();
|
|
164
|
+
}
|
|
165
|
+
}, _callee2, this, [[1, 4]]);
|
|
166
|
+
}));
|
|
167
|
+
function load(_x2, _x3) {
|
|
168
|
+
return _load.apply(this, arguments);
|
|
169
|
+
}
|
|
170
|
+
return load;
|
|
171
|
+
}())
|
|
172
|
+
}]);
|
|
173
|
+
}();
|
|
174
|
+
//# sourceMappingURL=wasm-loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_loggerProxy","_interopRequireDefault","require","nativeImport","jsUrl","URL","document","baseURI","href","WasmLoader","exports","default","_ref","arguments","length","undefined","importModule","_classCallCheck2","_defineProperty2","_map","_createClass2","key","value","isLoaded","wasmUrl","cached","modules","get","instance","_preload","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_context","prev","next","stop","preload","_x","apply","loadPromise","set","_promise","resolve","load","_load","_callee2","_yield$this$importMod","factory","_t","_context2","replace","sent","locateFile","path","endsWith","abrupt","LoggerProxy","logger","error","concat","Error","cause","_x2","_x3"],"sources":["wasm-loader.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport LoggerProxy from './logs/logger-proxy';\n\n/**\n * An emscripten MODULARIZE factory — the default export of a generated `*.js` WASM loader. Calling\n * it instantiates the module; `locateFile` lets us point the loader at the `.wasm` binary URL.\n */\nexport type EmscriptenModuleFactory<TModule = unknown> = (moduleOverrides?: {\n locateFile?: (path: string) => string;\n}) => Promise<TModule>;\n\ntype ModuleImporter = (jsUrl: string) => Promise<{default: EmscriptenModuleFactory}>;\n\n/**\n * Natively imports an emscripten loader served at runtime.\n *\n * This must stay a real `import()`: babel.config.js excludes `transform-dynamic-import` for this\n * file so Babel doesn't rewrite it to `require()`, and `webpackIgnore` stops consumers' webpack\n * from trying to bundle it. The URL is resolved against the document because a native `import()`\n * would otherwise resolve relative paths against the SDK bundle's URL.\n * @param {string} jsUrl - URL of the emscripten loader module (e.g. '/assets/plugin-meetings/e2ee.js').\n * @returns {Promise<{default: EmscriptenModuleFactory}>}\n */\nconst nativeImport: ModuleImporter = (jsUrl) =>\n import(/* webpackIgnore: true */ new URL(jsUrl, document.baseURI).href);\n\ninterface CachedModule {\n instance: unknown | null;\n loadPromise: Promise<unknown> | null;\n}\n\n/**\n * Loads and caches emscripten WebAssembly modules, each uniquely identified by its `.wasm` URL\n * (the `.js` loader URL is derived by replacing the `.wasm` suffix). A single instance can load\n * multiple distinct modules; each URL is loaded at most once and cached. Instantiated once per\n * session so slow loads can be warmed ahead of when they're needed.\n */\nexport default class WasmLoader {\n private readonly importModule: ModuleImporter;\n\n private readonly modules = new Map<string, CachedModule>();\n\n /**\n * @param {Object} [options]\n * @param {Function} [options.importModule] - Override the dynamic import (used by tests).\n */\n constructor({importModule}: {importModule?: ModuleImporter} = {}) {\n this.importModule = importModule || nativeImport;\n }\n\n /**\n * @param {string} wasmUrl\n * @returns {boolean} whether the module for the given URL has finished loading and is cached.\n */\n isLoaded(wasmUrl: string): boolean {\n const cached = this.modules.get(wasmUrl);\n\n return !!cached && cached.instance !== null;\n }\n\n /**\n * Warms the cache for the given module URL. Safe to call repeatedly; concurrent calls share a\n * single load.\n * @param {string} wasmUrl\n * @returns {Promise<void>}\n */\n async preload(wasmUrl: string): Promise<void> {\n await this.get(wasmUrl);\n }\n\n /**\n * Returns the cached module for the given URL, loading it if necessary.\n * @param {string} wasmUrl\n * @returns {Promise<TModule>}\n */\n get<TModule = unknown>(wasmUrl: string): Promise<TModule> {\n let cached = this.modules.get(wasmUrl);\n\n if (!cached) {\n cached = {instance: null, loadPromise: null};\n this.modules.set(wasmUrl, cached);\n }\n\n if (cached.instance !== null) {\n return Promise.resolve(cached.instance as TModule);\n }\n if (!cached.loadPromise) {\n cached.loadPromise = this.load(wasmUrl, cached);\n }\n\n return cached.loadPromise as Promise<TModule>;\n }\n\n /**\n * @param {string} wasmUrl\n * @param {CachedModule} cached\n * @returns {Promise<unknown>}\n */\n private async load(wasmUrl: string, cached: CachedModule): Promise<unknown> {\n const jsUrl = wasmUrl.replace(/\\.wasm(?=[?#]|$)/, '.js');\n\n try {\n const {default: factory} = await this.importModule(jsUrl);\n const instance = await factory({\n locateFile: (path: string) => (path.endsWith('.wasm') ? wasmUrl : path),\n });\n\n cached.instance = instance;\n\n return instance;\n } catch (error) {\n // Reset so a failed load can be retried on the next get().\n cached.loadPromise = null;\n LoggerProxy.logger.error(\n `WasmLoader#load --> failed to load WASM module ${wasmUrl}: ${error}`\n );\n\n throw new Error(`Failed to load WASM module ${wasmUrl}: ${error}`, {cause: error});\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAIA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AAJA;AACA;AACA;;AAIA;AACA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMC,YAA4B,GAAG,SAA/BA,YAA4BA,CAAIC,KAAK;EAAA,OACzC,MAAM,CAAC,yBAA0B,IAAIC,GAAG,CAACD,KAAK,EAAEE,QAAQ,CAACC,OAAO,CAAC,CAACC,IAAI,CAAC;AAAA;AAOzE;AACA;AACA;AACA;AACA;AACA;AALA,IAMqBC,UAAU,GAAAC,OAAA,CAAAC,OAAA;EAK7B;AACF;AACA;AACA;EACE,SAAAF,WAAA,EAAkE;IAAA,IAAAG,IAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAJ,CAAC,CAAC;MAAnDG,YAAY,GAAAJ,IAAA,CAAZI,YAAY;IAAA,IAAAC,gBAAA,CAAAN,OAAA,QAAAF,UAAA;IAAA,IAAAS,gBAAA,CAAAP,OAAA;IAAA,IAAAO,gBAAA,CAAAP,OAAA,mBANE,IAAAQ,IAAA,CAAAR,OAAA,CAA8B,CAAC;IAOxD,IAAI,CAACK,YAAY,GAAGA,YAAY,IAAIb,YAAY;EAClD;;EAEA;AACF;AACA;AACA;EAHE,WAAAiB,a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A,QAAQ;cAAC,OAAAwB,SAAA,CAAAM,MAAA,WAEpB9B,QAAQ;YAAA;cAAAwB,SAAA,CAAAhB,IAAA;cAAAe,EAAA,GAAAC,SAAA;cAEf;cACA3B,MAAM,CAACiB,WAAW,GAAG,IAAI;cACzBiB,oBAAW,CAACC,MAAM,CAACC,KAAK,mDAAAC,MAAA,CAC4BtC,OAAO,QAAAsC,MAAA,CAAAX,EAAA,CAC3D,CAAC;cAAC,MAEI,IAAIY,KAAK,+BAAAD,MAAA,CAA+BtC,OAAO,QAAAsC,MAAA,CAAAX,EAAA,GAAc;gBAACa,KAAK,EAAAb;cAAO,CAAC,CAAC;YAAA;YAAA;cAAA,OAAAC,SAAA,CAAAd,IAAA;UAAA;QAAA,GAAAU,QAAA;MAAA,CAErF;MAAA,SArBaF,IAAIA,CAAAmB,GAAA,EAAAC,GAAA;QAAA,OAAAnB,KAAA,CAAAN,KAAA,OAAA5B,SAAA;MAAA;MAAA,OAAJiC,IAAI;IAAA;EAAA;AAAA","ignoreList":[]}
|
package/dist/config.js
CHANGED
|
@@ -89,7 +89,8 @@ var _default = exports.default = {
|
|
|
89
89
|
receiveTranscription: false,
|
|
90
90
|
enableExtmap: false,
|
|
91
91
|
enableAutomaticLLM: false,
|
|
92
|
-
|
|
92
|
+
enableE2ee: false,
|
|
93
|
+
assetsBaseUrl: (0, _common.getUmdAssetsBaseUrl)('plugin-meetings', "3.13.0-next.8", "3.13.0-next.7"),
|
|
93
94
|
installedOrgID: undefined,
|
|
94
95
|
multipartSitePrefixList: ['.my.', '.mydmz.', '.mybts.', '.mydev.', '.myats2.', '.myats.'],
|
|
95
96
|
experimental: {
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_common","require","_default","exports","default","meetings","deviceType","WEB","mediaSettings","pstn","reconnection","enabled","autoRejoin","detection","iceReconnectionTimeout","maxRejoinAttempts","stats","enableStatsAnalyzer","autoDowngradeEnabled","interval","analyzerInterval","historyMax","videoPacketLossRatioThreshold","rttThreshold","jitterThreshold","metrics","clientName","clientType","subClientType","mqaMetricsInterval","autoSendMQA","logging","enable","verboseEvents","resolution","maxWidth","maxHeight","idealWidth","idealHeight","screenResolution","bandwidth","audio","video","startBitrate","screenFrameRate","videoShareFrameRate","aspectRatio","autoUploadLogs","enableRtx","receiveTranscription","enableExtmap","enableAutomaticLLM","assetsBaseUrl","getUmdAssetsBaseUrl","installedOrgID","undefined","multipartSitePrefixList","experimental","enableMediaNegotiatedEvent","enableUnifiedMeetings","enableAdhocMeetings","storeLocusHashTreeEventsForDebugging","degradationPreferences","maxMacroblocksLimit","enableAv1SlidesSupport","iceCandidatesGatheringTimeout","backendIpv6NativeSupport","enableReachabilityChecks","reachabilityGetClusterTimeout","logUploadIntervalMultiplicationFactor","stopIceGatheringAfterFirstRelayCandidate","enableAudioTwccForMultistream","enablePerUdpUrlReachability","locus","excludedDataSets"],"sources":["config.ts"],"sourcesContent":["// @ts-ignore\nimport {deviceType, getUmdAssetsBaseUrl} from '@webex/common';\n\ndeclare const SDK_VERSION: string;\ndeclare const PACKAGE_VERSION: string;\n\nexport default {\n // TODO: this needs to be defaulted\n // to JS_SDK and clients set it to WEB or others\n // see https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-73167\n meetings: {\n deviceType: deviceType.WEB,\n mediaSettings: {\n pstn: false,\n },\n reconnection: {\n enabled: false,\n autoRejoin: true,\n detection: true,\n // Timeout duration to wait for ICE to reconnect if a disconnect is received.\n iceReconnectionTimeout: 10000,\n // Amount of times attempting to rejoin a meeting during reconnect\n maxRejoinAttempts: 3,\n },\n stats: {\n // Enable the webrtc stats analyzer that emits quality degradation events\n enableStatsAnalyzer: true,\n // Enable the auto downgrade video quality feature\n autoDowngradeEnabled: false,\n // 1 second intervals to collect stats data\n interval: 1000,\n // we just want to analyze data every 5 sec interval\n analyzerInterval: 5000,\n // hold the last 2 minute of a calls data\n historyMax: 120,\n // Once packet loss hits this ratio, the video will downgrade\n videoPacketLossRatioThreshold: 9, // comparison of packets lost / packets received\n rttThreshold: 500, // 500 ms noticeable quality lag begins based on bandwidth of user\n jitterThreshold: 500, // 500 ms noticeable quality lag begins based on bandwidth of user\n },\n metrics: {\n // change to your client name else data will be muddled\n // you do not need a specific format, and you do not need to register it\n clientName: 'WEBEX_JS_SDK',\n // TODO: for now this line has to be whitelisted, which is problematic for third party\n clientType: 'WEBEX_SDK',\n // Stores the sub client type used when sending metrics\n subClientType: 'WEB_APP',\n // send average values MQA in 60 second intervals\n mqaMetricsInterval: 60000,\n // send to cisco internal MQA data automatically\n // we already send CA\n autoSendMQA: true,\n },\n logging: {\n enable: true,\n verboseEvents: true,\n },\n resolution: {\n maxWidth: 1280,\n maxHeight: 720,\n idealWidth: 1280,\n idealHeight: 720,\n },\n screenResolution: {\n maxWidth: 1920,\n maxHeight: 1080,\n idealWidth: 1920,\n idealHeight: 1080,\n },\n bandwidth: {\n // please note, these are the maximum bandwidth values\n // the server supports, minimums have to be tested\n audio: 64000,\n video: 4000000,\n startBitrate: 2000,\n },\n screenFrameRate: 10,\n videoShareFrameRate: 30,\n aspectRatio: 1.7695852534562213,\n // When enabled, as calls are ended, it will upload the SDK logs and correlate them\n autoUploadLogs: true,\n enableRtx: true,\n receiveTranscription: false,\n enableExtmap: false,\n enableAutomaticLLM: false,\n assetsBaseUrl: getUmdAssetsBaseUrl('plugin-meetings', SDK_VERSION, PACKAGE_VERSION),\n installedOrgID: undefined,\n multipartSitePrefixList: ['.my.', '.mydmz.', '.mybts.', '.mydev.', '.myats2.', '.myats.'],\n experimental: {\n enableMediaNegotiatedEvent: false,\n enableUnifiedMeetings: true,\n enableAdhocMeetings: true,\n storeLocusHashTreeEventsForDebugging: false,\n },\n degradationPreferences: {\n maxMacroblocksLimit: 8192,\n },\n enableAv1SlidesSupport: false,\n // This only applies to non-multistream meetings\n iceCandidatesGatheringTimeout: undefined,\n backendIpv6NativeSupport: false,\n enableReachabilityChecks: true,\n reachabilityGetClusterTimeout: 5000,\n logUploadIntervalMultiplicationFactor: 0, // if set to 0 or undefined, logs won't be uploaded periodically, if you want periodic logs, recommended value is 1\n stopIceGatheringAfterFirstRelayCandidate: false,\n enableAudioTwccForMultistream: false,\n enablePerUdpUrlReachability: false, // true: separate peer connection per each UDP URL; false: single peer connection for all URLs\n locus: {\n excludedDataSets: ['attendees'], // attendees data set only applies to webinar attendees and we never really need that\n },\n },\n};\n"],"mappings":";;;;;;;AACA,IAAAA,OAAA,GAAAC,OAAA;AADA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMe;EACb;EACA;EACA;EACAC,QAAQ,EAAE;IACRC,UAAU,EAAEA,kBAAU,CAACC,GAAG;IAC1BC,aAAa,EAAE;MACbC,IAAI,EAAE;IACR,CAAC;IACDC,YAAY,EAAE;MACZC,OAAO,EAAE,KAAK;MACdC,UAAU,EAAE,IAAI;MAChBC,SAAS,EAAE,IAAI;MACf;MACAC,sBAAsB,EAAE,KAAK;MAC7B;MACAC,iBAAiB,EAAE;IACrB,CAAC;IACDC,KAAK,EAAE;MACL;MACAC,mBAAmB,EAAE,IAAI;MACzB;MACAC,oBAAoB,EAAE,KAAK;MAC3B;MACAC,QAAQ,EAAE,IAAI;MACd;MACAC,gBAAgB,EAAE,IAAI;MACtB;MACAC,UAAU,EAAE,GAAG;MACf;MACAC,6BAA6B,EAAE,CAAC;MAAE;MAClCC,YAAY,EAAE,GAAG;MAAE;MACnBC,eAAe,EAAE,GAAG,CAAE;IACxB,CAAC;IACDC,OAAO,EAAE;MACP;MACA;MACAC,UAAU,EAAE,cAAc;MAC1B;MACAC,UAAU,EAAE,WAAW;MACvB;MACAC,aAAa,EAAE,SAAS;MACxB;MACAC,kBAAkB,EAAE,KAAK;MACzB;MACA;MACAC,WAAW,EAAE;IACf,CAAC;IACDC,OAAO,EAAE;MACPC,MAAM,EAAE,IAAI;MACZC,aAAa,EAAE;IACjB,CAAC;IACDC,UAAU,EAAE;MACVC,QAAQ,EAAE,IAAI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CAAC,CAAE;IACnC;EACF;AACF,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_common","require","_default","exports","default","meetings","deviceType","WEB","mediaSettings","pstn","reconnection","enabled","autoRejoin","detection","iceReconnectionTimeout","maxRejoinAttempts","stats","enableStatsAnalyzer","autoDowngradeEnabled","interval","analyzerInterval","historyMax","videoPacketLossRatioThreshold","rttThreshold","jitterThreshold","metrics","clientName","clientType","subClientType","mqaMetricsInterval","autoSendMQA","logging","enable","verboseEvents","resolution","maxWidth","maxHeight","idealWidth","idealHeight","screenResolution","bandwidth","audio","video","startBitrate","screenFrameRate","videoShareFrameRate","aspectRatio","autoUploadLogs","enableRtx","receiveTranscription","enableExtmap","enableAutomaticLLM","enableE2ee","assetsBaseUrl","getUmdAssetsBaseUrl","installedOrgID","undefined","multipartSitePrefixList","experimental","enableMediaNegotiatedEvent","enableUnifiedMeetings","enableAdhocMeetings","storeLocusHashTreeEventsForDebugging","degradationPreferences","maxMacroblocksLimit","enableAv1SlidesSupport","iceCandidatesGatheringTimeout","backendIpv6NativeSupport","enableReachabilityChecks","reachabilityGetClusterTimeout","logUploadIntervalMultiplicationFactor","stopIceGatheringAfterFirstRelayCandidate","enableAudioTwccForMultistream","enablePerUdpUrlReachability","locus","excludedDataSets"],"sources":["config.ts"],"sourcesContent":["// @ts-ignore\nimport {deviceType, getUmdAssetsBaseUrl} from '@webex/common';\n\ndeclare const SDK_VERSION: string;\ndeclare const PACKAGE_VERSION: string;\n\nexport default {\n // TODO: this needs to be defaulted\n // to JS_SDK and clients set it to WEB or others\n // see https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-73167\n meetings: {\n deviceType: deviceType.WEB,\n mediaSettings: {\n pstn: false,\n },\n reconnection: {\n enabled: false,\n autoRejoin: true,\n detection: true,\n // Timeout duration to wait for ICE to reconnect if a disconnect is received.\n iceReconnectionTimeout: 10000,\n // Amount of times attempting to rejoin a meeting during reconnect\n maxRejoinAttempts: 3,\n },\n stats: {\n // Enable the webrtc stats analyzer that emits quality degradation events\n enableStatsAnalyzer: true,\n // Enable the auto downgrade video quality feature\n autoDowngradeEnabled: false,\n // 1 second intervals to collect stats data\n interval: 1000,\n // we just want to analyze data every 5 sec interval\n analyzerInterval: 5000,\n // hold the last 2 minute of a calls data\n historyMax: 120,\n // Once packet loss hits this ratio, the video will downgrade\n videoPacketLossRatioThreshold: 9, // comparison of packets lost / packets received\n rttThreshold: 500, // 500 ms noticeable quality lag begins based on bandwidth of user\n jitterThreshold: 500, // 500 ms noticeable quality lag begins based on bandwidth of user\n },\n metrics: {\n // change to your client name else data will be muddled\n // you do not need a specific format, and you do not need to register it\n clientName: 'WEBEX_JS_SDK',\n // TODO: for now this line has to be whitelisted, which is problematic for third party\n clientType: 'WEBEX_SDK',\n // Stores the sub client type used when sending metrics\n subClientType: 'WEB_APP',\n // send average values MQA in 60 second intervals\n mqaMetricsInterval: 60000,\n // send to cisco internal MQA data automatically\n // we already send CA\n autoSendMQA: true,\n },\n logging: {\n enable: true,\n verboseEvents: true,\n },\n resolution: {\n maxWidth: 1280,\n maxHeight: 720,\n idealWidth: 1280,\n idealHeight: 720,\n },\n screenResolution: {\n maxWidth: 1920,\n maxHeight: 1080,\n idealWidth: 1920,\n idealHeight: 1080,\n },\n bandwidth: {\n // please note, these are the maximum bandwidth values\n // the server supports, minimums have to be tested\n audio: 64000,\n video: 4000000,\n startBitrate: 2000,\n },\n screenFrameRate: 10,\n videoShareFrameRate: 30,\n aspectRatio: 1.7695852534562213,\n // When enabled, as calls are ended, it will upload the SDK logs and correlate them\n autoUploadLogs: true,\n enableRtx: true,\n receiveTranscription: false,\n enableExtmap: false,\n enableAutomaticLLM: false,\n enableE2ee: false,\n assetsBaseUrl: getUmdAssetsBaseUrl('plugin-meetings', SDK_VERSION, PACKAGE_VERSION),\n installedOrgID: undefined,\n multipartSitePrefixList: ['.my.', '.mydmz.', '.mybts.', '.mydev.', '.myats2.', '.myats.'],\n experimental: {\n enableMediaNegotiatedEvent: false,\n enableUnifiedMeetings: true,\n enableAdhocMeetings: true,\n storeLocusHashTreeEventsForDebugging: false,\n },\n degradationPreferences: {\n maxMacroblocksLimit: 8192,\n },\n enableAv1SlidesSupport: false,\n // This only applies to non-multistream meetings\n iceCandidatesGatheringTimeout: undefined,\n backendIpv6NativeSupport: false,\n enableReachabilityChecks: true,\n reachabilityGetClusterTimeout: 5000,\n logUploadIntervalMultiplicationFactor: 0, // if set to 0 or undefined, logs won't be uploaded periodically, if you want periodic logs, recommended value is 1\n stopIceGatheringAfterFirstRelayCandidate: false,\n enableAudioTwccForMultistream: false,\n enablePerUdpUrlReachability: false, // true: separate peer connection per each UDP URL; false: single peer connection for all URLs\n locus: {\n excludedDataSets: ['attendees'], // attendees data set only applies to webinar attendees and we never really need that\n },\n },\n};\n"],"mappings":";;;;;;;AACA,IAAAA,OAAA,GAAAC,OAAA;AADA;AAAA,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAMe;EACb;EACA;EACA;EACAC,QAAQ,EAAE;IACRC,UAAU,EAAEA,kBAAU,CAACC,GAAG;IAC1BC,aAAa,EAAE;MACbC,IAAI,EAAE;IACR,CAAC;IACDC,YAAY,EAAE;MACZC,OAAO,EAAE,KAAK;MACdC,UAAU,EAAE,IAAI;MAChBC,SAAS,EAAE,IAAI;MACf;MACAC,sBAAsB,EAAE,KAAK;MAC7B;MACAC,iBAAiB,EAAE;IACrB,CAAC;IACDC,KAAK,EAAE;MACL;MACAC,mBAAmB,EAAE,IAAI;MACzB;MACAC,oBAAoB,EAAE,KAAK;MAC3B;MACAC,QAAQ,EAAE,IAAI;MACd;MACAC,gBAAgB,EAAE,IAAI;MACtB;MACAC,UAAU,EAAE,GAAG;MACf;MACAC,6BAA6B,EAAE,CAAC;MAAE;MAClCC,YAAY,EAAE,GAAG;MAAE;MACnBC,eAAe,EAAE,GAAG,CAAE;IACxB,CAAC;IACDC,OAAO,EAAE;MACP;MACA;MACAC,UAAU,EAAE,cAAc;MAC1B;MACAC,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xCW,wBAAwB,EAAE,KAAK;IAC/BC,wBAAwB,EAAE,IAAI;IAC9BC,6BAA6B,EAAE,IAAI;IACnCC,qCAAqC,EAAE,CAAC;IAAE;IAC1CC,wCAAwC,EAAE,KAAK;IAC/CC,6BAA6B,EAAE,KAAK;IACpCC,2BAA2B,EAAE,KAAK;IAAE;IACpCC,KAAK,EAAE;MACLC,gBAAgB,EAAE,CAAC,WAAW,CAAC,CAAE;IACnC;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
|
|
10
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
|
|
11
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
12
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
|
13
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
|
|
14
|
+
var _webCapabilities = require("@webex/web-capabilities");
|
|
15
|
+
var _webexCore = require("@webex/webex-core");
|
|
16
|
+
var _loggerProxy = _interopRequireDefault(require("../common/logs/logger-proxy"));
|
|
17
|
+
/*!
|
|
18
|
+
* Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
// @ts-ignore - StaticAssetLoader is exported from webex-core's JavaScript entry point.
|
|
22
|
+
|
|
23
|
+
/* The WASM module that contains the libe2ee + mlspp libraries with a WebE2EE wrapper around them, required for joining MLS group for E2EE meetings.
|
|
24
|
+
* The version is in the filename as it is important that JS-SDK implementation of MLS class matches the WASM module version.
|
|
25
|
+
*/
|
|
26
|
+
var E2EE_WASM_ASSET = 'e2ee-0.0.1.wasm';
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Owns E2EE resource preloading for a Meetings plugin session. The per-meeting controller is added
|
|
30
|
+
* in the follow-up integration change; this first step keeps the slow WASM load off the join path.
|
|
31
|
+
*/
|
|
32
|
+
var E2eeManager = exports.default = /*#__PURE__*/function () {
|
|
33
|
+
function E2eeManager(_ref) {
|
|
34
|
+
var webex = _ref.webex,
|
|
35
|
+
wasmLoader = _ref.wasmLoader;
|
|
36
|
+
(0, _classCallCheck2.default)(this, E2eeManager);
|
|
37
|
+
(0, _defineProperty2.default)(this, "webex", void 0);
|
|
38
|
+
(0, _defineProperty2.default)(this, "wasmLoader", void 0);
|
|
39
|
+
(0, _defineProperty2.default)(this, "assetLoader", void 0);
|
|
40
|
+
this.webex = webex;
|
|
41
|
+
this.wasmLoader = wasmLoader;
|
|
42
|
+
this.assetLoader = new _webexCore.StaticAssetLoader({
|
|
43
|
+
baseUrl: webex.config.meetings.assetsBaseUrl
|
|
44
|
+
}, {
|
|
45
|
+
parent: webex
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Warms the E2EE WASM module when configured and supported. Callers should not await this from
|
|
51
|
+
* registration; a loading failure must not prevent the client from registering for meetings.
|
|
52
|
+
* @returns {Promise<void>}
|
|
53
|
+
*/
|
|
54
|
+
return (0, _createClass2.default)(E2eeManager, [{
|
|
55
|
+
key: "preload",
|
|
56
|
+
value: (function () {
|
|
57
|
+
var _preload = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
58
|
+
var _this$webex, _this$webex$config, _this$webex$config$me;
|
|
59
|
+
var enabled, supported, wasmUrl;
|
|
60
|
+
return _regenerator.default.wrap(function (_context) {
|
|
61
|
+
while (1) switch (_context.prev = _context.next) {
|
|
62
|
+
case 0:
|
|
63
|
+
enabled = !!((_this$webex = this.webex) !== null && _this$webex !== void 0 && (_this$webex$config = _this$webex.config) !== null && _this$webex$config !== void 0 && (_this$webex$config$me = _this$webex$config.meetings) !== null && _this$webex$config$me !== void 0 && _this$webex$config$me.enableE2ee);
|
|
64
|
+
supported = _webCapabilities.WebCapabilities.supportsWasm() === _webCapabilities.CapabilityState.CAPABLE;
|
|
65
|
+
if (!(!enabled || !supported)) {
|
|
66
|
+
_context.next = 1;
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
_loggerProxy.default.logger.info('e2ee: E2eeManager#preload --> E2EE disabled or unsupported');
|
|
70
|
+
return _context.abrupt("return");
|
|
71
|
+
case 1:
|
|
72
|
+
wasmUrl = this.assetLoader.getUrl(E2EE_WASM_ASSET);
|
|
73
|
+
_loggerProxy.default.logger.info('e2ee: E2eeManager#preload --> preloading WASM module');
|
|
74
|
+
_context.next = 2;
|
|
75
|
+
return this.wasmLoader.preload(wasmUrl);
|
|
76
|
+
case 2:
|
|
77
|
+
_loggerProxy.default.logger.info('e2ee: E2eeManager#preload --> WASM module preloaded');
|
|
78
|
+
case 3:
|
|
79
|
+
case "end":
|
|
80
|
+
return _context.stop();
|
|
81
|
+
}
|
|
82
|
+
}, _callee, this);
|
|
83
|
+
}));
|
|
84
|
+
function preload() {
|
|
85
|
+
return _preload.apply(this, arguments);
|
|
86
|
+
}
|
|
87
|
+
return preload;
|
|
88
|
+
}())
|
|
89
|
+
}]);
|
|
90
|
+
}();
|
|
91
|
+
//# sourceMappingURL=E2eeManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_webCapabilities","require","_webexCore","_loggerProxy","_interopRequireDefault","E2EE_WASM_ASSET","E2eeManager","exports","default","_ref","webex","wasmLoader","_classCallCheck2","_defineProperty2","assetLoader","StaticAssetLoader","baseUrl","config","meetings","assetsBaseUrl","parent","_createClass2","key","value","_preload","_asyncToGenerator2","_regenerator","mark","_callee","_this$webex","_this$webex$config","_this$webex$config$me","enabled","supported","wasmUrl","wrap","_context","prev","next","enableE2ee","WebCapabilities","supportsWasm","CapabilityState","CAPABLE","LoggerProxy","logger","info","abrupt","getUrl","preload","stop","apply","arguments"],"sources":["E2eeManager.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {CapabilityState, WebCapabilities} from '@webex/web-capabilities';\n// @ts-ignore - StaticAssetLoader is exported from webex-core's JavaScript entry point.\nimport {StaticAssetLoader} from '@webex/webex-core';\n\nimport LoggerProxy from '../common/logs/logger-proxy';\nimport WasmLoader from '../common/wasm-loader';\n\n/* The WASM module that contains the libe2ee + mlspp libraries with a WebE2EE wrapper around them, required for joining MLS group for E2EE meetings.\n * The version is in the filename as it is important that JS-SDK implementation of MLS class matches the WASM module version.\n */\nconst E2EE_WASM_ASSET = 'e2ee-0.0.1.wasm';\n\n/**\n * Owns E2EE resource preloading for a Meetings plugin session. The per-meeting controller is added\n * in the follow-up integration change; this first step keeps the slow WASM load off the join path.\n */\nexport default class E2eeManager {\n private readonly webex: any;\n\n private readonly wasmLoader: WasmLoader;\n\n private readonly assetLoader: StaticAssetLoader;\n\n constructor({webex, wasmLoader}: {webex: any; wasmLoader: WasmLoader}) {\n this.webex = webex;\n this.wasmLoader = wasmLoader;\n this.assetLoader = new StaticAssetLoader(\n {baseUrl: webex.config.meetings.assetsBaseUrl},\n {parent: webex}\n );\n }\n\n /**\n * Warms the E2EE WASM module when configured and supported. Callers should not await this from\n * registration; a loading failure must not prevent the client from registering for meetings.\n * @returns {Promise<void>}\n */\n async preload(): Promise<void> {\n const enabled = !!this.webex?.config?.meetings?.enableE2ee;\n const supported = WebCapabilities.supportsWasm() === CapabilityState.CAPABLE;\n\n if (!enabled || !supported) {\n LoggerProxy.logger.info('e2ee: E2eeManager#preload --> E2EE disabled or unsupported');\n\n return;\n }\n\n const wasmUrl = this.assetLoader.getUrl(E2EE_WASM_ASSET);\n\n LoggerProxy.logger.info('e2ee: E2eeManager#preload --> preloading WASM module');\n await this.wasmLoader.preload(wasmUrl);\n LoggerProxy.logger.info('e2ee: E2eeManager#preload --> WASM module preloaded');\n }\n}\n"],"mappings":";;;;;;;;;;;;;AAIA,IAAAA,gBAAA,GAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAC,sBAAA,CAAAH,OAAA;AARA;AACA;AACA;;AAGA;;AAMA;AACA;AACA;AACA,IAAMI,eAAe,GAAG,iBAAiB;;AAEzC;AACA;AACA;AACA;AAHA,IAIqBC,WAAW,GAAAC,OAAA,CAAAC,OAAA;EAO9B,SAAAF,YAAAG,IAAA,EAAuE;IAAA,IAA1DC,KAAK,GAAAD,IAAA,CAALC,KAAK;MAAEC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IAAA,IAAAC,gBAAA,CAAAJ,OAAA,QAAAF,WAAA;IAAA,IAAAO,gBAAA,CAAAL,OAAA;IAAA,IAAAK,gBAAA,CAAAL,OAAA;IAAA,IAAAK,gBAAA,CAAAL,OAAA;IAC5B,IAAI,CAACE,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACG,WAAW,GAAG,IAAIC,4BAAiB,CACtC;MAACC,OAAO,EAAEN,KAAK,CAACO,MAAM,CAACC,QAAQ,CAACC;IAAa,CAAC,EAC9C;MAACC,MAAM,EAAEV;IAAK,CAChB,CAAC;EACH;;EAEA;AACF;AACA;AACA;AACA;EAJE,WAAAW,aAAA,CAAAb,OAAA,EAAAF,WAAA;IAAAgB,GAAA;IAAAC,KAAA;MAAA,IAAAC,QAAA,OAAAC,kBAAA,CAAAjB,OAAA,eAAAkB,YAAA,CAAAlB,OAAA,CAAAmB,IAAA,CAKA,SAAAC,QAAA;QAAA,IAAAC,WAA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
"use strict";
|
|
2
|
+
|
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
5
|
+
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.MEDIA_ENCRYPTION_MERCURY_EVENTS = exports.LLM_ONLINE_EVENT = void 0;
|
|
9
|
+
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/json/stringify"));
|
|
10
|
+
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
11
|
+
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
|
12
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
|
|
13
|
+
/*!
|
|
14
|
+
* Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/** Source labels passed to the MLS engine for incoming signaling messages. */
|
|
18
|
+
|
|
19
|
+
/** LLM event carrying the channel's connection state. */
|
|
20
|
+
var LLM_ONLINE_EVENT = exports.LLM_ONLINE_EVENT = 'online';
|
|
21
|
+
|
|
22
|
+
/** Mercury events carrying MLS protocol messages. */
|
|
23
|
+
var MEDIA_ENCRYPTION_MERCURY_EVENTS = exports.MEDIA_ENCRYPTION_MERCURY_EVENTS = ['event:media_encryption.leader_nominated', 'event:media_encryption.welcome', 'event:media_encryption.annotated_welcome', 'event:media_encryption.multi_welcome', 'event:media_encryption.group_update', 'event:media_encryption.annotated_commit', 'event:media_encryption.large_group_update', 'event:media_encryption.use_key', 'event:media_encryption.join_request', 'event:media_encryption.leave_request', 'event:media_encryption.join_failure', 'event:media_encryption.leader_changed', 'event:media_encryption.message_segment'];
|
|
24
|
+
|
|
25
|
+
/** The subset of the MLS engine the signaling adapter drives. */
|
|
26
|
+
|
|
27
|
+
/** The subset of a mercury channel the adapter subscribes to for MLS protocol events. */
|
|
28
|
+
/**
|
|
29
|
+
* Mercury (and LLM) adapter for the MLS engine. Subscribes to this meeting's
|
|
30
|
+
* media_encryption.* events on both the LLM and mercury channels and forwards them to the engine,
|
|
31
|
+
* and tracks whether the signaling channel is connected so the engine knows when it can proceed
|
|
32
|
+
* with its join.
|
|
33
|
+
*/
|
|
34
|
+
var E2eeSignaling = exports.default = /*#__PURE__*/function () {
|
|
35
|
+
/**
|
|
36
|
+
* @param {Object} deps
|
|
37
|
+
* @param {LLMChannel} [deps.llm] - This meeting's LLM channel, when one is available.
|
|
38
|
+
* @param {IMercuryChannel} deps.mercury - The mercury channel (webex.internal.mercury).
|
|
39
|
+
* @param {Function} deps.getLocusUrl - Returns the meeting's current locus url (read live, as it
|
|
40
|
+
* can change, e.g. when moving between breakout sessions).
|
|
41
|
+
* @param {IMlsSignalingTarget} deps.session - The MLS engine to drive.
|
|
42
|
+
*/
|
|
43
|
+
function E2eeSignaling(_ref) {
|
|
44
|
+
var _this = this;
|
|
45
|
+
var llm = _ref.llm,
|
|
46
|
+
mercury = _ref.mercury,
|
|
47
|
+
getLocusUrl = _ref.getLocusUrl,
|
|
48
|
+
session = _ref.session;
|
|
49
|
+
(0, _classCallCheck2.default)(this, E2eeSignaling);
|
|
50
|
+
(0, _defineProperty2.default)(this, "llm", void 0);
|
|
51
|
+
(0, _defineProperty2.default)(this, "mercury", void 0);
|
|
52
|
+
(0, _defineProperty2.default)(this, "getLocusUrl", void 0);
|
|
53
|
+
(0, _defineProperty2.default)(this, "session", void 0);
|
|
54
|
+
(0, _defineProperty2.default)(this, "started", false);
|
|
55
|
+
/**
|
|
56
|
+
* @param {Object} envelope - The mercury event envelope from the LLM channel.
|
|
57
|
+
* @returns {void}
|
|
58
|
+
*/
|
|
59
|
+
(0, _defineProperty2.default)(this, "onLlmEvent", function (envelope) {
|
|
60
|
+
_this.forwardEvent(envelope, 'llm');
|
|
61
|
+
});
|
|
62
|
+
/**
|
|
63
|
+
* @param {Object} envelope - The mercury event envelope from the mercury channel.
|
|
64
|
+
* @returns {void}
|
|
65
|
+
*/
|
|
66
|
+
(0, _defineProperty2.default)(this, "onMercuryEvent", function (envelope) {
|
|
67
|
+
_this.forwardEvent(envelope, 'mercury');
|
|
68
|
+
});
|
|
69
|
+
/**
|
|
70
|
+
* @returns {void}
|
|
71
|
+
*/
|
|
72
|
+
(0, _defineProperty2.default)(this, "onLlmOnline", function () {
|
|
73
|
+
if (_this.isLlmOnlineForThisSession()) {
|
|
74
|
+
_this.session.llmConnected();
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
this.llm = llm;
|
|
78
|
+
this.mercury = mercury;
|
|
79
|
+
this.getLocusUrl = getLocusUrl;
|
|
80
|
+
this.session = session;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Subscribes to MLS mercury events and wires up connection tracking. Idempotent.
|
|
85
|
+
* @returns {void}
|
|
86
|
+
*/
|
|
87
|
+
return (0, _createClass2.default)(E2eeSignaling, [{
|
|
88
|
+
key: "start",
|
|
89
|
+
value: function start() {
|
|
90
|
+
var _this2 = this;
|
|
91
|
+
if (this.started) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
this.started = true;
|
|
95
|
+
MEDIA_ENCRYPTION_MERCURY_EVENTS.forEach(function (event) {
|
|
96
|
+
_this2.mercury.on(event, _this2.onMercuryEvent);
|
|
97
|
+
});
|
|
98
|
+
if (this.llm && this.isLlmOnlineForThisSession()) {
|
|
99
|
+
this.session.setLlmConnectedBeforeJoin(true);
|
|
100
|
+
}
|
|
101
|
+
this.subscribeToLlmEvents();
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Removes all subscriptions. Idempotent.
|
|
106
|
+
* @returns {void}
|
|
107
|
+
*/
|
|
108
|
+
}, {
|
|
109
|
+
key: "stop",
|
|
110
|
+
value: function stop() {
|
|
111
|
+
var _this3 = this;
|
|
112
|
+
if (!this.started) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
this.started = false;
|
|
116
|
+
MEDIA_ENCRYPTION_MERCURY_EVENTS.forEach(function (event) {
|
|
117
|
+
_this3.mercury.off(event, _this3.onMercuryEvent);
|
|
118
|
+
});
|
|
119
|
+
this.unsubscribeFromLlmEvents();
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Replaces the meeting-owned LLM channel after the meeting reconnects its data channel.
|
|
124
|
+
* @param {LLMChannel} [llm]
|
|
125
|
+
* @returns {void}
|
|
126
|
+
*/
|
|
127
|
+
}, {
|
|
128
|
+
key: "setLlmChannel",
|
|
129
|
+
value: function setLlmChannel(llm) {
|
|
130
|
+
if (this.llm === llm) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
this.unsubscribeFromLlmEvents();
|
|
134
|
+
this.llm = llm;
|
|
135
|
+
if (!this.started || !this.llm) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
this.subscribeToLlmEvents();
|
|
139
|
+
if (this.isLlmOnlineForThisSession()) {
|
|
140
|
+
this.session.llmConnected();
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Forwards a signaling envelope to the engine, tagging which channel it came from.
|
|
146
|
+
* @param {Object} envelope - The mercury event envelope.
|
|
147
|
+
* @param {E2eeSignalingSource} source - The channel the envelope arrived on.
|
|
148
|
+
* @returns {void}
|
|
149
|
+
*/
|
|
150
|
+
}, {
|
|
151
|
+
key: "forwardEvent",
|
|
152
|
+
value: function forwardEvent(envelope, source) {
|
|
153
|
+
var _envelope$data;
|
|
154
|
+
var eventData = (_envelope$data = envelope === null || envelope === void 0 ? void 0 : envelope.data) !== null && _envelope$data !== void 0 ? _envelope$data : envelope;
|
|
155
|
+
var bytes = new TextEncoder().encode((0, _stringify.default)(eventData));
|
|
156
|
+
this.session.handleEvent(new Uint8Array(bytes), source);
|
|
157
|
+
}
|
|
158
|
+
}, {
|
|
159
|
+
key: "subscribeToLlmEvents",
|
|
160
|
+
value: /** @returns {void} */
|
|
161
|
+
function subscribeToLlmEvents() {
|
|
162
|
+
var _this4 = this;
|
|
163
|
+
if (!this.started || !this.llm) {
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
MEDIA_ENCRYPTION_MERCURY_EVENTS.forEach(function (event) {
|
|
167
|
+
var _this4$llm;
|
|
168
|
+
(_this4$llm = _this4.llm) === null || _this4$llm === void 0 ? void 0 : _this4$llm.on(event, _this4.onLlmEvent);
|
|
169
|
+
});
|
|
170
|
+
if (!this.isLlmOnlineForThisSession()) {
|
|
171
|
+
this.llm.on(LLM_ONLINE_EVENT, this.onLlmOnline);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/** @returns {void} */
|
|
176
|
+
}, {
|
|
177
|
+
key: "unsubscribeFromLlmEvents",
|
|
178
|
+
value: function unsubscribeFromLlmEvents() {
|
|
179
|
+
var _this$llm,
|
|
180
|
+
_this5 = this;
|
|
181
|
+
(_this$llm = this.llm) === null || _this$llm === void 0 ? void 0 : _this$llm.off(LLM_ONLINE_EVENT, this.onLlmOnline);
|
|
182
|
+
MEDIA_ENCRYPTION_MERCURY_EVENTS.forEach(function (event) {
|
|
183
|
+
var _this5$llm;
|
|
184
|
+
(_this5$llm = _this5.llm) === null || _this5$llm === void 0 ? void 0 : _this5$llm.off(event, _this5.onLlmEvent);
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @returns {boolean} whether the LLM is connected for this specific session (locus-url matched).
|
|
190
|
+
*/
|
|
191
|
+
}, {
|
|
192
|
+
key: "isLlmOnlineForThisSession",
|
|
193
|
+
value: function isLlmOnlineForThisSession() {
|
|
194
|
+
var _this$llm2;
|
|
195
|
+
var sessionLocusUrl = this.getLocusUrl();
|
|
196
|
+
return !!sessionLocusUrl && !!((_this$llm2 = this.llm) !== null && _this$llm2 !== void 0 && _this$llm2.isConnected()) && sessionLocusUrl === this.llm.getLocusUrl();
|
|
197
|
+
}
|
|
198
|
+
}]);
|
|
199
|
+
}();
|
|
200
|
+
//# sourceMappingURL=E2eeSignaling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["LLM_ONLINE_EVENT","exports","MEDIA_ENCRYPTION_MERCURY_EVENTS","E2eeSignaling","default","_ref","_this","llm","mercury","getLocusUrl","session","_classCallCheck2","_defineProperty2","envelope","forwardEvent","isLlmOnlineForThisSession","llmConnected","_createClass2","key","value","start","_this2","started","forEach","event","on","onMercuryEvent","setLlmConnectedBeforeJoin","subscribeToLlmEvents","stop","_this3","off","unsubscribeFromLlmEvents","setLlmChannel","source","_envelope$data","eventData","data","bytes","TextEncoder","encode","_stringify","handleEvent","Uint8Array","_this4","_this4$llm","onLlmEvent","onLlmOnline","_this$llm","_this5","_this5$llm","_this$llm2","sessionLocusUrl","isConnected"],"sources":["E2eeSignaling.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport type LLMChannel from '@webex/internal-plugin-llm';\n\n/** Source labels passed to the MLS engine for incoming signaling messages. */\ntype E2eeSignalingSource = 'llm' | 'mercury';\n\n/** LLM event carrying the channel's connection state. */\nexport const LLM_ONLINE_EVENT = 'online';\n\n/** Mercury events carrying MLS protocol messages. */\nexport const MEDIA_ENCRYPTION_MERCURY_EVENTS = [\n 'event:media_encryption.leader_nominated',\n 'event:media_encryption.welcome',\n 'event:media_encryption.annotated_welcome',\n 'event:media_encryption.multi_welcome',\n 'event:media_encryption.group_update',\n 'event:media_encryption.annotated_commit',\n 'event:media_encryption.large_group_update',\n 'event:media_encryption.use_key',\n 'event:media_encryption.join_request',\n 'event:media_encryption.leave_request',\n 'event:media_encryption.join_failure',\n 'event:media_encryption.leader_changed',\n 'event:media_encryption.message_segment',\n];\n\n/** The subset of the MLS engine the signaling adapter drives. */\nexport interface IMlsSignalingTarget {\n handleEvent(bytes: Uint8Array, source: E2eeSignalingSource): void;\n setLlmConnectedBeforeJoin(connected: boolean): void;\n llmConnected(): void;\n}\n\n/** The subset of a mercury channel the adapter subscribes to for MLS protocol events. */\nexport interface IMercuryChannel {\n on(event: string, handler: (envelope: any) => void): void;\n off(event: string, handler: (envelope: any) => void): void;\n}\n\n/**\n * Mercury (and LLM) adapter for the MLS engine. Subscribes to this meeting's\n * media_encryption.* events on both the LLM and mercury channels and forwards them to the engine,\n * and tracks whether the signaling channel is connected so the engine knows when it can proceed\n * with its join.\n */\nexport default class E2eeSignaling {\n private llm?: LLMChannel;\n\n private readonly mercury: IMercuryChannel;\n\n private readonly getLocusUrl: () => string | undefined;\n\n private readonly session: IMlsSignalingTarget;\n\n private started = false;\n\n /**\n * @param {Object} deps\n * @param {LLMChannel} [deps.llm] - This meeting's LLM channel, when one is available.\n * @param {IMercuryChannel} deps.mercury - The mercury channel (webex.internal.mercury).\n * @param {Function} deps.getLocusUrl - Returns the meeting's current locus url (read live, as it\n * can change, e.g. when moving between breakout sessions).\n * @param {IMlsSignalingTarget} deps.session - The MLS engine to drive.\n */\n constructor({\n llm,\n mercury,\n getLocusUrl,\n session,\n }: {\n llm?: LLMChannel;\n mercury: IMercuryChannel;\n getLocusUrl: () => string | undefined;\n session: IMlsSignalingTarget;\n }) {\n this.llm = llm;\n this.mercury = mercury;\n this.getLocusUrl = getLocusUrl;\n this.session = session;\n }\n\n /**\n * Subscribes to MLS mercury events and wires up connection tracking. Idempotent.\n * @returns {void}\n */\n start(): void {\n if (this.started) {\n return;\n }\n this.started = true;\n\n MEDIA_ENCRYPTION_MERCURY_EVENTS.forEach((event) => {\n this.mercury.on(event, this.onMercuryEvent);\n });\n\n if (this.llm && this.isLlmOnlineForThisSession()) {\n this.session.setLlmConnectedBeforeJoin(true);\n }\n this.subscribeToLlmEvents();\n }\n\n /**\n * Removes all subscriptions. Idempotent.\n * @returns {void}\n */\n stop(): void {\n if (!this.started) {\n return;\n }\n this.started = false;\n\n MEDIA_ENCRYPTION_MERCURY_EVENTS.forEach((event) => {\n this.mercury.off(event, this.onMercuryEvent);\n });\n this.unsubscribeFromLlmEvents();\n }\n\n /**\n * Replaces the meeting-owned LLM channel after the meeting reconnects its data channel.\n * @param {LLMChannel} [llm]\n * @returns {void}\n */\n setLlmChannel(llm?: LLMChannel): void {\n if (this.llm === llm) {\n return;\n }\n\n this.unsubscribeFromLlmEvents();\n this.llm = llm;\n\n if (!this.started || !this.llm) {\n return;\n }\n\n this.subscribeToLlmEvents();\n\n if (this.isLlmOnlineForThisSession()) {\n this.session.llmConnected();\n }\n }\n\n /**\n * Forwards a signaling envelope to the engine, tagging which channel it came from.\n * @param {Object} envelope - The mercury event envelope.\n * @param {E2eeSignalingSource} source - The channel the envelope arrived on.\n * @returns {void}\n */\n private forwardEvent(envelope: any, source: E2eeSignalingSource): void {\n const eventData = envelope?.data ?? envelope;\n const bytes = new TextEncoder().encode(JSON.stringify(eventData));\n\n this.session.handleEvent(new Uint8Array(bytes), source);\n }\n\n /**\n * @param {Object} envelope - The mercury event envelope from the LLM channel.\n * @returns {void}\n */\n private onLlmEvent = (envelope: any): void => {\n this.forwardEvent(envelope, 'llm');\n };\n\n /**\n * @param {Object} envelope - The mercury event envelope from the mercury channel.\n * @returns {void}\n */\n private onMercuryEvent = (envelope: any): void => {\n this.forwardEvent(envelope, 'mercury');\n };\n\n /**\n * @returns {void}\n */\n private onLlmOnline = (): void => {\n if (this.isLlmOnlineForThisSession()) {\n this.session.llmConnected();\n }\n };\n\n /** @returns {void} */\n private subscribeToLlmEvents(): void {\n if (!this.started || !this.llm) {\n return;\n }\n\n MEDIA_ENCRYPTION_MERCURY_EVENTS.forEach((event) => {\n this.llm?.on(event, this.onLlmEvent);\n });\n if (!this.isLlmOnlineForThisSession()) {\n this.llm.on(LLM_ONLINE_EVENT, this.onLlmOnline);\n }\n }\n\n /** @returns {void} */\n private unsubscribeFromLlmEvents(): void {\n this.llm?.off(LLM_ONLINE_EVENT, this.onLlmOnline);\n MEDIA_ENCRYPTION_MERCURY_EVENTS.forEach((event) => {\n this.llm?.off(event, this.onLlmEvent);\n });\n }\n\n /**\n * @returns {boolean} whether the LLM is connected for this specific session (locus-url matched).\n */\n private isLlmOnlineForThisSession(): boolean {\n const sessionLocusUrl = this.getLocusUrl();\n\n return (\n !!sessionLocusUrl && !!this.llm?.isConnected() && sessionLocusUrl === this.llm.getLocusUrl()\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;AAAA;AACA;AACA;;AAIA;;AAGA;AACO,IAAMA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,QAAQ;;AAExC;AACO,IAAME,+BAA+B,GAAAD,OAAA,CAAAC,+BAAA,GAAG,CAC7C,yCAAyC,EACzC,gCAAgC,EAChC,0CAA0C,EAC1C,sCAAsC,EACtC,qCAAqC,EACrC,yCAAyC,EACzC,2CAA2C,EAC3C,gCAAgC,EAChC,qCAAqC,EACrC,sCAAsC,EACtC,qCAAqC,EACrC,uCAAuC,EACvC,wCAAwC,CACzC;;AAED;;AAOA;AAMA;AACA;AACA;AACA;AACA;AACA;AALA,IAMqBC,aAAa,GAAAF,OAAA,CAAAG,OAAA;EAWhC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACE,SAAAD,cAAAE,IAAA,EAUG;IAAA,IAAAC,KAAA;IAAA,IATDC,GAAG,GAAAF,IAAA,CAAHE,GAAG;MACHC,OAAO,GAAAH,IAAA,CAAPG,OAAO;MACPC,WAAW,GAAAJ,IAAA,CAAXI,WAAW;MACXC,OAAO,GAAAL,IAAA,CAAPK,OAAO;IAAA,IAAAC,gBAAA,CAAAP,OAAA,QAAAD,aAAA;IAAA,IAAAS,gBAAA,CAAAR,OAAA;IAAA,IAAAQ,gBAAA,CAAAR,OAAA;IAAA,IAAAQ,gBAAA,CAAAR,OAAA;IAAA,IAAAQ,gBAAA,CAAAR,O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