diff --git a/HTML/Assets/ctat.min.js b/HTML/Assets/ctat.min.js old mode 100644 new mode 100755 index 5640ef1..c604f31 --- a/HTML/Assets/ctat.min.js +++ b/HTML/Assets/ctat.min.js @@ -6,38 +6,40 @@ Copyright (c) Jon Nylander */ -var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,e){if(e.get||e.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=e.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; +var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,g,f){if(f.get||f.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[g]=f.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; $jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||"")+$jscomp.symbolCounter_++}; -$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var b=0;return $jscomp.iteratorPrototype(function(){return b=c}},"es6-impl","es3");$jscomp.owns=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)}; -$jscomp.polyfill("WeakMap",function(a){function b(a){$jscomp.owns(a,g)||$jscomp.defineProperty(a,g,{value:{}})}function e(a){var c=Object[a];c&&(Object[a]=function(a){b(a);return c(a)})}if(function(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}),c=Object.seal({}),d=new a([[b,2],[c,3]]);if(2!=d.get(b)||3!=d.get(c))return!1;d["delete"](b);d.set(c,4);return!d.has(b)&&4==d.get(c)}catch(l){return!1}}())return a;var g="$jscomp_hidden_"+Math.random().toString().substring(2);e("freeze");e("preventExtensions"); -e("seal");var d=0,c=function(a){this.id_=(d+=Math.random()+1).toString();if(a){$jscomp.initSymbol();$jscomp.initSymbolIterator();a=$jscomp.makeIterator(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};c.prototype.set=function(a,c){b(a);if(!$jscomp.owns(a,g))throw Error("WeakMap key fail: "+a);a[g][this.id_]=c;return this};c.prototype.get=function(a){return $jscomp.owns(a,g)?a[g][this.id_]:void 0};c.prototype.has=function(a){return $jscomp.owns(a,g)&&$jscomp.owns(a[g],this.id_)};c.prototype["delete"]= -function(a){return $jscomp.owns(a,g)&&$jscomp.owns(a[g],this.id_)?delete a[g][this.id_]:!1};return c},"es6-impl","es3");$jscomp.ASSUME_NO_NATIVE_MAP=!1; -$jscomp.polyfill("Map",function(a){if(!$jscomp.ASSUME_NO_NATIVE_MAP&&function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),c=new a($jscomp.makeIterator([[b,"s"]]));if("s"!=c.get(b)||1!=c.size||c.get({x:4})||c.set({x:4},"t")!=c||2!=c.size)return!1;var f=c.entries(),d=f.next();if(d.done||d.value[0]!=b||"s"!=d.value[1])return!1;d=f.next();return d.done||4!=d.value[0].x||"t"!=d.value[1]||!f.next().done?!1:!0}catch(p){return!1}}())return a;$jscomp.initSymbol(); -$jscomp.initSymbolIterator();var b=new WeakMap,e=function(a){this.data_={};this.head_=c();this.size=0;if(a){a=$jscomp.makeIterator(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}};e.prototype.set=function(a,b){var c=g(this,a);c.list||(c.list=this.data_[c.id]=[]);c.entry?c.entry.value=b:(c.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:a,value:b},c.list.push(c.entry),this.head_.previous.next=c.entry,this.head_.previous=c.entry,this.size++);return this};e.prototype["delete"]= -function(a){a=g(this,a);return a.entry&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.data_[a.id],a.entry.previous.next=a.entry.next,a.entry.next.previous=a.entry.previous,a.entry.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=c();this.size=0};e.prototype.has=function(a){return!!g(this,a).entry};e.prototype.get=function(a){return(a=g(this,a).entry)&&a.value};e.prototype.entries=function(){return d(this,function(a){return[a.key, -a.value]})};e.prototype.keys=function(){return d(this,function(a){return a.key})};e.prototype.values=function(){return d(this,function(a){return a.value})};e.prototype.forEach=function(a,b){for(var c=this.entries(),f;!(f=c.next()).done;)f=f.value,a.call(b,f[1],f[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=function(a,c){var d;d=c&&typeof c;"object"==d||"function"==d?b.has(c)?d=b.get(c):(d=""+ ++f,b.set(c,d)):d="p_"+c;var e=a.data_[d];if(e&&$jscomp.owns(a.data_,d))for(var g=0;g< -e.length;g++){var h=e[g];if(c!==c&&h.key!==h.key||c===h.key)return{id:d,list:e,index:g,entry:h}}return{id:d,list:e,index:-1,entry:void 0}},d=function(a,b){var c=a.head_;return $jscomp.iteratorPrototype(function(){if(c){for(;c.head!=a.head_;)c=c.previous;for(;c.next!=c.head;)return c=c.next,{done:!1,value:b(c)};c=null}return{done:!0,value:void 0}})},c=function(){var a={};return a.previous=a.next=a.head=a},f=0;return e},"es6-impl","es3");$jscomp.ASSUME_NO_NATIVE_SET=!1; -$jscomp.polyfill("Set",function(a){if(!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),g=new a($jscomp.makeIterator([b]));if(!g.has(b)||1!=g.size||g.add(b)!=g||1!=g.size||g.add({x:4})!=g||2!=g.size)return!1;var d=g.entries(),c=d.next();if(c.done||c.value[0]!=b||c.value[1]!=b)return!1;c=d.next();return c.done||c.value[0]==b||4!=c.value[0].x||c.value[1]!=c.value[0]?!1:d.next().done}catch(f){return!1}}())return a; -$jscomp.initSymbol();$jscomp.initSymbolIterator();var b=function(a){this.map_=new Map;if(a){a=$jscomp.makeIterator(a);for(var b;!(b=a.next()).done;)this.add(b.value)}this.size=this.map_.size};b.prototype.add=function(a){this.map_.set(a,a);this.size=this.map_.size;return this};b.prototype["delete"]=function(a){a=this.map_["delete"](a);this.size=this.map_.size;return a};b.prototype.clear=function(){this.map_.clear();this.size=0};b.prototype.has=function(a){return this.map_.has(a)};b.prototype.entries= -function(){return this.map_.entries()};b.prototype.values=function(){return this.map_.values()};b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(a,b){var d=this;this.map_.forEach(function(c){return a.call(b,c,c,d)})};return b},"es6-impl","es3");$jscomp.findInternal=function(a,b,e){a instanceof String&&(a=String(a));for(var g=a.length,d=0;d=c}},"es6-impl","es3");$jscomp.polyfill("Number.isNaN",function(a){return a?a:function(a){return"number"===typeof a&&isNaN(a)}},"es6-impl","es3"); -$jscomp.polyfill("Math.sign",function(a){return a?a:function(a){a=Number(a);return 0===a||isNaN(a)?a:0=b}},"es6-impl","es3");$jscomp.polyfill("String.prototype.includes",function(a){return a?a:function(a,f){return-1!==$jscomp.checkStringArgs(this,a,"includes").indexOf(a,f||0)}},"es6-impl","es3"); +$jscomp.owns=function(a,g){return Object.prototype.hasOwnProperty.call(a,g)}; +$jscomp.polyfill("WeakMap",function(a){function g(b){$jscomp.owns(b,d)||$jscomp.defineProperty(b,d,{value:{}})}function f(b){var a=Object[b];a&&(Object[b]=function(b){g(b);return a(b)})}if(function(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}),c=Object.seal({}),d=new a([[b,2],[c,3]]);if(2!=d.get(b)||3!=d.get(c))return!1;d["delete"](b);d.set(c,4);return!d.has(b)&&4==d.get(c)}catch(m){return!1}}())return a;var d="$jscomp_hidden_"+Math.random().toString().substring(2);f("freeze");f("preventExtensions"); +f("seal");var c=0,b=function(b){this.id_=(c+=Math.random()+1).toString();if(b){$jscomp.initSymbol();$jscomp.initSymbolIterator();b=$jscomp.makeIterator(b);for(var a;!(a=b.next()).done;)a=a.value,this.set(a[0],a[1])}};b.prototype.set=function(b,a){g(b);if(!$jscomp.owns(b,d))throw Error("WeakMap key fail: "+b);b[d][this.id_]=a;return this};b.prototype.get=function(b){return $jscomp.owns(b,d)?b[d][this.id_]:void 0};b.prototype.has=function(b){return $jscomp.owns(b,d)&&$jscomp.owns(b[d],this.id_)};b.prototype["delete"]= +function(b){return $jscomp.owns(b,d)&&$jscomp.owns(b[d],this.id_)?delete b[d][this.id_]:!1};return b},"es6-impl","es3");$jscomp.ASSUME_NO_NATIVE_MAP=!1; +$jscomp.polyfill("Map",function(a){if(!$jscomp.ASSUME_NO_NATIVE_MAP&&function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),e=new a($jscomp.makeIterator([[b,"s"]]));if("s"!=e.get(b)||1!=e.size||e.get({x:4})||e.set({x:4},"t")!=e||2!=e.size)return!1;var c=e.entries(),d=c.next();if(d.done||d.value[0]!=b||"s"!=d.value[1])return!1;d=c.next();return d.done||4!=d.value[0].x||"t"!=d.value[1]||!c.next().done?!1:!0}catch(p){return!1}}())return a;$jscomp.initSymbol(); +$jscomp.initSymbolIterator();var g=new WeakMap,f=function(a){this.data_={};this.head_=b();this.size=0;if(a){a=$jscomp.makeIterator(a);for(var e;!(e=a.next()).done;)e=e.value,this.set(e[0],e[1])}};f.prototype.set=function(b,a){var e=d(this,b);e.list||(e.list=this.data_[e.id]=[]);e.entry?e.entry.value=a:(e.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:b,value:a},e.list.push(e.entry),this.head_.previous.next=e.entry,this.head_.previous=e.entry,this.size++);return this};f.prototype["delete"]= +function(b){b=d(this,b);return b.entry&&b.list?(b.list.splice(b.index,1),b.list.length||delete this.data_[b.id],b.entry.previous.next=b.entry.next,b.entry.next.previous=b.entry.previous,b.entry.head=null,this.size--,!0):!1};f.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=b();this.size=0};f.prototype.has=function(b){return!!d(this,b).entry};f.prototype.get=function(b){return(b=d(this,b).entry)&&b.value};f.prototype.entries=function(){return c(this,function(b){return[b.key, +b.value]})};f.prototype.keys=function(){return c(this,function(b){return b.key})};f.prototype.values=function(){return c(this,function(b){return b.value})};f.prototype.forEach=function(b,a){for(var e=this.entries(),c;!(c=e.next()).done;)c=c.value,b.call(a,c[1],c[0],this)};f.prototype[Symbol.iterator]=f.prototype.entries;var d=function(b,a){var c;c=a&&typeof a;"object"==c||"function"==c?g.has(a)?c=g.get(a):(c=""+ ++e,g.set(a,c)):c="p_"+a;var d=b.data_[c];if(d&&$jscomp.owns(b.data_,c))for(var f=0;f< +d.length;f++){var h=d[f];if(a!==a&&h.key!==h.key||a===h.key)return{id:c,list:d,index:f,entry:h}}return{id:c,list:d,index:-1,entry:void 0}},c=function(b,a){var e=b.head_;return $jscomp.iteratorPrototype(function(){if(e){for(;e.head!=b.head_;)e=e.previous;for(;e.next!=e.head;)return e=e.next,{done:!1,value:a(e)};e=null}return{done:!0,value:void 0}})},b=function(){var b={};return b.previous=b.next=b.head=b},e=0;return f},"es6-impl","es3");$jscomp.ASSUME_NO_NATIVE_SET=!1; +$jscomp.polyfill("Set",function(a){if(!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var f=Object.seal({x:4}),d=new a($jscomp.makeIterator([f]));if(!d.has(f)||1!=d.size||d.add(f)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var c=d.entries(),b=c.next();if(b.done||b.value[0]!=f||b.value[1]!=f)return!1;b=c.next();return b.done||b.value[0]==f||4!=b.value[0].x||b.value[1]!=b.value[0]?!1:c.next().done}catch(e){return!1}}())return a; +$jscomp.initSymbol();$jscomp.initSymbolIterator();var g=function(a){this.map_=new Map;if(a){a=$jscomp.makeIterator(a);for(var d;!(d=a.next()).done;)this.add(d.value)}this.size=this.map_.size};g.prototype.add=function(a){this.map_.set(a,a);this.size=this.map_.size;return this};g.prototype["delete"]=function(a){a=this.map_["delete"](a);this.size=this.map_.size;return a};g.prototype.clear=function(){this.map_.clear();this.size=0};g.prototype.has=function(a){return this.map_.has(a)};g.prototype.entries= +function(){return this.map_.entries()};g.prototype.values=function(){return this.map_.values()};g.prototype[Symbol.iterator]=g.prototype.values;g.prototype.forEach=function(a,d){var c=this;this.map_.forEach(function(b){return a.call(d,b,b,c)})};return g},"es6-impl","es3");$jscomp.findInternal=function(a,g,f){a instanceof String&&(a=String(a));for(var d=a.length,c=0;c=b}},"es6-impl","es3");$jscomp.polyfill("Number.isNaN",function(a){return a?a:function(a){return"number"===typeof a&&isNaN(a)}},"es6-impl","es3"); +$jscomp.polyfill("Math.sign",function(a){return a?a:function(a){a=Number(a);return 0===a||isNaN(a)?a:0a||1342177279>>=1)f+=f;return d}},"es6-impl","es3");$jscomp.polyfill("Array.prototype.values",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(a,f){return f})}},"es6","es3"); +$jscomp.polyfill("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991},"es6-impl","es3");$jscomp.polyfill("Number.isSafeInteger",function(a){return a?a:function(a){return Number.isInteger(a)&&Math.abs(a)<=Number.MAX_SAFE_INTEGER}},"es6-impl","es3"); var jstz=function(){var a={"America/Denver":["America/Mazatlan"],"Europe/London":["Africa/Casablanca"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":"Asia/Amman Asia/Jerusalem Europe/Helsinki Asia/Damascus Africa/Cairo Asia/Gaza Europe/Minsk".split(" "),"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"], "America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk", -"Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]},b=function(a){a=-a.getTimezoneOffset();return null!==a?a:0},e=function(){var a=b(new Date(2014,0,2)),c=b(new Date(2014,5,2)),f=a-c;return 0>f?a+",1":0=q.rules[A].s&&b[A].e<=q.rules[A].e)y=0,y+=Math.abs(b[A].s-q.rules[A].s),y+=Math.abs(q.rules[A].e-b[A].e);else{y="N/A";break}if(864E6e&&(h=l),e=q);f+=864E5}b=g&&h?{s:d(g).getTime(),e:d(h).getTime()}:!1;a.push(b)}return a}();return function(a){for(var c=0;ce?b+",1":0=y.rules[A].s&&e[A].e<=y.rules[A].e)C=0,C+=Math.abs(e[A].s-y.rules[A].s),C+=Math.abs(y.rules[A].e-e[A].e);else{C="N/A";break}if(864E6f&&(h=m),f=n);d+=864E5}e=g&&h?{s:c(g).getTime(),e:c(h).getTime()}:!1;b.push(e)}return b}();return function(b){for(var a=0;a',b)}u.addRule(".spin-vml","behavior:url(#default#VML)");h.prototype.lines=function(a,e){function n(){return d(c("group",{coordsize:l+" "+l,coordorigin:-h+" "+-h}),{width:l,height:l})}function g(a,g,l){b(m,b(d(n(),{rotation:360/e.lines*a+"deg",left:~~g}),b(d(c("roundrect", -{arcsize:e.corners}),{width:h,height:e.scale*e.width,left:e.scale*e.radius,top:-e.scale*e.width>>1,filter:l}),c("fill",{color:f(e.color,a),opacity:e.opacity}),c("stroke",{opacity:0}))))}var h=e.scale*(e.length+e.width),l=2*e.scale*h,w=-(e.width+e.length)*e.scale*2+"px",m=d(n(),{position:"absolute",top:w,left:w});if(e.shadow)for(w=1;w<=e.lines;w++)g(w,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(w=1;w<=e.lines;w++)g(w);return b(a,m)};h.prototype.opacity= -function(a,c,b,f){a=a.firstChild;f=f.shadow&&f.lines||0;a&&c+f>1)+"px"})}for(var h=0,l=(g.lines-1)*(1-g.direction)/2,w;h',e)}v.addRule(".spin-vml","behavior:url(#default#VML)");h.prototype.lines=function(a,d){function f(){return c(b("group",{coordsize:l+" "+l,coordorigin:-m+" "+-m}),{width:l,height:l})}function h(a,h,l){g(n,g(c(f(),{rotation:360/d.lines*a+"deg",left:~~h}),g(c(b("roundrect", +{arcsize:d.corners}),{width:m,height:d.scale*d.width,left:d.scale*d.radius,top:-d.scale*d.width>>1,filter:l}),b("fill",{color:e(d.color,a),opacity:d.opacity}),b("stroke",{opacity:0}))))}var m=d.scale*(d.length+d.width),l=2*d.scale*m,w=-(d.width+d.length)*d.scale*2+"px",n=c(f(),{position:"absolute",top:w,left:w});if(d.shadow)for(w=1;w<=d.lines;w++)h(w,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(w=1;w<=d.lines;w++)h(w);return g(a,n)};h.prototype.opacity= +function(b,a,e,c){b=b.firstChild;c=c.shadow&&c.lines||0;b&&a+c>1)+"px"})}for(var m=0,l=(d.lines-1)*(1-d.direction)/2,w;ma.length;)a="0"+a;return"#"+a}return a}; -CTATGlobalFunctions.Gensym=function(){this.make_gensym=function(){var a="",b=0;return{set_prefix:function(b){a=String(b)},set_index:function(a){b=a},gensym:function(){var d=a+b;b+=1;return d}}};var a=this.make_gensym();a.set_index(2);var b=this.make_gensym();b.set_index(1);b.set_prefix("ctatdiv");return{z_index:a.gensym,div_id:b.gensym}};CTATGlobalFunctions.gensym=CTATGlobalFunctions.Gensym();var CTATBase=function(a,b){function e(a,c,b){null===a&&(a="unknownclass");null===c&&(c="nullinstance");return"["+a+":"+c+"] "+b}var g=a,d=b,c=this,f=!0;"undefined"!=CTATBase.DebuggingFilter[g]&&CTATBase.DebuggingFilter[g]&&(f=!1);this.getClassName=function(){return g};this.getClassname=function(){return g};this.setClassName=function(a){g=a};this.setName=function(a){d=a};this.getName=function(){return d};this.getUseDebugging=function(){return useDebugging};this.setUseDebugging=function(a){useDebugging= -a};this.toHHMMSS=function(a){var c=parseInt(a,10);a=Math.floor(c/3600);var b=Math.floor((c-3600*a)/60),c=c-3600*a-60*b;10>a&&(a="0"+a);10>b&&(b="0"+b);10>c&&(c="0"+c);return a+":"+b+":"+c};this.ctatdebug=function(a){if(f){var b=a;useDebuggingBasic?c.ctatdebugInternal(b,"UnknownClass"):(null===a&&(b="No message provided"),useDebugging&&c.ctatdebugInternal(b,c.getClassName()))}};this.ctatdebugObject=function(a){var c=0,b;for(b in a)this.ctatdebug("("+c+")"+b+": "+a[b]),c++};this.ctatdebugInternal=function(a, -b){var f=a;if(null===f||void 0===f)f="No message!";""===f&&(f="Empty message!");if(useDebuggingBasic)f=e("Unknown","undefined",f),CTATBase.customconsole||(CTATBase.customconsole=getSafeElementById("customconsole")),CTATBase.customconsole?(CTATBase.customconsole.innerHTML+=f+"
",CTATBase.customconsole.scrollTop=CTATBase.customconsole.scrollHeight):console.log(f);else{null===b&&(b="UndefinedClass");null===f&&(f="No message");f=e(b,c.getName(),f);try{console.trace(f)}catch(q){}"google"==CTATConfig.platform? -Logger.log(f):(CTATBase.customconsole||(CTATBase.customconsole=getSafeElementById("customconsole")),null!==CTATBase.customconsole&&(CTATBase.customconsole.innerHTML+=f+"
",CTATBase.customconsole.scrollTop=CTATBase.customconsole.scrollHeight))}};this.ctatdebugObjectShallow=function(a){var b="",f;for(f in a)b+=f+", ";c.ctatdebugInternal("Object: "+b,"Global")};this.urldecode=function(a){return decodeURIComponent((a+"").replace(/\+/g,"%20"))};this.entitiesConvert=function(a){this.ctatdebug("entitiesConvert ()"); -return this.urldecode(unescape(a))};this.entitiesGenerate=function(a){return a}};function formatLogMessageGoogle(a,b,e){e=(new CTATBase(a,b)).htmlEncode(e);return"["+a+":"+b+"] "+e}function ctatdebug(a){(useDebugging||useDebuggingBasic)&&null!==a&&("google"==CTATConfig.platform?Logger.log(formatLogMessageGoogle("CTATTutor","tutor",a)):(ctatdebug.debugPointer||(ctatdebug.debugPointer=new CTATBase("CTATTutor","tutor")),ctatdebug.debugPointer.ctatdebug(a,"CTATTutor")))} -Object.defineProperty(CTATBase,"DebuggingFilter",{enumerable:!1,configurable:!1,writable:!0,value:[]});"undefined"!==typeof module&&(module.exports=CTATBase);(function(){function a(a,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var b=document.createEvent("CustomEvent");b.initCustomEvent(a,e.bubbles,e.cancelable,e.detail);return b}if("function"===typeof window.CustomEvent)return!1;a.prototype=window.Event.prototype;window.CustomEvent=a})();var CTATProblem=function(){CTATBase.call(this,"CTATProblem","problem");var a="",b="",e="tutor",g="",d="",c="notstarted";this.setState=function(a){c=a};this.getState=function(){return c};this.setLabel=function(c){a=c};this.getLabel=function(){return a};this.setDescription=function(a){b=a};this.getDescription=function(){return b};this.setTutorFlag=function(a){e=a};this.getTutorFlag=function(){return e};this.setProblemFile=function(a){g=a};this.getProblemFile=function(){return g};this.setStudentInterface= -function(a){d=a};this.getStudentInterface=function(){return d}};CTATProblem.prototype=Object.create(CTATBase.prototype);CTATProblem.prototype.constructor=CTATProblem;var CTATProblemSet=function(){CTATBase.call(this,"CTATProblemSet","problemset");var a=this,b=[];this.addProblem=function(a){b.push(a)};this.getProblems=function(){return b};this.getProblemSize=function(){return b.length};this.getFirstProblem=function(){a.ctatdebug("getFirstProblem () problems.length "+b.length);return 0==b.length?null:b[0]}};CTATProblemSet.prototype=Object.create(CTATBase.prototype);CTATProblemSet.prototype.constructor=CTATProblemSet;var CTATXML=function(){CTATBase.call(this,"CTATXML","xmlparser");this.parse=function(a){return this.parseXML(a)};this.parseXML=function(a){this.ctatdebug("parseXML ()");var b=null;try{"undefined"!==typeof $?b=$.parseXML(a):"undefined"!==typeof XMLParser?b=(new XMLParser).parseFromString(a):this.ctatdebug("Bottoming out, no parser configured!")}catch(e){return null!=b?this.ctatdebug("JQuery could not process the provided XML: "+e.message+" ("+b.parseError.errorCode+") ("+b.parseError.reason+") ("+ -b.parseError.line+")"):this.ctatdebug("JQuery could not process the provided XML (xmlDoc==null): "+e.message),null}return null==b?(this.ctatdebug("Unspecified error parsing xml message. xmlDoc is null"),null):b.documentElement};this.getElementName=function(a){return a.nodeName};this.getElementValue=function(a){return a.nodeValue};this.getElementChildren=function(a){for(var b=[],e=0;e "+typeof CTATLanguagePack);if("undefined"!==typeof CTATLanguagePack){if(CTATLanguagePack[b])return CTATLanguagePack[b]}else a.ctatdebug("No custom language pack defined, using default...");return CTATDefaultLanguagePack[b]};this.filterString=function(b){a.ctatdebug("filterString ("+ -b+") -> "+typeof CTATLanguagePack);if("undefined"!==typeof CTATLanguagePack){if(CTATLanguagePack[b])return a.ctatdebug("Found tag in provided language pack, returning: "+CTATLanguagePack[b]),CTATLanguagePack[b]}else a.ctatdebug("No custom language pack defined, using default...");return"undefined"!==typeof CTATDefaultLanguagePack&&CTATDefaultLanguagePack[b]?(a.ctatdebug("Found tag in default language pack, returning: "+CTATDefaultLanguagePack[b]),CTATDefaultLanguagePack[b]):b}}; -CTATLanguageManager.prototype=Object.create(CTATBase.prototype);CTATLanguageManager.prototype.constructor=CTATLanguageManager;CTATLanguageManager.theSingleton=new CTATLanguageManager;var scrimIsUp=!1,errorScrim=!1,waitScrim=!0,warnScrim=!1,connectionScrim=!1,authorTimeSet=!0,inAuthorTime=!0,CTATScrim=function(){function a(){warnScrim=!1;n.scrimDown()}function b(a){"google"!=CTATConfig.platform&&(!0===scrimIsUp&&n.scrimDownForced(),n.ctatdebug("errScrimUp ("+a+")"),!0===errorScrim?!0===f&&(f=!1,getSafeElementById(ctatcontainer).removeChild(r)):!0===warnScrim&&(f=!0),n.scrimUp(a))}function e(a,c){n.ctatdebug("makeHTMLButton ()");var b=document.createElement("input");b.type="button"; -b.value=c;a?(n.ctatdebug("clickHandle!=null"),b.onclick=a):(n.ctatdebug("clickHandle==null"),b.onclick=n.defaultClickHandler);b.id=c;b.setAttribute("class","scrimButton");return b}CTATBase.call(this,"CTATScrim","__undefined__");var g="",d=!1,c=!1,f=!1,h=null,m=null,l=new CTATCanvasComponent("CTAT Scrim"),q=[],p=null,u=null,r=null,w=null,n=this;this.scrimUp=function(b){if("google"!=CTATConfig.platform)if(n.ctatdebug("scrimUp ()"),b=CTATGlobals.languageManager.filterString(b),n.ctatdebug("Message: "+ -b),!0===scrimIsUp?(g=!0===waitScrim?b:g+(" \n "+b),l.removeComponent(),n.removeHTMLElements()):(g=b,scrimIsUp=!0),n.ctatdebug("scrimUp() to call drawScrim() scrimIsUp "+scrimIsUp),n.ctatdebug("drawScrim ()"),"google"==CTATConfig.platform)n.ctatdebug("This is not available for now when we're in this environment");else if($('
').appendTo("body"),$("#scrim").css("z-index",1E3),"google"!=CTATConfig.platform&&($("#scrimpanel").empty(),$("#scrim").append('

CTAT Info Panel


'+ -g+"

"),!0===f&&(waitScrim=!1,r=e(a,"close"),$(r).appendTo("#scrimpanel")),!0===d&&(waitScrim=!1,p=e(h,"yes"),$(p).appendTo("#scrimpanel"),d=!1),!0===c&&(waitScrim=!1,u=e(m,"no"),$(u).appendTo("#scrimpanel"),c=!1),!0===waitScrim)){n.ctatdebug("Adding spinner ...");$("#scrimpanel").append("
");b=$('
');b.css("width","100%");b.css("position","relative");$("#scrimpanel").append(b);try{var w=(new Spinner({className:"scrim_spinner"})).spin();$("#scrim_spin").append(w.el)}catch(y){(y instanceof -ReferenceError||y instanceof TypeError)&&n.ctatdebug('Spinner is not available, please include it in the build or add