text: /*!
  betajs-debug - v0.0.15 - 2019-04-28
  Copyright (c) Oliver Friedmann
  Apache-2.0 Software License.
  */
  
  var Scoped=function(){var p=function(){return{get:function(e){return"undefined"!=typeof window?e?window[e]:window:"undefined"!=typeof global?e?global[e]:global:"undefined"!=typeof self?e?self[e]:self:undefined},set:function(e,t){return"undefined"!=typeof window&&(window[e]=t),"undefined"!=typeof global&&(global[e]=t),"undefined"!=typeof self&&(self[e]=t),t},getPath:function(e){if(!e)return this.get();var t=e.split(".");if(1==t.length)return this.get(e);for(var n=this.get(t[0]),o=1;o<t.length;++o){if(!n)return n;n=n[t[o]]}return n},setPath:function(e,t){var n=e.split(".");if(1==n.length)return this.set(e,t);for(var o=this.get(n[0])||this.set(n[0],{}),r=1;r<n.length-1;++r)n[r]in o||(o[n[r]]={}),o=o[n[r]];return o[n[n.length-1]]=t}}}.call(this),f=function(){return{method:function(e,t){return function(){return t.apply(e,arguments)}},extend:function(e,t){for(var n in e=e||{},t=t||{})e[n]=t[n];return e},typeOf:function(e){return"[object Array]"===Object.prototype.toString.call(e)?"array":typeof e},isEmpty:function(e){if(null==e)return!0;if("array"==this.typeOf(e))return 0===e.length;if("object"!=typeof e)return!1;for(var t in e)return!1;return!0},matchArgs:function(e,t){var n=0,o={};for(var r in t)!0===t[r]||this.typeOf(e[n])==t[r]?(o[r]=e[n],n++):"undefined"==this.typeOf(e[n])&&n++;return o},stringify:function(e){return"function"==this.typeOf(e)?""+e:JSON.stringify(e)}}}.call(this),i=function(){return{__namespace:"Scoped",__revert:null,upgrade:function(e){var t=p.get(e||i.__namespace);if(t&&"object"==f.typeOf(t)&&t.guid==this.guid&&"string"==f.typeOf(t.version)){for(var n=this.version.split("."),o=t.version.split("."),r=!1,a=0;a<Math.min(n.length,o.length)&&(r=parseInt(n[a],10)>parseInt(o[a],10),n[a]==o[a]);++a);return r?this.attach(e):t}return this.attach(e)},attach:function(e){e&&(i.__namespace=e);var t=p.get(i.__namespace);if(t==this)return this;if(i.__revert=t)try{var n=t.__exportScoped();this.__exportBackup=this.__exportScoped(),this.__importScoped(n)}catch(o){}return p.set(i.__namespace,this),this},detach:function(e){return e&&p.set(i.__namespace,null),"undefined"!=typeof i.__revert&&p.set(i.__namespace,i.__revert),delete i.__revert,i.__exportBackup&&this.__importScoped(i.__exportBackup),this},exports:function(e,t,n){return"object"==typeof(e=e||("undefined"!=typeof module?module:null))&&e&&"exports"in e&&(n||e.exports==this||!e.exports||f.isEmpty(e.exports))&&(e.exports=t||this),this}}}.call(this);function m(e){var i={tree:"boolean"==typeof e.tree&&e.tree,global:"boolean"==typeof e.global&&e.global,root:"object"==typeof e.root?e.root:{}};function r(e){return{route:"string"==typeof e.route?e.route:null,parent:"object"==typeof e.parent?e.parent:null,ready:"boolean"==typeof e.ready&&e.ready,children:{},watchers:[],data:{},lazy:[]}}var s=r({ready:!0});if(i.tree)if(i.global){try{window&&(s.data=window)}catch(t){}try{global&&(s.data=global)}catch(t){}try{self&&(s.data=self)}catch(t){}}else s.data=i.root;function c(e){if(!e.ready)if(!e.parent||e.parent.ready){if(e.route&&e.parent&&e.route in e.parent.data){e.data=e.parent.data[e.route],e.ready=!0;for(var t=0;t<e.watchers.length;++t)e.watchers[t].callback.call(e.watchers[t].context||this,e.data);for(var n in e.watchers=[],e.children)c(e.children[n])}}else c(e.parent)}function a(e,t){if("object"==typeof t&&e.ready)for(var n in t)e.data[n]=t[n];else e.data=t;if("object"==typeof t)for(var o in t)e.children[o]&&(e.children[o].data=t[o]);for(var r in function a(e){if(!e.ready){e.parent&&!e.parent.ready&&a(e.parent),e.ready=!0,!e.parent||i.tree&&"object"==typeof e.parent.data&&(e.parent.data[e.route]=e.data);for(var t=0;t<e.watchers.length;++t)e.watchers[t].callback.call(e.watchers[t].context||this,e.data);e.watchers=[]}}(e),e.children)c(e.children[r])}function u(e){if(!e)return s;for(var t=e.split("."),n=s,o=0;o<t.length;++o)t[o]in n.children?n=n.children[t[o]]:(n.children[t[o]]=r({parent:n,route:t[o]}),c(n=n.children[t[o]]));return n}return{extend:function(e,t){a(u(e),t)},set:function(e,t){var n=u(e);n.data&&!function o(e){if(e.ready&&e.data)for(var t in e.data)delete e.data[t]}(n),a(n,t)},get:function(e){var t=u(e);return t.ready?t.data:null},lazy:function(e,t,n){var o=u(e);o.ready?t(n||this,o.data):o.lazy.push({callback:t,context:n})},digest:function(e){c(u(e))},obtain:function(e,t,n){!function r(e,t,n){if(e.ready)t.call(n||this,e.data);else if(e.watchers.push({callback:t,context:n}),0<e.lazy.length){var o=function(e){if(0<e.lazy.length){var t=e.lazy.shift();t.callback.call(t.context||this,e.data),o(e)}};o(e)}}(u(e),t,n)},unresolvedWatchers:function(e){return function a(e,t,n){for(var o in n=n||[],!(e=e||s).ready&&0===e.lazy.length&&0<e.watchers.length&&n.push(t),e.children){var r=e.children[o];n=a(r,(t?t+".":"")+r.route,n)}return n}(u(e),e)},__export:function(){return{options:i,nsRoot:s}},__import:function(e){i=e.options,s=e.nsRoot}}}var t=m({tree:!0,global:!0}),n=m({tree:!0}),o=function v(e,t,n,o){function r(a,i,s){function e(){this.require(c.dependencies,c.hiddenDependencies,function(){for(var e=[],t=0;t<arguments.length;++t)e.push(arguments[t]);if(e[e.length-1].ns=u,this.options.compile){for(var n=[],o=0;o<a.length;++o)n.push(f.stringify(a[o]));this.compiled+=this.options.ident+"."+i+"("+n.join(", ")+");\n\n"}this.options.dependencies&&(this.dependencies[u.path]=this.dependencies[u.path]||{},c.dependencies&&c.dependencies.forEach(function(e){this.dependencies[u.path][this.resolve(e).path]=!0},this),c.hiddenDependencies&&c.hiddenDependencies.forEach(function(e){this.dependencies[u.path][this.resolve(e).path]=!0},this));var r=this.options.compile?{}:c.callback.apply(c.context||this,e);s.call(this,u,r)},this)}var c=f.matchArgs(a,{options:"object",namespaceLocator:!0,dependencies:"array",hiddenDependencies:"array",callback:!0,context:"object"}),t=f.extend({lazy:this.options.lazy},c.options||{}),u=this.resolve(c.namespaceLocator);return t.lazy?u.namespace.lazy(u.path,e,this):e.apply(this),this}var a=null,i=[],s=t,c=n,u=o,h=m({tree:!0}),l=m({tree:!1}),d={global:{namespace:u},root:{namespace:c},local:{namespace:h},"default":{namespace:l},parent:{namespace:s},scope:{namespace:h,readonly:!1}};return{getGlobal:f.method(p,p.getPath),setGlobal:f.method(p,p.setPath),options:{lazy:!1,ident:"Scoped",compile:!1,dependencies:!1},compiled:"",dependencies:{},nextScope:function(){return a||(a=v(this,h,c,u)),a},subScope:function(){var e=this.nextScope();return i.push(e),a=null,e},binding:function(e,t,n){var o;return d[e]&&d[e].readonly||(o="string"!=f.typeOf(t)?{namespace:m({tree:!0,root:t}),path:null}:this.resolve(t),d[e]=f.extend(n,o)),this},resolve:function(e){var t=e.split(":");if(1==t.length)throw"The locator '"+t[0]+"' requires a namespace.";var n=d[t[0]];if(!n)throw"The namespace '"+t[0]+"' has not been defined (yet).";return{namespace:n.namespace,path:n.path&&t[1]?n.path+"."+t[1]:n.path||t[1]}},define:function(){return r.call(this,arguments,"define",function(e,t){if(e.namespace.get(e.path))throw"Scoped namespace "+e.path+" has already been defined. Use extend to extend an existing namespace instead";e.namespace.set(e.path,t)})},assumeVersion:function(){var a=f.matchArgs(arguments,{assumption:!0,dependencies:"array",callback:!0,context:"object",error:"string"}),e=a.dependencies||[];e.unshift(a.assumption),this.require(e,function(){var e=arguments,t=e[0].replace(/[^\d\.]/g,"");e[0]=t.split(".");for(var n=0;n<e[0].length;++n)e[0][n]=parseInt(e[0][n],10);if("function"===f.typeOf(a.callback)){if(!a.callback.apply(a.context||this,a))throw"Scoped Assumption '"+a.assumption+"' failed, value is "+t+(a.error?", but assuming "+a.error:"")}else for(var o=(a.callback+"").replace(/[^\d\.]/g,"").split("."),r=0;r<Math.min(e[0].length,o.length);++r)if(parseInt(o[r],10)>e[0][r])throw"Scoped Version Assumption '"+a.assumption+"' failed, value is "+t+", but assuming at least "+a.callback})},extend:function(){return r.call(this,arguments,"extend",function(e,t){e.namespace.extend(e.path,t)})},require:function(){var t=f.matchArgs(arguments,{dependencies:"array",hiddenDependencies:"array",callback:"function",context:"object"});t.callback=t.callback||function(){};var e=t.dependencies||[],n=e.concat(t.hiddenDependencies||[]),o=n.length,r=[],a={};if(o){function i(e){this.i<r.length&&(r[this.i]=e),0==--o&&(r.push(a),t.callback.apply(t.context||this.ctx,r))}for(var s=0;s<n.length;++s){var c=this.resolve(n[s]);s<e.length&&r.push(null),c.namespace.obtain(c.path,i,{ctx:this,i:s})}}else r.push(a),t.callback.apply(t.context||this,r);return this},digest:function(e){var t=this.resolve(e);return t.namespace.digest(t.path),this},unresolved:function(e){var t=this.resolve(e);return t.namespace.unresolvedWatchers(t.path)},__export:function(){return{parentNamespace:s.__export(),rootNamespace:c.__export(),globalNamespace:u.__export(),localNamespace:h.__export(),privateNamespace:l.__export()}},__import:function(e){s.__import(e.parentNamespace),c.__import(e.rootNamespace),u.__import(e.globalNamespace),h.__import(e.localNamespace),l.__import(e.privateNamespace)}}}(0,n,n,t),e=f.extend(o,function(){return{guid:"4b6878ee-cb6a-46b3-94ac-27d91f58d666",version:"0.0.19",upgrade:i.upgrade,attach:i.attach,detach:i.detach,exports:i.exports,__exportScoped:function(){return{globalNamespace:t.__export(),rootNamespace:n.__export(),rootScope:o.__export()}},__importScoped:function(e){t.__import(e.globalNamespace),n.__import(e.rootNamespace),o.__import(e.rootScope)}}}.call(this));return(e=e.upgrade()).exports(),e}.call(this);(function(){var e=this.subScope();e.binding("module","global:BetaJSDebug"),e.define("module:",function(){return{guid:"d33ed9c4-d6fc-49d4-b388-cd7b9597b63a",version:"0.0.15",datetime:1556464421035}}),e.define("module:Helpers",[],function(){return{getStackTrace:function(e){for(var t=(new Error).stack.split("\n");0<t.length&&"error"===t[0].trim().toLowerCase();)t.shift();return e?t.slice(e):t}}}),e.define("module:Hooks",[],function(){return{hookMethod:function(o,r,a,i,s){var c=r[o];return r[o]=function(){a&&a.call(s,o,r,arguments,this);var e=null,t=null;try{t=c.apply(this,arguments)}catch(n){e=n}if(i&&i.call(s,o,r,arguments,t,e,this),e)throw e;return t},{method:o,original:c,context:r}},unhookMethod:function(e){e.context[e.method]=e.original},hookMethodsArray:function(e,t,n,o,r){return e.map(function(e){return this.hookMethod(e,t,n,o,r)},this)},getContextMethodNames:function(e){var t=[];for(var n in e)if("function"==typeof e[n]){var o=!0;for(var r in e[n]){o=!1;break}if(!o)continue;t.push(n)}return t},hookMethods:function(e,t,n,o){return this.hookMethodsArray(this.getContextMethodNames(e),e,t,n,o)},unhookMethods:function(e){for(var t=0;t<e.length;++t)this.unhookMethod(e)},hookPrototypeMethod:function(e,t,n,o,r){return this.hookMethod(e,t.prototype,n,o,r)},hookPrototypeMethods:function(e,t,n,o){return this.hookMethods(e.prototype,t,n,o)}}}),e.define("module:Instances",["module:Hooks"],function(o){return{allFilter:function(){return function(){return!0}},andFilter:function(n){return function(e){for(var t=0;t<n.length;++t)if(!n[t](e))return!1;return!0}},orFilter:function(n){return function(e){for(var t=0;t<n.length;++t)if(n[t](e))return!0;return!1}},regexFilter:function(t){return function(e){return t.test(e.classname)}},ancestryFilter:function(t){return function(e){for(;e;){if(t(e))return!0;e=e.parent}return!1}},monitorInstances:function(e,i){function s(e,t,n){for(var o=e;o;)r[o.classname]||(r[o.classname]={count:0,tree:0,cids:{}}),r[o.classname].tree+=t,o===e&&(r[o.classname].count+=t,0<t?r[o.classname].cids[n]=!0:delete r[o.classname].cids[n]),0===r[o.classname].count&&0===r[o.classname].tree&&delete r[o.classname],o=o.parent}var r={},t=o.hookMethod("constructor",e.prototype,undefined,function(e,t,n,o,r,a){i(a.cls)&&s(a.cls,1,a.cid())}),n=o.hookMethod("destroy",e.prototype,function(e,t,n,o){i(o.cls)&&s(o.cls,-1,o.cid())});return{instances:r,hooks:{constructorHook:t,destroyHook:n}}},unmonitorInstances:function(e){o.unhookMethod(e.hooks.destroyHook),o.unhookMethod(e.hooks.constructorHook)},toHTMLTable:function(e){var t=[];for(var n in t.push("<table><thead><tr><th>"),t.push(["Class","Count","Tree"].join("</th><th>")),t.push("</th></thead><tbody>"),e.instances){var o=e.instances[n];t.push("<tr><td>"),t.push([n,o.count,o.tree].join("</td><td>")),t.push("</td></tr>")}return t.push("</tbody></table>"),t.join("")},toText:function(e){var t=[];for(var n in t.push(["Class","Count","Tree"].join("\t")),e.instances){var o=e.instances[n],r=[];for(cid in o.cids)r.push(cid);t.push([n,o.count,o.tree,r.join(",")].join("\t"))}return t.join("\n")}}}),e.define("module:Methods",["module:Hooks"],function(s){return{monitorInstances:function(e,r){function a(e,t){var n=i[t.cls.classname].methods;n[e]=n[e]||{count:0},n[e].count++}var i={},t=s.hookMethod("constructor",e.prototype,function(e,t,n,o){r(o.cls)&&(i[o.cls.classname]||(i[o.cls.classname]={cls:o.cls,hooks:{methods:s.hookPrototypeMethods(o.cls,a)},methods:{}}))});return{classes:i,hooks:{constructorHook:t}}},unmonitorInstances:function(e){for(var t in s.unhookMethod(e.hooks.constructorHook),e.classes){var n=e.classes[t];s.unhookMethods(n.hooks.methods)}},toHTMLTable:function(e){var t=[];for(var n in t.push("<table><thead><tr><th>"),t.push(["Class","Method","Count"].join("</th><th>")),t.push("</th></thead><tbody>"),e.classes){var o=e.classes[n];for(var r in o.methods){var a=o.methods[r];t.push("<tr><td>"),t.push([n,r,a.count].join("</td><td>")),t.push("</td></tr>")}}return t.push("</tbody></table>"),t.join("")}}}),e.define("module:Profiler",["module:Hooks","module:Timing"],function(a,e){return{createProfile:function(){return{_entered:0,_suspended:0,_time:0,_startTime:0,_totalEnterCount:0,_enterCount:0,enter:function(){this._totalEnterCount++,this._entered++,1===this._entered&&this._suspended<1&&(this._startTime=e.now(),this._enterCount++)},leave:function(){this._entered--,0===this._entered&&this._suspended<1&&(this._time+=e.now()-this._startTime)},suspend:function(){this._suspended++,0<this._entered&&1===this._suspended&&(this._time+=e.now()-this._startTime)},resume:function(){this._suspended--,0<this._entered&&0===this._suspended&&(this._startTime=e.now())},time:function(){return 0<this._entered&&this._suspended<1?e.now()-this._startTime+this._time:this._time},profile:function(){return{time:this.time(),totalEnterCount:this._totalEnterCount,enterCount:this._enterCount}}}},profilePrototypes:function(e,t){for(var n=this.createProfile(),o=0;o<e.length;++o)a.hookPrototypeMethods(e[o],n.enter,n.leave,n);for(var r=0;r<t.length;++r)a.hookPrototypeMethods(t[r],n.suspend,n.resume,n);return n},profileMethod:function(e,t){var n=this.createProfile();return{profile:n,hook:a.hookMethod(e,t,n.enter,n.leave,n)}},profilePrototypeMethod:function(e,t){var n=this.createProfile();return{profile:n,hook:a.hookPrototypeMethod(e,t,n.enter,n.leave,n)}}}}),e.define("module:Timers",["module:Hooks","module:Helpers"],function(o,i){return{hookTimers:function(){function r(e){return"number"==typeof e?e:(e.__handleCounter||(t++,e.__handleCounter=t),e.__handleCounter)}var t=0,e=null;try{e=window}catch(n){e=global}var a={intervals:{},timeouts:{},hooks:[o.hookMethod("setInterval",e,null,function(e,t,n,o){o&&(a.intervals[r(o)]={func:n[0],intv:n[1],stack:i.getStackTrace()})}),o.hookMethod("clearInterval",e,function(e,t,n){n[0]&&delete a.intervals[r(n[0])]}),o.hookMethod("setTimeout",e,null,function(e,t,n,o){o&&(a.timeouts[r(o)]={func:n[0],intv:n[1],stack:i.getStackTrace()})}),o.hookMethod("clearTimeout",e,function(e,t,n){n[0]&&delete a.timeouts[r(n[0])]})]};return a},unhookTimers:function(e){o.unhookMethods(e.hooks)},digest:function(e){return{intervals:e.intervals,timeouts:e.timeouts}}}}),e.define("module:Timing",[],function(){return{now:function(){return window.performance&&window.performance.now?performance.now():(new Date).getTime()}}})}).call(Scoped);