2 lines
43 KiB
JavaScript
2 lines
43 KiB
JavaScript
![]() |
function updateFlag(){this.nextSibling.style.color=this.value?"#898E79":"#A03333"}var base2={name:"base2",version:"1.0.1(pre)",exports:"Base, Package, Abstract, Module, Enumerable, Map, Collection, RegGrp, assert, assertArity, assertType, assignID, copy, counter, detect, extend, forEach, format, instanceOf, match, rescape, slice, trim, I, K, Undefined, Null, True, False, bind, delegate, flip, not, partial, unbind",global:this,namespace:"var global=base2.global;function base(o,a){return o.base.apply(o,a)};",detect:new function(n){var u=n,i/*@cc_on=@_jscript_version@*/,r,t;return n.navigator&&(r=document.createElement("span"),t=navigator.platform+" "+navigator.userAgent,i||(t=t.replace(/MSIE\s[\d.]+/,"")),t=t.replace(/([a-z])[\s\/](\d)/gi,"$1$2")),function(a){var r=!1,b=a.charAt(0)=="!";if(b&&(a=a.slice(1)),a.charAt(0)=="(")try{eval("r=!!"+a)}catch(error){}else r=new RegExp("("+a+")","i").test(t);return!!(b^r)}}(this)},bindings;new function(_){function _12(n,t){var i,r;for(i in t)r=t[i],!Module[i]&&typeof r=="function"&&r.call&&(n[i]=r)}function _23(n,t,i,r){var u=Module.extend(),f;return forEach(i.match(/\w+/g),function(t){u[t]=unbind(n.prototype[t])}),forEach(r,u.implement,u),f=function(){return u(this.constructor==u?t.apply(null,arguments):arguments[0])},f.prototype=u.prototype,forEach(u,function(t,i){n[i]&&delete u.prototype[i],f[i]=u[i]}),f.ancestor=Object,delete f.extend,n!=Array&&delete f.forEach,f}function extend(n,t){var f,e,i,r,u;if(n&&t){if(arguments.length>2&&(i=t,t={},t[i]=arguments[2]),f=(typeof t=="function"?Function:Object).prototype,e=_5.length,base2.__prototyping)while(i=_5[--e])r=t[i],r!=f[i]&&(_4.test(r)?_22(n,i,r):n[i]=r);for(i in t)if(f[i]===undefined){if(r=t[i],i.charAt(0)=="@"&&detect(i.slice(1))){arguments.callee(n,r);continue}u=n[i],u&&typeof r=="function"?r==u||u.method&&_11(r,u)||(r.__base||_4.test(r)?_22(n,i,r):n[i]=r):n[i]=r}}return n}function _11(n,t){while(t){if(!t.ancestor)return!1;if(t=t.ancestor,t==n)return!0}return!1}function _22(n,t,i){function r(){var t=this.base,n;return this.base=u,n=i.apply(this,arguments),this.base=t,n}var u=n[t];r.ancestor=u,r.method=i,r.toString=function(){return String(i)},n[t]=r}function forEach(n,t,i,r){if(n!=null){if(!r)if(typeof n=="function"&&n.call)r=Function;else{if(typeof n.forEach=="function"&&n.forEach!=arguments.callee){n.forEach(t,i);return}if(typeof n.length=="number"){_24(n,t,i);return}}_8(r||Object,n,t,i)}}function _24(n,t,i){if(n!=null){var u=n.length,r;if(typeof n=="string")for(r=0;r<u;r++)t.call(i,n.charAt(r),r,n);else for(r=0;r<u;r++){/*@if(@_jscript_version<5.2)if(n[r]!==undefined||$Legacy.has(n,r))@else@*/if(r in n)/*@end@*/t.call(i,n[r],r,n)}}}function _8(n,t,i,r){var f=function(){this.i=1},u,e;f.prototype={i:1},u=0;for(e in new f)u++;_8=u>1?function(n,t,i,r){var f={},u;for(u in t)f[u]||n.prototype[u]!==undefined||(f[u]=!0,i.call(r,t[u],u,t))}:function(n,t,i,r){for(var u in t)n.prototype[u]===undefined&&i.call(r,t[u],u,t)},_8(n,t,i,r)}function instanceOf(n,t){if(typeof t!="function")throw new TypeError("Invalid 'instanceOf' operand.");if(n==null)return!1;/*@if(@_jscript_version<5.1)if($Legacy.instanceOf(n,t))return!0;@else@*/if(n instanceof t)return!0;/*@end@*/if(Base.ancestorOf==t.ancestorOf)return!1;var i=n.constructor;if(typeof i!="function")return!1;if(Base.ancestorOf==i.ancestorOf)return t==Object;switch(t){case Array:return!!(typeof n=="object"&&n.join&&n.splice);case Function:return!!(typeof n=="function"&&n.call);case RegExp:return i.prototype.toString()==_6;case Date:return!!n.getTimezoneOffset;case String:case Number:case Boolean:return typeof n==typeof t.prototype.valueOf();case Object:return!0}return!1}function assert(n,t,i){if(!n)throw new(i||Error)(t||"Assertion failed.");}function assertArity(n,t,i){if(t==null&&(t=n.callee.length),n.length<t)throw new SyntaxError(i||"Not enough arguments.");}function assertType(n,t,i){if(t&&(typeof t=="function"?!instanceOf(n,t):typeof n!=t))throw new TypeError(i||"Invalid type.");}function assignID(n){return n.base2ID||(n.base2ID="b2_"+counter()),n.base2ID}function counter(){return _7++}
|
|||
|
//# sourceMappingURL=base2.min.js.map
|