forked from drduan/minggeJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMingGe_Min_1.7.2.js
9 lines (9 loc) · 25.1 KB
/
MingGe_Min_1.7.2.js
1
2
3
4
5
6
7
8
9
/* MingGEjs类库1.7.2
*
* 你会用JQUERY,那你也会用这个框架,语法都是一样的!
*
* MingGejs选择器的执行速度,是JQUERY的十倍以上,绝对排行世界尖端,不喜匆喷,本屌要占有JQUERY用户份额关你X事
*
* 作者:明哥先生 --QQ399195513 QQ群461550716 官网www.shearphoto.com
*/
!function(ad,ac){var ab="1.7.2",aa=document.getElementsByClassName?!0:!1,Z=document.querySelectorAll?!0:!1,Y=Array.prototype.slice,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,W=Object.prototype.toString,V=function(d,c){return c.toUpperCase()},U=/-([a-z])/gi,T={fast:200,slow:600,normal:400},S=/alpha\([^)]*\)/,R=/^\s*(matrix3d|translate3d|translateX|translateY|translateZ|scale3d|scaleX|scaleY|scaleZ|rotate3d|rotateX|rotateY|rotateZ|perspective|matrix|translate|translateX|translateY|scale|scaleX|scaleY|rotate|skew|skewX|skewY)\s*$/i,Q=function(d){d=d.toLowerCase();var c=/(webkit)[ \/]([\w.]+)/.exec(d)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(d)||/(msie) ([\w.]+)/.exec(d)||!/compatible/.test(d)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(d)||[];return{browser:c[1]||"",version:c[2]||"0"}},P=function(e){var d=X.exec(e),f=!1;return null===d?!1:f=d[1]?["getElementById","id",d[1],{Id:!0}]:d[2]?["getElementsByTagName","tagName",d[2],{Tag:!0}]:["getElementsByClassName","className",d[3],{Class:!0}]},O=function(d){var c;return L.each(["r","t","n","f","v"],function(b,a){a="\\"+a,c=new RegExp(a,"g"),d=d.replace(c,a)}),d.replace(/[\x01-\x12]/g,"")},M={transform:!1,bindEvent:!1,getFilter:function(d){var c;return(c=M.original("filter",M.oStyleValue(d)))?(c=/opacity\s*=\s*([0-9]+)/.exec(c),c=c?0.01*parseInt(c[1]):1):c=1,c},getDisplay:function(f){if(/^(div|ul|p|h1|h2|h3|h4|h5|h6|dd|dt|dl|ol|table|nav|form)$/i.test(f)){return"block"}if(/^(span|ul|b|a|em|strong|a|img)$/i.test(f)){return"inline"}if(/^li$/i.test(f)){return"list-item"}if(/^(input|button)$/i.test(f)){return"inline-block"}if("TD"==f){return"table-cell"}if("TR"==f){return"table-row"}var e,h=document.createElement(f),g=document.body;return h.style.visibility="hidden",g.appendChild(h),e=M.original("display",M.oStyleValue(h)),g.removeChild(h),e},seachIndex:function(d,c){return d[0] in c?d[0]:d[1] in c?d[1]:!1},isIndex:function(d,c){return d in c},jsonp:function(af){var ae,B,A,z,y=af.url,x=af.jsonp,w=af.jsonpCallback,v=af.success,u=af.timeout,t=af.error,s=af.data,r=function(){return ad[ae]?(q>30&&z?(clearInterval(z),z=null):q++,void 0):(z&&(clearInterval(z),z=null),ad[ae]=function(b){A&&(clearTimeout(A),A=null),L.isFunction(v)&&v(M.JsonString.StringToJson(b)||b,"success"),a()},B=L.createScript(y),void 0)},q=0,a=function(){B&&B[0].removeChild(B[1]);try{delete ad[ae]}catch(c){ad[ae]=null}};y=y.replace(/\?+$/,"callback"),L.isTxt(s)&&(y=L.urlRevise(y,L.objToUrl(s))),x=J(x),w?ae=J(w):(x="[&|\\?]+(?:"+(L.isTxt(x)?x:"jsoncallback|callback")+")",ae=new RegExp(""+x+"\\s*=\\s*([^?]+?)(&|$)","i").exec(y),ae=ae?J(ae[1]):"callback"),u&&(A=setTimeout(function(){z&&(clearInterval(z),z=null),L.isFunction(t)&&t(505),a()},u)),z=setInterval(r,200)},htmlVal:function(e,d){try{return L.isTxt(d)?(L.each.call(this.nodeList,function(){M.isIndex(e,this)&&(this[e]=d)}),this):this.nodeList[0]?this.nodeList[0][e]:null}catch(f){return null}},oStyleValue:function(a){var d=a.currentStyle?a.currentStyle:ad.getComputedStyle(a,null);return d.getPropertyValue?[d,"getPropertyValue"]:[d,"getAttribute"]},original:function(d,c){return c[0][c[1]](L.styleName(d))},find:function(g){var f,j,i=0,h=new L();if(j=H(g)){for(;f=this.nodeList[i++];){I.call(h,f,j)}h.nodeList=G(h.nodeList)}return h},filter:function(h){var g,l,k,j=0,i=new L();if(i.SelectorTxt=this.SelectorTxt,l=P(h),!l){return i}for(k=new RegExp("(^|\\s)"+l[2]+"(\\s|$)",l[3].Tag&&"i");g=this.nodeList[j++];){k.test(g[l[1]])&&i.nodeList.push(g),i.nodeList=G(i.nodeList)}return i},animate:function(r,q,p,o){o=J(o),o=L.isString(o)&&/^(linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier\s*\(.+\))$/.test(o)?o:"ease-out";var n,m=M.transition+"TimingFunction",l={},k=this,j=function(){n&&(clearInterval(n),n=null);for(var e,c,f=0;e=k.nodeList[f++];){e.isMingGeAnimate&&(c=e.style,c[M.transition]=c[m]=null,p.call(e))}};return l[M.transition]=q+"ms",l[m]=o,this.css(l),setTimeout(function(){k.css(r)},5),n=setInterval(M.timeCompute(new Date().getTime(),q-1,j),5),this},cmdFun:function(b){switch(b=L.trim(b)){case"\u5916\u524d":case"beforeBegin":b="beforeBegin";break;case"\u5916\u540e":case"afterEnd":b="afterEnd";break;case"\u5185\u524d":case"afterBegin":b="afterBegin";break;case"\u5185\u540e":case"beforeEnd":default:b="beforeEnd"}return b},insertHTML:function(d,c){return c=M.cmdFun(c),d=J(d),L.isTxt(d)&&this.each(function(){this.insertAdjacentHTML(c,d)}),this},createNode:function(v,u,t){var s,r,q,p,o,n,m=new L(),l={};return L.isTxt(u)?l.html=L.trim(u):L.isObject(u)&&(l=u,l.value&&(l.html=l.value,delete l.value)),v=L.trim(v),t=M.cmdFun(t),s=function(){q=document.createElement("div"),p=document.createElement(v),o="MingGeTemp"+Math.random().toString().match(/[^\.]+$/)[0],r=r||M.seachIndex(["value","innerHTML"],p),q.appendChild(p);for(n in l){"id"!=n&&L.isTxt(l[n])&&("html"==n||p.setAttribute(n,l[n]))}p.id=o,this.insertAdjacentHTML(t,q.innerHTML),p=document.getElementById(o),l.id?p.id=l.id:p.removeAttribute?p.removeAttribute("id"):p.id="";try{l.html&&r&&(p[r]=l.html)}catch(a){}m.nodeList.push(p)},this.each(s),m.SelectorTxt=document.body,m.SelectorStr="000",m},addEvent:function(f,e,h){var g={add:function(){L.isFunction(h)&&f.addEventListener(e,h,!1)},att:function(){L.isFunction(h)&&f.attachEvent("on"+e,h)},no:function(){L.isFunction(h)&&(f["on"+e]=h)}};this.bindEvent=this.bindEvent||f.addEventListener&&"add"||f.attachEvent&&"att"||"no",g[this.bindEvent]&&g[this.bindEvent]()},delEvent:function(f,e,h){var g={add:function(){L.isFunction(h)&&f.removeEventListener(e,h,!1)},att:function(){L.isFunction(h)&&f.detachEvent("on"+e,h)},no:function(){L.isFunction(h)&&(f["on"+e]=null)}};this.bindEvent=this.bindEvent||f.addEventListener&&"add"||f.attachEvent&&"att"||"no",g[this.bindEvent]&&g[this.bindEvent]()},timeCompute:function(f,e,h){var g;return function(){g=new Date().getTime()-f,(g>e||0>g)&&h()}},ajax:function(){this.serverdata=this.erromsg=this.timeout=this.stop=this.xmlhttp=!1,this.transit=!0},ajaxPrototype:{get:function(e,d,f){return this.simplify(e,"get",!0,d,f,20000,!0)},post:function(e,d,f){return this.simplify(e,"post",!0,d,f,20000,!1)},getJSON:function(e,d,f){return this.simplify(e,"get",!0,d,f,20000,!0,/[\?&]+.+\s*=\s*\?/i.test(e)?"jsonp":"json")},simplify:function(r,q,p,o,n,m,l,k){if(L.isFunction(o)){var j=n;n=o,o=j||null}return this.ajax({url:r,type:q,dataType:k,timeout:m,async:p,lock:!0,cache:l,complete:!1,data:o,success:n}),this},handle:function(e,d){if(4==e.readyState){if(this.stop===!0){return}if(this.transit=!0,this.removeUploadEve(),d.timeout&&d.async&&(clearTimeout(this.timeout),this.timeout=!1),200==e.status){var f=this.serverdata=J(e.responseText);L.isFunction(d.success)&&("json"==d.dataType&&(f=M.JsonString.StringToJson(f)||f),d.success(f,"success"))}else{this.erromsg=e.status,L.isFunction(d.error)&&d.error(e.status)}}else{if(0==e.readyState){if(this.stop===!0){return}this.removeUploadEve(),d.timeout&&d.async&&(clearTimeout(this.timeout),this.timeout=!1),this.erromsg=e.readyState,this.transit=!0,L.isFunction(d.error)&&d.error(e.readyState)}}},out:function(b){this.transit=!0,this.erromsg=504,this.stop=!0,this.removeUploadEve(),L.isFunction(b.error)&&b.error(504)},removeUploadEve:function(){},ajax:function(a){var l,k,j,i;if(a=L.extend({type:"get",timeout:20000,async:!0},a),a.dataType&&(a.dataType=J(a.dataType),"jsonp"==a.dataType)){return M.jsonp(a),this}if(a.lock&&!this.transit){return !1}this.transit=!1,this.stop=this.erromsg=!1,l=ad.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"),a.type=a.type.toUpperCase(),k=function(){},a.data=L.objToUrl(a.data),L.isTxt(a.data)?(a.data=a.data&&J(a.data),k=function(){l.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}):"[object FormData]"!==W.call(a.data)?(a.data="",k=function(){l.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}):(L.isFunction(a.progress)&&(l.upload.addEventListener("progress",a.progress,!1),this.removeUploadEve=function(){l.upload.removeEventListener("progress",a.progress,!1)}),a.type="POST"),j=""==a.data?null:a.data,i=this,L.isFunction(a.complete)&&a.complete(),a.timeout&&a.async&&(this.timeout=setTimeout(function(){i.out(a)},a.timeout)),a.async===!0&&(l.onreadystatechange=function(){i.handle(l,a)});try{switch(a.type){case"POST":l.open("POST",a.url,a.async),k();break;default:l.open("GET",L.urlRevise(a.url,j),a.async),a.cache===!0||l.setRequestHeader("If-Modified-Since","0")}}catch(h){return this.erromsg=505,this.removeUploadEve(),a.timeout&&a.async&&(clearTimeout(this.timeout),this.timeout=!1),this.transit=!0,L.isFunction(a.error)&&a.error(505),void 0}l.send(j),a.async===!1&&i.handle(l,a)}},JsonString:{_json_:null,JsonToString:function(e){try{this._json_=[],this._read_(e,!0);var d=this._json_.join("").replace(/,([\}\]])/g,function(g,c){return c});return this._json_=null,O(d)}catch(f){return alert("Format does not match, conversion fails"),void 0}},StringToJson:function(a,h){if(L.isString(a)){try{if(null==h&&/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return ad.JSON&&ad.JSON.parse?ad.JSON.parse(a):new Function("return ("+a+")")()}if(h){var g=new Function("return ("+a+")")();return type=this._type_(g),"[object Object]"!==type&&"[object Array]"!==type?!1:g}return !1}catch(f){return !1}}},_type_:function(b){return L.isNumber(b.nodeType)?"[object document]":W.call(b)},_addjson_:function(f,e,h){var g={"[object Object]":e,"[object Array]":h};this._json_.push(g[f])},_addstring_:function(e){var d,f=typeof e;return"string"===f?'"'+e.replace(/[\"\'\\\/]/g,function(b){return"\\"+b})+'"':"number"===f?e:(d=this._type_(e),"[object Object]"===d||"[object Array]"===d?!1:'""')},_read_:function(h,g){var l,k,j,i=this._type_(h);if(g&&"[object Object]"!==i&&"[object Array]"!==i){return alert("Your incoming is not an array or JSON"),this._json_=null}this._addjson_(i,"{","[",g),l=h.constructor.prototype;for(k in h){L.isUndefined(l[k])&&(j=this._addstring_(h[k]),"boolean"!=typeof j?this._addjson_(i,'"'+k+'":'+j+",",j+","):(this._addjson_(i,'"'+k+'":',""),this._read_(h[k],!1)))}g=g?"":",",this._addjson_(i,"}"+g,"]"+g)}},opacity:!1,transition:!1,style:function(r,q,p){var o,n,m,l,k,j;return p=L.isTxt(p)?J(p):"",R.test(q)?(n=new RegExp(""+q+"\\s?\\((.*)\\)","i"),m=r[M.transform],p?q+="("+p+")":q="",o=[M.transform,m?n.test(m)?m.replace(n,q):m+" "+q:q]):"opacity"==q?("opacity"==M.opacity?(j=parseFloat(p,10),o=["opacity",isNaN(j)?null:j]):(l=r.filter,k="NaN"==parseInt(p,10)+""?"":"alpha(opacity="+100*p+")",o=S.test(l)?["filter",l.replace(S,k)]:["filter",k]),o):[q,p]},ready:function(a){function f(){try{var g=function(){"complete"===document.readyState&&(M.addEvent(document,"readystatechange",g),a())},c=ad.frameElement}catch(b){return M.addEvent(document,"readystatechange",g),void 0}if(null!=c){return M.addEvent(document,"readystatechange",g),void 0}try{document.documentElement.doScroll("left")}catch(g){return setTimeout(f,13),void 0}a()}M.bindEvent=M.bindEvent||document.addEventListener&&"add"||document.attachEvent&&"att"||"no";var e;L.isFunction(a)&&("add"==M.bindEvent?(e=function(){document.removeEventListener("DOMContentLoaded",e,!1),a()},document.addEventListener("DOMContentLoaded",e,!1)):f())}},K=function(f){var e,h;try{return Y.call(f)}catch(g){for(e=[],h=0;h<f.length;h++){e[h]=f[h]}return e}},J=function(d){try{return d.replace(/^(\s|\u00A0)+|(\s|\u00A0)+$/g,"")}catch(c){return d}},I=function(j,i){var p,o,n,m,l,k;if(i[0]||i[1][3].Id&&document===j){return p=i[1][2],o=j[i[1][0]]("MingGeAllelem2015"===p?"*":p),o&&(o=i[1][3].Id?[o]:K(o),this.nodeList=this.nodeList.concat(o)),void 0}for(m=j.getElementsByTagName("*"),l=0,k=new RegExp("(^|\\s)"+i[1][2]+"(\\s|$)");n=m[l++];){k.test(n[i[1][1]])&&this.nodeList.push(n)}},H=function(d){var c=P(d);return c?[c[3].Tag||aa&&c[3].Class,c]:!1},G=function(i){var h,n,m,l=0,k=[],j=!1;if(i.item||L.isArray(i)){for(;h=i[l++];){for(n=0;m=k[n++];){if(h===m){j=!0;break}}j||k.push(h),j=!1}}return k},F=function(B,A,z){var y,x,w,v,u,t,s,r,q,p=B.match(/[^\,]+/g),o=A.match(/[^\,]+/g);if(p&&o){for(u="",t=" "==z,s=/^[\w-_]+/,r=0;r<p.length;r++){for(y=p[r]+z,v=t||(w=y.match(s)),q=0;q<o.length;q++){v?y==o[q]?u+=y+",":w?(x=o[q].match(s),x?x[0]==w[0]&&(u+=y+o[q].replace(s,"")+","):u+=y+o[q]+","):u+=y+o[q]+",":u+=o[q]+y+","}}return u.replace(/,+$/,"")}},E=function(t,s,r,q){var p,o,n,m,l;try{if(n=!1,r){if(s.SelectorTxt===document||s.SelectorTxt===ad){return q}if(s.SelectorTxt&&""!=t){if(r.filter){if(s.SelectorTxt.ownerDocument){return s.SelectorStr&&"000"!==s.SelectorStr?(o="#"+(s.SelectorTxt.id||(n=!0,s.SelectorTxt.id="tempMingGeId2015")),p=F(o,q.SelectorStr=F(s.SelectorStr,t,"")," "),q.nodeList=K(s.SelectorTxt.querySelectorAll(p)),q.SelectorTxt=s.SelectorTxt,n&&s.SelectorTxt.removeAttribute("id"),q):-1}p=F(s.SelectorTxt,t,"")}else{if("000"===s.SelectorStr){return -1}if(s.SelectorTxt.ownerDocument){return o="#"+(s.SelectorTxt.id||(n=!0,s.SelectorTxt.id="tempMingGeId2015")),p=s.SelectorStr?F(o,q.SelectorStr=F(s.SelectorStr,t," ")," "):F(o,q.SelectorStr=t," "),q.nodeList=K(s.SelectorTxt.querySelectorAll(p)),q.SelectorTxt=s.SelectorTxt,n&&s.SelectorTxt.removeAttribute("id"),q}p=F(s.SelectorTxt,t," ")}}q.nodeList=K(document.querySelectorAll(p)),q.SelectorTxt=p}else{l=/^#([\w-_]+)$/.exec(t),q.nodeList=l?(m=document.getElementById(l[1]))?[m]:[]:K(document.querySelectorAll(t)),q.SelectorTxt=t}}catch(a){}return q},D=function(r,q,p){var o,n,m,l,k,e=new L();if(L.isString(r)){if(r=J(r),Z&&-1!=(o=E(r,q,p,e))){return o}if(n=r.match(/[^\,]+/g),m=[],n){if(l=n.length,1===l){return C(n[0],q,p)}for(k=0;l>k;k++){m=m.concat(C(n[k],q,p).nodeList)}return e.nodeList=G(m),e}return e}return p?e:e.init(r||0,document)},C=function(h,g,l){var k,j,i=h.match(/[^\s]+/g);if(i){if(k=i.length,l&&l.filter&&k>2){return new L()}for(j=0;k>j;j++){g=N(i[j],j,g,l)}}return g},N=function(h,g,l,k){var j,i=h.match(/[\.#]?([\w-]+)/g);if(i){for(j=0;j<i.length;j++){l=0==g?0==j?k?k.find?M.find.call(l,i[0]):M.filter.call(l,i[0]):new L().init(i[0],document):M.filter.call(l,i[j]):0==j?M.find.call(l,i[0]):M.filter.call(l,i[j])}}return l},L=ad.MingGe=function(a){return this===ad||this.MingGe?D(a):(this.nodeList=[],this.animateList=[],void 0)};L.fn=L.prototype={version:"\u4f60\u4f7f\u7528\u7684\u7248\u672c\u662fMingGejs"+ab,init:function(a,f){var e;return L.isFunction(a)?(M.ready(a),this):(a===ad||a===document||a.ownerDocument?(this.SelectorTxt=a,this.nodeList=[a]):(e=H(a))&&I.call(this,f,e),this)},is:function(b){switch(b=J(b)){case":animate":return this.nodeList[0]?this.nodeList[0].isMingGeAnimate?!0:!1:!1}},append:function(b){return M.createNode.call(this,b,{},"beforeEnd")},createNode:function(){return M.createNode.apply(this,arguments)},load:function(f,e){if(L.isFunction(f)){return this.bind("load",f)}var h,g=this;return successFun=function(b){g.each(function(){h=M.seachIndex(["value","innerHTML"],this),h&&(this[h]=b)})},null==e?L.get(f,null,successFun):L.post(f,e,successFun),this},insertHTML:function(){return M.insertHTML.apply(this,arguments)},stop:function(){if(M.transition||(M.transition=L.html5Attribute("transition")),!M.transition){return this}var b;return this.each(function(){if(this.isMingGeAnimate){delete this.isMingGeAnimate,this.mingGeAnimateList&&delete this.mingGeAnimateList;var a=M.transition+"TimingFunction";b=this.style,b[M.transition]=b[a]=null}})},fadeToggle:function(e,d){var f;return this.each(function(){f=M.oStyleValue(this),"none"==M.original("display",f)?L(this).fadeIn(e,d):L(this).fadeOut(e,d)})},attr:function(f,e){var h,g=this.nodeList[0];if(g){if(L.isObject(f)){return L.each.call(this.nodeList,function(){h=this,h.setAttribute&&L.each(f,function(d,c){L.isString(d)&&L.isTxt(c)&&h.setAttribute(d,c)})}),this}if(L.isUndefined(e)){return g.getAttribute&&L.isString(f)?g.getAttribute(f):null}L.isString(f)&&L.isTxt(e)&&L.each.call(this.nodeList,function(){this.setAttribute&&this.setAttribute(f,e)})}return this},fadeOut:function(f,e){var h,g=new L();return M.transition||(M.transition=L.html5Attribute("transition")),this.each(function(){h=M.oStyleValue(this),"none"==M.original("display",h)||this.isMingGeAnimate||g.nodeList.push(this)}),M.transition?g.animate({opacity:0},f,function(){L(this).css({display:"none",opacity:null}),L.isFunction(e)&&e.call(this)},"ease"):g.css("display","none"),this},hide:function(){return this.css("display","none")},show:function(){return this.css("display",null),L.each.call(this.nodeList,function(){1==this.nodeType&&"none"==M.original("display",M.oStyleValue(this))&&(this.style.display=M.getDisplay(this.tagName))}),this},fadeIn:function(f,e){M.transition||(M.transition=L.html5Attribute("transition"));var h,g=new L();return this.each(function(){if(h=M.oStyleValue(this),"none"==M.original("display",h)){if(this.isMingGeAnimate){return}M.transition&&L(this).css("opacity",0),g.nodeList.push(this),"none"==this.style.display?(this.style.display="","none"==M.original("display",h)&&(this.style.display=M.getDisplay(this.tagName))):this.style.display=M.getDisplay(this.tagName)}}),M.transition&&setTimeout(function(){g.animate({opacity:1},f,function(){L(this).css("opacity",null),L.isFunction(e)&&e.call(this)},"ease")},5),this},animate:function(x,w,v,u){var t,s,r,q,p,o,n,k;if(M.transition||(M.transition=L.html5Attribute("transition")),!M.transition){return this.css(x),this}if(!L.isObject(x)){return this}for(s=typeof w,"number"!==s&&("string"===s?(T[w]&&(w=T[w]),isNaN(parseFloat(w))&&(w=500)):"function"===s?(v=w,w=500):w=500),L.isFunction(v)||(r=u,u=v,v=L.isFunction(r)?r:function(){}),t=function(){var e,c,f=this.mingGeAnimateList;L.isArray(f)&&f.length>0?(c=new L(),c.nodeList=[this],e=f[0],f.splice(0,1),M.animate.apply(c,e)):(delete this.mingGeAnimateList,delete this.isMingGeAnimate),v.call(this)},o=0,n=new L(),k=[x,w,t,u];q=this.nodeList[o++];){q.isMingGeAnimate?q.mingGeAnimateList?q.mingGeAnimateList.push(k):q.mingGeAnimateList=[k]:(q.isMingGeAnimate=1,n.nodeList.push(q),p||(p=!0))}return p&&M.animate.apply(n,k),this},on:function(h,g){var l,k,j=0,i=typeof h;if("string"===i&&L.isFunction(g)){for(;l=this.nodeList[j++];){l["on"+h]=g}}else{if("object"===i){for(;l=this.nodeList[j++];){for(k in h){l["on"+k]=h[k]}}}}return this},empty:function(){var b;return this.each(function(){1==this.nodeType&&(b=M.seachIndex(["value","innerHTML"],this),b&&(this[b]=""))})},remove:function(){var b=[];return this.each(function(){try{this.parentNode.removeChild(this)}catch(a){b.push(this)}}),this.nodeList=b,this},bind:function(h,g){var l,k,j=0,i=typeof h;if("string"===i&&L.isFunction(g)){for(;l=this.nodeList[j++];){M.addEvent(l,h,g)}}else{if("object"===i){for(;l=this.nodeList[j++];){for(k in h){M.addEvent(l,k,h[k])}}}}return this},unbind:function(f,e){var h,g=0;if(e){for(;h=this.nodeList[g++];){M.delEvent(h,f,e)}}else{for(;h=this.nodeList[g++];){h["on"+f]=null}}return this},one:function(h,g){var l,k,j,i=typeof h;if("string"===i&&L.isFunction(g)){return l=function(){M.delEvent(this,h,l),g.call(this)},this.bind(h,l)}if("object"===i){k={};for(j in h){k[j]=function(a){return function(){M.delEvent(this,a,k[a]),h[a].call(this)}}(j)}return this.bind(k)}return this},SelectorStr:!1,SelectorTxt:!1,nodeList:[],ready:function(b){return M.ready(b),this},removing:function(b){return G(b)},parent:function(g){for(var f,j,i=0,h=new L();f=this.nodeList[i++];){(j=f.parentNode)&&("BODY"==j.tagName||h.nodeList.push(j))}return h.nodeList=G(h.nodeList),h.SelectorTxt=document.body,h.SelectorStr="000",g?h.filter(g):h},addClass:function(d){if(L.isString(d)){d=J(d);var c;this.each(function(){1===this.nodeType&&(c=this.className,this.className=c?c+" "+d:d)})}return this},removeClass:function(e){e=J(e);var d,f;return L.isString(e)?this.each(function(){1===this.nodeType&&(d=this.className,d&&(f=RegExp("(^|\\s)"+e+"($|\\s)","ig")).test(d)&&(this.className=d=J(d.replace(f," ")),""==d&&(this.removeAttribute?this.removeAttribute("class"):this.className="")))}):L.isUndefined(e)?this.each(function(){1===this.nodeType&&this.className&&(this.removeAttribute?this.removeAttribute("class"):this.className="")}):this},children:function(b){return b?this.find(b):Z?this.find("*"):this.find("MingGeAllelem2015")},find:function(b){return D(b,this,{find:!0})},filter:function(d){var c=D(d,this,{filter:!0});return this.SelectorTxt.ownerDocument&&!this.SelectorStr&&c.nodeList[0]&&(c.SelectorTxt=c.nodeList[0],c.SelectorStr=!1),c},index:function(a){try{return a?L.inArray(a.nodeType||a==ad?a:a.nodeList[0],this.nodeList):L.inArray(this.nodeList[0],this.nodeList[0].parentNode.getElementsByTagName("*"))}catch(d){return -1}},eq:function(d){var c=new L();return c=null==d?this:(d=0>d?this.nodeList.length+d:d,this.nodeList[d]&&(c.nodeList=[c.SelectorTxt=this.nodeList[d]]),c)},size:function(){return this.nodeList.length},each:function(e){if(L.isFunction(e)){for(var d=this.nodeList.length,f=0;d>f;f++){e.call(this.nodeList[f],f,d)}}return this},val:function(b){return M.htmlVal.call(this,"value",b)},html:function(b){return M.htmlVal.call(this,"innerHTML",b)},text:function(b){return M.htmlVal.call(this,M.isIndex("textContent",document.body)?"textContent":"innerText",b)},css:function(t,s){var r,q,p,o,n=0,m={},l=typeof t;if(M.opacity||(M.opacity=L.html5Attribute("opacity")||"filter"),M.transform||(M.transform=L.html5Attribute("transform")),"string"===l){if(t=L.styleName(J(t)),L.isUndefined(s)){return(r=this.nodeList[0])&&r.ownerDocument?R.test(t)?(o=r.style[M.transform],o?(n=new RegExp(""+t+"\\s?\\((.*)\\)","i").exec(o),n&&n[1]):null):"filter"==M.opacity?M.getFilter(r):M.original(t,M.oStyleValue(r)):null}for(;r=this.nodeList[n++];){try{p=r.style,m=M.style(p,t,s),p[m[0]]=m[1]}catch(k){}}}else{if("object"===l){for(;r=this.nodeList[n++];){p=r.style;for(q in t){try{1==n&&(m[q]=M.style(p,L.styleName(q),t[q])),p[m[q][0]]=m[q][1]}catch(k){}}}}}return this},get:function(b){return null==b?this.nodeList:(b=0>b?this.nodeList.length+b:b,this.nodeList[b])}},L.fn.extend=L.extend=function(){var f,e,h,g=arguments.length;if(1===g&&"[object Object]"===W.call(arguments[0])){for(f in arguments[0]){this[f]||(this[f]=arguments[0][f])}return !0}return g>1?(e=arguments[0],h=arguments[1],L.isObject(h)&&L.isObject(e)?(L.each(h,function(b,d){e[b]=d}),e):arguments[1]||arguments[0]):!1},M.ajax.prototype=M.ajaxPrototype,!function(e){for(var d,f=0;d=e[f++];){L.fn[d]=function(b){return function(a){return this.bind(b,a)}}(d)}}(["blur","focus","focusin","focusout","resize","scroll","unload","click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave","change","select","submit","keydown","keypress","keyup","error","touchstart","touchmove","touchend"]),L.extend({parseJSON:function(d,c){return M.JsonString.StringToJson(d,c)},toJSON:function(b){return M.JsonString.JsonToString(b)},trim:function(b){return J(b)},each:function(f,e){var h,g=0;if(L.isFunction(f)){for(;h=this[g++];){f.call(h)}}else{if((L.isObject(f)||L.isArray(f))&&L.isFunction(e)){for(g in f){f.hasOwnProperty&&f.hasOwnProperty(g)&&e(g,f[g])}return !0}}return !1},setVar:function(b){try{delete ad[ac]}catch(a){ad[ac]=null}ad[b]=L},isObject:function(b){return"[object Object]"===W.call(b)},update:function(f){for(var e,h=0,g=[];e=f.nodeList[h++];){e.ownerDocument?e.parentNode&&g.push(e):g.push(e)}f.nodeList=g},isArray:function(b){return"[object Array]"===W.call(b)},isFunction:function(b){return"[object Function]"===W.call(b)},isEmptyObject:function(d){for(var c in d){if(d.hasOwnProperty(c)){return !1}}return !0},createScript:function(e){var d,f=document.getElementsByTagName("head").item(0);return f?(d=document.createElement("script"),f.appendChild(d),L.isString(e)&&(d.src=e),[f,d]):void 0},post:function(e,d,f){return new M.ajax().post(e,d,f)},get:function(e,d,f){return new M.ajax().get(e,d,f)},getJSON:function(e,d,f){return new M.ajax().getJSON(e,d,f)},ajax:function(d){var c=new M.ajax();return L.isObject(d)&&c.ajax(d),c},styleName:function(d){try{return d.replace(U,V)}catch(c){return d}},userAgent:Q(navigator.userAgent),isIe:function(){return"msie"===this.userAgent.browser?this.userAgent.version.charAt(0):!1},isTxt:function(d){var c=typeof d;return"string"==c||"number"==c},isNumber:function(){return"number"==typeof str},isUndefined:function(b){return"undefined"==typeof b},isString:function(b){return"string"==typeof b},objToUrl:function(d){if(L.isObject(d)){var c="";return L.each(d,function(b,e){L.isTxt(e)&&(c+=b+"="+encodeURIComponent(e)+"&")}),c.replace(/&+$/,"")}return L.isString(d)?encodeURIComponent(d):d},inArray:function(f,e){if(e.indexOf){return e.indexOf(f)}for(var h=0,g=e.length;g>h;h++){if(e[h]===f){return h}}return -1},urlRevise:function(d,c){return""!=c&&L.isTxt(c)&&(d+=/\?/.test(d)?"&"+c:"?"+c),d},isHtml5:function(){return document.createElement("canvas").getContext?!0:!1},html5Attribute:function(i){var h,n,m,l,k;try{for(h=i?i.toLowerCase():"transform",i=h.replace(/^\w/,i.charAt(0).toUpperCase()),n=document.body.style,m=[h,"Ms"+i,"Moz"+i,"Webkit"+i,"O"+i],l=!1,k=0;k<m.length;k++){if(m[k] in n){l=m[k];break}}return l}catch(j){return !1}}}),L.each(["width","height","top","left"],function(d,c){L.fn[c]=function(f,e){return function(a){return null==a?this.nodeList[0]?this.nodeList[0]["offset"+e]:null:(/^[0-9]+$/.test(a)&&(a+="px"),this.css(f,a))}}(c,c.replace(/^\w/,c.charAt(0).toUpperCase()))}),ad[ac]=L}(window,"$");