{"version":3,"sources":["node_modules/@awesome-cordova-plugins/core/bootstrap.js","node_modules/@awesome-cordova-plugins/core/decorators/common.js","node_modules/@awesome-cordova-plugins/core/util.js","node_modules/@awesome-cordova-plugins/core/awesome-cordova-plugin.js","node_modules/@awesome-cordova-plugins/core/decorators/cordova.js","node_modules/@awesome-cordova-plugins/core/index.js","node_modules/@awesome-cordova-plugins/call-number/ngx/index.js"],"sourcesContent":["/**\n *\n */\nexport function checkReady() {\n if (typeof process === 'undefined') {\n var win_1 = typeof window !== 'undefined' ? window : {};\n var DEVICE_READY_TIMEOUT_1 = 5000;\n // To help developers using cordova, we listen for the device ready event and\n // log an error if it didn't fire in a reasonable amount of time. Generally,\n // when this happens, developers should remove and reinstall plugins, since\n // an inconsistent plugin is often the culprit.\n var before_1 = Date.now();\n var didFireReady_1 = false;\n win_1.document.addEventListener('deviceready', function () {\n console.log(\"Ionic Native: deviceready event fired after \" + (Date.now() - before_1) + \" ms\");\n didFireReady_1 = true;\n });\n setTimeout(function () {\n if (!didFireReady_1 && win_1.cordova) {\n console.warn(\"Ionic Native: deviceready did not fire within \" + DEVICE_READY_TIMEOUT_1 + \"ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.\");\n }\n }, DEVICE_READY_TIMEOUT_1);\n }\n}\n","import { fromEvent, Observable } from 'rxjs';\nexport var ERR_CORDOVA_NOT_AVAILABLE = {\n error: 'cordova_not_available'\n};\nexport var ERR_PLUGIN_NOT_INSTALLED = {\n error: 'plugin_not_installed'\n};\n/**\n * @param callback\n */\nexport function getPromise(callback) {\n var tryNativePromise = function () {\n if (Promise) {\n return new Promise(function (resolve, reject) {\n callback(resolve, reject);\n });\n } else {\n console.error('No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.');\n }\n };\n if (typeof window !== 'undefined' && window.angular) {\n var doc = window.document;\n var injector = window.angular.element(doc.querySelector('[ng-app]') || doc.body).injector();\n if (injector) {\n var $q = injector.get('$q');\n return $q(function (resolve, reject) {\n callback(resolve, reject);\n });\n }\n console.warn(\"Angular 1 was detected but $q couldn't be retrieved. This is usually when the app is not bootstrapped on the html or body tag. Falling back to native promises which won't trigger an automatic digest when promises resolve.\");\n }\n return tryNativePromise();\n}\n/**\n * @param pluginObj\n * @param methodName\n * @param args\n * @param opts\n */\nexport function wrapPromise(pluginObj, methodName, args, opts) {\n if (opts === void 0) {\n opts = {};\n }\n var pluginResult, rej;\n var p = getPromise(function (resolve, reject) {\n if (opts.destruct) {\n pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return resolve(args);\n }, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return reject(args);\n });\n } else {\n pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, resolve, reject);\n }\n rej = reject;\n });\n // Angular throws an error on unhandled rejection, but in this case we have already printed\n // a warning that Cordova is undefined or the plugin is uninstalled, so there is no reason\n // to error\n if (pluginResult && pluginResult.error) {\n p.catch(function () {});\n typeof rej === 'function' && rej(pluginResult.error);\n }\n return p;\n}\n/**\n * @param pluginObj\n * @param methodName\n * @param args\n * @param opts\n */\nfunction wrapOtherPromise(pluginObj, methodName, args, opts) {\n if (opts === void 0) {\n opts = {};\n }\n return getPromise(function (resolve, reject) {\n var pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts);\n if (pluginResult) {\n if (pluginResult.error) {\n reject(pluginResult.error);\n } else if (pluginResult.then) {\n pluginResult.then(resolve).catch(reject);\n }\n } else {\n reject({\n error: 'unexpected_error'\n });\n }\n });\n}\n/**\n * @param pluginObj\n * @param methodName\n * @param args\n * @param opts\n */\nfunction wrapObservable(pluginObj, methodName, args, opts) {\n if (opts === void 0) {\n opts = {};\n }\n return new Observable(function (observer) {\n var pluginResult;\n if (opts.destruct) {\n pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return observer.next(args);\n }, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return observer.error(args);\n });\n } else {\n pluginResult = callCordovaPlugin(pluginObj, methodName, args, opts, observer.next.bind(observer), observer.error.bind(observer));\n }\n if (pluginResult && pluginResult.error) {\n observer.error(pluginResult.error);\n observer.complete();\n }\n return function () {\n try {\n if (opts.clearFunction) {\n if (opts.clearWithArgs) {\n return callCordovaPlugin(pluginObj, opts.clearFunction, args, opts, observer.next.bind(observer), observer.error.bind(observer));\n }\n return callCordovaPlugin(pluginObj, opts.clearFunction, []);\n }\n } catch (e) {\n console.warn('Unable to clear the previous observable watch for', pluginObj.constructor.getPluginName(), methodName);\n console.warn(e);\n }\n };\n });\n}\n/**\n * Wrap the event with an observable\n *\n * @private\n * @param event event name\n * @param element The element to attach the event listener to\n * @returns {Observable}\n */\nfunction wrapEventObservable(event, element) {\n element = typeof window !== 'undefined' && element ? get(window, element) : element || (typeof window !== 'undefined' ? window : {});\n return fromEvent(element, event);\n}\n/**\n * @param plugin\n * @param methodName\n * @param pluginName\n */\nexport function checkAvailability(plugin, methodName, pluginName) {\n var pluginRef, pluginPackage;\n if (typeof plugin === 'string') {\n pluginRef = plugin;\n } else {\n pluginRef = plugin.constructor.getPluginRef();\n pluginName = plugin.constructor.getPluginName();\n pluginPackage = plugin.constructor.getPluginInstallName();\n }\n var pluginInstance = getPlugin(pluginRef);\n if (!pluginInstance || !!methodName && typeof pluginInstance[methodName] === 'undefined') {\n if (typeof window === 'undefined' || !window.cordova) {\n cordovaWarn(pluginName, methodName);\n return ERR_CORDOVA_NOT_AVAILABLE;\n }\n pluginWarn(pluginName, pluginPackage, methodName);\n return ERR_PLUGIN_NOT_INSTALLED;\n }\n return true;\n}\n/**\n * Checks if _objectInstance exists and has the method/property\n *\n * @param pluginObj\n * @param methodName\n * @private\n */\nexport function instanceAvailability(pluginObj, methodName) {\n return pluginObj._objectInstance && (!methodName || typeof pluginObj._objectInstance[methodName] !== 'undefined');\n}\n/**\n * @param args\n * @param opts\n * @param resolve\n * @param reject\n */\nexport function setIndex(args, opts, resolve, reject) {\n if (opts === void 0) {\n opts = {};\n }\n // ignore resolve and reject in case sync\n if (opts.sync) {\n return args;\n }\n // If the plugin method expects myMethod(success, err, options)\n if (opts.callbackOrder === 'reverse') {\n // Get those arguments in the order [resolve, reject, ...restOfArgs]\n args.unshift(reject);\n args.unshift(resolve);\n } else if (opts.callbackStyle === 'node') {\n args.push(function (err, result) {\n if (err) {\n reject(err);\n } else {\n resolve(result);\n }\n });\n } else if (opts.callbackStyle === 'object' && opts.successName && opts.errorName) {\n var obj = {};\n obj[opts.successName] = resolve;\n obj[opts.errorName] = reject;\n args.push(obj);\n } else if (typeof opts.successIndex !== 'undefined' || typeof opts.errorIndex !== 'undefined') {\n var setSuccessIndex = function () {\n // If we've specified a success/error index\n if (opts.successIndex > args.length) {\n args[opts.successIndex] = resolve;\n } else {\n args.splice(opts.successIndex, 0, resolve);\n }\n };\n var setErrorIndex = function () {\n // We don't want that the reject cb gets spliced into the position of an optional argument that has not been\n // defined and thus causing non expected behavior.\n if (opts.errorIndex > args.length) {\n args[opts.errorIndex] = reject; // insert the reject fn at the correct specific index\n } else {\n args.splice(opts.errorIndex, 0, reject); // otherwise just splice it into the array\n }\n };\n if (opts.successIndex > opts.errorIndex) {\n setErrorIndex();\n setSuccessIndex();\n } else {\n setSuccessIndex();\n setErrorIndex();\n }\n } else {\n // Otherwise, let's tack them on to the end of the argument list\n // which is 90% of cases\n args.push(resolve);\n args.push(reject);\n }\n return args;\n}\n/**\n * @param pluginObj\n * @param methodName\n * @param args\n * @param opts\n * @param resolve\n * @param reject\n */\nexport function callCordovaPlugin(pluginObj, methodName, args, opts, resolve, reject) {\n if (opts === void 0) {\n opts = {};\n }\n // Try to figure out where the success/error callbacks need to be bound\n // to our promise resolve/reject handlers.\n args = setIndex(args, opts, resolve, reject);\n var availabilityCheck = checkAvailability(pluginObj, methodName);\n if (availabilityCheck === true) {\n var pluginInstance = getPlugin(pluginObj.constructor.getPluginRef());\n // eslint-disable-next-line prefer-spread\n return pluginInstance[methodName].apply(pluginInstance, args);\n } else {\n return availabilityCheck;\n }\n}\n/**\n * @param pluginObj\n * @param methodName\n * @param args\n * @param opts\n * @param resolve\n * @param reject\n */\nexport function callInstance(pluginObj, methodName, args, opts, resolve, reject) {\n if (opts === void 0) {\n opts = {};\n }\n args = setIndex(args, opts, resolve, reject);\n if (instanceAvailability(pluginObj, methodName)) {\n // eslint-disable-next-line prefer-spread\n return pluginObj._objectInstance[methodName].apply(pluginObj._objectInstance, args);\n }\n}\n/**\n * @param pluginRef\n */\nexport function getPlugin(pluginRef) {\n if (typeof window !== 'undefined') {\n return get(window, pluginRef);\n }\n return null;\n}\n/**\n * @param element\n * @param path\n */\nexport function get(element, path) {\n var paths = path.split('.');\n var obj = element;\n for (var i = 0; i < paths.length; i++) {\n if (!obj) {\n return null;\n }\n obj = obj[paths[i]];\n }\n return obj;\n}\n/**\n * @param pluginName\n * @param plugin\n * @param method\n */\nexport function pluginWarn(pluginName, plugin, method) {\n if (method) {\n console.warn('Native: tried calling ' + pluginName + '.' + method + ', but the ' + pluginName + ' plugin is not installed.');\n } else {\n console.warn(\"Native: tried accessing the \" + pluginName + \" plugin but it's not installed.\");\n }\n if (plugin) {\n console.warn(\"Install the \" + pluginName + \" plugin: 'ionic cordova plugin add \" + plugin + \"'\");\n }\n}\n/**\n * @private\n * @param pluginName\n * @param method\n */\nexport function cordovaWarn(pluginName, method) {\n if (typeof process === 'undefined') {\n if (method) {\n console.warn('Native: tried calling ' + pluginName + '.' + method + ', but Cordova is not available. Make sure to include cordova.js or run in a device/simulator');\n } else {\n console.warn('Native: tried accessing the ' + pluginName + ' plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator');\n }\n }\n}\n/**\n * @param pluginObj\n * @param methodName\n * @param opts\n * @private\n */\nexport var wrap = function (pluginObj, methodName, opts) {\n if (opts === void 0) {\n opts = {};\n }\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (opts.sync) {\n // Sync doesn't wrap the plugin with a promise or observable, it returns the result as-is\n return callCordovaPlugin(pluginObj, methodName, args, opts);\n } else if (opts.observable) {\n return wrapObservable(pluginObj, methodName, args, opts);\n } else if (opts.eventObservable && opts.event) {\n return wrapEventObservable(opts.event, opts.element);\n } else if (opts.otherPromise) {\n return wrapOtherPromise(pluginObj, methodName, args, opts);\n } else {\n return wrapPromise(pluginObj, methodName, args, opts);\n }\n };\n};\n/**\n * @param pluginObj\n * @param methodName\n * @param opts\n * @private\n */\nexport function wrapInstance(pluginObj, methodName, opts) {\n if (opts === void 0) {\n opts = {};\n }\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (opts.sync) {\n return callInstance(pluginObj, methodName, args, opts);\n } else if (opts.observable) {\n return new Observable(function (observer) {\n var pluginResult;\n if (opts.destruct) {\n pluginResult = callInstance(pluginObj, methodName, args, opts, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return observer.next(args);\n }, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return observer.error(args);\n });\n } else {\n pluginResult = callInstance(pluginObj, methodName, args, opts, observer.next.bind(observer), observer.error.bind(observer));\n }\n if (pluginResult && pluginResult.error) {\n observer.error(pluginResult.error);\n }\n return function () {\n try {\n if (opts.clearWithArgs) {\n return callInstance(pluginObj, opts.clearFunction, args, opts, observer.next.bind(observer), observer.error.bind(observer));\n }\n return callInstance(pluginObj, opts.clearFunction, []);\n } catch (e) {\n console.warn('Unable to clear the previous observable watch for', pluginObj.constructor.getPluginName(), methodName);\n console.warn(e);\n }\n };\n });\n } else if (opts.otherPromise) {\n return getPromise(function (resolve, reject) {\n var result;\n if (opts.destruct) {\n result = callInstance(pluginObj, methodName, args, opts, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return resolve(args);\n }, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return reject(args);\n });\n } else {\n result = callInstance(pluginObj, methodName, args, opts, resolve, reject);\n }\n if (result && result.then) {\n result.then(resolve, reject);\n } else {\n reject();\n }\n });\n } else {\n var pluginResult_1, rej_1;\n var p = getPromise(function (resolve, reject) {\n if (opts.destruct) {\n pluginResult_1 = callInstance(pluginObj, methodName, args, opts, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return resolve(args);\n }, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return reject(args);\n });\n } else {\n pluginResult_1 = callInstance(pluginObj, methodName, args, opts, resolve, reject);\n }\n rej_1 = reject;\n });\n // Angular throws an error on unhandled rejection, but in this case we have already printed\n // a warning that Cordova is undefined or the plugin is uninstalled, so there is no reason\n // to error\n if (pluginResult_1 && pluginResult_1.error) {\n p.catch(function () {});\n typeof rej_1 === 'function' && rej_1(pluginResult_1.error);\n }\n return p;\n }\n };\n}\n","/**\n * @param element\n * @param path\n * @private\n */\nexport function get(element, path) {\n var paths = path.split('.');\n var obj = element;\n for (var i = 0; i < paths.length; i++) {\n if (!obj) {\n return null;\n }\n obj = obj[paths[i]];\n }\n return obj;\n}\n/**\n * @param callback\n * @private\n */\nexport function getPromise(callback) {\n if (callback === void 0) {\n callback = function () {};\n }\n var tryNativePromise = function () {\n if (typeof Promise === 'function' || typeof window !== 'undefined' && window.Promise) {\n return new Promise(function (resolve, reject) {\n callback(resolve, reject);\n });\n } else {\n console.error('No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.');\n }\n };\n return tryNativePromise();\n}\n","import { checkAvailability } from './decorators/common';\nimport { get } from './util';\nvar AwesomeCordovaNativePlugin = /** @class */function () {\n function AwesomeCordovaNativePlugin() {}\n /**\n * Returns a boolean that indicates whether the plugin is installed\n *\n * @returns {boolean}\n */\n AwesomeCordovaNativePlugin.installed = function () {\n var isAvailable = checkAvailability(this.pluginRef) === true;\n return isAvailable;\n };\n /**\n * Returns the original plugin object\n */\n AwesomeCordovaNativePlugin.getPlugin = function () {\n if (typeof window !== 'undefined') {\n return get(window, this.pluginRef);\n }\n return null;\n };\n /**\n * Returns the plugin's name\n */\n AwesomeCordovaNativePlugin.getPluginName = function () {\n var pluginName = this.pluginName;\n return pluginName;\n };\n /**\n * Returns the plugin's reference\n */\n AwesomeCordovaNativePlugin.getPluginRef = function () {\n var pluginRef = this.pluginRef;\n return pluginRef;\n };\n /**\n * Returns the plugin's install name\n */\n AwesomeCordovaNativePlugin.getPluginInstallName = function () {\n var plugin = this.plugin;\n return plugin;\n };\n /**\n * Returns the plugin's supported platforms\n */\n AwesomeCordovaNativePlugin.getSupportedPlatforms = function () {\n var platform = this.platforms;\n return platform;\n };\n AwesomeCordovaNativePlugin.pluginName = '';\n AwesomeCordovaNativePlugin.pluginRef = '';\n AwesomeCordovaNativePlugin.plugin = '';\n AwesomeCordovaNativePlugin.repo = '';\n AwesomeCordovaNativePlugin.platforms = [];\n AwesomeCordovaNativePlugin.install = '';\n return AwesomeCordovaNativePlugin;\n}();\nexport { AwesomeCordovaNativePlugin };\n","import { wrap } from './common';\n/**\n * @param pluginObj\n * @param methodName\n * @param config\n * @param args\n */\nexport function cordova(pluginObj, methodName, config, args) {\n return wrap(pluginObj, methodName, config).apply(this, args);\n}\n","import { checkReady } from './bootstrap';\nexport { AwesomeCordovaNativePlugin } from './awesome-cordova-plugin';\n// Decorators\nexport { checkAvailability, instanceAvailability, wrap, getPromise } from './decorators/common';\nexport * from './decorators/cordova';\nexport * from './decorators/cordova-function-override';\nexport * from './decorators/cordova-instance';\nexport * from './decorators/cordova-property';\nexport * from './decorators/instance-property';\nexport * from './decorators/interfaces';\ncheckReady();\n","import { __decorate, __extends } from \"tslib\";\nimport { Injectable } from '@angular/core';\nimport { AwesomeCordovaNativePlugin, cordova } from '@awesome-cordova-plugins/core';\nimport * as i0 from \"@angular/core\";\nvar CallNumber = /** @class */function (_super) {\n __extends(CallNumber, _super);\n function CallNumber() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n CallNumber.prototype.callNumber = function (numberToCall, bypassAppChooser) {\n return cordova(this, \"callNumber\", {\n \"callbackOrder\": \"reverse\"\n }, arguments);\n };\n CallNumber.prototype.isCallSupported = function () {\n return cordova(this, \"isCallSupported\", {}, arguments);\n };\n CallNumber.ɵfac = /* @__PURE__ */(() => {\n let ɵCallNumber_BaseFactory;\n return function CallNumber_Factory(__ngFactoryType__) {\n return (ɵCallNumber_BaseFactory || (ɵCallNumber_BaseFactory = i0.ɵɵgetInheritedFactory(CallNumber)))(__ngFactoryType__ || CallNumber);\n };\n })();\n CallNumber.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: CallNumber,\n factory: CallNumber.ɵfac\n });\n CallNumber.pluginName = \"CallNumber\";\n CallNumber.plugin = \"call-number\";\n CallNumber.pluginRef = \"plugins.CallNumber\";\n CallNumber.repo = \"https://github.com/Rohfosho/CordovaCallNumberPlugin\";\n CallNumber.platforms = [\"Android\", \"iOS\"];\n CallNumber = __decorate([], CallNumber);\n return CallNumber;\n}(AwesomeCordovaNativePlugin);\nexport { CallNumber };\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n"],"mappings":"4EAGO,SAASA,GAAa,CAC3B,GAAI,OAAO,QAAY,IAAa,CAClC,IAAIC,EAAQ,OAAO,OAAW,IAAc,OAAS,CAAC,EAClDC,EAAyB,IAKzBC,EAAW,KAAK,IAAI,EACpBC,EAAiB,GACrBH,EAAM,SAAS,iBAAiB,cAAe,UAAY,CACzD,Q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AG,SAAS,CACvD,EACAL,EAAW,WAAuB,IAAM,CACtC,IAAIM,EACJ,OAAO,SAA4BC,EAAmB,CACpD,OAAQD,IAA4BA,EAA6BE,EAAsBR,CAAU,IAAIO,GAAqBP,CAAU,CACtI,CACF,GAAG,EACHA,EAAW,WAA0BS,EAAmB,CACtD,MAAOT,EACP,QAASA,EAAW,SACtB,CAAC,EACDA,EAAW,WAAa,aACxBA,EAAW,OAAS,cACpBA,EAAW,UAAY,qBACvBA,EAAW,KAAO,sDAClBA,EAAW,UAAY,CAAC,UAAW,KAAK,EACxCA,EAAaU,EAAW,CAAC,EAAGV,CAAU,EAC/BA,CACT,EAAEW,CAA0B","names":["checkReady","win_1","DEVICE_READY_TIMEOUT_1","before_1","didFireReady_1","ERR_CORDOVA_NOT_AVAILABLE","ERR_PLUGIN_NOT_INSTALLED","getPromise","callback","tryNativePromise","resolve","reject","doc","injector","$q","wrapPromise","pluginObj","methodName","args","opts","pluginResult","rej","p","callCordovaPlugin","_i","wrapOtherPromise","wrapObservable","Observable","observer","e","wrapEventObservable","event","element","get","fromEvent","checkAvailability","plugin","pluginName","pluginRef","pluginPackage","pluginInstance","getPlugin","cordovaWarn","pluginWarn","setIndex","args","opts","resolve","reject","err","result","obj","setSuccessIndex","setErrorIndex","callCordovaPlugin","pluginObj","methodName","availabilityCheck","checkAvailability","pluginInstance","getPlugin","getPlugin","pluginRef","get","element","path","paths","obj","i","pluginWarn","pluginName","plugin","method","cordovaWarn","wrap","pluginObj","methodName","opts","args","_i","callCordovaPlugin","wrapObservable","wrapEventObservable","wrapOtherPromise","wrapPromise","get","element","path","paths","obj","i","AwesomeCordovaNativePlugin","isAvailable","checkAvailability","get","pluginName","pluginRef","plugin","platform","cordova","pluginObj","methodName","config","args","wrap","checkReady","CallNumber","_super","__extends","numberToCall","bypassAppChooser","cordova","ɵCallNumber_BaseFactory","__ngFactoryType__","ɵɵgetInheritedFactory","ɵɵdefineInjectable","__decorate","AwesomeCordovaNativePlugin"],"x_google_ignoreList":[0,1,2,3,4,5,6]}