3 lines
88 KiB
JavaScript
3 lines
88 KiB
JavaScript
|
(function(){this.MooTools={version:"1.4.5",build:"ab8ea8824dc3b24b6666867a2c4ed58ebb762cf0"};var e=this.typeOf=function(e){if(null==e)return"null";if(null!=e.$family)return e.$family();if(e.nodeName){if(1==e.nodeType)return"element";if(3==e.nodeType)return/\S/.test(e.nodeValue)?"textnode":"whitespace"}else if("number"==typeof e.length){if(e.callee)return"arguments";if("item"in e)return"collection"}return typeof e},t=this.instanceOf=function(e,t){if(null==e)return!1;for(var i=e.$constructor||e.constructor;i;){if(i===t)return!0;i=i.parent}return e.hasOwnProperty?e instanceof t:!1},i=this.Function,n=!0;for(var r in{toString:1})n=null;n&&(n=["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"]),i.prototype.overloadSetter=function(e){var t=this;return function(i,r){if(null==i)return this;if(e||"string"!=typeof i){for(var o in i)t.call(this,o,i[o]);if(n)for(var s=n.length;s--;)o=n[s],i.hasOwnProperty(o)&&t.call(this,o,i[o])}else t.call(this,i,r);return this}},i.prototype.overloadGetter=function(e){var t=this;return function(i){var n,r;if("string"!=typeof i?n=i:arguments.length>1?n=arguments:e&&(n=[i]),n){r={};for(var o=0;n.length>o;o++)r[n[o]]=t.call(this,n[o])}else r=t.call(this,i);return r}},i.prototype.extend=function(e,t){this[e]=t}.overloadSetter(),i.prototype.implement=function(e,t){this.prototype[e]=t}.overloadSetter();var o=Array.prototype.slice;i.from=function(t){return"function"==e(t)?t:function(){return t}},Array.from=function(t){return null==t?[]:s.isEnumerable(t)&&"string"!=typeof t?"array"==e(t)?t:o.call(t):[t]},Number.from=function(e){var t=parseFloat(e);return isFinite(t)?t:null},String.from=function(e){return e+""},i.implement({hide:function(){return this.$hidden=!0,this},protect:function(){return this.$protected=!0,this}});var s=this.Type=function(t,i){if(t){var n=t.toLowerCase(),r=function(t){return e(t)==n};s["is"+t]=r,null!=i&&(i.prototype.$family=function(){return n}.hide(),i.type=r)}return null==i?null:(i.extend(this),i.$constructor=s,i.prototype.$constructor=i,i)},a=Object.prototype.toString;s.isEnumerable=function(e){return null!=e&&"number"==typeof e.length&&"[object Function]"!=a.call(e)};var l={},c=function(t){var i=e(t.prototype);return l[i]||(l[i]=[])},u=function(t,i){if(!i||!i.$hidden){for(var n=c(this),r=0;n.length>r;r++){var s=n[r];"type"==e(s)?u.call(s,t,i):s.call(this,t,i)}var a=this.prototype[t];null!=a&&a.$protected||(this.prototype[t]=i),null==this[t]&&"function"==e(i)&&h.call(this,t,function(e){return i.apply(e,o.call(arguments,1))})}},h=function(e,t){if(!t||!t.$hidden){var i=this[e];null!=i&&i.$protected||(this[e]=t)}};s.implement({implement:u.overloadSetter(),extend:h.overloadSetter(),alias:function(e,t){u.call(this,e,this.prototype[t])}.overloadSetter(),mirror:function(e){return c(this).push(e),this}}),new s("Type",s);var d=function(e,t,i){var n=t!=Object,r=t.prototype;n&&(t=new s(e,t));for(var o=0,a=i.length;a>o;o++){var l=i[o],c=t[l],u=r[l];c&&c.protect(),n&&u&&t.implement(l,u.protect())}if(n){var h=r.propertyIsEnumerable(i[0]);t.forEachMethod=function(e){if(!h)for(var t=0,n=i.length;n>t;t++)e.call(r,r[i[t]],i[t]);for(var o in r)e.call(r,r[o],o)}}return d};d("String",String,["charAt","charCodeAt","concat","indexOf","lastIndexOf","match","quote","replace","search","slice","split","substr","substring","trim","toLowerCase","toUpperCase"])("Array",Array,["pop","push","reverse","shift","sort","splice","unshift","concat","join","slice","indexOf","lastIndexOf","filter","forEach","every","map","some","reduce","reduceRight"])("Number",Number,["toExponential","toFixed","toLocaleString","toPrecision"])("Function",i,["apply","call","bind"])("RegExp",RegExp,["exec","test"])("Object",Object,["create","defineProperty","defineProperties","keys","getPrototypeOf","getOwnPropertyDescriptor","getOwnPropertyNames","preventExtensions","isExtensible","seal","isSealed","freeze","isFrozen"])("Date",Date,["now"]),Object.extend=h.overloadSetter(),Date.extend("now",function(){return+new Date}),new s("Boolean",Boolean),Number.prototype.$family=function(){r
|
||
|
}try{if(s)return e.querySelector(_)||null;g=e.querySelectorAll(_)}catch(k){o[t]=1;break e}finally{p||(C?x.setAttribute("id",C):x.removeAttribute("id"),e=x)}if(this.starSelectsClosedQSA)for(c=0;m=g[c++];)!(m.nodeName>"@")||d&&u[this.getUID(m)]||a.push(m);else for(c=0;m=g[c++];)d&&u[this.getUID(m)]||a.push(m);return d&&this.sort(a),a}if(l=this.Slick.parse(t),!l.length)return a}else{if(null==t)return a;if(!t.Slick)return this.contains(e.documentElement||e,t)?(a?a.push(t):a=t,a):a;l=t}this.posNTH={},this.posNTHLast={},this.posNTHType={},this.posNTHTypeLast={},this.push=!d&&(s||1==l.length&&1==l.expressions[0].length)?this.pushArray:this.pushUID,null==a&&(a=[]);var T,E,S,A,P,L,O,M,D,R,I,G,N,X,B=l.expressions;e:for(c=0;G=B[c];c++)for(T=0;N=G[T];T++){if(A="combinator:"+N.combinator,!this[A])continue e;if(P=this.isXMLDocument?N.tag:N.tag.toUpperCase(),L=N.id,O=N.classList,M=N.classes,D=N.attributes,R=N.pseudos,X=T===G.length-1,this.bitUniques={},X?(this.uniques=u,this.found=a):(this.uniques={},this.found=[]),0===T){if(this[A](e,P,L,M,D,R,O),s&&X&&a.length)break e}else if(s&&X){for(E=0,S=I.length;S>E;E++)if(this[A](I[E],P,L,M,D,R,O),a.length)break e}else for(E=0,S=I.length;S>E;E++)this[A](I[E],P,L,M,D,R,O);I=this.found}return(d||l.expressions.length>1)&&this.sort(a),s?a[0]||null:a},e.uidx=1,e.uidk="slick-uniqueid",e.getUIDXML=function(e){var t=e.getAttribute(this.uidk);return t||(t=this.uidx++,e.setAttribute(this.uidk,t)),t},e.getUIDHTML=function(e){return e.uniqueNumber||(e.uniqueNumber=this.uidx++)},e.sort=function(e){return this.documentSorter?(e.sort(this.documentSorter),e):e},e.cacheNTH={},e.matchNTH=/^([+-]?\d*)?([a-z]+)?([+-]\d+)?$/,e.parseNTHArgument=function(e){var t=e.match(this.matchNTH);if(!t)return!1;var i=t[2]||!1,n=t[1]||1;"-"==n&&(n=-1);var r=+t[3]||0;return t="n"==i?{a:n,b:r}:"odd"==i?{a:2,b:1}:"even"==i?{a:2,b:0}:{a:0,b:n},this.cacheNTH[e]=t},e.createNTHPseudo=function(e,t,i,n){return function(r,o){var s=this.getUID(r);if(!this[i][s]){var a=r.parentNode;if(!a)return!1;var l=a[e],c=1;if(n){var u=r.nodeName;do l.nodeName==u&&(this[i][this.getUID(l)]=c++);while(l=l[t])}else do 1==l.nodeType&&(this[i][this.getUID(l)]=c++);while(l=l[t])}o=o||"n";var h=this.cacheNTH[o]||this.parseNTHArgument(o);if(!h)return!1;var d=h.a,p=h.b,f=this[i][s];if(0==d)return p==f;if(d>0){if(p>f)return!1}else if(f>p)return!1;return 0==(f-p)%d}},e.pushArray=function(e,t,i,n,r,o){this.matchSelector(e,t,i,n,r,o)&&this.found.push(e)},e.pushUID=function(e,t,i,n,r,o){var s=this.getUID(e);!this.uniques[s]&&this.matchSelector(e,t,i,n,r,o)&&(this.uniques[s]=!0,this.found.push(e))},e.matchNode=function(e,t){if(this.isHTMLDocument&&this.nativeMatchesSelector)try{return this.nativeMatchesSelector.call(e,t.replace(/\[([^=]+)=\s*([^'"\]]+?)\s*\]/g,'[$1="$2"]'))}catch(i){}var n=this.Slick.parse(t);if(!n)return!0;var r,o=n.expressions,s=0;for(r=0;currentExpression=o[r];r++)if(1==currentExpression.length){var a=currentExpression[0];if(this.matchSelector(e,this.isXMLDocument?a.tag:a.tag.toUpperCase(),a.id,a.classes,a.attributes,a.pseudos))return!0;s++}if(s==n.length)return!1;var l,c=this.search(this.document,n);for(r=0;l=c[r++];)if(l===e)return!0;return!1},e.matchPseudo=function(e,t,i){var n="pseudo:"+t;if(this[n])return this[n](e,i);var r=this.getAttribute(e,t);return i?i==r:!!r},e.matchSelector=function(e,t,i,n,r,o){if(t){var s=this.isXMLDocument?e.nodeName:e.nodeName.toUpperCase();if("*"==t){if("@">s)return!1}else if(s!=t)return!1}if(i&&e.getAttribute("id")!=i)return!1;var a,l,c;if(n)for(a=n.length;a--;)if(c=this.getAttribute(e,"class"),!c||!n[a].regexp.test(c))return!1;if(r)for(a=r.length;a--;)if(l=r[a],l.operator?!l.test(this.getAttribute(e,l.key)):!this.hasAttribute(e,l.key))return!1;if(o)for(a=o.length;a--;)if(l=o[a],!this.matchPseudo(e,l.key,l.value))return!1;return!0};var s={" ":function(e,t,i,n,r,o,s){var a,l,c;if(this.isHTMLDocument){e:if(i){if(l=this.document.getElementById(i),!l&&e.all||this.idGetsName&&l&&l.getAttributeNode("id").nodeValue!=i){if(c=e.all[i],!c)return;for(c[0]||(c=[c]),a=0;l=c[a++];){var u=l.getAttributeNode("id");if(u&&u.nodeVa
|
||
|
}}),Element.Events=new Hash(Element.Events)}(),function(){var e=!!window.addEventListener;Element.NativeEvents.focusin=Element.NativeEvents.focusout=2;var t=function(e,t,i,n,r){for(;r&&r!=e;){if(t(r,n))return i.call(r,n,r);r=document.id(r.parentNode)}},i={mouseenter:{base:"mouseover"},mouseleave:{base:"mouseout"},focus:{base:"focus"+(e?"":"in"),capture:!0},blur:{base:e?"blur":"focusout",capture:!0}},n="$delegation:",r=function(e){return{base:"focusin",remove:function(t,i){var r=t.retrieve(n+e+"listeners",{})[i];if(r&&r.forms)for(var o=r.forms.length;o--;)r.forms[o].removeEvent(e,r.fns[o])},listen:function(i,r,o,s,a,l){var c="form"==a.get("tag")?a:s.target.getParent("form");if(c){var u=i.retrieve(n+e+"listeners",{}),h=u[l]||{forms:[],fns:[]},d=h.forms,p=h.fns;if(-1==d.indexOf(c)){d.push(c);var f=function(e){t(i,r,o,e,a)};c.addEvent(e,f),p.push(f),u[l]=h,i.store(n+e+"listeners",u)}}}}},o=function(e){return{base:"focusin",listen:function(i,n,r,o,s){var a={blur:function(){this.removeEvents(a)}};a[e]=function(e){t(i,n,r,e,s)},o.target.addEvents(a)}}};e||Object.append(i,{submit:r("submit"),reset:r("reset"),change:o("change"),select:o("select")});var s=Element.prototype,a=s.addEvent,l=s.removeEvent,c=function(e,t){return function(i,n,r){if(-1==i.indexOf(":relay"))return e.call(this,i,n,r);var o=Slick.parse(i).expressions[0][0];if("relay"!=o.pseudos[0].key)return e.call(this,i,n,r);var s=o.tag;return o.pseudos.slice(1).each(function(e){s+=":"+e.key+(e.value?"("+e.value+")":"")}),e.call(this,i,n),t.call(this,s,o.pseudos[0].value,n)}},u={addEvent:function(e,n,r){var o=this.retrieve("$delegates",{}),s=o[e];if(s)for(var l in s)if(s[l].fn==r&&s[l].match==n)return this;var c=e,u=n,h=r,d=i[e]||{};e=d.base||c,n=function(e){return Slick.match(e,u)};var p=Element.Events[c];if(p&&p.condition){var f=n,m=p.condition;n=function(t,i){return f(t,i)&&m.call(t,i,e)}}var g=this,v=String.uniqueID(),b=d.listen?function(e,t){!t&&e&&e.target&&(t=e.target),t&&d.listen(g,n,r,e,t,v)}:function(e,i){!i&&e&&e.target&&(i=e.target),i&&t(g,n,r,e,i)};return s||(s={}),s[v]={match:u,fn:h,delegator:b},o[c]=s,a.call(this,e,b,d.capture)},removeEvent:function(e,t,n,r){var o=this.retrieve("$delegates",{}),s=o[e];if(!s)return this;if(r){var a=e,c=s[r].delegator,h=i[e]||{};return e=h.base||a,h.remove&&h.remove(this,r),delete s[r],o[a]=s,l.call(this,e,c)}var d,p;if(n){for(d in s)if(p=s[d],p.match==t&&p.fn==n)return u.removeEvent.call(this,e,t,n,d)}else for(d in s)p=s[d],p.match==t&&u.removeEvent.call(this,e,t,p.fn,d);return this}};[Element,Window,Document].invoke("implement",{addEvent:c(a,u.addEvent),removeEvent:c(l,u.removeEvent)})}(),function(){function e(e,t){return h(e,t).toInt()||0}function t(e){return"border-box"==h(e,"-moz-box-sizing")}function i(t){return e(t,"border-top-width")}function n(t){return e(t,"border-left-width")}function r(e){return/^(?:body|html)$/i.test(e.tagName)}function o(e){var t=e.getDocument();return t.compatMode&&"CSS1Compat"!=t.compatMode?t.body:t.html}var s=document.createElement("div"),a=document.createElement("div");s.style.height="0",s.appendChild(a);var l=a.offsetParent===s;s=a=null;var c=function(e){return"static"!=h(e,"position")||r(e)},u=function(e){return c(e)||/^(?:table|td|th)$/i.test(e.tagName)};Element.implement({scrollTo:function(e,t){return r(this)?this.getWindow().scrollTo(e,t):(this.scrollLeft=e,this.scrollTop=t),this},getSize:function(){return r(this)?this.getWindow().getSize():{x:this.offsetWidth,y:this.offsetHeight}},getScrollSize:function(){return r(this)?this.getWindow().getScrollSize():{x:this.scrollWidth,y:this.scrollHeight}},getScroll:function(){return r(this)?this.getWindow().getScroll():{x:this.scrollLeft,y:this.scrollTop}},getScrolls:function(){for(var e=this.parentNode,t={x:0,y:0};e&&!r(e);)t.x+=e.scrollLeft,t.y+=e.scrollTop,e=e.parentNode;return t},getOffsetParent:l?function(){var e=this;if(r(e)||"fixed"==h(e,"position"))return null;for(var t="static"==h(e,"position")?u:c;e=e.parentNode;)if(t(e))return e;return null}:function(){var e=this;if(r(e)||"fixed"==h(e,"position"))return null;try{return e.offsetParent}c
|