@tuotoo/kiwi-pc-plugin-toolbar 0.1.4 → 0.1.5

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/index.es.js CHANGED
@@ -34545,658 +34545,651 @@ const _imports_0$1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYA
34545
34545
  const _imports_1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAADP0lEQVR4AeyXjVHEIBCF0Uq0ErUStQM68OzgOlArUStRK9H3IZvBnJ4skHOcicO7hL/lvd2F4HH453+rgL8O4BqBNQKdHlhTqNOB3dPXCHS7sNOAOwIxxpMY43n8BO8JLTyyjRs9S1x5bLkEaKE7GX8RHjN4T1Dfi0C/uqrLjUZuZriTnXO1VZVqAdnoPu+caMUrjfOIuNacJ6G5VAvQCmcC5Wm73R7p5XSGe9Up1d6TnVdNuBWai0fAW14FTwcWL6G+B8FVovaRJpCOegTEBO+fR0DtAlWbek5eziCi7nTyCDDnpAhYpXiWAn8ak4b/QJ4+9sS9xFQLaRHAQjvQoqWAnf5Zw5Q2mofnU7feXwVEpHrNj0fARDB78Iv9WdveCGgiRydkJ/JqayrVAuQZBFhoL8vVMnnzKqeUnUjlsOldtm6FbvIYrBbAYMEETEelyONtI49XLzTuYMUhIHF6Tr8hcNJMInIbDxPI+0HgEqCwQ5BUglxKI7VRt43Hl/g7YYxfBC4BmYF9ObnQkT40Iwzwzl3G2qkvihYBEMXrkOQyFmZRoN1zH+oS6BaQye5EIbdbKhGdJK6LXcVkt4Bss4yCnUBEguOTM55hmxjj1EcDUBt3/2F7pUlA9rYdl5xIZcpwqTMRRIL/E0irIPIIoo/xj6rTx54B+67qaP8WTQKwlEVYyuDRlDK0C6QYRBkK+URWlfkJRR/EASIQqGH1pVkAS4goKQOokjJJBBX1IQKBtuEhS9eF+uz/CfqZD+gjYjaO+q/oEpCtQ9QIzEXQTqpZNK5Fnv0T9OSrzc0TEdjI5nyPbgEQ0ZIQMJKIIGWSJ+kX6Ic8gjR8XOkWABURxJuQNBHkOiLKlBpOnrWHCMAQkBBEkBKW90SDk2YSwriRGCoAYhKBp8u8J5VMCCcNJw5DSzAm1TUf8em95me4ABaFhEA0uPMjiGZIQh4R7zFGIkOa8U1ojtAiAmALJIK9QUohhKeJoRtB7BVE8aTN9hDvVVhUgDHIQuzIRAxAEEAUR+tG44iaTat6HkRAyUQkiQpAEOB45ePmJo/dgwtg0ZFYBYz0ZoutZSLQwqRxziqg0XHDpq0RGObKRkP/PgIfAAAA///EkZMiAAAABklEQVQDAOfjSnAM/aqlAAAAAElFTkSuQmCC";
34546
34546
  const _imports_2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAGO0lEQVR4AdRaW3bbOAwFlY04u5jkTN14JeP8TLOLpLuI58fuSuymc5zuIl5IbBYXlGQ9qAcfsmQewZIoEgQuAfDlhAZOT9u/Zk9v98t/f90/g7693a+/vd1t+f7BpJlwZ5I8/na/RnnQwKIJ+0EAgNJG2butvkk+NNFaaXoBEdGSSD0Q0YxMwp1J8vgbLVEeZMC52wIM8DTF4/5GBaCotFFWlAqRWIABGAASgKCNEIbVulEAgFAsnI6kdFXG4vsMbXBbH2iz+MH3OQiAp19/P0AYCOUrgGe9HAi4hycPqeYFAPwRgUzr05a5sJny7zjXDO6BToBMPiI4A4Behz+SCWQ0kTRjmbaQzVUeJwBgbmmvu7ZzifIzlm3tGht6AwDGMLdLaBLQhsQGyNqXRy8A4O8jBLq+OtTKQVaOC+vaB0tGJwCGUfB4bml68CyZfXa10gpAGlQwO+viM8nvsIQud2gEAMpzUMEwN0nl+grFICyhS1N5KwAYU69U+YNFURkdoJPlG1kB0DeqVwCxMRwp76BUslDH06KhfZ4n2HWqAWDM5ZqCnt6t5vvb1y//714Xv9kC9M4OgnqAbtVvNQC0Pj5XC031XRE9rubvTb1eE5vdumbZJQAw06NpTXGpIR3Y3G9f5/tN8TvmK9Quv2zOUCGVANBE19D7mxVMXsz9rEkP5aVwVcccANP7NObKjrqSMfn9Y7VcX+XTeiUryAHQpP9JC0zxJlG+avIQ1FF5VKGirjkA1O47NGKCvy8Q5asy+E/TzyOCAJCaf5X/BN7TIa7i7xAsldl/mq5P4u4CAAeGr2A6MeJgZx/iMJ6zzLUhzUX+zA0EAK7ojyRXHuBi5evBDu2I8mYrDq8BpIwFpKYUwChuVSWTG7vyaMk2mUG+B80AZmYBHvXjV4HytkiftWQiPknPUYR0otPXhH1pEv7fpbxZ1yucKEVQ/cwi2AK0ohfQmaX7k2Kzb+t5mKrS9EKRk9L6gQHQ3iaFJeh/X/bfk8/TD18QOpXnw1UdJejZ0WMAlA8AZmbGS1CwxTIUQLiCgPJtPQ/ew+5NqBkDQK4AHGQxkipPhQQQsErjLF6X82/7tUH5tiJmhFJBft/GH98AAO5OBJ9sqgBrYBAW/L0FBJnh1RY1XCe/sIWl+Vg9zxjmQSygRVBrq2aPjQ9GrV85MwMBJs6vlQvKvwOgSn75dVjTz9s6sAVoVwBQ24DAAQovNgIIMPEKCOw+3coPNeTV5dQAQPkAAF680ZhsYap4aSKAgNEC3/neavYoA35DDHngXSd1SLiHfAEgTr1AwFKWA6fCneu0Xhcy/VwGdoH82fehFwh9mF8i6hflUEQ/k4SSn8VMz2cBwbNuXk0PH/XztrKHhD4/Q1wg44P7jHdoPvDgQ1w3aH3v0yYmYQmiNZFuOExwZgsQnBVJ5xVL59bCKsiWusQARepHGK9S7aVrb45xGKOIxPUFADqeYllAhkRvEC4d+DIBM50FgMhukLXR6w8Kepzt+I3Rmc6nwyquGwgImNCYWZ281n7G6n2Vmj8EEgvAQ2oSsUYEYYmfNhBG6v0Doj9kA+UAwCQYme/IjE02EEbs/ZKOOQCitATDaEOisMx+GIRSTBiq97P27He9K/Y+ypQAECtQNyWEUCgS4T98S/S8GffVoBsdNpmVRbcSAKhkFizDWAHzx397n3mPz3myxHUDL+59yy5WDQC0oo4ay9boARG8mbAFB+LHi118wCo61Rq0AiCu0PyHoxqTqWcolTxCJ5ucVgBQEBUU79fj+ZqJlbcerWc6NQKAAoiYWtELXWmC7CamNSvQCgCqhRx6oP54pHfYjutqvxMAuMIVgsDH692brwCnEwAUAghAEyaF9ykT4hbvP2IU6yVmLwAyTgBBHU+3/D7UEMmsvS9zXFf572AXNycAwAzWwCAsIu4igW0o8XmD+busKyNnANAAQFjN3xcwt5GBkF5fzfewSojmTF4AZK1gmFQ8azRA0CXd4oB4BMW7hjnqSEEAgDeswQBxWkCogS0iVxzxCO2HUjAAmQAAAkKt4BocKI1VxFhU6R2AXc33iukWbWRtxrhHA6AoDMCAVawKYBhACFvRTAJM5jK4M0neBsqCUH4lSr8v2pSmwPQHAAD//xlmNnoAAAAGSURBVAMABTvLnpY7IesAAAAASUVORK5CYII=";
34547
34547
  const _imports_3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFi0lEQVR4AdxaTZKrNhBuMblH8EnezC6ZynJclV3skzznJHZ2qfJbppzs5r2T2LlHxsr3tZB/QIBBApunohEI1Orvo9USgkwGTvanX3P7y9uzfX377GS+tj/P3+3rfA+xEOb7omyNc8oC+WJg01T9IAQoaAIGUMk+9nI07yJm5UQWYuRZRHJxiXlelC1QRFkjJxGemAV1oiz5lpQAewmagB3QGKM9MWsSadVr3j7HKCzXTUKAJXAYJ2lAS0PKBW1YtGXRpiRIUQS4vj3fC4ySs0vjcPDtgog5u0zvBnsRwP7IoOX6tsAYuVdi2y5WINj2MaIzAXzq7I9F0OrT5hB1ctjEkaWzN3QiQMFrRB8CQ7ROeoMOtV003UyABp3HBe8xgwSzUlt9SUt+EwHa312ga1H3KJdBAucgN5jTSoCyaYQTF5lUgs32dc4JVaPZjQRon5/Uk69gxZS6eeJUS4CCf/w+X0FcLTALxVK9oCVBAjjOF2O83jTxXQ4sa8UUABIkQMxHa98J6HrkorwOU4UAdRcEkEdG08s2YCK2ct0KAfJhkr5tlRu86/nRVDz7igAMG4sHm+Km5itXjBdarwhAeYqnf4AeCrKk20GsfJX4dIXxREDBTB6pf2l225kcn15ELFaAIrWdq6te8/f2RTIL3ecLPY6uvOBEANj9rYeyqyoAv2GB+efPg9l9+R3HS0jcBsBeLxWZv758ha1xnmDlhPVMAKIkG4iQitsXhvcngeAJuGyUkThPBVY/IigBhftLZIJrVaedvUmoAV/YGkcAgR6N6lACcP4JkmDDtDOwVteZhDrwWF6HkWtI/FZ0A0/AIl6jagCrkSQ0gU/5blJ0o6xwKbU+0a4/CWOBd0D1g433AFeUbt+dhHHBO6RH+QQC7I/uLPn+dhLuAb6ACwJcNCzOU2ftJNwRvFjzDAJk6NRIgk5sShboGJ0y4JX0X56SgOfLgoGOa0kotzcmeLz45SSgbMNQ560kDAG+DcyYBNAWkvAvD4JSzM6C14YphAdYqczhZbjEtzp9YQo10XnGGFLSrewwpgc0gvd2j0oCHn6GQDCGBwTBs8/bFO8Onr2uuRF6gB2agFrwWK5+F4l8d5C4lImY+qAk0akFvOpnYAx+wRmhO3zLsMQ0lAfcAl4ZwO5uJGTy3w9DENAFPPDrNjoJ9LCM63diJW6NTa5SH/BewZgk6HCMGIC2nywXMHEQu9kVWS1rYbR3Aa98JXg+Fgnf2LojIFE3KFaCqfckHcH7es0kpPDY45N6vRKQqBtUYklP8K0k+Bsi8o1ihgIlALlgQvSHxCWsCp//2YsE7y2peILqxbK2v6Fnru7PumcC6BLxruX+2Xud2w59nnY0CUlYWf07dL5PoBcfbbYb3+CJAHWJNMEQBnv1SXPqpcQqvQr4JwKoVVdn4r2Aqu4mjQ0DW3mUuiJAK6fxAlX1cLsAtgoB360X8OkHvjNWCNCnZp/4QbMyrOm1ae4O+mk9YHuQAA2I+o0/UGOKRZnlAw1aHiSAdyoJIrUVec8kpOa7g7e9lgDe4CKmXfF4mmJXGtMajG8kgPXc/N5OjwQGPfeXCmHUSisBrDk9EuyqLugRz6XcRAArOBImEBPY52948sREuZkA3qwx4fg0w/EjDpEHLO+9tPV52H61dSKANXV0cEPk6YWC5XcV7e/bWVfwtLkzAaxEEuANS6E3oHGW3UncU+f/gz0N6EWAb0uJcI1zvjBmt2BbXHvs9dS9/cyjCKACCrxhA2/gH5zLxAusVH8pAI4Iv4O7787v9Jc3dD1OQgAbVW+AUTr8sGu4WWRsnDg4QhW0AdGzYjRik0kkGQGX1pzI2G2X8AyOGuwiEMsJ1UZBWeGiJJ6oOHHnIIz3QHQ4285IaBNoiUz/AwAA//878XESAAAABklEQVQDAPJDlJLj/TutAAAAAElFTkSuQmCC";
34548
- const _0x3a757e = _0x548d;
34549
- (function(_0x2dd4ed, _0x1bc7a1) {
34550
- const _0x29160a = _0x548d, _0x21890a = _0x2dd4ed();
34548
+ const _0x4ae588 = _0x2125;
34549
+ (function(_0x4a6f01, _0x523d45) {
34550
+ const _0xd20530 = _0x2125, _0x347cfe = _0x4a6f01();
34551
34551
  while (!![]) {
34552
34552
  try {
34553
- const _0x186e59 = parseInt(_0x29160a(234)) / 1 * (-parseInt(_0x29160a(387)) / 2) + -parseInt(_0x29160a(350)) / 3 * (-parseInt(_0x29160a(259)) / 4) + -parseInt(_0x29160a(450)) / 5 * (parseInt(_0x29160a(305)) / 6) + parseInt(_0x29160a(422)) / 7 * (parseInt(_0x29160a(520)) / 8) + parseInt(_0x29160a(395)) / 9 + -parseInt(_0x29160a(382)) / 10 + parseInt(_0x29160a(255)) / 11 * (parseInt(_0x29160a(385)) / 12);
34554
- if (_0x186e59 === _0x1bc7a1) break;
34555
- else _0x21890a["push"](_0x21890a["shift"]());
34556
- } catch (_0x3bab99) {
34557
- _0x21890a["push"](_0x21890a["shift"]());
34553
+ const _0x122c47 = -parseInt(_0xd20530(352)) / 1 * (-parseInt(_0xd20530(594)) / 2) + -parseInt(_0xd20530(452)) / 3 + parseInt(_0xd20530(649)) / 4 + -parseInt(_0xd20530(458)) / 5 * (parseInt(_0xd20530(394)) / 6) + parseInt(_0xd20530(442)) / 7 * (parseInt(_0xd20530(401)) / 8) + -parseInt(_0xd20530(544)) / 9 * (-parseInt(_0xd20530(512)) / 10) + parseInt(_0xd20530(380)) / 11;
34554
+ if (_0x122c47 === _0x523d45) break;
34555
+ else _0x347cfe["push"](_0x347cfe["shift"]());
34556
+ } catch (_0x556949) {
34557
+ _0x347cfe["push"](_0x347cfe["shift"]());
34558
34558
  }
34559
34559
  }
34560
- })(_0x37f6, 431987);
34561
- var K = Object[_0x3a757e(481)], N = (_0x556d43, _0x156ce7, _0x9f57cb) => _0x156ce7 in _0x556d43 ? K(_0x556d43, _0x156ce7, { "enumerable": true, "configurable": true, "writable": true, "value": _0x9f57cb }) : _0x556d43[_0x156ce7] = _0x9f57cb, w = (_0x5d7c50, _0x4a21df, _0x3d59d1) => N(_0x5d7c50, typeof _0x4a21df != _0x3a757e(221) ? _0x4a21df + "" : _0x4a21df, _0x3d59d1);
34560
+ })(_0x14e4, 716287);
34561
+ var K = Object["defineProperty"], N = (_0x360dd7, _0x3267f3, _0x9cbca2) => _0x3267f3 in _0x360dd7 ? K(_0x360dd7, _0x3267f3, { "enumerable": true, "configurable": true, "writable": true, "value": _0x9cbca2 }) : _0x360dd7[_0x3267f3] = _0x9cbca2, w = (_0x4feb91, _0x20cf99, _0x120246) => N(_0x4feb91, typeof _0x20cf99 != "symbol" ? _0x20cf99 + "" : _0x20cf99, _0x120246);
34562
34562
  let k = false;
34563
- const Y = function(_0x18b718, _0x41d8ee) {
34564
- const _0xfe73aa = _0x3a757e;
34565
- this[_0xfe73aa(465)] = new AudioContext({ "sampleRate": 8e3 });
34566
- let _0xc1e0f = this[_0xfe73aa(465)][_0xfe73aa(297)](_0x18b718), _0x151e33 = this[_0xfe73aa(465)][_0xfe73aa(321)](2048, 1, 1);
34567
- const _0x484110 = { "size": 0, "buffer": [], "inputSampleRate": 8e3, "inputSampleBits": 16, "outputSampleRate": 8e3, "outputSampleBits": 16, "clear": function() {
34568
- const _0xb3ddee = _0xfe73aa;
34569
- this[_0xb3ddee(444)] = [], this[_0xb3ddee(275)] = 0;
34570
- }, "input": function(_0x478de6) {
34571
- const _0x14bda4 = _0xfe73aa;
34572
- this["buffer"][_0x14bda4(485)](new Float32Array(_0x478de6)), this[_0x14bda4(275)] += _0x478de6[_0x14bda4(374)];
34563
+ function _0x2125(_0x4a6304, _0x443aab) {
34564
+ const _0x14e411 = _0x14e4();
34565
+ return _0x2125 = function(_0x21252e, _0x424804) {
34566
+ _0x21252e = _0x21252e - 348;
34567
+ let _0x2e3eaa = _0x14e411[_0x21252e];
34568
+ return _0x2e3eaa;
34569
+ }, _0x2125(_0x4a6304, _0x443aab);
34570
+ }
34571
+ const Y = function(_0x1a5280, _0x47d493) {
34572
+ const _0xebcddc = _0x2125;
34573
+ this["context"] = new AudioContext({ "sampleRate": 8e3 });
34574
+ let _0x560f0b = this[_0xebcddc(554)][_0xebcddc(619)](_0x1a5280), _0x1b04c0 = this[_0xebcddc(554)][_0xebcddc(422)](2048, 1, 1);
34575
+ const _0x1dbb6d = { "size": 0, "buffer": [], "inputSampleRate": 8e3, "inputSampleBits": 16, "outputSampleRate": 8e3, "outputSampleBits": 16, "clear": function() {
34576
+ const _0xe40866 = _0xebcddc;
34577
+ this[_0xe40866(643)] = [], this[_0xe40866(529)] = 0;
34578
+ }, "input": function(_0x59113f) {
34579
+ const _0x37c22e = _0xebcddc;
34580
+ this["buffer"][_0x37c22e(543)](new Float32Array(_0x59113f)), this[_0x37c22e(529)] += _0x59113f[_0x37c22e(435)];
34573
34581
  }, "compress": function() {
34574
- const _0x45b8b7 = _0xfe73aa;
34575
- for (var _0x2de757 = new Float32Array(this["size"]), _0x46d41e = 0, _0x477455 = 0; _0x477455 < this[_0x45b8b7(444)][_0x45b8b7(374)]; _0x477455++) _0x2de757["set"](this[_0x45b8b7(444)][_0x477455], _0x46d41e), _0x46d41e += this["buffer"][_0x477455][_0x45b8b7(374)];
34576
- for (var _0x512121 = parseInt(String(this[_0x45b8b7(478)] / this[_0x45b8b7(292)])), _0x72ac21 = _0x2de757[_0x45b8b7(374)] / _0x512121, _0x32503c = new Float32Array(_0x72ac21), _0x18e396 = 0, _0x45b955 = 0; _0x18e396 < _0x72ac21; ) _0x32503c[_0x18e396] = _0x2de757[_0x45b955], _0x45b955 += _0x512121, _0x18e396++;
34577
- return _0x32503c;
34582
+ const _0x3d5388 = _0xebcddc;
34583
+ for (var _0x5b6428 = new Float32Array(this[_0x3d5388(529)]), _0x215192 = 0, _0x59dc51 = 0; _0x59dc51 < this[_0x3d5388(643)][_0x3d5388(435)]; _0x59dc51++) _0x5b6428["set"](this[_0x3d5388(643)][_0x59dc51], _0x215192), _0x215192 += this[_0x3d5388(643)][_0x59dc51]["length"];
34584
+ for (var _0x4afe92 = parseInt(String(this[_0x3d5388(531)] / this[_0x3d5388(476)])), _0x36cc5f = _0x5b6428[_0x3d5388(435)] / _0x4afe92, _0x49cacd = new Float32Array(_0x36cc5f), _0x5f48a7 = 0, _0xc0ae = 0; _0x5f48a7 < _0x36cc5f; ) _0x49cacd[_0x5f48a7] = _0x5b6428[_0xc0ae], _0xc0ae += _0x4afe92, _0x5f48a7++;
34585
+ return _0x49cacd;
34578
34586
  }, "encodePCM": function() {
34579
- const _0x286cc0 = _0xfe73aa;
34580
- for (var _0x182d4d = Math[_0x286cc0(280)](this[_0x286cc0(375)], this[_0x286cc0(222)]), _0x1e7235 = this[_0x286cc0(393)](), _0x584619 = _0x1e7235[_0x286cc0(374)] * (_0x182d4d / 8), _0x5cb90d = new ArrayBuffer(_0x584619), _0x4305f3 = new DataView(_0x5cb90d), _0x5551ce = 0, _0x5bae0b = 0; _0x5bae0b < _0x1e7235[_0x286cc0(374)]; _0x5bae0b++, _0x5551ce += 2) {
34581
- var _0x483e75 = Math[_0x286cc0(262)](-1, Math["min"](1, _0x1e7235[_0x5bae0b]));
34582
- _0x4305f3[_0x286cc0(424)](_0x5551ce, _0x483e75 < 0 ? _0x483e75 * 32768 : _0x483e75 * 32767, true);
34587
+ const _0x4e7be7 = _0xebcddc;
34588
+ for (var _0x28ac1f = Math["min"](this[_0x4e7be7(359)], this[_0x4e7be7(557)]), _0x27a387 = this["compress"](), _0x6677e3 = _0x27a387[_0x4e7be7(435)] * (_0x28ac1f / 8), _0x3450cf = new ArrayBuffer(_0x6677e3), _0xb8f840 = new DataView(_0x3450cf), _0x4f63b = 0, _0x4db4ea = 0; _0x4db4ea < _0x27a387[_0x4e7be7(435)]; _0x4db4ea++, _0x4f63b += 2) {
34589
+ var _0x192f90 = Math[_0x4e7be7(514)](-1, Math[_0x4e7be7(432)](1, _0x27a387[_0x4db4ea]));
34590
+ _0xb8f840[_0x4e7be7(402)](_0x4f63b, _0x192f90 < 0 ? _0x192f90 * 32768 : _0x192f90 * 32767, true);
34583
34591
  }
34584
- return new Blob([_0x4305f3]);
34592
+ return new Blob([_0xb8f840]);
34585
34593
  } };
34586
- var _0x322995 = function() {
34587
- const _0x980942 = _0xfe73aa;
34588
- var _0x592e65 = new FileReader();
34589
- _0x592e65["onload"] = (_0x1db9ba) => {
34590
- const _0x1f0a54 = _0x548d;
34591
- if (!(!_0x1db9ba[_0x1f0a54(480)] || !k)) {
34592
- var _0x32d807 = _0x1db9ba[_0x1f0a54(480)][_0x1f0a54(369)];
34593
- if (!(!_0x32d807 || typeof _0x32d807 == _0x1f0a54(380))) {
34594
- var _0x19ab05 = new Int16Array(_0x32d807);
34595
- _0x41d8ee(_0x19ab05);
34596
- }
34597
- }
34598
- }, _0x592e65[_0x980942(273)](_0x484110[_0x980942(509)]()), _0x484110[_0x980942(405)]();
34599
- };
34600
- this[_0xfe73aa(469)] = function() {
34601
- const _0x1e1c17 = _0xfe73aa;
34602
- k = true, _0xc1e0f["connect"](_0x151e33), _0x151e33[_0x1e1c17(476)](this[_0x1e1c17(465)][_0x1e1c17(441)]);
34603
- }, this[_0xfe73aa(493)] = function() {
34604
- const _0x47512b = _0xfe73aa;
34605
- k = false, _0x18b718[_0x47512b(311)]()[_0x47512b(252)]((_0x5aa7ea) => _0x5aa7ea[_0x47512b(493)]()), _0x151e33 && (_0x151e33[_0x47512b(327)] = null, _0x151e33[_0x47512b(241)]()), _0xc1e0f && _0xc1e0f[_0x47512b(241)](), this[_0x47512b(465)] && this[_0x47512b(465)]["close"](), _0x151e33 = null, _0xc1e0f = null, this[_0x47512b(465)] = null;
34606
- }, this[_0xfe73aa(316)] = function() {
34607
- const _0x40a11d = _0xfe73aa;
34608
- return _0x484110[_0x40a11d(509)]();
34609
- }, this[_0xfe73aa(405)] = function() {
34610
- const _0x529c9e = _0xfe73aa;
34611
- _0x484110[_0x529c9e(405)](), this[_0x529c9e(465)] && (this["context"][_0x529c9e(308)](), this[_0x529c9e(465)] = null);
34612
- }, _0x151e33[_0xfe73aa(327)] = function(_0x5004b5) {
34613
- const _0x2a1fdc = _0xfe73aa;
34614
- if (!(!k || !this[_0x2a1fdc(465)] || this[_0x2a1fdc(465)][_0x2a1fdc(318)] === _0x2a1fdc(449))) {
34615
- var _0x5cd98c = _0x5004b5[_0x2a1fdc(364)][_0x2a1fdc(527)](0);
34616
- _0x484110[_0x2a1fdc(359)](_0x5cd98c), _0x322995();
34617
- }
34618
- };
34619
- }, O = (_0x8af3cf) => {
34620
- const _0x4e262b = _0x3a757e;
34621
- switch (_0x8af3cf[_0x4e262b(507)] || _0x8af3cf["name"]) {
34622
- case _0x4e262b(489):
34623
- case "PermissionDeniedError":
34624
- return _0x4e262b(461);
34594
+ var _0x5245a8 = function() {
34595
+ const _0x23facd = _0xebcddc;
34596
+ var _0xbfe1e6 = new FileReader();
34597
+ _0xbfe1e6[_0x23facd(635)] = (_0x24f969) => {
34598
+ const _0x2caab7 = _0x23facd;
34599
+ if (!(!_0x24f969[_0x2caab7(389)] || !k)) {
34600
+ var _0x2f29c7 = _0x24f969[_0x2caab7(389)][_0x2caab7(434)];
34601
+ if (!(!_0x2f29c7 || typeof _0x2f29c7 == _0x2caab7(653))) {
34602
+ var _0x59ab3f = new Int16Array(_0x2f29c7);
34603
+ _0x47d493(_0x59ab3f);
34604
+ }
34605
+ }
34606
+ }, _0xbfe1e6["readAsArrayBuffer"](_0x1dbb6d["encodePCM"]()), _0x1dbb6d["clear"]();
34607
+ };
34608
+ this[_0xebcddc(569)] = function() {
34609
+ const _0x4549a1 = _0xebcddc;
34610
+ k = true, _0x560f0b["connect"](_0x1b04c0), _0x1b04c0[_0x4549a1(500)](this[_0x4549a1(554)][_0x4549a1(651)]);
34611
+ }, this["stop"] = function() {
34612
+ const _0x435302 = _0xebcddc;
34613
+ k = false, _0x1a5280[_0x435302(496)]()["forEach"]((_0x316c74) => _0x316c74["stop"]()), _0x1b04c0 && (_0x1b04c0[_0x435302(396)] = null, _0x1b04c0[_0x435302(424)]()), _0x560f0b && _0x560f0b[_0x435302(424)](), this[_0x435302(554)] && this[_0x435302(554)]["close"](), _0x1b04c0 = null, _0x560f0b = null, this["context"] = null;
34614
+ }, this["getBlob"] = function() {
34615
+ return _0x1dbb6d["encodePCM"]();
34616
+ }, this[_0xebcddc(597)] = function() {
34617
+ const _0x3f39af = _0xebcddc;
34618
+ _0x1dbb6d["clear"](), this[_0x3f39af(554)] && (this["context"][_0x3f39af(518)](), this["context"] = null);
34619
+ }, _0x1b04c0[_0xebcddc(396)] = function(_0x51eda0) {
34620
+ const _0x2a554d = _0xebcddc;
34621
+ if (!(!k || !this["context"] || this["context"][_0x2a554d(441)] === _0x2a554d(576))) {
34622
+ var _0x4faa2d = _0x51eda0[_0x2a554d(450)][_0x2a554d(657)](0);
34623
+ _0x1dbb6d[_0x2a554d(354)](_0x4faa2d), _0x5245a8();
34624
+ }
34625
+ };
34626
+ }, O = (_0x2fb5ab) => {
34627
+ const _0x3f0f79 = _0x2125;
34628
+ switch (_0x2fb5ab[_0x3f0f79(535)] || _0x2fb5ab[_0x3f0f79(508)]) {
34629
+ case _0x3f0f79(646):
34630
+ case _0x3f0f79(647):
34631
+ return _0x3f0f79(372);
34625
34632
  case "NOT_SUPPORTED_ERROR":
34626
- case _0x4e262b(253):
34627
- return _0x4e262b(226);
34628
- case _0x4e262b(242):
34629
- case _0x4e262b(328):
34630
- return _0x4e262b(457);
34633
+ case _0x3f0f79(511):
34634
+ return _0x3f0f79(636);
34635
+ case "MANDATORY_UNSATISFIED_ERROR":
34636
+ case _0x3f0f79(538):
34637
+ return _0x3f0f79(507);
34631
34638
  default:
34632
- return "无法打开麦克风。异常信息:" + _0x8af3cf;
34639
+ return _0x3f0f79(565) + _0x2fb5ab;
34633
34640
  }
34634
- }, x = () => !navigator[_0x3a757e(249)] || !navigator[_0x3a757e(249)][_0x3a757e(319)] ? (console[_0x3a757e(265)](_0x3a757e(365)), false) : true;
34641
+ }, x = () => !navigator["mediaDevices"] || !navigator[_0x4ae588(566)]["getUserMedia"] ? (console[_0x4ae588(495)](_0x4ae588(579)), false) : true;
34635
34642
  let T = "";
34636
34643
  const V = () => {
34637
- const _0x382d12 = _0x3a757e;
34644
+ const _0xe7479d = _0x4ae588;
34638
34645
  E();
34639
- let _0x59ac61 = "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/du_4s.mp3";
34640
- T = new Audio(_0x59ac61), T["addEventListener"](_0x382d12(420), (_0x31ae9d) => {
34641
- const _0x1e5d28 = _0x382d12;
34642
- console["log"](_0x1e5d28(420), _0x31ae9d);
34643
- }), T[_0x382d12(330)]("ended", () => {
34644
- const _0x3fd984 = _0x382d12;
34645
- T[_0x3fd984(279)](), console[_0x3fd984(265)](_0x3fd984(530));
34646
- }), T[_0x382d12(279)]();
34646
+ let _0x4e7a6c = _0xe7479d(607);
34647
+ T = new Audio(_0x4e7a6c), T["addEventListener"](_0xe7479d(361), (_0x4cd588) => {
34648
+ const _0x1ec2de = _0xe7479d;
34649
+ console[_0x1ec2de(495)](_0x1ec2de(361), _0x4cd588);
34650
+ }), T[_0xe7479d(622)](_0xe7479d(459), () => {
34651
+ const _0x228891 = _0xe7479d;
34652
+ T[_0x228891(564)](), console[_0x228891(495)](_0x228891(440));
34653
+ }), T[_0xe7479d(564)]();
34647
34654
  }, E = () => {
34648
- const _0x432f4c = _0x3a757e;
34649
- T && (console[_0x432f4c(265)]("停止响铃"), T[_0x432f4c(499)](), T = "");
34655
+ const _0x3859d2 = _0x4ae588;
34656
+ T && (console["log"](_0x3859d2(417)), T["pause"](), T = "");
34650
34657
  }, W = () => {
34651
- const _0x35ae41 = _0x3a757e;
34652
- let _0x241adf = _0x35ae41(413);
34653
- const _0x2da622 = new Audio(_0x241adf);
34654
- _0x2da622[_0x35ae41(330)](_0x35ae41(420), (_0x3c4d00) => {
34655
- const _0x1b7ca5 = _0x35ae41;
34656
- console[_0x1b7ca5(265)](_0x1b7ca5(420), _0x3c4d00);
34657
- }), _0x2da622[_0x35ae41(330)](_0x35ae41(296), () => {
34658
- const _0x341a2f = _0x35ae41;
34659
- _0x2da622[_0x341a2f(499)]();
34660
- }), _0x2da622["play"]();
34658
+ const _0x262651 = _0x4ae588;
34659
+ let _0x411582 = _0x262651(445);
34660
+ const _0x184ff1 = new Audio(_0x411582);
34661
+ _0x184ff1[_0x262651(622)](_0x262651(361), (_0x5262d8) => {
34662
+ const _0x13eb0a = _0x262651;
34663
+ console[_0x13eb0a(495)](_0x13eb0a(361), _0x5262d8);
34664
+ }), _0x184ff1[_0x262651(622)](_0x262651(459), () => {
34665
+ const _0x21a979 = _0x262651;
34666
+ _0x184ff1[_0x21a979(541)]();
34667
+ }), _0x184ff1[_0x262651(564)]();
34661
34668
  }, v = () => {
34662
- const _0x2f2ff1 = _0x3a757e;
34663
- let _0x212bfa = _0x2f2ff1(371);
34664
- const _0xeea020 = new Audio(_0x212bfa);
34665
- _0xeea020[_0x2f2ff1(330)](_0x2f2ff1(420), (_0x5084be) => {
34666
- const _0x19ab40 = _0x2f2ff1;
34667
- console["log"](_0x19ab40(420), _0x5084be);
34668
- }), _0xeea020["addEventListener"](_0x2f2ff1(296), () => {
34669
- _0xeea020["pause"]();
34670
- }), _0xeea020[_0x2f2ff1(279)]();
34671
- }, B = (_0x5e31ed, _0x531556) => {
34672
- const _0x203fcc = _0x3a757e;
34673
- navigator[_0x203fcc(249)][_0x203fcc(319)]({ "audio": {} })[_0x203fcc(487)]((_0xb5a1b5) => {
34674
- const _0x2f1cc4 = _0x203fcc;
34675
- _0x5e31ed && _0x5e31ed(), _0xb5a1b5[_0x2f1cc4(311)]()[_0x2f1cc4(252)]((_0x441e5f) => _0x441e5f[_0x2f1cc4(493)]());
34676
- })[_0x203fcc(430)]((_0xa15330) => {
34677
- const _0x2538d9 = O(_0xa15330);
34678
- _0x531556 && _0x531556({ "errMsg": _0x2538d9 });
34669
+ const _0x2bf1bf = _0x4ae588;
34670
+ let _0x283242 = _0x2bf1bf(431);
34671
+ const _0x20731c = new Audio(_0x283242);
34672
+ _0x20731c["addEventListener"](_0x2bf1bf(361), (_0x5c47f6) => {
34673
+ const _0xa87221 = _0x2bf1bf;
34674
+ console["log"](_0xa87221(361), _0x5c47f6);
34675
+ }), _0x20731c["addEventListener"](_0x2bf1bf(459), () => {
34676
+ const _0x392047 = _0x2bf1bf;
34677
+ _0x20731c[_0x392047(541)]();
34678
+ }), _0x20731c[_0x2bf1bf(564)]();
34679
+ }, B = (_0x229977, _0x20dd5f) => {
34680
+ const _0x11abd8 = _0x4ae588;
34681
+ navigator[_0x11abd8(566)][_0x11abd8(614)]({ "audio": {} })[_0x11abd8(428)]((_0x3b5af1) => {
34682
+ const _0x2b00cd = _0x11abd8;
34683
+ _0x229977 && _0x229977(), _0x3b5af1[_0x2b00cd(496)]()[_0x2b00cd(471)]((_0x51e7b2) => _0x51e7b2["stop"]());
34684
+ })[_0x11abd8(555)]((_0x412cba) => {
34685
+ const _0x33ddfb = O(_0x412cba);
34686
+ _0x20dd5f && _0x20dd5f({ "errMsg": _0x33ddfb });
34679
34687
  });
34680
- }, b = () => (Math[_0x3a757e(396)]() * 1e7)["toString"](16)[_0x3a757e(299)](0, 4) + "-" + (/* @__PURE__ */ new Date())[_0x3a757e(399)]() + "-" + Math[_0x3a757e(396)]()["toString"]()[_0x3a757e(299)](2, 5);
34681
- function F(_0x332f23) {
34682
- const _0x463aa1 = _0x3a757e;
34683
- let _0x44a37c;
34688
+ }, b = () => (Math[_0x4ae588(630)]() * 1e7)[_0x4ae588(378)](16)[_0x4ae588(600)](0, 4) + "-" + (/* @__PURE__ */ new Date())[_0x4ae588(502)]() + "-" + Math[_0x4ae588(630)]()[_0x4ae588(378)]()[_0x4ae588(600)](2, 5);
34689
+ function F(_0x5d777d) {
34690
+ const _0x5573fc = _0x4ae588;
34691
+ let _0x581fff;
34684
34692
  try {
34685
- _0x44a37c = JSON[_0x463aa1(272)](atob(_0x332f23[_0x463aa1(482)](".")[1]))[_0x463aa1(260)];
34693
+ _0x581fff = JSON[_0x5573fc(430)](atob(_0x5d777d["split"](".")[1]))[_0x5573fc(642)];
34686
34694
  } catch {
34687
- _0x44a37c = 0;
34688
- }
34689
- return _0x44a37c > Date["now"]() / 1e3;
34690
- }
34691
- const j = (_0x23c3ed) => _0x23c3ed[_0x3a757e(267)](new RegExp(/(\d{3})\d*(\d{4})/), _0x3a757e(343));
34692
- function A(_0x3ff4b9) {
34693
- this["init"](_0x3ff4b9);
34694
- }
34695
- A["prototype"][_0x3a757e(429)] = function(_0xc28806) {
34696
- const _0x321a72 = _0x3a757e;
34697
- var _0x3c34c4 = { "encoding": _0x321a72(237), "channels": 1, "sampleRate": 8e3, "flushingTime": 1e3 };
34698
- this[_0x321a72(294)] = Object[_0x321a72(500)]({}, _0x3c34c4, _0xc28806), this[_0x321a72(288)] = new Float32Array(), this["flush"] = this[_0x321a72(410)][_0x321a72(401)](this), this[_0x321a72(301)] = setInterval(this["flush"], this[_0x321a72(294)][_0x321a72(448)]), this["maxValue"] = this[_0x321a72(257)](), this[_0x321a72(339)] = this["getTypedArray"](), this[_0x321a72(417)]();
34699
- }, A["prototype"][_0x3a757e(257)] = function() {
34700
- const _0x4ead78 = _0x3a757e;
34701
- var _0x5f413e = { "8bitInt": 128, "16bitInt": 32768, "32bitInt": 2147483648, "32bitFloat": 1 };
34702
- return _0x5f413e[this[_0x4ead78(294)][_0x4ead78(362)]] ? _0x5f413e[this["option"]["encoding"]] : _0x5f413e[_0x4ead78(237)];
34703
- }, A[_0x3a757e(445)][_0x3a757e(285)] = function() {
34704
- const _0x2bb36d = _0x3a757e;
34705
- var _0x2f2c32 = { "8bitInt": Int8Array, "16bitInt": Int16Array, "32bitInt": Int32Array, "32bitFloat": Float32Array };
34706
- return _0x2f2c32[this[_0x2bb36d(294)]["encoding"]] ? _0x2f2c32[this[_0x2bb36d(294)][_0x2bb36d(362)]] : _0x2f2c32["16bitInt"];
34707
- }, A[_0x3a757e(445)][_0x3a757e(417)] = function() {
34708
- const _0x19e7df = _0x3a757e;
34709
- this[_0x19e7df(338)] = new (window[_0x19e7df(344)] || window[_0x19e7df(231)])(), this[_0x19e7df(372)] = this[_0x19e7df(338)][_0x19e7df(256)](), this[_0x19e7df(372)][_0x19e7df(463)]["value"] = 1, this[_0x19e7df(372)][_0x19e7df(476)](this[_0x19e7df(338)][_0x19e7df(441)]), this[_0x19e7df(295)] = this[_0x19e7df(338)][_0x19e7df(503)];
34710
- }, A[_0x3a757e(445)]["isTypedArray"] = function(_0x49fa25) {
34711
- const _0x29a454 = _0x3a757e;
34712
- return _0x49fa25[_0x29a454(466)] && _0x49fa25[_0x29a454(444)] && _0x49fa25[_0x29a454(444)][_0x29a454(313)] == ArrayBuffer;
34713
- }, A["prototype"]["feed"] = function(_0x460701) {
34714
- const _0x4a3f59 = _0x3a757e;
34715
- if (this["isTypedArray"](_0x460701)) {
34716
- _0x460701 = this[_0x4a3f59(345)](_0x460701);
34717
- var _0x5df3cb = new Float32Array(this[_0x4a3f59(288)]["length"] + _0x460701[_0x4a3f59(374)]);
34718
- _0x5df3cb[_0x4a3f59(402)](this[_0x4a3f59(288)], 0), _0x5df3cb["set"](_0x460701, this[_0x4a3f59(288)][_0x4a3f59(374)]), this[_0x4a3f59(288)] = _0x5df3cb;
34719
- }
34720
- }, A[_0x3a757e(445)][_0x3a757e(345)] = function(_0xcb6998) {
34721
- const _0x2dbee0 = _0x3a757e;
34722
- var _0xcb6998 = new this["typedArray"](_0xcb6998[_0x2dbee0(444)]), _0x21d3c6 = new Float32Array(_0xcb6998[_0x2dbee0(374)]), _0x4d9c94;
34723
- for (_0x4d9c94 = 0; _0x4d9c94 < _0xcb6998[_0x2dbee0(374)]; _0x4d9c94++) _0x21d3c6[_0x4d9c94] = _0xcb6998[_0x4d9c94] / this[_0x2dbee0(269)];
34724
- return _0x21d3c6;
34725
- }, A["prototype"][_0x3a757e(408)] = function(_0x33b9bf) {
34726
- const _0x2ec98c = _0x3a757e;
34727
- this["gainNode"][_0x2ec98c(463)][_0x2ec98c(219)] = _0x33b9bf;
34728
- }, A[_0x3a757e(445)][_0x3a757e(373)] = function() {
34729
- const _0x1bb947 = _0x3a757e;
34730
- this["interval"] && clearInterval(this[_0x1bb947(301)]), this[_0x1bb947(288)] = null, this[_0x1bb947(338)] && this[_0x1bb947(338)][_0x1bb947(308)](), this[_0x1bb947(338)] = null;
34731
- }, A[_0x3a757e(445)][_0x3a757e(410)] = function() {
34732
- const _0x3fc705 = _0x3a757e;
34733
- if (this[_0x3fc705(288)][_0x3fc705(374)]) {
34734
- var _0x3b3988 = this[_0x3fc705(338)][_0x3fc705(452)](), _0x601e56 = this["samples"][_0x3fc705(374)] / this[_0x3fc705(294)][_0x3fc705(492)], _0x9d448d = this[_0x3fc705(338)][_0x3fc705(440)](this["option"]["channels"], _0x601e56, this[_0x3fc705(294)][_0x3fc705(238)]), _0x3b2356, _0x3883a4, _0x13c68, _0x1506de, _0xceb2f9;
34735
- for (_0x3883a4 = 0; _0x3883a4 < this[_0x3fc705(294)][_0x3fc705(492)]; _0x3883a4++) for (_0x3b2356 = _0x9d448d[_0x3fc705(527)](_0x3883a4), _0x13c68 = _0x3883a4, _0xceb2f9 = 50, _0x1506de = 0; _0x1506de < _0x601e56; _0x1506de++) _0x3b2356[_0x1506de] = this["samples"][_0x13c68], _0x1506de < 50 && (_0x3b2356[_0x1506de] = _0x3b2356[_0x1506de] * _0x1506de / 50), _0x1506de >= _0x601e56 - 51 && (_0x3b2356[_0x1506de] = _0x3b2356[_0x1506de] * _0xceb2f9-- / 50), _0x13c68 += this[_0x3fc705(294)][_0x3fc705(492)];
34736
- this[_0x3fc705(295)] < this[_0x3fc705(338)][_0x3fc705(503)] && (this["startTime"] = this[_0x3fc705(338)][_0x3fc705(503)]), _0x3b3988["buffer"] = _0x9d448d, _0x3b3988[_0x3fc705(476)](this[_0x3fc705(372)]), _0x3b3988[_0x3fc705(469)](this[_0x3fc705(295)]), this[_0x3fc705(295)] += _0x9d448d[_0x3fc705(495)], this["samples"] = new Float32Array();
34695
+ _0x581fff = 0;
34696
+ }
34697
+ return _0x581fff > Date[_0x5573fc(483)]() / 1e3;
34698
+ }
34699
+ const j = (_0x241c2d) => _0x241c2d[_0x4ae588(598)](new RegExp(/(\d{3})\d*(\d{4})/), _0x4ae588(497));
34700
+ function A(_0x567554) {
34701
+ this["init"](_0x567554);
34702
+ }
34703
+ A[_0x4ae588(620)]["init"] = function(_0x2188b8) {
34704
+ const _0x443aad = _0x4ae588;
34705
+ var _0x82169c = { "encoding": "16bitInt", "channels": 1, "sampleRate": 8e3, "flushingTime": 1e3 };
34706
+ this[_0x443aad(406)] = Object[_0x443aad(528)]({}, _0x82169c, _0x2188b8), this["samples"] = new Float32Array(), this["flush"] = this[_0x443aad(454)][_0x443aad(366)](this), this[_0x443aad(632)] = setInterval(this[_0x443aad(454)], this[_0x443aad(406)][_0x443aad(560)]), this["maxValue"] = this["getMaxValue"](), this[_0x443aad(494)] = this["getTypedArray"](), this[_0x443aad(656)]();
34707
+ }, A[_0x4ae588(620)][_0x4ae588(486)] = function() {
34708
+ const _0xff9adc = _0x4ae588;
34709
+ var _0x2bf7f1 = { "8bitInt": 128, "16bitInt": 32768, "32bitInt": 2147483648, "32bitFloat": 1 };
34710
+ return _0x2bf7f1[this[_0xff9adc(406)][_0xff9adc(487)]] ? _0x2bf7f1[this[_0xff9adc(406)][_0xff9adc(487)]] : _0x2bf7f1[_0xff9adc(448)];
34711
+ }, A[_0x4ae588(620)]["getTypedArray"] = function() {
34712
+ const _0x4f14f6 = _0x4ae588;
34713
+ var _0x198b1e = { "8bitInt": Int8Array, "16bitInt": Int16Array, "32bitInt": Int32Array, "32bitFloat": Float32Array };
34714
+ return _0x198b1e[this[_0x4f14f6(406)][_0x4f14f6(487)]] ? _0x198b1e[this[_0x4f14f6(406)][_0x4f14f6(487)]] : _0x198b1e["16bitInt"];
34715
+ }, A[_0x4ae588(620)][_0x4ae588(656)] = function() {
34716
+ const _0x3f1b03 = _0x4ae588;
34717
+ this["audioCtx"] = new (window["AudioContext"] || window["webkitAudioContext"])(), this[_0x3f1b03(650)] = this["audioCtx"]["createGain"](), this[_0x3f1b03(650)][_0x3f1b03(568)][_0x3f1b03(388)] = 1, this["gainNode"][_0x3f1b03(500)](this["audioCtx"][_0x3f1b03(651)]), this[_0x3f1b03(563)] = this[_0x3f1b03(467)][_0x3f1b03(593)];
34718
+ }, A["prototype"][_0x4ae588(391)] = function(_0x386c9e) {
34719
+ const _0x54b0d1 = _0x4ae588;
34720
+ return _0x386c9e["byteLength"] && _0x386c9e[_0x54b0d1(643)] && _0x386c9e["buffer"][_0x54b0d1(491)] == ArrayBuffer;
34721
+ }, A[_0x4ae588(620)][_0x4ae588(439)] = function(_0x1426fb) {
34722
+ const _0xa42815 = _0x4ae588;
34723
+ if (this["isTypedArray"](_0x1426fb)) {
34724
+ _0x1426fb = this["getFormatedValue"](_0x1426fb);
34725
+ var _0x2b9d99 = new Float32Array(this[_0xa42815(577)][_0xa42815(435)] + _0x1426fb[_0xa42815(435)]);
34726
+ _0x2b9d99[_0xa42815(377)](this[_0xa42815(577)], 0), _0x2b9d99[_0xa42815(377)](_0x1426fb, this[_0xa42815(577)][_0xa42815(435)]), this[_0xa42815(577)] = _0x2b9d99;
34727
+ }
34728
+ }, A[_0x4ae588(620)][_0x4ae588(384)] = function(_0x150862) {
34729
+ const _0x437f5d = _0x4ae588;
34730
+ var _0x150862 = new this[_0x437f5d(494)](_0x150862[_0x437f5d(643)]), _0x3b560b = new Float32Array(_0x150862["length"]), _0xf4c310;
34731
+ for (_0xf4c310 = 0; _0xf4c310 < _0x150862[_0x437f5d(435)]; _0xf4c310++) _0x3b560b[_0xf4c310] = _0x150862[_0xf4c310] / this["maxValue"];
34732
+ return _0x3b560b;
34733
+ }, A[_0x4ae588(620)][_0x4ae588(395)] = function(_0x17561) {
34734
+ const _0x23c6c4 = _0x4ae588;
34735
+ this[_0x23c6c4(650)][_0x23c6c4(568)][_0x23c6c4(388)] = _0x17561;
34736
+ }, A["prototype"][_0x4ae588(498)] = function() {
34737
+ const _0x2ce509 = _0x4ae588;
34738
+ this[_0x2ce509(632)] && clearInterval(this[_0x2ce509(632)]), this[_0x2ce509(577)] = null, this[_0x2ce509(467)] && this[_0x2ce509(467)][_0x2ce509(518)](), this["audioCtx"] = null;
34739
+ }, A["prototype"]["flush"] = function() {
34740
+ const _0x5a0566 = _0x4ae588;
34741
+ if (this[_0x5a0566(577)][_0x5a0566(435)]) {
34742
+ var _0x3c4ae3 = this[_0x5a0566(467)][_0x5a0566(412)](), _0x16c6c7 = this[_0x5a0566(577)][_0x5a0566(435)] / this[_0x5a0566(406)]["channels"], _0x112c71 = this[_0x5a0566(467)]["createBuffer"](this[_0x5a0566(406)][_0x5a0566(373)], _0x16c6c7, this[_0x5a0566(406)]["sampleRate"]), _0x49e336, _0xa7951c, _0x16361e, _0x2e0818, _0x36e62b;
34743
+ for (_0xa7951c = 0; _0xa7951c < this[_0x5a0566(406)][_0x5a0566(373)]; _0xa7951c++) for (_0x49e336 = _0x112c71[_0x5a0566(657)](_0xa7951c), _0x16361e = _0xa7951c, _0x36e62b = 50, _0x2e0818 = 0; _0x2e0818 < _0x16c6c7; _0x2e0818++) _0x49e336[_0x2e0818] = this[_0x5a0566(577)][_0x16361e], _0x2e0818 < 50 && (_0x49e336[_0x2e0818] = _0x49e336[_0x2e0818] * _0x2e0818 / 50), _0x2e0818 >= _0x16c6c7 - 51 && (_0x49e336[_0x2e0818] = _0x49e336[_0x2e0818] * _0x36e62b-- / 50), _0x16361e += this[_0x5a0566(406)][_0x5a0566(373)];
34744
+ this[_0x5a0566(563)] < this[_0x5a0566(467)][_0x5a0566(593)] && (this[_0x5a0566(563)] = this[_0x5a0566(467)][_0x5a0566(593)]), _0x3c4ae3[_0x5a0566(643)] = _0x112c71, _0x3c4ae3[_0x5a0566(500)](this["gainNode"]), _0x3c4ae3["start"](this[_0x5a0566(563)]), this[_0x5a0566(563)] += _0x112c71[_0x5a0566(551)], this[_0x5a0566(577)] = new Float32Array();
34737
34745
  }
34738
34746
  };
34739
34747
  let l = { "companyID": "", "employeeID": "", "token": "", "callOptions": {}, "onMessage": () => {
34740
34748
  } };
34741
- function H(_0x46161f) {
34742
- const _0xeece3 = _0x3a757e;
34743
- let _0x462cdc = "";
34749
+ function H(_0x34d9d9) {
34750
+ const _0x251902 = _0x4ae588;
34751
+ let _0x15ee82 = "";
34744
34752
  try {
34745
- _0x462cdc = JSON["stringify"](_0x46161f);
34746
- } catch (_0x33c11b) {
34747
- console[_0xeece3(265)](_0xeece3(428), _0x33c11b);
34753
+ _0x15ee82 = JSON[_0x251902(519)](_0x34d9d9);
34754
+ } catch (_0x114da1) {
34755
+ console[_0x251902(495)](_0x251902(484), _0x114da1);
34748
34756
  }
34749
- return _0x462cdc;
34757
+ return _0x15ee82;
34750
34758
  }
34751
- function G(_0x3e99cb) {
34752
- const _0x514bec = _0x3a757e;
34753
- return _0x3e99cb === _0x514bec(459) ? _0x514bec(289) : _0x514bec(529);
34759
+ function G(_0x81c307) {
34760
+ const _0x164236 = _0x4ae588;
34761
+ return _0x81c307 === "test" ? _0x164236(462) : _0x164236(418);
34754
34762
  }
34755
34763
  let M = "";
34756
34764
  function $() {
34757
34765
  U(), M = setInterval(() => {
34758
- const _0x5c817 = _0x548d;
34759
- c[_0x5c817(416)]({ "type": "SendMsg" });
34766
+ const _0x3a9c20 = _0x2125;
34767
+ c["actionSeatHandleIncoming"]({ "type": _0x3a9c20(490) });
34760
34768
  }, 3e4);
34761
34769
  }
34762
- function _0x548d(_0x3113e7, _0x12a02c) {
34763
- const _0x37f668 = _0x37f6();
34764
- return _0x548d = function(_0x548d65, _0x37fb73) {
34765
- _0x548d65 = _0x548d65 - 215;
34766
- let _0x15e7d1 = _0x37f668[_0x548d65];
34767
- return _0x15e7d1;
34768
- }, _0x548d(_0x3113e7, _0x12a02c);
34769
- }
34770
34770
  function U() {
34771
34771
  M && clearInterval(M);
34772
34772
  }
34773
- const a = { "onceCall": false, "seatData": {}, "seatStatus": { "IsOnline": false, "IsAutoAnswer": false }, "instance": "", "voiceInstance": "", "status": _0x3a757e(498), "botStatus": _0x3a757e(498), "audio": document[_0x3a757e(284)](_0x3a757e(224)), "mediaDevice": [], "currentDeviceInfoInput": null, "currentDeviceInfoOutput": null, "recorder": "", "mediaConfig": { "sampleRate": 8e3 }, "customerInfo": null, "callingStage": "", "connectInfo": null, "connectKiwiSeat": null, "phoneRingAudio": "", "recordsData": [], "aiToSeatVoiceUrl": "", "aiToSeat": false, "autoClosed": false, "reconnectCount": 3, "callOnceStage": "" }, p = { "getterSeatAllList": () => a[_0x3a757e(332)][_0x3a757e(366)] || [], "getterSeatAudioInput"() {
34774
- const _0x2b4084 = _0x3a757e;
34775
- return a[_0x2b4084(519)][_0x2b4084(228)]((_0x18ef77) => _0x18ef77[_0x2b4084(432)] === _0x2b4084(404));
34773
+ const a = { "onceCall": false, "seatData": {}, "seatStatus": { "IsOnline": false, "IsAutoAnswer": false }, "instance": "", "voiceInstance": "", "status": _0x4ae588(583), "botStatus": _0x4ae588(583), "audio": document[_0x4ae588(382)](_0x4ae588(525)), "mediaDevice": [], "currentDeviceInfoInput": null, "currentDeviceInfoOutput": null, "recorder": "", "mediaConfig": { "sampleRate": 8e3 }, "customerInfo": null, "callingStage": "", "connectInfo": null, "connectKiwiSeat": null, "phoneRingAudio": "", "recordsData": [], "aiToSeatVoiceUrl": "", "aiToSeat": false, "autoClosed": false, "reconnectCount": 3, "callOnceStage": "" }, p = { "getterSeatAllList": () => a["seatData"]["results"] || [], "getterSeatAudioInput"() {
34774
+ const _0x1c5edd = _0x4ae588;
34775
+ return a["mediaDevice"][_0x1c5edd(534)]((_0x414310) => _0x414310["kind"] === _0x1c5edd(641));
34776
34776
  }, "getterSeatAudioOutput"() {
34777
- const _0x5a0527 = _0x3a757e;
34778
- return a[_0x5a0527(519)][_0x5a0527(228)]((_0x108450) => _0x108450[_0x5a0527(432)] === _0x5a0527(291));
34777
+ const _0x2e99f2 = _0x4ae588;
34778
+ return a[_0x2e99f2(426)][_0x2e99f2(534)]((_0x76774b) => _0x76774b[_0x2e99f2(461)] === _0x2e99f2(533));
34779
34779
  }, "getterSeatCurrentDeviceInfoInputID"() {
34780
- const _0x217d70 = _0x3a757e;
34781
- return a[_0x217d70(248)] ? a[_0x217d70(248)][_0x217d70(531)] : "";
34780
+ const _0x217820 = _0x4ae588;
34781
+ return a[_0x217820(423)] ? a["currentDeviceInfoInput"][_0x217820(596)] : "";
34782
34782
  }, "getterSeatCurrentDeviceInfoOutputID"() {
34783
- const _0x515d6c = _0x3a757e;
34784
- return a[_0x515d6c(462)] ? a["currentDeviceInfoOutput"][_0x515d6c(531)] : "";
34785
- }, "getterSeatCurrentPhoneRingAudio"(_0x18a169) {
34786
- const _0x2d82ce = _0x3a757e;
34787
- return _0x18a169[_0x2d82ce(394)];
34783
+ const _0xf79b97 = _0x4ae588;
34784
+ return a[_0xf79b97(466)] ? a[_0xf79b97(466)][_0xf79b97(596)] : "";
34785
+ }, "getterSeatCurrentPhoneRingAudio"(_0x4311d1) {
34786
+ const _0x235ca2 = _0x4ae588;
34787
+ return _0x4311d1[_0x235ca2(621)];
34788
34788
  }, "getterSeatCustomerInfo"() {
34789
- const _0x19c719 = _0x3a757e;
34790
- return a["customerInfo"] ? a[_0x19c719(355)] : { "Name": "", "Mobile": "", "RingTime": /* @__PURE__ */ new Date() };
34789
+ const _0x405c48 = _0x4ae588;
34790
+ return a[_0x405c48(408)] ? a[_0x405c48(408)] : { "Name": "", "Mobile": "", "RingTime": /* @__PURE__ */ new Date() };
34791
34791
  }, "getterSeatConnectInfo"() {
34792
- const _0x2a06a3 = _0x3a757e;
34793
- return a[_0x2a06a3(504)] ? a["connectInfo"] : { "Name": "", "Mobile": "", "ConnectTime": /* @__PURE__ */ new Date() };
34792
+ const _0x5ba22a = _0x4ae588;
34793
+ return a[_0x5ba22a(411)] ? a[_0x5ba22a(411)] : { "Name": "", "Mobile": "", "ConnectTime": /* @__PURE__ */ new Date() };
34794
34794
  }, "getterSeatIsRinging"() {
34795
- const _0xf446fa = _0x3a757e;
34796
- return a["callingStage"] === _0xf446fa(510);
34795
+ const _0xb76e2b = _0x4ae588;
34796
+ return a[_0xb76e2b(419)] === _0xb76e2b(505);
34797
34797
  }, "getterSeatIsConnected"() {
34798
- const _0x2aec96 = _0x3a757e;
34799
- return a[_0x2aec96(218)] === "connected";
34798
+ const _0x3138fc = _0x4ae588;
34799
+ return a[_0x3138fc(419)] === _0x3138fc(612);
34800
34800
  }, "getterSeatIsHangup"() {
34801
- const _0x101e09 = _0x3a757e;
34802
- return a[_0x101e09(218)] === _0x101e09(232);
34801
+ const _0x2ced94 = _0x4ae588;
34802
+ return a["callingStage"] === _0x2ced94(586);
34803
34803
  }, "getterSeatStatus"() {
34804
- const _0x57c162 = _0x3a757e;
34805
- return a[_0x57c162(258)];
34804
+ const _0x8dfe = _0x4ae588;
34805
+ return a[_0x8dfe(421)];
34806
34806
  }, "getterSeatCanCallout"() {
34807
- const _0x574b65 = _0x3a757e;
34808
- return a[_0x574b65(220)] === _0x574b65(314);
34807
+ const _0x184694 = _0x4ae588;
34808
+ return a[_0x184694(479)] === "connected";
34809
34809
  }, "getterSeatBotStatus"() {
34810
34810
  return a["botStatus"];
34811
34811
  }, "getterSeatRecordsData"() {
34812
- const _0x28789a = _0x3a757e;
34813
- return a[_0x28789a(473)];
34812
+ const _0xb0a911 = _0x4ae588;
34813
+ return a[_0xb0a911(379)];
34814
34814
  }, "getterSeatOnceCall"() {
34815
- const _0x7da418 = _0x3a757e;
34816
- return a[_0x7da418(442)];
34815
+ return a["onceCall"];
34817
34816
  }, "getterAIToSeat"() {
34818
- const _0x24d52e = _0x3a757e;
34819
- return a[_0x24d52e(458)];
34817
+ return a["aiToSeat"];
34820
34818
  }, "getterSeatCallOnceStage"() {
34821
- const _0x45ab10 = _0x3a757e;
34822
- return a[_0x45ab10(436)];
34819
+ const _0x1eb31a = _0x4ae588;
34820
+ return a[_0x1eb31a(425)];
34823
34821
  }, "getterSeatCallingStage"() {
34824
- const _0x17709e = _0x3a757e;
34825
- return a[_0x17709e(218)];
34822
+ const _0x315d33 = _0x4ae588;
34823
+ return a[_0x315d33(419)];
34826
34824
  } };
34827
34825
  let R = false, m = "";
34828
- const c = { "actionSeatInitVoiceWSInstance": (_0x347388) => {
34829
- const _0x53ca98 = _0x3a757e;
34830
- a[_0x53ca98(451)] && (console["log"](_0x53ca98(309), a[_0x53ca98(451)]), a["voiceInstance"][_0x53ca98(308)]());
34831
- const _0x24ca10 = new WebSocket(_0x347388["url"]);
34832
- _0x24ca10[_0x53ca98(370)] = _0x53ca98(397), _0x24ca10[_0x53ca98(446)] = () => {
34833
- const _0x395a76 = _0x53ca98;
34834
- n[_0x395a76(386)]({ "key": _0x395a76(521), "status": _0x395a76(314) });
34835
- }, _0x24ca10["onmessage"] = (_0x69e1b) => {
34836
- const _0x2fbf8e = _0x53ca98;
34837
- if (typeof _0x69e1b[_0x2fbf8e(437)] == _0x2fbf8e(526)) {
34838
- a[_0x2fbf8e(442)] && E(), n[_0x2fbf8e(304)]({ "type": _0x2fbf8e(363), "value": _0x69e1b["data"], "outputID": p[_0x2fbf8e(491)]() });
34826
+ const c = { "actionSeatInitVoiceWSInstance": (_0x955e3e) => {
34827
+ const _0xf3fece = _0x4ae588;
34828
+ a[_0xf3fece(353)] && (console["log"](_0xf3fece(530), a[_0xf3fece(353)]), a["voiceInstance"][_0xf3fece(518)]());
34829
+ const _0x3bce12 = new WebSocket(_0x955e3e[_0xf3fece(370)]);
34830
+ _0x3bce12[_0xf3fece(639)] = _0xf3fece(392), _0x3bce12[_0xf3fece(539)] = () => {
34831
+ const _0x10e34e = _0xf3fece;
34832
+ n[_0x10e34e(358)]({ "key": _0x10e34e(489), "status": "connected" });
34833
+ }, _0x3bce12[_0xf3fece(453)] = (_0x40ea7f) => {
34834
+ const _0x462d94 = _0xf3fece;
34835
+ if (typeof _0x40ea7f[_0x462d94(404)] == _0x462d94(488)) {
34836
+ a[_0x462d94(606)] && E(), n["SEAT_PLAY_AUDIO"]({ "type": _0x462d94(536), "value": _0x40ea7f[_0x462d94(404)], "outputID": p[_0x462d94(414)]() });
34839
34837
  return;
34840
34838
  }
34841
- let _0xbb46d6 = JSON[_0x2fbf8e(272)](_0x69e1b["data"]);
34842
- if (_0xbb46d6[_0x2fbf8e(239)] !== 0) {
34843
- c["actionHandleCallBack"]("Error", _0xbb46d6[_0x2fbf8e(488)]);
34839
+ let _0x78d6ef = JSON["parse"](_0x40ea7f[_0x462d94(404)]);
34840
+ if (_0x78d6ef["Code"] !== 0) {
34841
+ c[_0x462d94(477)](_0x462d94(527), _0x78d6ef[_0x462d94(473)]);
34844
34842
  return;
34845
34843
  }
34846
- switch (_0xbb46d6[_0x2fbf8e(435)]) {
34847
- case _0x2fbf8e(283):
34848
- n[_0x2fbf8e(386)]({ "key": "botStatus", "status": _0x2fbf8e(314) }), c[_0x2fbf8e(416)]({ "type": _0x2fbf8e(453), "wsType": _0x2fbf8e(497) });
34844
+ switch (_0x78d6ef["Type"]) {
34845
+ case _0x462d94(385):
34846
+ n[_0x462d94(358)]({ "key": "botStatus", "status": "connected" }), c["actionSeatHandleIncoming"]({ "type": _0x462d94(443), "wsType": "VoiceFromOther" });
34849
34847
  break;
34850
34848
  }
34851
- }, _0x24ca10["onclose"] = () => {
34852
- const _0x34b430 = _0x53ca98;
34853
- n[_0x34b430(233)](""), n[_0x34b430(386)]({ "key": _0x34b430(521), "status": _0x34b430(449) });
34854
- }, _0x24ca10[_0x53ca98(325)] = () => {
34855
- const _0x5b4553 = _0x53ca98;
34856
- console[_0x5b4553(265)](_0x5b4553(494)), [_0x5b4553(510), _0x5b4553(314)]["indexOf"](a[_0x5b4553(218)]) > -1 && n["SEAT_SEND_MESSAGE"]({ "Type": _0x5b4553(346), "Data": {}, "Code": 0, "Msg": "" + (a[_0x5b4553(458)] ? _0x5b4553(276) : a[_0x5b4553(442)] ? "TypeCallOnce" : ""), "TaskID": "" });
34857
- }, n["SEAT_SET_VoiceWS"](_0x24ca10);
34858
- }, "actionSeatInitWSInstance": (_0x366b08) => {
34859
- const _0xadddd8 = _0x3a757e;
34860
- if (a[_0xadddd8(368)]) {
34861
- console[_0xadddd8(265)]("已有websocket连接,重新连接。"), c["instanceClose"](), R = true;
34849
+ }, _0x3bce12[_0xf3fece(485)] = () => {
34850
+ const _0xfab73d = _0xf3fece;
34851
+ n["SEAT_SET_VoiceWS"](""), n[_0xfab73d(358)]({ "key": _0xfab73d(489), "status": "closed" });
34852
+ }, _0x3bce12[_0xf3fece(360)] = () => {
34853
+ const _0x37a28b = _0xf3fece;
34854
+ console["log"](_0x37a28b(375)), [_0x37a28b(505), _0x37a28b(612)][_0x37a28b(463)](a["callingStage"]) > -1 && n[_0x37a28b(510)]({ "Type": _0x37a28b(383), "Data": {}, "Code": 0, "Msg": "" + (a["aiToSeat"] ? _0x37a28b(413) : a[_0x37a28b(606)] ? _0x37a28b(451) : ""), "TaskID": "" });
34855
+ }, n[_0xf3fece(615)](_0x3bce12);
34856
+ }, "actionSeatInitWSInstance": (_0x4cf7a8) => {
34857
+ const _0x4fb6fb = _0x4ae588;
34858
+ if (a[_0x4fb6fb(403)]) {
34859
+ console["log"](_0x4fb6fb(613)), c["instanceClose"](), R = true;
34862
34860
  return;
34863
34861
  }
34864
- L(_0x366b08);
34862
+ L(_0x4cf7a8);
34865
34863
  }, async "actionSeatTestEquipment"() {
34866
- const _0x105001 = _0x3a757e;
34867
- if (n[_0x105001(243)](), !x()) {
34868
- c["actionHandleCallBack"](_0x105001(467), _0x105001(365));
34864
+ const _0x1f77c5 = _0x4ae588;
34865
+ if (n[_0x1f77c5(652)](), !x()) {
34866
+ c[_0x1f77c5(477)]("Error", _0x1f77c5(579));
34869
34867
  return;
34870
34868
  }
34871
34869
  try {
34872
- const _0x48954f = await navigator[_0x105001(249)][_0x105001(319)]({ "audio": { "advanced": [{ "deviceId": p[_0x105001(502)]() }] } });
34873
- return n[_0x105001(304)]({ "type": _0x105001(312), "value": _0x48954f, "outputID": p[_0x105001(491)]() }), navigator[_0x105001(249)][_0x105001(300)]();
34874
- } catch (_0x66e7a5) {
34875
- O(_0x66e7a5);
34870
+ const _0x1fc35d = await navigator["mediaDevices"][_0x1f77c5(614)]({ "audio": { "advanced": [{ "deviceId": p[_0x1f77c5(446)]() }] } });
34871
+ return n[_0x1f77c5(520)]({ "type": _0x1f77c5(348), "value": _0x1fc35d, "outputID": p[_0x1f77c5(414)]() }), navigator["mediaDevices"][_0x1f77c5(634)]();
34872
+ } catch (_0x4527db) {
34873
+ O(_0x4527db);
34876
34874
  }
34877
34875
  }, async "actionSeatStartPlayer"() {
34878
- const _0x587869 = _0x3a757e;
34876
+ const _0x148f6a = _0x4ae588;
34879
34877
  try {
34880
- m = new A({ "encoding": _0x587869(237), "channels": 1, "sampleRate": 8e3, "flushingTime": 0 });
34881
- } catch (_0x2683e8) {
34882
- console[_0x587869(265)](_0x2683e8);
34878
+ m = new A({ "encoding": _0x148f6a(448), "channels": 1, "sampleRate": 8e3, "flushingTime": 0 });
34879
+ } catch (_0x52cdd4) {
34880
+ console[_0x148f6a(495)](_0x52cdd4);
34883
34881
  }
34884
34882
  }, async "actionSeatStartTalk"() {
34885
- const _0x538c11 = _0x3a757e;
34883
+ const _0x2a83e0 = _0x4ae588;
34886
34884
  if (!x()) {
34887
- c[_0x538c11(431)](_0x538c11(467), _0x538c11(365));
34885
+ c[_0x2a83e0(477)](_0x2a83e0(527), _0x2a83e0(579));
34888
34886
  return;
34889
34887
  }
34890
34888
  try {
34891
- a["recorder"] && a[_0x538c11(278)]["clear"]();
34892
- const _0x77e15a = await navigator[_0x538c11(249)]["getUserMedia"]({ "audio": { "advanced": [{ "deviceId": p[_0x538c11(502)]() }] } });
34893
- a[_0x538c11(278)] = new Y(_0x77e15a, (_0x17fa21) => {
34894
- const _0x2b7f4c = _0x538c11;
34895
- c[_0x2b7f4c(475)](_0x17fa21);
34896
- }), a["recorder"][_0x538c11(469)]();
34897
- } catch (_0x37e7e8) {
34898
- O(_0x37e7e8);
34889
+ a[_0x2a83e0(355)] && a[_0x2a83e0(355)][_0x2a83e0(597)]();
34890
+ const _0x353a95 = await navigator[_0x2a83e0(566)][_0x2a83e0(614)]({ "audio": { "advanced": [{ "deviceId": p["getterSeatCurrentDeviceInfoInputID"]() }] } });
34891
+ a[_0x2a83e0(355)] = new Y(_0x353a95, (_0x208f5a) => {
34892
+ const _0x3f7cf4 = _0x2a83e0;
34893
+ c[_0x3f7cf4(548)](_0x208f5a);
34894
+ }), a[_0x2a83e0(355)][_0x2a83e0(569)]();
34895
+ } catch (_0x560223) {
34896
+ O(_0x560223);
34899
34897
  }
34900
34898
  }, "actionSeatStartWS"() {
34901
- const _0x56bf35 = _0x3a757e;
34902
- c[_0x56bf35(464)]({ "url": G(l[_0x56bf35(315)]) + "/v1/company/" + l["companyID"] + _0x56bf35(216) + l[_0x56bf35(223)] + _0x56bf35(246) + l["token"] });
34903
- }, "actionSeatVoiceWS"(_0x262aaa) {
34904
- const _0x2f8a8a = _0x3a757e;
34905
- let _0x5334dd = "";
34899
+ const _0x3f91cc = _0x4ae588;
34900
+ c[_0x3f91cc(625)]({ "url": G(l[_0x3f91cc(405)]) + "/v1/company/" + l[_0x3f91cc(570)] + _0x3f91cc(602) + l["employeeID"] + _0x3f91cc(587) + l[_0x3f91cc(582)] });
34901
+ }, "actionSeatVoiceWS"(_0x52881c) {
34902
+ const _0x4dcc05 = _0x4ae588;
34903
+ let _0x365db5 = "";
34906
34904
  try {
34907
- _0x5334dd = (_0x262aaa && _0x262aaa[_0x2f8a8a(488)] ? JSON[_0x2f8a8a(272)](_0x262aaa["Msg"]) : [])[_0x2f8a8a(426)]((_0x31c507) => !_0x31c507[_0x2f8a8a(525)](_0x2f8a8a(528)));
34905
+ _0x365db5 = (_0x52881c && _0x52881c[_0x4dcc05(473)] ? JSON["parse"](_0x52881c[_0x4dcc05(473)]) : [])["find"]((_0x3c8770) => !_0x3c8770[_0x4dcc05(493)](_0x4dcc05(368)));
34908
34906
  } catch {
34909
- _0x5334dd = _0x262aaa && _0x262aaa[_0x2f8a8a(488)];
34907
+ _0x365db5 = _0x52881c && _0x52881c[_0x4dcc05(473)];
34910
34908
  }
34911
- c["actionSeatInitVoiceWSInstance"]({ "url": _0x2f8a8a(524) + _0x5334dd + "?key=" + (_0x262aaa && _0x262aaa[_0x2f8a8a(419)][_0x2f8a8a(381)]) });
34912
- }, "actionSeatSendVoice"(_0x27a03a) {
34913
- const _0x1c9559 = _0x3a757e;
34914
- n[_0x1c9559(379)](_0x27a03a);
34909
+ c[_0x4dcc05(515)]({ "url": _0x4dcc05(410) + _0x365db5 + _0x4dcc05(561) + (_0x52881c && _0x52881c[_0x4dcc05(617)][_0x4dcc05(592)]) });
34910
+ }, "actionSeatSendVoice"(_0xa38fd4) {
34911
+ const _0x153ee6 = _0x4ae588;
34912
+ n[_0x153ee6(407)](_0xa38fd4);
34915
34913
  }, async "actionGetMediaDevices"() {
34916
- const _0x70204c = _0x3a757e;
34914
+ const _0x31f20b = _0x4ae588;
34917
34915
  try {
34918
- const _0x3648b1 = await navigator[_0x70204c(249)][_0x70204c(300)]();
34919
- n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x70204c(519), "value": _0x3648b1 }), console[_0x70204c(265)]("devices", _0x3648b1);
34916
+ const _0x5c6870 = await navigator[_0x31f20b(566)]["enumerateDevices"]();
34917
+ n[_0x31f20b(516)]({ "key": _0x31f20b(426), "value": _0x5c6870 }), console[_0x31f20b(495)](_0x31f20b(605), _0x5c6870);
34920
34918
  } catch {
34921
- c[_0x70204c(431)](_0x70204c(467), _0x70204c(245));
34919
+ c[_0x31f20b(477)]("Error", _0x31f20b(363));
34922
34920
  }
34923
- }, "actionSeatHandleIncoming"(_0x243052) {
34924
- const _0x3d4769 = _0x3a757e, { type: _0x345afe, data: _0x2df65c, wsType: _0x140cbe } = _0x243052;
34925
- switch (_0x345afe) {
34926
- case _0x3d4769(323):
34927
- n[_0x3d4769(423)]({ "Type": _0x3d4769(376), "Data": {}, "Code": 0, "Msg": "" + (a[_0x3d4769(458)] ? _0x3d4769(276) : a[_0x3d4769(442)] ? _0x3d4769(286) : ""), "TaskID": "" });
34921
+ }, "actionSeatHandleIncoming"(_0x2c4382) {
34922
+ const _0x4681c4 = _0x4ae588, { type: _0x55b5e8, data: _0xdbfb12, wsType: _0x3e307e } = _0x2c4382;
34923
+ switch (_0x55b5e8) {
34924
+ case _0x4681c4(608):
34925
+ n["SEAT_SEND_MESSAGE"]({ "Type": _0x4681c4(546), "Data": {}, "Code": 0, "Msg": "" + (a[_0x4681c4(390)] ? _0x4681c4(413) : a[_0x4681c4(606)] ? _0x4681c4(451) : ""), "TaskID": "" });
34928
34926
  break;
34929
- case _0x3d4769(264):
34930
- n["SEAT_SEND_MESSAGE"]({ "Type": _0x3d4769(261), "Data": {}, "Code": 0, "Msg": "" + (a["aiToSeat"] ? _0x3d4769(276) : a[_0x3d4769(442)] ? _0x3d4769(286) : ""), "TaskID": "" });
34927
+ case "Reject":
34928
+ n[_0x4681c4(510)]({ "Type": _0x4681c4(644), "Data": {}, "Code": 0, "Msg": "" + (a[_0x4681c4(390)] ? _0x4681c4(413) : a[_0x4681c4(606)] ? _0x4681c4(451) : ""), "TaskID": "" });
34931
34929
  break;
34932
- case _0x3d4769(455):
34933
- n["SEAT_SEND_MESSAGE"]({ "Type": _0x3d4769(351), "Data": {}, "Code": 0, "Msg": "" + (a[_0x3d4769(458)] ? _0x3d4769(276) : a[_0x3d4769(442)] ? _0x3d4769(286) : ""), "TaskID": "" });
34930
+ case _0x4681c4(492):
34931
+ n[_0x4681c4(510)]({ "Type": "SeatHangUp", "Data": {}, "Code": 0, "Msg": "" + (a[_0x4681c4(390)] ? "TypeAIToSeat" : a[_0x4681c4(606)] ? _0x4681c4(451) : ""), "TaskID": "" });
34934
34932
  break;
34935
- case _0x3d4769(334):
34936
- n[_0x3d4769(423)]({ "Type": _0x3d4769(324), "Data": _0x2df65c, "Code": 0, "Msg": _0x3d4769(286), "TaskID": "" });
34933
+ case "Cancel":
34934
+ n[_0x4681c4(510)]({ "Type": _0x4681c4(631), "Data": _0xdbfb12, "Code": 0, "Msg": _0x4681c4(451), "TaskID": "" });
34937
34935
  break;
34938
- case "CallNext":
34939
- n[_0x3d4769(423)]({ "Type": "CallNext", "Data": {}, "Code": 0, "Msg": "", "TaskID": "" });
34936
+ case _0x4681c4(480):
34937
+ n[_0x4681c4(510)]({ "Type": "CallNext", "Data": {}, "Code": 0, "Msg": "", "TaskID": "" });
34940
34938
  break;
34941
- case _0x3d4769(367):
34942
- console[_0x3d4769(265)](_0x3d4769(390), _0x2df65c), n[_0x3d4769(423)]({ "Type": "TypeCallOnce", "Data": _0x2df65c, "Code": 0, "Msg": "", "TaskID": "" }), n[_0x3d4769(513)]({ "key": _0x3d4769(355), "value": Object["assign"]({}, { "CustomerID": "", "Mobile": "", "Name": "", "PlanID": "", "Text": "", "Time": /* @__PURE__ */ new Date() }, _0x2df65c) });
34939
+ case _0x4681c4(475):
34940
+ console["log"](_0x4681c4(571), _0xdbfb12), n[_0x4681c4(510)]({ "Type": _0x4681c4(451), "Data": _0xdbfb12, "Code": 0, "Msg": "", "TaskID": "" }), n[_0x4681c4(516)]({ "key": _0x4681c4(408), "value": Object[_0x4681c4(528)]({}, { "CustomerID": "", "Mobile": "", "Name": "", "PlanID": "", "Text": "", "Time": /* @__PURE__ */ new Date() }, _0xdbfb12) });
34943
34941
  break;
34944
- case _0x3d4769(453):
34945
- n[_0x3d4769(379)](H({ "Type": _0x140cbe, "Data": "", "Code": 0, "Msg": "", "TaskID": "" }));
34942
+ case "VoiceFrom":
34943
+ n["SEAT_SEND_RAW_MESSAGE"](H({ "Type": _0x3e307e, "Data": "", "Code": 0, "Msg": "", "TaskID": "" }));
34946
34944
  break;
34947
- case "SendMsg":
34948
- n[_0x3d4769(423)](_0x3d4769(409));
34945
+ case _0x4681c4(490):
34946
+ n[_0x4681c4(510)](_0x4681c4(645));
34949
34947
  break;
34950
34948
  }
34951
34949
  }, "instanceClose"() {
34952
- const _0x5e62a3 = _0x3a757e;
34953
- a[_0x5e62a3(368)] && (a[_0x5e62a3(368)][_0x5e62a3(308)](), n[_0x5e62a3(513)]({ "key": _0x5e62a3(368), "value": "" }));
34954
- }, "actionSeatUpdatePhoneRingAudio"(_0xbc3fa8) {
34955
- n["SEAT_SET_PHONERINGAUDIO"](_0xbc3fa8);
34956
- }, "actionSeatReconnectWSAfterClosed"(_0x14a6e6) {
34957
- const _0x5eb184 = _0x3a757e;
34958
- n[_0x5eb184(513)]({ "key": _0x5eb184(474), "value": _0x14a6e6 });
34959
- }, "actionHandleCallBack"(_0x52e0ea, _0x4e0cb2, _0x95f04 = {}) {
34960
- const _0x27f649 = _0x3a757e;
34961
- _0x95f04[_0x27f649(438)] !== void 0 && (_0x95f04[_0x27f649(361)] = btoa(_0x95f04[_0x27f649(438)] || "")), _0x95f04 && _0x95f04["Mobile"] && l[_0x27f649(307)] !== false && (_0x95f04[_0x27f649(438)] = j(_0x95f04[_0x27f649(438)])), l["callOptions"] && l["callOptions"][_0x27f649(293)] && (_0x95f04[_0x27f649(293)] = l["callOptions"][_0x27f649(293)]), l["callOptions"] && l[_0x27f649(460)]["CallBack"] && (_0x95f04[_0x27f649(250)] = l["callOptions"][_0x27f649(250)]), l[_0x27f649(353)] && l["onMessage"]({ "type": _0x52e0ea, "msg": _0x4e0cb2, "data": _0x95f04 });
34962
- } }, n = { "SEAT_SET_LIST"(_0xcb9b88) {
34963
- const _0x307bbe = _0x3a757e;
34964
- a[_0x307bbe(332)] = _0xcb9b88;
34965
- }, "SEAT_SET_WS"(_0x13b184) {
34966
- const _0x30e79c = _0x3a757e;
34967
- a[_0x30e79c(368)] = _0x13b184;
34968
- }, "SEAT_SET_VoiceWS"(_0x3ca8d6) {
34969
- a["voiceInstance"] = _0x3ca8d6;
34970
- }, "SEAT_SEND_MESSAGE"(_0x2ec306) {
34971
- const _0x209f93 = _0x3a757e;
34972
- a[_0x209f93(220)] === _0x209f93(314) && a["instance"] && a[_0x209f93(368)][_0x209f93(434)](H(_0x2ec306));
34973
- }, "SEAT_SEND_RAW_MESSAGE"(_0x46d231) {
34974
- const _0x261ab1 = _0x3a757e;
34975
- a[_0x261ab1(220)] === "connected" && a[_0x261ab1(451)] && a["botStatus"] === "connected" && a[_0x261ab1(451)][_0x261ab1(434)](_0x46d231);
34976
- }, "SEAT_UPDATE_WEBSOCKET_STATUS"(_0x25d258) {
34977
- const _0x56f439 = _0x3a757e;
34978
- a[_0x25d258[_0x56f439(421)]] = _0x25d258["status"];
34979
- }, "SEAT_SAVE_KEY_VALUE"(_0x5d6e05) {
34980
- const _0x583a4d = _0x3a757e, { key: _0x1d69b8, value: _0x21770f } = _0x5d6e05;
34981
- a[_0x1d69b8] = _0x21770f, _0x1d69b8 === "callingStage" && _0x21770f === _0x583a4d(232) && (c[_0x583a4d(416)]({ "type": "CallNext" }), h());
34982
- }, "SEAT_PLAY_AUDIO"(_0x34d24f) {
34983
- const _0x425ec8 = _0x3a757e;
34984
- let { type: _0x53dba9, value: _0x492be8 } = _0x34d24f;
34985
- if (_0x53dba9 === _0x425ec8(312)) a[_0x425ec8(224)][_0x425ec8(312)] = _0x492be8;
34950
+ const _0x14c0ea = _0x4ae588;
34951
+ a[_0x14c0ea(403)] && (a[_0x14c0ea(403)][_0x14c0ea(518)](), n[_0x14c0ea(516)]({ "key": _0x14c0ea(403), "value": "" }));
34952
+ }, "actionSeatUpdatePhoneRingAudio"(_0x597452) {
34953
+ const _0x3a15a4 = _0x4ae588;
34954
+ n[_0x3a15a4(618)](_0x597452);
34955
+ }, "actionSeatReconnectWSAfterClosed"(_0xd1792a) {
34956
+ n["SEAT_SAVE_KEY_VALUE"]({ "key": "autoClosed", "value": _0xd1792a });
34957
+ }, "actionHandleCallBack"(_0x6fc51e, _0xf84280, _0x10c3a8 = {}) {
34958
+ const _0x443995 = _0x4ae588;
34959
+ _0x10c3a8[_0x443995(521)] !== void 0 && (_0x10c3a8[_0x443995(381)] = btoa(_0x10c3a8[_0x443995(521)] || "")), _0x10c3a8 && _0x10c3a8[_0x443995(521)] && l[_0x443995(472)] !== false && (_0x10c3a8[_0x443995(521)] = j(_0x10c3a8[_0x443995(521)])), l[_0x443995(478)] && l[_0x443995(478)][_0x443995(610)] && (_0x10c3a8[_0x443995(610)] = l[_0x443995(478)]["OutPlanID"]), l[_0x443995(478)] && l[_0x443995(478)][_0x443995(374)] && (_0x10c3a8[_0x443995(374)] = l["callOptions"]["CallBack"]), l["onMessage"] && l["onMessage"]({ "type": _0x6fc51e, "msg": _0xf84280, "data": _0x10c3a8 });
34960
+ } }, n = { "SEAT_SET_LIST"(_0x3a73c2) {
34961
+ const _0xcb8ac4 = _0x4ae588;
34962
+ a[_0xcb8ac4(532)] = _0x3a73c2;
34963
+ }, "SEAT_SET_WS"(_0x3300b6) {
34964
+ const _0x57bf4a = _0x4ae588;
34965
+ a[_0x57bf4a(403)] = _0x3300b6;
34966
+ }, "SEAT_SET_VoiceWS"(_0x331c0e) {
34967
+ const _0x12fd01 = _0x4ae588;
34968
+ a[_0x12fd01(353)] = _0x331c0e;
34969
+ }, "SEAT_SEND_MESSAGE"(_0x57c2ae) {
34970
+ const _0x265b59 = _0x4ae588;
34971
+ a[_0x265b59(479)] === _0x265b59(612) && a[_0x265b59(403)] && a["instance"]["send"](H(_0x57c2ae));
34972
+ }, "SEAT_SEND_RAW_MESSAGE"(_0x2f82e7) {
34973
+ const _0x4dd881 = _0x4ae588;
34974
+ a[_0x4dd881(479)] === "connected" && a[_0x4dd881(353)] && a[_0x4dd881(489)] === _0x4dd881(612) && a["voiceInstance"][_0x4dd881(397)](_0x2f82e7);
34975
+ }, "SEAT_UPDATE_WEBSOCKET_STATUS"(_0x21f6e5) {
34976
+ const _0x61d803 = _0x4ae588;
34977
+ a[_0x21f6e5[_0x61d803(595)]] = _0x21f6e5[_0x61d803(479)];
34978
+ }, "SEAT_SAVE_KEY_VALUE"(_0x45002b) {
34979
+ const _0x1f2b71 = _0x4ae588, { key: _0x4ab73e, value: _0x7002a8 } = _0x45002b;
34980
+ a[_0x4ab73e] = _0x7002a8, _0x4ab73e === _0x1f2b71(419) && _0x7002a8 === "hangup" && (c[_0x1f2b71(365)]({ "type": _0x1f2b71(480) }), h());
34981
+ }, "SEAT_PLAY_AUDIO"(_0x546017) {
34982
+ const _0x5153c1 = _0x4ae588;
34983
+ let { type: _0x383c7f, value: _0x388038 } = _0x546017;
34984
+ if (_0x383c7f === _0x5153c1(348)) a[_0x5153c1(525)][_0x5153c1(348)] = _0x388038;
34986
34985
  else {
34987
- if (_0x53dba9 === "src") a[_0x425ec8(224)][_0x425ec8(512)] = _0x492be8;
34986
+ if (_0x383c7f === _0x5153c1(559)) a[_0x5153c1(525)]["src"] = _0x388038;
34988
34987
  else {
34989
- if (_0x53dba9 === _0x425ec8(363)) {
34990
- m && m[_0x425ec8(414)](new Int16Array(_0x492be8));
34988
+ if (_0x383c7f === "srcStream") {
34989
+ m && m[_0x5153c1(439)](new Int16Array(_0x388038));
34991
34990
  return;
34992
34991
  }
34993
34992
  }
34994
34993
  }
34995
34994
  }, "SEAT_RESET_AUDIO"() {
34996
- const _0xff5a60 = _0x3a757e;
34997
- a[_0xff5a60(224)] && a[_0xff5a60(224)][_0xff5a60(499)](), a[_0xff5a60(224)][_0xff5a60(312)] = null, a["audio"][_0xff5a60(512)] = "", a["audio"] = document[_0xff5a60(284)](_0xff5a60(224));
34998
- }, "SEAT_SET_PHONERINGAUDIO"(_0x4452be) {
34999
- const _0x19285a = _0x3a757e;
35000
- a[_0x19285a(394)] = _0x4452be;
35001
- }, "SEAT_SET_RECORDSDATA"(_0x2eb8d6) {
35002
- const _0x49ae46 = _0x3a757e;
35003
- if (!_0x2eb8d6) return;
35004
- if ([_0x49ae46(358)][_0x49ae46(347)](_0x2eb8d6[_0x49ae46(435)]) > -1) {
35005
- a[_0x49ae46(473)] = [];
34995
+ const _0x59fe9f = _0x4ae588;
34996
+ a[_0x59fe9f(525)] && a[_0x59fe9f(525)][_0x59fe9f(541)](), a["audio"]["srcObject"] = null, a[_0x59fe9f(525)][_0x59fe9f(559)] = "", a[_0x59fe9f(525)] = document[_0x59fe9f(382)](_0x59fe9f(525));
34997
+ }, "SEAT_SET_PHONERINGAUDIO"(_0x5e1ea8) {
34998
+ a["phoneRingAudio"] = _0x5e1ea8;
34999
+ }, "SEAT_SET_RECORDSDATA"(_0x5d25bb) {
35000
+ const _0x5f4a96 = _0x4ae588;
35001
+ if (!_0x5d25bb) return;
35002
+ if ([_0x5f4a96(429)][_0x5f4a96(463)](_0x5d25bb[_0x5f4a96(581)]) > -1) {
35003
+ a[_0x5f4a96(379)] = [];
35006
35004
  return;
35007
35005
  }
35008
- let _0xdae1c4 = [];
35009
- if (_0x2eb8d6[_0x49ae46(435)] === _0x49ae46(360) && _0x2eb8d6[_0x49ae46(488)] === _0x49ae46(276) && (a["recordsData"] = [], _0xdae1c4 = (JSON[_0x49ae46(272)](_0x2eb8d6["Data"][_0x49ae46(383)])[_0x49ae46(336)] || [])[_0x49ae46(230)]((_0x1994f3) => Object["assign"]({}, _0x1994f3, { "ID": b() }))), a["recordsData"][_0x49ae46(374)] === 0) {
35010
- const _0x1219e8 = { "ID": b(), "PlanID": _0x2eb8d6["Data"][_0x49ae46(381)] ? _0x2eb8d6[_0x49ae46(419)][_0x49ae46(381)] : b(), "Messages": _0x2eb8d6["Type"] === _0x49ae46(360) && _0x2eb8d6[_0x49ae46(488)] === "TypeAIToSeat" ? _0xdae1c4 : [], "HangupBy": "", "ConvrVars": [], "Mobile": _0x2eb8d6["Data"] && _0x2eb8d6[_0x49ae46(419)][_0x49ae46(438)] ? _0x2eb8d6["Data"][_0x49ae46(438)] : "", "Sip": "", "VoiceID": "", "CallAt": _0x2eb8d6[_0x49ae46(419)] && _0x2eb8d6[_0x49ae46(419)]["Time"] ? _0x2eb8d6[_0x49ae46(419)]["Time"] : /* @__PURE__ */ new Date() };
35011
- a[_0x49ae46(473)] = [_0x1219e8];
35006
+ let _0x42c5f7 = [];
35007
+ if (_0x5d25bb["Type"] === _0x5f4a96(655) && _0x5d25bb[_0x5f4a96(473)] === _0x5f4a96(413) && (a["recordsData"] = [], _0x42c5f7 = (JSON[_0x5f4a96(430)](_0x5d25bb[_0x5f4a96(617)][_0x5f4a96(604)])[_0x5f4a96(416)] || [])[_0x5f4a96(367)]((_0x54d331) => Object[_0x5f4a96(528)]({}, _0x54d331, { "ID": b() }))), a[_0x5f4a96(379)][_0x5f4a96(435)] === 0) {
35008
+ const _0x43d71d = { "ID": b(), "PlanID": _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(592)] ? _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(592)] : b(), "Messages": _0x5d25bb[_0x5f4a96(581)] === _0x5f4a96(655) && _0x5d25bb[_0x5f4a96(473)] === "TypeAIToSeat" ? _0x42c5f7 : [], "HangupBy": "", "ConvrVars": [], "Mobile": _0x5d25bb[_0x5f4a96(617)] && _0x5d25bb["Data"][_0x5f4a96(521)] ? _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(521)] : "", "Sip": "", "VoiceID": "", "CallAt": _0x5d25bb[_0x5f4a96(617)] && _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(556)] ? _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(556)] : /* @__PURE__ */ new Date() };
35009
+ a[_0x5f4a96(379)] = [_0x43d71d];
35012
35010
  }
35013
- const _0x42228e = a["recordsData"][0]["Messages"][_0x49ae46(374)] || 0, _0x3ecec2 = { "ID": b(), "Index": _0x42228e, "ProduceBy": _0x2eb8d6["Type"] === _0x49ae46(287) ? _0x49ae46(384) : _0x2eb8d6[_0x49ae46(435)] === _0x49ae46(456) ? _0x49ae46(514) : _0x49ae46(320), "VoiceID": "", "VoiceText": _0x2eb8d6[_0x49ae46(435)] === _0x49ae46(456) ? _0x2eb8d6[_0x49ae46(488)] : _0x2eb8d6["Data"][_0x49ae46(383)], "DurationSec": "", "RecordID": "", "RobotPID": "", "UpdatedAt": _0x49ae46(251), "Events": null, "CreatedAt": _0x49ae46(251), "DeletedAt": null };
35014
- (_0x2eb8d6[_0x49ae46(435)] !== _0x49ae46(360) && _0x2eb8d6["Type"] !== _0x49ae46(456) && _0x2eb8d6[_0x49ae46(419)][_0x49ae46(383)] || _0x2eb8d6[_0x49ae46(435)] === "RobotSay") && a[_0x49ae46(473)][0][_0x49ae46(336)][_0x49ae46(485)](_0x3ecec2);
35011
+ const _0x253d7f = a[_0x5f4a96(379)][0]["Messages"]["length"] || 0, _0x2fc797 = { "ID": b(), "Index": _0x253d7f, "ProduceBy": _0x5d25bb["Type"] === _0x5f4a96(501) ? _0x5f4a96(438) : _0x5d25bb[_0x5f4a96(581)] === _0x5f4a96(362) ? _0x5f4a96(575) : "operator", "VoiceID": "", "VoiceText": _0x5d25bb[_0x5f4a96(581)] === "RobotSay" ? _0x5d25bb[_0x5f4a96(473)] : _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(604)], "DurationSec": "", "RecordID": "", "RobotPID": "", "UpdatedAt": _0x5f4a96(585), "Events": null, "CreatedAt": _0x5f4a96(585), "DeletedAt": null };
35012
+ (_0x5d25bb["Type"] !== _0x5f4a96(655) && _0x5d25bb[_0x5f4a96(581)] !== "RobotSay" && _0x5d25bb[_0x5f4a96(617)][_0x5f4a96(604)] || _0x5d25bb[_0x5f4a96(581)] === _0x5f4a96(362)) && a[_0x5f4a96(379)][0][_0x5f4a96(416)][_0x5f4a96(543)](_0x2fc797);
35015
35013
  } };
35016
- function _0x37f6() {
35017
- const _0x44a1c4 = ["CallBack", "0001-01-01T00:00:00Z", "forEach", "NotSupportedError", "SeatBusy", "22KdeIYo", "createGain", "getMaxValue", "seatStatus", "2690444XjdXwT", "exp", "SeatRefuse", "max", "坐席下线", "Reject", "log", "通话异常", "replace", "坐席说话", "maxValue", "SeatCancelResp", "Say", "parse", "readAsArrayBuffer", "CallConnected", "size", "TypeAIToSeat", "坐席拒接", "recorder", "play", "min", "mobile", "MatchKeyword", "WSConnected", "createElement", "getTypedArray", "TypeCallOnce", "CustomerSayText", "samples", "wss://api.kiwi.tuotoo.org", "缺少companyID、employeeID、token参数", "audiooutput", "outputSampleRate", "OutPlanID", "option", "startTime", "ended", "createMediaStreamSource", "updateConfig", "substr", "enumerateDevices", "interval", "reconnectCount", "aiToSeatRobotHangup", "SEAT_PLAY_AUDIO", "18DpeePt", "LineListID", "maskPhoneNumber", "close", "state.voiceInstance", "坐席上线成功", "getTracks", "srcObject", "constructor", "connected", "env", "getBlob", "InternetErrorHangUp", "state", "getUserMedia", "operator", "createScriptProcessor", "CallNext", "Answer", "SeatCancel", "onerror", "呼出成功", "onaudioprocess", "MandatoryUnsatisfiedError", "terminate", "addEventListener", "manualControlSeat", "seatData", "QualityNotice", "Cancel", "handleError", "Messages", "WSConnectedReplace", "audioCtx", "typedArray", "onmessage", "token过期", "CustomerCancel", "$1****$2", "AudioContext", "getFormatedValue", "SeatConnectClientFailed", "indexOf", "actionSeatVoiceWS", "缺少参数", "3OMLiYm", "SeatHangUp", "振铃中", "onMessage", "CallOnceFailed", "customerInfo", "onclose", "CustomerID", "CustomerConnected", "input", "SeatConnectedResp", "Str", "encoding", "srcStream", "inputBuffer", "当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。", "results", "CallOnce", "instance", "result", "binaryType", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dududu.mp3", "gainNode", "destroy", "length", "inputSampleBits", "SeatConnected", "actionSeatStartWS", "SeatSayText", "SEAT_SEND_RAW_MESSAGE", "string", "PlanID", "4082780BRrgbO", "Text", "customer", "8736804ENwDVm", "SEAT_UPDATE_WEBSOCKET_STATUS", "10nCiHRE", "起呼中", "actionSeatStartPlayer", "呼叫参数", "坐席已挂机", "TaskID", "compress", "phoneRingAudio", "332955DGUztl", "random", "arraybuffer", "SeatRefuseResp", "getTime", "Time", "bind", "set", "instanceClose", "audioinput", "clear", "isAutoAnswer", "token", "volume", "ping", "flush", "planID", "RuleName", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dingdong.mp3", "feed", "online", "actionSeatHandleIncoming", "createContext", "自动接听", "Data", "error", "key", "77LVRRnh", "SEAT_SEND_MESSAGE", "setInt16", "坐席在其他地方上线", "find", "actionSeatStartTalk", "handleData", "init", "catch", "actionHandleCallBack", "kind", "qualityDictionaryIDs", "send", "Type", "callOnceStage", "data", "Mobile", "CallUnexpected", "createBuffer", "destination", "onceCall", "通话中", "buffer", "prototype", "onopen", "客户说话", "flushingTime", "closed", "1339965FbdQUh", "voiceInstance", "createBufferSource", "VoiceFrom", "lineListID", "Hangup", "RobotSay", "无法发现指定的硬件设备。", "aiToSeat", "test", "callOptions", "用户拒绝提供信息。", "currentDeviceInfoOutput", "gain", "actionSeatInitWSInstance", "context", "byteLength", "Error", "响铃中", "start", "呼叫失败", "qualityMonitorIDs", "errMsg", "recordsData", "autoClosed", "actionSeatSendVoice", "connect", "通话连接中", "inputSampleRate", "Online", "target", "defineProperty", "split", "未处理情况", "人机切换自动接听", "push", "InsufficientBalance", "then", "Msg", "PERMISSION_DENIED", "Offline", "getterSeatCurrentDeviceInfoOutputID", "channels", "stop", "actionSeatInitVoiceWSInstance异常", "duration", "companyID", "VoiceFromOther", "initial", "pause", "assign", "offline", "getterSeatCurrentDeviceInfoInputID", "currentTime", "connectInfo", "QualityDictionaryIDs", "actionSeatReconnectWSAfterClosed", "message", "SEAT_SET_RECORDSDATA", "encodePCM", "ringing", "SEAT_SET_WS", "src", "SEAT_SAVE_KEY_VALUE", "robot", "QualityMonitorIDs", "客户拒接", "CallConnecting", "aiToSeatVoiceUrl", "mediaDevice", "133312hTjdSG", "botStatus", "actions", "getterSeatCallOnceStage", "wss://", "includes", "object", "getChannelData", "rtmp://", "wss://api.kiwi.tuotoo.com", "循环响铃", "deviceId", "钱包/通话余量不足", "/seat/call/", "call", "callingStage", "value", "status", "symbol", "outputSampleBits", "employeeID", "audio", "CallOnceSuccess", "浏览器不支持硬件设备。", "qualityNoticeToCaller", "filter", "机器人说话", "map", "webkitAudioContext", "hangup", "SEAT_SET_VoiceWS", "140960RIjVrM", "QualityNoticeToCaller", "CustomerHangUp", "16bitInt", "sampleRate", "Code", "RobotPID", "disconnect", "MANDATORY_UNSATISFIED_ERROR", "SEAT_RESET_AUDIO", "SeatSay", "获取设备列表失败,请检查浏览器权限设置", "/websocket?access_token=", "taskID", "currentDeviceInfoInput", "mediaDevices"];
35018
- _0x37f6 = function() {
35019
- return _0x44a1c4;
35020
- };
35021
- return _0x37f6();
35022
- }
35023
- function L(_0xf89ad5) {
35024
- const _0x221e5c = _0x3a757e, _0x337915 = new WebSocket(_0xf89ad5["url"]);
35025
- _0x337915[_0x221e5c(446)] = () => {
35026
- const _0x1c9604 = _0x221e5c;
35027
- n[_0x1c9604(386)]({ "key": _0x1c9604(220), "status": _0x1c9604(314) });
35028
- }, _0x337915[_0x221e5c(340)] = (_0x515e03) => {
35029
- const _0x15507f = _0x221e5c;
35030
- let _0x474262 = JSON[_0x15507f(272)](_0x515e03[_0x15507f(437)]);
35031
- if (_0x474262[_0x15507f(239)] !== 0) {
35032
- c[_0x15507f(431)](_0x15507f(467), _0x474262[_0x15507f(488)]);
35033
- return;
35034
- }
35035
- switch (_0x474262["Type"]) {
35036
- case "WSConnected":
35037
- n[_0x15507f(386)]({ "key": _0x15507f(220), "status": _0x15507f(314) }), n[_0x15507f(511)](_0x337915), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(258), "value": { "IsOnline": true, "IsAutoAnswer": l[_0x15507f(406)] } }), n[_0x15507f(513)]({ "key": _0x15507f(302), "value": 3 }), c[_0x15507f(431)](_0x15507f(479), _0x15507f(310)), $(), l[_0x15507f(331)] || c["actionSeatHandleIncoming"]({ "type": "CallOnce", "data": l[_0x15507f(460)] });
35014
+ function _0x14e4() {
35015
+ const _0x2d4cff = ["PERMISSION_DENIED", "PermissionDeniedError", "SeatSay", "2186524aaVBjj", "gainNode", "destination", "SEAT_RESET_AUDIO", "string", "CallConnected", "SeatConnectedResp", "createContext", "getChannelData", "srcObject", "CustomerRefuse", "call", "stop", "1855dCsYhM", "voiceInstance", "input", "recorder", "Offline", "Code", "SEAT_UPDATE_WEBSOCKET_STATUS", "inputSampleBits", "onerror", "error", "RobotSay", "获取设备列表失败,请检查浏览器权限设置", "actionSeatStartWS", "actionSeatHandleIncoming", "bind", "map", "rtmp://", "通话中", "url", "terminate", "用户拒绝提供信息。", "channels", "CallBack", "actionSeatInitVoiceWSInstance异常", "employeeID", "set", "toString", "recordsData", "2548546THNiPK", "Str", "createElement", "SeatConnectClientFailed", "getFormatedValue", "WSConnected", "SeatQualityNotice", "CallOnceRinging", "value", "target", "aiToSeat", "isTypedArray", "arraybuffer", "isAutoAnswer", "24qguZsB", "volume", "onaudioprocess", "send", "客户拒接", "autoClosed", "CallUnexpected", "700368SQTMMl", "setInt16", "instance", "data", "env", "option", "SEAT_SEND_RAW_MESSAGE", "customerInfo", "updateConfig", "wss://", "connectInfo", "createBufferSource", "TypeAIToSeat", "getterSeatCurrentDeviceInfoOutputID", "QualityNoticeToCaller", "Messages", "停止响铃", "wss://api.kiwi.tuotoo.com", "callingStage", "WSConnectedReplace", "seatStatus", "createScriptProcessor", "currentDeviceInfoInput", "disconnect", "callOnceStage", "mediaDevice", "人机切换自动接听", "then", "CustomerConnected", "parse", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dududu.mp3", "min", "online", "result", "length", "CustomerHangUp", "aiToSeatRobotHangup", "customer", "feed", "循环响铃", "state", "7qAzFLm", "VoiceFrom", "Say", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/dingdong.mp3", "getterSeatCurrentDeviceInfoInputID", "RobotPID", "16bitInt", "aiToSeatVoiceUrl", "inputBuffer", "TypeCallOnce", "180465onhTTu", "onmessage", "flush", "坐席已挂机", "坐席在其他地方上线", "qualityNoticeToCaller", "1386110bZIMkw", "ended", "onMessage", "kind", "wss://api.kiwi.tuotoo.org", "indexOf", "qualityDictionaryIDs", "Reject", "currentDeviceInfoOutput", "audioCtx", "SeatRefuseResp", "RuleName", "起呼中", "forEach", "maskPhoneNumber", "Msg", "actionSeatStartTalk", "CallOnce", "outputSampleRate", "actionHandleCallBack", "callOptions", "status", "CallNext", "自动接听", "Online", "now", "handleData", "onclose", "getMaxValue", "encoding", "object", "botStatus", "SendMsg", "constructor", "Hangup", "includes", "typedArray", "log", "getTracks", "$1****$2", "destroy", "SeatConnectClientFailedResp", "connect", "CustomerSayText", "getTime", "actionSeatStartPlayer", "getterSeatIsConnected", "ringing", "缺少参数", "无法发现指定的硬件设备。", "name", "actionSeatReconnectWSAfterClosed", "SEAT_SEND_MESSAGE", "NotSupportedError", "820iIRGzS", "QualityNotice", "max", "actionSeatInitVoiceWSInstance", "SEAT_SAVE_KEY_VALUE", "CallConnecting", "close", "stringify", "SEAT_PLAY_AUDIO", "Mobile", "QualityDictionaryIDs", "SeatBusy", "坐席下线", "audio", "SeatCancelResp", "Error", "assign", "size", "state.voiceInstance", "inputSampleRate", "seatData", "audiooutput", "filter", "message", "srcStream", "响铃中", "MandatoryUnsatisfiedError", "onopen", "taskID", "pause", "DictionaryName", "push", "55089UEqMeI", "actions", "SeatConnected", "CustomerSay", "actionSeatSendVoice", "SeatHangUp", "机器人说话", "duration", "LineListID", "坐席上线成功", "context", "catch", "Time", "outputSampleBits", "坐席说话", "src", "flushingTime", "?key=", "InsufficientBalance", "startTime", "play", "无法打开麦克风。异常信息:", "mediaDevices", "通话异常", "gain", "start", "companyID", "呼叫参数", "CustomerID", "planID", "reconnectCount", "robot", "closed", "samples", "qualityMonitorIDs", "当前浏览器不支持录音,请更换浏览器后重试。推荐谷歌浏览器。", "answer", "Type", "token", "initial", "客户已挂机", "0001-01-01T00:00:00Z", "hangup", "/websocket?access_token=", "handleError", "mobile", "SEAT_SET_WS", "坐席正忙", "PlanID", "currentTime", "558ZvwvIQ", "key", "deviceId", "clear", "replace", "MatchKeyword", "substr", "lineListID", "/seat/call/", "errMsg", "Text", "devices", "onceCall", "https://tt-kiwi.oss-cn-shenzhen.aliyuncs.com/permanent/du_4s.mp3", "Answer", "instanceClose", "OutPlanID", "Cancel", "connected", "已有websocket连接,重新连接。", "getUserMedia", "SEAT_SET_VoiceWS", "未处理情况", "Data", "SEAT_SET_PHONERINGAUDIO", "createMediaStreamSource", "prototype", "phoneRingAudio", "addEventListener", "缺少companyID、employeeID、token参数", "SEAT_SET_RECORDSDATA", "actionSeatInitWSInstance", "CallOnceSuccess", "呼出成功", "振铃中", "manualControlSeat", "random", "SeatCancel", "interval", "CallOnceFailed", "enumerateDevices", "onload", "浏览器不支持硬件设备。", "InternetErrorHangUp", "QualityMonitorIDs", "binaryType", "actionSeatVoiceWS", "audioinput", "exp", "buffer", "SeatRefuse", "ping"];
35016
+ _0x14e4 = function() {
35017
+ return _0x2d4cff;
35018
+ };
35019
+ return _0x14e4();
35020
+ }
35021
+ function L(_0x25856e) {
35022
+ const _0x3e4c53 = _0x4ae588, _0x66aa69 = new WebSocket(_0x25856e[_0x3e4c53(370)]);
35023
+ _0x66aa69[_0x3e4c53(539)] = () => {
35024
+ const _0x5741f5 = _0x3e4c53;
35025
+ n[_0x5741f5(358)]({ "key": _0x5741f5(479), "status": "connected" });
35026
+ }, _0x66aa69[_0x3e4c53(453)] = (_0x56c930) => {
35027
+ const _0x12c23d = _0x3e4c53;
35028
+ let _0x11c111 = JSON[_0x12c23d(430)](_0x56c930[_0x12c23d(404)]);
35029
+ switch (_0x11c111[_0x12c23d(357)] !== 0 && c[_0x12c23d(477)](_0x12c23d(527), _0x11c111[_0x12c23d(473)]), _0x11c111[_0x12c23d(581)]) {
35030
+ case _0x12c23d(385):
35031
+ n[_0x12c23d(358)]({ "key": _0x12c23d(479), "status": _0x12c23d(612) }), n[_0x12c23d(590)](_0x66aa69), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(421), "value": { "IsOnline": true, "IsAutoAnswer": l[_0x12c23d(393)] } }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(574), "value": 3 }), c[_0x12c23d(477)](_0x12c23d(482), _0x12c23d(553)), $(), l[_0x12c23d(629)] || c[_0x12c23d(365)]({ "type": _0x12c23d(475), "data": l[_0x12c23d(478)] });
35038
35032
  break;
35039
- case _0x15507f(337):
35040
- c[_0x15507f(506)](false), c[_0x15507f(431)]("SeatConflict", _0x15507f(425));
35033
+ case _0x12c23d(420):
35034
+ c[_0x12c23d(509)](false), c["actionHandleCallBack"]("SeatConflict", _0x12c23d(456));
35041
35035
  break;
35042
- case "CallOnceRinging":
35043
- V(), n[_0x15507f(513)]({ "key": _0x15507f(518), "value": "" }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(436), "value": _0x15507f(352) }), n[_0x15507f(513)]({ "key": _0x15507f(355), "value": _0x474262["Data"] }), c[_0x15507f(431)](_0x15507f(517), _0x15507f(468), { "PlanID": _0x474262[_0x15507f(419)][_0x15507f(381)], "Mobile": _0x474262[_0x15507f(419)]["Mobile"] }), a[_0x15507f(442)] && (c[_0x15507f(389)](), c[_0x15507f(348)](_0x474262));
35036
+ case _0x12c23d(387):
35037
+ V(), n[_0x12c23d(516)]({ "key": _0x12c23d(449), "value": "" }), n[_0x12c23d(516)]({ "key": _0x12c23d(425), "value": "振铃中" }), n[_0x12c23d(516)]({ "key": _0x12c23d(408), "value": _0x11c111["Data"] }), c[_0x12c23d(477)]("CallConnecting", _0x12c23d(537), { "PlanID": _0x11c111[_0x12c23d(617)][_0x12c23d(592)], "Mobile": _0x11c111[_0x12c23d(617)][_0x12c23d(521)] }), a["onceCall"] && (c[_0x12c23d(503)](), c["actionSeatVoiceWS"](_0x11c111));
35044
35038
  break;
35045
- case "SeatQualityNotice":
35046
- const _0x7da539 = _0x474262[_0x15507f(419)];
35047
- c[_0x15507f(431)](_0x15507f(333), "您已触发质检规则", { "PlanID": _0x474262["Data"][_0x15507f(381)], "RuleName": _0x7da539[_0x15507f(412)], "DictionaryName": _0x7da539["DictionaryName"], "MatchKeyword": _0x7da539[_0x15507f(282)] });
35039
+ case _0x12c23d(386):
35040
+ const _0x326aff = _0x11c111[_0x12c23d(617)];
35041
+ c["actionHandleCallBack"](_0x12c23d(513), "您已触发质检规则", { "PlanID": _0x11c111["Data"]["PlanID"], "RuleName": _0x326aff[_0x12c23d(469)], "DictionaryName": _0x326aff[_0x12c23d(542)], "MatchKeyword": _0x326aff[_0x12c23d(599)] });
35048
35042
  break;
35049
- case _0x15507f(271):
35043
+ case _0x12c23d(444):
35050
35044
  break;
35051
- case _0x15507f(354):
35052
- n[_0x15507f(513)]({ "key": "callOnceStage", "value": Number(_0x474262[_0x15507f(239)]) === 203 ? _0x15507f(215) : _0x15507f(470) }), h(), c[_0x15507f(431)](Number(_0x474262["Code"]) === 203 ? _0x15507f(486) : _0x15507f(439), _0x474262[_0x15507f(488)]);
35045
+ case _0x12c23d(633):
35046
+ n[_0x12c23d(516)]({ "key": _0x12c23d(425), "value": Number(_0x11c111[_0x12c23d(357)]) === 203 ? "钱包/通话余量不足" : "呼叫失败" }), h(), c[_0x12c23d(477)](Number(_0x11c111["Code"]) === 203 ? _0x12c23d(562) : _0x12c23d(400), _0x11c111[_0x12c23d(473)]);
35053
35047
  break;
35054
- case "SeatConnectedResp":
35055
- n[_0x15507f(513)]({ "key": "connectInfo", "value": Object[_0x15507f(500)]({}, _0x474262["Data"], { "CustomerID": a[_0x15507f(504)] && a[_0x15507f(504)][_0x15507f(357)], "Time": a["connectInfo"] && a[_0x15507f(504)][_0x15507f(400)] }) }), n[_0x15507f(513)]({ "key": _0x15507f(218), "value": _0x15507f(314) }), n[_0x15507f(508)](_0x474262), E(), W(), a[_0x15507f(458)] && c[_0x15507f(348)](Object[_0x15507f(500)]({}, _0x474262, { "Msg": a[_0x15507f(518)] })), a[_0x15507f(442)] || (c[_0x15507f(389)](), c[_0x15507f(427)]()), c[_0x15507f(431)](_0x15507f(274), _0x15507f(443), { "PlanID": _0x474262[_0x15507f(419)][_0x15507f(381)], "Mobile": _0x474262["Data"][_0x15507f(438)] });
35048
+ case _0x12c23d(655):
35049
+ n[_0x12c23d(516)]({ "key": _0x12c23d(411), "value": Object[_0x12c23d(528)]({}, _0x11c111[_0x12c23d(617)], { "CustomerID": a[_0x12c23d(411)] && a[_0x12c23d(411)][_0x12c23d(572)], "Time": a["connectInfo"] && a[_0x12c23d(411)][_0x12c23d(556)] }) }), n[_0x12c23d(516)]({ "key": _0x12c23d(419), "value": _0x12c23d(612) }), n["SEAT_SET_RECORDSDATA"](_0x11c111), E(), W(), a[_0x12c23d(390)] && c[_0x12c23d(640)](Object[_0x12c23d(528)]({}, _0x11c111, { "Msg": a[_0x12c23d(449)] })), a[_0x12c23d(606)] || (c[_0x12c23d(503)](), c[_0x12c23d(474)]()), c[_0x12c23d(477)](_0x12c23d(654), _0x12c23d(369), { "PlanID": _0x11c111[_0x12c23d(617)][_0x12c23d(592)], "Mobile": _0x11c111[_0x12c23d(617)]["Mobile"] });
35056
35050
  break;
35057
- case _0x15507f(358):
35058
- n[_0x15507f(513)]({ "key": "callingStage", "value": "ringing" }), n[_0x15507f(513)]({ "key": _0x15507f(436), "value": "" }), n["SEAT_SAVE_KEY_VALUE"]({ "key": "connectInfo", "value": _0x474262[_0x15507f(419)] }), n["SEAT_SAVE_KEY_VALUE"]({ "key": "customerInfo", "value": _0x474262[_0x15507f(419)] }), n[_0x15507f(513)]({ "key": _0x15507f(458), "value": false }), n[_0x15507f(513)]({ "key": "aiToSeatVoiceUrl", "value": "" }), n["SEAT_SET_RECORDSDATA"](_0x474262), a["onceCall"] ? (c["actionSeatHandleIncoming"]({ "type": _0x15507f(323) }), n[_0x15507f(513)]({ "key": _0x15507f(218), "value": _0x15507f(314) }), c[_0x15507f(427)]()) : (V(), c[_0x15507f(348)](_0x474262), l[_0x15507f(406)] && setTimeout(() => {
35059
- const _0x577ebb = _0x15507f;
35060
- c[_0x577ebb(416)]({ "type": _0x577ebb(323) }), console[_0x577ebb(265)](_0x577ebb(418));
35061
- }, 500), c[_0x15507f(431)](_0x15507f(517), _0x15507f(477), { "PlanID": _0x474262["Data"][_0x15507f(381)], "Mobile": _0x474262[_0x15507f(419)][_0x15507f(438)] }));
35051
+ case _0x12c23d(429):
35052
+ n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(419), "value": _0x12c23d(505) }), n[_0x12c23d(516)]({ "key": _0x12c23d(425), "value": "" }), n[_0x12c23d(516)]({ "key": "connectInfo", "value": _0x11c111["Data"] }), n[_0x12c23d(516)]({ "key": _0x12c23d(408), "value": _0x11c111["Data"] }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(390), "value": false }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(449), "value": "" }), n[_0x12c23d(624)](_0x11c111), a["onceCall"] ? (c["actionSeatHandleIncoming"]({ "type": _0x12c23d(608) }), n[_0x12c23d(516)]({ "key": "callingStage", "value": _0x12c23d(612) }), c[_0x12c23d(474)]()) : (V(), c[_0x12c23d(640)](_0x11c111), l["isAutoAnswer"] && setTimeout(() => {
35053
+ const _0x223622 = _0x12c23d;
35054
+ c[_0x223622(365)]({ "type": _0x223622(608) }), console[_0x223622(495)](_0x223622(481));
35055
+ }, 500), c[_0x12c23d(477)](_0x12c23d(517), "通话连接中", { "PlanID": _0x11c111["Data"][_0x12c23d(592)], "Mobile": _0x11c111[_0x12c23d(617)]["Mobile"] }));
35062
35056
  break;
35063
- case "SeatConnectClientFailedResp":
35064
- E(), h(), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(218), "value": "" }), c[_0x15507f(403)](), v(), c[_0x15507f(431)](_0x15507f(439), _0x15507f(266));
35057
+ case _0x12c23d(499):
35058
+ E(), h(), n[_0x12c23d(516)]({ "key": "callingStage", "value": "" }), c[_0x12c23d(609)](), v(), c[_0x12c23d(477)](_0x12c23d(400), _0x12c23d(567));
35065
35059
  break;
35066
- case _0x15507f(317):
35067
- E(), a[_0x15507f(278)] && a["recorder"][_0x15507f(493)](), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(218), "value": _0x15507f(232) }), c[_0x15507f(431)](_0x15507f(439), _0x15507f(266)), v();
35060
+ case _0x12c23d(637):
35061
+ E(), a["recorder"] && a["recorder"]["stop"](), n[_0x12c23d(516)]({ "key": "callingStage", "value": _0x12c23d(586) }), c[_0x12c23d(477)](_0x12c23d(400), "通话异常"), v();
35068
35062
  break;
35069
- case _0x15507f(236):
35070
- case _0x15507f(342):
35071
- a[_0x15507f(278)] && a[_0x15507f(278)][_0x15507f(493)](), E(), n[_0x15507f(513)]({ "key": _0x15507f(442), "value": false }), a[_0x15507f(218)] !== "connected" && c["actionSeatHandleIncoming"]({ "type": _0x15507f(322) }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(218), "value": a[_0x15507f(218)] === _0x15507f(314) ? _0x15507f(232) : "" }), c[_0x15507f(431)](_0x15507f(236), "客户已挂机"), v();
35063
+ case _0x12c23d(436):
35064
+ case "CustomerCancel":
35065
+ a[_0x12c23d(355)] && a[_0x12c23d(355)][_0x12c23d(351)](), E(), n["SEAT_SAVE_KEY_VALUE"]({ "key": "onceCall", "value": false }), a[_0x12c23d(419)] !== _0x12c23d(612) && c[_0x12c23d(365)]({ "type": _0x12c23d(480) }), n[_0x12c23d(516)]({ "key": _0x12c23d(419), "value": a[_0x12c23d(419)] === _0x12c23d(612) ? _0x12c23d(586) : "" }), c[_0x12c23d(477)]("CustomerHangUp", _0x12c23d(584)), v();
35072
35066
  break;
35073
- case "CustomerRefuse":
35074
- h(), n[_0x15507f(513)]({ "key": _0x15507f(436), "value": _0x15507f(516) }), n[_0x15507f(513)]({ "key": _0x15507f(218), "value": "" }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(442), "value": false }), E(), c[_0x15507f(431)]("CustomerRefuse", _0x15507f(516)), v();
35067
+ case _0x12c23d(349):
35068
+ h(), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(425), "value": _0x12c23d(398) }), n[_0x12c23d(516)]({ "key": "callingStage", "value": "" }), n[_0x12c23d(516)]({ "key": _0x12c23d(606), "value": false }), E(), c[_0x12c23d(477)](_0x12c23d(349), _0x12c23d(398)), v();
35075
35069
  break;
35076
- case _0x15507f(351):
35077
- a[_0x15507f(278)] && a[_0x15507f(278)][_0x15507f(493)](), n[_0x15507f(513)]({ "key": _0x15507f(218), "value": _0x15507f(232) }), E();
35070
+ case _0x12c23d(549):
35071
+ a[_0x12c23d(355)] && a["recorder"][_0x12c23d(351)](), n[_0x12c23d(516)]({ "key": _0x12c23d(419), "value": "hangup" }), E();
35078
35072
  break;
35079
35073
  case "SeatHangUpResp":
35080
- a[_0x15507f(278)] && (a[_0x15507f(278)][_0x15507f(493)](), a[_0x15507f(278)] = null), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(218), "value": "hangup" }), n[_0x15507f(513)]({ "key": "onceCall", "value": false }), c[_0x15507f(431)]("SeatHangUp", _0x15507f(391));
35074
+ a["recorder"] && (a[_0x12c23d(355)][_0x12c23d(351)](), a["recorder"] = null), n[_0x12c23d(516)]({ "key": _0x12c23d(419), "value": "hangup" }), n[_0x12c23d(516)]({ "key": _0x12c23d(606), "value": false }), c[_0x12c23d(477)](_0x12c23d(549), _0x12c23d(455));
35081
35075
  break;
35082
- case _0x15507f(398):
35083
- console[_0x15507f(265)](_0x15507f(277)), n[_0x15507f(513)]({ "key": _0x15507f(218), "value": "" }), E(), c[_0x15507f(416)]({ "type": "CallNext" });
35076
+ case _0x12c23d(468):
35077
+ console[_0x12c23d(495)]("坐席拒接"), n["SEAT_SAVE_KEY_VALUE"]({ "key": "callingStage", "value": "" }), E(), c["actionSeatHandleIncoming"]({ "type": _0x12c23d(480) });
35084
35078
  break;
35085
- case _0x15507f(270):
35086
- n[_0x15507f(513)]({ "key": _0x15507f(436), "value": "" }), n[_0x15507f(513)]({ "key": _0x15507f(442), "value": false }), c[_0x15507f(431)](_0x15507f(351), _0x15507f(391)), E();
35079
+ case _0x12c23d(526):
35080
+ n[_0x12c23d(516)]({ "key": _0x12c23d(425), "value": "" }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(606), "value": false }), c["actionHandleCallBack"]("SeatHangUp", _0x12c23d(455)), E();
35087
35081
  break;
35088
- case _0x15507f(287):
35089
- n[_0x15507f(508)](_0x474262), c["actionHandleCallBack"]("CustomerSay", _0x15507f(447), { "PlanID": _0x474262[_0x15507f(419)][_0x15507f(381)], "Text": _0x474262["Data"]["Text"], "Time": _0x474262[_0x15507f(419)][_0x15507f(400)] });
35082
+ case _0x12c23d(501):
35083
+ n[_0x12c23d(624)](_0x11c111), c[_0x12c23d(477)](_0x12c23d(547), "客户说话", { "PlanID": _0x11c111[_0x12c23d(617)][_0x12c23d(592)], "Text": _0x11c111["Data"][_0x12c23d(604)], "Time": _0x11c111[_0x12c23d(617)][_0x12c23d(556)] });
35090
35084
  break;
35091
- case _0x15507f(378):
35092
- n[_0x15507f(508)](_0x474262), c[_0x15507f(431)](_0x15507f(244), _0x15507f(268), { "PlanID": _0x474262[_0x15507f(419)]["PlanID"], "Text": _0x474262[_0x15507f(419)]["Text"], "Time": _0x474262[_0x15507f(419)][_0x15507f(400)] });
35085
+ case "SeatSayText":
35086
+ n[_0x12c23d(624)](_0x11c111), c["actionHandleCallBack"](_0x12c23d(648), _0x12c23d(558), { "PlanID": _0x11c111[_0x12c23d(617)]["PlanID"], "Text": _0x11c111["Data"][_0x12c23d(604)], "Time": _0x11c111[_0x12c23d(617)][_0x12c23d(556)] });
35093
35087
  break;
35094
35088
  case "RobotSay":
35095
- n[_0x15507f(508)](_0x474262), c[_0x15507f(431)](_0x15507f(456), _0x15507f(229), { "PlanID": _0x474262["Data"][_0x15507f(381)], "Text": _0x474262[_0x15507f(419)][_0x15507f(383)], "Time": _0x474262[_0x15507f(419)]["Time"] });
35089
+ n["SEAT_SET_RECORDSDATA"](_0x11c111), c[_0x12c23d(477)](_0x12c23d(362), _0x12c23d(550), { "PlanID": _0x11c111["Data"][_0x12c23d(592)], "Text": _0x11c111[_0x12c23d(617)]["Text"], "Time": _0x11c111[_0x12c23d(617)][_0x12c23d(556)] });
35096
35090
  break;
35097
- case _0x15507f(254):
35098
- c[_0x15507f(431)](_0x15507f(254), "坐席正忙");
35091
+ case _0x12c23d(523):
35092
+ c[_0x12c23d(477)](_0x12c23d(523), _0x12c23d(591));
35099
35093
  break;
35100
- case _0x15507f(225):
35101
- n[_0x15507f(513)]({ "key": _0x15507f(442), "value": true }), n[_0x15507f(513)]({ "key": _0x15507f(436), "value": _0x15507f(388) }), c[_0x15507f(431)]("CallOnceSuccess", _0x15507f(326));
35094
+ case "CallOnceSuccess":
35095
+ n[_0x12c23d(516)]({ "key": _0x12c23d(606), "value": true }), n[_0x12c23d(516)]({ "key": _0x12c23d(425), "value": _0x12c23d(470) }), c[_0x12c23d(477)](_0x12c23d(626), _0x12c23d(627));
35102
35096
  break;
35103
- case _0x15507f(276):
35104
- n[_0x15507f(513)]({ "key": _0x15507f(218), "value": _0x15507f(510) }), V(), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(458), "value": true }), n[_0x15507f(513)]({ "key": _0x15507f(518), "value": _0x474262["Msg"] }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(355), "value": _0x474262[_0x15507f(419)] }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(504), "value": _0x474262["Data"] }), l[_0x15507f(406)] && setTimeout(() => {
35105
- const _0x27fcc3 = _0x15507f;
35106
- c[_0x27fcc3(416)]({ "type": _0x27fcc3(323) }), console[_0x27fcc3(265)](_0x27fcc3(484));
35107
- }, 500), c[_0x15507f(431)](_0x15507f(517), _0x15507f(468), { "PlanID": _0x474262[_0x15507f(419)][_0x15507f(381)], "Mobile": _0x474262["Data"]["Mobile"], "IsAIToSeat": true });
35097
+ case _0x12c23d(413):
35098
+ n[_0x12c23d(516)]({ "key": "callingStage", "value": _0x12c23d(505) }), V(), n[_0x12c23d(516)]({ "key": _0x12c23d(390), "value": true }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(449), "value": _0x11c111[_0x12c23d(473)] }), n[_0x12c23d(516)]({ "key": _0x12c23d(408), "value": _0x11c111["Data"] }), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x12c23d(411), "value": _0x11c111[_0x12c23d(617)] }), l[_0x12c23d(393)] && setTimeout(() => {
35099
+ const _0x56447b = _0x12c23d;
35100
+ c[_0x56447b(365)]({ "type": _0x56447b(608) }), console[_0x56447b(495)](_0x56447b(427));
35101
+ }, 500), c["actionHandleCallBack"](_0x12c23d(517), _0x12c23d(537), { "PlanID": _0x11c111[_0x12c23d(617)][_0x12c23d(592)], "Mobile": _0x11c111["Data"][_0x12c23d(521)], "IsAIToSeat": true });
35108
35102
  break;
35109
- case _0x15507f(303):
35110
- a[_0x15507f(278)] && a[_0x15507f(278)]["stop"](), n["SEAT_SAVE_KEY_VALUE"]({ "key": _0x15507f(218), "value": "" }), c[_0x15507f(416)]({ "type": _0x15507f(322) }), E();
35103
+ case _0x12c23d(437):
35104
+ a[_0x12c23d(355)] && a[_0x12c23d(355)]["stop"](), n[_0x12c23d(516)]({ "key": _0x12c23d(419), "value": "" }), c["actionSeatHandleIncoming"]({ "type": "CallNext" }), E();
35111
35105
  break;
35112
35106
  default:
35113
- console[_0x15507f(265)](_0x15507f(483));
35107
+ console[_0x12c23d(495)](_0x12c23d(616));
35114
35108
  break;
35115
35109
  }
35116
- }, _0x337915[_0x221e5c(356)] = () => {
35117
- const _0x39834e = _0x221e5c;
35118
- if (U(), c[_0x39834e(431)]("Offline", _0x39834e(263)), n[_0x39834e(511)](""), n[_0x39834e(386)]({ "key": _0x39834e(220), "status": _0x39834e(449) }), n[_0x39834e(513)]({ "key": _0x39834e(218), "value": "" }), n[_0x39834e(513)]({ "key": "seatStatus", "value": { "IsOnline": false, "IsAutoAnswer": l[_0x39834e(406)] } }), E(), a[_0x39834e(278)] && a[_0x39834e(278)][_0x39834e(493)](), m && m[_0x39834e(373)](), (R || a["autoClosed"]) && a[_0x39834e(302)] > 0) {
35119
- const _0x504edc = a[_0x39834e(302)] - 1;
35120
- console[_0x39834e(265)]("object"), R = false, L(_0xf89ad5), n[_0x39834e(513)]({ "key": _0x39834e(302), "value": _0x504edc });
35110
+ }, _0x66aa69[_0x3e4c53(485)] = () => {
35111
+ const _0x445f40 = _0x3e4c53;
35112
+ if (U(), c["actionHandleCallBack"]("Offline", _0x445f40(524)), n[_0x445f40(590)](""), n[_0x445f40(358)]({ "key": _0x445f40(479), "status": "closed" }), n[_0x445f40(516)]({ "key": _0x445f40(419), "value": "" }), n[_0x445f40(516)]({ "key": _0x445f40(421), "value": { "IsOnline": false, "IsAutoAnswer": l[_0x445f40(393)] } }), E(), a[_0x445f40(355)] && a["recorder"][_0x445f40(351)](), m && m[_0x445f40(498)](), (R || a[_0x445f40(399)]) && a[_0x445f40(574)] > 0) {
35113
+ const _0x2e961c = a["reconnectCount"] - 1;
35114
+ R = false, L(_0x25856e), n[_0x445f40(516)]({ "key": "reconnectCount", "value": _0x2e961c });
35121
35115
  }
35122
- }, _0x337915["onerror"] = () => {
35123
- const _0x5a8946 = _0x221e5c;
35124
- U(), c[_0x5a8946(431)](_0x5a8946(490), _0x5a8946(263)), c[_0x5a8946(403)](), c["actionHandleCallBack"](_0x5a8946(439), "通话异常");
35116
+ }, _0x66aa69[_0x3e4c53(360)] = () => {
35117
+ const _0x226a71 = _0x3e4c53;
35118
+ U(), c[_0x226a71(477)](_0x226a71(356), _0x226a71(524)), c[_0x226a71(609)](), c["actionHandleCallBack"](_0x226a71(400), _0x226a71(567));
35125
35119
  };
35126
35120
  }
35127
- const q = (_0x31d3e3) => {
35128
- const _0x1e0562 = _0x3a757e;
35129
- l = _0x31d3e3, _0x31d3e3[_0x1e0562(331)] ? P[_0x1e0562(522)][_0x1e0562(416)]({ "type": _0x1e0562(367), "data": l["callOptions"] }) : c[_0x1e0562(377)]();
35130
- }, z = (_0x4da26f) => {
35131
- const _0x492f91 = _0x3a757e;
35132
- l = _0x4da26f, c[_0x492f91(377)]();
35121
+ const q = (_0x1df244) => {
35122
+ const _0x3b6002 = _0x4ae588;
35123
+ l = _0x1df244, _0x1df244[_0x3b6002(629)] ? P[_0x3b6002(545)][_0x3b6002(365)]({ "type": _0x3b6002(475), "data": l["callOptions"] }) : c[_0x3b6002(364)]();
35124
+ }, z = (_0x5711c0) => {
35125
+ l = _0x5711c0, c["actionSeatStartWS"]();
35133
35126
  }, J = () => {
35134
- const _0x53c136 = _0x3a757e, _0x24045e = p[_0x53c136(523)]();
35135
- p["getterSeatIsRinging"]() ? c["actionSeatHandleIncoming"]({ "type": _0x53c136(264) }) : p["getterSeatIsConnected"]() ? c[_0x53c136(416)]({ "type": _0x53c136(455) }) : (_0x24045e === _0x53c136(352) || _0x24045e === _0x53c136(388)) && c[_0x53c136(416)]({ "type": "Cancel" }), h();
35127
+ const _0x9ed8a7 = _0x4ae588, _0x2c6e02 = p["getterSeatCallOnceStage"]();
35128
+ p["getterSeatIsRinging"]() ? c["actionSeatHandleIncoming"]({ "type": _0x9ed8a7(465) }) : p[_0x9ed8a7(504)]() ? c[_0x9ed8a7(365)]({ "type": _0x9ed8a7(492) }) : (_0x2c6e02 === _0x9ed8a7(628) || _0x2c6e02 === _0x9ed8a7(470)) && c["actionSeatHandleIncoming"]({ "type": _0x9ed8a7(611) }), h();
35136
35129
  }, h = () => {
35137
35130
  setTimeout(() => {
35138
- const _0x3a0b48 = _0x548d;
35139
- a[_0x3a0b48(451)] && a[_0x3a0b48(451)]["close"](), l["manualControlSeat"] || c["instanceClose"]();
35131
+ const _0x546f24 = _0x2125;
35132
+ a["voiceInstance"] && a[_0x546f24(353)][_0x546f24(518)](), l[_0x546f24(629)] || c[_0x546f24(609)]();
35140
35133
  }, 800);
35141
35134
  }, Q = () => {
35142
- const _0x4f07dd = _0x3a757e;
35143
- c[_0x4f07dd(416)]({ "type": _0x4f07dd(323) });
35144
- }, Z = (_0x4150ce) => {
35145
- const _0x1f812c = _0x3a757e;
35146
- _0x4150ce && (l = Object[_0x1f812c(500)]({}, l, _0x4150ce));
35135
+ const _0x24dcaa = _0x4ae588;
35136
+ c["actionSeatHandleIncoming"]({ "type": _0x24dcaa(608) });
35137
+ }, Z = (_0xe1dbb8) => {
35138
+ const _0x3c7ef5 = _0x4ae588;
35139
+ _0xe1dbb8 && (l = Object[_0x3c7ef5(528)]({}, l, _0xe1dbb8));
35147
35140
  }, P = { "actions": c };
35148
35141
  class ee {
35149
- constructor(_0x22222a) {
35150
- const _0x590005 = _0x3a757e;
35151
- w(this, "data"), this[_0x590005(437)] = _0x22222a;
35152
- }
35153
- [_0x3a757e(217)](_0x3b4331) {
35154
- const _0x398ea2 = _0x3a757e, { mobile: _0x5ec550, callBack: _0x2569e6 = "", outPlanID: _0x109087 = "", robotPID: _0x351478 = "" } = _0x3b4331;
35155
- if (!this["data"][_0x398ea2(496)] || !this[_0x398ea2(437)][_0x398ea2(223)] || !this[_0x398ea2(437)]["token"]) {
35156
- this[_0x398ea2(335)](_0x398ea2(290));
35142
+ constructor(_0x5e4ad8) {
35143
+ const _0xcc0d25 = _0x4ae588;
35144
+ w(this, _0xcc0d25(404)), this[_0xcc0d25(404)] = _0x5e4ad8;
35145
+ }
35146
+ [_0x4ae588(350)](_0x85ef6c) {
35147
+ const _0x2b5745 = _0x4ae588, { mobile: _0x2323e3, callBack: _0x3422c8 = "", outPlanID: _0x25ad13 = "", robotPID: _0x1f3ce3 = "" } = _0x85ef6c;
35148
+ if (!this[_0x2b5745(404)][_0x2b5745(570)] || !this["data"][_0x2b5745(376)] || !this[_0x2b5745(404)]["token"]) {
35149
+ this[_0x2b5745(588)](_0x2b5745(623));
35157
35150
  return;
35158
35151
  }
35159
- if (!_0x5ec550 && !_0x3b4331[_0x398ea2(411)]) {
35160
- this[_0x398ea2(335)](_0x398ea2(349));
35152
+ if (!_0x2323e3 && !_0x85ef6c[_0x2b5745(573)]) {
35153
+ this["handleError"](_0x2b5745(506));
35161
35154
  return;
35162
35155
  }
35163
- if (!F(this[_0x398ea2(437)][_0x398ea2(407)])) {
35164
- this[_0x398ea2(335)](_0x398ea2(341));
35156
+ if (!F(this["data"][_0x2b5745(582)])) {
35157
+ this["handleError"]("token过期");
35165
35158
  return;
35166
35159
  }
35167
- let _0x1edbe6 = { "Mobile": _0x3b4331[_0x398ea2(281)] };
35168
- _0x3b4331[_0x398ea2(454)] && (_0x1edbe6[_0x398ea2(306)] = _0x3b4331[_0x398ea2(454)]), _0x3b4331[_0x398ea2(411)] && (_0x1edbe6[_0x398ea2(381)] = _0x3b4331[_0x398ea2(411)]), _0x3b4331["taskID"] && (_0x1edbe6[_0x398ea2(392)] = _0x3b4331[_0x398ea2(247)]), _0x351478 && (_0x1edbe6[_0x398ea2(240)] = _0x351478), _0x109087 && (_0x1edbe6[_0x398ea2(293)] = _0x109087), _0x2569e6 && (_0x1edbe6[_0x398ea2(250)] = _0x2569e6), _0x3b4331[_0x398ea2(433)] && (_0x1edbe6[_0x398ea2(505)] = _0x3b4331[_0x398ea2(433)]), _0x3b4331[_0x398ea2(471)] && (_0x1edbe6[_0x398ea2(515)] = _0x3b4331[_0x398ea2(471)]), _0x3b4331[_0x398ea2(227)] && (_0x1edbe6[_0x398ea2(235)] = _0x3b4331[_0x398ea2(227)]), B(() => {
35169
- const _0x41c18c = _0x398ea2;
35170
- q(Object[_0x41c18c(500)]({}, this["data"], { "callOptions": _0x1edbe6 }));
35171
- }, (_0x386c83) => {
35172
- const _0x57c130 = _0x398ea2;
35173
- this[_0x57c130(335)](_0x386c83[_0x57c130(472)]);
35160
+ let _0x2dce03 = { "Mobile": _0x85ef6c[_0x2b5745(589)] };
35161
+ _0x85ef6c[_0x2b5745(601)] && (_0x2dce03[_0x2b5745(552)] = _0x85ef6c[_0x2b5745(601)]), _0x85ef6c[_0x2b5745(573)] && (_0x2dce03[_0x2b5745(592)] = _0x85ef6c["planID"]), _0x85ef6c[_0x2b5745(540)] && (_0x2dce03["TaskID"] = _0x85ef6c["taskID"]), _0x1f3ce3 && (_0x2dce03[_0x2b5745(447)] = _0x1f3ce3), _0x25ad13 && (_0x2dce03[_0x2b5745(610)] = _0x25ad13), _0x3422c8 && (_0x2dce03[_0x2b5745(374)] = _0x3422c8), _0x85ef6c[_0x2b5745(464)] && (_0x2dce03[_0x2b5745(522)] = _0x85ef6c[_0x2b5745(464)]), _0x85ef6c[_0x2b5745(578)] && (_0x2dce03[_0x2b5745(638)] = _0x85ef6c[_0x2b5745(578)]), _0x85ef6c[_0x2b5745(457)] && (_0x2dce03[_0x2b5745(415)] = _0x85ef6c[_0x2b5745(457)]), B(() => {
35162
+ const _0x151f02 = _0x2b5745;
35163
+ q(Object[_0x151f02(528)]({}, this[_0x151f02(404)], { "callOptions": _0x2dce03 }));
35164
+ }, (_0x543af8) => {
35165
+ const _0x490030 = _0x2b5745;
35166
+ this["handleError"](_0x543af8[_0x490030(603)]);
35174
35167
  });
35175
35168
  }
35176
- [_0x3a757e(335)](_0x59ead4) {
35177
- const _0x3d4e52 = _0x3a757e;
35178
- this[_0x3d4e52(437)][_0x3d4e52(353)] && this[_0x3d4e52(437)][_0x3d4e52(353)]({ "type": _0x3d4e52(467), "msg": _0x59ead4 });
35169
+ [_0x4ae588(588)](_0x104136) {
35170
+ const _0x347bec = _0x4ae588;
35171
+ this["data"][_0x347bec(460)] && this[_0x347bec(404)][_0x347bec(460)]({ "type": _0x347bec(527), "msg": _0x104136 });
35179
35172
  }
35180
- [_0x3a757e(329)]() {
35173
+ [_0x4ae588(371)]() {
35181
35174
  J();
35182
35175
  }
35183
- ["answer"]() {
35176
+ [_0x4ae588(580)]() {
35184
35177
  Q();
35185
35178
  }
35186
- [_0x3a757e(415)]() {
35179
+ [_0x4ae588(433)]() {
35187
35180
  B(() => {
35188
35181
  z(this["data"]);
35189
- }, (_0x207836) => {
35190
- const _0x9d6169 = _0x548d;
35191
- this["handleError"](_0x207836[_0x9d6169(472)]);
35182
+ }, (_0x594671) => {
35183
+ const _0x13344d = _0x2125;
35184
+ this[_0x13344d(588)](_0x594671["errMsg"]);
35192
35185
  });
35193
35186
  }
35194
- [_0x3a757e(501)]() {
35195
- const _0x4f5ff4 = _0x3a757e;
35196
- P[_0x4f5ff4(522)][_0x4f5ff4(403)]();
35187
+ ["offline"]() {
35188
+ const _0x3bd157 = _0x4ae588;
35189
+ P[_0x3bd157(545)]["instanceClose"]();
35197
35190
  }
35198
- [_0x3a757e(298)](_0x387c0f) {
35199
- Z(_0x387c0f);
35191
+ [_0x4ae588(409)](_0x290c16) {
35192
+ Z(_0x290c16);
35200
35193
  }
35201
35194
  }
35202
35195
  const _hoisted_1$3 = {