/** * Combined, minified redistributable ease.js file. * http://easejs.org/ * Licensed under the GNU LGPL v3+ * Copyright (C) 2010,2011 Mike Gerwitz */ var easejs={}; (function(x){var l={},j=function(b){var d=b.replace(/^\.?\/|[^/]*?\/\.\.\/|\.js$/,""),d=l[d];if(void 0===d)throw"[ease.js] Undefined module: "+b;return d.exports};(function(b){var d={"public":!0,"protected":!0,"private":!0,"static":!0,"abstract":!0,"const":!0,virtual:!0,override:!0};(b.exports={}).parseKeywords=function(a){var b=a,c=[],f={},a=""+a;if(/ /.test(a))for(var c=a.split(/\s+/),b=c.pop(),a=c.length,e="";a--;){e=c[a];if(!d[e])throw Error("Unexpected keyword for '"+b+"': "+e);f[e]=!0}return{name:b, keywords:f}}})(l.prop_parser={},".");(function(b,d){function a(c,e){for(var a=e.length;a--;)if(null===e[a].match(/^[a-z_][a-z0-9_]*$/i))throw SyntaxError("Member "+c+" contains invalid parameter '"+e[a]+"'");}function g(){var a;return e?function(a,e,b){try{Object.defineProperty(a,e,{value:b,enumerable:!1,writable:!1,configurable:!1})}catch(f){c.definePropertyFallback(!0),a[e]=b}}:function(c,a,e){c[a]=e}}var c=b.exports={},f=j(d+"/prop_parser").parseKeywords,e;a:{if("function"===typeof Object.defineProperty)try{Object.defineProperty({}, "x",{});e=!0;break a}catch(h){}e=!1}c.freeze="function"===typeof Object.freeze?Object.freeze:function(){};c.definePropertyFallback=function(a){if(void 0===a)return!e;e=!a;c.defineSecureProp=g();return c};c.defineSecureProp=g();c.clone=function m(c,a){a=!!a;if(c instanceof Array){if(!a)return c.slice(0);for(var e=[],b=0,f=c.length;b"}:function(){return"#"})}var e=null,d=this;c.toString= a?function(){return a}:function(){return"(Class)"};return c};i.prototype.createAbstractCtor=function(a){var b=this,c=function(){if(!b._extending)throw Error("Abstract class "+(a||"(anonymous)")+" cannot be instantiated");};c.toString=a?function(){return a}:function(){return"(AbstractClass)"};return c};i.prototype._attachPropInit=function(a,b,c,e,d){var f=this;k.defineSecureProp(a,"__initProps",function(e){var e=!!e,h=a.___$$parent$$,h=h&&h.__initProps;"function"===typeof h&&h.call(this,!0);h=f._visFactory.createPropProxy(this, this.___$$vis$$,b["public"]);h=this.___$$vis$$[d]=f._visFactory.setup(h,b,c);e||k.defineSecureProp(h,"__inst",this)})};i.getMethodInstance=function(a,b){var c=a.___$$vis$$;return a.__iid&&c?c[b]:null}})(l.ClassBuilder={},".");(function(b){var d=b.exports={};b.exports=d=function(a){if(!(this instanceof d))return new b.exports(a);this._factory=a};d.prototype.wrapMethod=function(a,b,c,d){return this._factory(a,b,c,d)}})(l.MethodWrapperFactory={},".");(function(b){(b.exports={}).standard={wrapOverride:function(b, a,g,c){return function(){var f=c(this,g)||this,e=void 0;f.__super=a;e=b.apply(f,arguments);f.__super=void 0;return e===f?this:e}},wrapNew:function(b,a,g,c){return function(){var a=c(this,g)||this,e=void 0,e=b.apply(a,arguments);return e===a?this:e}}}})(l.MethodWrappers={},".");(function(b,d){function a(a,b,c){var e=function(){throw TypeError("Only one access modifier may be used for definition of '"+c+"'");};if(b["private"])return(b["public"]||b["protected"])&&e(),a["private"];if(b["protected"])return(b["public"]|| b["private"])&&e(),a["protected"];(b["private"]||b["protected"])&&e();return a["public"]}function g(a,b,c){for(var d=e.length,p=null;d--;)if(p=f.getPropertyDescriptor(a[e[d]],b,!0))return{get:p.get,set:p.set,member:p.value};return void 0!==c?(a=c.___$$methods$$,c=c.___$$props$$,a&&g(a,b)||c&&g(c,b)||null):null}var c=b.exports={},f=j(d+"/util");j(d+"/warn");var e=["public","protected","private"];b.exports=function(a,c,e){if(!(this instanceof b.exports))return new b.exports(a,c,e);this._wrapMethod= a;this._wrapOverride=c;this._validate=e};c=b.exports.prototype;c.initMembers=function(a,b,c){return{"public":a||{},"protected":b||{},"private":c||{}}};c.buildMethod=function(b,c,e,d,f,q,i,k){var j=(k=(c=g(b,e,k))?c.member:null)&&k.___$$keywords$$,b=a(b,f,e);this._validate.validateMethod(e,d,f,c,j);if(k)if(f.override||j["abstract"])d=this._overrideMethod(k,d,q,i);else throw Error("Method hiding not yet implemented (we should never get here; bug).");else d=f["abstract"]?d:this._overrideMethod(null, d,q,i);b[e]=d;b[e].___$$keywords$$=f};c.buildProp=function(b,c,e,d,f,q){q=(c=g(b,e,q))?c.member:null;this._validate.validateProperty(e,d,f,c,q?q[1]:null);a(b,f,e)[e]=[d,f]};c.buildGetterSetter=function(b,c,e,d,f,q,i){c=g(b,e,i);this._validate.validateGetterSetter(e,{},q,c,c&&c.get?c.get.___$$keywords$$:null);d.___$$keywords$$=q;Object.defineProperty(a(b,q,e),e,{get:d,set:f,enumerable:!0,configurable:!1})};c._overrideMethod=function(a,b,c,e){var d=null,d=(a?this._wrapOverride:this._wrapMethod).wrapMethod(b, a,e,c||function(){});f.defineSecureProp(d,"__length",b.__length||b.length);return d};c._getVisibilityValue=function(a){return a["protected"]?1:a["private"]?2:0}})(l.MemberBuilder={},".");(function(b){var d=b.exports={};b.exports=d=function(a){if(!(this instanceof b.exports))return new b.exports(a);this._warningHandler=a||function(){}};d.prototype.validateMethod=function(a,b,c,d,e){var h=d?d.member:null;if(c["abstract"]&&c["private"])throw TypeError("Method '"+a+"' cannot be both private and abstract"); if(c["const"])throw TypeError("Cannot declare method '"+a+"' as constant; keyword is redundant");if(c.virtual&&c["static"])throw TypeError("Cannot declare static method '"+a+"' as virtual");if(d&&(d.get||d.set))throw TypeError("Cannot override getter/setter '"+a+"' with method");if(h){if(e["private"])throw TypeError("Private member name '"+a+"' conflicts with supertype");if("function"!==typeof h)throw TypeError("Cannot override property '"+a+"' with method");if(c.override&&!e.virtual)throw TypeError("Cannot override non-virtual method '"+ a+"'");if(c["abstract"]&&!e["abstract"])throw TypeError("Cannot override concrete method '"+a+"' with abstract method");if((b.__length||b.length)<(h.__length||h.length))throw TypeError("Declaration of method '"+a+"' must be compatible with that of its supertype");if(this._getVisibilityValue(e)]"}:function(){return"[object Interface]"}}b.exports={};var h=j(d+"/util"),l=j(d+"/MethodWrapperFactory"),m=j(d+"/MethodWrappers").standard,r=j(d+"/MemberBuilder")(l(m.wrapNew), l(m.wrapOverride),j(d+"/MemberBuilderValidator")());j(d+"/class");b.exports=function(a,b){var d=null;switch(typeof a){case "object":d=g.apply(null,arguments);break;case "string":d=c.apply(null,arguments);break;default:throw TypeError("Expecting anonymous interface definition or named interface definition");}return d};b.exports.extend=function(){return p.apply(this,arguments)};b.exports.isInterface=function(b){b=b||{};return b.prototype instanceof a?!0:!1};var p=function(b){function c(a){return function(){if(!b)throw Error("Interface"+ (a?a+" ":"")+" cannot be instantiated");}}return function(){b=!0;var d=Array.prototype.slice.call(arguments),g=d.pop()||{},d=new (d.pop()||a),j="",l=r.initMembers(d,d,d);(j=g.__name)&&delete g.__name;if(!(d instanceof a))throw new TypeError("Interfaces may only extend other interfaces");var n=c(j);try{h.propParse(g,{assumeAbstract:!0,property:function(){throw TypeError("Unexpected internal error");},getset:function(){throw TypeError("Unexpected internal error");},method:function(a,b,c,d){if(d["protected"]|| d["private"])throw TypeError(j+" member "+a+" must be public");r.buildMethod(l,null,a,b,d)}})}catch(m){throw m.message="Failed to define interface "+(j?j:"(anonymous)")+": "+m.message,m;}f(n);e(n,j);n.prototype=d;n.constructor=n;h.freeze(n);b=!1;return n}}(!1)})(l["interface"]={},".");(function(b){b.exports={};var d=[0,1,0];d.major=0;d.minor=1;d.rev=0;d.toString=function(){return this.join(".")};b.exports=d})(l.version={},".");x.Class=l["class"].exports;x.AbstractClass=l.class_abstract.exports;x.FinalClass= l.class_final.exports;x.Interface=l["interface"].exports;x.version=l.version.exports})(easejs);