UNPKG

minix-template

Version:

minix template

1,394 lines (1,299 loc) 82.4 kB
"use strict"; (globalThis["webpackChunkPf1cca34X"] = globalThis["webpackChunkPf1cca34X"] || []).push([["vendors"],{ /***/ "./node_modules/@babel/runtime/helpers/defineProperty.js": /*!***************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***! \***************************************************************/ /***/ ((module) => { function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } module.exports = _defineProperty, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js": /*!**********************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! \**********************************************************************/ /***/ ((module) => { function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/newArrowCheck.js": /*!**************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/newArrowCheck.js ***! \**************************************************************/ /***/ ((module) => { function _newArrowCheck(innerThis, boundThis) { if (innerThis !== boundThis) { throw new TypeError("Cannot instantiate an arrow function"); } } module.exports = _newArrowCheck, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/readOnlyError.js": /*!**************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/readOnlyError.js ***! \**************************************************************/ /***/ ((module) => { function _readOnlyError(name) { throw new TypeError("\"" + name + "\" is read-only"); } module.exports = _readOnlyError, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@babel/runtime/helpers/typeof.js": /*!*******************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/typeof.js ***! \*******************************************************/ /***/ ((module) => { function _typeof(obj) { "@babel/helpers - typeof"; return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, module.exports.__esModule = true, module.exports.default = module.exports), _typeof(obj); } module.exports = _typeof, module.exports.__esModule = true, module.exports.default = module.exports; function requireModule(moduleName) { const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration', 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource'] var target = '' if (systemList.includes(moduleName.replace('@', ''))) { target = $app_require$('@app-module/' + moduleName.substring(1)); return target; } var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1'); target = requireNapi(shortName); if (typeof target !== 'undefined' && /@ohos/.test(moduleName)) { return target; } if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) { target = ohosplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } if (typeof systemplugin !== 'undefined') { target = systemplugin; for (let key of shortName.split('.')) { target = target[key]; if(!target) { break; } } if (typeof target !== 'undefined') { return target; } } return target; } /***/ }), /***/ "./node_modules/@minix-iot/jsbridge-sdk/dist/index.umd.js": /*!****************************************************************!*\ !*** ./node_modules/@minix-iot/jsbridge-sdk/dist/index.umd.js ***! \****************************************************************/ /***/ ((module, exports, __webpack_require__) => { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__; var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js"); var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js")); var _typeof2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_modules/@babel/runtime/helpers/typeof.js")); var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js")); var _this = void 0; function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } var __defProp = Object.defineProperty, __getOwnPropSymbols = Object.getOwnPropertySymbols, __hasOwnProp = Object.prototype.hasOwnProperty, __propIsEnum = Object.prototype.propertyIsEnumerable, __defNormalProp = function __defNormalProp(e, o, t) { (0, _newArrowCheck2["default"])(this, _this); return o in e ? __defProp(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t; }.bind(void 0), __spreadValues = function __spreadValues(e, o) { (0, _newArrowCheck2["default"])(this, _this); for (var t in o || (o = {})) { __hasOwnProp.call(o, t) && __defNormalProp(e, t, o[t]); } if (__getOwnPropSymbols) { var _iterator = _createForOfIteratorHelper(__getOwnPropSymbols(o)), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var t = _step.value; __propIsEnum.call(o, t) && __defNormalProp(e, t, o[t]); } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } } return e; }.bind(void 0); !function (e, o) { "object" == ( false ? 0 : (0, _typeof2["default"])(exports)) && "undefined" != "object" ? module.exports = o() : true ? !(__WEBPACK_AMD_DEFINE_FACTORY__ = (o), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : 0; }(void 0, function () { "use strict"; var _this21 = this, _Object$freeze, _Object$freeze2, _Object$freeze3, _Object$freeze4, _Object$freeze5, _Object$freeze6, _Object$freeze7, _Object$freeze8, _Object$freeze9, _Object$freeze10, _Object$freeze11, _Object$freeze12, _Object$freeze13, _Object$freeze14, _Object$freeze15, _Object$freeze16, _Object$freeze17, _Object$freeze18, _Object$freeze19, _Object$freeze20, _Object$freeze21, _Object$freeze22, _Object$freeze23, _Object$freeze24, _Object$freeze25; var e = miniXs.requireModule("bridgeModule"), o = miniXs.requireModule("singleBlueToothModule"), t = miniXs.requireModule("blueToothMeshModule"), a = miniXs.requireModule("blueToothModule"), r = miniXs.requireModule("clipboard"), n = miniXs.requireModule("aiSpeechModule"), s = miniXs.requireModule("nfcModule"), i = miniXs.requireModule("midea-audio"), p = miniXs.requireModule("globalEvent"); function l(o, t, a) { var _this2 = this; return new Promise(function (r, n) { (0, _newArrowCheck2["default"])(this, _this2); o || n("params can not be empty in native bridge module"), e.commandInterface(JSON.stringify(o), function (e) { t && t(M(e)), r(M(e)); }, function (e) { a && a(M(e)), r(M(e)); }); }.bind(this)); } function u() { var _this3 = this; var o = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : b("params"); var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var a = t.subModuleName || "commandInterface"; return new Promise(function (t, r) { var _this4 = this; (0, _newArrowCheck2["default"])(this, _this3); e[a](o, function (e) { (0, _newArrowCheck2["default"])(this, _this4); t(M(e)); }.bind(this), function (e) { (0, _newArrowCheck2["default"])(this, _this4); r(M(e)); }.bind(this)); }.bind(this)); } function c(e) { var _this5 = this; var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var a = arguments.length > 2 ? arguments[2] : undefined; var r = arguments.length > 3 ? arguments[3] : undefined; return new Promise(function (n, s) { var _this6 = this; (0, _newArrowCheck2["default"])(this, _this5); o && o[e](t, function (e) { (0, _newArrowCheck2["default"])(this, _this6); a && a(M(e)), n(M(e)); }.bind(this), function (e) { (0, _newArrowCheck2["default"])(this, _this6); r && r(M(e)), s(e); }.bind(this)); }.bind(this)); } function d(e) { var _this7 = this; var o = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; return new Promise(function (a, r) { var _this8 = this; (0, _newArrowCheck2["default"])(this, _this7); if (t && t.hasOwnProperty.call(e)) t[e](o, function (e) { (0, _newArrowCheck2["default"])(this, _this8); a(M(e)); }.bind(this), function (e) { (0, _newArrowCheck2["default"])(this, _this8); a(M(e)); }.bind(this));else { r({ status: -1, message: "blueToothMeshModule \u7F3A\u5C11 ".concat(e) }); } }.bind(this)); } function m(e) { var _this9 = this; var o = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; return new Promise(function (t, r) { var _this10 = this; (0, _newArrowCheck2["default"])(this, _this9); if (a && a.hasOwnProperty.call(e)) a[e](o, function (e) { (0, _newArrowCheck2["default"])(this, _this10); t(M(e)); }.bind(this), function (e) { (0, _newArrowCheck2["default"])(this, _this10); t(M(e)); }.bind(this));else { r({ status: -1, message: "current version blueToothModule has not ".concat(e, " interface") }); } }.bind(this)); } function g(o) { var _this11 = this; var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; return new Promise(function (a, r) { var _this12 = this; (0, _newArrowCheck2["default"])(this, _this11); if (e.hasOwnProperty.call(o)) e[o](JSON.stringify(t), function (e) { (0, _newArrowCheck2["default"])(this, _this12); a(M(e)); }.bind(this), function (e) { (0, _newArrowCheck2["default"])(this, _this12); a(M(e)); }.bind(this));else { r({ status: -1, message: "current version bridgeModule has not ".concat(o, " interface") }); } }.bind(this)); } function f(e, o) { var _this13 = this; return new Promise(function (t, a) { var _this14 = this; (0, _newArrowCheck2["default"])(this, _this13); r && (o ? r[e](o, function (e) { (0, _newArrowCheck2["default"])(this, _this14); t(M(e)); }.bind(this), function (e) { (0, _newArrowCheck2["default"])(this, _this14); a(M(e)); }.bind(this)) : r[e](function (e) { (0, _newArrowCheck2["default"])(this, _this14); t(M(e)); }.bind(this), function (e) { (0, _newArrowCheck2["default"])(this, _this14); a(M(e)); }.bind(this))); }.bind(this)); } function _(e) { var _this15 = this; var o = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; return new Promise(function (t, a) { var _this16 = this; (0, _newArrowCheck2["default"])(this, _this15); n[e](JSON.stringify(o), function (e) { (0, _newArrowCheck2["default"])(this, _this16); t(M(e)); }.bind(this), function (e) { (0, _newArrowCheck2["default"])(this, _this16); t(M(e)); }.bind(this)); }.bind(this)); } function S(e, o, t, a) { var _this17 = this; return new Promise(function (r, n) { var _this18 = this; (0, _newArrowCheck2["default"])(this, _this17); if (s && s.hasOwnProperty.call(e)) s[e](JSON.stringify(o), function (e) { (0, _newArrowCheck2["default"])(this, _this18); t && t(M(e)), r(M(e)); }.bind(this), function (e) { (0, _newArrowCheck2["default"])(this, _this18); a && a(M(e)), n(M(e)); }.bind(this));else { n({ status: -1, message: "nfcModule \u7F3A\u5C11 ".concat(e) }); } }.bind(this)); } function h(e, o) { var _this19 = this; return new Promise(function (t, a) { var _this20 = this; (0, _newArrowCheck2["default"])(this, _this19); i && (o ? i[e](o, function (e) { (0, _newArrowCheck2["default"])(this, _this20); t(M(e)); }.bind(this), function (e) { (0, _newArrowCheck2["default"])(this, _this20); a(M(e)); }.bind(this)) : i[e](function (e) { (0, _newArrowCheck2["default"])(this, _this20); t(M(e)); }.bind(this), function (e) { (0, _newArrowCheck2["default"])(this, _this20); a(M(e)); }.bind(this))); }.bind(this)); } var b = function b(e) { var _this22 = this; (0, _newArrowCheck2["default"])(this, _this21); var o = e ? "".concat(e, "\u53C2\u6570\u4E0D\u80FD\u4E3A\u7A7A") : "参数不能为空"; return new Promise(function (e, t) { (0, _newArrowCheck2["default"])(this, _this22); t(o); }.bind(this)); }.bind(this); function M(e) { try { return JSON.parse(e); } catch (o) { return e; } } var y = { getLoginInfo: function getLoginInfo() { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "getLoginInfo" }); }.bind(this), getUserInfo: function getUserInfo() { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "getUserInfo" }); }.bind(this), logout: function logout() { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "logout" }); }.bind(this), getUnionId: function getUnionId() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : b(); (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "getUnionId", params: e }); }.bind(this), checkCurrentNotificationStatus: function checkCurrentNotificationStatus() { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "checkCurrentNotificationStatus" }); }.bind(this), getAuthToken: function getAuthToken() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return u(e, { subModuleName: "getAuthToken" }); }.bind(this), getAuthorizeUserControl: function getAuthorizeUserControl() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : b(); (0, _newArrowCheck2["default"])(this, _this21); return u(e, { subModuleName: "getAuthorizeUserControl" }); }.bind(this), checkAuthorize: function checkAuthorize() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : b(); (0, _newArrowCheck2["default"])(this, _this21); return u(e, { subModuleName: "checkAuthorize" }); }.bind(this), deleteAuthorizeUser: function deleteAuthorizeUser() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : b(); (0, _newArrowCheck2["default"])(this, _this21); return u(e, { subModuleName: "deleteAuthorizeUser" }); }.bind(this), bindThirdParty: function bindThirdParty() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : b(); (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "bindThirdParty", params: e }); }.bind(this) }; var T = Object.freeze((_Object$freeze = { __proto__: null }, (0, _defineProperty2["default"])(_Object$freeze, Symbol.toStringTag, "Module"), (0, _defineProperty2["default"])(_Object$freeze, "default", y), _Object$freeze)); var I = { setString: function setString() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : b(); (0, _newArrowCheck2["default"])(this, _this21); return f("setString", e); }.bind(this), getString: function getString() { (0, _newArrowCheck2["default"])(this, _this21); return f("getString"); }.bind(this) }; var v = Object.freeze((_Object$freeze2 = { __proto__: null }, (0, _defineProperty2["default"])(_Object$freeze2, Symbol.toStringTag, "Module"), (0, _defineProperty2["default"])(_Object$freeze2, "default", I), _Object$freeze2)), P = { toConfigDevice: function toConfigDevice(e) { (0, _newArrowCheck2["default"])(this, _this21); return S("toConfigDevice", e); }.bind(this), getNfcInfo: function getNfcInfo() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var o = arguments.length > 1 ? arguments[1] : undefined; var t = arguments.length > 2 ? arguments[2] : undefined; (0, _newArrowCheck2["default"])(this, _this21); return S("getNfcInfo", e, o, t); }.bind(this), clearNfcInfo: function clearNfcInfo() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var o = arguments.length > 1 ? arguments[1] : undefined; var t = arguments.length > 2 ? arguments[2] : undefined; (0, _newArrowCheck2["default"])(this, _this21); return S("clearNfcInfo", e, o, t); }.bind(this), getNfcStatus: function getNfcStatus() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var o = arguments.length > 1 ? arguments[1] : undefined; var t = arguments.length > 2 ? arguments[2] : undefined; (0, _newArrowCheck2["default"])(this, _this21); return S("getNfcStatus", e, o, t); }.bind(this), getNfcData: function getNfcData() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var o = arguments.length > 1 ? arguments[1] : undefined; var t = arguments.length > 2 ? arguments[2] : undefined; (0, _newArrowCheck2["default"])(this, _this21); return S("getNfcData", e, o, t); }.bind(this), isSupportNfc: function isSupportNfc() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var o = arguments.length > 1 ? arguments[1] : undefined; var t = arguments.length > 2 ? arguments[2] : undefined; (0, _newArrowCheck2["default"])(this, _this21); return S("isSupportNfc", e, o, t); }.bind(this), startReadNfc: function startReadNfc() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var o = arguments.length > 1 ? arguments[1] : undefined; var t = arguments.length > 2 ? arguments[2] : undefined; (0, _newArrowCheck2["default"])(this, _this21); return S("startReadNfc", e, o, t); }.bind(this) }, O = Object.freeze((_Object$freeze3 = { __proto__: null }, (0, _defineProperty2["default"])(_Object$freeze3, Symbol.toStringTag, "Module"), (0, _defineProperty2["default"])(_Object$freeze3, "default", P), _Object$freeze3)); var B = { canUseSiriShortcut: function canUseSiriShortcut() { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "canUseSiriShortcut" }); }.bind(this), addSceneToSiriShortcut: function addSceneToSiriShortcut() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : b(); (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "addSceneToSiriShortcut", params: e }); }.bind(this), getAllSiriShortcuts: function getAllSiriShortcuts() { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "getAllSiriShortcuts" }); }.bind(this), editSiriShortcut: function editSiriShortcut() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : b(); (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "editSiriShortcut", params: e }); }.bind(this) }; var C = Object.freeze((_Object$freeze4 = { __proto__: null }, (0, _defineProperty2["default"])(_Object$freeze4, Symbol.toStringTag, "Module"), (0, _defineProperty2["default"])(_Object$freeze4, "default", B), _Object$freeze4)), A = { getCurrentHomeInfo: function getCurrentHomeInfo() { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "getCurrentHomeInfo" }); }.bind(this), getTargetHomeInfo: function getTargetHomeInfo() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l(__spreadValues({ operation: "getTargetHomeInfo" }, e)); }.bind(this) }, w = Object.freeze((_Object$freeze5 = { __proto__: null }, (0, _defineProperty2["default"])(_Object$freeze5, Symbol.toStringTag, "Module"), (0, _defineProperty2["default"])(_Object$freeze5, "default", A), _Object$freeze5)), D = { startSpeechMonitor: function startSpeechMonitor(e) { (0, _newArrowCheck2["default"])(this, _this21); return _("startSpeechMonitor", e); }.bind(this), stopSpeechMonitor: function stopSpeechMonitor() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return _("stopSpeechMonitor", e); }.bind(this), resumeSpeechMonitor: function resumeSpeechMonitor() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return _("resumeSpeechMonitor", e); }.bind(this), pauseSpeechMonitor: function pauseSpeechMonitor(e) { (0, _newArrowCheck2["default"])(this, _this21); return _("pauseSpeechMonitor", e); }.bind(this), textToSpeech: function textToSpeech(e) { (0, _newArrowCheck2["default"])(this, _this21); return _("textToSpeech", e); }.bind(this) }, V = Object.freeze((_Object$freeze6 = { __proto__: null }, (0, _defineProperty2["default"])(_Object$freeze6, Symbol.toStringTag, "Module"), (0, _defineProperty2["default"])(_Object$freeze6, "default", D), _Object$freeze6)); var F = { callTel: function callTel(e) { (0, _newArrowCheck2["default"])(this, _this21); return l(__spreadValues({ operation: "callTel" }, e)); }.bind(this), callTelList: function callTelList(e) { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "callTelList", params: e }); }.bind(this), scanCode: function scanCode() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "scanCode", params: e }); }.bind(this) }; var L = Object.freeze((_Object$freeze7 = { __proto__: null }, (0, _defineProperty2["default"])(_Object$freeze7, Symbol.toStringTag, "Module"), (0, _defineProperty2["default"])(_Object$freeze7, "default", F), _Object$freeze7)); var N = { canIUse: function canIUse() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : b(); (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "canIUse", params: { api: e } }); }.bind(this), log: function log() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "log", params: e }); }.bind(this), getSystemInfo: function getSystemInfo() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "getSystemInfo", params: { api: e } }); }.bind(this), fireGlobalEvent: function fireGlobalEvent() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : b(); (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "fireGlobalEvent", params: e }); }.bind(this), addEventListener: function addEventListener(e, o) { (0, _newArrowCheck2["default"])(this, _this21); return function (e, o, t) { var _this23 = this; if (p && p[e]) p[e](o, function (e) { (0, _newArrowCheck2["default"])(this, _this23); t && t(M(e)); }.bind(this));else { var _o = "globalEvent \u7F3A\u5C11 ".concat(e); t && t({ status: -1, message: _o }); } }("addEventListener", e, o); }.bind(this), getPluginInfo: function getPluginInfo(e) { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "getPluginInfo", params: e }); }.bind(this), interfaceForThirdParty: function interfaceForThirdParty() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : b(); (0, _newArrowCheck2["default"])(this, _this21); return u(e, { subModuleName: "interfaceForThirdParty" }); }.bind(this), scanForPlugins: function scanForPlugins(e) { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "scanForPlugins", params: e }); }.bind(this) }; var z = Object.freeze((_Object$freeze8 = { __proto__: null }, (0, _defineProperty2["default"])(_Object$freeze8, Symbol.toStringTag, "Module"), (0, _defineProperty2["default"])(_Object$freeze8, "default", N), _Object$freeze8)), j = { getBluetoothStatus: function getBluetoothStatus() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "getBluetoothStatus", params: e }); }.bind(this), blueToothEnable: function blueToothEnable() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "blueToothEnable", params: e }); }.bind(this), disConnectBluetooth: function disConnectBluetooth(e) { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "disConnectBluetooth", params: e }); }.bind(this), sendBlueToothData: function sendBlueToothData(e) { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "sendBlueToothData", params: e }); }.bind(this), readBlueToothData: function readBlueToothData(e) { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "readBlueToothData", params: e }); }.bind(this), startBluetoothDiscovery: function startBluetoothDiscovery(e) { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "startBluetoothDiscovery", params: e }); }.bind(this), stopBluetoothDiscovery: function stopBluetoothDiscovery() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "stopBluetoothDiscovery", params: e }); }.bind(this), connectBluetooth: function connectBluetooth(e) { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "connectBluetooth", params: e }); }.bind(this), getAllConnectedDeviceInfo: function getAllConnectedDeviceInfo() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "getAllConnectedDeviceInfo", params: e }); }.bind(this), getBlueStatus: function getBlueStatus() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return c("getBlueStatus", e); }.bind(this), startBlueScan: function startBlueScan(e) { (0, _newArrowCheck2["default"])(this, _this21); return c("startBlueScan", e); }.bind(this), stopBlueScan: function stopBlueScan() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return c("stopBlueScan", e); }.bind(this), setupBlueConnection: function setupBlueConnection(e) { (0, _newArrowCheck2["default"])(this, _this21); return c("setupBlueConnection", e); }.bind(this), disconnectBlueConnection: function disconnectBlueConnection(e) { (0, _newArrowCheck2["default"])(this, _this21); return c("disconnectBlueConnection", e); }.bind(this), queryBlueLuaStatus: function queryBlueLuaStatus(e) { (0, _newArrowCheck2["default"])(this, _this21); return c("queryBlueLuaStatus", e); }.bind(this), sendBlueLuaRequest: function sendBlueLuaRequest(e) { (0, _newArrowCheck2["default"])(this, _this21); return c("sendBlueLuaRequest", e); }.bind(this), downFile: function downFile() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return c("downFile", e); }.bind(this), readFirmwareStatus: function readFirmwareStatus(e) { (0, _newArrowCheck2["default"])(this, _this21); return c("readFirmwareStatus", e); }.bind(this), startFirmwareOta: function startFirmwareOta(e) { (0, _newArrowCheck2["default"])(this, _this21); return c("startFirmwareOta", e); }.bind(this), stopFirmwareOta: function stopFirmwareOta(e) { (0, _newArrowCheck2["default"])(this, _this21); return c("stopFirmwareOta", e); }.bind(this), restartBlueDevice: function restartBlueDevice(e) { (0, _newArrowCheck2["default"])(this, _this21); return c("restartBlueDevice", e); }.bind(this), queryDeviceConnectStatus: function queryDeviceConnectStatus(e) { (0, _newArrowCheck2["default"])(this, _this21); return c("queryDeviceConnectStatus", e); }.bind(this), switchModuleMode: function switchModuleMode() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return c("switchModuleMode", e); }.bind(this), setupBlueMeshConnection: function setupBlueMeshConnection() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return d("setupBlueMeshConnection", e); }.bind(this), disconnectBlueMeshConnection: function disconnectBlueMeshConnection() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return d("disconnectBlueMeshConnection", e); }.bind(this), getDeviceBlueMeshListInfo: function getDeviceBlueMeshListInfo() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return m("getDeviceBlueMeshListInfo", e); }.bind(this), sendBlueMeshControlMessage: function sendBlueMeshControlMessage() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return m("sendBlueMeshControlMessage", e); }.bind(this), addBlueMeshModelSubscription: function addBlueMeshModelSubscription() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return m("addBlueMeshModelSubscription", e); }.bind(this), deleteBlueMeshModelSubscription: function deleteBlueMeshModelSubscription() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return m("deleteBlueMeshModelSubscription", e); }.bind(this) }, k = Object.freeze((_Object$freeze9 = { __proto__: null }, (0, _defineProperty2["default"])(_Object$freeze9, Symbol.toStringTag, "Module"), (0, _defineProperty2["default"])(_Object$freeze9, "default", j), _Object$freeze9)); var q = { changeVolume: function changeVolume() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : b(); (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "changeVolume", params: e }); }.bind(this), checkAndRequestPermission: function checkAndRequestPermission() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "checkAndRequestPermission", params: e }); }.bind(this), getBatteryInfo: function getBatteryInfo() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "getBatteryInfo", params: { api: e } }); }.bind(this), setKeepScreenOn: function setKeepScreenOn(e) { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "setKeepScreenOn", params: { api: e } }); }.bind(this), getScreenBrightness: function getScreenBrightness() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "getScreenBrightness", params: e }); }.bind(this), setScreenBrightness: function setScreenBrightness(e) { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "setScreenBrightness", params: e }); }.bind(this), startCompass: function startCompass() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "startCompass", params: e }); }.bind(this), stopCompass: function stopCompass() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "stopCompass", params: e }); }.bind(this), startGyroscope: function startGyroscope() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "startGyroscope", params: e }); }.bind(this), stopGyroscope: function stopGyroscope() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "stopGyroscope", params: e }); }.bind(this), startAccelerometer: function startAccelerometer() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "startAccelerometer", params: e }); }.bind(this), stopAccelerometer: function stopAccelerometer() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "stopAccelerometer", params: e }); }.bind(this), vibrateLong: function vibrateLong() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "vibrateLong", params: e }); }.bind(this), vibrateShort: function vibrateShort() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "vibrateShort", params: e }); }.bind(this), startDeviceMotionListening: function startDeviceMotionListening() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "startDeviceMotionListening", params: e }); }.bind(this), stopDeviceMotionListening: function stopDeviceMotionListening() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "stopDeviceMotionListening", params: e }); }.bind(this), getNetworkStatus: function getNetworkStatus() { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "getNetworkStatus" }); }.bind(this), vibrate: function vibrate() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : b(); (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "vibrate", params: e }); }.bind(this), setIdleTimerDisabled: function setIdleTimerDisabled() { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "setIdleTimerDisabled" }); }.bind(this), getAppInfo: function getAppInfo() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "getAppInfo", params: e }); }.bind(this), getAppNewVersion: function getAppNewVersion() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "getAppNewVersion", params: e }); }.bind(this), getElderMode: function getElderMode() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "getElderMode", params: e }); }.bind(this), upgradeApp: function upgradeApp() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "upgradeApp", params: e }); }.bind(this), setBackHandle: function setBackHandle(e) { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "setBackHandle", isMonitor: e }); }.bind(this), openNativeSystemSetting: function openNativeSystemSetting() { var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "bluetooth"; (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "openNativeSystemSetting", setting: e }); }.bind(this) }; var R = Object.freeze((_Object$freeze10 = { __proto__: null }, (0, _defineProperty2["default"])(_Object$freeze10, Symbol.toStringTag, "Module"), (0, _defineProperty2["default"])(_Object$freeze10, "default", q), _Object$freeze10)), E = { luaQuery: function luaQuery(e) { (0, _newArrowCheck2["default"])(this, _this21); return l(__spreadValues({ operation: "luaQuery" }, e)); }.bind(this), luaQueryJson: function luaQueryJson(e) { (0, _newArrowCheck2["default"])(this, _this21); return l(__spreadValues({ operation: "luaQueryJson" }, e)); }.bind(this), luaControl: function luaControl(e) { (0, _newArrowCheck2["default"])(this, _this21); return l(__spreadValues({ operation: "luaControl" }, e)); }.bind(this), addDevice: function addDevice(e) { (0, _newArrowCheck2["default"])(this, _this21); return S("addDevice", e); }.bind(this), checkDeviceOTAUpdate: function checkDeviceOTAUpdate(e) { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "checkDeviceOTAUpdate", params: e }); }.bind(this), getDeviceConnectInfo: function getDeviceConnectInfo(e) { (0, _newArrowCheck2["default"])(this, _this21); return S("getDeviceConnectInfo", e); }.bind(this), getDeviceList: function getDeviceList(e) { (0, _newArrowCheck2["default"])(this, _this21); return l(__spreadValues({ operation: "getDeviceList" }, e)); }.bind(this), getDeviceOTAUpgradeInfo: function getDeviceOTAUpgradeInfo(e) { (0, _newArrowCheck2["default"])(this, _this21); return l(__spreadValues({ operation: "getDeviceOTAUpgradeInfo" }, e)); }.bind(this), toConfigDevice: function toConfigDevice(e) { (0, _newArrowCheck2["default"])(this, _this21); return S("toConfigDevice", e); }.bind(this) }, U = Object.freeze((_Object$freeze11 = { __proto__: null }, (0, _defineProperty2["default"])(_Object$freeze11, Symbol.toStringTag, "Module"), (0, _defineProperty2["default"])(_Object$freeze11, "default", E), _Object$freeze11)); var x = { encrypt: function encrypt(e) { (0, _newArrowCheck2["default"])(this, _this21); return l({ operation: "encrypt", params: e }); }.bind(this), decrypt: function decrypt()