Files
doneit-web/_platforms/browser/www/cordova.63b449c962532a113eb6.js
T

1 line
16 KiB
JavaScript
Raw Normal View History

2021-08-18 18:58:02 +01:00
!function(){var e,n,t,o,r,a="6.0.0";t={},o=[],r={},e=function(n){if(!t[n])throw"module "+n+" not found";if(n in r)throw"Cycle in require graph: "+o.slice(r[n]).join("->")+"->"+n;if(t[n].factory)try{return r[n]=o.length,o.push(n),function(n){var t=n.factory;return n.exports={},delete n.factory,t(function(t){var o=t;return"."===t.charAt(0)&&(o=n.id.slice(0,n.id.lastIndexOf("."))+"."+t.slice(2)),e(o)},n.exports,n),n.exports}(t[n])}finally{delete r[n],o.pop()}return t[n].exports},(n=function(e,n){if(t[e])throw"module "+e+" already defined";t[e]={id:e,factory:n}}).remove=function(e){delete t[e]},n.moduleMap=t,"object"==typeof module&&"function"==typeof e&&(module.exports.require=e,module.exports.define=n),n("cordova",function(e,t,o){if(window.cordova&&!(window.cordova instanceof HTMLElement))throw new Error("cordova already defined");var r=e("cordova/channel"),i=e("cordova/platform"),c=document.addEventListener,s=document.removeEventListener,u=window.addEventListener,d=window.removeEventListener,l={},f={};function v(e,n){var t=document.createEvent("Events");if(t.initEvent(e,!1,!1),n)for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o]);return t}document.addEventListener=function(e,n,t){var o=e.toLowerCase();void 0!==l[o]?l[o].subscribe(n):c.call(document,e,n,t)},window.addEventListener=function(e,n,t){var o=e.toLowerCase();void 0!==f[o]?f[o].subscribe(n):u.call(window,e,n,t)},document.removeEventListener=function(e,n,t){var o=e.toLowerCase();void 0!==l[o]?l[o].unsubscribe(n):s.call(document,e,n,t)},window.removeEventListener=function(e,n,t){var o=e.toLowerCase();void 0!==f[o]?f[o].unsubscribe(n):d.call(window,e,n,t)};var p={define:n,require:e,version:a,platformVersion:a,platformId:i.id,addWindowEventHandler:function(e){return f[e]=r.create(e)},addStickyDocumentEventHandler:function(e){return l[e]=r.createSticky(e)},addDocumentEventHandler:function(e){return l[e]=r.create(e)},removeWindowEventHandler:function(e){delete f[e]},removeDocumentEventHandler:function(e){delete l[e]},getOriginalHandlers:function(){return{document:{addEventListener:c,removeEventListener:s},window:{addEventListener:u,removeEventListener:d}}},fireDocumentEvent:function(e,n,t){var o=v(e,n);void 0!==l[e]?t?l[e].fire(o):setTimeout(function(){"deviceready"===e&&document.dispatchEvent(o),l[e].fire(o)},0):document.dispatchEvent(o)},fireWindowEvent:function(e,n){var t=v(e,n);void 0!==f[e]?setTimeout(function(){f[e].fire(t)},0):window.dispatchEvent(t)},callbackId:Math.floor(2e9*Math.random()),callbacks:{},callbackStatus:{NO_RESULT:0,OK:1,CLASS_NOT_FOUND_EXCEPTION:2,ILLEGAL_ACCESS_EXCEPTION:3,INSTANTIATION_EXCEPTION:4,MALFORMED_URL_EXCEPTION:5,IO_EXCEPTION:6,INVALID_ACTION:7,JSON_EXCEPTION:8,ERROR:9},callbackSuccess:function(e,n){p.callbackFromNative(e,!0,n.status,[n.message],n.keepCallback)},callbackError:function(e,n){p.callbackFromNative(e,!1,n.status,[n.message],n.keepCallback)},callbackFromNative:function(e,n,t,o,r){try{var a=p.callbacks[e];a&&(n&&t===p.callbackStatus.OK?a.success&&a.success.apply(null,o):n||a.fail&&a.fail.apply(null,o),r||delete p.callbacks[e])}catch(c){var i="Error in "+(n?"Success":"Error")+" callbackId: "+e+" : "+c;throw console&&console.log&&console.log(i),console&&console.log&&c.stack&&console.log(c.stack),p.fireWindowEvent("cordovacallbackerror",{message:i}),c}},addConstructor:function(e){r.onCordovaReady.subscribe(function(){try{e()}catch(n){console.log("Failed to run constructor: "+n)}})}};o.exports=p}),n("cordova/argscheck",function(e,n,t){var o=e("cordova/utils"),r=t.exports,a={A:"Array",D:"Date",N:"Number",S:"String",F:"Function",O:"Object"};r.checkArgs=function(e,n,t,i){if(r.enableChecks){for(var c,s,u=null,d=0;d<e.length;++d){var l=e.charAt(d),f=l.toUpperCase(),v=t[d];if("*"!==l&&(c=o.typeName(v),(null!=v||l!==f)&&c!==a[f])){u="Expected "+a[f];break}}if(u)throw u+=", but got "+c+".",u='Wrong type for parameter "'+(s=d,/.*?\((.*?)\)/.exec(i||t.callee)[1].split(", ")[s]+'" of ')+n+": "+u,"undefined"==typeof jasmine&&console.error(u),TypeError(u)}},r.getValue=function(e,n){return void 0===e?n:e},r.enableChecks=!0}),n("cordova/base64",f