﻿(function(){var d=false,g=/xyz/.test(function(){})?/\b_super\b/:/.*/;this.Class=function(){};Class.extend=function(b){function c(){!d&&this.init&&this.init.apply(this,arguments)}var e=this.prototype;d=true;var f=new this;d=false;for(var a in b)f[a]=typeof b[a]=="function"&&typeof e[a]=="function"&&g.test(b[a])?function(h,i){return function(){var j=this._super;this._super=e[h];var k=i.apply(this,arguments);this._super=j;return k}}(a,b[a]):b[a];c.prototype=f;c.constructor=c;c.extend=arguments.callee; return c}})();
