vendor: 9,850 bytes, lines 1-4
1 2; /* Start:/application/js/libs/jquery-1.8.1.min.js*/ 3/*! jQuery [email protected] jquery.com | jquery.org/license */ 4(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d)?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function ba(){return!1}function bb(){return!0}function bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return p.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=p.grep(a,function(a){return a.nodeType===1});if(be.test(b))return p.filter(b,d,!c);b=p.filter(b,d)}return p.grep(a,function(a,d){return p.inArray(a,b)>=0===c})}function bk(a){var b=bl.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function bC(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}function bD(a,b){if(b.nodeType!==1||!p.hasData(a))return;var c,d,e,f=p._data(a),g=p._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d<e;d++)p.event.add(b,c,h[c][d])}g.data&&(g.data=p.extend({},g.data))}function bE(a,b){var c;if(b.nodeType!==1)return;b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase(),c==="object"?(b.parentNode&&(b.outerHTML=a.outerHTML),p.support.html5Clone&&a.innerHTML&&!p.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):c==="input"&&bv.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):c==="option"?b.selected=a.defaultSelected:c==="input"||c==="textarea"?b.defaultValue=a.defaultValue:c==="script"&&b.text!==a.text&&(b.text=a.text),b.removeAttribute(p.expando)}function bF(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bG(a){bv.test(a.type)&&(a.defaultChecked=a.checked)}function bY(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=bW.length;while(e--){b=bW[e]+c;if(b in a)return b}return d}function bZ(a,b){return a=b||a,p.css(a,"display")==="none"||!p.contains(a.ownerDocument,a)}function b$(a,b){var c,d,e=[],f=0,g=a.length;for(;f<g;f++){c=a[f];if(!c.style)continue;e[f]=p._data(c,"olddisplay"),b?(!e[f]&&c.style.display==="none"&&(c.style.display=""),c.style.display===""&&bZ(c)&&(e[f]=p._data(c,"olddisplay",cc(c.nodeName)))):(d=bH(c,"display"),!e[f]&&d!=="none"&&p._data(c,"olddisplay",d))}for(f=0;f<g;f++){c=a[f];if(!c.style)continue;if(!b||c.style.display==="none"||c.style.display==="")c.style.display=b?e[f]||"":"none"}return a}function b_(a,b,c){var d=bP.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function ca(a,b,c,d){var e=c===(d?"border":"content")?4:b==="width"?1:0,f=0;for(;e<4;e+=2)c==="margin"&&(f+=p.css(a,c+bV[e],!0)),d?(c==="content"&&(f-=parseFloat(bH(a,"padding"+bV[e]))||0),c!=="margin"&&(f-=parseFloat(bH(a,"border"+bV[e]+"Width"))||0)):(f+=parseFloat(bH(a,"padding"+bV[e]))||0,c!=="padding"&&(f+=parseFloat(bH(a,"border"+bV[e]+"Width"))||0));return f}function cb(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=!0,f=p.support.boxSizing&&p.css(a,"boxSizing")==="border-box";if(d<=0||d==null){d=bH(a,b);if(d<0||d==null)d=a.style[b];if(bQ.test(d))return d;e=f&&(p.support.boxSizingReliable||d===a.style[b]),d=parseFloat(d)||0}return d+ca(a,b,c||(f?"border":"content"),e)+"px"}function cc(a){if(bS[a])return bS[a];var b=p("<"+a+">").appendTo(e.body),c=b.css("display");b.remove();if(c==="none"||c===""){bI=e.body.appendChild(bI||p.extend(e.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!bJ||!bI.createElement)bJ=(bI.contentWindow||bI.contentDocument).document,bJ.write("<!doctype html><html><body>"),bJ.close();b=bJ.body.appendChild(bJ.createElement(a)),c=bH(b,"display"),e.body.removeChild(bI)}return bS[a]=c,c}function ci(a,b,c,d){var e;if(p.isArray(b))p.each(b,function(b,e){c||ce.test(a)?d(a,e):ci(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&p.type(b)==="object")for(e in b)ci(a+"["+e+"]",b[e],c,d);else d(a,b)}function cz(a){return function(b,c){typeof b!="string"&&(c=b,b="*");var d,e,f,g=b.toLowerCase().split(s),h=0,i=g.length;if(p.isFunction(c))for(;h<i;h++)d=g[h],f=/^\+/.test(d),f&&(d=d.substr(1)||"*"),e=a[d]=a[d]||[],e[f?"unshift":"push"](c)}}function cA(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h,i=a[f],j=0,k=i?i.length:0,l=a===cv;for(;j<k&&(l||!h);j++)h=i[j](c,d,e),typeof h=="string"&&(!l||g[h]?h=b:(c.dataTypes.unshift(h),h=cA(a,c,d,e,h,g)));return(l||!h)&&!g["*"]&&(h=cA(a,c,d,e,"*",g)),h}function cB(a,c){var d,e,f=p.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((f[d]?a:e||(e={}))[d]=c[d]);e&&p.extend(!0,a,e)}function cC(a,c,d){var e,f,g,h,i=a.contents,j=a.dataTypes,k=a.responseFields;for(f in k)f in d&&(c[k[f]]=d[f]);while(j[0]==="*")j.shift(),e===b&&(e=a.mimeType||c.getResponseHeader("content-type"));if(e)for(f in i)if(i[f]&&i[f].test(e)){j.unshift(f);break}if(j[0]in d)g=j[0];else{for(f in d){if(!j[0]||a.converters[f+" "+j[0]]){g=f;break}h||(h=f)}g=g||h}if(g)return g!==j[0]&&j.unshift(g),d[g]}function cD(a,b){var c,d,e,f,g=a.dataTypes.slice(),h=g[0],i={},j=0;a.dataFilter&&(b=a.dataFilter(b,a.dataType));if(g[1])for(c in a.converters)i[c.toLowerCase()]=a.converters[c];for(;e=g[++j];)if(e!=="*"){if(h!=="*"&&h!==e){c=i[h+" "+e]||i["* "+e];if(!c)for(d in i){f=d.split(" ");if(f[1]===e){c=i[h+" "+f[0]]||i["* "+f[0]];if(c){c===!0?c=i[d]:i[d]!==!0&&(e=f[0],g.splice(j--,0,e));break}}}if(c!==!0)if(c&&a["throws"])b=c(b);else try{b=c(b)}catch(k){return{state:"parsererror",error:c?k:"No conversion from "+h+" to "+e}}}h=e}return{state:"success",data:b}}function cL(){try{return new a.XMLHttpRequest}catch(b){}}function cM(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function cU(){return setTimeout(function(){cN=b},0),cN=p.now()}function cV(a,b){p.each(b,function(b,c){var d=(cT[b]||[]).concat(cT["*"]),e=0,f=d.length;for(;e<f;e++)if(d[e].call(a,b,c))return})}function cW(a,b,c){var d,e=0,f=0,g=cS.length,h=p.Deferred().always(function(){delete i.elem}),i=function(){var b=cN||cU(),c=Math.max(0,j.startTime+j.duration-b),d=1-(c/j.duration||0),e=0,f=j.tweens.length;for(;e<f;e++)j.tweens[e].run(d);return h.notifyWith(a,[j,d,c]),d<1&&f?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:p.extend({},b),opts:p.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:cN||cU(),duration:c.duration,tweens:[],createTween:function(b,c,d){var e=p.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(e),e},stop:function(b){var c=0,d=b?j.tweens.length:0;for(;c<d;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;cX(k,j.opts.specialEasing);for(;e<g;e++){d=cS[e].call(j,a,k,j.opts);if(d)return d}return cV(j,k),p.isFunction(j.opts.start)&&j.opts.start.call(a,j),p.fx.timer(p.extend(i,{anim:j,queue:j.opts.queue,elem:a})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function cX(a,b){var c,d,e,f,g;for(c in a){d=p.camelCase(c),e=b[d],f=a[c],p.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=p.cssHooks[d];if(g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}}function cY(a,b,c){var d,e,f,g,h,i,j,k,l=this,m=a.style,n={},o=[],q=a.nodeType&&bZ(a);c.queue||(j=p._queueHooks(a,"fx"),j.unqueued==null&&(j.unqueued=0,k=j.empty.fire,j.empty.fire=function(){j.unqueued||k()}),j.unqueued++,l.always(function(){l.always(function(){j.unqueued--,p.queue(a,"fx").length||j.empty.fire()})})),a.nodeType===1&&("height"in b||"width"in b)&&(c.overflow=[m.overflow,m.overflowX,m.overflowY],p.css(a,"display")==="inline"&&p.css(a,"float")==="none"&&(!p.support.inlineBlockNeedsLayout||cc(a.nodeName)==="inline"?m.display="inline-block":m.zoom=1)),c.overflow&&(m.overflow="hidden",p.support.shrinkWrapBlocks||l.done(function(){m.overflow=c.overflow[0],m.overflowX=c.overflow[1],m.overflowY=c.overflow[2]}));for(d in b){f=b[d];if(cP.exec(f)){delete b[d];if(f===(q?"hide":"show"))continue;o.push(d)}}g=o.length;if(g){h=p._data(a,"fxshow")||p._data(a,"fxshow",{}),q?p(a).show():l.done(function(){p(a).hide()}),l.done(function(){var b;p.removeData(a,"fxshow",!0);for(b in n)p.style(a,b,n[b])});for(d=0;d<g;d++)e=o[d],i=l.createTween(e,q?h[e]:0),n[e]=h[e]||p.style(a,e),e in h||(h[e]=i.start,q&&(i.end=i.start,i.start=e==="width"||e==="height"?1:0))}}function cZ(a,b,c,d,e){return new cZ.prototype.init(a,b,c,d,e)}function c$(a,b){var c,d={height:a},e=0;b=b?1:0;for(;e<4;e+=2-b)c=bV[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function da(a){return p.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}var c,d,e=a.document,f=a.location,g=a.navigator,h=a.jQuery,i=a.$,j=Array.prototype.push,k=Array.prototype.slice,l=Array.prototype.indexOf,m=Object.prototype.toString,n=Object.prototype.hasOwnProperty,o=String.prototype.trim,p=function(a,b){return new p.fn.init(a,b,c)},q=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,r=/\S/,s=/\s+/,t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,u=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,y=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,z=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,A=/^-ms-/,B=/-([\da-z])/gi,C=function(a,b){return(b
vendor: 4,344 bytes, line 4
4+"").toUpperCase()},D=function(){e.addEventListener?(e.removeEventListener("DOMContentLoaded",D,!1),p.ready()):e.readyState==="complete"&&(e.detachEvent("onreadystatechange",D),p.ready())},E={};p.fn=p.prototype={constructor:p,init:function(a,c,d){var f,g,h,i;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?f=[null,a,null]:f=u.exec(a);if(f&&(f[1]||!c)){if(f[1])return c=c instanceof p?c[0]:c,i=c&&c.nodeType?c.ownerDocument||c:e,a=p.parseHTML(f[1],i,!0),v.test(f[1])&&p.isPlainObject(c)&&this.attr.call(a,c,!0),p.merge(this,a);g=e.getElementById(f[2]);if(g&&g.parentNode){if(g.id!==f[2])return d.find(a);this.length=1,this[0]=g}return this.context=e,this.selector=a,this}return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a)}return p.isFunction(a)?d.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),p.makeArray(a,this))},selector:"",jquery:"1.8.1",length:0,size:function(){return this.length},toArray:function(){return k.call(this)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=p.merge(this.constructor(),a);return d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return p.each(this,a,b)},ready:function(a){return p.ready.promise().done(a),this},eq:function(a){return a=+a,a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(k.apply(this,arguments),"slice",k.call(arguments).join(","))},map:function(a){return this.pushStack(p.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:j,sort:[].sort,splice:[].splice},p.fn.init.prototype=p.fn,p.extend=p.fn.extend=function(){var a,c,d,e,f,g,h=arguments[0]||{},i=1,j=arguments.length,k=!1;typeof h=="boolean"&&(k=h,h=arguments[1]||{},i=2),typeof h!="object"&&!p.isFunction(h)&&(h={}),j===i&&(h=this,--i);for(;i<j;i++)if((a=arguments[i])!=null)for(c in a){d=h[c],e=a[c];if(h===e)continue;k&&e&&(p.isPlainObject(e)||(f=p.isArray(e)))?(f?(f=!1,g=d&&p.isArray(d)?d:[]):g=d&&p.isPlainObject(d)?d:{},h[c]=p.extend(k,g,e)):e!==b&&(h[c]=e)}return h},p.extend({noConflict:function(b){return a.$===p&&(a.$=i),b&&a.jQuery===p&&(a.jQuery=h),p},isReady:!1,readyWait:1,holdReady:function(a){a?p.readyWait++:p.ready(!0)},ready:function(a){if(a===!0?--p.readyWait:p.isReady)return;if(!e.body)return setTimeout(p.ready,1);p.isReady=!0;if(a!==!0&&--p.readyWait>0)return;d.resolveWith(e,[p]),p.fn.trigger&&p(e).trigger("ready").off("ready")},isFunction:function(a){return p.type(a)==="function"},isArray:Array.isArray||function(a){return p.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):E[m.call(a)]||"object"},isPlainObject:function(a){if(!a||p.type(a)!=="object"||a.nodeType||p.isWindow(a))return!1;try{if(a.constructor&&!n.call(a,"constructor")&&!n.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||n.call(a,d)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},error:function(a){throw new Error(a)},parseHTML:function(a,b,c){var d;return!a||typeof a!="string"?null:(typeof b=="boolean"&&(c=b,b=0),b=b||e,(d=v.exec(a))?[b.createElement(d[1])]:(d=p.buildFragment([a],b,c?null:[]),p.merge([],(d.cacheable?p.clone(d.fragment):d.fragment).childNodes)))},parseJSON:function(b){if(!b||typeof b!="string")return null;b=p.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(w.test(b.replace(y,"@").replace(z,"]").replace(x,"")))return(new Function("return "+b))();p.error("Invalid JSON: "+b)},parseXML:function(c){var d,e;if(!c||typeof c!="string")return null;try{a.DOMParser?(e=new DOMParser,d=e.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(f){d=b}return(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&p.error("Invalid XML: "+c),d},noop:function(){},globalEval:function(b){b&&r.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)}
vendor: 4,081 bytes, line 4
4,camelCase:function(a){return a.replace(A,"ms-").replace(B,C)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var e,f=0,g=a.length,h=g===b||p.isFunction(a);if(d){if(h){for(e in a)if(c.apply(a[e],d)===!1)break}else for(;f<g;)if(c.apply(a[f++],d)===!1)break}else if(h){for(e in a)if(c.call(a[e],e,a[e])===!1)break}else for(;f<g;)if(c.call(a[f],f,a[f++])===!1)break;return a},trim:o&&!o.call(" ")?function(a){return a==null?"":o.call(a)}:function(a){return a==null?"":a.toString().replace(t,"")},makeArray:function(a,b){var c,d=b||[];return a!=null&&(c=p.type(a),a.length==null||c==="string"||c==="function"||c==="regexp"||p.isWindow(a)?j.call(d,a):p.merge(d,a)),d},inArray:function(a,b,c){var d;if(b){if(l)return l.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=c.length,e=a.length,f=0;if(typeof d=="number")for(;f<d;f++)a[e++]=c[f];else while(c[f]!==b)a[e++]=c[f++];return a.length=e,a},grep:function(a,b,c){var d,e=[],f=0,g=a.length;c=!!c;for(;f<g;f++)d=!!b(a[f],f),c!==d&&e.push(a[f]);return e},map:function(a,c,d){var e,f,g=[],h=0,i=a.length,j=a instanceof p||i!==b&&typeof i=="number"&&(i>0&&a[0]&&a[i-1]||i===0||p.isArray(a));if(j)for(;h<i;h++)e=c(a[h],h,d),e!=null&&(g[g.length]=e);else for(f in a)e=c(a[f],f,d),e!=null&&(g[g.length]=e);return g.concat.apply([],g)},guid:1,proxy:function(a,c){var d,e,f;return typeof c=="string"&&(d=a[c],c=a,a=d),p.isFunction(a)?(e=k.call(arguments,2),f=function(){return a.apply(c,e.concat(k.call(arguments)))},f.guid=a.guid=a.guid||f.guid||p.guid++,f):b},access:function(a,c,d,e,f,g,h){var i,j=d==null,k=0,l=a.length;if(d&&typeof d=="object"){for(k in d)p.access(a,c,k,d[k],1,g,e);f=1}else if(e!==b){i=h===b&&p.isFunction(e),j&&(i?(i=c,c=function(a,b,c){return i.call(p(a),c)}):(c.call(a,e),c=null));if(c)for(;k<l;k++)c(a[k],d,i?e.call(a[k],k,c(a[k],d)):e,h);f=1}return f?a:j?c.call(a):l?c(a[0],d):g},now:function(){return(new Date).getTime()}}),p.ready.promise=function(b){if(!d){d=p.Deferred();if(e.readyState==="complete")setTimeout(p.ready,1);else if(e.addEventListener)e.addEventListener("DOMContentLoaded",D,!1),a.addEventListener("load",p.ready,!1);else{e.attachEvent("onreadystatechange",D),a.attachEvent("onload",p.ready);var c=!1;try{c=a.frameElement==null&&e.documentElement}catch(f){}c&&c.doScroll&&function g(){if(!p.isReady){try{c.doScroll("left")}catch(a){return setTimeout(g,50)}p.ready()}}()}}return d.promise(b)},p.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){E["[object "+b+"]"]=b.toLowerCase()}),c=p(e);var F={};p.Callbacks=function(a){a=typeof a=="string"?F[a]||G(a):p.extend({},a);var c,d,e,f,g,h,i=[],j=!a.once&&[],k=function(b){c=a.memory&&b,d=!0,h=f||0,f=0,g=i.length,e=!0;for(;i&&h<g;h++)if(i[h].apply(b[0],b[1])===!1&&a.stopOnFalse){c=!1;break}e=!1,i&&(j?j.length&&k(j.shift()):c?i=[]:l.disable())},l={add:function(){if(i){var b=i.length;(function d(b){p.each(b,function(b,c){var e=p.type(c);e==="function"&&(!a.unique||!l.has(c))?i.push(c):c&&c.length&&e!=="string"&&d(c)})})(arguments),e?g=i.length:c&&(f=b,k(c))}return this},remove:function(){return i&&p.each(arguments,function(a,b){var c;while((c=p.inArray(b,i,c))>-1)i.splice(c,1),e&&(c<=g&&g--,c<=h&&h--)}),this},has:function(a){return p.inArray(a,i)>-1},empty:function(){return i=[],this},disable:function(){return i=j=c=b,this},disabled:function(){return!i},lock:function(){return j=b,c||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return b=b||[],b=[a,b.slice?b.slice():b],i&&(!d||j)&&(e?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!d}};return l},p.extend({Deferred:function(a){var b=[["resolve","done",p.Callbacks("once memory"),"resolved"],["reject","fail",p.Callbacks("once memory"),"rejected"],["notify","progress",p.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;
vendor: 5,652 bytes, line 4
4return p.Deferred(function(c){p.each(b,function(b,d){var f=d[0],g=a[b];e[d[1]](p.isFunction(g)?function(){var a=g.apply(this,arguments);a&&p.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f+"With"](this===e?c:this,[a])}:c[f])}),a=null}).promise()},promise:function(a){return typeof a=="object"?p.extend(a,d):d}},e={};return d.pipe=d.then,p.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[a^1][2].disable,b[2][2].lock),e[f[0]]=g.fire,e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=k.call(arguments),d=c.length,e=d!==1||a&&p.isFunction(a.promise)?d:0,f=e===1?a:p.Deferred(),g=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?k.call(arguments):d,c===h?f.notifyWith(b,c):--e||f.resolveWith(b,c)}},h,i,j;if(d>1){h=new Array(d),i=new Array(d),j=new Array(d);for(;b<d;b++)c[b]&&p.isFunction(c[b].promise)?c[b].promise().done(g(b,j,c)).fail(f.reject).progress(g(b,i,h)):--e}return e||f.resolveWith(j,c),f.promise()}}),p.support=function(){var b,c,d,f,g,h,i,j,k,l,m,n=e.createElement("div");n.setAttribute("className","t"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",c=n.getElementsByTagName("*"),d=n.getElementsByTagName("a")[0],d.style.cssText="top:1px;float:left;opacity:.5";if(!c||!c.length||!d)return{};f=e.createElement("select"),g=f.appendChild(e.createElement("option")),h=n.getElementsByTagName("input")[0],b={leadingWhitespace:n.firstChild.nodeType===3,tbody:!n.getElementsByTagName("tbody").length,htmlSerialize:!!n.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.5/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:h.value==="on",optSelected:g.selected,getSetAttribute:n.className!=="t",enctype:!!e.createElement("form").enctype,html5Clone:e.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",boxModel:e.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},h.checked=!0,b.noCloneChecked=h.cloneNode(!0).checked,f.disabled=!0,b.optDisabled=!g.disabled;try{delete n.test}catch(o){b.deleteExpando=!1}!n.addEventListener&&n.attachEvent&&n.fireEvent&&(n.attachEvent("onclick",m=function(){b.noCloneEvent=!1}),n.cloneNode(!0).fireEvent("onclick"),n.detachEvent("onclick",m)),h=e.createElement("input"),h.value="t",h.setAttribute("type","radio"),b.radioValue=h.value==="t",h.setAttribute("checked","checked"),h.setAttribute("name","t"),n.appendChild(h),i=e.createDocumentFragment(),i.appendChild(n.lastChild),b.checkClone=i.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=h.checked,i.removeChild(h),i.appendChild(n);if(n.attachEvent)for(k in{submit:!0,change:!0,focusin:!0})j="on"+k,l=j in n,l||(n.setAttribute(j,"return;"),l=typeof n[j]=="function"),b[k+"Bubbles"]=l;return p(function(){var c,d,f,g,h="padding:0;margin:0;border:0;display:block;overflow:hidden;",i=e.getElementsByTagName("body")[0];if(!i)return;c=e.createElement("div"),c.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",i.insertBefore(c,i.firstChild),d=e.createElement("div"),c.appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",f=d.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",l=f[0].offsetHeight===0,f[0].style.display="",f[1].style.display="none",b.reliableHiddenOffsets=l&&f[0].offsetHeight===0,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",b.boxSizing=d.offsetWidth===4,b.doesNotIncludeMarginInBodyOffset=i.offsetTop!==1,a.getComputedStyle&&(b.pixelPosition=(a.getComputedStyle(d,null)||{}).top!=="1%",b.boxSizingReliable=(a.getComputedStyle(d,null)||{width:"4px"}).width==="4px",g=e.createElement("div"),g.style.cssText=d.style.cssText=h,g.style.marginRight=g.style.width="0",d.style.width="1px",d.appendChild(g),b.reliableMarginRight=!parseFloat((a.getComputedStyle(g,null)||{}).marginRight)),typeof d.style.zoom!="undefined"&&(d.innerHTML="",d.style.cssText=h+"width:1px;padding:1px;display:inline;zoom:1",b.inlineBlockNeedsLayout=d.offsetWidth===3,d.style.display="block",d.style.overflow="visible",d.innerHTML="<div></div>",d.firstChild.style.width="5px",b.shrinkWrapBlocks=d.offsetWidth!==3,c.style.zoom=1),i.removeChild(c),c=d=f=g=null}),i.removeChild(n),c=d=f=g=h=i=n=null,b}();var H=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,I=/([A-Z])/g;p.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(p.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?p.cache[a[p.expando]]:a[p.expando],!!a&&!K(a)},data:function(a,c,d,e){if(!p.acceptData(a))return;var f,g,h=p.expando,i=typeof c=="string",j=a.nodeType,k=j?p.cache:a,l=j?a[h]:a[h]&&h;if((!l||!k[l]||!e&&!k[l].data)&&i&&d===b)return;l||(j?a[h]=l=p.deletedIds.pop()||++p.uuid:l=h),k[l]||(k[l]={},j||(k[l].toJSON=p.noop));if(typeof c=="object"||typeof c=="function")e?k[l]=p.extend(k[l],c):k[l].data=p.extend(k[l].data,c);return f=k[l],e||(f.data||(f.data={}),f=f.data),d!==b&&(f[p.camelCase(c)]=d),i?(g=f[c],g==null&&(g=f[p.camelCase(c)])):g=f,g},removeData:function(a,b,c){if(!p.acceptData(a))return;var d,e,f,g=a.nodeType,h=g?p.cache:a,i=g?a[p.expando]:p.expando;if(!h[i])return;if(b){d=c?h[i]:h[i].data;
vendor: 2,583 bytes, line 4
4if(d){p.isArray(b)||(b in d?b=[b]:(b=p.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,f=b.length;e<f;e++)delete d[b[e]];if(!(c?K:p.isEmptyObject)(d))return}}if(!c){delete h[i].data;if(!K(h[i]))return}g?p.cleanData([a],!0):p.support.deleteExpando||h!=h.window?delete h[i]:h[i]=null},_data:function(a,b,c){return p.data(a,b,c,!0)},acceptData:function(a){var b=a.nodeName&&p.noData[a.nodeName.toLowerCase()];return!b||b!==!0&&a.getAttribute("classid")===b}}),p.fn.extend({data:function(a,c){var d,e,f,g,h,i=this[0],j=0,k=null;if(a===b){if(this.length){k=p.data(i);if(i.nodeType===1&&!p._data(i,"parsedAttrs")){f=i.attributes;for(h=f.length;j<h;j++)g=f[j].name,g.indexOf("data-")===0&&(g=p.camelCase(g.substring(5)),J(i,g,k[g]));p._data(i,"parsedAttrs",!0)}}return k}return typeof a=="object"?this.each(function(){p.data(this,a)}):(d=a.split(".",2),d[1]=d[1]?"."+d[1]:"",e=d[1]+"!",p.access(this,function(c){if(c===b)return k=this.triggerHandler("getData"+e,[d[0]]),k===b&&i&&(k=p.data(i,a),k=J(i,a,k)),k===b&&d[1]?this.data(d[0]):k;d[1]=c,this.each(function(){var b=p(this);b.triggerHandler("setData"+e,d),p.data(this,a,c),b.triggerHandler("changeData"+e,d)})},null,c,arguments.length>1,null,!1))},removeData:function(a){return this.each(function(){p.removeData(this,a)})}}),p.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=p._data(a,b),c&&(!d||p.isArray(c)?d=p._data(a,b,p.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=p.queue(a,b),d=c.length,e=c.shift(),f=p._queueHooks(a,b),g=function(){p.dequeue(a,b)};e==="inprogress"&&(e=c.shift(),d--),e&&(b==="fx"&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return p._data(a,c)||p._data(a,c,{empty:p.Callbacks("once memory").add(function(){p.removeData(a,b+"queue",!0),p.removeData(a,c,!0)})})}}),p.fn.extend({queue:function(a,c){var d=2;return typeof a!="string"&&(c=a,a="fx",d--),arguments.length<d?p.queue(this[0],a):c===b?this:this.each(function(){var b=p.queue(this,a,c);p._queueHooks(this,a),a==="fx"&&b[0]!=="inprogress"&&p.dequeue(this,a)})},dequeue:function(a){return this.each(function(){p.dequeue(this,a)})},delay:function(a,b){return a=p.fx?p.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){var d,e=1,f=p.Deferred(),g=this,h=this.length,i=function(){--e||f.resolveWith(g,[g])};typeof a!="string"&&(c=a,a=b),a=a||"fx";while(h--)d=p._data(g[h],a+"queueHooks"),d
vendor: 10,668 bytes, line 4
4&&d.empty&&(e++,d.empty.add(i));return i(),f.promise(c)}});var L,M,N,O=/[\t\r\n]/g,P=/\r/g,Q=/^(?:button|input)$/i,R=/^(?:button|input|object|select|textarea)$/i,S=/^a(?:rea|)$/i,T=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,U=p.support.getSetAttribute;p.fn.extend({attr:function(a,b){return p.access(this,p.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){p.removeAttr(this,a)})},prop:function(a,b){return p.access(this,p.prop,a,b,arguments.length>1)},removeProp:function(a){return a=p.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,f,g,h;if(p.isFunction(a))return this.each(function(b){p(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(s);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{f=" "+e.className+" ";for(g=0,h=b.length;g<h;g++)~f.indexOf(" "+b[g]+" ")||(f+=b[g]+" ");e.className=p.trim(f)}}}return this},removeClass:function(a){var c,d,e,f,g,h,i;if(p.isFunction(a))return this.each(function(b){p(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(s);for(h=0,i=this.length;h<i;h++){e=this[h];if(e.nodeType===1&&e.className){d=(" "+e.className+" ").replace(O," ");for(f=0,g=c.length;f<g;f++)while(d.indexOf(" "+c[f]+" ")>-1)d=d.replace(" "+c[f]+" "," ");e.className=a?p.trim(d):""}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";return p.isFunction(a)?this.each(function(c){p(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string"){var e,f=0,g=p(this),h=b,i=a.split(s);while(e=i[f++])h=d?h:!g.hasClass(e),g[h?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&p._data(this,"__className__",this.className),this.className=this.className||a===!1?"":p._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(O," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,f=this[0];if(!arguments.length){if(f)return c=p.valHooks[f.type]||p.valHooks[f.nodeName.toLowerCase()],c&&"get"in c&&(d=c.get(f,"value"))!==b?d:(d=f.value,typeof d=="string"?d.replace(P,""):d==null?"":d);return}return e=p.isFunction(a),this.each(function(d){var f,g=p(this);if(this.nodeType!==1)return;e?f=a.call(this,d,g.val()):f=a,f==null?f="":typeof f=="number"?f+="":p.isArray(f)&&(f=p.map(f,function(a){return a==null?"":a+""})),c=p.valHooks[this.type]||p.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,f,"value")===b)this.value=f})}}),p.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,f=a.selectedIndex,g=[],h=a.options,i=a.type==="select-one";if(f<0)return null;c=i?f:0,d=i?f+1:h.length;for(;c<d;c++){e=h[c];if(e.selected&&(p.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!p.nodeName(e.parentNode,"optgroup"))){b=p(e).val();if(i)return b;g.push(b)}}return i&&!g.length&&h.length?p(h[f]).val():g},set:function(a,b){var c=p.makeArray(b);return p(a).find("option").each(function(){this.selected=p.inArray(p(this).val(),c)>=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{},attr:function(a,c,d,e){var f,g,h,i=a.nodeType;if(!a||i===3||i===8||i===2)return;if(e&&p.isFunction(p.fn[c]))return p(a)[c](d);if(typeof a.getAttribute=="undefined")return p.prop(a,c,d);h=i!==1||!p.isXMLDoc(a),h&&(c=c.toLowerCase(),g=p.attrHooks[c]||(T.test(c)?M:L));if(d!==b){if(d===null){p.removeAttr(a,c);return}return g&&"set"in g&&h&&(f=g.set(a,d,c))!==b?f:(a.setAttribute(c,""+d),d)}return g&&"get"in g&&h&&(f=g.get(a,c))!==null?f:(f=a.getAttribute(c),f===null?b:f)},removeAttr:function(a,b){var c,d,e,f,g=0;if(b&&a.nodeType===1){d=b.split(s);for(;g<d.length;g++)e=d[g],e&&(c=p.propFix[e]||e,f=T.test(e),f||p.attr(a,e,""),a.removeAttribute(U?e:c),f&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(Q.test(a.nodeName)&&a.parentNode)p.error("type property can't be changed");else if(!p.support.radioValue&&b==="radio"&&p.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}},value:{get:function(a,b){return L&&p.nodeName(a,"button")?L.get(a,b):b in a?a.value:null},set:function(a,b,c){if(L&&p.nodeName(a,"button"))return L.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,f,g,h=a.nodeType;if(!a||h===3||h===8||h===2)return;return g=h!==1||!p.isXMLDoc(a),g&&(c=p.propFix[c]||c,f=p.propHooks[c]),d!==b?f&&"set"in f&&(e=f.set(a,d,c))!==b?e:a[c]=d:f&&"get"in f&&(e=f.get(a,c))!==null?e:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):R.test(a.nodeName)||S.test(a.nodeName)&&a.href?0:b}}}}),M={get:function(a,c){var d,e=p.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;return b===!1?p.removeAttr(a,c):(d=p.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase())),c}},U||(N={name:!0,id:!0,coords:!0},L=p.valHooks.button={get:function(a,c){var d;return d=a.getAttributeNode(c),d&&(N[c]?d.value!=="":d.specified)?d.value:b},set:function(a,b,c){var d=a.getAttributeNode(c);return d||(d=e.createAttribute(c),a.setAttributeNode(d)),d.value=b+""}},p.each(["width","height"],function(a,b){p.attrHooks[b]=p.extend(p.attrHooks[b],{set:function(a,c){if(c==="")return a.setAttribute(b,"auto"),c}})}),p.attrHooks.contenteditable={get:L.get,set:function(a,b,c){b===""&&(b="false"),L.set(a,b,c)}}),p.support.hrefNormalized||p.each(["href","src","width","height"],function(a,c){p.attrHooks[c]=p.extend(p.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),p.support.style||(p.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),p.support.optSelected||(p.propHooks.selected=p.extend(p.propHooks.selected,{get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}})),p.support.enctype||(p.propFix.enctype="encoding"),p.support.checkOn||p.each(["radio","checkbox"],function(){p.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),p.each(["radio","checkbox"],function(){p.valHooks[this]=p.extend(p.valHooks[this],{set:function(a,b){if(p.isArray(b))return a.checked=p.inArray(p(a).val(),b)>=0}})});var V=/^(?:textarea|input|select)$/i,W=/^([^\.]*|)(?:\.(.+)|)$/,X=/(?:^|\s)hover(\.\S+|)\b/,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=function(a){return p.event.special.hover?a:a.replace(X,"mouseenter$1 mouseleave$1")};p.event={add:function(a,c,d,e,f){var g,h,i,j,k,l,m,n,o,q,r;if(a.nodeType===3||a.nodeType===8||!c||!d||!(g=p._data(a)))return;d.handler&&(o=d,d=o.handler,f=o.selector),d.guid||(d.guid=p.guid++),i=g.events,i||(g.events=i={}),h=g.handle,h||(g.handle=h=function(a){return typeof p!="undefined"&&(!a||p.event.triggered!==a.type)?p.event.dispatch.apply(h.elem,arguments):b},h.elem=a),c=p.trim(_(c)).split(" ");for(j=0;j<c.length;j++){k=W.exec(c[j])||[],l=k[1],m=(k[2]||"").split(".").sort(),r=p.event.special[l]||{},l=(f?r.delegateType:r.bindType)||l,r=p.event.special[l]||{},n=p.extend({type:l,origType:k[1],data:e,handler:d,guid:d.guid,selector:f,namespace:m.join(".")},o),q=i[l];if(!q){q=i[l]=[],q.delegateCount=0;if(!r.setup||r.setup.call(a,e,m,h)===!1)a.addEventListener?a.addEventListener(l,h,!1):a.attachEvent&&a.attachEvent("on"+l,h)}r.add&&(r.add.call(a,n),n.handler.guid||(n.handler.guid=d.guid)),f?q.splice(q.delegateCount++,0,n):q.push(n),p.event.global[l]=!0}a=null},global:{},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,q,r=p.hasData(a)&&p._data(a);if(!r||!(m=r.events))return;b=p.trim(_(b||"")).split(" ");for(f=0;f<b.length;f++){g=W.exec(b[f])||[],h=i=g[1],j=g[2];if(!h){for(h in m)p.event.remove(a,h+b[f],c,d,!0);continue}n=p.event.special[h]||{},h=(d?n.delegateType:n.bindType)||h,o=m[h]||[],k=o.length,j=j?new RegExp("(^|\\.)"+j.split(".").sort().join("\\.(?:.*\\.|)")+"(\\.|$)"):null;for(l=0;l<o.length;l++)q=o[l],(e||i===q.origType)&&(!c||c.guid===q.guid)&&(!j||j.test(q.namespace))&&(!d||d===q.selector||d==="**"&&q.selector)&&(o.splice(l--,1),q.selector&&o.delegateCount--,n.remove&&n.remove.call(a,q));o.length===0&&k!==o.length&&((!n.teardown||n.teardown.call(a,j,r.handle)===!1)&&p.removeEvent(a,h,r.handle),delete m[h])}p.isEmptyObject(m)&&(delete r.handle,p.removeData(a,"events",!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,f,g){if(!f||f.nodeType!==3&&f.nodeType!==8){var h,i,j,k,l,m,n,o,q,r,s=c.type||c,t=[];if($.test(s+p.event.triggered))return;s.indexOf("!")>=0&&(s=s.slice(0,-1),i=!0),s.indexOf(".")>=0&&(t=s.split("."),s=t.shift(),t.sort());if((!f||p.event.customEvent[s])&&!p.event.global[s])return;c=typeof c=="object"?c[p.expando]?c:new p.Event(s,c):new p.Event(s),c.type=s,c.isTrigger=!0,c.exclusive=i,c.namespace=t.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+t.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,m=s.indexOf(":")<0?"on"+s:"";if(!f){h=p.cache;for(j in h)h[j].events&&h[j].events[s]&&p.event.trigger(c,d,h[j].handle.elem,!0);return}c.result=b,c.target||(c.target=f),d=d!=null?p.makeArray(d):[],d.unshift(c),n=p.event.special[s]||{};if(n.trigger&&n.trigger.apply(f,d)===!1)return;q=[[f,n.bindType||s]];if(!g&&!n.noBubble&&!p.isWindow(f)){r=n.delegateType||s,k=$.test(r+s)?f:f.parentNode;for(l=f;k;k=k.parentNode)q.push([k,r]),l=k;l===(f.ownerDocument||e)&&q.push([l.defaultView||l.parentWindow||a,r])}for(j=0;j<q.length&&!c.isPropagationStopped();j++)k=q[j][0],c.type=q[j][1],o=(p._data(k,"events")||{})[c.type]&&p._data(k,"handle"),o&&o.apply(k,d),o=m&&k[m],o&&p.acceptData(k)&&o.apply(k,d)===!1&&c.preventDefault();return c.type=s,!g&&!c.isDefaultPrevented()&&(!n._default||n._default.apply(f.ownerDocument,d)===!1)&&(s!=="click"||!p.nodeName(f,"a"))&&p.acceptData(f)&&m&&f[s]&&(s!=="focus"&&s!=="blur"||c.target.offsetWidth!==0)&&!p.isWindow(f)&&(l=f[m],l&&(f[m]=null),p.event.triggered=s,f[s](),p.event.triggered=b,l&&(f[m]=l)),c.result}return},dispatch:function(c){c=p.event.fix(c||a.event);var d,e,f,g,h,i,j,k,l,m,n
vendor: 377 bytes, line 4
4=(p._data(this,"events")||{})[c.type]||[],o=n.delegateCount,q=[].slice.call(arguments),r=!c.exclusive&&!c.namespace,s=p.event.special[c.type]||{},t=[];q[0]=c,c.delegateTarget=this;if(s.preDispatch&&s.preDispatch.call(this,c)===!1)return;if(o&&(!c.button||c.type!=="click"))for(f=c.target;f!=this;f=f.parentNode||this)if(f.disabled!==!0||c.type!=="click"){h={},j=[];for(d=0;d<o;
vendor: 3,412 bytes, line 4
4d++)k=n[d],l=k.selector,h[l]===b&&(h[l]=p(l,this).index(f)>=0),h[l]&&j.push(k);j.length&&t.push({elem:f,matches:j})}n.length>o&&t.push({elem:this,matches:n.slice(o)});for(d=0;d<t.length&&!c.isPropagationStopped();d++){i=t[d],c.currentTarget=i.elem;for(e=0;e<i.matches.length&&!c.isImmediatePropagationStopped();e++){k=i.matches[e];if(r||!c.namespace&&!k.namespace||c.namespace_re&&c.namespace_re.test(k.namespace))c.data=k.data,c.handleObj=k,g=((p.event.special[k.origType]||{}).handle||k.handler).apply(i.elem,q),g!==b&&(c.result=g,g===!1&&(c.preventDefault(),c.stopPropagation()))}}return s.postDispatch&&s.postDispatch.call(this,c),c.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,c){var d,f,g,h=c.button,i=c.fromElement;return a.pageX==null&&c.clientX!=null&&(d=a.target.ownerDocument||e,f=d.documentElement,g=d.body,a.pageX=c.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=c.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?c.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0),a}},fix:function(a){if(a[p.expando])return a;var b,c,d=a,f=p.event.fixHooks[a.type]||{},g=f.props?this.props.concat(f.props):this.props;a=p.Event(d);for(b=g.length;b;)c=g[--b],a[c]=d[c];return a.target||(a.target=d.srcElement||e),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,f.filter?f.filter(a,d):a},special:{load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){p.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=p.extend(new p.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?p.event.trigger(e,null,b):p.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},p.event.handle=p.event.dispatch,p.removeEvent=e.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]=="undefined"&&(a[d]=null),a.detachEvent(d,c))},p.Event=function(a,b){if(this instanceof p.Event)a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?bb:ba):this.type=a,b&&p.extend(this,b),this.timeStamp=a&&a.timeStamp||p.now(),this[p.expando]=!0;else return new p.Event(a,b)},p.Event.prototype={preventDefault:function(){this.isDefaultPrevented=bb;var a=this.originalEvent;if(!a)return;a.preventDefault?a.preventDefault():a.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=bb;var a=this.originalEvent;if(!a)return;a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=bb,this.stopPropagation()},isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba}
vendor: 4,234 bytes, line 4
4,p.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){p.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj,g=f.selector;if(!e||e!==d&&!p.contains(d,e))a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b;return c}}}),p.support.submitBubbles||(p.event.special.submit={setup:function(){if(p.nodeName(this,"form"))return!1;p.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=p.nodeName(c,"input")||p.nodeName(c,"button")?c.form:b;d&&!p._data(d,"_submit_attached")&&(p.event.add(d,"submit._submit",function(a){a._submit_bubble=!0}),p._data(d,"_submit_attached",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&p.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(p.nodeName(this,"form"))return!1;p.event.remove(this,"._submit")}}),p.support.changeBubbles||(p.event.special.change={setup:function(){if(V.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")p.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),p.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),p.event.simulate("change",this,a,!0)});return!1}p.event.add(this,"beforeactivate._change",function(a){var b=a.target;V.test(b.nodeName)&&!p._data(b,"_change_attached")&&(p.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&p.event.simulate("change",this.parentNode,a,!0)}),p._data(b,"_change_attached",!0))})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){return p.event.remove(this,"._change"),!V.test(this.nodeName)}}),p.support.focusinBubbles||p.each({focus:"focusin",blur:"focusout"},function(a,b){var c=0,d=function(a){p.event.simulate(b,a.target,p.event.fix(a),!0)};p.event.special[b]={setup:function(){c++===0&&e.addEventListener(a,d,!0)},teardown:function(){--c===0&&e.removeEventListener(a,d,!0)}}}),p.fn.extend({on:function(a,c,d,e,f){var g,h;if(typeof a=="object"){typeof c!="string"&&(d=d||c,c=b);for(h in a)this.on(h,c,d,a[h],f);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=ba;else if(!e)return this;return f===1&&(g=e,e=function(a){return p().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=p.guid++)),this.each(function(){p.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,c,d){var e,f;if(a&&a.preventDefault&&a.handleObj)return e=a.handleObj,p(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler),this;if(typeof a=="object"){for(f in a)this.off(f,c,a[f]);return this}if(c===!1||typeof c=="function")d=c,c=b;return d===!1&&(d=ba),this.each(function(){p.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){return p(this.context).on(a,this.selector,b,c),this},die:function(a,b){return p(this.context).off(a,this.selector||"**",b),this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a||"**",c)},trigger:function(a,b){return this.each(function(){p.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return p.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||p.guid++,d=0,e=function(c){var e=(p._data(this,"lastToggle"+a.guid)||0)%d;return p._data(this,"lastToggle"+a.guid,e+1),c.preventDefault(),b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),p.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){p.fn[b]=function(a,c){return c==null&&(c=a,a=null),arguments.length>0?this.on(b,null,a,c):this.trigger(b)}
4,Y.test(b)&&(p.event.fixHooks[b]=p.event.keyHooks),Z.test(b)&&(p.event.fixHooks[b]=p.event.mouseHooks)}),function(a,b){function $(a,b,c,d){c=c||[],b=b||q;var e,f,g,j,k=b.nodeType;if(k!==1&&k!==9)return[];if(!a||typeof a!="string")return c;g=h(b);if(!g&&!d)if(e=L.exec(a))if(j=e[1]){if(k===9){f=b.getElementById(j);if(!f||!f.parentNode)return c;if(f.id===j)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(j))&&i(b,f)&&f.id===j)return c.push(f),c}else{if(e[2])return u.apply(c,t.call(b.getElementsByTagName(a),0)),c;if((j=e[3])&&X&&b.getElementsByClassName)return u.apply(c,t.call(b.getElementsByClassName(j),0)),c}return bk(a,b,c,d,g)}function _(a){return function(b){var c=b.nodeName.toLowerCase();return c==="input"&&b.type===a}}function ba(a){return function(b){var c=b.nodeName.toLowerCase();return(c==="input"||c==="button")&&b.type===a}}function bb(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}function bc(a,b,c,d){var e,g,h,i,j,k,l,m,n,p,r=!c&&b!==q,s=(r?"<s>":"")+a.replace(H,"$1<s>"),u=y[o][s];if(u)return d?0:t.call(u,0);j=a,k=[],m=0,n=f.preFilter,p=f.filter;while(j){if(!e||(g=I.exec(j)))g&&(j=j.slice(g[0].length),h.selector=l),k.push(h=[]),l="",r&&(j=" "+j);e=!1;if(g=J.exec(j))l+=g[0],j=j.slice(g[0].length),e=h.push({part:g.pop().replace(H," "),string:g[0],captures:g});for(i in p)(g=S[i].exec(j))&&(!n[i]||(g=n[i](g,b,c)))&&(l+=g[0],j=j.slice(g[0].length),e=h.push({part:i,string:g.shift(),captures:g}));if(!e)break}return l&&(h.selector=l),d?j.length:j?$.error(a):t.call(y(s,k),0)}function bd(a,b,e,f){var g=b.dir,h=s++;return a||(a=function(a){return a===e}),b.first?function(b){while(b=b[g])if(b.nodeType===1)return a(b)&&b}:f?function(b){while(b=b[g])if(b.nodeType===1&&a(b))return b}:function(b){var e,f=h+"."+c,i=f+"."+d;while(b=b[g])if(b.nodeType===1){if((e=b[o])===i)return b.sizset;if(typeof e=="string"&&e.indexOf(f)===0){if(b.sizset)return b}else{b[o]=i;if(a(b))return b.sizset=!0,b;b.sizset=!1}}}}function be(a,b){return a?function(c){var d=b(c);return d&&a(d===!0?c:d)}:b}function bf(a,b,c){var d,e,g=0;for(;d=a[g];g++)f.relative[d.part]?e=bd(e,f.relative[d.part],b,c):e=be(e,f.filter[d.part].apply(null,d.captures.concat(b,c)));return e}function bg(a){return function(b){var c,d=0;for(;c=a[d];d++)if(c(b))return!0;return!1}}function bh(a,b,c,d){var e=0,f=b.length;for(;e<f;e++)$(a,b[e],c,d)}function bi(a,b,c,d,e,g){var h,i=f.setFilters[b.toLowerCase()];return i||$.error(b),(a||!(h=e))&&bh(a||"*",d,h=[],e),h.length>0?i(h,c,g):[]}function bj(a,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q,r,s=0,t=a.length,v=S.POS,w=new RegExp("^"+v.source+"(?!"+A+")","i"),x=function(){var a=1,c=arguments.length-2;for(;a<c;a++)arguments[a]===b&&(n[a]=b)};for(;s<t;s++){f=a[s],g="",m=e;for(h=0,i=f.length;h<i;h++){j=f[h],k=j.string;if(j.part==="PSEUDO"){v.exec(""),l=0;while(n=v.exec(k)){o=!0,p=v.lastIndex=n.index+n[0].length;if(p>l){g+=k.slice(l,n.index),l=p,q=[c],J.test(g)&&(m&&(q=m),m=e);if(r=O.test(g))g=g.slice(0,-5).replace(J,"$&*"),l++;n.length>1&&n[0].replace(w,x),m=bi(g,n[1],n[2],q,m,r)}g=""}}o||(g+=k),o=!1}g?J.test(g)?bh(g,m||[c],d,e):$(g,c,d,e?e.concat(m):m):u.apply(d,m)}return t===1?d:$.uniqueSort(d)}function bk(a,b,e,g,h){a=a.replace(H,"$1");var i,k,l,m,n,o,p,q,r,s,v=bc(a,b,h),w=b.nodeType;if(S.POS.test(a))return bj(v,b,e,g);if(g)i=t.call(g,0);
4else if(v.length===1){if((o=t.call(v[0],0)).length>2&&(p=o[0]).part==="ID"&&w===9&&!h&&f.relative[o[1].part]){b=f.find.ID(p.captures[0].replace(R,""),b,h)[0];if(!b)return e;a=a.slice(o.shift().string.length)}r=(v=N.exec(o[0].string))&&!v.index&&b.parentNode||b,q="";for(n=o.length-1;n>=0;n--){p=o[n],s=p.part,q=p.string+q;if(f.relative[s])break;if(f.order.test(s)){i=f.find[s](p.captures[0].replace(R,""),r,h);if(i==null)continue;a=a.slice(0,a.length-q.length)+q.replace(S[s],""),a||u.apply(e,t.call(i,0));break}}}if(a){k=j(a,b,h),c=k.dirruns++,i==null&&(i=f.find.TAG("*",N.test(a)&&b.parentNode||b));for(n=0;m=i[n];n++)d=k.runs++,k(m)&&e.push(m)}return e}var c,d,e,f,g,h,i,j,k,l,m=!0,n="undefined",o=("sizcache"+Math.random()).replace(".",""),q=a.document,r=q.documentElement,s=0,t=[].slice,u=[].push,v=function(a,b){return a[o]=b||!0,a},w=function(){var a={},b=[];return v(function(c,d){return b.push(c)>f.cacheLength&&delete a[b.shift()],a[c]=d},a)},x=w(),y=w(),z=w(),A="[\\x20\\t\\r\\n\\f]",B="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",C=B.replace("w","w#"),D="([*^$|!~]?=)",E="\\["+A+"*("+B+")"+A+"*(?:"+D+A+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+C+")|)|)"+A+"*\\]",F=":("+B+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+E+")|[^:]|\\\\.)*|.*))\\)|)",G=":(nth|eq|gt|lt|first|last|even|odd)(?:\\(((?:-\\d)?\\d*)\\)|)(?=[^-]|$)",H=new RegExp("^"+A+"+|((?:^|[^\\\\])(?:\\\\.)*)"+A+"+$","g"),I=new RegExp("^"+A+"*,"+A+"*"),J=new RegExp("^"+A+"*([\\x20\\t\\r\\n\\f>+~])"+A+"*"),K=new RegExp(F),L=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,M=/^:not/,N=/[\x20\t\r\n\f]*[+~]/,O=/:not\($/,P=/h\d/i,Q=/input|select|textarea|button/i,R=/\\(?!\\)/g,S={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),NAME:new RegExp("^\\[name=['\"]?("+B+")['\"]?\\]"),TAG:new RegExp("^("+B.replace("w","w*")+")"),ATTR:new RegExp("^"+E),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|nth|last|first)-child(?:\\("+A+"*(even|odd|(([+-]|)(\\d*)n|)"+A+"*(?:([+-]|)"+A+"*(\\d+)|))"+A+"*\\)|)","i"),POS:new RegExp(G,"ig"),needsContext:new RegExp("^"+A+"*[>+~]|"+G,"i")},T=function(a){var b=q.createElement("div");try{return a(b)}catch(c){return!1}finally{b=null}},U=T(function(a){return a.appendChild(q.createComment("")),!a.getElementsByTagName("*").length}),V=T(function(a){return a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!==n&&a.firstChild.getAttribute("href")==="#"}),W=T(function(a){a.innerHTML="<select></select>";var b=typeof a.lastChild.getAttribute("multiple");return b!=="boolean"&&b!=="string"}),X=T(function(a){return a.innerHTML="<div class='hidden e'></div><div class='hidden'></div>",!a.getElementsByClassName||!a.getElementsByClassName("e").length?!1:(a.lastChild.className="e",a.getElementsByClassName("e").length===2)}),Y=T(function(a){a.id=o+0,a.innerHTML="<a name='"+o+"'></a><div name='"+o+"'></div>",r.insertBefore(a,r.firstChild);var b=q.getElementsByName&&q.getElementsByName(o).length===2+q.getElementsByName(o+0).length;return e=!q.getElementById(o),r.removeChild(a),b});try{t.call(r.childNodes,0)[0].nodeType}catch(Z){t=function(a){var b,c=[];for(;b=this[a];a++)c.push(b);return c}}$.matches=function(a,b){return $(a,null,null,b)},$.matchesSelector=function(a,b){return $(b,null,null,[a]).length>0},g=$.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(e===1||e===9||e===11){if(typeof a.textContent=="string")return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=g(a)}else if(e===3||e===4)return a.nodeValue}else for(;b=a[d];d++)c+=g(b);return c},h=$.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?b.nodeName!=="HTML":!1},i=$.contains=r.contains?function(a,b){var c=a.nodeType===9?a.documentElement:a,d=b&&b.parentNode;return a===d||!!(d&&d.nodeType===1&&c.contains&&c.contains(d))}:r.compareDocumentPosition?function(a,b){return b&&!!(a.compareDocumentPosition(b)&16)}:function(a,b){while(b=b.parentNode)if(b===a)return!0;return!1},$.attr=function(a,b){var c,d=h(a);return d||(b=b.toLowerCase()),f.attrHandle[b]?f.attrHandle[b](a):W||d?a.getAttribute(b):(c=a.getAttributeNode(b),c?typeof a[b]=="boolean"?a[b]?b:null:c.specified?c.value:null:null)},f=$.selectors={cacheLength:50,createPseudo:v,match:S,order:new RegExp("ID|TAG"+(Y?"|NAME":"")+(X?"|CLASS":"")),attrHandle:V?{}:{href:function(a){return a.getAttribute("href",2)},type:function(a){return a.getAttribute("type")}},find:{ID:e?function(a,b,c){if(typeof b.getElementById!==n&&!c){var d=b.getElementById(a);return d&&d.parentNode?[d]:[]}}:function(a,c,d){if(typeof c.getElementById!==n&&!d){var e=c.getElementById(a);return e?e.id===a||typeof e.getAttributeNode!==n&&e.getAttributeNode("id").value===a?[e]:b:[]}},TAG:U?function(a,b){if(typeof b.getElementsByTagName!==n)return b.getElementsByTagName(a)}:function(a,b){var c=b.getElementsByTagName(a);if(a==="*"){var d,e=[],f=0;for(;d=c[f];f++)d.nodeType===1&&e.push(d);return e}return c},NAME:function(a,b){if(typeof b.getElementsByName!==n)return b.getElementsByName(name)},CLASS:function(a,b,c){if(typeof b.getElementsByClassName!==n&&!c)return b.getElementsByClassName(a)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(R,""),a[3]=(a[4]||a[5]||"").replace(R,""),a[2]==="~="&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),a[1]==="nth"?(a[2]||$.error(a[0]),a[3]=+(a[3]?a[4]+(a[5]||1):2*(a[2]==="even"||a[2]==="odd")),a[4]=+(a[6]+a[7]||a[2]==="odd")):a[2]&&$.error(a[0]),a},PSEUDO:function(a,b,c){var d,e;if(S.CHILD.test(a[0]))return null;if(a[3])a[2]=a[3];else if(d=a[4])K.test(d)&&(e=bc(d,b,c,!0))&&(e=d.indexOf(")",d.length-e)-d.length)&&(d=d.slice(0,e),a[0]=a[0].slice(0,e)),a[2]=d;return a.slice(0,3)}},filter:{ID:e?function(a){return a=a.replace(R,""),function(b){return b.getAttribute("id")===a}}:function(a){return a=a.replace(R,""),function(b){var c=typeof b.getAttributeNode!==n&&b.getAttributeNode("id");return c&&c.value===a}},TAG:function(a){return a==="*"?function(){return!0}:(a=a.replace(R,"").toLowerCase(),function(b){return b.nodeName&&b.nodeName.toLowerCase()===a})},CLASS:function(a){var b=x[o][a];return b||(b=x(a,new RegExp("(^|"+A+")"+a+"("+A+"|$)"))),function(a){return b.test(a.className||typeof a.getAttribute!==n&&a.getAttribute("class")||"")}},ATTR:function(a,b,c){return b?function(d){var e=$.attr(d,a),f=e+"";if(e==null)return b==="!=";switch(b){case"=":return f===c;case"!=":return f!==c;case"^=":return c&&f.indexOf(c)===0;case"*=":return c&&f.indexOf(c)>-1;case"$=":return c&&f.substr(f.length-c.length)===c;case"~=":return(" "+f+" ").indexOf(c)>-1;case"|=":return f===c||f.substr(0,c.length+1)===c+"-"}}:function(b){return $.attr(b,a)!=null}},CHILD:function(a,b,c,d){if(a==="nth"){var e=s++;return function(a){var b,f,g=0,h=a;if(c===1&&d===0)return!0;b=a.parentNode;if(b&&(b[o]!==e||!a.sizset)){for(h=b.firstChild;h;h=h.nextSibling)if(h.nodeType===1){h.sizset=++g;if(h===a)break}b[o]=e}return f=a.sizset-d,c===0?f===0:f%c===0&&f/c>=0}}return function(b){var c=b;switch(a){case"only":case"first":while(c=c.previousSibling)if(c.nodeType===1)return!1;if(a==="first")return!0;c=b;case"last":while(c=c.nextSibling)if(c.nodeType===1)return!1;return!0}}},PSEUDO:function(a,b,c,d){var e,g=f.pseudos[a]||f.pseudos[a.toLowerCase()];return g||$.error("unsupported pseudo: "+a),g[o]?g(b,c,d):g.length>1?(e=[a,a,"",b],function(a){return g(a,0,e)}):g}},pseudos:{not:v(function(a,b,c){var d=j(a.replace(H,"$1"),b,c);return function(a){return!d(a)}}),enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&!!a.checked||b==="option"&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!f.pseudos.empty(a)},empty:function(a){var b;a=a.firstChild;while(a){if(a.nodeName>"@"||(b=a.nodeType)===3||b===4)return!1;a=a.nextSibling}return!0},contains:v(function(a){return function(b){return(b.textContent||b.innerText||g(b)).indexOf(a)>-1}}),has:v(function(a){return function(b){return $(a,b).length>0}}),header:function(a){return P.test(a.nodeName)},text:function(a){var b,c;return a.nodeName.toLowerCase()==="input"&&(b=a.type)==="text"&&((c=a.getAttribute("type"))==null||c.toLowerCase()===b)},radio:_("radio"),checkbox:_("checkbox"),file:_("file"),password:_("password"),image:_("image"),submit:ba("submit"),reset:ba("reset"),button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&a.type==="button"||b==="button"},input:function(a){return Q.test(a.nodeName)},focus:function(a){var b=a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())&&(!!a.type||!!a.href)},active:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b,c){return c?a.slice(1):[a[0]]},last:function(a,b,c){var d=a.pop();return c?a:[d]},even:function(a,b,c){var d=[],e=c?1:0,f=a.length;for(;e<f;e=e+2)d.push(a[e]);return d},odd:function(a,b,c){var d=[],e=c?0:1,f=a.length;for(;e<f;e=e+2)d.push(a[e]);return d},lt:function(a,b,c){return c?a.slice(+b):a.slice(0,+b)},gt:function(a,b,c){return c?a.slice(0,+b+1):a.slice(+b+1)},eq:function(a,b,c){var d=a.splice(+b,1);return c?a:d}}},k=r.compareDocumentPosition?function(a,b){return a===b?(l=!0,0):(!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition:a.compareDocumentPosition(b)&4)?-1:1}:function(a,b){if(a===b)return l=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,h=b.parentNode,i=g;if(g===h)return bb(a,b);if(!g)return-1;if(!h)return 1;while(i)e.unshift(i),i=i.parentNode;i=h;while(i)f.unshift(i),i=i.parentNode;c=e.length,d=f.length;for(var j=0;j<c&&j<d;j++)if(e[j]!==f[j])return bb(e[j],f[j]);return j===c?bb(a,f[j],-1):bb(e[j],b,1)},[0,0].sort(k),m=!l,$.uniqueSort=function(a){var b,c=1;l=m,a.sort(k);if(l)for(;b=a[c];c++)b===a[c-1]&&a.splice(c--,1);return a},$.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},j=$.compile=function(a,b,c){var d,e,f,g=z[o][a];if(g&&g.context===b)return g;d=bc(a,b,c);for(e=0,f=d.length;e<f;e++)d[e]=bf(d[e],b,c);return g=z(a,bg(d)),g.context=b,g.runs=g.dirruns=0,g},q.querySelectorAll&&function(){var a,b=bk,c=/'|\\/g,d=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,e=[],f=[":active"],g=r.matchesSelector||r.mozMatchesSelector||r.webkitMatchesSelector||r.oMatchesSelector||r.msMatchesSelector;T(function(a){a.innerHTML="<select><option selected=''></option></select>",a.querySelectorAll("[selected]").length||e.push("\\["+A+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),a.querySelectorAll(":checked").length||e.push(":checked")}),T(function(a){a.innerHTML="<p test=''></p>",a.querySelectorAll("[test^='']").length&&e.push("[*^$]="+A+"*(?:\"\"|'')"),a.innerHTML="<input type='hidden'/>",a.querySelectorAll(":enabled").length||e.push(":enabled",":disabled")}),e=e.length&&new RegExp(e.join("|")),bk=function(a,d,f,g,h){if(!g&&!h&&(!e||!e.test(a)))if(d.nodeType===9)try{return u.apply(f,t.call(d.querySelectorAll(a),0)),f}catch(i){}else if(d.nodeType===1&&d.nodeName.toLowerCase()!=="object"){var j,k,l,m=d.getAttribute("id"),n=m||o,p=N.test(a)&&d.parentNode||d;m?n=n.replace(c,"\\$&"):d.setAttribute("id",n),j=bc(a,d,h),n="[id='"+n+"']";for(k=0,l=j.length;k<l;k++)j[k]=n+j[k].selector;try{return u.apply(f,t.call(p.querySelectorAll(j.join(",")),0)),f}catch(i){}finally{m||d.removeAttribute("id")}}return b(a,d,f,g,h)},g&&(T(function(b){a=g.call(b,"div");try{g.call(b,"[test!='']:sizzle"),f.push(S.PSEUDO.source,S.POS.source,"!=")}catch(c){}}),f=new RegExp(f.join("|")),$.matchesSelector=function(b,c){c=c.replace(d,"='$1']");
4if(!h(b)&&!f.test(c)&&(!e||!e.test(c)))try{var i=g.call(b,c);if(i||a||b.document&&b.document.nodeType!==11)return i}catch(j){}return $(c,null,null,[b]).length>0})}(),f.setFilters.nth=f.setFilters.eq,f.filters=f.pseudos,$.attr=p.attr,p.find=$,p.expr=$.selectors,p.expr[":"]=p.expr.pseudos,p.unique=$.uniqueSort,p.text=$.getText,p.isXMLDoc=$.isXML,p.contains=$
vendor: 17,609 bytes, line 4
4.contains}(a);var bc=/Until$/,bd=/^(?:parents|prev(?:Until|All))/,be=/^.[^:#\[\.,]*$/,bf=p.expr.match.needsContext,bg={children:!0,contents:!0,next:!0,prev:!0};p.fn.extend({find:function(a){var b,c,d,e,f,g,h=this;if(typeof a!="string")return p(a).filter(function(){for(b=0,c=h.length;b<c;b++)if(p.contains(h[b],this))return!0});g=this.pushStack("","find",a);for(b=0,c=this.length;b<c;b++){d=g.length,p.find(a,this[b],g);if(b>0)for(e=d;e<g.length;e++)for(f=0;f<d;f++)if(g[f]===g[e]){g.splice(e--,1);break}}return g},has:function(a){var b,c=p(a,this),d=c.length;return this.filter(function(){for(b=0;b<d;b++)if(p.contains(this,c[b]))return!0})},not:function(a){return this.pushStack(bj(this,a,!1),"not",a)},filter:function(a){return this.pushStack(bj(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?bf.test(a)?p(a,this.context).index(this[0])>=0:p.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c,d=0,e=this.length,f=[],g=bf.test(a)||typeof a!="string"?p(a,b||this.context):0;for(;d<e;d++){c=this[d];while(c&&c.ownerDocument&&c!==b&&c.nodeType!==11){if(g?g.index(c)>-1:p.find.matchesSelector(c,a)){f.push(c);break}c=c.parentNode}}return f=f.length>1?p.unique(f):f,this.pushStack(f,"closest",a)},index:function(a){return a?typeof a=="string"?p.inArray(this[0],p(a)):p.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var c=typeof a=="string"?p(a,b):p.makeArray(a&&a.nodeType?[a]:a),d=p.merge(this.get(),c);return this.pushStack(bh(c[0])||bh(d[0])?d:p.unique(d))},addBack:function(a){return this.add(a==null?this.prevObject:this.prevObject.filter(a))}}),p.fn.andSelf=p.fn.addBack,p.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return p.dir(a,"parentNode")},parentsUntil:function(a,b,c){return p.dir(a,"parentNode",c)},next:function(a){return bi(a,"nextSibling")},prev:function(a){return bi(a,"previousSibling")},nextAll:function(a){return p.dir(a,"nextSibling")},prevAll:function(a){return p.dir(a,"previousSibling")},nextUntil:function(a,b,c){return p.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return p.dir(a,"previousSibling",c)},siblings:function(a){return p.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return p.sibling(a.firstChild)},contents:function(a){return p.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:p.merge([],a.childNodes)}},function(a,b){p.fn[a]=function(c,d){var e=p.map(this,b,c);return bc.test(a)||(d=c),d&&typeof d=="string"&&(e=p.filter(d,e)),e=this.length>1&&!bg[a]?p.unique(e):e,this.length>1&&bd.test(a)&&(e=e.reverse()),this.pushStack(e,a,k.call(arguments).join(","))}}),p.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),b.length===1?p.find.matchesSelector(b[0],a)?[b[0]]:[]:p.find.matches(a,b)},dir:function(a,c,d){var e=[],f=a[c];while(f&&f.nodeType!==9&&(d===b||f.nodeType!==1||!p(f).is(d)))f.nodeType===1&&e.push(f),f=f[c];return e},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var bl="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",bm=/ jQuery\d+="(?:null|\d+)"/g,bn=/^\s+/,bo=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bp=/<([\w:]+)/,bq=/<tbody/i,br=/<|&#?\w+;/,bs=/<(?:script|style|link)/i,bt=/<(?:script|object|embed|option|style)/i,bu=new RegExp("<(?:"+bl+")[\\s/>]","i"),bv=/^(?:checkbox|radio)$/,bw=/checked\s*(?:[^=]|=\s*.checked.)/i,bx=/\/(java|ecma)script/i,by=/^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,bz={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bA=bk(e),bB=bA.appendChild(e.createElement("div"));bz.optgroup=bz.option,bz.tbody=bz.tfoot=bz.colgroup=bz.caption=bz.thead,bz.th=bz.td,p.support.htmlSerialize||(bz._default=[1,"X<div>","</div>"]),p.fn.extend({text:function(a){return p.access(this,function(a){return a===b?p.text(this):this.empty().append((this[0]&&this[0].ownerDocument||e).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(p.isFunction(a))return this.each(function(b){p(this).wrapAll(a.call(this,b))});if(this[0]){var b=p(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return p.isFunction(a)?this.each(function(b){p(this).wrapInner(a.call(this,b))}):this.each(function(){var b=p(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=p.isFunction(a);return this.each(function(c){p(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){p.nodeName(this,"body")||p(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(a,this.firstChild)})},before:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(a,this),"before",this.selector)}},after:function(){if(!bh(this[0]))return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=p.clean(arguments);return this.pushStack(p.merge(this,a),"after",this.selector)}},remove:function(a,b){var c,d=0;for(;(c=this[d])!=null;d++)if(!a||p.filter(a,[c]).length)!b&&c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),p.cleanData([c])),c.parentNode&&c.parentNode.removeChild(c);return this},empty:function(){var a,b=0;for(;(a=this[b])!=null;b++){a.nodeType===1&&p.cleanData(a.getElementsByTagName("*"));while(a.firstChild)a.removeChild(a.firstChild)}return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return p.clone(this,a,b)})},html:function(a){return p.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(bm,""):b;if(typeof a=="string"&&!bs.test(a)&&(p.support.htmlSerialize||!bu.test(a))&&(p.support.leadingWhitespace||!bn.test(a))&&!bz[(bp.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(bo,"<$1></$2>");try{for(;d<e;d++)c=this[d]||{},c.nodeType===1&&(p.cleanData(c.getElementsByTagName("*")),c.innerHTML=a);c=0}catch(f){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){return bh(this[0])?this.length?this.pushStack(p(p.isFunction(a)?a():a),"replaceWith",a):this:p.isFunction(a)?this.each(function(b){var c=p(this),d=c.html();c.replaceWith(a.call(this,b,d))}):(typeof a!="string"&&(a=p(a).detach()),this.each(function(){var b=this.nextSibling,c=this.parentNode;p(this).remove(),b?p(b).before(a):p(c).append(a)}))},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){a=[].concat.apply([],a);var e,f,g,h,i=0,j=a[0],k=[],l=this.length;if(!p.support.checkClone&&l>1&&typeof j=="string"&&bw.test(j))return this.each(function(){p(this).domManip(a,c,d)});if(p.isFunction(j))return this.each(function(e){var f=p(this);a[0]=j.call(this,e,c?f.html():b),f.domManip(a,c,d)});if(this[0]){e=p.buildFragment(a,this,k),g=e.fragment,f=g.firstChild,g.childNodes.length===1&&(g=f);if(f){c=c&&p.nodeName(f,"tr");for(h=e.cacheable||l-1;i<l;i++)d.call(c&&p.nodeName(this[i],"table")?bC(this[i],"tbody"):this[i],i===h?g:p.clone(g,!0,!0))}g=f=null,k.length&&p.each(k,function(a,b){b.src?p.ajax?p.ajax({url:b.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):p.error("no ajax"):p.globalEval((b.text||b.textContent||b.innerHTML||"").replace(by,"")),b.parentNode&&b.parentNode.removeChild(b)})}return this}}),p.buildFragment=function(a,c,d){var f,g,h,i=a[0];return c=c||e,c=!c.nodeType&&c[0]||c,c=c.ownerDocument||c,a.length===1&&typeof i=="string"&&i.length<512&&c===e&&i.charAt(0)==="<"&&!bt.test(i)&&(p.support.checkClone||!bw.test(i))&&(p.support.html5Clone||!bu.test(i))&&(g=!0,f=p.fragments[i],h=f!==b),f||(f=c.createDocumentFragment(),p.clean(a,c,f,d),g&&(p.fragments[i]=h&&f)),{fragment:f,cacheable:g}},p.fragments={},p.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){p.fn[a]=function(c){var d,e=0,f=[],g=p(c),h=g.length,i=this.length===1&&this[0].parentNode;if((i==null||i&&i.nodeType===11&&i.childNodes.length===1)&&h===1)return g[b](this[0]),this;for(;e<h;e++)d=(e>0?this.clone(!0):this).get(),p(g[e])[b](d),f=f.concat(d);return this.pushStack(f,a,g.selector)}}),p.extend({clone:function(a,b,c){var d,e,f,g;p.support.html5Clone||p.isXMLDoc(a)||!bu.test("<"+a.nodeName+">")?g=a.cloneNode(!0):(bB.innerHTML=a.outerHTML,bB.removeChild(g=bB.firstChild));if((!p.support.noCloneEvent||!p.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!p.isXMLDoc(a)){bE(a,g),d=bF(a),e=bF(g);for(f=0;d[f];++f)e[f]&&bE(d[f],e[f])}if(b){bD(a,g);if(c){d=bF(a),e=bF(g);for(f=0;d[f];++f)bD(d[f],e[f])}}return d=e=null,g},clean:function(a,b,c,d){var f,g,h,i,j,k,l,m,n,o,q,r,s=b===e&&bA,t=[];if(!b||typeof b.createDocumentFragment=="undefined")b=e;for(f=0;(h=a[f])!=null;f++){typeof h=="number"&&(h+="");if(!h)continue;if(typeof h=="string")if(!br.test(h))h=b.createTextNode(h);else{s=s||bk(b),l=b.createElement("div"),s.appendChild(l),h=h.replace(bo,"<$1></$2>"),i=(bp.exec(h)||["",""])[1].toLowerCase(),j=bz[i]||bz._default,k=j[0],l.innerHTML=j[1]+h+j[2];while(k--)l=l.lastChild;if(!p.support.tbody){m=bq.test(h),n=i==="table"&&!m?l.firstChild&&l.firstChild.childNodes:j[1]==="<table>"&&!m?l.childNodes:[];for(g=n.length-1;g>=0;--g)p.nodeName(n[g],"tbody")&&!n[g].childNodes.length&&n[g].parentNode.removeChild(n[g])}!p.support.leadingWhitespace&&bn.test(h)&&l.insertBefore(b.createTextNode(bn.exec(h)[0]),l.firstChild),h=l.childNodes,l.parentNode.removeChild(l)}h.nodeType?t.push(h):p.merge(t,h)}l&&(h=l=s=null);if(!p.support.appendChecked)for(f=0;(h=t[f])!=null;f++)p.nodeName(h,"input")?bG(h):typeof h.getElementsByTagName!="undefined"&&p.grep(h.getElementsByTagName("input"),bG);if(c){q=function(a){if(!a.type||bx.test(a.type))return d?d.push(a.parentNode?a.parentNode.removeChild(a):a):c.appendChild(a)};for(f=0;(h=t[f])!=null;f++)if(!p.nodeName(h,"script")||!q(h))c.appendChild(h),typeof h.getElementsByTagName!="undefined"&&(r=p.grep(p.merge([],h.getElementsByTagName("script")),q),t.splice.apply(t,[f+1,0].concat(r)),f+=r.length)}return t},cleanData:function(a,b){var c,d,e,f,g=0,h=p.expando,i=p.cache,j=p.support.deleteExpando,k=p.event.special;for(;(e=a[g])!=null;g++)if(b||p.acceptData(e)){d=e[h],c=d&&i[d];if(c){if(c.events)for(f in c.events)k[f]?p.event.remove(e,f):p.removeEvent(e,f,c.handle);i[d]&&(delete i[d],j?delete e[h]:e.removeAttribute?e.removeAttribute(h):e[h]=null,p.deletedIds.push(d))}}}}),function(){var a,b;p.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a=p.uaMatch(g.userAgent),b={},a.browser&&(b[a.browser]=!0,b.version=a.version),b.chrome?b.webkit=!0:b.webkit&&(b.safari=!0),p.browser=b,p.sub=function(){function a(b,c){return new a.fn.init(b,c)}p.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function c(c,d){return d&&d instanceof p&&!(d instanceof a)&&(d=a(d)),p.fn.init.call(this,c,d,b)},a.fn.init.prototype=a.fn;var b=a(e);return a}}();var bH,bI,bJ,bK=/alpha\([^)]*\)/i,bL=/opacity=([^)]*)/,bM=/^(top|right|bottom|left)$/,bN=/^(none|table(?!-c[ea]).+)/,bO=/^margin/,bP=new RegExp("^("+q+")(.*)$","i"),bQ=new RegExp("^("+q+")(?!px)[a-z%]+$","i"),bR=new RegExp("^([-+])=("+q+")","i"),bS={},bT={position:"absolute",visibility:"hidden",display:"block"},bU={letterSpacing:0,fontWeight:400},bV=["Top","Right","Bottom","Left"],bW=["Webkit","O","Moz","ms"],bX=p.fn.toggle;p.fn.extend({css:function(a,c){return p.access(this,function(a,c,d){return d!==b?p.style(a,c,d):p.css(a,c)},a,c,arguments.length>1)},show:function(){return b$(this,!0)},hide:function(){return b$(this)},toggle:function(a,b){var c=typeof a=="boolean";return p.isFunction(a)&&p.isFunction(b)?bX.apply(this,arguments):this.each(function(){(c?a:bZ(this))?p(this).show():p(this).hide()})}}),p.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bH(a,"opacity");return c===""?"1":c}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":p.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var f,g,h,i=p.camelCase(c),j=a.style;c=p.cssProps[i]||(p.cssProps[i]=bY(j,i)),h=p.cssHooks[c]||p.cssHooks[i];if(d===b)return h&&"get"in h&&(f=h.get(a,!1,e))!==b?f:j[c];g=typeof d,g==="string"&&(f=bR.exec(d))&&(d=(f[1]+1)*f[2]+parseFloat(p.css(a,c)),g="number");if(d==null||g==="number"&&isNaN(d))return;g==="number"&&!p.cssNumber[i]&&(d+="px");if(!h||!("set"in h)||(d=h.set(a,d,e))!==b)try{j[c]=d}catch(k){}},css:function(a,c,d,e){var f,g,h,i=p.camelCase(c);return c=p.cssProps[i]||(p.cssProps[i]=bY(a.style,i)),h=p.cssHooks[c]||p.cssHooks[i],h&&"get"in h&&(f=h.get(a,!0,e)),f===b&&(f=bH(a,c)),f==="normal"&&c in bU&&(f=bU[c]),d||e!==b?(g=parseFloat(f),d||p.isNumeric(g)?g||0:f):f},swap:function(a,b,c){var d,e,f={};for(e in b)f[e]=a.style[e],a.style[e]=b[e];d=c.call(a);for(e in b)a.style[e]=f[e];return d}}),a.getComputedStyle?bH=function(b,c){var d,e,f,g,h=a.getComputedStyle(b,null),i=b.style;return h&&(d=h[c],d===""&&!p.contains(b.ownerDocument,b)&&(d=p.style(b,c)),bQ.test(d)&&bO.test(c)&&(e=i.width,f=i.minWidth,g=i.maxWidth,i.minWidth=i.maxWidth=i.width=d,d=h.width,i.width=e,i.minWidth=f,i.maxWidth=g)),d}:e.documentElement.currentStyle&&(bH=function(a,b){var c,d,e=a.currentStyle&&a.currentStyle[b],f=a.style;return e==null&&f&&f[b]&&(e=f[b]),bQ.test(e)&&!bM.test(b)&&(c=f.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":e,e=f.pixelLeft+"px",f.left=c,d&&(a.runtimeStyle.left=d)),e===""?"auto":e}),p.each(["height","width"],function(a,b){p.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth===0&&bN.test(bH(a,"display"))?p.swap(a,bT,function(){return cb(a,b,d)}):cb(a,b,d)},set:function(a,c,d){return b_(a,c,d?ca(a,b,d,p.support.boxSizing&&p.css(a,"boxSizing")==="border-box"):0)}}}),p.support.opacity||(p.cssHooks.opacity={get:function(a,b){return bL.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=p.isNumeric(b)?"alpha(opacity="+b*100+")":"",f=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&p.trim(f.replace(bK,""))===""&&c.removeAttribute){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bK.test(f)?f.replace(bK,e):f+" "+e}}),p(function(){p.support.reliableMarginRight||(p.cssHooks.marginRight={get:function(a,b){return p.swap(a,{display:"inline-block"},function(){if(b)return bH(a,"marginRight")})}}),!p.support.pixelPosition&&p.fn.position&&p.each(["top","left"],function(a,b){p.cssHooks[b]={get:function(a,c){if(c){var d=bH(a,b);return bQ.test(d)?p(a).position()[b]+"px":d}}}})}),p.expr&&p.expr.filters&&(p.expr.filters.hidden=function(a){return a.offsetWidth===0&&a.offsetHeight===0||!p.support.reliableHiddenOffsets&&(a.style&&a.style.display||bH(a,"display"))==="none"},p.expr.filters.visible=function(a){return!p.expr.filters.hidden(a)}),p.each({margin:"",padding:"",border:"Width"},function(a,b){p.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bV[d]+b]=e[d]||e[d-2]||e[0];return f}},bO.test(a)||(p.cssHooks[a+b].set=b_)});var cd=/%20/g,ce=/\[\]$/,cf=/\r?\n/g,cg=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ch=/^(?:select|textarea)/i;p.fn.extend({serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ch.test(this.nodeName)||cg.test(this.type))}).map(function(a,b){var c=p(this).val();return c==null?null:p.isArray(c)?p.map(c,function(a,c){return{name:b.name,value:a.replace(cf,"\r\n")}}):{name:b.name,value:c.replace(cf,"\r\n")}}).get()}}),p.param=function(a,c){var d,e=[],f=function(a,b){b=p.isFunction(b)?b():b==null?"":b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=p.ajaxSettings&&p.ajaxSettings.traditional);if(p.isArray(a)||a.jquery&&!p.isPlainObject(a))p.each(a,function(){f(this.name,this.value)});else for(d in a)ci(d,a[d],c,f);return e.join("&").replace(cd,"+")};var cj,ck,cl=/#.*$/,cm=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,cn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,co=/^(?:GET|HEAD)$/,cp=/^\/\//,cq=/\?/,cr=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,cs=/([?&])_=[^&]*/,ct=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,cu=p.fn.load,cv={},cw={},cx=["*/"]+["*"];try{c
vendor: 12,444 bytes, line 4
4j=f.href}catch(cy){cj=e.createElement("a"),cj.href="",cj=cj.href}ck=ct.exec(cj.toLowerCase())||[],p.fn.load=function(a,c,d){if(typeof a!="string"&&cu)return cu.apply(this,arguments);if(!this.length)return this;var e,f,g,h=this,i=a.indexOf(" ");return i>=0&&(e=a.slice(i,a.length),a=a.slice(0,i)),p.isFunction(c)?(d=c,c=b):c&&typeof c=="object"&&(f="POST"),p.ajax({url:a,type:f,dataType:"html",data:c,complete:function(a,b){d&&h.each(d,g||[a.responseText,b,a])}}).done(function(a){g=arguments,h.html(e?p("<div>").append(a.replace(cr,"")).find(e):a)}),this},p.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){p.fn[b]=function(a){return this.on(b,a)}}),p.each(["get","post"],function(a,c){p[c]=function(a,d,e,f){return p.isFunction(d)&&(f=f||e,e=d,d=b),p.ajax({type:c,url:a,data:d,success:e,dataType:f})}}),p.extend({getScript:function(a,c){return p.get(a,b,c,"script")},getJSON:function(a,b,c){return p.get(a,b,c,"json")},ajaxSetup:function(a,b){return b?cB(a,p.ajaxSettings):(b=a,a=p.ajaxSettings),cB(a,b),a},ajaxSettings:{url:cj,isLocal:cn.test(ck[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":cx},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":p.parseJSON,"text xml":p.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:cz(cv),ajaxTransport:cz(cw),ajax:function(a,c){function y(a,c,f,i){var k,s,t,u,w,y=c;if(v===2)return;v=2,h&&clearTimeout(h),g=b,e=i||"",x.readyState=a>0?4:0,f&&(u=cC(l,x,f));if(a>=200&&a<300||a===304)l.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(p.lastModified[d]=w),w=x.getResponseHeader("Etag"),w&&(p.etag[d]=w)),a===304?(y="notmodified",k=!0):(k=cD(l,u),y=k.state,s=k.data,t=k.error,k=!t);else{t=y;if(!y||a)y="error",a<0&&(a=0)}x.status=a,x.statusText=""+(c||y),k?o.resolveWith(m,[s,y,x]):o.rejectWith(m,[x,y,t]),x.statusCode(r),r=b,j&&n.trigger("ajax"+(k?"Success":"Error"),[x,l,k?s:t]),q.fireWith(m,[x,y]),j&&(n.trigger("ajaxComplete",[x,l]),--p.active||p.event.trigger("ajaxStop"))}typeof a=="object"&&(c=a,a=b),c=c||{};var d,e,f,g,h,i,j,k,l=p.ajaxSetup({},c),m=l.context||l,n=m!==l&&(m.nodeType||m instanceof p)?p(m):p.event,o=p.Deferred(),q=p.Callbacks("once memory"),r=l.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,setRequestHeader:function(a,b){if(!v){var c=a.toLowerCase();a=u[c]=u[c]||a,t[a]=b}return this},getAllResponseHeaders:function(){return v===2?e:null},getResponseHeader:function(a){var c;if(v===2){if(!f){f={};while(c=cm.exec(e))f[c[1].toLowerCase()]=c[2]}c=f[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return v||(l.mimeType=a),this},abort:function(a){return a=a||w,g&&g.abort(a),y(0,a),this}};o.promise(x),x.success=x.done,x.error=x.fail,x.complete=q.add,x.statusCode=function(a){if(a){var b;if(v<2)for(b in a)r[b]=[r[b],a[b]];else b=a[x.status],x.always(b)}return this},l.url=((a||l.url)+"").replace(cl,"").replace(cp,ck[1]+"//"),l.dataTypes=p.trim(l.dataType||"*").toLowerCase().split(s),l.crossDomain==null&&(i=ct.exec(l.url.toLowerCase()),l.crossDomain=!(!i||i[1]==ck[1]&&i[2]==ck[2]&&(i[3]||(i[1]==="http:"?80:443))==(ck[3]||(ck[1]==="http:"?80:443)))),l.data&&l.processData&&typeof l.data!="string"&&(l.data=p.param(l.data,l.traditional)),cA(cv,l,c,x);if(v===2)return x;j=l.global,l.type=l.type.toUpperCase(),l.hasContent=!co.test(l.type),j&&p.active++===0&&p.event.trigger("ajaxStart");if(!l.hasContent){l.data&&(l.url+=(cq.test(l.url)?"&":"?")+l.data,delete l.data),d=l.url;if(l.cache===!1){var z=p.now(),A=l.url.replace(cs,"$1_="+z);l.url=A+(A===l.url?(cq.test(l.url)?"&":"?")+"_="+z:"")}}(l.data&&l.hasContent&&l.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",l.contentType),l.ifModified&&(d=d||l.url,p.lastModified[d]&&x.setRequestHeader("If-Modified-Since",p.lastModified[d]),p.etag[d]&&x.setRequestHeader("If-None-Match",p.etag[d])),x.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+cx+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)x.setRequestHeader(k,l.headers[k]);if(!l.beforeSend||l.beforeSend.call(m,x,l)!==!1&&v!==2){w="abort";for(k in{success:1,error:1,complete:1})x[k](l[k]);g=cA(cw,l,c,x);if(!g)y(-1,"No Transport");else{x.readyState=1,j&&n.trigger("ajaxSend",[x,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){x.abort("timeout")},l.timeout));try{v=1,g.send(t,y)}catch(B){if(v<2)y(-1,B);else throw B}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var cE=[],cF=/\?/,cG=/(=)\?(?=&|$)|\?\?/,cH=p.now();p.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=cE.pop()||p.expando+"_"+cH++;return this[a]=!0,a}}),p.ajaxPrefilter("json jsonp",function(c,d,e){var f,g,h,i=c.data,j=c.url,k=c.jsonp!==!1,l=k&&cG.test(j),m=k&&!l&&typeof i=="string"&&!(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&cG.test(i);if(c.dataTypes[0]==="jsonp"||l||m)return f=c.jsonpCallback=p.isFunction(c.jsonpCallback)?c.jsonpCallback():c.jsonpCallback,g=a[f],l?c.url=j.replace(cG,"$1"+f):m?c.data=i.replace(cG,"$1"+f):k&&(c.url+=(cF.test(j)?"&":"?")+c.jsonp+"="+f),c.converters["script json"]=function(){return h||p.error(f+" was not called"),h[0]},c.dataTypes[0]="json",a[f]=function(){h=arguments},e.always(function(){a[f]=g,c[f]&&(c.jsonpCallback=d.jsonpCallback,cE.push(f)),h&&p.isFunction(g)&&g(h[0]),h=g=b}),"script"}),p.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return p.globalEval(a),a}}}),p.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),p.ajaxTransport("script",function(a){if(a.crossDomain){var c,d=e.head||e.getElementsByTagName("head")[0]||e.documentElement;return{send:function(f,g){c=e.createElement("script"),c.async="async",a.scriptCharset&&(c.charset=a.scriptCharset),c.src=a.url,c.onload=c.onreadystatechange=function(a,e){if(e||!c.readyState||/loaded|complete/.test(c.readyState))c.onload=c.onreadystatechange=null,d&&c.parentNode&&d.removeChild(c),c=b,e||g(200,"success")},d.insertBefore(c,d.firstChild)},abort:function(){c&&c.onload(0,1)}}}});var cI,cJ=a.ActiveXObject?function(){for(var a in cI)cI[a](0,1)}:!1,cK=0;p.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&cL()||cM()}:cL,function(a){p.extend(p.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(p.ajaxSettings.xhr()),p.support.ajax&&p.ajaxTransport(function(c){if(!c.crossDomain||p.support.cors){var d;return{send:function(e,f){var g,h,i=c.xhr();c.username?i.open(c.type,c.url,c.async,c.username,c.password):i.open(c.type,c.url,c.async);if(c.xhrFields)for(h in c.xhrFields)i[h]=c.xhrFields[h];c.mimeType&&i.overrideMimeType&&i.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(h in e)i.setRequestHeader(h,e[h])}catch(j){}i.send(c.hasContent&&c.data||null),d=function(a,e){var h,j,k,l,m;try{if(d&&(e||i.readyState===4)){d=b,g&&(i.onreadystatechange=p.noop,cJ&&delete cI[g]);if(e)i.readyState!==4&&i.abort();else{h=i.status,k=i.getAllResponseHeaders(),l={},m=i.responseXML,m&&m.documentElement&&(l.xml=m);try{l.text=i.responseText}catch(a){}try{j=i.statusText}catch(n){j=""}!h&&c.isLocal&&!c.crossDomain?h=l.text?200:404:h===1223&&(h=204)}}}catch(o){e||f(-1,o)}l&&f(h,j,l,k)},c.async?i.readyState===4?setTimeout(d,0):(g=++cK,cJ&&(cI||(cI={},p(a).unload(cJ)),cI[g]=d),i.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var cN,cO,cP=/^(?:toggle|show|hide)$/,cQ=new RegExp("^(?:([-+])=|)("+q+")([a-z%]*)$","i"),cR=/queueHooks$/,cS=[cY],cT={"*":[function(a,b){var c,d,e,f=this.createTween(a,b),g=cQ.exec(b),h=f.cur(),i=+h||0,j=1;if(g){c=+g[2],d=g[3]||(p.cssNumber[a]?"":"px");if(d!=="px"&&i){i=p.css(f.elem,a,!0)||c||1;do e=j=j||".5",i=i/j,p.style(f.elem,a,i+d),j=f.cur()/h;while(j!==1&&j!==e)}f.unit=d,f.start=i,f.end=g[1]?i+(g[1]+1)*c:c}return f}]};p.Animation=p.extend(cW,{tweener:function(a,b){p.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");var c,d=0,e=a.length;for(;d<e;d++)c=a[d],cT[c]=cT[c]||[],cT[c].unshift(b)},prefilter:function(a,b){b?cS.unshift(a):cS.push(a)}}),p.Tween=cZ,cZ.prototype={constructor:cZ,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(p.cssNumber[c]?"":"px")},cur:function(){var a=cZ.propHooks[this.prop];return a&&a.get?a.get(this):cZ.propHooks._default.get(this)},run:function(a){var b,c=cZ.propHooks[this.prop];return this.options.duration?this.pos=b=p.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):cZ.propHooks._default.set(this),this}},cZ.prototype.init.prototype=cZ.prototype,cZ.propHooks={_default:{get:function(a){var b;return a.elem[a.prop]==null||!!a.elem.style&&a.elem.style[a.prop]!=null?(b=p.css(a.elem,a.prop,!1,""),!b||b==="auto"?0:b):a.elem[a.prop]},set:function(a){p.fx.step[a.prop]?p.fx.step[a.prop](a):a.elem.style&&(a.elem.style[p.cssProps[a.prop]]!=null||p.cssHooks[a.prop])?p.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},cZ.propHooks.scrollTop=cZ.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},p.each(["toggle","show","hide"],function(a,b){var c=p.fn[b];p.fn[b]=function(d,e,f){return d==null||typeof d=="boolean"||!a&&p.isFunction(d)&&p.isFunction(e)?c.apply(this,arguments):this.animate(c$(b,!0),d,e,f)}}),p.fn.extend({fadeTo:function(a,b,c,d){return this.filter(bZ).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=p.isEmptyObject(a),f=p.speed(b,c,d),g=function(){var b=cW(this,p.extend({},a),f);e&&b.stop(!0)};return e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,c,d){var e=function(a){var b=a.stop;delete a.stop,b(d)};return typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,c=a!=null&&a+"queueHooks",f=p.timers,g=p._data(this);if(c)g[c]&&g[c].stop&&e(g[c]);else for(c in g)g[c]&&g[c].stop&&cR.test(c)&&e(g[c]);for(c=f.length;c--;)f[c].elem===this&&(a==null||f[c].queue===a)&&(f[c].anim.stop(d),b=!1,f.splice(c,1));(b||!d)&&p.dequeue(this,a)})}}),p.each({slideDown:c$("show"),slideUp:c$("hide"),slideToggle:c$("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){p.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),p.speed=function(a,b,c){var d=a&&typeof a=="object"?p.extend({},a):{complete:c||!c&&b||p.isFunction(a)&&a,duration:a,easing:c&&b||b&&!p.isFunction(b)&&b};d.duration=p.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in p.fx.speeds?p.fx.speeds[d.duration]:p.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";return d.old=d.complete,d.complete=function(){p.isFunction(d.old)&&d.old.call(this),d.queue&&p.dequeue(this,d.queue)},d},p.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},p.timers=[],p.fx=cZ.prototype.init,p.fx.tick=function(){var a,b=p.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||p.fx.stop()},p.fx.timer=function(a){a()&&p.timers.push(a)&&!cO&&(cO=setInterval(p.fx.tick,p.fx.interval))},p.fx.interval=13,p.fx.stop=function(){clearInterval(cO),cO=null},p.fx.speeds={slow:600,fast:200,_default:400},p.fx.step={},p.expr&&p.expr.filters&&(p.expr.filters.animated=function(a){return p.grep(p.timers,function(b){return a===b.elem}).length});var c_=/^(?:body|html)$/i;p.fn.offset=function(a){if(arguments.length)return a===b?this:this.each(function(b){p.offset.setOffset(this,a,b)});var c,d,e,f,g,h,i,j,k,l,m=this[0],n=m&&m.ownerDocument;if(!n)return;return(e=n.body)===m?p.offset.bodyOffset(m):(d=n.documentElement,p.contains(d,m)?(c=m.getBoundingClientRect(),f=da(n),g=d.clientTop||e.clientTop||0,h=d.clientLeft||e.clientLeft||0,i=f.pageYOffset||d.scrollTop,j=f.pageXOffset||d.scrollLeft,k=c.top+i-g,l=c.left+j-h,{top:k,left:l}):{top:0,left:0})},p.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;
4return p.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(p.css(a,"marginTop"))||0,c+=parseFloat(p.css(a,"marginLeft"))||0),{top:b,left:c}},setOffset:function(a,b,c){var d=p.css(a,"position");d==="static"&&(a.style.position="relative");var e=p(a),f=e.offset(),g=p.css(a,"top"),h=p.css(a,"left"),i=(d==="absolute"||d==="fixed")&&p.inArray("auto",[g,h])>-1,j={},k={},l,m;i?(k=e.position(),l=k.top,m=k.left):(l=parseFloat(g)||0,m=parseFloat(h)||0),p.isFunction(b)&&(b=b.call(a,c,f)),b.top!=null&&(j.top=b.top-f.top+l),b.left!=null&&(j.left=b.left-f.left+m),"using"in b?b.using.call(a,j):e.css(j)}},p.fn.extend({position:function(){if(!this[0])return;var a=this[0],b=this.offsetParent(),c=this.offset(),d=c_.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(p.css(a,"marginTop"))||0,c.left-=parseFloat(p.css(a,"marginLeft"))||0,d.top+=parseFloat(p.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(p.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||e.body;while(a&&!c_.test(a.nodeName)&&p.css(a,"position")==="static")a=a.offsetParent;return a||e.body})}}),p.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);p.fn[a]=function(e){return p.access(this,function(a,e,f){var g=da(a);if(f===b)return g?c in g?g[c]:g.document.documentElement[e]:a[e];g?g.scrollTo(d?p(g).scrollLeft():f,d?f:p(g).scrollTop()):a[e]=f},a,e,arguments.length,null)}}),p.each({Height:"height",Width:"width"},function(a,c){p.each({padding:"inner"+a,content:c,"":"outer"+a},function(d,e){p.fn[e]=function(e,f){var g=arguments.length&&(d||typeof e!="boolean"),h=d||(e===!0||f===!0?"margin":"border");return p.access(this,function(c,d,e){var f;return p.isWindow(c)?c.document.documentElement["client"+a]:c.nodeType===9?(f=c.documentElement,Math.max(c.body["scroll"+a],f["scroll"+a],c.body["offset"+a],f["offset"+a],f["client"+a])):e===b?p.css(c,d,e,h):p.style(c,d,e,h)},c,g?e:b,g,null)}})}),a.jQuery=a.$=p,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return p})})(window); 5/* End */ 6; 7; /* Start:/application/js/libs/jquerymx-3.2.custom.min.js*/ 8(function(i){var e={undHash:/_|-/,colons:/::/,words:/([A-Z]+)([A-Z][a-z])/g,lowUp:/([a-z\d])([A-Z])/g,dash:/([a-z\d])([A-Z])/g,replacer:/\{([^\}]+)\}/g,dot:/\./},l=function(a,b,c){return a[b]!==undefined?a[b]:c&&(a[b]={})},j=function(a){var b=typeof a;return a&&(b=="function"||b=="object")},m,k=i.String=i.extend(i.String||{},{getObject:m=function(a,b,c){a=a?a.split(e.dot):[];var f=a.length,d,h,g,n=0;b=i.isArray(b)?b:[b||window];if(f==0)return b[0];for(;d=b[n++];){for(g=0;g<f-1&&j(d);g++)d=l(d,a[g], 9c);if(j(d)){h=l(d,a[g],c);if(h!==undefined){c===false&&delete d[a[g]];return h}}}},capitalize:function(a){return a.charAt(0).toUpperCase()+a.substr(1)},camelize:function(a){a=k.classize(a);return a.charAt(0).toLowerCase()+a.substr(1)},classize:function(a,b){a=a.split(e.undHash);for(var c=0;c<a.length;c++)a[c]=k.capitalize(a[c]);return a.join(b||"")},niceName:function(a){return k.classize(a," ")},underscore:function(a){return a.replace(e.colons,"/").replace(e.words,"$1_$2").replace(e.lowUp,"$1_$2").replace(e.dash, 10"_").toLowerCase()},sub:function(a,b,c){var f=[];c=typeof c=="boolean"?!c:c;f.push(a.replace(e.replacer,function(d,h){d=m(h,b,c);if(j(d)){f.push(d);return""}else return""+d}));return f.length<=1?f[0]:f},_regs:e})})(jQuery); 11(function(i){var j=false,p=i.makeArray,q=i.isFunction,l=i.isArray,m=i.extend,s=i.String.getObject,n=function(a,c){return a.concat(p(c))},t=/xyz/.test(function(){})?/\b_super\b/:/.*/,r=function(a,c,d){d=d||a;for(var b in a)d[b]=q(a[b])&&q(c[b])&&t.test(a[b])?function(h,g){return function(){var f=this._super,e;this._super=c[h];e=g.apply(this,arguments);this._super=f;return e}}(b,a[b]):a[b]};clss=i.Class=function(){arguments.length&&clss.extend.apply(clss,arguments)};m(clss,{proxy:function(a){var c= 12p(arguments),d;a=c.shift();l(a)||(a=[a]);d=this;return function(){for(var b=n(c,arguments),h,g=a.length,f=0,e;f<g;f++)if(e=a[f]){if((h=typeof e=="string")&&d._set_called)d.called=e;b=(h?d[e]:e).apply(d,b||[]);if(f<g-1)b=!l(b)||b._use_call?[b]:b}return b}},newInstance:function(){var a=this.rawInstance(),c;if(a.setup)c=a.setup.apply(a,arguments);if(a.init)a.init.apply(a,l(c)?c:arguments);return a},setup:function(a){this.defaults=m(true,{},a.defaults,this.defaults);return arguments},rawInstance:function(){j= 13true;var a=new this;j=false;return a},extend:function(a,c,d){function b(){if(!j)return this.constructor!==b&&arguments.length?arguments.callee.extend.apply(arguments.callee,arguments):this.Class.newInstance.apply(this.Class,arguments)}if(typeof a!="string"){d=c;c=a;a=null}if(!d){d=c;c=null}d=d||{};var h=this,g=this.prototype,f,e,k,o;j=true;o=new this;j=false;r(d,g,o);for(f in this)if(this.hasOwnProperty(f))b[f]=this[f];r(c,this,b);
13if(a){k=a.split(/\./);e=k.pop();k=g=s(k.join("."),window,true);g[e]= 14b}m(b,{prototype:o,namespace:k,shortName:e,constructor:b,fullName:a});b.prototype.Class=b.prototype.constructor=b;e=b.setup.apply(b,n([h],arguments));if(b.init)b.init.apply(b,e||n([h],arguments));return b}});clss.callback=clss.prototype.callback=clss.prototype.proxy=clss.proxy})(jQuery); 15 16(function(a){var e=jQuery.cleanData;a.cleanData=function(b){for(var c=0,d;(d=b[c])!==undefined;c++)a(d).triggerHandler("destroyed");e(b)}})(jQuery); 17(function(e){var v=function(a,b,c){var d,f=a.bind&&a.unbind?a:e(j(a)?[a]:a);if(b.indexOf(">")===0){b=b.substr(1);d=function(i){i.target===a&&c.apply(this,arguments)}}f.bind(b,d||c);return function(){f.unbind(b,d||c);a=b=c=d=null}},k=e.makeArray,w=e.isArray,j=e.isFunction,l=e.extend,q=e.String,r=e.each,x=Array.prototype.slice,y=function(a,b,c,d){var f=a.delegate&&a.undelegate?a:e(j(a)?[a]:a);f.delegate(b,c,d);return function(){f.undelegate(b,c,d);f=a=c=d=b=null}},s=function(a,b,c,d){return d?y(a,d, 18b,c):v(a,b,c)},m=function(a,b){var c=typeof b=="string"?a[b]:b;return function(){a.called=b;return c.apply(a,[this.nodeName?e(this):this].concat(x.call(arguments,0)))}},z=/\./g,A=/_?controllers?/ig,t=function(a){return q.underscore(a.replace("jQuery.","").replace(z,"_").replace(A,""))},B=/[^\w]/,u=/\{([^\}]+)\}/g,C=/^(?:(.*?)\s)?([\w\.\:>]+)$/,n,o=function(a,b){return e.data(a,"controllers",b)};e.Class("jQuery.Controller",{setup:function(){this._super.apply(this,arguments);if(!(!this.shortName||this.fullName== 19"jQuery.Controller")){this._fullName=t(this.fullName);this._shortName=t(this.shortName);var a=this,b=this.pluginName||this._fullName,c;e.fn[b]||(e.fn[b]=function(d){var f=k(arguments),i=typeof d=="string"&&j(a.prototype[d]),D=f[0];return this.each(function(){var g=o(this);if(g=g&&g[b])i?g[D].apply(g,f.slice(1)):g.update.apply(g,f);else a.newInstance.apply(a,[this].concat(f))})});this.actions={};for(c in this.prototype)if(!(c=="constructor"||!j(this.prototype[c])))if(this._isAction(c))this.actions[c]= 20this._action(c)}},hookup:function(a){return new this(a)},_isAction:function(a){return B.test(a)?true:e.inArray(a,this.listensTo)>-1||e.event.special[a]||p[a]},_action:function(a,b){u.lastIndex=0;if(!b&&u.test(a))return null;a=b?q.sub(a,[b,window]):a;b=w(a);var c=(b?a[1]:a).match(C);return{processor:p[c[2]]||n,parts:c,delegate:b?a[0]:undefined}},processors:{},listensTo:[],defaults:{}},{setup:function(a,b){var c=this.constructor;a=(typeof a=="string"?e(a):a.jquery?a:[a])[0];var d=c.pluginName||c._fullName; 21this.element=e(a).addClass(d);(o(a)||o(a,{}))[d]=this;this.options=l(l(true,{},c.defaults),b);this.called="init";this.bind();return[this.element,this.options].concat(k(arguments).slice(2))},bind:function(a,b,c){if(a===undefined){this._bindings=[];a=this.constructor;b=this._bindings;c=a.actions;var d=this.element;for(funcName in c)if(c.hasOwnProperty(funcName)){ready=c[funcName]||a._action(funcName,this.options);b.push(ready.processor(ready.delegate||d,ready.parts[2],ready.parts[1],funcName,this))}var f= 22m(this,"destroy");d.bind("destroyed",f);b.push(function(i){e(i).unbind("destroyed",f)});return b.length}if(typeof a=="string"){c=b;b=a;a=this.element}return this._binder(a,b,c)},_binder:function(a,b,c,d){if(typeof c=="string")c=m(this,c);this._bindings.push(s(a,b,c,d));return this._bindings.length},_unbind:function(){var a=this.element[0];r(this._bindings,function(b,c){c(a)});this._bindings=[]},delegate:function(a,b,c,d){if(typeof a=="string"){d=c;c=b;b=a;a=this.element}return this._binder(a,c,d, 23b)},update:function(a){l(this.options,a);this._unbind();this.bind()},destroy:function(){if(this._destroyed)throw this.constructor.shortName+" controller already deleted";var a=this.constructor.pluginName||this.constructor._fullName;this._destroyed=true;this.element.removeClass(a);this._unbind();delete this._actions;delete this.element.data("controllers")[a];e(this).triggerHandler("destroyed");this.element=null},find:function(a){return this.element.find(a)},_set_called:true});var p=e.Controller.processors; 24n=function(a,b,c,d,f){return s(a,b,m(f,d),c)};
24r("change click contextmenu dblclick keydown keyup keypress mousedown mousemove mouseout mouseover mouseup reset resize scroll select submit focusin focusout mouseenter mouseleave".split(" "),function(a,b){p[b]=n});var h,E=function(a,b){for(h=0;h<b.length;h++)if(typeof b[h]=="string"?a.constructor._shortName==b[h]:a instanceof b[h])return true;return false};e.fn.extend({controllers:function(){var a=k(arguments),b=[],c,d,f;this.each(function(){c=e.data(this, 25"controllers");for(f in c)if(c.hasOwnProperty(f)){d=c[f];if(!a.length||E(d,a))b.push(d)}});return b},controller:function(){return this.controllers.apply(this,arguments)[0]}})})(jQuery); 26(function(){var n=$.String,x=n.getObject,r=n.underscore,C=n.classize,w=$.isArray,y=$.makeArray,s=$.extend,j=$.each,l=function(a,b,c){$.event.trigger(b,c,a,true)},m=function(a,b,c,d,f,e,g){if(typeof a=="string"){var h=a.indexOf(" ");a=h>-1?{url:a.substr(h+1),type:a.substr(0,h)}:{url:a}}a.data=typeof b=="object"&&!w(b)?s(a.data||{},b):b;a.url=n.sub(a.url,a.data,true);return $.ajax(s({type:e||"post",dataType:g||"json",fixture:f,success:c,error:d},a))},o=function(a,b,c){var d=r(a.shortName),f="-"+d+(b|| 27"");return $.fixture&&$.fixture[f]?f:c||"//"+r(a.fullName).replace(/\.models\..*/,"").replace(/\./g,"/")+"/fixtures/"+d+(b||"")+".json"},D=function(a,b,c){b=b||{};a=a.id;if(b[a]&&b[a]!==c){b["new"+n.capitalize(c)]=b[a];delete b[a]}b[a]=c;return b},z=function(a){return new (a||$.Model.List||Array)},t=function(a){return a[a.constructor.id]},E=function(a){var b=[];j(a,function(c,d){if(!d["__u Nique"]){b.push(d);d["__u Nique"]=1}});return j(b,function(c,d){delete d["__u Nique"]})},A=function(a,b,c,d,
28f){var e=$.Deferred(),g=[a.serialize(),function(k){a[f||b+"d"](k);e.resolveWith(a,[a,k,b])},function(k){e.rejectWith(a,[k])}],h=a.constructor,i,p=e.promise();b=="destroy"&&g.shift();b!=="create"&&g.unshift(t(a));e.then(c);e.fail(d);if((i=h[b].apply(h,g))&&i.abort)p.abort=function(){i.abort()};return p},u=function(a){return typeof a==="object"&&a!==null&&a},q=function(a){return function(){return $.fn[a].apply($([this]),arguments)}},B=q("bind");q=q("unbind");ajaxMethods={create:function(a){return function(b, 29c,d){return m(a||this._shortName,b,c,d,o(this,"Create","-restCreate"))}},update:function(a){return function(b,c,d,f){return m(a||this._shortName+"/{"+this.id+"}",D(this,c,b),d,f,o(this,"Update","-restUpdate"),"put")}},destroy:function(a){return function(b,c,d){var f={};f[this.id]=b;return m(a||this._shortName+"/{"+this.id+"}",f,c,d,o(this,"Destroy","-restDestroy"),"delete")}},findAll:function(a){return function(b,c,d){return m(a||this._shortName,b,c,d,o(this,"s"),"get","json "+this._shortName+".models")}}, 30findOne:function(a){return function(b,c,d){return m(a||this._shortName+"/{"+this.id+"}",b,c,d,o(this),"get","json "+this._shortName+".model")}}};jQuery.Class("jQuery.Model",{setup:function(a){var b=this,c=this.fullName;j(["attributes","validations"],function(f,e){if(!b[e]||a[e]===b[e])b[e]={}});j(["convert","serialize"],function(f,e){if(a[e]!=b[e])b[e]=s({},a[e],b[e])});this._fullName=r(c.replace(/\./g,"_"));this._shortName=r(this.shortName);if(c.indexOf("jQuery")!=0){if(this.listType)this.list=new this.listType([]); 31j(ajaxMethods,function(f,e){var g=b[f];if(typeof g!=="function")b[f]=e(g)});c={};var d="* "+this._shortName+".model";c[d+"s"]=this.proxy("models");c[d]=this.proxy("model");$.ajaxSetup({converters:c})}},attributes:{},model:function(a){if(!a)return null;if(a instanceof this)a=a.serialize();return new this(u(a[this._shortName])||u(a.data)||u(a.attributes)||a)},models:function(a){if(!a)return null;var b=z(this.List),c=w(a),d=$.Model.List;d=d&&a instanceof d;for(var f=(d=c?a:d?a.serialize():a.data)?d.length: 32null,e=0;e<f;e++)b.push(this.model(d[e]));c||j(a,function(g,h){if(g!=="data")b[g]=h});return b},id:"id",addAttr:function(a,b){var c=this.attributes;c[a]||(c[a]=b);return b},convert:{date:function(a){var b=typeof a;return b==="string"?isNaN(Date.parse(a))?null:Date.parse(a):b==="number"?new Date(a):a},number:function(a){return parseFloat(a)},"boolean":function(a){return Boolean(a==="false"?0:a)},"default":function(a,b,c){b=x(c);var d=window;if(c.indexOf(".")>=0){c=c.substring(0,c.lastIndexOf(".")); 33d=x(c)}return typeof b=="function"?b.call(d,a):a}},serialize:{"default":function(a){return u(a)&&a.serialize?a.serialize():a},date:function(a){return a&&a.getTime()}},bind:B,unbind:q,_ajax:m},{setup:function(a){this._init=true;this.attrs(s({},this.constructor.defaults,a));delete this._init},update:function(a,b,c){this.attrs(a);return this.save(b,c)},errors:function(a){if(a)a=w(a)?a:y(arguments);var b={},c=this,d=function(e,g){j(g,function(h,i){if(h=i.call(c)){b[e]||(b[e]=[]);b[e].push(h)}})},f=this.constructor.validations; 34j(a||f||{},function(e,g){if(typeof e=="number"){e=g;g=f[e]}d(e,g||[])});return $.isEmptyObject(b)?null:b},attr:function(a,b,c,d){var f=C(a),e="get"+f;if(b!==undefined){f="set"+f;e=this[a];var g=this,h=function(i){d&&d.call(g,i);l(g,"error."+a,i)};if(this[f]&&(b=this[f](b,this.proxy("_updateProperty",a,b,e,c,h),h))===undefined)return;this._updateProperty(a,b,e,c,h);return this}return this[e]?this[e]():this[a]},bind:B,unbind:q,_updateProperty:function(a,b,c,d,f){var e=this.constructor,g=e.attributes[a]|| 35e.addAttr(a,"string"),h=e.convert[g]||e.convert["default"],i=null,p="",k="updated.";d=d;var v=e.list;b=this[a]=b===null?null:h.call(e,b,function(){},g);this._init||(i=this.errors(a));g=[b];h=[a,b,c];if(i){p=k="error.";d=f;h.splice(1,0,i);g.unshift(i)}if(c!==b&&!this._init){!i&&l(this,p+a,g);l(this,k+"attr",h)}d&&d.apply(this,g);if(a===e.id&&b!==null&&v)if(c){if(c!=b){v.remove(c);v.push(this)}}else v.push(this)},removeAttr:function(a){var b=this[a],c=false,d=this.constructor.attributes;this[a]&&delete this[a]; 36if(d[a]){delete d[a];c=true}!this._init&&c&&b&&l(this,"updated.attr",[a,null,b])},attrs:function(a){var b,c=this.constructor,d=c.attributes;if(a){c=c.id;for(b in a)b!=c&&this.attr(b,a[b]);c in a&&this.attr(c,a[c])}else{a={};for(b in d)if(d.hasOwnProperty(b))a[b]=this.attr(b)}return a},serialize:function(){var a=this.constructor,b=a.attributes,c,d,f={},e;attributes={};for(e in b)if(b.hasOwnProperty(e)){c=b[e];
36d=a.serialize[c]||a.serialize["default"];f[e]=d.call(a,this[e],c)}return f},isNew:function(){var a= 37t(this);return a===undefined||a===null||a===""},save:function(a,b){return A(this,this.isNew()?"create":"update",a,b)},destroy:function(a,b){return A(this,"destroy",a,b,"destroyed")},identity:function(){var a=t(this),b=this.constructor;return(b._fullName+"_"+(b.escapeIdentity?encodeURIComponent(a):a)).replace(/ /g,"_")},elements:function(a){var b=this.identity();if(this.constructor.escapeIdentity)b=b.replace(/([ #;&,.+*~\'%:"!^$[\]()=>|\/])/g,"\\$1");return $("."+b,a)},hookup:function(a){var b=this.constructor._shortName, 38c=$.data(a,"models")||$.data(a,"models",{});$(a).addClass(b+" "+this.identity());c[b]=this}});j(["created","updated","destroyed"],function(a,b){$.Model.prototype[b]=function(c){var d=this.constructor;b==="destroyed"&&d.list&&d.list.remove(t(this));c&&typeof c=="object"&&this.attrs(c.attrs?c.attrs():c);l(this,b);l(d,b,this);return[this].concat(y(arguments))}});$.fn.models=function(){var a=[],b,c;this.each(function(){j($.data(this,"models")||{},function(d,f){b=b===undefined?f.constructor.List||null: 39f.constructor.List===b?b:null;a.push(f)})});c=z(b);c.push.apply(c,E(a));return c};$.fn.model=function(a){if(a&&a instanceof $.Model){a.hookup(this[0]);return this}else return this.models.apply(this,arguments)[0]}})(jQuery); 40(function(d){var l=function(a){return a[0]&&d.isArray(a[0])?a[0]:a[0]instanceof d.Model.List?d.makeArray(a[0]):d.makeArray(a)},q=0,m=function(a){return a[a.constructor.id]},j=jQuery.expando,k=d.each,n=d.Model._ajax,o={update:function(a){return function(b,c,e,g){return n(a,{ids:b,attrs:c},e,g,"-updateAll","put")}},destroy:function(a){return function(b,c,e){return n(a,b,c,e,"-destroyAll","post")}}};d.Class("jQuery.Model.List",{setup:function(){for(var a in o)if(typeof this[a]!=="function")this[a]=o[a](this[a])}}, 41{init:function(a){this.length=0;this._data={};this._namespace=".list"+ ++q;this.push.apply(this,d.makeArray(a||[]))},slice:function(){return new this.Class(Array.prototype.slice.apply(this,arguments))},match:function(a,b){return this.grep(function(c){return c[a]==b})},grep:function(a,b){return new this.Class(d.grep(this,a,b))},_makeData:function(){var a=this._data={};this.each(function(b,c){a[c[c.constructor.id]]=c})},get:function(){if(!this.length)return new this.Class([]);this._changed&&this._makeData(); 42var a=[],b=this[0].constructor,c=b.id;b=new RegExp(b._fullName+"_([^ ]+)");for(var e,g,f=l(arguments),h=0;h<f.length;h++)(g=f[h].nodeName&&(e=f[h].className.match(b))?this._data[e[1]]:this._data[typeof f[h]=="string"||typeof f[h]=="number"?f[h]:f[h][c]])&&a.push(g);return new this.Class(a)},remove:function(a){if(!this.length)return[];var b=[],c=this[0].constructor,e=c.id;c=new RegExp(c._fullName+"_([^ ]+)");var g;a=l(arguments);for(var f=0;f<this.length;){for(var h=this[f],p=false,i=0;i<a.length;i++){var r= 43a[i].nodeName&&(g=a[i].className.match(c))&&g[1]||(typeof a[i]=="string"||typeof a[i]=="number"?a[i]:a[i][e]);if(h[e]==r){b.push.apply(b,this.splice(f,1));a.splice(i,1);p=true;break}}p||f++}b=new this.Class(b);b.length&&d([this]).trigger("remove",[b]);return b},elements:function(a){return d(this.map(function(b){return"."+b.identity()}).join(","),a)},model:function(){return this.constructor.namespace},findAll:function(a,b,c){var e=this;this.model().findAll(a,function(g){e.push(g);b&&b(e)},c)},destroy:function(a, 44b){var c=this.map(m),e=this.slice(0,this.length);if(c.length)this.constructor.destroy(c,function(){k(e,function(){this.destroyed()});a&&a(e)},b);else a&&a(this);return this},update:function(a,b,c){var e=this.map(m),g=this.slice(0,this.length);if(e.length)this.constructor.update(e,a,function(f){var h=d.extend(a,f||{});k(g,function(){this.updated(h)});b&&b(g)},c);else b&&b(this);return this},bind:function(){this[j]===undefined&&this.bindings(this);d.fn.bind.apply(d([this]),arguments);return this},unbind:function(){d.fn.unbind.apply(d([this]), 45arguments);this[j]===undefined&&d(this).unbind(this._namespace);return this},bindings:function(a){var b=this;d(a).bind("destroyed"+this._namespace,function(){b.remove(this)}).bind("updated"+this._namespace,function(){d([b]).trigger("updated",this)})},push:function(){var a=l(arguments);this[j]!==undefined&&this.bindings(a);this._changed=true;var b=s.apply(this,a);this[j]&&a.length&&d([this]).trigger("add",[a]);return b},serialize:function(){return this.map(function(a){return a.serialize()})}});var s= 46[].push;k({pop:[].pop,shift:[].shift,unshift:[].unshift,splice:[].splice,sort:[].sort,reverse:[].reverse},function(a,b){d.Model.List.prototype[a]=function(){this._changed=true;return b.apply(this,arguments)}});k(["each","map"],function(a,b){d.Model.List.prototype[b]=function(c,e){return d[b](this,c,e)}})})(jQuery); 47(function(a){function h(d){d=d||window[e][i];return d.replace(/^[^#]*#?(.*)$/,"$1")}var k,o=a.event.special,e="location",i="href",p=document.documentMode,q=a.browser.msie&&(p===undefined||p<8),r="onhashchange"in window&&!q;a.hashchangeDelay=100;o.hashchange=a.extend(o.hashchange,{setup:function(){if(r)return false;a(k.start)},teardown:function(){if(r)return false;a(k.stop)}});k=function(){function d(){f=l=function(b){return b};if(q){j=a('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow; 48l=function(){return h(j.document[e][i])};f=function(b,c){if(b!==c){c=j.document;c.open().close();c[e].hash="#"+b}};f(h())}}var m={},g,j,f,l;m.start=function(){if(!g){var b=h();f||d();navigator.userAgent.match(/Rhino/)||function c(){var s=h(),n=l(b);if(s!==b){f(b=s,n);a(window).trigger("hashchange")}else if(n!==b)window[e][i]=window[e][i].replace(/#.*/,"")+"#"+n;g=setTimeout(c,a.hashchangeDelay)}()}};m.stop=function(){if(!j){g&&clearTimeout(g);g=0}};return m}()})(jQuery); 49(function(f){f.fn.triggerAsync=function(a,b,d,e){if(typeof b=="function"){d=b;b=undefined}if(this[0]){var c=f.Event(a),i=c.preventDefault;c.preventDefault=function(){i.apply(this,arguments);e&&e(this)};jQuery.event.trigger({type:a,_success:d},b,this[0])}else d.call(this);return this};var j={},k=/\.(.*)$/,g=f.event;g.special["default"]={add:function(a){j[a.namespace.replace(k,"")]=true},setup:function(){return true}};var h=g.trigger;g.trigger=function(a,b,d,e){var c=a.type||a;a=typeof a==="object"? 50a[jQuery.expando]?a:new jQuery.Event(c,a):new jQuery.Event(c);c=h.call(f.event,a,b,d,e);if(!e&&!a.isDefaultPrevented()&&a.type.indexOf("default")!==0){h("default."+a.type,b,d);a._success&&a._success(a)}if(a.isPaused&&a.isPaused()){a.isDefaultPrevented=a.pausedState.isDefaultPrevented;a.isPropagationStopped=a.pausedState.isPropagationStopped}return c}})(jQuery); 51(function(c){var f=function(a){return a!==undefined?(this.array[0]=a):this.array[0]},g=function(a){return a!==undefined?(this.array[1]=a):this.array[1]};c.Vector=function(){this.update(c.makeArray(arguments))};c.Vector.prototype={app:function(a){var b,d=[];for(b=0;b<this.array.length;b++)d.push(a(this.array[b]));return(new c.Vector).update(d)},plus:function(){var a,b=arguments[0]instanceof c.Vector?arguments[0].array:c.makeArray(arguments),d=this.array.slice(0),e=new c.Vector;for(a=0;a<b.length;a++)d[a]= 52(d[a]?d[a]:0)+b[a];return e.update(d)},minus:function(){var a,b=arguments[0]instanceof c.Vector?arguments[0].array:c.makeArray(arguments),d=this.array.slice(0),e=new c.Vector;for(a=0;a<b.length;
52a++)d[a]=(d[a]?d[a]:0)-b[a];return e.update(d)},equals:function(){var a,b=arguments[0]instanceof c.Vector?arguments[0].array:c.makeArray(arguments),d=this.array.slice(0),e=new c.Vector;for(a=0;a<b.length;a++)if(d[a]!=b[a])return null;return e.update(d)},x:f,left:f,width:f,y:g,top:g,height:g,toString:function(){return"("+ 53this.array[0]+","+this.array[1]+")"},update:function(a){var b;if(this.array)for(b=0;b<this.array.length;b++)delete this.array[b];this.array=a;for(b=0;b<a.length;b++)this[b]=this.array[b];return this}};c.Event.prototype.vector=function(){if(this.originalEvent.synthetic){var a=document.documentElement,b=document.body;return new c.Vector(this.clientX+(a&&a.scrollLeft||b&&b.scrollLeft||0)-(a.clientLeft||0),this.clientY+(a&&a.scrollTop||b&&b.scrollTop||0)-(a.clientTop||0))}else return new c.Vector(this.pageX, 54this.pageY)};c.fn.offsetv=function(){if(this[0]==window)return new c.Vector(window.pageXOffset?window.pageXOffset:document.documentElement.scrollLeft,window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop);else{var a=this.offset();return new c.Vector(a.left,a.top)}};c.fn.dimensionsv=function(a){return this[0]==window||!a?new c.Vector(this.width(),this.height()):new c.Vector(this[a+"Width"](),this[a+"Height"]())}})(jQuery); 55(function(){var g=jQuery.event,m=function(a,e,d,h){var f,b,c,k,j,i,l,n;for(f=0;f<e.length;f++){b=e[f];k=b.indexOf(".")<0;if(!k){c=b.split(".");b=c.shift();l=new RegExp("(^|\\.)"+c.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}c=(a[b]||[]).slice(0);for(j=0;j<c.length;j++){i=c[j];if(n=k||l.test(i.namespace))if(h){if(i.selector===h)d(b,i.origHandler||i.handler)}else if(h===null)d(b,i.origHandler||i.handler,i.selector);else i.selector||d(b,i.origHandler||i.handler)}}};g.find=function(a,e,d){a=($._data(a)|| 56{}).events;var h=[];if(!a)return h;m(a,e,function(f,b){h.push(b)},d);return h};g.findBySelector=function(a,e){a=$._data(a).events;var d={},h=function(f,b,c){f=d[f]||(d[f]={});(f[b]||(f[b]=[])).push(c)};if(!a)return d;m(a,e,function(f,b,c){h(c||"",f,b)},null);return d};g.supportTouch="ontouchend"in document;$.fn.respondsTo=function(a){return this.length?g.find(this[0],$.isArray(a)?a:[a]).length>0:false};$.fn.triggerHandled=function(a,e){a=typeof a=="string"?$.Event(a):a;this.trigger(a,e);return a.handled}; 57g.setupHelper=function(a,e,d){if(!d){d=e;e=null}var h=function(b){var c=b.selector||"";if(c){b=g.find(this,a,c);b.length||$(this).delegate(c,e,d)}else g.find(this,a,c).length||g.add(this,e,d,{selector:c,delegate:this})},f=function(b){var c=b.selector||"";if(c){b=g.find(this,a,c);b.length||$(this).undelegate(c,e,d)}else g.find(this,a,c).length||g.remove(this,e,d,{selector:c,delegate:this})};$.each(a,function(){g.special[this]={add:h,remove:f,setup:function(){},teardown:function(){}}})}})(jQuery); 58(function(c){var h=function(a,b){var d=Array.prototype.slice.call(arguments,2);return function(){var e=[this].concat(d,c.makeArray(arguments));return b.apply(a,e)}},g=c.event,i=window.getSelection?function(){window.getSelection().removeAllRanges()}:function(){};c.Drag=function(){};c.extend(c.Drag,{lowerName:"drag",current:null,distance:0,mousedown:function(a,b){if(!(!(a.button===0||a.button==1)||this.current)){var d=new c.Drag,e=a.delegateTarget||b,f=a.handleObj.selector,j=this;this.current=d;d.setup({element:b, 59delegate:a.delegateTarget||b,selector:a.handleObj.selector,moved:false,_distance:this.distance,callbacks:{dragdown:g.find(e,["dragdown"],f),draginit:g.find(e,["draginit"],f),dragover:g.find(e,["dragover"],f),dragmove:g.find(e,["dragmove"],f),dragout:g.find(e,["dragout"],f),dragend:g.find(e,["dragend"],f)},destroyed:function(){j.current=null}},a)}}});c.extend(c.Drag.prototype,{setup:function(a,b){c.extend(this,a);this.element=c(this.element);this.event=b;this.allowOtherDrags=this.moved=false;var d= 60h(this,this.mousemove),e=h(this,this.mouseup);this._mousemove=d;this._mouseup=e;this._distance=a.distance?a.distance:0;this.mouseStartPosition=b.vector();c(document).bind("mousemove",d);c(document).bind("mouseup",e);if(!this.callEvents("down",this.element,b)){this.noSelection(this.delegate);i()}},destroy:function(){c(document).unbind("mousemove",this._mousemove);c(document).unbind("mouseup",this._mouseup);if(!this.moved)this.event=this.element=null;this.selection(this.delegate);this.destroyed()}, 61mousemove:function(a,b){if(!this.moved){if(Math.sqrt(Math.pow(b.pageX-this.event.pageX,2)+Math.pow(b.pageY-this.event.pageY,2))<this._distance)return false;this.init(this.element,b);this.moved=true}a=b.vector();this._start_position&&this._start_position.equals(a)||this.draw(a,b)},mouseup:function(a,b){this.moved&&this.end(b);this.destroy()},noSelection:function(a){a=a||this.delegate;document.documentElement.onselectstart=function(){return false};document.documentElement.unselectable="on";this.selectionDisabled= 62this.selectionDisabled?this.selectionDisabled.add(a):c(a);this.selectionDisabled.css("-moz-user-select","-moz-none")},selection:function(){if(this.selectionDisabled){document.documentElement.onselectstart=function(){};document.documentElement.unselectable="off";this.selectionDisabled.css("-moz-user-select","")}},init:function(a,b){a=c(a);var d=this.movingElement=this.element=c(a);this._cancelled=false;this.event=b;this.mouseElementPosition=this.mouseStartPosition.minus(this.element.offsetv());this.callEvents("init", 63a,b);if(this._cancelled!==true){this.startPosition=d!=this.movingElement?this.movingElement.offsetv():this.currentDelta();this.makePositioned(this.movingElement);this.oldZIndex=this.movingElement.css("zIndex");this.movingElement.css("zIndex",1E3);!this._only&&this.constructor.responder&&this.constructor.responder.compile(b,this)}},makePositioned:function(a){var b;b=a.css("position");if(!b||b=="static"){b={position:"relative"};if(window.opera){b.top="0px";b.left="0px"}a.css(b)}},callEvents:function(a, 64b,d,e){var f=this.callbacks[this.constructor.lowerName+a];for(a=0;a<f.length;a++)f[a].call(b,d,this,e);return f.length},currentDelta:function(){return new c.Vector(parseInt(this.movingElement.css("left"),10)||0,parseInt(this.movingElement.css("top"),10)||0)},draw:function(a,b){if(!this._cancelled){i();this.location=a.minus(this.mouseElementPosition);this.move(b);if(!this._cancelled){b.isDefaultPrevented()||this.position(this.location);!this._only&&this.constructor.responder&&this.constructor.responder.show(a, 65this,b)}}},position:function(a){var b=this.currentDelta();b=this.movingElement.offsetv().minus(b);this.required_css_position=a.minus(b);this.offsetv=a;a=this.movingElement[0].style;if(!this._cancelled&&!this._horizontal)a.top=this.required_css_position.top()+"px";if(!this._cancelled&&!this._vertical)a.left=this.required_css_position.left()+"px"},move:function(a){this.callEvents("move",this.element,a)},over:function(a,b){this.callEvents("over",this.element,a,b)},out:function(a,b){this.callEvents("out", 66this.element,a,b)}
66,end:function(a){if(!this._cancelled){!this._only&&this.constructor.responder&&this.constructor.responder.end(a,this);this.callEvents("end",this.element,a);if(this._revert){var b=this;this.movingElement.animate({top:this.startPosition.top()+"px",left:this.startPosition.left()+"px"},function(){b.cleanup.apply(b,arguments)})}else this.cleanup();this.event=null}},cleanup:function(){this.movingElement.css({zIndex:this.oldZIndex});this.movingElement[0]!==this.element[0]&&!this.movingElement.has(this.element[0]).length&& 67!this.element.has(this.movingElement[0]).length&&this.movingElement.css({display:"none"});this._removeMovingElement&&this.movingElement.remove();this.movingElement=this.element=this.event=null},cancel:function(){this._cancelled=true;!this._only&&this.constructor.responder&&this.constructor.responder.clear(this.event.vector(),this,this.event);this.destroy()},ghost:function(a){var b=this.movingElement.clone().css("position","absolute");(a?c(a):this.movingElement).after(b);b.width(this.movingElement.width()).height(this.movingElement.height()); 68b.offset(this.movingElement.offset());this.movingElement=b;this.noSelection(b);this._removeMovingElement=true;return b},representative:function(a,b,d){this._offsetX=b||0;this._offsetY=d||0;b=this.mouseStartPosition;this.movingElement=c(a);this.movingElement.css({top:b.y()-this._offsetY+"px",left:b.x()-this._offsetX+"px",display:"block",position:"absolute"}).show();this.noSelection(this.movingElement);this.mouseElementPosition=new c.Vector(this._offsetX,this._offsetY)},revert:function(a){this._revert= 69a===undefined?true:a;return this},vertical:function(){this._vertical=true;return this},horizontal:function(){return this._horizontal=true},only:function(a){return this._only=a===undefined?true:a},distance:function(a){if(a!==undefined){this._distance=a;return this}else return this._distance}});g.setupHelper(["dragdown","draginit","dragover","dragmove","dragout","dragend"],"mousedown",function(a){c.Drag.mousedown.call(c.Drag,a,this)})})(jQuery); 70 71(function(i){var j=function(b,c,e,d,a,g){return c>=d&&c<d+g&&b>=e&&b<e+a};i.fn.within=function(b,c,e){var d=[];this.each(function(){var a=jQuery(this);if(this==document.documentElement)return d.push(this);a=e?jQuery.data(this,"offsetCache")||jQuery.data(this,"offsetCache",a.offset()):a.offset();j(b,c,a.left,a.top,this.offsetWidth,this.offsetHeight)&&d.push(this)});return this.pushStack(jQuery.unique(d),"within",b+","+c)};i.fn.withinBox=function(b,c,e,d,a){var g=[];this.each(function(){var f=jQuery(this); 72if(this==document.documentElement)return this.ret.push(this);var h=a?jQuery.data(this,"offset")||jQuery.data(this,"offset",f.offset()):f.offset(),k=f.width();f=f.height();(res=!(h.top>c+d||h.top+f<c||h.left>b+e||h.left+k<b))&&g.push(this)});return this.pushStack(jQuery.unique(g),"withinBox",jQuery.makeArray(arguments).join(","))}})(jQuery); 73(function(){jQuery.fn.compare=function(a){try{a=a.jquery?a[0]:a}catch(e){return null}if(window.HTMLElement){var b=HTMLElement.prototype.toString.call(a);if(b=="[xpconnect wrapped native prototype]"||b=="[object XULElement]"||b==="[object Window]")return null}if(this[0].compareDocumentPosition)return this[0].compareDocumentPosition(a);if(this[0]==document&&a!=document)return 8;b=(this[0]!==a&&this[0].contains(a)&&16)+(this[0]!=a&&a.contains(this[0])&&8);var c=document.documentElement;if(this[0].sourceIndex){b+= 74this[0].sourceIndex<a.sourceIndex&&4;b+=this[0].sourceIndex>a.sourceIndex&&2;b+=(this[0].ownerDocument!==a.ownerDocument||this[0]!=c&&this[0].sourceIndex<=0||a!=c&&a.sourceIndex<=0)&&1}else{c=document.createRange();var d=document.createRange();c.selectNode(this[0]);d.selectNode(a);c.compareBoundaryPoints(Range.START_TO_START,d)}return b}})(jQuery); 75(function(f){var m=f.event,k=["dropover","dropon","dropout","dropinit","dropmove","dropend"];f.Drop=function(a,b){jQuery.extend(this,a);this.element=f(b)};f.each(k,function(){m.special[this]={add:function(){var a=f(this),b=a.data("dropEventCount")||0;a.data("dropEventCount",b+1);b==0&&f.Drop.addElement(this)},remove:function(){var a=f(this),b=a.data("dropEventCount")||0;a.data("dropEventCount",b-1);b<=1&&f.Drop.removeElement(this)}}});f.extend(f.Drop,{lowerName:"drop",_rootElements:[],_elements:f(), 76last_active:[],endName:"dropon",addElement:function(a){for(var b=0;b<this._rootElements.length;b++)if(a==this._rootElements[b])return;this._rootElements.push(a)},removeElement:function(a){for(var b=0;b<this._rootElements.length;b++)if(a==this._rootElements[b]){this._rootElements.splice(b,1);return}},sortByDeepestChild:function(a,b){a=a.element.compare(b.element);if(a&16||a&4)return 1;if(a&8||a&2)return-1;return 0},isAffected:function(a,b,c){return c.element!=b.element&&c.element.within(a[0],a[1], 77c._cache).length==1},deactivate:function(a,b,c){b.out(c,a);a.callHandlers(this.lowerName+"out",a.element[0],c,b)},activate:function(a,b,c){b.over(c,a);a.callHandlers(this.lowerName+"over",a.element[0],c,b)},move:function(a,b,c){a.callHandlers(this.lowerName+"move",a.element[0],c,b)},compile:function(a,b){if(this.dragging||b){if(!this.dragging){this.dragging=b;this.last_active=[]}for(var c,e,d,g=[],i=this.dragging,h=0;h<this._rootElements.length;h++){b=this._rootElements[h];c=f.event.findBySelector(b, 78k);for(e in c){d=e?jQuery(e,b):[b];for(var j=0;j<d.length;j++)this.addCallbacks(d[j],c[e],i)&&g.push(d[j])}}this.add(g,a,i)}},addCallbacks:function(a,b,c){var e=f.data(a,"_dropData");if(e){if(!c){for(var d in b)e[d]=e[d]?e[d].concat(b[d]):b[d];return false}}else{f.data(a,"_dropData",new f.Drop(b,a));return true}},add:function(a,b,c){for(var e=0,d;e<a.length;){d=f.data(a[e],"_dropData");d.callHandlers(this.lowerName+"init",a[e],b,c);if(d._canceled)a.splice(e,1);else e++}this._elements.push.apply(this._elements, 79a)},show:function(a,b,c){if(this._elements.length){var e=[],d=true,g
79=0,i,h,j,l=this.last_active;for(i=this;g<this._elements.length;)if(h=f.data(this._elements[g],"_dropData")){g++;i.isAffected(a,b,h)&&e.push(h)}else this._elements.splice(g,1);e.sort(this.sortByDeepestChild);c.stopRespondPropagate=function(){d=false};h=e.slice();this.last_active=e;for(a=0;a<l.length;a++){i=l[a];for(g=0;j=h[g];)if(i==j){h.splice(g,1);break}else g++;j||this.deactivate(i,b,c);if(!d)return}for(g=0;g<h.length;g++){this.activate(h[g], 80b,c);if(!d)return}for(g=0;g<e.length;g++){this.move(e[g],b,c);if(!d)return}}},end:function(a,b){for(var c,e=this.lowerName+"end",d=0;d<this.last_active.length;d++){c=this.last_active[d];this.isAffected(a.vector(),b,c)&&c[this.endName]&&c.callHandlers(this.endName,null,a,b)}for(d=0;d<this._elements.length;d++)(c=f.data(this._elements[d],"_dropData"))&&c.callHandlers(e,null,a,b);this.clear()},clear:function(){this._elements.each(function(){f.removeData(this,"_dropData")});this._elements=f();delete this.dragging}}); 81f.Drag.responder=f.Drop;f.extend(f.Drop.prototype,{callHandlers:function(a,b,c,e){for(var d=this[a]?this[a].length:0,g=0;g<d;g++)this[a][g].call(b||this.element[0],c,this,e)},cache:function(a){this._cache=a!=null?a:true},cancel:function(){this._canceled=true}})})(jQuery); 82(function(b){var c=b(),j=0,d=b(window),k=0,l=0,m;b(function(){k=d.width();l=d.height()});b.event.special.resize={setup:function(){if(this!==window){c.push(this);b.unique(c)}return this!==window},teardown:function(){c=c.not(this);return this!==window},add:function(h){h.origHandler=h.handler;h.handler=function(a,e){var f=this===window;if(f&&a.originalEvent){a=d.width();f=d.height();if(a!=k||f!=l){k=a;l=f;clearTimeout(m);m=setTimeout(function(){d.trigger("resize")},1)}}else if(j===0){j++;e=e===false? 83a.target:this;b.event.handle.call(e,a);if(!a.isPropagationStopped()){for(var g=c.index(this),n=c.length,i,o;++g<n&&(i=c[g])&&(f||b.contains(e,i));){b.event.handle.call(i,a);if(a.isPropagationStopped())for(;++g<n&&(o=c[g]);)if(!b.contains(i,o)){g--;break}}a.stopImmediatePropagation()}j--}else h.origHandler.call(this,a,e)}}};b([document,window]).bind("resize",function(){})})(jQuery); 84(function(b){var c=function(){return false},e=function(){return true};b.Event.prototype.isPaused=c;b.Event.prototype.pause=function(){this.pausedState={isDefaultPrevented:this.isDefaultPrevented()?e:c,isPropagationStopped:this.isPropagationStopped()?e:c};this.stopImmediatePropagation();this.preventDefault();this.isPaused=e};b.Event.prototype.resume=function(){var a=this.handleObj,g=this.currentTarget,d=jQuery.event.special[a.origType],h=d&&d.handle;d||(jQuery.event.special[a.origType]={});jQuery.event.special[a.origType].handle= 85function(f){if(f.handleObj===a&&f.currentTarget===g)if(d)jQuery.event.special[a.origType].handle=h;else delete jQuery.event.special[a.origType]};delete this.pausedState;this.isPaused=this.isImmediatePropagationStopped=c;this.isPropagationStopped()||b.event.trigger(this,[],this.target)}})(jQuery); 86(function(h){var p=function(a){return a.replace(/^\/\//,"").replace(/[\/\.]/g,"_")},s=h.makeArray,B=1,e=h.View=function(a,b,c,d){if(typeof c==="function"){d=c;c=undefined}var f=C(b);if(f.length){var g=h.Deferred();f.push(t(a,true));h.when.apply(h,f).then(function(j){var k=s(arguments),l=k.pop()[0];if(n(b))b=u(j);else for(var m in b)if(n(b[m]))b[m]=u(k.shift());k=l(b,c);g.resolve(k);d&&d(k)});return g.promise()}else{var i;f=typeof d==="function";g=t(a,f);if(f){i=g;g.done(function(j){d(j(b,c))})}else g.done(function(j){i= 87j(b,c)});return i}},v=function(a,b){if(!a.match(/[^\s]/))throw"$.View ERROR: There is no template or an empty template at "+b;},t=function(a,b){return h.ajax({url:a,dataType:"view",async:b})},n=function(a){return a&&h.isFunction(a.always)},C=function(a){var b=[];if(n(a))return[a];else for(var c in a)n(a[c])&&b.push(a[c]);return b},u=function(a){return h.isArray(a)&&a.length===3&&a[1]==="success"?a[0]:a};h.ajaxTransport("view",function(a,b){var c=b.url;a=c.match(/\.[\w\d]+$/);var d,f,g,i,j=function(l){l= 88d.renderer(g,l);if(e.cache)e.cached[g]=l;return{view:l}};if(f=document.getElementById(c))a="."+f.type.match(/\/(x\-)?(.+)/)[2];if(!a){a=e.ext;c+=e.ext}g=p(c);if(c.match(/^\/\//)){var k=c.substr(2);c=typeof steal==="undefined"?(c="/"+k):steal.root.mapJoin(k)+""}d=e.types[a];
88return{send:function(l,m){if(e.cached[g])return m(200,"success",{view:e.cached[g]});else if(f)m(200,"success",j(f.innerHTML));else i=h.ajax({async:b.async,url:c,dataType:"text",error:function(){v("",c);m(404)},success:function(w){v(w, 89c);m(200,"success",j(w))}})},abort:function(){i&&i.abort()}}});h.extend(e,{hookups:{},hookup:function(a){var b=++B;e.hookups[b]=a;return b},cached:{},cache:true,register:function(a){this.types["."+a.suffix]=a;window.steal&&steal.type(a.suffix+" view js",function(b,c){var d=e.types["."+b.type],f=p(b.rootSrc+"");b.text=d.script(f,b.text);c()})},types:{},ext:".ejs",registerScript:function(a,b,c){return"$.View.preload('"+b+"',"+e.types["."+a].script(b,c)+");"},preload:function(a,b){e.cached[a]=function(c, 90d){return b.call(c,c,d)}}});window.steal&&steal.type("view js",function(a,b){var c=e.types["."+a.type],d=p(a.rootSrc+"");a.text="steal('"+(c.plugin||"jquery/view/"+a.type)+"').then(function($){$.View.preload('"+d+"',"+a.text+");\n})";b()});var x,o,y,z,q,A,r,D={val:true,text:true};x=function(a){var b=h.fn[a];h.fn[a]=function(){var c=s(arguments),d,f,g=this;if(n(c[0])){c[0].done(function(i){o.call(g,[i],b)});return this}else if(y(c)){if(d=A(c)){f=c[d];c[d]=function(i){o.call(g,[i],b);f.call(g,i)};e.apply(e, 91c);return this}c=e.apply(e,c);if(n(c)){c.done(function(i){o.call(g,[i],b)});return this}else c=[c]}return D[a]?b.apply(this,c):o.call(this,c,b)}};o=function(a,b){var c;for(var d in e.hookups)break;if(d&&a[0]&&z(a[0])){c=e.hookups;e.hookups={};a[0]=h(a[0])}b=b.apply(this,a);c&&r(a[0],c);return b};y=function(a){var b=typeof a[1];return typeof a[0]=="string"&&(b=="object"||b=="function")&&!q(a[1])};q=function(a){return a.nodeType||a.jquery};z=function(a){if(q(a))return true;else if(typeof a==="string"){a= 92h.trim(a);return a.substr(0,1)==="<"&&a.substr(a.length-1,1)===">"&&a.length>=3}else return false};A=function(a){return typeof a[3]==="function"?3:typeof a[2]==="function"&&2};r=function(a,b){var c,d=0,f,g;a=a.filter(function(){return this.nodeType!=3});a=a.add("[data-view-id]",a);for(c=a.length;d<c;d++)if(a[d].getAttribute&&(f=a[d].getAttribute("data-view-id"))&&(g=b[f])){g(a[d],f);delete b[f];a[d].removeAttribute("data-view-id")}h.extend(e.hookups,b)};h.fn.hookup=function(){var a=e.hookups;e.hookups= 93{};r(this,a);return this};h.each(["prepend","append","after","before","text","html","replaceWith","val"],function(a,b){x(b)})})(jQuery); 94(function(f){f.String.rsplit=function(a,e){for(var b=e.exec(a),c=[],d;b!==null;){d=b.index;if(d!==0){c.push(a.substring(0,d));a=a.slice(d)}c.push(b[0]);a=a.slice(b[0].length);b=e.exec(a)}a!==""&&c.push(a);return c}})(jQuery); 95(function(i){var v=function(a){eval(a)},p=i.String.rsplit,k=i.extend,w=i.isArray,x=/\r\n/g,y=/\r/g,z=/\n/g,A=/\n/,B=/\\/g,q=/"/g,C=/'/g,D=/\t/g,E=/\{/g,F=/\}/g,r=/\s*\(([\$\w]+)\)\s*->([^\n]*)/,s=function(a){return a.replace(B,"\\\\").replace(z,"\\n").replace(q,'\\"').replace(D,"\\t")},G=function(a){return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(q,""").replace(C,"'")},m=i.View,n=function(a){var b=a.match(E);a=a.match(F);return(b?b.length:0)-(a?a.length:0)}, 96g=function(a){if(this.constructor!=g){var b=new g(a);return function(c,e){return b.render(c,e)}}if(typeof a=="function")this.template={fn:a};else{k(this,g.options,a);this.template=H(this.text,this.type,this.name)}};window.jQuery&&(jQuery.EJS=g);g.prototype.render=function(a,b){a=a||{};this._extra_helpers=b;b=new g.Helpers(a,b||{});return this.template.fn.call(a,a,b)};k(g,{text:function(a){if(typeof a=="string")return a;
96if(a===null||a===undefined)return"";var b=a.hookup&&function(c,e){a.hookup.call(a, 97c,e)}||typeof a=="function"&&a||w(a)&&function(c,e){for(var d=0;d<a.length;d++)a[d].hookup?a[d].hookup(c,e):a[d](c,e)};if(b)return"data-view-id='"+m.hookup(b)+"'";return a.toString?a.toString():""},clean:function(a){return typeof a=="string"?G(a):typeof a=="number"?a:g.text(a)},options:{type:"<",ext:".ejs"}});var t=function(a,b,c){b=p(b,A);for(var e=0;e<b.length;e++)I(a,b[e],c)},I=function(a,b,c){a.lines++;b=p(b,a.splitter);for(var e,d=0;d<b.length;d++){e=b[d];e!==null&&c(e,a)}},J=function(a,b){var c= 98{};k(c,{left:a+"%",right:"%"+b,dLeft:a+"%%",dRight:"%%"+b,eeLeft:a+"%==",eLeft:a+"%=",cmnt:a+"%#",scan:t,lines:0});c.splitter=new RegExp("("+[c.dLeft,c.dRight,c.eeLeft,c.eLeft,c.cmnt,c.left,c.right+"\n",c.right,"\n"].join(")|(").replace(/\[/g,"\\[").replace(/\]/g,"\\]")+")");return c},H=function(a,b,c){a=a.replace(x,"\n").replace(y,"\n");b=b||"<";var e=new g.Buffer(["var ___v1ew = [];"],[]),d="",u=function(h){e.push("___v1ew.push(",'"',s(h),'");')},l=null,o=function(){d=""},j=[];t(J(b,b==="["?"]": 99">"),a||"",function(h,f){if(l===null)switch(h){case "\n":d+="\n";u(d);e.cr();o();break;case f.left:case f.eLeft:case f.eeLeft:case f.cmnt:l=h;d.length>0&&u(d);o();break;case f.dLeft:d+=f.left;break;default:d+=h;break}else switch(h){case f.right:switch(l){case f.left:h=n(d);f=j.length&&h==-1?j.pop():";";f==="));"&&e.push("return ___v1ew.join('')");e.push(d,f);h===1&&j.push(";");break;case f.eLeft:(h=n(d))&&j.push("));");if(r.test(d)){f=d.match(r);d="function(__){var "+f[1]+"=$(__);"+f[2]+"}"}e.push("___v1ew.push(", 100"jQuery.EJS.clean(",d,h?"var ___v1ew = [];":"));");break;case f.eeLeft:(h=n(d))&&j.push("));");e.push("___v1ew.push(","jQuery.EJS.text(",d,h?"var ___v1ew = [];":"));");break}l=null;o();break;case f.dRight:d+=f.right;break;default:d+=h;break}});d.length>0&&e.push("___v1ew.push(",'"',s(d)+'");');a={out:"try { with(_VIEW) { with (_CONTEXT) {"+e.close()+" return ___v1ew.join('')}}}catch(e){e.lineNumber=null;throw e;}"};v.call(a,"this.fn = (function(_CONTEXT,_VIEW){"+a.out+"});\r\n//@ sourceURL="+c+".js"); 101return a};g.Buffer=function(a,b){this.line=[];this.script=[];this.post=b;this.push.apply(this,a)};g.Buffer.prototype={push:function(){this.line.push.apply(this.line,arguments)},cr:function(){this.script.push(this.line.join(""),"\n");this.line=[]},close:function(){if(this.line.length>0){this.script.push(this.line.join(""));this.line=[]}this.post.length&&this.push.apply(this,this.post);this.script.push(";");return this.script.join("")}};g.Helpers=function(a,b){this._data=a;this._extras=b;k(this,b)}; 102g.Helpers.prototype={plugin:function(){var a=i.makeArray(arguments),b=a.shift();return function(c){c=i(c);c[b].apply(c,a)}},view:function(a,b,c){c=c||this._extras;b=b||this._data;return m(a,b,c)}};m.register({suffix:"ejs",script:function(a,b){return"jQuery.EJS(function(_CONTEXT,_VIEW) { "+(new g({text:b,name:a})).template.out+" })"},renderer:function(a,b){return g({text:b,name:a})}})})(jQuery); 103(function(){function r(a,b,d,c){c={data:c||(b?b.data:{}),_wrap:b?b._wrap:null,tmpl:null,parent:b||null,nodes:[],calls:H,nest:I,wrap:J,html:K,update:L};a&&jQuery.extend(c,a,{nodes:[],parent:b});if(d){c.tmpl=d;c._ctnt=c._ctnt||c.tmpl(jQuery,c);c.key=++s;(x.length?t:l)[s]=c}return c}function u(a,b,d){var c;d=d?jQuery.map(d,function(f){return typeof f==="string"?a.key?f.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+p+'="'+a.key+'" $2'):f:u(f,a,f._ctnt)}):a;if(b)return d;d=d.join("");d.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/, 104function(f,e,g,i){c=jQuery(g).get();B(c);if(e)c=y(e).concat(c);if(i)c=c.concat(y(i))});return c?c:y(d)}function y(a){var b=document.createElement("div");b.innerHTML=a;return jQuery.makeArray(b.childNodes)}function C(a){return new Function("jQuery","$item","var $=jQuery,call,_=[],$data=$item.data;with($data){_.push('"+jQuery.trim(a).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g, 105function(b,d,c,f,e,g,i){b=jQuery.tmpl.tag[c];if(!b)throw"Template command not found: "+c;c=b._default||[];if(g&&!/\w$/.test(e)){e+=g;g=""}if(e){e=z(e);i=i?","+z(i)+")":g?")":"";i=g?e.indexOf(".")>-1?e+g:"("+e+").call($item"+i:e;g=g?i:"(typeof("+e+")==='function'?("+e+").call($item):("+e+"))"}else g=i=c.$1||"null";f=z(f);return"');
105"+b[d?"close":"open"].split("$notnull_1").join(e?"typeof("+e+")!=='undefined' && ("+e+")!=null":"true").split("$1a").join(g).split("$1").join(i).split("$2").join(f?f.replace(/\s*([^\(]+)\s*(\((.*?)\))?/g, 106function(o,m,v,k){return(k=k?","+k+")":v?")":"")?"("+m+").call($item"+k:o}):c.$2||"")+"_.push('"})+"');}return _;")}function D(a,b){a._wrap=u(a,true,jQuery.isArray(b)?b:[E.test(b)?b:jQuery(b).html()]).join("")}function z(a){return a?a.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function M(a){var b=document.createElement("div");b.appendChild(a.cloneNode(true));return b.innerHTML}function B(a){function b(m){function v(A){A+=d;h=e[A]=e[A]||r(h,l[h.parent.key+d]||h.parent,null,true)}var k,j=m,h,q; 107if(q=m.getAttribute(p)){for(;j.parentNode&&(j=j.parentNode).nodeType===1&&!(k=j.getAttribute(p)););if(k!==q){j=j.parentNode?j.nodeType===11?0:j.getAttribute(p)||0:0;if(!(h=l[q])){h=t[q];h=r(h,l[j]||t[j],null,true);h.key=++s;l[s]=h}n&&v(q)}m.removeAttribute(p)}else if(n&&(h=jQuery.data(m,"tmplItem"))){v(h.key);l[h.key]=h;j=(j=jQuery.data(m.parentNode,"tmplItem"))?j.key:0}if(h){for(k=h;k&&k.key!=j;){k.nodes.push(m);k=k.parent}delete h._ctnt;delete h._wrap;jQuery.data(m,"tmplItem",h)}}var d="_"+n,c, 108f,e={},g,i,o;g=0;for(i=a.length;g<i;g++)if((c=a[g]).nodeType===1){f=c.getElementsByTagName("*");for(o=f.length-1;o>=0;o--)b(f[o]);b(c)}}function H(a,b,d,c){if(!a)return x.pop();x.push({_:a,tmpl:b,item:this,data:d,options:c})}function I(a,b,d){return jQuery.tmpl(jQuery.template(a),b,d,this)}function J(a,b){var d=a.options||{};d.wrapped=b;return jQuery.tmpl(jQuery.template(a.tmpl),a.data,d,a.item)}function K(a,b){var d=this._wrap;return jQuery.map(jQuery(jQuery.isArray(d)?d.join(""):d).filter(a||"*"), 109function(c){return b?c.innerText||c.textContent:c.outerHTML||M(c)})}function L(){var a=this.nodes;jQuery.tmpl(null,null,null,this).insertBefore(a[0]);jQuery(a).remove()}var F=jQuery.fn.domManip,p="_tmplitem",E=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,l={},t={},w,G={key:0,data:{}},s=0,n=0,x=[];jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){jQuery.fn[a]=function(d){var c=[];d=jQuery(d);var f,e,g;f=this.length===1&&this[0].parentNode; 110w=l||{};if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);c=this}else{e=0;for(g=d.length;e<g;e++){n=e;f=(e>0?this.clone(true):this).get();jQuery.fn[b].apply(jQuery(d[e]),f);c=c.concat(f)}n=0;c=this.pushStack(c,a,d.selector)}d=w;w=null;jQuery.tmpl.complete(d);return c}});jQuery.fn.extend({tmpl:function(a,b,d){return jQuery.tmpl(this[0],a,b,d)},tmplItem:function(){return jQuery.tmplItem(this[0])},template:function(a){return jQuery.template(a,this[0])},domManip:function(a,b, 111d){if(a[0]&&a[0].nodeType){for(var c=jQuery.makeArray(arguments),f=a.length,e=0,g;e<f&&!(g=jQuery.data(a[e++],"tmplItem")););if(f>1)c[0]=[jQuery.makeArray(a)];if(g&&n)c[2]=function(i){jQuery.tmpl.afterManip(this,i,d)};F.apply(this,c)}else F.apply(this,arguments);n=0;w||jQuery.tmpl.complete(l);return this}});jQuery.extend({tmpl:function(a,b,d,c){var f=!c;if(f){c=G;a=jQuery.template[a]||jQuery.template(null,a);t={}}else if(!a){a=c.tmpl;l[c.key]=c;c.nodes=[];c.wrapped&&D(c,c.wrapped);return jQuery(u(c, 112null,c.tmpl(jQuery,c)))}if(!a)return[];if(typeof b==="function")b=b.call(c||{});d&&d.wrapped&&D(d,d.wrapped);b=jQuery.isArray(b)?jQuery.map(b,function(e){return e?r(d,c,a,e):null}):[r(d,c,a,b)];return f?jQuery(u(c,null,b)):b},tmplItem:function(a){var b;if(a instanceof jQuery)a=a[0];for(;a&&a.nodeType===1&&!(b=jQuery.data(a,"tmplItem"))&&(a=a.parentNode););return b||G},template:function(a,b){if(b){if(typeof b==="string")b=C(b);else if(b instanceof jQuery)b=b[0]||{};if(b.nodeType)b=jQuery.data(b,"tmpl")|| 113jQuery.data(b,"tmpl",C(b.innerHTML));return typeof a==="string"?(jQuery.template[a]=b):b}return a?typeof a!=="string"?jQuery.template(null,a):jQuery.template[a]||jQuery.template(null,E.test(a)?a:jQuery(a)):null},encode:function(a){return(""+a).split("<").join("<").split(">").join(">").split('"').join(""").split("'").join("'")}});jQuery.extend(jQuery.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){_=_.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(_,$1,$2);_=[];", 114close:"call=$item.calls();_=call._.concat($item.wrap(call,_));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},"if":{open:"if(($notnull_1) && $1a){",close:"}"},"else":{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){_.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){_.push($.encode($1a));}"},"!":{open:""}},complete:function(){l={}},afterManip:function(a,b,d){var c=b.nodeType===11?jQuery.makeArray(b.childNodes): 115b.nodeType===1?[b]:[];d.call(a,b);B(c);n++}});$.View.register({suffix:"tmpl",renderer:function(a,b){var d=$.template(null,b);return function(c){return d.call($,$,{data:c}).join("")}},script:function(a,b){return"function(data){return ("+$.template(null,b)+").call(jQuery, jQuery, {data: data}).join(''); }"}});jQuery.View.ext=".tmpl"})(jQuery); 116(function(e){e.toJSON=function(a,c,b,h){if(typeof JSON=="object"&&JSON.stringify)return JSON.stringify(a,c,b);if(!h&&e.isFunction(c))a=c("",a);if(typeof b=="number")b=" ".substring(0,b);b=typeof b=="string"?b.substring(0,10):"";var f=typeof a;if(a===null)return"null";if(!(f=="undefined"||f=="function")){if(f=="number"||f=="boolean")return a+"";if(f=="string")return e.quoteString(a);if(f=="object"){if(typeof a.toJSON=="function")return e.toJSON(a.toJSON(),c,b,true);if(a.constructor===Date){b= 117a.getUTCMonth()+1;if(b<10)b="0"+b;h=a.getUTCDate();if(h<10)h="0"+h;var i=a.getUTCFullYear(),g=a.getUTCHours();if(g<10)g="0"+g;var d=a.getUTCMinutes();if(d<10)d="0"+d;var j=a.getUTCSeconds();if(j<10)j="0"+j;a=a.getUTCMilliseconds();if(a<100)a="0"+a;if(a<10)a="0"+a;return'"'+i+"-"+b+"-"+h+"T"+g+":"+d+":"+j+"."+a+'Z"'}h=e.isFunction(c)?function(k,l){return c(k,l)}:function(k,l){return l};i=b?"\n":"";j=b?" ":"";if(a.constructor===Array){g=[];for(d=0;d<a.length;d++)g.push((e.toJSON(h(d,a[d]),c,b,true)|| 118"null").replace(/^/gm,b));return"["+i+g.join(","+i)+i+"]"}var n=[];if(e.isArray(c))g=e.map(c,function(k){return typeof k=="string"||typeof k=="number"?k+"":null});for(d in a){var m;f=typeof d;if(!(g&&e.inArray(d+"",g)==-1)){if(f=="number")f='"'+d+'"';else if(f=="string")f=e.quoteString(d);else continue;m=e.toJSON(h(d,a[d]),c,b,true);typeof m!="undefined"&&n.push((f+":"+j+m).replace(/^/gm,b))}}return"{"+i+n.join(","+i)+i+"}"}}};
118e.evalJSON=function(a){if(typeof JSON=="object"&&JSON.parse)return JSON.parse(a); 119return eval("("+a+")")};e.secureEvalJSON=function(a){if(typeof JSON=="object"&&JSON.parse)return JSON.parse(a);var c=a;c=c.replace(/\\["\\\/bfnrtu]/g,"@");c=c.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]");c=c.replace(/(?:^|:|,)(?:\s*\[)+/g,"");if(/^[\],:{}\s]*$/.test(c))return eval("("+a+")");else throw new SyntaxError("Error parsing JSON, source is not valid.");};e.quoteString=function(a){if(a.match(o))return'"'+a.replace(o,function(c){var b=p[c];if(typeof b==="string")return b; 120b=c.charCodeAt();return"\\u00"+Math.floor(b/16).toString(16)+(b%16).toString(16)})+'"';return'"'+a+'"'};var o=/["\\\x00-\x1f\x7f-\x9f]/g,p={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}})(jQuery); 121(function(){jQuery.cookie=function(d,b,a){if(typeof b!="undefined"){a=a||{};if(b===null){b="";a.expires=-1}if(typeof b=="object"&&jQuery.toJSON)b=jQuery.toJSON(b);var c="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){if(typeof a.expires=="number"){c=new Date;c.setTime(c.getTime()+a.expires*24*60*60*1E3)}else c=a.expires;c="; expires="+c.toUTCString()}var e=a.path?"; path="+a.path:"",f=a.domain?"; domain="+a.domain:"";a=a.secure?"; secure":"";document.cookie=[d,"=",encodeURIComponent(b), 122c,e,f,a].join("")}else{b=null;if(document.cookie&&document.cookie!=""){a=document.cookie.split(";");for(c=0;c<a.length;c++){e=jQuery.trim(a[c]);
122if(e.substring(0,d.length+1)==d+"="){b=decodeURIComponent(e.substring(d.length+1));break}}}if(jQuery.evalJSON&&b&&b.match(/^\s*\{/))try{b=jQuery.evalJSON(b)}catch(g){}return b}}})(jQuery); 123(function(g){var i=/radio|checkbox/i,j=/[^\[\]]+/g,k=/^[\-+]?[0-9]*\.?[0-9]+([eE][\-+]?[0-9]+)?$/,l=function(b){if(typeof b=="number")return true;if(typeof b!="string")return false;return b.match(k)};g.fn.extend({formParams:function(b,d){if(!!b===b){d=b;b=null}if(b)return this.setParams(b);else if(this[0].nodeName.toLowerCase()=="form"&&this[0].elements)return jQuery(jQuery.makeArray(this[0].elements)).getParams(d);return jQuery("input[name], textarea[name], select[name]",this[0]).getParams(d)},setParams:function(b){this.find("[name]").each(function(){var d= 124b[g(this).attr("name")],a;if(d!==undefined){a=g(this);if(a.is(":radio"))a.val()==d&&a.attr("checked",true);else if(a.is(":checkbox")){d=g.isArray(d)?d:[d];g.inArray(a.val(),d)>-1&&a.attr("checked",true)}else a.val(d)}})},getParams:function(b){var d={},a;b=b===undefined?false:b;this.each(function(){var e=this;if(!((e.type&&e.type.toLowerCase())=="submit"||!e.name)){var c=e.name,f=g.data(e,"value")||g.fn.val.call([e]),h=i.test(e.type);c=c.match(j);e=!h||!!e.checked;if(b){if(l(f))f=parseFloat(f);else if(f=== 125"true")f=true;else if(f==="false")f=false;if(f==="")f=undefined}a=d;for(h=0;h<c.length-1;h++){a[c[h]]||(a[c[h]]={});a=a[c[h]]}c=c[c.length-1];if(a[c]){g.isArray(a[c])||(a[c]=a[c]===undefined?[]:[a[c]]);e&&a[c].push(f)}else if(e||!a[c])a[c]=e?f:undefined}});return d}})})(jQuery); 126(function(){var k=$.isArray,h=function(a){return typeof a==="object"&&a!==null&&a},l=$.makeArray,o=$.each,q=function(a,c,b){if(a instanceof $.Observe)p([a],b._namespace);else a=k(a)?new $.Observe.List(a):new $.Observe(a);a.bind("change"+b._namespace,function(d){var e=$.makeArray(arguments);d=e.shift();e[0]=c==="*"?b.indexOf(a)+"."+e[0]:c+"."+e[0];$.event.trigger(d,e,b)});return a},p=function(a,c){for(var b,d=0;d<a.length;d++)(b=a[d])&&b.unbind&&b.unbind("change"+c)},s=0,j=null,t=function(){if(!j){j= 127[];return true}},g=function(a,c,b){if(!a._init)if(j)j.push({t:a,ev:c,args:b});else return $.event.trigger(c,b,a,true)},u=0,v=function(){var a=j.length,c=j.slice(0),b;j=null;u++;for(var d=0;d<a;d++){b=c[d];$.event.trigger({type:b.ev,batchNum:u},b.args,b.t)}},m=function(a,c,b){a.each(function(d,e){b[d]=h(e)&&typeof e[c]=="function"?e[c]():e});return b};$.Class("jQuery.Observe",{init:function(a){this._data={};this._namespace=".observe"+ ++s;this._init=true;this.attrs(a);delete this._init},attr:function(a, 128c){if(c===undefined)return this._get(a);else{this._set(a,c);return this}},each:function(){return o.apply(null,[this.__get()].concat(l(arguments)))},removeAttr:function(a){a=k(a)?a:a.split(".");var c=a.shift(),b=this._data[c];if(a.length)return b.removeAttr(a);else{delete this._data[c];g(this,"change",[c,"remove",undefined,b]);return b}},_get:function(a){a=k(a)?a:(""+a).split(".");var c=this.__get(a.shift());return a.length?c?c._get(a):undefined:c},__get:function(a){return a?this._data[a]:this._data}, 129_set:function(a,c){var b=k(a)?a:(""+a).split(".");a=b.shift();var d=this.__get(a);if(h(d)&&b.length)d._set(b,c);else if(b.length)throw"jQuery.Observe: set a property on an object that does not exist";else if(c!==d){b=this.__get().hasOwnProperty(a)?"set":"add";this.__set(a,h(c)?q(c,a,this):c);g(this,"change",[a,b,c,d]);d&&p([d],this._namespace)}},__set:function(a,c){this._data[a]=c;a in this.constructor.prototype||(this[a]=c)},bind:function(){$.fn.bind.apply($([this]),arguments);return this},unbind:function(){$.fn.unbind.apply($([this]), 130arguments);return this},serialize:function(){return m(this,"serialize",{})},attrs:function(a,c){if(a===undefined)return m(this,"attrs",{});a=$.extend(true,{},a);var b,d=t();for(b in this._data){var e=this._data[b],f=a[b];if(f===undefined)c&&this.removeAttr(b);else{if(h(e)&&h(f))e.attrs(f,c);else e!=f&&this._set(b,f);delete a[b]}}for(b in a){f=a[b];this._set(b,f)}d&&v()}});var r=jQuery.Observe("jQuery.Observe.List",{init:function(a,c){this.length=0;this._namespace=".list"+ ++s;this._init=true;this.bind("change", 131this.proxy("_changes"));this.push.apply(this,l(a||[]));$.extend(this,c);this.comparator&&this.sort();delete this._init},_changes:function(a,c,b,d,e){if(this.comparator&&/^\d+./.test(c)){var f=+/^\d+/.exec(c)[0],i=this[f],n=this.sortedIndex(i);if(n!==f){[].splice.call(this,f,1);[].splice.call(this,n,0,i);g(this,"move",[i,n,f]);a.stopImmediatePropagation();g(this,"change",[c.replace(/^\d+/,n),b,d,e]);return}}if(c.indexOf(".")===-1)if(b==="add")g(this,b,[d,+c]);else b==="remove"&&g(this,b,[e,+c])},sortedIndex:function(a){var c= 132a.attr(this.comparator),b=0,d;for(d=0;d<this.length;d++)if(a===this[d])b=-1;else if(c<=this[d].attr(this.comparator))return d+b;return d+b},__get:function(a){return a?this[a]:this},__set:function(a,c){this[a]=c},serialize:function(){return m(this,"serialize",[])},splice:function(a,c){var b=l(arguments),d;for(d=2;d<b.length;d++){var e=b[d];if(h(e))b[d]=q(e,"*",this)}if(c===undefined)c=b[1]=this.length-a;d=[].splice.apply(this,b);
132if(c>0){g(this,"change",[""+a,"remove",undefined,d]);p(d,this._namespace)}b.length> 1332&&g(this,"change",[""+a,"add",b.slice(2),d]);return d},attrs:function(a,c){if(a===undefined)return m(this,"attrs",[]);a=a.slice(0);for(var b=Math.min(a.length,this.length),d=t(),e=0;e<b;e++){var f=this[e],i=a[e];if(h(f)&&h(i))f.attrs(i,c);else f!=i&&this._set(e,i)}if(a.length>this.length)this.push(a.slice(this.length));else a.length<this.length&&c&&this.splice(a.length);d&&v()},sort:function(a,c){var b=this.comparator;[].sort.apply(this,b?[function(d,e){d=d[b];e=e[b];return d===e?0:d<e?-1:1}]:[]); 134!c&&g(this,"reset")}}),w=function(a){return a[0]&&$.isArray(a[0])?a[0]:l(a)};o({push:"length",unshift:0},function(a,c){r.prototype[a]=function(){for(var b=w(arguments),d=c?this.length:0,e=0;e<b.length;e++){var f=b[e];if(h(f))b[e]=q(f,"*",this)}if(b.length==1&&this.comparator){this.splice(this.sortedIndex(b[0]),0,b[0]);return this.length}e=[][a].apply(this,b);if(this.comparator&&b.length>1){this.sort(null,true);g(this,"reset",[b])}else g(this,"change",[""+d,"add",b,undefined]);return e}});o({pop:"length", 135shift:0},function(a,c){r.prototype[a]=function(){var b=w(arguments),d=c&&this.length?this.length-1:0;b=[][a].apply(this,b);g(this,"change",[""+d,"remove",undefined,[b]]);b&&b.unbind&&b.unbind("change"+this._namespace);return b}});r.prototype.indexOf=[].indexOf||function(a){return $.inArray(a,this)};$.O=function(a,c){return k(a)||a instanceof $.Observe.List?new $.Observe.List(a,c):new $.Observe(a,c)}})(jQuery); 136(function(f){var k=/^\d+$/,l=/([^\[\]]+)|(\[\])/g,i=/\+/g,m=/([^?#]*)(#.*)?$/;f.String=f.extend(f.String||{},{deparam:function(d){if(!d||!m.test(d))return{};var j={};d=d.split("&");for(var c,g=0;g<d.length;g++){c=j;var a=d[g].split("=");if(a.length!=2)a=[a[0],a.slice(1).join("=")];var b=decodeURIComponent(a[0].replace(i," "));a=decodeURIComponent(a[1].replace(i," "));b=b.match(l);for(var e=0;e<b.length-1;e++){var h=b[e];c[h]||(c[h]=k.test(b[e+1])||b[e+1]=="[]"?[]:{});c=c[h]}lastPart=b[b.length-1]; 137if(lastPart=="[]")c.push(a);else c[lastPart]=a}return j}})})(jQuery); 138(function(b){var o=/\:([\w\.]+)/g,p=/^(?:&[^=]+=[^&]*)+/,t=function(a){var c=[];j(a,function(d,e){if(d==="className")d="class";e&&c.push(q(d),'="',q(e),'" ')});return c.join("")},q=function(a){return a.replace(/"/g,""").replace(/'/g,"'")},u=function(a,c){for(var d=0,e=0;e<a.names.length;e++){if(!c.hasOwnProperty(a.names[e]))return-1;d++}return d},r=true,k=window.location,v=encodeURIComponent,w=decodeURIComponent,j=b.each,l=b.extend;b.route=function(a,c){var d=[],e=a.replace(o,function(f,h){d.push(h); 139return"([^\\/\\&]*)"});b.route.routes[a]={test:new RegExp("^"+e+"($|&)"),route:a,names:d,defaults:c||{},length:a.split("/").length};return b.route};l(b.route,{param:function(a){var c,d=0,e,f=a.route;delete a.route;f&&(c=b.route.routes[f])||j(b.route.routes,function(m,i){e=u(i,a);if(e>d){c=i;d=e}});if(c){var h=l({},a);f=c.route.replace(o,function(m,i){delete h[i];return a[i]===c.defaults[i]?"":v(a[i])});var g;j(c.defaults,function(m,i){h[m]===i&&delete h[m]});g=b.param(h);return f+(g?"&"+g:"")}return b.isEmptyObject(a)? 140"":"&"+b.param(a)},deparam:function(a){var c={length:-1};j(b.route.routes,function(h,g){if(g.test.test(a)&&g.length>c.length)c=g});if(c.length>-1){var d=a.match(c.test),e=d.shift(),f=(e=a.substr(e.length-(d[d.length-1]==="&"?1:0)))&&p.test(e)?b.String.deparam(e.slice(1)):{};f=l(true,{},c.defaults,f);j(d,function(h,g){if(g&&g!=="&")f[c.names[h]]=w(g)});f.route=c.route;return f}if(a.charAt(0)!=="&")a="&"+a;return p.test(a)?b.String.deparam(a.slice(1)):{}},data:new b.Observe({}),routes:{},ready:function(a){if(a=== 141false)r=false;if(a===true||r===true)s();return b.route},url:function(a,c){return c?"#!"+b.route.param(l({},n,a)):"#!"+b.route.param(a)},link:function(a,c,d,e){return"<a "+t(l({href:b.route.url(c,e)},d))+">"+a+"</a>"},current:function(a){return k.hash=="#!"+b.route.param(a)}});b(function(){b.route.ready()});j(["bind","unbind","delegate","undelegate","attr","attrs","serialize","removeAttr"],function(a,c){b.route[c]=function(){return b.route.data[c].apply(b.route.data,arguments)}});var n,s=function(){var a= 142k.hash.substr(1,1)==="!"?k.hash.slice(2):k.hash.slice(1);n=b.route.deparam(a);b.route.attrs(n,true)};b(window).bind("hashchange",s);b.route.bind("change",function(a){var c;return function(){var d=arguments,e=this;clearTimeout(c);c=setTimeout(function(){a.apply(e,d)},1)}}(function(){k.hash="#!"+b.route.param(b.route.serialize())}))})(jQuery); 143(function(g){var l=g.isArray,n=function(b){var a=0;for(var c in b)a++;return a};g.Object={};var j=g.Object.same=function(b,a,c,e,h,d){var i=typeof b,m=l(b),k=typeof c;if(k=="string"||c===null){c=o[c];k="function"}if(k=="function")return c(b,a,e,h);c=c||{};if(d===-1)return i==="object"||b===a;if(i!==typeof a||m!==l(a))return false;if(b===a)return true;if(m){if(b.length!==a.length)return false;for(d=0;d<b.length;d++){e=c[d]===undefined?c["*"]:c[d];if(!j(b[d],a[d],b,a,e))return false}return true}else if(i=== 144"object"||i==="function"){h=g.extend({},a);for(var f in b){e=c[f]===undefined?c["*"]:c[f];
144if(!j(b[f],a[f],e,b,a,d===false?-1:undefined))return false;delete h[f]}for(f in h)if(c[f]===undefined||!j(undefined,a[f],c[f],b,a,d===false?-1:undefined))return false;return true}return false};g.Object.subsets=function(b,a,c){var e=a.length,h=[];n(b);for(var d=0;d<e;d++){var i=a[d];g.Object.subset(b,i,c)&&h.push(i)}return h};g.Object.subset=function(b,a,c){c=c||{};for(var e in a)if(!j(b[e],a[e],c[e],b,a))return false; 145return true};var o={"null":function(){return true},i:function(b,a){return(""+b).toLowerCase()==(""+a).toLowerCase()}}})(jQuery); 146/* End */ 147; 148; /* Start:/application/js/libs/jquery.event.move.js*/ 149// jquery.event.move 150// 151// 1.3.1 152// 153// Stephen Band 154// 155// Triggers 'movestart', 'move' and 'moveend' events after 156// mousemoves following a mousedown cross a distance threshold, 157// similar to the native 'dragstart', 'drag' and 'dragend' events. 158// Move events are throttled to animation frames. Move event objects 159// have the properties: 160// 161// pageX: 162// pageY: Page coordinates of pointer. 163// startX: 164// startY: Page coordinates of pointer at movestart. 165// distX: 166// distY: Distance the pointer has moved since movestart. 167// deltaX: 168// deltaY: Distance the finger has moved since last event. 169// velocityX: 170// velocityY: Average velocity over last few events. 171 172 173(function (module) { 174 if (typeof define === 'function' && define.amd) { 175 // AMD. Register as an anonymous module. 176 define(['jquery'], module); 177 } else { 178 // Browser globals 179 module(jQuery); 180 } 181})(function(jQuery, undefined){ 182 183 var // Number of pixels a pressed pointer travels before movestart 184 // event is fired. 185 threshold = 6, 186 187 add = jQuery.event.add, 188 189 remove = jQuery.event.remove, 190 191 // Just sugar, so we can have arguments in the same order as 192 // add and remove. 193 trigger = function(node, type, data) { 194 jQuery.event.trigger(type, data, node); 195 }, 196 197 // Shim for requestAnimationFrame, falling back to timer. See: 198 // see http://paulirish.com/2011/requestanimationframe-for-smart-animating/ 199 requestFrame = (function(){ 200 return ( 201 window.requestAnimationFrame || 202 window.webkitRequestAnimationFrame || 203 window.mozRequestAnimationFrame || 204 window.oRequestAnimationFrame || 205 window.msRequestAnimationFrame || 206 function(fn, element){ 207 return window.setTimeout(function(){ 208 fn(); 209 }, 25); 210 } 211 ); 212 })(), 213 214 ignoreTags = { 215 textarea: true, 216 input: true, 217 select: true, 218 button: true 219 }, 220 221 mouseevents = { 222 move: 'mousemove', 223 cancel: 'mouseup dragstart', 224 end: 'mouseup' 225 }, 226 227 touchevents = { 228 move: 'touchmove', 229 cancel: 'touchend', 230 end: 'touchend' 231 }; 232 233 234 // Constructors 235 236 function Timer(fn){ 237 var callback = fn, 238 active = false, 239 running = false; 240 241 function trigger(time) { 242 if (active){ 243 callback(); 244 requestFrame(trigger); 245 running = true; 246 active = false; 247 } 248 else { 249 running = false; 250 } 251 } 252 253 this.kick = function(fn) { 254 active = true; 255 if (!running) { trigger(); } 256 }; 257 258 this.end = function(fn) { 259 var cb = callback; 260 261 if (!fn) { return; } 262 263 // If the timer is not running, simply call the end callback. 264 if (!running) { 265 fn(); 266 } 267 // If the timer is running, and has been kicked lately, then 268 // queue up the current callback and the end callback, otherwise 269 // just the end callback. 270 else { 271 callback = active ? 272 function(){ cb(); fn(); } : 273 fn ; 274 275 active = true; 276 } 277 }; 278 } 279 280 281 // Functions 282 283 function returnTrue() { 284 return true; 285 } 286 287 function returnFalse() { 288 return false; 289 } 290 291 function preventDefault(e) { 292 e.preventDefault(); 293 } 294 295 function preventIgnoreTags(e) { 296 // Don't prevent interaction with form elements. 297 if (ignoreTags[ e.target.tagName.toLowerCase() ]) { return; } 298 299 e.preventDefault(); 300 } 301 302 function isLeftButton(e) { 303 // Ignore mousedowns on any button other than the left (or primary) 304 // mouse button, or when a modifier key is pressed. 305 return (e.which === 1 && !e.ctrlKey && !e.altKey); 306 } 307 308 function identifiedTouch(touchList, id) { 309 var i, l; 310 311 if (touchList.identifiedTouch) { 312 return touchList.identifiedTouch(id); 313 } 314 315 // touchList.identifiedTouch() does not exist in 316 // webkit yet⦠we must do the search ourselves... 317 318 i = -1; 319 l = touchList.length; 320 321 while (++i < l) { 322 if (touchList[i].identifier === id) { 323 return touchList[i]; 324 } 325 } 326 } 327 328 function changedTouch(e, event) { 329 var touch = identifiedTouch(e.changedTouches, event.identifier); 330 331 // This isn't the touch you're looking for. 332 if (!touch) { return; } 333 334 // Chrome Android (at least) includes touches that have not 335 // changed in e.changedTouches. That's a bit annoying. Check 336 // that this touch has changed. 337 if (touch.pageX === event.pageX && touch.pageY === event.pageY) { return; } 338 339 return touch; 340 } 341 342 343 // Handlers that decide when the first movestart is triggered 344 345 function mousedown(e){ 346 var data; 347 348 if (!isLeftButton(e)) { return; } 349 350 data = { 351 target: e.target, 352 startX: e.pageX, 353 startY: e.pageY, 354 timeStamp: e.timeStamp 355 }; 356 357 add(document, mouseevents.move, mousemove, data); 358 add(document, mouseevents.cancel, mouseend, data); 359 } 360 361 function mousemove(e){ 362 var data = e.data; 363 364 checkThreshold(e, data, e, removeMouse); 365 } 366 367 function mouseend(e) { 368 removeMouse(); 369 } 370 371 function removeMouse() { 372 remove(document, mouseevents.move, mousemove); 373 remove(document, mouseevents.cancel, mouseend); 374 } 375 376 function touchstart(e) { 377 var touch, template; 378 379 // Don't get in the way of interaction with form elements. 380 if (ignoreTags[ e.target.tagName.toLowerCase() ]) { return; } 381 382 touch = e.changedTouches[0]; 383
384 // iOS live updates the touch objects whereas Android gives us copies. 385 // That means we can't trust the touchstart object to stay the same, 386 // so we must copy the data. This object acts as a template for 387 // movestart, move and moveend event objects. 388 template = { 389 target: touch.target, 390 startX: touch.pageX, 391 startY: touch.pageY, 392 timeStamp: e.timeStamp, 393 identifier: touch.identifier 394 }; 395 396 // Use the touch identifier as a namespace, so that we can later 397 // remove handlers pertaining only to this touch. 398 add(document, touchevents.move + '.' + touch.identifier, touchmove, template); 399 add(document, touchevents.cancel + '.' + touch.identifier, touchend, template); 400 } 401 402 function touchmove(e){ 403 var data = e.data, 404 touch = changedTouch(e, data); 405 406 if (!touch) { return; } 407 408 checkThreshold(e, data, touch, removeTouch); 409 } 410 411 function touchend(e) { 412 var template = e.data, 413 touch = identifiedTouch(e.changedTouches, template.identifier); 414 415 if (!touch) { return; } 416 417 removeTouch(template.identifier); 418 } 419 420 function removeTouch(identifier) { 421 remove(document, '.' + identifier, touchmove); 422 remove(document, '.' + identifier, touchend); 423 } 424 425 426 // Logic for deciding when to trigger a movestart. 427 428 function checkThreshold(e, template, touch, fn) { 429 var distX = touch.pageX - template.startX, 430 distY = touch.pageY - template.startY; 431 432 // Do nothing if the threshold has not been crossed. 433 if ((distX * distX) + (distY * distY) < (threshold * threshold)) { return; } 434 435 triggerStart(e, template, touch, distX, distY, fn); 436 } 437 438 function handled() { 439 // this._handled should return false once, and after return true. 440 this._handled = returnTrue; 441 return false; 442 } 443 444 function flagAsHandled(e) { 445 e._handled(); 446 } 447 448 function triggerStart(e, template, touch, distX, distY, fn) { 449 var node = template.target, 450 touches, time; 451 452 touches = e.targetTouches; 453 time = e.timeStamp - template.timeStamp; 454 455 // Create a movestart object with some special properties that 456 // are passed only to the movestart handlers. 457 template.type = 'movestart'; 458 template.distX = distX; 459 template.distY = distY; 460 template.deltaX = distX; 461 template.deltaY = distY; 462 template.pageX = touch.pageX; 463 template.pageY = touch.pageY; 464 template.velocityX = distX / time; 465 template.velocityY = distY / time; 466 template.targetTouches = touches; 467 template.finger = touches ? 468 touches.length : 469 1 ; 470 471 // The _handled method is fired to tell the default movestart 472 // handler that one of the move events is bound. 473 template._handled = handled; 474 475 // Pass the touchmove event so it can be prevented if or when 476 // movestart is handled. 477 template._preventTouchmoveDefault = function() { 478 e.preventDefault(); 479 }; 480 481 // Trigger the movestart event. 482 trigger(template.target, template); 483 484 // Unbind handlers that tracked the touch or mouse up till now. 485 fn(template.identifier); 486 } 487 488 489 // Handlers that control what happens following a movestart 490 491 function activeMousemove(e) { 492 var event = e.data.event, 493 timer = e.data.timer; 494 495 updateEvent(event, e, e.timeStamp, timer); 496 } 497 498 function activeMouseend(e) { 499 var event = e.data.event, 500 timer = e.data.timer; 501 502 removeActiveMouse(); 503 504 endEvent(event, timer, function() { 505 // Unbind the click suppressor, waiting until after mouseup 506 // has been handled. 507 setTimeout(function(){ 508 remove(event.target, 'click', returnFalse); 509 }, 0); 510 }); 511 } 512 513 function removeActiveMouse(event) { 514 remove(document, mouseevents.move, activeMousemove); 515 remove(document, mouseevents.end, activeMouseend); 516 } 517 518 function activeTouchmove(e) { 519 var event = e.data.event, 520 timer = e.data.timer, 521 touch = changedTouch(e, event); 522 523 if (!touch) { return; } 524 525 // Stop the interface from gesturing 526 e.preventDefault(); 527 528 event.targetTouches = e.targetTouches; 529 updateEvent(event, touch, e.timeStamp, timer); 530 } 531 532 function activeTouchend(e) { 533 var event = e.data.event, 534 timer = e.data.timer, 535 touch = identifiedTouch(e.changedTouches, event.identifier); 536 537 // This isn't the touch you're looking for. 538 if (!touch) { return; } 539 540 removeActiveTouch(event); 541 endEvent(event, timer); 542 } 543 544 function removeActiveTouch(event) {
545 remove(document, '.' + event.identifier, activeTouchmove); 546 remove(document, '.' + event.identifier, activeTouchend); 547 } 548 549 550 // Logic for triggering move and moveend events 551 552 function updateEvent(event, touch, timeStamp, timer) { 553 var time = timeStamp - event.timeStamp; 554 555 event.type = 'move'; 556 event.distX = touch.pageX - event.startX; 557 event.distY = touch.pageY - event.startY; 558 event.deltaX = touch.pageX - event.pageX; 559 event.deltaY = touch.pageY - event.pageY; 560 561 // Average the velocity of the last few events using a decay 562 // curve to even out spurious jumps in values. 563 event.velocityX = 0.3 * event.velocityX + 0.7 * event.deltaX / time; 564 event.velocityY = 0.3 * event.velocityY + 0.7 * event.deltaY / time; 565 event.pageX = touch.pageX; 566 event.pageY = touch.pageY; 567 568 timer.kick(); 569 } 570 571 function endEvent(event, timer, fn) { 572 timer.end(function(){ 573 event.type = 'moveend'; 574 575 trigger(event.target, event); 576 577 return fn && fn(); 578 }); 579 } 580 581 582 // jQuery special event definition 583 584 function setup(data, namespaces, eventHandle) { 585 // Stop the node from being dragged 586 //add(this, 'dragstart.move drag.move', preventDefault); 587 588 // Prevent text selection and touch interface scrolling 589 //add(this, 'mousedown.move', preventIgnoreTags); 590 591 // Tell movestart default handler that we've handled this 592 add(this, 'movestart.move', flagAsHandled); 593 594 // Don't bind to the DOM. For speed. 595 return true; 596 } 597 598 function teardown(namespaces) { 599 remove(this, 'dragstart drag', preventDefault); 600 remove(this, 'mousedown touchstart', preventIgnoreTags); 601 remove(this, 'movestart', flagAsHandled); 602 603 // Don't bind to the DOM. For speed. 604 return true; 605 } 606 607 function addMethod(handleObj) { 608 // We're not interested in preventing defaults for handlers that 609 // come from internal move or moveend bindings 610 if (handleObj.namespace === "move" || handleObj.namespace === "moveend") { 611 return; 612 } 613 614 // Stop the node from being dragged 615 add(this, 'dragstart.' + handleObj.guid + ' drag.' + handleObj.guid, preventDefault, undefined, handleObj.selector); 616 617 // Prevent text selection and touch interface scrolling 618 add(this, 'mousedown.' + handleObj.guid, preventIgnoreTags, undefined, handleObj.selector); 619 } 620 621 function removeMethod(handleObj) { 622 if (handleObj.namespace === "move" || handleObj.namespace === "moveend") { 623 return; 624 } 625 626 remove(this, 'dragstart.' + handleObj.guid + ' drag.' + handleObj.guid); 627 remove(this, 'mousedown.' + handleObj.guid); 628 } 629 630 jQuery.event.special.movestart = { 631 setup: setup, 632 teardown: teardown, 633 add: addMethod, 634 remove: removeMethod, 635 636 _default: function(e) { 637 var template, data; 638 639 // If no move events were bound to any ancestors of this 640 // target, high tail it out of here. 641 if (!e._handled()) { return; } 642 643 template = { 644 target: e.target, 645 startX: e.startX, 646 startY: e.startY, 647 pageX: e.pageX, 648 pageY: e.pageY, 649 distX: e.distX, 650 distY: e.distY, 651 deltaX: e.deltaX, 652 deltaY: e.deltaY, 653 velocityX: e.velocityX, 654 velocityY: e.velocityY, 655 timeStamp: e.timeStamp, 656 identifier: e.identifier, 657 targetTouches: e.targetTouches, 658 finger: e.finger 659 }; 660 661 data = { 662 event: template, 663 timer: new Timer(function(time){ 664 trigger(e.target, template); 665 }) 666 }; 667 668 if (e.identifier === undefined) { 669 // We're dealing with a mouse 670 // Stop clicks from propagating during a move 671 add(e.target, 'click', returnFalse); 672 add(document, mouseevents.move, activeMousemove, data); 673 add(document, mouseevents.end, activeMouseend, data); 674 } 675 else { 676 // We're dealing with a touch. Stop touchmove doing 677 // anything defaulty. 678 e._preventTouchmoveDefault(); 679 add(document, touchevents.move + '.' + e.identifier, activeTouchmove, data); 680 add(document, touchevents.end + '.' + e.identifier, activeTouchend, data); 681 } 682 } 683 }; 684 685 jQuery.event.special.move = { 686 setup: function() { 687 // Bind a noop to movestart. Why? It's the movestart 688 // setup that decides whether other move events are fired. 689 add(this, 'movestart.move', jQuery.noop); 690 }, 691 692 teardown: function() { 693 remove(this, 'movestart.move', jQuery.noop); 694 } 695 }; 696 697 jQuery.event.special.moveend = { 698 setup: function() { 699 // Bind a noop to movestart. Why? It's the movestart 700 // setup that decides whether other move events are fired. 701 add(this, 'movestart.moveend', jQuery.noop); 702 }, 703 704 teardown: function() { 705 remove(this, 'movestart.moveend', jQuery.noop); 706 } 707 }; 708 709 add(document, 'mousedown.move', mousedown); 710 add(document, 'touchstart.move', touchstart); 711 712 // Make jQuery copy touch event properties over to the jQuery event 713 // object, if they are not already listed. But only do the ones we 714 // really need. IE7/8 do not have Array#indexOf(), but nor do they 715 // have touch events, so let's assume we can ignore them. 716 if (typeof Array.prototype.indexOf === 'function') { 717 (function(jQuery, undefined){ 718 var props = ["changedTouches", "targetTouches"], 719 l = props.length; 720 721 while (l--) { 722 if (jQuery.event.props.indexOf(props[l]) === -1) { 723 jQuery.event.props.push(props[l]); 724 } 725 } 726 })(jQuery); 727 }; 728}); 729 730/* End */ 731; 732; /* Start:/application/js/libs/jquery.event.swipe.js*/ 733// jQuery.event.swipe 734// 0.5 735// Stephen Band 736 737// Dependencies 738// jQuery.event.move 1.2 739 740// One of swipeleft, swiperight, swipeup or swipedown is triggered on 741// moveend, when the move has covered a threshold ratio of the dimension 742// of the target node, or has gone really fast. Threshold and velocity 743// sensitivity changed with: 744// 745// jQuery.event.special.swipe.settings.threshold 746// jQuery.event.special.swipe.settings.sensitivity 747 748(function (module) { 749 if (typeof define === 'function' && define.amd) { 750 // AMD. Register as an anonymous module. 751 define(['jquery'], module); 752 } else { 753 // Browser globals 754 module(jQuery); 755 } 756})(function(jQuery, undefined){ 757 var add = jQuery.event.add, 758 759 remove = jQuery.event.remove, 760 761 // Just sugar, so we can have arguments in the same order as 762 // add and remove. 763 trigger = function(node, type, data) { 764 jQuery.event.trigger(type, data, node); 765 }, 766 767 settings = { 768 // Ratio of distance over target finger must travel to be 769 // considered a swipe. 770 threshold: 0.4, 771 // Faster fingers can travel shorter distances to be considered
772 // swipes. 'sensitivity' controls how much. Bigger is shorter. 773 sensitivity: 6 774 }; 775 776 function moveend(e) { 777 var w, h, event; 778 779 w = e.target.offsetWidth; 780 h = e.target.offsetHeight; 781 782 // Copy over some useful properties from the move event 783 event = { 784 distX: e.distX, 785 distY: e.distY, 786 velocityX: e.velocityX, 787 velocityY: e.velocityY, 788 finger: e.finger 789 }; 790 791 // Find out which of the four directions was swiped 792 if (e.distX > e.distY) { 793 if (e.distX > -e.distY) { 794 if (e.distX/w > settings.threshold || e.velocityX * e.distX/w * settings.sensitivity > 1) { 795 event.type = 'swiperight'; 796 trigger(e.currentTarget, event); 797 } 798 } 799 else { 800 if (-e.distY/h > settings.threshold || e.velocityY * e.distY/w * settings.sensitivity > 1) { 801 event.type = 'swipeup'; 802 trigger(e.currentTarget, event); 803 } 804 } 805 } 806 else { 807 if (e.distX > -e.distY) { 808 if (e.distY/h > settings.threshold || e.velocityY * e.distY/w * settings.sensitivity > 1) { 809 event.type = 'swipedown'; 810 trigger(e.currentTarget, event); 811 } 812 } 813 else { 814 if (-e.distX/w > settings.threshold || e.velocityX * e.distX/w * settings.sensitivity > 1) { 815 event.type = 'swipeleft'; 816 trigger(e.currentTarget, event); 817 } 818 } 819 } 820 } 821 822 function getData(node) { 823 var data = jQuery.data(node, 'event_swipe'); 824 825 if (!data) { 826 data = { count: 0 }; 827 jQuery.data(node, 'event_swipe', data); 828 } 829 830 return data; 831 } 832 833 jQuery.event.special.swipe = 834 jQuery.event.special.swipeleft = 835 jQuery.event.special.swiperight = 836 jQuery.event.special.swipeup = 837 jQuery.event.special.swipedown = { 838 setup: function( data, namespaces, eventHandle ) { 839 var data = getData(this); 840 841 // If another swipe event is already setup, don't setup again. 842 if (data.count++ > 0) { return; } 843 844 add(this, 'moveend', moveend); 845 846 return true; 847 }, 848 849 teardown: function() { 850 var data = getData(this); 851 852 // If another swipe event is still setup, don't teardown. 853 if (--data.count > 0) { return; } 854 855 remove(this, 'moveend', moveend); 856 857 return true; 858 }, 859 860 settings: settings 861 }; 862}); 863/* End */ 864; 865; /* Start:/application/js/libs/jquery.sliderkit.1.9.2.pack.js*/ 866/** 867 * Slider Kit v1.9.2 (packed) 868 * http://www.kyrielles.net/sliderkit 869 * 870 * Copyright (c) 2010-2012 Alan Frog 871 * Licensed under the GNU General Public License 872 */ 873eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(7($){2p=7(){p n=3;3.2q=7(c,d){3.4=$.3r({},3.2r,d);3.8={1c:3.4.u+"-1c",1d:3.4.u+"-1d",w:3.4.u+"-w",B:3.4.u+"-1d-3s",T:3.4.u+"-1d-3t",U:3.4.u+"-w-3u",v:3.4.u+"-v",P:3.4.u+"-v-3v",2s:3.4.u+"-v-1e",16:3.4.u+"-v-2t",17:3.4.u+"-v-2u",C:3.4.u+"-1e-3w",1f:3.4.u+"-3x-1e",2v:3.4.u+"-1T-2t",2w:3.4.u+"-1T-2u",J:3.4.u+"-3y-1e",V:3.4.u+"-1T-1e"};3.q=$(c);3.w=$("."+3.8.1d,3.q);3.s=3.w.K();3.v=$("."+3.8.v,3.q);3.P=$("."+3.8.P,3.v);3.G=3.s>0?1:0;3.1C=3.P.K()>0?1:0;6(!3.G&&!3.1C){3.L("1D #3z",3.4.M,1)}3.1g=3.q.H();3.1h=3.q.I();6(!3.1g&&!3.4.1E){3.1g=3.4.H;3.q.x(\'H\',3.1g);3.L("1D #2x",3.4.M,0)}6(!3.1h){3.1h=3.4.I;3.q.x(\'I\',3.1h);3.L("1D #2x",3.4.M,0)}3.q.x(\'2y\',\'3A\');3.o=0;3.W=0;3.1i=0;3.Q=r;3.1U=0;3.2z=0;3.1j=1;3.1k=0;3.X=r;3.3B=9;3.3C=1;3.2A=9;3.2B=1l 1F;3.2C=1l 1F;3.2D=1l 1F;3.2E=1l 1F;3.1V=3.v;6(3.1C){3.2F()}3.2G();6(3.G){3.1W=$("."+3.8.w,3.q);6(3.4.1G=="1H"){3.2H()}}3.1I=!3.G?1:0;6(3.4.1X){3.q.1X(7(a,b){b>0?n.1J():n.1m();y 9})}6(3.4.2I){3.q.3D(7(a){6(a.2J==37){n.1J()}z 6(a.2J==39){n.1m()}})}6(3.4.2K&&3.G){3.1W.Y(7(){n.1m();y 9})}3.2L=3.4.1K>=3.s?3.s-1:3.4.1K<0?0:3.4.1K;6(3.4.2M){1L{3.3E()}1M(R){3.L(R,3.4.M,0)}}6(3.2N){1L{3.2N()}1M(R){3.L(R,3.4.M,0)}}6(3.4.1Y){1L{3.3F(3.4.1Y)}1M(R){3.L(R,3.4.M,0)}}3.1N(3.2L,r);6(3.4.1n){3.1o();3.2O()}6(3.4.1Z){1L{3.3G(3.4.1Z)}1M(R){3.L(R,3.4.M,0)}}6(3.G&&!3.4.2P){3.1V=3.q.3H(\'.\'+3.8.w,\'.\'+3.8.v)}y 3};3.2r={u:"20",I:3I,H:3J,1K:0,1n:t,2Q:3K,1O:9,1X:9,2I:9,1p:9,N:5,2R:9,2S:9,2T:9,21:9,2U:t,2V:"1H",22:7(){},23:7(){},O:r,2W:3L,2X:r,1G:"24",1P:3M,25:r,2Y:"1q",26:7(){},27:7(){},2Z:9,2K:9,D:9,30:9,31:9,1E:9,2P:t,2M:9,1Y:9,1Z:9,3N:9,M:9};3.L=7(a,b,c){6(b){3O("3P 3Q 3R!\\3S = "+a+" (3T 3U 3V 3W)\\32 33 = "+3.q.34("33")+"\\32 28 = "+3.q.34("28"))}6(c){y 9}};3.2O=7(){6(!3.1Q&&!3.4.1O){3.q.35(7(){6(n.X!=r){n.1r()}},7(){n.1o()})}6(3.4.1O){3.q.3X(7(){6(n.X==r){n.1o()}})}};3.2F=7(){3.S=$("3Y",3.P);3.E=$("29",3.S);3.1s=3.E.K();6(3.G&&(3.1s!=3.s)&&3.v.K()==1){3.L("1D #3Z",3.4.M,1)}6(3.4.31){3.4.N=3.s}z{7 1t(a){2a=n.E.x(a);6(2a!="1n"&&a!=""&&a!="40"){y 36(2a)}z y 0}p c=3.4.D?3.v.H():3.v.I();p d=3.E.41(t);p e=3.E.42(t);p f=1t("1u-Z")+1t("1u-43");p g=1t("1u-10")+1t("1u-44");3.s=3.1s;6(3.4.N>3.s){3.4.N=3.1s}3.11=3.4.D?e:d;3.2b=3.11*3.1s;3.1v=(3.4.N*3.11)-(3.4.D?g:f);3.1R=3.4.D?"10":"Z";p h=3.4.D?"H":"I";p i=3.4.D?"I":"H";3.E.x({I:3.E.I(),H:3.E.H()});3.S.x(h,3.2b+"2c");3.P.x({I:3.4.D?d:3.1v,H:3.4.D?3.1v:e});6(3.4.2S){3.P.x(3.1R,(c-3.1v)/2).x("1u","0")}6(3.s>3.4.N){3.1k=t;6(3.4.O==r||3.4.O<0||3.4.O>3.s){3.4.O=3.4.N}}3.18=$(\'.\'+3.8.2s,3.v);6(3.18.K()>0){3.38()}}6(3.4.2R&&3.G){3.E.2d(7(){n.1N(2e(3,"29"),$(3))})}z 6(3.G||3.4.21){3.E.Y(7(){n.1N(2e(3,"29"),$(3));y 9})}7 2e(a,b){y $(b,$(a).2f()).45(a)}};3.38=7(){6(3.1k){3.3a=t;3.19=$("."+3.8.16,3.v);3.1w=$("."+3.8.17,3.v);3.18.F(3.8.C);3.19.Y(7(){n.16();y 9});3.1w.Y(7(){n.17();y 9});6(3.4.2T){3.19.2d(7(){n.16(t)});3.1w.2d(7(){n.17(t)});3.18.46(7(){n.3b()})}6(!3.4.1p){3.19.A(3.8.C)}}z{3.18.A(3.8.C)}};3.2g=7(){3.1a=3.4.D?3.S.2h().10:3.S.2h().Z;3.12=13.47(13.1x(3.1a)/3.11);
8733.14=13.48((3.2b-13.1x(3.1a)-3.1v)/3.11);6(3.14<0){3.14=0}};3.2G=7(){3.J=$("."+3.8.J,3.q);3.1b=$("."+3.8.V,3.q);3.1Q=3.J.K()>0?1:0;3.V=3.1b.K()>0?1:0;6(3.1Q){6(3.4.1n){3.J.A(3.8.1f)}3.J.Y(7(){6(n.J.1S(n.8.1f)){n.2i()}z{n.3c()}y 9})}6(3.V){3.2j=$("."+3.8.2v,3.q);3.2k=$("."+3.8.2w,3.q);6(3.4.2Z){3.1b.1y();$("."+3.8.w,3.q).35(7(){n.1b.3d()},7(){n.1b.49()})}3.2j.Y(7(){n.1J($(3));y 9});3.2k.Y(7(){n.1m($(3));y 9})}};3.2H=7(){6($(\'.\'+3.8.U,3.q).K()==0){3.w.4a(\'<3e 28="\'+3.8.U+\'"></3e>\');3.U=$(\'.\'+3.8.U,3.1W);3.U.x(\'2h\',\'4b\')}};3.15=7(a,b,c,d,e){6(e&&3.X!=r){6(3.1Q){3.2i()}6(3.4.1O){n.1r()}}6(a){6(a.1S(3.8.C)){y 9}}p f=0;p g=$(\':4c\',3.1V).K()>0?1:0;6(!g&&!3.2A){3.W=3.o;6(c==r&&!d){3.o=b=="-="?3.o+1:3.o-1}z 6(c!=r){c=36(c);3.o=c<0?0:c>3.s-1?3.s-1:c;p h=a?a.2f().2f().1S(3.8.P)?9:t:t}6(3.V){3.1b.F(3.8.C)}6(!3.4.1p){6(3.o==-1){3.o=0;f=1}6(3.o==0&&3.V){3.2j.A(3.8.C)}6(3.o==3.s){3.o=3.s-1;f=1}6(3.o==3.s-1){6(3.4.1n){3.1r()}6(3.V){3.2k.A(3.8.C)}}}z 6(!3.1k){6(3.o==3.s){3.o=0}6(3.o==-1){3.o=3.s-1}}6(3.1k&&!f){3.3f(d,b,h)}6(3.1C){3.3g(3.o)}6(!(d&&!3.4.2U)){6(3.G){3.3h(3.o,b)}}6(3.1j){3.1j=0}}};3.3f=7(a,b,c){3.2g();p d=a?t:9;p e=0;6(!a){p f=13.1x(3.o+1-3.12);p g=3.4.N-f+1;p h=3.o==0||3.o==3.s-1?1:0;6((3.4.21&&(g==1||f==1))&&!3.1j&&!h){e=3.4.O-1;d=t}6(g==0||f==0){d=t}6(c){6(g<0){g=0}b=3.W<3.o?\'-=\':\'+=\';p i=13.1x(3.W-3.o);6((i-1>g&&b==\'-=\')||(i>f&&b==\'+=\')){e=i;d=t}}6(b==""){6(3.W==3.o&&!h){b=3.3i=="-="?"+=":"-="}z{b=3.W<3.o?"-=":"+="}}3.3i=b}6(d){p j=e>0?e:3.4.O;p k=b=="-="?3.14:3.12;p l=k<j?k:j;p m=l*3.11;3.1i=b=="-="?3.12+l:3.12-l+3.4.N-1;6((b=="-="&&3.1i>3.o)||(b=="+="&&3.1i<3.o)){3.o=3.1i}6(3.4.1p){6(3.12<=0&&b=="+="){b="-=";3.o=3.s-1;m=(3.14/3.4.O)*(3.11*3.4.O)}z 6(3.14==0&&b=="-="){b="+=";3.o=0;m=13.1x(3.1a)}}3.3j(b,m)}};3.3h=7(a,b){3.Q=3.w.2l(a);3.2z=3.w.2l(3.W);p c=7(){6($.1z(n.4.27)){n.4.27()}n.1A(n.2C)};6(!3.Q.1S(3.8.B)){6(3.1j){3.2m=3.4.2Y;p d=1}z{p e=3.4.1E&&3.4.1G=="24"?"3k":"1q";3.2m=3.4.1E?e:3.4.1G}6($.1z(n.4.26)){n.4.26()}3.1A(3.2B);3.3l[3.2m](b,d,c)}};3.3j=7(a,b){p c=7(){6(!n.4.1p&&n.3a){n.18.F(n.8.C);n.2g();6(n.12<=0){n.19.A(n.8.C)}z 6(n.14<=0){n.1w.A(n.8.C)}}6(n.1B){4d(7(){n.1B=="-="?n.16():n.17()},0)}z 6($.1z(n.4.23)){n.4.23()}n.1A(n.2E)};6($.1z(n.4.22)){n.4.22()}n.1A(n.2D);3.3m[3.4.2V](a,b,c)};3.1A=7(c){$.3n(c,7(a,b){6($.1z(b)){b()}})};3.4e=7(a){a.4f=0};3.3l={1q:7(a,b,c){n.w.F(n.8.B).1y();n.Q.A(n.8.B).2n();c()},1H:7(a,b,c){6(a==""){a=n.1U<n.o?"-=":"+="}n.1U=n.o;p d=a=="-="?"+":"-";p e=n.4.30?"10":"Z";p f=n.4.D?n.1g:n.1h;p g=e=="10"?{10:a+f}:{Z:a+f};n.3o=$("."+n.8.T,n.q);n.3p=$("."+n.8.B,n.q);n.w.x(e,"0");n.3o.F(n.8.T).1y();n.3p.F(n.8.B).A(n.8.T);n.Q.A(n.8.B).x(e,d+f+"2c").2n();n.U.3q(t,t).x(e,"0").2o(g,n.4.1P,n.4.25,7(){c()})},24:7(a,b,c){6(b){n.w.1y()}z{n.Q.x("2y","1q")}$("."+n.8.T,n.q).F(n.8.T);$("."+n.8.B,n.q).3q(t,t).F(n.8.B).A(n.8.T);n.Q.A(n.8.B).2o({"4g":"2n"},n.4.1P,n.4.25,7(){c()})},3k:7(a,b,c){n.w.F(n.8.B).1y();n.Q.3d(n.4.1P,7(){c()})}};3.3m={1q:7(a,b,c){p d=a=="-="?n.1a-b:n.1a+b;n.S.x(n.1R,d+"2c");c()},1H:7(a,b,c){n.S.2o(n.1R=="Z"?{Z:a+b}:{10:a+b},n.4.2W,n.4.2X,7(){c()})}};3.2i=7(){3.J.F(3.8.1f);3.1r()};3.3c=7(){3.J.A(n.8.1f);3.1o()};3.1o=7(){p a=3;3.X=4h(7(){a.15(r,"-=",r,a.1I,r)},a.4.2Q)};3.1r=7(){4i(3.X);3.X=r};3.1N=7(a,b){3.15(b,"",a,0,1)};3.1J=7(a){3.15(a,"+=",r,n.1I,1)};3.1m=7(a){3.15(a,"-=",r,n.1I,1)};3.16=7(c){6(c){n.1B="-="}3.15(3.19,"+=",r,1,1)};3.17=7(c){6(c){n.1B="+="}3.15(3.1w,"-=",r,1,1)};3.3b=7(){n.1B=""};3.3g=7(a){$("."+3.8.1c,3.S).F(3.8.1c);3.E.2l(a).A(3.8.1c)}};$.4j.20=7(a){y 3.3n(7(){$(3).4k("20",1l 2p().2q(3,a))})}})(4l);',62,270,'|||this|options||if|function|cssNames|false|||||||||||||||currId|var|domObj|null|allItems|true|cssprefix|nav|panels|css|return|else|addClass|panelActive|btnDisable|verticalnav|navLI|removeClass|arePanels|height|width|playBtn|size|_errorReport|debug|shownavitems|scroll|navClip|currPanel|err|navUL|panelOld|panelsWrapper|goBtns|prevId|isPlaying|click|left|top|navLIsize|LIbefore|Math|LIafter|_change|navPrev|navNext|navBtns|navBtnPrev|navPos|gBtns|selected|panel|btn|btnPause|domObjHeight|domObjWidth|newId|firstTime|scrollActive|new|stepForward|auto|autoScrollStart|circular|none|autoScrollStop|navLINum|getLImargin|margin|navClipSize|navBtnNext|abs|hide|isFunction|_runCallBacks|scrollcontinue|isNavClip|Error|freeheight|Array|panelfx|sliding|lineScrollDo|stepBackward|start|try|catch|changeWithId|autostill|panelfxspeed|isPlayBtn|cssPosAttr|hasClass|go|prevPanel|runningScope|panelsBag|mousewheel|delaycaptions|timer|sliderkit|navscrollatend|navfxbefore|navfxafter|fading|panelfxeasing|panelfxbefore|panelfxafter|class|li|attrVal|navULSize|px|mouseover|getIndex|parent|_getNavPos|position|playBtnPause|goBtnPrev|goBtnNext|eq|panelTransition|show|animate|SliderKit|_init|_settings|navBtn|prev|next|goPrev|goNext|02|display|prevPanelStill|animating|panelAnteFns|panelPostFns|navAnteFns|navPostFns|_buildNav|_buildControls|_wrapPanels|keyboard|keyCode|panelclick|startId|counter|imageFx|_autoScrollHoverStop|fastchange|autospeed|navitemshover|navclipcenter|navcontinuous|navpanelautoswitch|navfx|scrollspeed|scrolleasing|panelfxfirst|panelbtnshover|verticalslide|tabs|nElement|id|attr|hover|parseInt||_buildNavButtons||scrollBtns|navStopContinuous|playBtnStart|fadeIn|div|_setNavScroll|selectThumbn
873ail|_animPanel|scrollWay|_animNav|tabsfading|_panelTransitions|_navTransitions|each|oldPanel|activePanel|stop|extend|active|old|wrapper|clip|disable|pause|play|01|block|changeOngoing|currLine|keyup|Counter|DelayCaptions|Timer|find|500|350|4000|600|700|imagefx|alert|Slider|Kit|error|nMessage|see|doc|for|details|mouseleave|ul|03|0px|outerWidth|outerHeight|right|bottom|index|mouseout|ceil|floor|fadeOut|wrapAll|relative|animated|setTimeout|_clearCallBacks|length|opacity|setInterval|clearTimeout|fn|data|jQuery'.split('|'),0,{})) 874/* End */ 875; 876; /* Start:/application/js/libs/jquery.ezmark.min.js*/ 877/** 878 * ezMark (Minified) - A Simple Checkbox and Radio button Styling plugin. This plugin allows you to use a custom Image for 879 * Checkbox or Radio button. Its very simple, small and easy to use. 880 * 881 * Copyright (c) Abdullah Rubiyath <http://www.itsalif.info/>. 882 * Released under MIT License 883 * 884 * @author Abdullah Rubiyath 885 * @version 1.0 886 * @date June 27, 2010 887 */ 888(function($){$.fn.ezMark=function(options){options=options||{};var defaultOpt={checkboxCls:options.checkboxCls||'ez-checkbox',radioCls:options.radioCls||'ez-radio',checkedCls:options.checkedCls||'ez-checked',selectedCls:options.selectedCls||'ez-selected',hideCls:'ez-hide'};return this.each(function(){var $this=$(this);var wrapTag=$this.attr('type')=='checkbox'?'<div class="'+defaultOpt.checkboxCls+'">':'<div class="'+defaultOpt.radioCls+'">';if($this.attr('type')=='checkbox'){$this.addClass(defaultOpt.hideCls).wrap(wrapTag).change(function(){if($(this).is(':checked')){$(this).parent().addClass(defaultOpt.checkedCls);} 889else{$(this).parent().removeClass(defaultOpt.checkedCls);}});if($this.is(':checked')){$this.parent().addClass(defaultOpt.checkedCls);}} 890else if($this.attr('type')=='radio'){$this.addClass(defaultOpt.hideCls).wrap(wrapTag).change(function(){$('input[name="'+$(this).attr('name')+'"]').each(function(){if($(this).is(':checked')){$(this).parent().addClass(defaultOpt.selectedCls);}else{$(this).parent().removeClass(defaultOpt.selectedCls);}});});if($this.is(':checked')){$this.parent().addClass(defaultOpt.selectedCls);}}});}})(jQuery); 891/* End */ 892; 893; /* Start:/application/js/libs/jquery.fancybox-1.3.4.pack.js*/ 894/* 895 * FancyBox - jQuery Plugin 896 * Simple and fancy lightbox alternative 897 * 898 * Examples and documentation at: http://fancybox.net 899 * 900 * Copyright (c) 2008 - 2010 Janis Skarnelis 901 * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated. 902 * 903 * Version: 1.3.4 (11/11/2010) 904 * Requires: jQuery v1.3+ 905 * 906 * Dual licensed under the MIT and GPL licenses: 907 * http://www.opensource.org/licenses/mit-license.php 908 * http://www.gnu.org/licenses/gpl.html 909 */ 910 911;(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("<div/>")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.abort();m.empty()},O=function(){if(false===e.onError(o,q,e)){t.hide();h=false}else{e.titleShow=false;e.width="auto";e.height="auto";m.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>'); 912F()}},I=function(){var a=o[q],c,g,k,C,P,w;N();e=b.extend({},b.fn.fancybox.defaults,typeof b(a).data("fancybox")=="undefined"?e:b(a).data("fancybox"));w=e.onStart(o,q,e);if(w===false)h=false;else{if(typeof w=="object")e=b.extend(e,w);k=e.title||(a.nodeName?b(a).attr("title"):a.title)||"";if(a.nodeName&&!e.orig)e.orig=b(a).children("img:first").length?b(a).children("img:first"):b(a);if(k===""&&e.orig&&e.titleFromAlt)k=e.orig.attr("alt");c=e.href||(a.nodeName?b(a).attr("href"):a.href)||null;if(/^(?:javascript)/i.test(c)|| 913c=="#")c=null;if(e.type){g=e.type;if(!c)c=e.content}else if(e.content)g="html";else if(c)g=c.match(J)?"image":c.match(W)?"swf":b(a).hasClass("iframe")?"iframe":c.indexOf("#")===0?"inline":"ajax";if(g){if(g=="inline"){a=c.substr(c.indexOf("#"));g=b(a).length>0?"inline":"ajax"}e.type=g;e.href=c;e.title=k;if(e.autoDimensions)if(e.type=="html"||e.type=="inline"||e.type=="ajax"){e.width="auto";e.height="auto"}else e.autoDimensions=false;if(e.modal){e.overlayShow=true;e.hideOnOverlayClick=false;e.hideOnContentClick= 914false;e.enableEscapeButton=false;e.showCloseButton=false}e.padding=parseInt(e.padding,10);e.margin=parseInt(e.margin,10);m.css("padding",e.padding+e.margin);b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){b(this).replaceWith(j.children())});switch(g){case "html":m.html(e.content);F();break;case "inline":if(b(a).parent().is("#fancybox-content")===true){h=false;break}b('<div class="fancybox-inline-tmp" />').hide().insertBefore(b(a)).bind("fancybox-cleanup",function(){b(this).replaceWith(j.children())}).bind("fancybox-cancel", 915function(){b(this).replaceWith(m.children())});b(a).appendTo(m);F();break;case "image":h=false;b.fancybox.showActivity();v=new Image;v.onerror=function(){O()};v.onload=function(){h=true;v.onerror=v.onload=null;e.width=v.width;e.height=v.height;b("<img />").attr({id:"fancybox-img",src:v.src,alt:e.title}).appendTo(m);Q()};v.src=c;break;case "swf":e.scrolling="no";C='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+e.width+'" height="'+e.height+'"><param name="movie" value="'+c+ 916'"></param>';P="";b.each(e.swf,function(x,H){C+='<param name="'+x+'" value="'+H+'"></param>';
916P+=" "+x+'="'+H+'"'});C+='<embed src="'+c+'" type="application/x-shockwave-flash" width="'+e.width+'" height="'+e.height+'"'+P+"></embed></object>";m.html(C);F();break;case "ajax":h=false;b.fancybox.showActivity();e.ajax.win=e.ajax.success;G=b.ajax(b.extend({},e.ajax,{url:c,data:e.ajax.data||{},error:function(x){x.status>0&&O()},success:function(x,H,R){if((typeof R=="object"?R:G).status==200){if(typeof e.ajax.win== 917"function"){w=e.ajax.win(c,x,H,R);if(w===false){t.hide();return}else if(typeof w=="string"||typeof w=="object")x=w}m.html(x);F()}}}));break;case "iframe":Q()}}else O()}},F=function(){var a=e.width,c=e.height;a=a.toString().indexOf("%")>-1?parseInt((b(window).width()-e.margin*2)*parseFloat(a)/100,10)+"px":a=="auto"?"auto":a+"px";c=c.toString().indexOf("%")>-1?parseInt((b(window).height()-e.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px";m.wrapInner('<div style="width:'+a+";height:"+c+ 918";overflow: "+(e.scrolling=="auto"?"auto":e.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>');e.width=m.width();e.height=m.height();Q()},Q=function(){var a,c;t.hide();if(f.is(":visible")&&false===d.onCleanup(l,p,d)){b.event.trigger("fancybox-cancel");h=false}else{h=true;b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");b(document).unbind("keydown.fb");f.is(":visible")&&d.titlePosition!=="outside"&&f.css("height",f.height());l=o;p=q;d=e;if(d.overlayShow){u.css({"background-color":d.overlayColor, 919opacity:d.overlayOpacity,cursor:d.hideOnOverlayClick?"pointer":"auto",height:b(document).height()});if(!u.is(":visible")){M&&b("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});u.show()}}else u.hide();i=X();s=d.title||"";y=0;n.empty().removeAttr("style").removeClass();if(d.titleShow!==false){if(b.isFunction(d.titleFormat))a=d.titleFormat(s,l,p,d);else a=s&&s.length? 920d.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+s+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+d.titlePosition+'">'+s+"</div>":false;s=a;if(!(!s||s==="")){n.addClass("fancybox-title-"+d.titlePosition).html(s).appendTo("body").show();switch(d.titlePosition){case "inside":n.css({width:i.width-d.padding*2,marginLeft:d.padding,marginRight:d.padding}); 921y=n.outerHeight(true);n.appendTo(D);i.height+=y;break;case "over":n.css({marginLeft:d.padding,width:i.width-d.padding*2,bottom:d.padding}).appendTo(D);break;case "float":n.css("left",parseInt((n.width()-i.width-40)/2,10)*-1).appendTo(f);break;default:n.css({width:i.width-d.padding*2,paddingLeft:d.padding,paddingRight:d.padding}).appendTo(f)}}}n.hide();if(f.is(":visible")){b(E.add(z).add(A)).hide();a=f.position();r={top:a.top,left:a.left,width:f.width(),height:f.height()};c=r.width==i.width&&r.height== 922i.height;j.fadeTo(d.changeFade,0.3,function(){var g=function(){j.html(m.contents()).fadeTo(d.changeFade,1,S)};b.event.trigger("fancybox-change");j.empty().removeAttr("filter").css({"border-width":d.padding,width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2});if(c)g();else{B.prop=0;b(B).animate({prop:1},{duration:d.changeSpeed,easing:d.easingChange,step:T,complete:g})}})}else{f.removeAttr("style");j.css("border-width",d.padding);if(d.transitionIn=="elastic"){r=V();j.html(m.contents()); 923f.show();if(d.opacity)i.opacity=0;B.prop=0;b(B).animate({prop:1},{duration:d.speedIn,easing:d.easingIn,step:T,complete:S})}else{d.titlePosition=="inside"&&y>0&&n.show();j.css({width:i.width-d.padding*2,height:e.autoDimensions?"auto":i.height-y-d.padding*2}).html(m.contents());f.css(i).fadeIn(d.transitionIn=="none"?0:d.speedIn,S)}}}},Y=function(){if(d.enableEscapeButton||d.enableKeyboardNav)b(document).bind("keydown.fb",function(a){if(a.keyCode==27&&d.enableEscapeButton){a.preventDefault();b.fancybox.close()}else if((a.keyCode== 92437||a.keyCode==39)&&d.enableKeyboardNav&&a.target.tagName!=="INPUT"&&a.target.tagName!=="TEXTAREA"&&a.target.tagName!=="SELECT"){a.preventDefault();b.fancybox[a.keyCode==37?"prev":"next"]()}});
924if(d.showNavArrows){if(d.cyclic&&l.length>1||p!==0)z.show();if(d.cyclic&&l.length>1||p!=l.length-1)A.show()}else{z.hide();A.hide()}},S=function(){if(!b.support.opacity){j.get(0).style.removeAttribute("filter");f.get(0).style.removeAttribute("filter")}e.autoDimensions&&j.css("height","auto");f.css("height","auto"); 925s&&s.length&&n.show();d.showCloseButton&&E.show();Y();d.hideOnContentClick&&j.bind("click",b.fancybox.close);d.hideOnOverlayClick&&u.bind("click",b.fancybox.close);b(window).bind("resize.fb",b.fancybox.resize);d.centerOnScroll&&b(window).bind("scroll.fb",b.fancybox.center);if(d.type=="iframe")b('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(b.browser.msie?'allowtransparency="true""':"")+' scrolling="'+e.scrolling+'" src="'+d.href+'"></iframe>').appendTo(j); 926f.show();h=false;b.fancybox.center();d.onComplete(l,p,d);var a,c;if(l.length-1>p){a=l[p+1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}if(p>0){a=l[p-1].href;if(typeof a!=="undefined"&&a.match(J)){c=new Image;c.src=a}}},T=function(a){var c={width:parseInt(r.width+(i.width-r.width)*a,10),height:parseInt(r.height+(i.height-r.height)*a,10),top:parseInt(r.top+(i.top-r.top)*a,10),left:parseInt(r.left+(i.left-r.left)*a,10)};if(typeof i.opacity!=="undefined")c.opacity=a<0.5?0.5:a;f.css(c); 927j.css({width:c.width-d.padding*2,height:c.height-y*a-d.padding*2})},U=function(){return[b(window).width()-d.margin*2,b(window).height()-d.margin*2,b(document).scrollLeft()+d.margin,b(document).scrollTop()+d.margin]},X=function(){var a=U(),c={},g=d.autoScale,k=d.padding*2;c.width=d.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(d.width)/100,10):d.width+k;c.height=d.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(d.height)/100,10):d.height+k;if(g&&(c.width>a[0]||c.height>a[1]))if(e.type== 928"image"||e.type=="swf"){g=d.width/d.height;if(c.width>a[0]){c.width=a[0];c.height=parseInt((c.width-k)/g+k,10)}if(c.height>a[1]){c.height=a[1];c.width=parseInt((c.height-k)*g+k,10)}}else{c.width=Math.min(c.width,a[0]);c.height=Math.min(c.height,a[1])}c.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-c.height-40)*0.5),10);c.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-c.width-40)*0.5),10);return c},V=function(){var a=e.orig?b(e.orig):false,c={};if(a&&a.length){c=a.offset();c.top+=parseInt(a.css("paddingTop"), 92910)||0;c.left+=parseInt(a.css("paddingLeft"),10)||0;c.top+=parseInt(a.css("border-top-width"),10)||0;c.left+=parseInt(a.css("border-left-width"),10)||0;c.width=a.width();c.height=a.height();c={width:c.width+d.padding*2,height:c.height+d.padding*2,top:c.top-d.padding-20,left:c.left-d.padding-20}}else{a=U();c={width:d.padding*2,height:d.padding*2,top:parseInt(a[3]+a[1]*0.5,10),left:parseInt(a[2]+a[0]*0.5,10)}}return c},Z=function(){if(t.is(":visible")){b("div",t).css("top",L*-40+"px");L=(L+1)%12}else clearInterval(K)}; 930b.fn.fancybox=function(a){if(!b(this).length)return this;b(this).data("fancybox",b.extend({},a,b.metadata?b(this).metadata():{})).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!h){h=true;b(this).blur();o=[];q=0;c=b(this).attr("rel")||"";if(!c||c==""||c==="nofollow")o.push(this);else{o=b("a[rel="+c+"], area[rel="+c+"]");q=o.index(this)}I()}});return this};b.fancybox=function(a,c){var g;if(!h){h=true;g=typeof c!=="undefined"?c:{};o=[];q=parseInt(g.index,10)||0;if(b.isArray(a)){for(var k= 9310,C=a.length;k<C;k++)if(typeof a[k]=="object")b(a[k]).data("fancybox",b.extend({},g,a[k]));else a[k]=b({}).data("fancybox",b.extend({content:a[k]},g));o=jQuery.merge(o,a)}else{if(typeof a=="object")b(a).data("fancybox",b.extend({},g,a));else a=b({}).data("fancybox",b.extend({content:a},g));o.push(a)}if(q>o.length||q<0)q=0;I()}};b.fancybox.showActivity=function(){clearInterval(K);t.show();K=setInterval(Z,66)};b.fancybox.hideActivity=function(){t.hide()};b.fancybox.next=function(){return b.fancybox.pos(p+ 9321)};b.fancybox.prev=function(){return b.fancybox.pos(p-1)};b.fancybox.pos=function(a){if(!h){a=parseInt(a);o=l;if(a>-1&&a<l.length){q=a;I()}else if(d.cyclic&&l.length>1){q=a>=l.length?0:l.length-1;I()}}};b.fancybox.cancel=function(){if(!h){h=true;b.event.trigger("fancybox-cancel");N();e.onCancel(o,q,e);h=false}};b.fancybox.close=function(){function a(){u.fadeOut("fast");n.empty().hide();f.hide();b.event.trigger("fancybox-cleanup");j.empty();d.onClosed(l,p,d);l=e=[];p=q=0;d=e={};h=false}if(!(h||f.is(":hidden"))){h= 933true;if(d&&false===d.onCleanup(l,p,d))h=false;else{N();b(E.add(z).add(A)).hide();b(j.add(u)).unbind();b(window).unbind("resize.fb scroll.fb");
933b(document).unbind("keydown.fb");j.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");d.titlePosition!=="inside"&&n.empty();f.stop();if(d.transitionOut=="elastic"){r=V();var c=f.position();i={top:c.top,left:c.left,width:f.width(),height:f.height()};if(d.opacity)i.opacity=1;n.empty().hide();B.prop=1; 934b(B).animate({prop:0},{duration:d.speedOut,easing:d.easingOut,step:T,complete:a})}else f.fadeOut(d.transitionOut=="none"?0:d.speedOut,a)}}};b.fancybox.resize=function(){u.is(":visible")&&u.css("height",b(document).height());b.fancybox.center(true)};b.fancybox.center=function(a){var c,g;if(!h){g=a===true?1:0;c=U();!g&&(f.width()>c[0]||f.height()>c[1])||f.stop().animate({top:parseInt(Math.max(c[3]-20,c[3]+(c[1]-j.height()-40)*0.5-d.padding)),left:parseInt(Math.max(c[2]-20,c[2]+(c[0]-j.width()-40)*0.5- 935d.padding))},typeof a=="number"?a:200)}};b.fancybox.init=function(){if(!b("#fancybox-wrap").length){b("body").append(m=b('<div id="fancybox-tmp"></div>'),t=b('<div id="fancybox-loading"><div></div></div>'),u=b('<div id="fancybox-overlay"></div>'),f=b('<div id="fancybox-wrap"></div>'));D=b('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(f); 936D.append(j=b('<div id="fancybox-content"></div>'),E=b('<a id="fancybox-close"></a>'),n=b('<div id="fancybox-title"></div>'),z=b('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),A=b('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));E.click(b.fancybox.close);t.click(b.fancybox.cancel);z.click(function(a){a.preventDefault();b.fancybox.prev()});A.click(function(a){a.preventDefault();b.fancybox.next()}); 937b.fn.mousewheel&&f.bind("mousewheel.fb",function(a,c){if(h)a.preventDefault();else if(b(a.target).get(0).clientHeight==0||b(a.target).get(0).scrollHeight===b(a.target).get(0).clientHeight){a.preventDefault();b.fancybox[c>0?"prev":"next"]()}});b.support.opacity||f.addClass("fancybox-ie");if(M){t.addClass("fancybox-ie6");f.addClass("fancybox-ie6");b('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(D)}}}; 938b.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing", 939easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery); 940/* End */ 941; 942; /* Start:/application/js/libs/jquery.placeholder.min.js*/ 943/*! http://mths.be/placeholder v2.0.7 by @mathias */ 944;(function(f,h,$){var a='placeholder' in h.createElement('input'),d='placeholder' in h.createElement('textarea'),i=$.fn,c=$.valHooks,k,j;if(a&&d){j=i.placeholder=function(){return this};j.input=j.textarea=true}else{j=i.placeholder=function(){var l=this;l.filter((a?'textarea':':input')+'[placeholder]').not('.placeholder').bind({'focus.placeholder':b,'blur.placeholder':e}).data('placeholder-enabled',true).trigger('blur.placeholder');return l};j.input=a;j.textarea=d;k={get:function(m){var l=$(m);return l.data('placeholder-enabled')&&l.hasClass('placeholder')?'':m.value},set:function(m,n){var l=$(m);if(!l.data('placeholder-enabled')){return m.value=n}if(n==''){m.value=n;if(m!=h.activeElement){e.call(m)}}else{if(l.hasClass('placeholder')){b.call(m,true,n)||(m.value=n)}else{m.value=n}}return l}};a||(c.input=k);d||(c.textarea=k);$(function(){$(h).delegate('form','submit.placeholder',function(){var l=$('.placeholder',this).each(b);setTimeout(function(){l.each(e)},10)})});$(f).bind('beforeunload.placeholder',function(){$('.placeholder').each(function(){this.value=''})})}function g(m){var l={},n=/^jQuery\d+$/;$.each(m.attributes,function(p,o){if(o.specified&&!n.test(o.name)){l[o.name]=o.value}});return l}function b(m,n){var l=this,o=$(l);if(l.value==o.attr('placeholder')&&o.hasClass('placeholder')){if(o.data('placeholder-password')){o=o.hide().next().show().attr('id',o.removeAttr('id').data('placeholder-id'));if(m===true){return o[0].value=n}o.focus()}else{l.value='';o.removeClass('placeholder');l==h.activeElement&&l.select()}}}function e(){var q,l=this,p=$(l),m=p,o=this.id;if(l.value==''){if(l.type=='password'){if(!p.data('placeholder-textinput')){try{q=p.clone().attr({type:'text'})}catch(n){q=$('<input>').attr($.extend(g(this),{type:'text'}))}q.removeAttr('name').data({'placeholder-password':true,'placeholder-id':o}).bind('focus.placeholder',b);p.data({'placeholder-textinput':q,'placeholder-id':o}).before(q)}p=p.removeAttr('id').hide().prev().attr('id',o).show()}p.addClass('placeholder');p[0].value=p.attr('placeholder')}else{p.removeClass('placeholder')}}}(this,document,jQuery)); 945/* End */ 946; 947; /* Start:/application/js/libs/jquery.cycle.lite.js*/ 948/*! 949 * jQuery Cycle Lite Plugin 950 * http://malsup.com/jquery/cycle/lite/ 951 * Copyright (c) 2008-2012 M. Alsup 952 * Version: 1.7 (20-FEB-2013) 953 * Dual licensed under the MIT and GPL licenses: 954 * http://www.opensource.org/licenses/mit-license.php 955 * http://www.gnu.org/licenses/gpl.html 956 * Requires: jQuery v1.3.2 or later 957 */ 958;(function($) { 959"use strict"; 960 961var ver = 'Lite-1.7'; 962var msie = /MSIE/.test(navigator.userAgent); 963 964$.fn.cycle = function(options) { 965 return this.each(function() { 966 options = options || {}; 967 968 if (this.cycleTimeout) 969 clearTimeout(this.cycleTimeout); 970 971 this.cycleTimeout = 0; 972 this.cyclePause = 0; 973 974 var $cont = $(this); 975 var $slides = options.slideExpr ? $(options.slideExpr, this) : $cont.children(); 976 var els = $slides.get(); 977 if (els.length < 2) { 978 if (window.console) 979 console.log('terminating; too few slides: ' + els.length); 980 return; // don't bother 981 } 982 983 // support metadata plugin (v1.0 and v2.0) 984 var opts = $.extend({}, $.fn.cycle.defaults, options || {}, $.metadata ? $cont.metadata() : $.meta ? $cont.data() : {}); 985 var meta = $.isFunction($cont.data) ? $cont.data(opts.metaAttr) : null; 986 if (meta) 987 opts = $.extend(opts, meta); 988 989 opts.before = opts.before ? [opts.before] : []; 990 opts.after = opts.after ? [opts.after] : []; 991 opts.after.unshift(function(){ opts.busy=0; }); 992 993 // allow shorthand overrides of width, height and timeout 994 var cls = this.className; 995 opts.width = parseInt((cls.match(/w:(\d+)/)||[])[1], 10) || opts.width; 996 opts.height = parseInt((cls.match(/h:(\d+)/)||[])[1], 10) || opts.height; 997 opts.timeout = parseInt((cls.match(/t:(\d+)/)||[])[1], 10) || opts.timeout; 998 999 if ($cont.css('position') == 'static') 1000 $cont.css('position', 'relative'); 1001 if (opts.width) 1002 $cont.width(opts.width); 1003 if (opts.height && opts.height != 'auto') 1004 $cont.height(opts.height); 1005 1006 var first = 0; 1007 $slides.css({position: 'absolute', top:0}).each(function(i) { 1008 $(this).css('z-index', els.length-i); 1009 }); 1010 1011 $(els[first]).css('opacity',1).show(); // opacity bit needed to handle reinit case 1012 if (msie) 1013 els[first].style.removeAttribute('filter'); 1014 1015 if (opts.fit && opts.width) 1016 $slides.width(opts.width); 1017 if (opts.fit && opts.height && opts.height != 'auto') 1018 $slides.height(opts.height); 1019 if (opts.pause) 1020 $cont.hover(function(){this.cyclePause=1;}, function(){this.cyclePause=0;}); 1021 1022 var txFn = $.fn.cycle.transitions[opts.fx]; 1023 if (txFn) 1024 txFn($cont, $slides, opts); 1025 1026 $slides.each(function() { 1027 var $el = $(this); 1028 this.cycleH = (opts.fit && opts.height) ? opts.height : $el.height(); 1029 this.cycleW = (opts.fit && opts.width) ? opts.width : $el.width(); 1030 }); 1031 1032 if (opts.cssFirst) 1033 $($slides[first]).css(opts.cssFirst); 1034 1035 if (opts.timeout) { 1036 // ensure that timeout and speed settings are sane 1037 if (opts.speed.constructor == String) 1038 opts.speed = {slow: 600, fast: 200}[opts.speed] || 400; 1039 if (!opts.sync) 1040 opts.speed = opts.speed / 2; 1041 while((opts.timeout - opts.speed) < 250) 1042 opts.timeout += opts.speed; 1043 } 1044 opts.speedIn = opts.speed; 1045 opts.speedOut = opts.speed; 1046 1047 opts.slideCount = els.length; 1048 opts.currSlide = first; 1049 opts.nextSlide = 1; 1050 1051 // fire artificial events 1052 var e0 = $slides[first]; 1053 if (opts.before.length) 1054 opts.before[0].apply(e0, [e0, e0, opts, true]); 1055 if (opts.after.length > 1) 1056 opts.after[1].apply(e0, [e0, e0, opts, true]); 1057 1058 if (opts.click && !opts.next) 1059 opts.next = opts.click; 1060 if (opts.next) 1061 $(opts.next).unbind('click.cycle').bind('click.cycle', function(){return advance(els,opts,opts.rev?-1:1);}); 1062 if (opts.prev) 1063 $(opts.prev).unbind('click.cycle').bind('click.cycle', function(){return advance(els,opts,opts.rev?1:-1);}); 1064 1065 if (opts.timeout) 1066 this.cycleTimeout = setTimeout(function() { 1067 go(els,opts,0,!opts.rev); 1068 }, opts.timeout + (opts.delay||0)); 1069 }); 1070}; 1071 1072function go(els, opts, manual, fwd) { 1073 if (opts.busy) 1074 return; 1075 var p = els[0].parentNode, curr = els[opts.currSlide], next = els[opts.nextSlide]; 1076 if (p.cycleTimeout === 0 && !manual) 1077 return; 1078 1079 if (manual || !p.cyclePause) { 1080 if (opts.before.length) 1081 $.each(opts.before, function(i,o) { o.apply(next, [curr, next, opts, fwd]); }); 1082 var after = function() { 1083 if (msie) 1084 this.style.removeAttribute('filter'); 1085 $.each(opts.after, function(i,o) { o.apply(next, [curr, next, opts, fwd]); }); 1086 queueNext(opts); 1087 }; 1088 1089 if (opts.nextSlide != opts.currSlide) { 1090 opts.busy = 1; 1091 $.fn.cycle.custom(curr, next, opts, after); 1092 } 1093 var roll = (opts.nextSlide + 1) == els.length; 1094 opts.nextSlide = roll ? 0 : opts.nextSlide+1; 1095 opts.currSlide = roll ? els.length-1 : opts.nextSlide-1; 1096 } else { 1097 queueNext(opts); 1098 } 1099 1100 function queueNext(opts) { 1101 if (opts.timeout) 1102 p.cycleTimeout = setTimeout(function() { go(els,opts,0,!opts.rev); }, opts.timeout); 1103 } 1104} 1105 1106// advance slide forward or back 1107function advance(els, opts, val) { 1108 var p = els[0].parentNode, timeout = p.cycleTimeout; 1109 if (timeout) { 1110 clearTimeout(timeout); 1111 p.cycleTimeout = 0; 1112 } 1113 opts.nextSlide = opts.currSlide + val; 1114 if (opts.nextSlide < 0) { 1115 opts.nextSlide = els.length - 1; 1116 } 1117 else if (opts.nextSlide >= els.length) { 1118 opts.nextSlide = 0; 1119 } 1120 go(els, opts, 1, val>=0); 1121 return false;
1122} 1123 1124$.fn.cycle.custom = function(curr, next, opts, cb) { 1125 var $l = $(curr), $n = $(next); 1126 $n.css(opts.cssBefore); 1127 var fn = function() {$n.animate(opts.animIn, opts.speedIn, opts.easeIn, cb);}; 1128 $l.animate(opts.animOut, opts.speedOut, opts.easeOut, function() { 1129 $l.css(opts.cssAfter); 1130 if (!opts.sync) 1131 fn(); 1132 }); 1133 if (opts.sync) 1134 fn(); 1135}; 1136 1137$.fn.cycle.transitions = { 1138 fade: function($cont, $slides, opts) { 1139 $slides.not(':eq(0)').hide(); 1140 opts.cssBefore = { opacity: 0, display: 'block' }; 1141 opts.cssAfter = { display: 'none' }; 1142 opts.animOut = { opacity: 0 }; 1143 opts.animIn = { opacity: 1 }; 1144 }, 1145 fadeout: function($cont, $slides, opts) { 1146 opts.before.push(function(curr,next,opts,fwd) { 1147 $(curr).css('zIndex',opts.slideCount + (fwd === true ? 1 : 0)); 1148 $(next).css('zIndex',opts.slideCount + (fwd === true ? 0 : 1)); 1149 }); 1150 $slides.not(':eq(0)').hide(); 1151 opts.cssBefore = { opacity: 1, display: 'block', zIndex: 1 }; 1152 opts.cssAfter = { display: 'none', zIndex: 0 }; 1153 opts.animOut = { opacity: 0 }; 1154 opts.animIn = { opacity: 1 }; 1155 } 1156}; 1157 1158$.fn.cycle.ver = function() { return ver; }; 1159 1160// @see: http://malsup.com/jquery/cycle/lite/ 1161$.fn.cycle.defaults = { 1162 animIn: {}, 1163 animOut: {}, 1164 fx: 'fade', 1165 after: null, 1166 before: null, 1167 cssBefore: {}, 1168 cssAfter: {}, 1169 delay: 0, 1170 fit: 0, 1171 height: 'auto', 1172 metaAttr: 'cycle', 1173 next: null, 1174 pause: false, 1175 prev: null, 1176 speed: 1000, 1177 slideExpr: null, 1178 sync: true, 1179 timeout: 4000 1180}; 1181 1182})(jQuery); 1183 1184/* End */ 1185; 1186; /* Start:/application/js/libs/jquery.cookie.js*/ 1187/*! 1188 * jQuery Cookie Plugin v1.3.1 1189 * https://github.com/carhartl/jquery-cookie 1190 * 1191 * Copyright 2013 Klaus Hartl 1192 * Released under the MIT license 1193 */ 1194(function (factory) { 1195 if (typeof define === 'function' && define.amd) { 1196 // AMD. Register as anonymous module. 1197 define(['jquery'], factory); 1198 } else { 1199 // Browser globals. 1200 factory(jQuery); 1201 } 1202}(function ($) { 1203 1204 var pluses = /\+/g; 1205 1206 function raw(s) { 1207 return s; 1208 } 1209 1210 function decoded(s) { 1211 return decodeURIComponent(s.replace(pluses, ' ')); 1212 } 1213 1214 function converted(s) { 1215 if (s.indexOf('"') === 0) { 1216 // This is a quoted cookie as according to RFC2068, unescape 1217 s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); 1218 } 1219 try { 1220 return config.json ? JSON.parse(s) : s; 1221 } catch(er) {} 1222 } 1223 1224 var config = $.cookie = function (key, value, options) { 1225 1226 // write 1227 if (value !== undefined) { 1228 options = $.extend({}, config.defaults, options); 1229 1230 if (typeof options.expires === 'number') { 1231 var days = options.expires, t = options.expires = new Date(); 1232 t.setDate(t.getDate() + days); 1233 } 1234 1235 value = config.json ? JSON.stringify(value) : String(value); 1236 1237 return (document.cookie = [ 1238 config.raw ? key : encodeURIComponent(key), 1239 '=', 1240 config.raw ? value : encodeURIComponent(value), 1241 options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE 1242 options.path ? '; path=' + options.path : '', 1243 options.domain ? '; domain=' + options.domain : '', 1244 options.secure ? '; secure' : '' 1245 ].join('')); 1246 } 1247 1248 // read 1249 var decode = config.raw ? raw : decoded; 1250 var cookies = document.cookie.split('; '); 1251 var result = key ? undefined : {}; 1252 for (var i = 0, l = cookies.length; i < l; i++) { 1253 var parts = cookies[i].split('='); 1254 var name = decode(parts.shift()); 1255 var cookie = decode(parts.join('=')); 1256 1257 if (key && key === name) { 1258 result = converted(cookie); 1259 break; 1260 } 1261 1262 if (!key) { 1263 result[name] = converted(cookie); 1264 } 1265 } 1266 1267 return result; 1268 }; 1269 1270 config.defaults = {}; 1271 1272 $.removeCookie = function (key, options) { 1273 if ($.cookie(key) !== undefined) { 1274 // Must not alter options, thus extending a fresh object... 1275 $.cookie(key, '', $.extend({}, options, { expires: -1 })); 1276 return true; 1277 } 1278 return false;
vendor: 4,210 bytes, lines 1279-1287
1279 }; 1280 1281})); 1282 1283/* End */ 1284; 1285; /* Start:/application/js/libs/alertify.min.js*/ 1286/*! alertify - v0.3.9 - 2013-04-20 */ 1287(function(t,e){"use strict";var n,i=t.document;n=function(){var n,s,r,o,a,l,c,u,f,d,h,p,y={},b={},m=!1,v={ENTER:13,ESC:27,SPACE:32},g=[];return b={buttons:{holder:'<nav class="alertify-buttons">{{buttons}}</nav>',submit:'<button type="submit" class="alertify-button alertify-button-ok" id="alertify-ok">{{ok}}</button>',ok:'<a href="#" class="alertify-button alertify-button-ok" id="alertify-ok">{{ok}}</a>',cancel:'<a href="#" class="alertify-button alertify-button-cancel" id="alertify-cancel">{{cancel}}</a>'},input:'<div class="alertify-text-wrapper"><input type="text" class="alertify-text" id="alertify-text"></div>',message:'<p class="alertify-message">{{message}}</p>',log:'<article class="alertify-log{{class}}">{{message}}</article>'},p=function(){var t,n,s=!1,r=i.createElement("fakeelement"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"};for(t in o)if(r.style[t]!==e){n=o[t],s=!0;break}return{type:n,supported:s}},n=function(t){return i.getElementById(t)},y={labels:{ok:"OK",cancel:"Cancel"},delay:5e3,buttonReverse:!1,buttonFocus:"ok",transition:e,addListeners:function(t){var n,a,l,c,u,f=r!==e,p=s!==e,y=h!==e,b="",m=this;n=function(n){return n.preventDefault!==e&&n.preventDefault(),l(n),h!==e&&(b=h.value),"function"==typeof t&&(h!==e?t(!0,b):t(!0)),!1},a=function(n){return n.preventDefault!==e&&n.preventDefault(),l(n),"function"==typeof t&&t(!1),!1},l=function(){m.hide(),m.unbind(i.body,"keyup",c),m.unbind(o,"focus",u),y&&m.unbind(d,"submit",n),f&&m.unbind(r,"click",n),p&&m.unbind(s,"click",a)},c=function(t){var e=t.keyCode;e!==v.SPACE||y||n(t),e===v.ESC&&p&&a(t)},u=function(){y?h.focus():!p||m.buttonReverse?r.focus():s.focus()},this.bind(o,"focus",u),f&&this.bind(r,"click",n),p&&this.bind(s,"click",a),this.bind(i.body,"keyup",c),y&&this.bind(d,"submit",n),this.transition.supported||this.setFocus()},bind:function(t,e,n){"function"==typeof t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on"+e,n)},handleErrors:function(){if(t.onerror!==e){var n=this;return t.onerror=function(t,e,i){n.error("["+t+" on line "+i+" of "+e+"]",0)},!0}return!1},appendButtons:function(t,e){return this.buttonReverse?e+t:t+e},build:function(t){var e="",n=t.type,i=t.message,s=t.cssClass||"";switch(e+='<div class="alertify-dialog">',"none"===y.buttonFocus&&(e+='<a href="#" id="alertify-noneFocus" class="alertify-hidden"></a>'),"prompt"===n&&(e+='<form id="alertify-form">'),e+='<article class="alertify-inner">',e+=b.message.replace("{{message}}",i),"prompt"===n&&(e+=b.input),e+=b.buttons.holder,e+="</article>","prompt"===n&&(e+="</form>"),e+='<a id="alertify-resetFocus" class="alertify-resetFocus" href="#">Reset Focus</a>',e+="</div>",n){case"confirm":e=e.replace("{{buttons}}",this.appendButtons(b.buttons.cancel,b.buttons.ok)),e=e.replace("{{ok}}",this.labels.ok).replace("{{cancel}}",this.labels.cancel);break;case"prompt":e=e.replace("{{buttons}}",this.appendButtons(b.buttons.cancel,b.buttons.submit)),e=e.replace("{{ok}}",this.labels.ok).replace("{{cancel}}",this.labels.cancel);break;case"alert":e=e.replace("{{buttons}}",b.buttons.ok),e=e.replace("{{ok}}",this.labels.ok);break;default:}return u.className="alertify alertify-"+n+" "+s,c.className="alertify-cover",e},close:function(t,n){var i,s,r=n&&!isNaN(n)?+n:this.delay,o=this;this.bind(t,"click",function(){i(t)}),s=function(t){t.stopPropagation(),o.unbind(this,o.transition.type,s),f.removeChild(this),f.hasChildNodes()||(f.className+=" alertify-logs-hidden")},i=function(t){t!==e&&t.parentNode===f&&(o.transition.supported?(o.bind(t,o.transition.type,s),t.className+=" alertify-log-hide"):(f.removeChild(t),f.hasChildNodes()||(f.className+=" alertify-logs-hidden")))},0!==n&&setTimeout(function(){i(t)},r)},dialog:function(t,n,s,r,o){l=i.activeElement;var a=function(){f&&null!==f.scrollTop&&c&&null!==c.scrollTop||a()};if("string"!=typeof t)throw Error("message must be a string");if("string"!=typeof n)throw Error("type must be a string");if(s!==e&&"function"!=typeof s)throw Error("fn must be a function");
1287return"function"==typeof this.init&&(this.init(),a()),g.push({type:n,message:t,callback:s,placeholder:r,cssClass:o}),m||this.setup(),this},extend:function(t){if("string"!=typeof t)throw Error("extend method must have exactly one paramter");return function(e,n){return this.log(e,t,n),this}},hide:function(){var t,e=this;g.splice(0,1),g.length>0?this.setup(!0):(m=!1,t=function(n){n.stopPropagation(),u.className+=" alertify-isHidden",e.unbind(u,e.transition.type,t)},this.transition.supported?(this.bind(u,this.transition.type,t),u.className="alertify alertify-hide alertify-hidden"):u.className="alertify alertify-hide alertify-hidden alertify-isHidden",c.className="alertify-cover alertify-cover-hidden",l.focus())},init:function(){i.createElement("nav"),i.createElement("article"),i.createElement("section"),c=i.createElement("div"),c.setAttribute("id","alertify-cover"),c.className="alertify-cover alertify-cover-hidden",i.body.appendChild(c),u=i.createElement("section"),u.setAttribute("id","alertify"),u.className="alertify alertify-hidden",i.body.appendChild(u),f=i.createElement("section"),f.setAttribute("id","alertify-logs"),f.className="alertify-logs alertify-logs-hidden",i.body.appendChild(f),i.body.setAttribute("tabindex","0"),this.transition=p(),delete this.init},log:function(t,e,n){var i=function(){f&&null!==f.scrollTop||i()};return"function"==typeof this.init&&(this.init(),i()),f.className="alertify-logs",this.notify(t,e,n),this},notify:function(t,e,n){var s=i.createElement("article");s.className="alertify-log"+("string"==typeof e&&""!==e?" alertify-log-"+e:""),s.innerHTML=t,f.appendChild(s),setTimeout(function(){s.className=s.className+" alertify-log-show"},50),this.close(s,n)},set:function(t){var e;if("object"!=typeof t&&t instanceof Array)throw Error("args must be an object");for(e in t)t.hasOwnProperty(e)&&(this[e]=t[e])},setFocus:function(){h?(h.focus(),h.select()):a.focus()},setup:function(t){var i,l=g[0],c=this;m=!0,i=function(t){t.stopPropagation(),c.setFocus(),c.unbind(u,c.transition.type,i)},this.transition.supported&&!t&&this.bind(u,this.transition.type,i),u.innerHTML=this.build(l),o=n("alertify-resetFocus"),r=n("alertify-ok")||e,s=n("alertify-cancel")||e,a="cancel"===y.buttonFocus?s:"none"===y.buttonFocus?n("alertify-noneFocus"):r,h=n("alertify-text")||e,d=n("alertify-form")||e,"string"==typeof l.placeholder&&""!==l.placeholder&&(h.value=l.placeholder),t&&this.setFocus(),this.addListeners(l.callback)},unbind:function(t,e,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent&&t.detachEvent("on"+e,n)}},{alert:function(t,e,n){return y.dialog(t,"alert",e,"",n),this},confirm:function(t,e,n){return y.dialog(t,"confirm",e,"",n),this},extend:y.extend,init:y.init,log:function(t,e,n){return y.log(t,e,n),this},prompt:function(t,e,n,i){return y.dialog(t,"prompt",e,n,i),this},success:function(t,e){return y.log(t,"success",e),this},error:function(t,e){return y.log(t,"error",e),this},set:function(t){y.set(t)},labels:y.labels,debug:y.handleErrors}},"function"==typeof define?define([],function(){return new n}):t.alertify===e&&(t.alertify=new n)})(this); 1288/* End */ 1289; 1290; /* Start:/application/js/libs/select2.min.js*/ 1291(function(e){"undefined"==typeof e.fn.each2&&e.fn.extend({each2:function(h){for(var n=e([0]),m=-1,w=this.length;++m<w&&(n.context=n[0]=this[m])&&!1!==h.call(n[0],m,n););return this}})})(jQuery); 1292(function(e,h){function n(a,b){for(var c=0,d=b.length;c<d;c+=1)if(m(a,b[c]))return c;return-1}function m(a,b){return a===b?!0:a===h||b===h||null===a||null===b?!1:a.constructor===String?a===b+"":b.constructor===String?b===a+"":!1}function w(a,b){var c,d,g;if(null===a||1>a.length)return[];c=a.split(b);d=0;for(g=c.length;d<g;d+=1)c[d]=e.trim(c[d]);return c}function D(a){a.bind("keydown",function(){e.data(a,"keyup-change-value")===h&&e.data(a,"keyup-change-value",a.val())});a.bind("keyup",function(){var b= 1293e.data(a,"keyup-change-value");b!==h&&a.val()!==b&&(e.removeData(a,"keyup-change-value"),a.trigger("keyup-change"))})}function E(a,b,c){c=c||h;var d;return function(){var g=arguments;window.clearTimeout(d);d=window.setTimeout(function(){b.apply(c,g)},a)}}function F(a){a[0]!==document.activeElement&&window.setTimeout(function(){var b=a[0],c=a.val().length;a.focus();b.setSelectionRange?b.setSelectionRange(c,c):b.createTextRange&&(b=b.createTextRange(),b.collapse(!0),b.moveEnd("character",c),b.moveStart("character", 1294c),b.select())},0)}function k(a){a.preventDefault();a.stopPropagation()}function z(a,b,c){var d,g=[],p;d=a.attr("class");"string"===typeof d&&e(d.split(" ")).each2(function(){0===this.indexOf("select2-")&&g.push(this)});d=b.attr("class");"string"===typeof d&&e(d.split(" ")).each2(function(){0!==this.indexOf("select2-")&&(p=c(this),"string"===typeof p&&0<p.length&&g.push(this))});a.attr("class",g.join(" "))}function G(a,b,c,d){var g=a.toUpperCase().indexOf(b.toUpperCase());b=b.length;0>g?c.push(d(a)): 1295(c.push(d(a.substring(0,g))),c.push("<span class='select2-match'>"),c.push(d(a.substring(g,g+b))),c.push("</span>"),c.push(d(a.substring(g+b,a.length))))}
1295function H(a){var b,c=0,d=null,g=a.quietMillis||100,p=a.url,l=this;return function(j){window.clearTimeout(b);b=window.setTimeout(function(){var b=c+=1,g=a.data,x=p,h=a.transport||e.ajax,f=a.type||"GET",k={},g=g?g.call(l,j.term,j.page,j.context):null,x="function"===typeof x?x.call(l,j.term,j.page,j.context):x;null!==d&&d.abort();a.params&&(e.isFunction(a.params)? 1296e.extend(k,a.params.call(l)):e.extend(k,a.params));e.extend(k,{url:x,dataType:a.dataType,data:g,type:f,cache:!1,success:function(d){b<c||(d=a.results(d,j.page),j.callback(d))}});d=h.call(l,k)},g)}}function I(a){var b=a,c,d,g=function(a){return""+a.text};e.isArray(b)&&(d=b,b={results:d});!1===e.isFunction(b)&&(d=b,b=function(){return d});a=b();a.text&&(g=a.text,e.isFunction(g)||(c=b.text,g=function(a){return a[c]}));return function(a){var c=a.term,d={results:[]},h;""===c?a.callback(b()):(h=function(b, 1297d){var j,f;b=b[0];if(b.children){j={};for(f in b)b.hasOwnProperty(f)&&(j[f]=b[f]);j.children=[];e(b.children).each2(function(a,b){h(b,j.children)});(j.children.length||a.matcher(c,g(j),b))&&d.push(j)}else a.matcher(c,g(b),b)&&d.push(b)},e(b().results).each2(function(a,b){h(b,d.results)}),a.callback(d))}}function J(a){var b=e.isFunction(a);return function(c){var d=c.term,g={results:[]};e(b?a():a).each(function(){var a=this.text!==h,b=a?this.text:this;if(""===d||c.matcher(d,b))g.results.push(a?this: 1298{id:this,text:this})});c.callback(g)}}function y(a){if(e.isFunction(a))return!0;if(!a)return!1;throw Error("formatterName must be a function or a falsy value");}function r(a){return e.isFunction(a)?a():a}function K(a){var b=0;e.each(a,function(a,d){d.children?b+=K(d.children):b++});return b}function N(a,b,c,d){var g=a,e=!1,l,j,f,q;if(!d.createSearchChoice||!d.tokenSeparators||1>d.tokenSeparators.length)return h;for(;;){e=-1;j=0;for(f=d.tokenSeparators.length;j<f&&!(q=d.tokenSeparators[j],e=a.indexOf(q), 12990<=e);j++);if(0>e)break;l=a.substring(0,e);a=a.substring(e+q.length);if(0<l.length&&(l=d.createSearchChoice(l,b),l!==h&&null!==l&&d.id(l)!==h&&null!==d.id(l))){e=!1;j=0;for(f=b.length;j<f;j++)if(m(d.id(l),d.id(b[j]))){e=!0;break}e||c(l)}}if(g!==a)return a}function A(a,b){var c=function(){};c.prototype=new a;c.prototype.constructor=c;c.prototype.parent=a.prototype;c.prototype=e.extend(c.prototype,b);return c}if(window.Select2===h){var f,u,B,C,L,v,M;f={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39, 1300DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(a){a=a.which?a.which:a;switch(a){case f.LEFT:case f.RIGHT:case f.UP:case f.DOWN:return!0}return!1},isControl:function(a){switch(a.which){case f.SHIFT:case f.CTRL:case f.ALT:return!0}return a.metaKey?!0:!1},isFunctionKey:function(a){a=a.which?a.which:a;return 112<=a&&123>=a}};u=e(document);var O=1;L=function(){return O++};u.bind("mousemove",function(a){M={x:a.pageX,y:a.pageY}});u=A(Object, 1301{bind:function(a){var b=this;return function(){a.apply(b,arguments)}},init:function(a){var b,c;this.opts=a=this.prepareOpts(a);this.id=a.id;a.element.data("select2")!==h&&null!==a.element.data("select2")&&this.destroy();this.enabled=!0;this.container=this.createContainer();this.containerId="s2id_"+(a.element.attr("id")||"autogen"+L());this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1");this.container.attr("id",this.containerId);var d=!1,g;this.body= 1302function(){!1===d&&(g=a.element.closest("body"),d=!0);return g};z(this.container,this.opts.element,this.opts.adaptContainerCssClass);this.container.css(r(a.containerCss));this.container.addClass(r(a.containerCssClass));this.elementTabIndex=this.opts.element.attr("tabIndex");this.opts.element.data("select2",this).addClass("select2-offscreen").bind("focus.select2",function(){e(this).select2("focus")}).attr("tabIndex","-1").before(this.container);this.container.data("select2",this);this.dropdown=this.container.find(".select2-drop"); 1303this.dropdown.addClass(r(a.dropdownCssClass));this.dropdown.data("select2",this);this.results=b=this.container.find(".select2-results");this.search=c=this.container.find("input.select2-input");c.attr("tabIndex",this.elementTabIndex);this.resultsPage=0;this.context=null;this.initContainer();this.results.bind("mousemove",function(a){var b=M;(b===h||b.x!==a.pageX||b.y!==a.pageY)&&e(a.target).trigger("mousemove-filtered",a)});
1303this.dropdown.delegate(".select2-results","mousemove-filtered touchstart touchmove touchend", 1304this.bind(this.highlightUnderEvent));var p=this.results,l=E(80,function(a){p.trigger("scroll-debounced",a)});p.bind("scroll",function(a){0<=n(a.target,p.get())&&l(a)});this.dropdown.delegate(".select2-results","scroll-debounced",this.bind(this.loadMoreIfNeeded));e.fn.mousewheel&&b.mousewheel(function(a,c,d,g){c=b.scrollTop();0<g&&0>=c-g?(b.scrollTop(0),k(a)):0>g&&b.get(0).scrollHeight-b.scrollTop()+g<=b.height()&&(b.scrollTop(b.get(0).scrollHeight-b.height()),k(a))});D(c);c.bind("keyup-change input paste", 1305this.bind(this.updateResults));c.bind("focus",function(){c.addClass("select2-focused")});c.bind("blur",function(){c.removeClass("select2-focused")});this.dropdown.delegate(".select2-results","mouseup",this.bind(function(a){0<e(a.target).closest(".select2-result-selectable").length&&(this.highlightUnderEvent(a),this.selectHighlighted(a))}));this.dropdown.bind("click mouseup mousedown",function(a){a.stopPropagation()});e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()); 1306(a.element.is(":disabled")||a.element.is("[readonly='readonly']"))&&this.disable()},destroy:function(){var a=this.opts.element.data("select2");this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null);a!==h&&(a.container.remove(),a.dropdown.remove(),a.opts.element.removeClass("select2-offscreen").removeData("select2").unbind(".select2").attr({tabIndex:this.elementTabIndex}).show())},prepareOpts:function(a){var b,c,d;b=a.element;"select"===b.get(0).tagName.toLowerCase()&&(this.select= 1307c=a.element);c&&e.each("id multiple ajax query createSearchChoice initSelection data tags".split(" "),function(){if(this in a)throw Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.");});a=e.extend({},{populateResults:function(b,c,d){var j,f=this.opts.id,q=this;j=function(b,c,g){var p,k,m,n,r,t,s;b=a.sortResults(b,c,d);p=0;for(k=b.length;p<k;p+=1)m=b[p],r=!0===m.disabled,n=!r&&f(m)!==h,t=m.children&&0<m.children.length,s=e("<li></li>"),s.addClass("select2-results-dept-"+ 1308g),s.addClass("select2-result"),s.addClass(n?"select2-result-selectable":"select2-result-unselectable"),r&&s.addClass("select2-disabled"),t&&s.addClass("select2-result-with-children"),s.addClass(q.opts.formatResultCssClass(m)),n=e(document.createElement("div")),n.addClass("select2-result-label"),r=a.formatResult(m,n,d,q.opts.escapeMarkup),r!==h&&n.html(r),s.append(n),t&&(t=e("<ul></ul>"),t.addClass("select2-result-sub"),j(m.children,t,g+1),s.append(t)),s.data("select2-data",m),c.append(s)};j(c,b, 13090)}},e.fn.select2.defaults,a);"function"!==typeof a.id&&(d=a.id,a.id=function(a){return a[d]});
1309if(e.isArray(a.element.data("select2Tags"))){if("tags"in a)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+a.element.attr("id");a.tags=a.element.attr("data-select2-tags")}if(c)a.query=this.bind(function(a){var c={results:[],more:!1},d=a.term,j,f,q;q=function(b,c){var e;b.is("option")?a.matcher(d,b.text(),b)&&c.push({id:b.attr("value"),text:b.text(),element:b.get(), 1310css:b.attr("class"),disabled:m(b.attr("disabled"),"disabled")}):b.is("optgroup")&&(e={text:b.attr("label"),children:[],element:b.get(),css:b.attr("class")},b.children().each2(function(a,b){q(b,e.children)}),0<e.children.length&&c.push(e))};j=b.children();this.getPlaceholder()!==h&&0<j.length&&(f=j[0],""===e(f).text()&&(j=j.not(f)));j.each2(function(a,b){q(b,c.results)});a.callback(c)}),a.id=function(a){return a.id},a.formatResultCssClass=function(a){return a.css};else if(!("query"in a))if("ajax"in 1311a){if((c=a.element.data("ajax-url"))&&0<c.length)a.ajax.url=c;a.query=H.call(a.element,a.ajax)}else"data"in a?a.query=I(a.data):"tags"in a&&(a.query=J(a.tags),a.createSearchChoice===h&&(a.createSearchChoice=function(a){return{id:a,text:a}}),a.initSelection===h&&(a.initSelection=function(b,c){var d=[];e(w(b.val(),a.separator)).each(function(){var b=this,c=this,g=a.tags;e.isFunction(g)&&(g=g());e(g).each(function(){if(m(this.id,b))return c=this.text,!1});d.push({id:b,text:c})});c(d)}));if("function"!== 1312typeof a.query)throw"query function not defined for Select2 "+a.element.attr("id");return a},monitorSource:function(){var a=this.opts.element,b;a.bind("change.select2",this.bind(function(){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()}));b=this.bind(function(){var a,b;a="disabled"!==this.opts.element.attr("disabled");b="readonly"===this.opts.element.attr("readonly");a=a&&!b;this.enabled!==a&&(a?this.enable():this.disable());z(this.container,this.opts.element,this.opts.adaptContainerCssClass); 1313this.container.addClass(r(this.opts.containerCssClass));z(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass);this.dropdown.addClass(r(this.opts.dropdownCssClass))});a.bind("propertychange.select2 DOMAttrModified.select2",b);"undefined"!==typeof WebKitMutationObserver&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new WebKitMutationObserver(function(a){a.forEach(b)}),this.propertyObserver.observe(a.get(0),{attributes:!0,subtree:!1}))}, 1314triggerChange:function(a){a=a||{};a=e.extend({},a,{type:"change",val:this.val()});this.opts.element.data("select2-change-triggered",!0);this.opts.element.trigger(a);this.opts.element.data("select2-change-triggered",!1);this.opts.element.click();this.opts.blurOnChange&&this.opts.element.blur()},enable:function(){this.enabled||(this.enabled=!0,this.container.removeClass("select2-container-disabled"),this.opts.element.removeAttr("disabled"))},disable:function(){this.enabled&&(this.close(),this.enabled= 1315!1,this.container.addClass("select2-container-disabled"),this.opts.element.attr("disabled","disabled"))},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var a=this.container.offset(),b=this.container.outerHeight(!1),c=this.container.outerWidth(!1),d=this.dropdown.outerHeight(!1),g=e(window).scrollLeft()+e(window).width(),p=e(window).scrollTop()+e(window).height(),b=a.top+b,f=a.left,p=b+d<=p,j=a.top-d>=this.body().scrollTop(),h=this.dropdown.outerWidth(!1), 1316g=f+h<=g,q=this.dropdown.hasClass("select2-drop-above"),k;"static"!==this.body().css("position")&&(k=this.body().offset(),b-=k.top,f-=k.left);q?(q=!0,!j&&p&&(q=!1)):(q=!1,!p&&j&&(q=!0));g||(f=a.left+c-h);q?(b=a.top-d,this.container.addClass("select2-drop-above"),this.dropdown.addClass("select2-drop-above")):(this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above"));a=e.extend({top:b,left:f,width:c},r(this.opts.dropdownCss));this.dropdown.css(a)},shouldOpen:function(){var a; 1317if(this.opened())return!1;a=e.Event("opening");this.opts.element.trigger(a);return!a.isDefaultPrevented()},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above");this.dropdown.removeClass("select2-drop-above")},open:function(){if(!this.shouldOpen())return!1;window.setTimeout(this.bind(this.opening),1);return!0},opening:function(){var a=this.containerId,b="scroll."+a,c="resize."+a,d="orientationchange."+a;this.clearDropdownAlignmentPreference();this.container.addClass("select2-dropdown-open").addClass("select2-container-active");
1318this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body());this.updateResults(!0);a=e("#select2-drop-mask");0==a.length&&(a=e(document.createElement("div")),a.attr("id","select2-drop-mask").attr("class","select2-drop-mask"),a.hide(),a.appendTo(this.body()),a.bind("mousedown touchstart",function(){var a=e("#select2-drop");0<a.length&&(a=a.data("select2"),a.opts.selectOnBlur&&a.selectHighlighted({noFocus:!0}),a.close())}));this.dropdown.prev()[0]!==a[0]&&this.dropdown.before(a); 1319e("#select2-drop").removeAttr("id");this.dropdown.attr("id","select2-drop");a.css({width:document.documentElement.scrollWidth,height:document.documentElement.scrollHeight});a.show();this.dropdown.show();this.positionDropdown();this.dropdown.addClass("select2-drop-active");this.ensureHighlightVisible();var g=this;this.container.parents().add(window).each(function(){e(this).bind(c+" "+b+" "+d,function(){e("#select2-drop-mask").css({width:document.documentElement.scrollWidth,height:document.documentElement.scrollHeight}); 1320g.positionDropdown()})});this.focusSearch()},close:function(){if(this.opened()){var a=this.containerId,b="scroll."+a,c="resize."+a,d="orientationchange."+a;this.container.parents().add(window).each(function(){e(this).unbind(b).unbind(c).unbind(d)});this.clearDropdownAlignmentPreference();e("#select2-drop-mask").hide();this.dropdown.removeAttr("id");this.dropdown.hide();this.container.removeClass("select2-dropdown-open");this.results.empty();this.clearSearch();this.opts.element.trigger(e.Event("close"))}}, 1321clearSearch:function(){},getMaximumSelectionSize:function(){return r(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var a=this.results,b,c,d,g;c=this.highlight();0>c||(0==c?a.scrollTop(0):(b=this.findHighlightableChoices(),d=e(b[c]),g=d.offset().top+d.outerHeight(!0),c===b.length-1&&(b=a.find("li.select2-more-results"),0<b.length&&(g=b.offset().top+b.outerHeight(!0))),b=a.offset().top+a.outerHeight(!0),g>b&&a.scrollTop(a.scrollTop()+(g-b)),g=d.offset().top-a.offset().top,0>g&& 1322"none"!=d.css("display")&&a.scrollTop(a.scrollTop()+g)))},findHighlightableChoices:function(){this.results.find(".select2-result-selectable:not(.select2-selected):not(.select2-disabled)");return this.results.find(".select2-result-selectable:not(.select2-selected):not(.select2-disabled)")},moveHighlight:function(a){for(var b=this.findHighlightableChoices(),c=this.highlight();-1<c&&c<b.length;){var c=c+a,d=e(b[c]);if(d.hasClass("select2-result-selectable")&&!d.hasClass("select2-disabled")&&!d.hasClass("select2-selected")){this.highlight(c); 1323break}}},highlight:function(a){var b=this.findHighlightableChoices();if(0===arguments.length)return n(b.filter(".select2-highlighted")[0],b.get());a>=b.length&&(a=b.length-1);0>a&&(a=0);this.results.find(".select2-highlighted").removeClass("select2-highlighted");b=e(b[a]);b.addClass("select2-highlighted");this.ensureHighlightVisible();(b=b.data("select2-data"))&&this.opts.element.trigger({type:"highlight",val:this.id(b),choice:b})},countSelectableResults:function(){return this.findHighlightableChoices().length}, 1324highlightUnderEvent:function(a){a=e(a.target).closest(".select2-result-selectable");if(0<a.length&&!a.is(".select2-highlighted")){var b=this.findHighlightableChoices();this.highlight(b.index(a))}else 0==a.length&&this.results.find(".select2-highlighted").removeClass("select2-highlighted")},loadMoreIfNeeded:function(){var a=this.results,b=a.find("li.select2-more-results"),c,d=this.resultsPage+1,g=this,e=this.search.val(),f=this.context;0!==b.length&&(c=b.offset().top-a.offset().top-a.height(),c<=this.opts.loadMorePadding&& 1325(b.addClass("select2-active"),this.opts.query({element:this.opts.element,term:e,page:d,context:f,matcher:this.opts.matcher,callback:this.bind(function(c){g.opened()&&(g.opts.populateResults.call(this,a,c.results,{term:e,page:d,context:f}),!0===c.more?(b.detach().appendTo(a).text(g.opts.formatLoadMore(d+1)),window.setTimeout(function(){g.loadMoreIfNeeded()},10)):b.remove(),g.positionDropdown(),g.resultsPage=d,g.context=c.context)})})))},tokenize:function(){},updateResults:function(a){function b(){g.scrollTop(0); 1326d.removeClass("select2-active");j.positionDropdown()}function c(a){g.html(a);b()}var d=this.search,g=this.results,f=this.opts,l,j=this;if(!(!0!==a&&(!1===this.showSearchInput||!this.opened()))){d.addClass("select2-active");var k=this.getMaximumSelectionSize();if(1<=k&&(l=this.data(),e.isArray(l)&&l.length>=k&&y(f.formatSelectionTooBig,"formatSelectionTooBig"))){c("<li class='select2-selection-limit'>"+f.formatSelectionTooBig(k)+"</li>");return}d.val().length<f.minimumInputLength?y(f.formatInputTooShort, 1327"formatInputTooShort")?c("<li class='select2-no-results'>"+f.formatInputTooShort(d.val(),f.minimumInputLength)+"</li>"):c(""):(f.formatSearching()&&!0===a&&c("<li class='select2-searching'>"+f.formatSearching()+"</li>"),f.maximumInputLength&&d.val().length>f.maximumInputLength?y(f.formatInputTooLong,"formatInputTooLong")?c("<li class='select2-no-results'>"+f.formatInputTooLong(d.val(),f.maximumInputLength)+"</li>"):c(""):(l=this.tokenize(),l!=h&&null!=l&&d.val(l),this.resultsPage=1,f.query({element:f.element, 1328term:d.val(),page:this.resultsPage,context:null,matcher:f.matcher,callback:this.bind(function(l){var k;this.opened()&&(this.context=l.context===h?null:l.context,this.opts.createSearchChoice&&""!==d.val()&&(k=this.opts.createSearchChoice.call(null,d.val(),l.results),k!==h&&null!==k&&j.id(k)!==h&&null!==j.id(k)&&0===e(l.results).filter(function(){return m(j.id(this),j.id(k))}).length&&l.results.unshift(k)),0===l.results.length&&y(f.formatNoMatches,"formatNoMatches")?c("<li class='select2-no-results'>"+ 1329f.formatNoMatches(d.val())+"</li>"):(g.empty(),j.opts.populateResults.call(this,g,l.results,{term:d.val(),page:this.resultsPage,context:null}),!0===l.more&&y(f.formatLoadMore,"formatLoadMore")&&(g.append("<li class='select2-more-results'>"+j.opts.escapeMarkup(f.formatLoadMore(this.resultsPage))+"</li>
1329"),window.setTimeout(function(){j.loadMoreIfNeeded()},10)),this.postprocessResults(l,a),b()))})})))}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}); 1330this.close();this.container.removeClass("select2-container-active");this.search[0]===document.activeElement&&this.search.blur();this.clearSearch();this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){F(this.search)},selectHighlighted:function(a){var b=this.highlight(),c=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");c&&(this.highlight(b),this.onSelect(c,a))},getPlaceholder:function(){return this.opts.element.attr("placeholder")|| 1331this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder},initContainerWidth:function(){var a=function(){var a,c,d,g;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){a=this.opts.element.attr("style");if(a!==h){a=a.split(";");d=0;for(g=a.length;d<g;d+=1)if(c=a[d].replace(/\s/g,"").match(/width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/), 1332null!==c&&1<=c.length)return c[1]}return"resolve"===this.opts.width?(a=this.opts.element.css("width"),0<a.indexOf("%")?a:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px"):null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==a&&this.container.css("width",a)}});B=A(u,{createContainer:function(){return e(document.createElement("div")).attr({"class":"select2-container"}).html("<a href='javascript:void(0)' onclick='return false;' class='select2-choice' tabindex='-1'> <span></span><abbr class='select2-search-choice-close' style='display:none;'></abbr> <div><b></b></div></a><input class='select2-focusser select2-offscreen' type='text'/><div class='select2-drop' style='display:none'> <div class='select2-search'> <input type='text' autocomplete='off' class='select2-input'/> </div> <ul class='select2-results'> </ul></div>")}, 1333disable:function(){this.enabled&&(this.parent.disable.apply(this,arguments),this.focusser.attr("disabled","disabled"))},enable:function(){this.enabled||(this.parent.enable.apply(this,arguments),this.focusser.removeAttr("disabled"))},opening:function(){this.parent.opening.apply(this,arguments);this.focusser.attr("disabled","disabled");this.opts.element.trigger(e.Event("open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.removeAttr("disabled"),F(this.focusser))}, 1334focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments);this.focusser.removeAttr("disabled");this.focusser.focus()},initContainer:function(){var a,b=this.container,c=this.dropdown;this.showSearch(0<=this.opts.minimumResultsForSearch);this.selection=a=b.find(".select2-choice");this.focusser=b.find(".select2-focusser"); 1335this.search.bind("keydown",this.bind(function(a){if(this.enabled)if(a.which===f.PAGE_UP||a.which===f.PAGE_DOWN)k(a);else switch(a.which){case f.UP:case f.DOWN:this.moveHighlight(a.which===f.UP?-1:1);k(a);break;case f.TAB:case f.ENTER:this.selectHighlighted();k(a);break;case f.ESC:this.cancel(a),k(a)}}));this.focusser.bind("keydown",this.bind(function(a){if(this.enabled&&!(a.which===f.TAB||f.isControl(a)||f.isFunctionKey(a)||a.which===f.ESC))if(!1===this.opts.openOnEnter&&a.which===f.ENTER)k(a);else if(a.which== 1336f.DOWN||a.which==f.UP||a.which==f.ENTER&&this.opts.openOnEnter)this.open(),k(a);else if(a.which==f.DELETE||a.which==f.BACKSPACE)this.opts.allowClear&&this.clear(),k(a)}));D(this.focusser);this.focusser.bind("keyup-change input",this.bind(function(a){this.opened()||(this.open(),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.focusser.val(""),k(a))}));a.delegate("abbr","mousedown",this.bind(function(a){this.enabled&&(this.clear(),a.preventDefault(),a.stopImmediatePropagation(), 1337this.close(),this.selection.focus())}));a.bind("mousedown",this.bind(function(a){this.opened()?this.close():this.enabled&&this.open();k(a)}));c.bind("mousedown",this.bind(function(){this.search.focus()}));a.bind("focus",this.bind(function(a){k(a)}));this.focusser.bind("focus",this.bind(function(){this.container.addClass("select2-container-active")})).bind("blur",this.bind(function(){this.opened()||this.container.removeClass("select2-container-active")}));this.search.bind("focus",this.bind(function(){this.container.addClass("select2-container-active")})); 1338this.initContainerWidth();this.setPlaceholder()},clear:function(){var a=this.selection.data("select2-data");this.opts.element.val("");this.selection.find("span").empty();this.selection.removeData("select2-data");this.setPlaceholder();this.opts.element.trigger({type:"removed",val:this.id(a),choice:a});this.triggerChange({removed:a})},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text())this.close(),this.setPlaceholder();else{var a=this;this.opts.initSelection.call(null, 1339this.opts.element,function(b){b!==h&&null!==b&&(a.updateSelection(b),a.close(),a.setPlaceholder())})}},prepareOpts:function(){var a=this.parent.prepareOpts.apply(this,arguments);"select"===a.element.get(0).tagName.toLowerCase()?a.initSelection=function(a,c){var d=a.find(":selected");e.isFunction(c)&&c({id:d.attr("value"),text:d.text(),element:d})}:"data"in a&&(a.initSelection=a.initSelection||function(b,c){var d=b.val();a.query({matcher:function(b,c,e){return m(d,a.id(e))},callback:!e.isFunction(c)? 1340e.noop:function(a){c(a.results.length?a.results[0]:null)}})});return a},getPlaceholder:function(){return this.select&&""!==this.select.find("option").first().text()?h:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var a=this.getPlaceholder();""===this.opts.element.val()&&a!==h&&!(this.select&&""!==this.select.find("option:first").text())&&(this.selection.find("span").html(this.opts.escapeMarkup(a)),this.selection.addClass("select2-default"),this.selection.find("abbr").hide())}, 1341postprocessResults:function(a,b){var c=0,d=this,e=!0;this.findHighlightableChoices().each2(function(a,b){if(m(d.id(b.data("select2-data")),d.opts.element.val()))return c=a,!1});this.highlight(c);!0===b&&(e=this.opts.minimumResultsForSearch,e=0>e?!1:K(a.results)>=e,this.showSearch(e))},showSearch:function(a){this.showSearchInput=a;this.dropdown.find(".select2-search")[a?"removeClass":"addClass"]("select2-search-hidden");e(this.dropdown,this.container)[a?"addClass":"removeClass"]("select2-with-searchbox")}, 1342onSelect:function(a,b){var c=this.opts.element.val();this.opts.element.val(this.id(a));this.updateSelection(a);this.opts.element.trigger({type:"selected",val:this.id(a),choice:a});this.close();(!b||!b.noFocus)&&this.selection.focus();m(c,this.id(a))||this.triggerChange()},updateSelection:function(a){var b=this.selection.find("span");this.selection.data("select2-data",a);b.empty();a=this.opts.formatSelection(a,b);a!==h&&b.append(this.opts.escapeMarkup(a));this.selection.removeClass("select2-default"); 1343this.opts.allowClear&&this.getPlaceholder()!==h&&this.selection.find("abbr").show()},val:function(){var a,b=!1,c=null,d=this;if(0===arguments.length)return this.opts.element.val();a=arguments[0];1<arguments.length&&(b=arguments[1]);if(this.select)this.select.val(a).find(":selected").each2(function(a,b){c={id:b.attr("value"),text:b.text()};return!1}),this.updateSelection(c),this.setPlaceholder(),b&&this.triggerChange();else{if(this.opts.initSelection===h)throw Error("cannot call val() if initSelection() is not defined"); 1344!a&&0!==a?(this.clear(),b&&this.triggerChange()):(this.opts.element.val(a),this.opts.initSelection(this.opts.element,function(a){d.opts.element.val(!a?"":d.id(a));d.updateSelection(a);d.setPlaceholder();b&&d.triggerChange()}))}},clearSearch:function(){this.search.val("");this.focusser.val("")},data:function(a){var b;if(0===arguments.length)return b=this.selection.data("select2-data"),b==h&&(b=null),b;!a||""===a?this.clear():(this.opts.element.val(!a?"":this.id(a)),this.updateSelection(a))}});C=A(u, 1345{createContainer:function(){return e(document.createElement("div")).attr({"class":"select2-container select2-container-multi"}).html(" <ul class='select2-choices'> <li class='select2-search-field'> <input type='text' autocomplete='off' class='select2-input'> </li></ul><div class='select2-drop select2-drop-multi' style='display:none;'> <ul class='select2-results'> </ul></div>")},prepareOpts:function(){var a=this.parent.prepareOpts.apply(this,arguments);"select"===a.element.get(0).tagName.toLowerCase()? 1346a.initSelection=function(a,c){var d=[];a.find(":selected").each2(function(a,b){d.push({id:b.attr("value"),text:b.text(),element:b[0]})});c(d)}:"data"in a&&(a.initSelection=a.initSelection||function(b,c){var d=w(b.val(),a.separator);a.query({matcher:function(b,c,f){return e.grep(d,function(b){return m(b,a.id(f))}).length},callback:!e.isFunction(c)?e.noop:function(a){c(a.results)}})});return a},initContainer:function(){var a;this.searchContainer=this.container.find(".select2-search-field");this.selection= 1347a=this.container.find(".select2-choices");this.search.bind("input paste",this.bind(function(){this.enabled&&(this.opened()||this.open())}));this.search.bind("keydown",this.bind(function(b){if(this.enabled){if(b.which===f.BACKSPACE&&""===this.search.val()){this.close();var c;c=a.find(".select2-search-choice-focus");if(0<c.length){this.unselect(c.first());this.search.width(10);k(b);return}c=a.find(".select2-search-choice:not(.select2-locked)");0<c.length&&c.last().addClass("select2-search-choice-focus")}else a.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"); 1348if(this.opened())switch(b.which){case f.UP:case f.DOWN:this.moveHighlight(b.which===f.UP?-1:1);k(b);return;case f.ENTER:case f.TAB:this.selectHighlighted();k(b);return;case f.ESC:this.cancel(b);k(b);return}b.which===f.TAB||f.isControl(b)||f.isFunctionKey(b)||b.which===f.BACKSPACE||b.which===f.ESC||b.which===f.ENTER&&(!1===this.opts.openOnEnter||b.altKey||b.ctrlKey||b.shiftKey||b.metaKey)||(this.open(),(b.which===f.PAGE_UP||b.which===f.PAGE_DOWN)&&k(b))}}));this.search.bind("keyup",this.bind(this.resizeSearch)); 1349this.search.bind("blur",this.bind(function(a){this.container.removeClass("select2-container-active");this.search.removeClass("select2-focused");this.opened()||this.clearSearch();a.stopImmediatePropagation()}));
1349this.container.delegate(".select2-choices","mousedown",this.bind(function(a){this.enabled&&!(0<e(a.target).closest(".select2-search-choice").length)&&(this.clearPlaceholder(),this.open(),this.focusSearch(),a.preventDefault())}));this.container.delegate(".select2-choices","focus",this.bind(function(){this.enabled&& 1350(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())}));this.initContainerWidth();this.clearSearch()},enable:function(){this.enabled||(this.parent.enable.apply(this,arguments),this.search.removeAttr("disabled"))},disable:function(){this.enabled&&(this.parent.disable.apply(this,arguments),this.search.attr("disabled",!0))},initSelection:function(){""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]), 1351this.close(),this.clearSearch());if(this.select||""!==this.opts.element.val()){var a=this;this.opts.initSelection.call(null,this.opts.element,function(b){b!==h&&null!==b&&(a.updateSelection(b),a.close(),a.clearSearch())})}},clearSearch:function(){var a=this.getPlaceholder();a!==h&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(a).addClass("select2-default"),this.resizeSearch()):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&& 1352this.search.val("").removeClass("select2-default")},opening:function(){this.parent.opening.apply(this,arguments);this.clearPlaceholder();this.resizeSearch();this.focusSearch();this.opts.element.trigger(e.Event("open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close();this.search.focus();this.opts.element.triggerHandler("focus")},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(a){var b=[],c=[],d=this; 1353e(a).each(function(){0>n(d.id(this),b)&&(b.push(d.id(this)),c.push(this))});a=c;this.selection.find(".select2-search-choice").remove();e(a).each(function(){d.addSelectedChoice(this)});d.postprocessResults()},tokenize:function(){var a=this.search.val(),a=this.opts.tokenizer(a,this.data(),this.bind(this.onSelect),this.opts);null!=a&&a!=h&&(this.search.val(a),0<a.length&&this.open())},onSelect:function(a,b){this.addSelectedChoice(a);this.opts.element.trigger({type:"selected",val:this.id(a),choice:a}); 1354(this.select||!this.opts.closeOnSelect)&&this.postprocessResults();this.opts.closeOnSelect?(this.close(),this.search.width(10)):0<this.countSelectableResults()?(this.search.width(10),this.resizeSearch(),this.val().length>=this.getMaximumSelectionSize()&&this.updateResults(!0),this.positionDropdown()):(this.close(),this.search.width(10));this.triggerChange({added:a});(!b||!b.noFocus)&&this.focusSearch()},cancel:function(){this.close();this.focusSearch()},addSelectedChoice:function(a){var b=!a.locked, 1355c=e("<li class='select2-search-choice'> <div></div> <a href='#' onclick='return false;' class='select2-search-choice-close' tabindex='-1'></a></li>"),d=e("<li class='select2-search-choice select2-locked'><div></div></li>"),c=b?c:d,d=this.id(a),g=this.getVal(),f;f=this.opts.formatSelection(a,c.find("div"));f!=h&&c.find("div").replaceWith("<div>"+this.opts.escapeMarkup(f)+"</div>");b&&c.find(".select2-search-choice-close").bind("mousedown",k).bind("click dblclick",this.bind(function(a){this.enabled&& 1356(e(a.target).closest(".select2-search-choice").fadeOut("fast",this.bind(function(){this.unselect(e(a.target));this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus");this.close();this.focusSearch()})).dequeue(),k(a))})).bind("focus",this.bind(function(){this.enabled&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))}));c.data("select2-data",a);c.insertBefore(this.searchContainer);g.push(d);this.setVal(g)},unselect:function(a){var b= 1357this.getVal(),c,d;a=a.closest(".select2-search-choice");if(0===a.length)throw"Invalid argument: "+a+". Must be .select2-search-choice";if(c=a.data("select2-data"))d=n(this.id(c),b),0<=d&&(b.splice(d,1),this.setVal(b),this.select&&this.postprocessResults()),a.remove(),this.opts.element.trigger({type:"removed",val:this.id(c),choice:c}),this.triggerChange({removed:c})},postprocessResults:function(){var a=this.getVal(),b=this.results.find(".select2-result"),c=this.results.find(".select2-result-with-children"), 1358d=this;b.each2(function(b,c){var e=d.id(c.data("select2-data"));0<=n(e,a)&&(c.addClass("select2-selected"),c.find(".select2-result-selectable").addClass("select2-selected"))});c.each2(function(a,b){!b.is(".select2-result-selectable")&&0===b.find(".select2-result-selectable:not(.select2-selected)").length&&b.addClass("select2-selected")});-1==this.highlight()&&d.highlight(0)},resizeSearch:function(){var a,b,c,d,f=this.search.outerWidth(!1)-this.search.width();a=this.search;v||(c=a[0].currentStyle|| 1359window.getComputedStyle(a[0],null),v=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:c.fontSize,fontFamily:c.fontFamily,fontStyle:c.fontStyle,fontWeight:c.fontWeight,letterSpacing:c.letterSpacing,textTransform:c.textTransform,whiteSpace:"nowrap"}),v.attr("class","select2-sizer"),e("body").append(v));v.text(a.val());a=v.width()+10;b=this.search.offset().left;c=this.selection.width();d=this.selection.offset().left;
1359b=c-(b-d)-f;b<a&&(b= 1360c-f);40>b&&(b=c-f);0>=b&&(b=a);this.search.width(b)},getVal:function(){var a;if(this.select)return a=this.select.val(),null===a?[]:a;a=this.opts.element.val();return w(a,this.opts.separator)},setVal:function(a){var b;this.select?this.select.val(a):(b=[],e(a).each(function(){0>n(this,b)&&b.push(this)}),this.opts.element.val(0===b.length?"":b.join(this.opts.separator)))},val:function(){var a,b=!1,c=this;if(0===arguments.length)return this.getVal();a=arguments[0];1<arguments.length&&(b=arguments[1]); 1361if(!a&&0!==a)this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),b&&this.triggerChange();else{this.setVal(a);if(this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),b&&this.triggerChange();else{if(this.opts.initSelection===h)throw Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(a){var f=e(a).map(c.id);c.setVal(f);c.updateSelection(a);c.clearSearch();b&&c.triggerChange()})}this.clearSearch()}}, 1362onSortStart:function(){if(this.select)throw Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0);this.searchContainer.hide()},onSortEnd:function(){var a=[],b=this;this.searchContainer.show();this.searchContainer.appendTo(this.searchContainer.parent());this.resizeSearch();this.selection.find(".select2-search-choice").each(function(){a.push(b.opts.id(e(this).data("select2-data")))});this.setVal(a);this.triggerChange()}, 1363data:function(a){var b=this,c;if(0===arguments.length)return this.selection.find(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get();a||(a=[]);c=e.map(a,function(a){return b.opts.id(a)});this.setVal(c);this.updateSelection(a);this.clearSearch()}});e.fn.select2=function(){var a=Array.prototype.slice.call(arguments,0),b,c,d,f,k="val destroy opened open close focus isFocused container onSortStart onSortEnd enable disable positionDropdown data".split(" ");this.each(function(){if(0=== 1364a.length||"object"===typeof a[0])b=0===a.length?{}:e.extend({},a[0]),b.element=e(this),"select"===b.element.get(0).tagName.toLowerCase()?f=b.element.attr("multiple"):(f=b.multiple||!1,"tags"in b&&(b.multiple=f=!0)),c=f?new C:new B,c.init(b);else if("string"===typeof a[0]){if(0>n(a[0],k))throw"Unknown method: "+a[0];d=h;c=e(this).data("select2");if(c!==h&&(d="container"===a[0]?c.container:c[a[0]].apply(c,a.slice(1)),d!==h))return!1}else throw"Invalid arguments to select2 plugin: "+a;});return d=== 1365h?this:d};e.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(a,b,c,d){b=[];G(a.text,c.term,b,d);return b.join("")},formatSelection:function(a){return a?a.text:h},sortResults:function(a){return a},formatResultCssClass:function(){return h},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(a,b){var c=b-a.length;return"Please enter "+c+" more character"+ 1366(1==c?"":"s")},formatInputTooLong:function(a,b){var c=a.length-b;return"Please enter "+c+" less character"+(1==c?"":"s")},formatSelectionTooBig:function(a){return"You can only select "+a+" item"+(1==a?"":"s")},formatLoadMore:function(){return"Loading more results..."},formatSearching:function(){return"Searching..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(a){return a.id},matcher:function(a,b){return 0<=b.toUpperCase().indexOf(a.toUpperCase())}, 1367separator:",",tokenSeparators:[],tokenizer:N,escapeMarkup:function(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(a).replace(/[&<>"'/\\]/g,function(a){return b[a[0]]})},blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(a){return a},adaptDropdownCssClass:function(){return null}};window.Select2={query:{ajax:H,local:I,tags:J},util:{debounce:E,markMatch:G},"class":{"abstract":u,single:B,multi:C}}}})(jQuery); 1368/* End */ 1369; 1370; /* Start:/application/js/libs/bootstrap.tooltip.js*/ 1371/** 1372* Bootstrap.js by @fat & @mdo 1373* plugins: bootstrap-tooltip.js 1374* Copyright 2012 Twitter, Inc. 1375* http://www.apache.org/licenses/LICENSE-2.0.txt 1376*/ 1377!function(a){var b=function(a,b){this.init("tooltip",a,b)};b.prototype={constructor:b,init:function(b,c,d){var e,f,g,h,i;this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.enabled=!0,g=this.options.trigger.split(" ");for(i=g.length;i--;)h=g[i],h=="click"?this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this)):h!="manual"&&(e=h=="hover"?"mouseenter":"focus",f=h=="hover"?"mouseleave":"blur",this.$element.on(e+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(f+"."+this.type,this.options.selector,a.proxy(this.leave,this)));this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(b){return b=a.extend({},a.fn[this.type].defaults,this.$element.data(),b),b.delay&&typeof b.delay=="number"&&(b.delay={show:b.delay,hide:b.delay}),b}
vendor: 4,702 bytes, lines 1377-1395
1377,enter:function(b){var c=a.fn[this.type].defaults,d={},e;this._options&&a.each(this._options,function(a,b){c[a]!=b&&(d[a]=b)},this),e=a(b.currentTarget)[this.type](d).data(this.type);if(!e.options.delay||!e.options.delay.show)return e.show();clearTimeout(this.timeout),e.hoverState="in",this.timeout=setTimeout(function(){e.hoverState=="in"&&e.show()},e.options.delay.show)},leave:function(b){var c=a(b.currentTarget)[this.type](this._options).data(this.type);this.timeout&&clearTimeout(this.timeout);if(!c.options.delay||!c.options.delay.hide)return c.hide();c.hoverState="out",this.timeout=setTimeout(function(){c.hoverState=="out"&&c.hide()},c.options.delay.hide)},show:function(){var b,c,d,e,f,g,h=a.Event("show");if(this.hasContent()&&this.enabled){this.$element.trigger(h);if(h.isDefaultPrevented())return;b=this.tip(),this.setContent(),this.options.animation&&b.addClass("fade"),f=typeof this.options.placement=="function"?this.options.placement.call(this,b[0],this.$element[0]):this.options.placement,b.detach().css({top:0,left:0,display:"block"}),this.options.container?b.appendTo(this.options.container):b.insertAfter(this.$element),c=this.getPosition(),d=b[0].offsetWidth,e=b[0].offsetHeight;switch(f){case"bottom":g={top:c.top+c.height,left:c.left+c.width/2-d/2};break;case"top":g={top:c.top-e,left:c.left+c.width/2-d/2};break;case"left":g={top:c.top+c.height/2-e/2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.width}}this.applyPlacement(g,f),this.$element.trigger("shown")}},applyPlacement:function(a,b){var c=this.tip(),d=c[0].offsetWidth,e=c[0].offsetHeight,f,g,h,i;c.offset(a).addClass(b).addClass("in"),f=c[0].offsetWidth,g=c[0].offsetHeight,b=="top"&&g!=e&&(a.top=a.top+e-g,i=!0),b=="bottom"||b=="top"?(h=0,a.left<0&&(h=a.left*-2,a.left=0,c.offset(a),f=c[0].offsetWidth,g=c[0].offsetHeight),this.replaceArrow(h-d+f,f,"left")):this.replaceArrow(g-e,g,"top"),i&&c.offset(a)},replaceArrow:function(a,b,c){this.arrow().css(c,a?50*(1-a/b)+"%":"")},setContent:function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},hide:function(){function e(){var b=setTimeout(function(){c.off(a.support.transition.end).detach()},500);c.one(a.support.transition.end,function(){clearTimeout(b),c.detach()})}var b=this,c=this.tip(),d=a.Event("hide");this.$element.trigger(d);if(d.isDefaultPrevented())return;return c.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?e():c.detach(),this.$element.trigger("hidden"),this},fixTitle:function(){var a=this.$element;(a.attr("title")||typeof a.attr("data-original-title")!="string")&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},hasContent:function(){return this.getTitle()},getPosition:function(){var b=this.$element[0];return a.extend({},typeof b.getBoundingClientRect=="function"?b.getBoundingClientRect():{width:b.offsetWidth,height:b.offsetHeight},this.$element.offset())},getTitle:function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||(typeof c.title=="function"?c.title.call(b[0]):c.title),a},tip:function(){return this.$tip=this.$tip||a(this.options.template)},arrow:function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(b){var c=b?a(b.currentTarget)[this.type](this._options).data(this.type):this;c.tip().hasClass("in")?c.hide():c.show()},destroy:function(){this.hide().$element.off("."+this.type).removeData(this.type)}};var c=a.fn.tooltip;a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("tooltip"),f=typeof c=="object"&&c;e||d.data("tooltip",e=new b(this,f)),typeof c=="string"&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.defaults={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(window.jQuery) 1378/* End */ 1379; 1380; /* Start:/application/js/plugins/myFancybox.js*/ 1381// пÑоÑÑой ÑÑнÑибокÑ, Ð´Ð»Ñ Ð¿Ð¾ÐºÐ°Ð·Ð° пÑоÑÑÑÑ Ð¿Ð¾Ð¿Ð°Ð¿Ð¾Ð² 1382$.Controller('APP.myFancybox', 1383 { 1384 pluginName: 'myFancybox', 1385 listensTo: [ 1386 'showPopup', 1387 'closePopup' 1388 ] 1389 }, 1390 { 1391 init: function () { 1392 1393 this.o = this.options; 1394 1395 this.myShow = false;
1396 this.o.overlay = $('.myFancyboxOverlay'); 1397 this.o.popups = $('.myPopup'); 1398 1399 this.o.popups.find('.close').click(this.proxy(function() { 1400 1401 this._myFancyboxHide(); 1402 })); 1403 1404 this.update(); 1405 }, 1406 1407 '.myFancybox click': function(obj, e) { 1408 1409 e.preventDefault(); 1410 1411 var $popup = $(obj.attr('href')); 1412 1413 this._myFancyboxShow($popup); 1414 1415 return false; 1416 }, 1417 1418 '{overlay} click': function() { 1419 1420 this._myFancyboxHide(); 1421 }, 1422 1423 _myFancyboxShow: function($popup) { 1424 1425 $popup.show(); 1426 $popup 1427 .css({'margin-left': -$popup.width() / 2}) 1428 .css({'top': ($(window).scrollTop() + 100)}); 1429 1430 this.o.overlay.fadeIn(); 1431 1432 this.myShow = true; 1433 }, 1434 1435 _myFancyboxHide: function() { 1436 1437 this.o.popups.hide(); 1438 this.o.overlay.fadeOut(); 1439 }, 1440 1441 // по нажаÑÐ¸Ñ esc закÑÑÐ²Ð°ÐµÑ Ð¾ÑкÑÑÑÑе окна 1442 'body keydown': function(obj, ev) { 1443 1444 if (ev.keyCode == 27 && this.myShow) { // ÑÑÐ»Ð¾Ð²Ð¸Ñ Ð´Ð»Ñ esc 1445 1446 this._myFancyboxHide(); 1447 } 1448 }, 1449 1450 'showPopup': function(obj, e, popup) { 1451 1452 this._myFancyboxShow($(popup)); 1453 }, 1454 1455 'closePopup': function() { 1456 1457 this._myFancyboxHide(); 1458 } 1459 } 1460); 1461 1462/* End */ 1463; 1464; /* Start:/application/js/plugins/citiesChanger.js*/ 1465// --------------------------------------------------------------------------------------------------------- 1466// citiesChanger 1467// --------------------------------------------------------------------------------------------------------- 1468$.Controller( 1469 'APP.citiesChanger', 1470 { 1471 pluginName: 'citiesChanger' 1472 }, 1473 { 1474 init: function () { 1475 1476 this.element.find('.currentCity').css({'width': parseInt(this.element.find('.currentCity').width(), 10)}); 1477 }, 1478 1479 '.setCity click': function (el, ev) { 1480 1481 var cityId = el.data('city-id'); 1482 this.element.find('.currentCity span').html(el.text()); 1483 this.element.find('.phones').hide(); 1484 this.element.find('.phones' + cityId).show(); 1485 } 1486 } 1487); 1488 1489/* End */ 1490; 1491; /* Start:/application/js/plugins/popups.js*/ 1492// вÑплÑваÑки 1493$.Controller('APP.popups', 1494 { 1495 pluginName: 'popups', 1496 defaults: { 1497 expandSpeed: 'fast', 1498 expands: '', 1499 collapse: '' 1500 } 1501 }, 1502 { 1503 init: function () { 1504 1505 }, 1506 1507 1508 // ÑаÑкÑÑÑÑ 1509 '{expands} click': function (obj) { 1510 1511 // пÑовеÑка на вÑполнение анимаÑии 1512 var $block = $(obj.attr('rel')); 1513 if (!$block.is(':animated')) { 1514 1515 if ($block.is(':visible')) { // еÑли попап бÑл оÑкÑÑÑ - повÑоÑнÑй клик, закÑÑваем 1516 1517 this._collapsePopups(); 1518 } else { // оÑкÑÑваем попап 1519 1520 this._collapsePopups($block); 1521 $block.fadeIn(this.options.expandSpeed, function() { 1522 1523 //setFirstFocus($(this)); 1524 }); 1525 } 1526 } 1527 1528 return false; 1529 }, 1530 1531 1532 // закÑÑÑÑ 1533 '{collapse} click': function (obj) { 1534 1535 var $block = $(obj.attr('rel')); 1536 if (!$block.is(':animated')) { 1537 1538 this._collapsePopups(); 1539 } 1540 }, 1541 1542 1543 // закÑÑваем оÑкÑÑÑÑе 1544 _collapsePopups: function($excludePopup) { 1545 1546 var self = this; 1547 $(self.options.expands).each(function() { 1548 1549 $($(this).attr('rel')) 1550 .not($excludePopup) 1551 .fadeOut(self.options.expandSpeed); 1552 }); 1553 }, 1554 1555 1556 // по нажаÑÐ¸Ñ esc закÑÑÐ²Ð°ÐµÑ Ð¾ÑкÑÑÑÑе окна 1557 'body keydown': function(obj, ev) { 1558 1559 if (ev.keyCode == 27) { // ÑÑÐ»Ð¾Ð²Ð¸Ñ Ð´Ð»Ñ esc 1560 1561 this._collapsePopups(); 1562 } 1563 }, 1564 1565 1566 // по ÐºÐ»Ð¸ÐºÑ Ð·Ð°ÐºÑÑÐ²Ð°ÐµÑ Ð¾ÑкÑÑÑÑе окна 1567 'body click': function(obj, ev) { 1568 1569 var excludeSelector = this.options.expands; // ÑелекÑÐ¾Ñ Ð¸Ð· вÑÐµÑ ÑлеменÑов, коÑоÑÑе оÑкÑÑваÑÑ Ð¾ÐºÐ¾Ñки и ÑÐ°Ð¼Ð¸Ñ Ð¾ÐºÐ¾Ñек: пÑи клике по ним бÑдÑÑ ÑабоÑаÑÑ Ð¸Ñ Ð¾Ð±ÑабоÑÑики 1570 $(this.options.expands).each(function() { 1571 1572 excludeSelector += ',' + $(this).attr('rel'); 1573 }); 1574 if ($(ev.target).closest(excludeSelector).length <= 0) { 1575 1576 this._collapsePopups(); 1577 } 1578 } 1579 } 1580); 1581 1582/* End */ 1583; 1584; /* Start:/application/js/plugins/catalog.js*/ 1585$.Controller( 1586 'APP.Catalog.Product', 1587 { 1588 pluginName: 'catalogProduct', 1589 defaults: { 1590 price: { 1591 old: 0, 1592 actual: 0 1593 }, 1594 style: { 1595 background: '', 1596 color: '#ffffff' 1597 } 1598 } 1599 }, 1600 { 1601 init: function () { 1602 this.o = this.options; 1603 this.addState = ''; 1604 1605 this.form = this.find('form'); 1606 1607 var dataInit = this.element.data('init'); 1608 this.o.price.old = dataInit.oldPrice; 1609 this.o.price.actual = dataInit.price; 1610 this.o.style.background = dataInit.color; 1611 1612 this.o.button = this.find('.js-product-add'); 1613 1614 this.priceHolder = this.find('.js-catalog-price'); 1615 1616 this.basketId = this.form.find('input[name=BASKET_ID]').val(); 1617 1618 this.update(); 1619 }, 1620 1621 // полоÑа Ñ Ñеной на ÑÑÑаниÑе ÑоваÑа пÑи ÑкÑоле ÑÑÑаниÑÑ Ð¿Ð¾ÐºÐ°Ð·ÑваеÑÑÑ 1622 '{document} scroll': function() { 1623 1624 var scrollTop = parseInt($(window).scrollTop(), 10); 1625 1626 if (scrollTop > 340) { 1627 1628 this.find('#product-info-bar').fadeIn(); 1629 } else { 1630 1631 this.find('#product-info-bar').fadeOut(); 1632 } 1633 }, 1634 1635 '.js-feature-select change':function(el, e){
1636 this.calcPrice(); 1637 }, 1638 1639 // Ðзменение колиÑеÑÑва доп. ÑлеменÑов 1640 '.js-calc-item-select change': function(el, e){ 1641 // ÐолÑÑение конÑейнеÑа ÑлеменÑа 1642 var element = el.closest('.js-calc-item'); 1643 1644 // ÐолÑÑение Ñлажка вÑбоÑа ÑлеменÑа 1645 var checker = element.find('.js-calc-item-check'); 1646 1647 // УÑÑановка или ÑбÑÐ¾Ñ Ñлажка в завиÑимоÑÑи Ð¾Ñ ÐºÐ¾Ð»Ð¸ÑеÑÑва ÑоваÑов 1648 checker.attr('checked', (el.val() > 0)) 1649 // ÐÑобÑÐ¾Ñ ÑобÑÑÐ¸Ñ Ð² каÑÑомнÑй конÑÑол 1650 .trigger('change'); 1651 }, 1652 1653 // УÑÑановка Ñлажка на дополниÑелÑном ÑлеменÑе 1654 '.js-calc-item-check change': function(el, e){ 1655 // ÐолÑÑение конÑейнеÑа ÑлеменÑа 1656 var element = el.closest('.js-calc-item'); 1657 1658 // ÐолÑÑение ÑпиÑка Ñ ÐºÐ¾Ð»Ð¸ÑеÑÑвом ÑоваÑов 1659 var select = element.find('.js-calc-item-select'); 1660 1661 // ÐÑли Ñлажок ÑÑÑановлен 1662 if (el.is(':checked')) { 1663 // ÐÑли еÑÑÑ ÑпиÑок и вÑбÑано 0 ÑоваÑов в нем 1664 if (select.length && select.val() == 0) { 1665 // ÐÑбÑаÑÑ 1 ÑÐ¾Ð²Ð°Ñ Ð¸ ÑообÑиÑÑ Ð¾Ð± изменениÑÑ Ð² каÑÑомнÑй select 1666 select.val(1).trigger('change.select2'); 1667 } 1668 1669 // ÐÑли Ñлажок ÑнÑÑ 1670 } else { 1671 // ÐÑли еÑÑÑ ÑпиÑок Ñ ÐºÐ¾Ð»Ð¸ÑеÑÑвом ÑоваÑов 1672 if (select.length) { 1673 // ÐÑÑÑавиÑÑ ÐºÐ¾Ð»Ð¸ÑеÑÑво в 0 и ÑообÑиÑÑ Ð¾Ð± изменениÑÑ Ð² каÑÑомнÑй select 1674 select.val(0).trigger('change.select2'); 1675 } 1676 } 1677 1678 // ÐеÑеÑÑиÑаÑÑ ÑÑÐ¼Ð¼Ñ Ð·Ð°ÐºÐ°Ð·Ð° 1679 this.calcPrice(); 1680 }, 1681 1682 calcPrice: function() { 1683 1684 var addPrice = 0, 1685 addPriceNoFabric = 0; 1686 1687 var isAddMatras = false; 1688 var isAddOrtoped = false; 1689 1690 // ÐбÑабоÑка габаÑиÑов 1691 this.find('.js-feature-select').each(this.proxy(function(i, el){ 1692 var item = $(el).find(':selected'); 1693 addPrice += parseFloat(item.data('price')); 1694 1695 if (isAddMatras && typeof item.data('matras') !== 'undefined') { 1696 addPrice += parseFloat(item.data('matras')); 1697 } 1698 if (isAddOrtoped && typeof item.data('ortoped') !== 'undefined') { 1699 addPrice += parseFloat(item.data('ortoped')); 1700 } 1701 })); 1702 1703 addPriceNoFabric = addPrice; 1704 1705 // ÐбÑабоÑка комплекÑаÑии и доп. ÑлеменÑов 1706 this.find('.js-calc-item').each(this.proxy(function(i, el){ 1707 var productLabel = $(el).find('.js-product-label'); 1708 1709 var itemCheck = $(el).find('.js-calc-item-check'); 1710 1711 if (itemCheck.is(':checked')) { 1712 1713 var itemName = itemCheck.data('name'); 1714 if (typeof itemName !== 'undefined') { 1715 if (itemName === 'SHOW_MATRAS' && itemCheck.val() == '1') { 1716 isAddMatras = true; 1717 } else if (itemName === 'ADD_ELEMENT' && itemCheck.val() == 'SHOW_ORT_OSNOV') { 1718 isAddOrtoped = true; 1719 } 1720 } 1721 1722 // ÐÑли еÑÑÑ Ñенник, покÑаÑиÑÑ ÐµÐ³Ð¾ в ÑÐ²ÐµÑ ÑоваÑа 1723 if (productLabel.length) { 1724 productLabel.css(this.o.style); 1725 } 1726 1727 var select = $(el).find('.js-calc-item-select'); 1728 if (select.length) { 1729 add = (typeof $(el).data('price') === 'undefined' ? 0 : parseFloat($(el).data('price'))) * parseInt(select.val()); 1730 } else { 1731 add = (typeof $(el).data('price') === 'undefined' ? 0 : parseFloat($(el).data('price'))); 1732 } 1733 1734 addPrice += add; 1735 1736 if (!$(el).is('.js-calc-fabric')) { 1737 1738 addPriceNoFabric += add; 1739 } 1740 } else { 1741 // ÐÑли еÑÑÑ Ñенник, веÑнÑÑÑ ÐµÐ¼Ñ Ð´ÐµÑолÑнÑÑ Ð¾ÐºÑаÑÐºÑ 1742 if (productLabel.length) { 1743 productLabel.css({color: '', background: ''}); 1744 } 1745 } 1746 })); 1747 1748 // обновление ÑÐµÐ½Ñ Ñкани 1749 var fullPrice = this.o.price.actual; 1750 this.find('.js-price-update').each(function() { 1751 1752 $(this).html((fullPrice + parseInt($(this).data('price'), 10) + addPriceNoFabric).nFormat(' ')); 1753 }); 1754 1755 this.updatePrice(addPrice); 1756 }, 1757 1758 updatePrice: function(addPrice){ 1759 addPrice = addPrice || 0; 1760 1761 var newPrice = { 1762 oldPrice: this.o.price.old, 1763 price: this.o.price.actual 1764 } 1765 1766 newPrice.price += addPrice; 1767 1768 if (this.o.price.old > 0) { 1769 newPrice.oldPrice += addPrice; 1770 } 1771 1772 this.priceHolder.html('tplCatalogPrice', newPrice); 1773 }, 1774 1775 _checkRequiredParams: function() { 1776 1777 var result = true; 1778 1779 this.find('.js-input-required').each(this.proxy(function(i, input){ 1780 1781 var $input = $(input); 1782 1783 if ($input.val() == '' && result == true) { 1784 alertify.confirm($input.data('required-text'), this.proxy(function (e) { 1785 1786 if (e) { 1787 1788 // Ð´Ð»Ñ Ð¿Ð¾Ð¿Ð°Ð¿Ð° вÑбоÑа Ñкани нÑжно еÑÑ Ð·Ð°Ð´Ð°ÑÑ Ð¿Ð°ÑамеÑÑÑ, какÑÑ ÑÐºÐ°Ð½Ñ Ð²ÑбиÑаем 1789 if ($input.closest('.fiber-picker').length > 0) { 1790 1791 var $a = $input.closest('.row').find('a'); 1792 $('#fiber-picker-popup').trigger('setPopupTitle', {title: $a.text() ,type: $a.data('type')}); 1793 } 1794 1795 $(document).trigger("showPopup", $input.data('rel-popup')); 1796 } else { 1797 $input.val('не вÑбÑано'); 1798 this.find('.js-product-add').click(); 1799 } 1800 })); 1801 result = false; 1802 } 1803 })); 1804 1805 return result; 1806 }, 1807
1808 // Ðобавление в коÑÐ·Ð¸Ð½Ñ 1809 '{button} click': function(el, e){ 1810 e.preventDefault(); 1811 1812 if(this.addState != 'busy') { 1813 if (!this._checkRequiredParams()) return; 1814 this.addState = 'busy'; 1815 1816 $.ajax({ 1817 url: this.form.attr('action'), 1818 data: this.form.serialize(), 1819 type: 'POST', 1820 dataType: 'JSON', 1821 beforeSend: this.proxy(function(){ 1822 this.element.find('.loader').css('visibility', 'visible'); 1823 this.o.button.css('visibility', 'hidden'); 1824 }), 1825 complete: this.proxy(function(){ 1826 this.element.find('.loader').css('visibility', 'hidden'); 1827 this.o.button.css('visibility', 'visible'); 1828 this.addState = ''; 1829 }), 1830 success: this.proxy(function(data) { 1831 if (typeof data.basket !== 'undefined') { 1832 APP.Ctrl.basketSmall.setState(data.basket.itemsCount, data.basket.itemsSumm); 1833 } 1834 1835 if (!empty(this.basketId)) { 1836 window.location = this.form.find('input[name=CART_PATH]').val(); 1837 } else { 1838 var notify = this.find('.js-notify-message'); 1839 notify.find('.message').html(data.message); 1840 notify.fadeIn(); 1841 setTimeout(this.proxy(function() { 1842 notify.fadeOut(); 1843 }), 3000); 1844 } 1845 }) 1846 }); 1847 } 1848 }, 1849 1850 '.js-notify-message click': function(el, e){ 1851 el.fadeOut(); 1852 } 1853 } 1854); 1855/* End */ 1856; 1857; /* Start:/application/js/plugins/cart.js*/ 1858var interval; 1859 1860$.Controller( 1861 'APP.Cart', 1862 { 1863 pluginName: 'cart' 1864 }, 1865 { 1866 init: function () { 1867 1868 this.o = this.options; 1869 this.o.orderButton = this.element.find('.orderButton'); 1870 this.o.loader = this.element.find('.overlay'); 1871 this.o.deleteall = this.element.find('.deleteall'); 1872 1873 this.update(); 1874 1875 this.element.find('input[name~=QUANTITY_]').each(function() { 1876 1877 $(this).data('prev-val', parseInt($(this).val(), 10)); 1878 }); 1879 1880 //this._disableOrderButton(); 1881 }, 1882 1883 '{orderButton} click': function(button) { 1884 1885 if (!button.is('.disabled')) { 1886 1887 this.element.find('.show-popup').trigger('click'); 1888 } 1889 }, 1890 1891 '{deleteall} click': function() { 1892 1893 // confirm dialog 1894 alertify.confirm('ÐÑ Ð´ÐµÐ¹ÑÑвиÑелÑно ÑеÑили ÑдалиÑÑ Ð²Ñе из коÑзинÑ?', this.proxy(function (e) { 1895 1896 if (e) { 1897 this._ajaxDeleteAll(); 1898 } 1899 })); 1900 }, 1901 1902 '.delete click': function(obj) { 1903 1904 var $tr = obj.closest('tr'); 1905 this._ajaxDeleteProduct($tr.data('id'), $tr); 1906 }, 1907 1908 'input[name~=QUANTITY_] keyup': function(obj, ev) { 1909 1910 var val = parseInt(obj.val(), 10); 1911 1912 if (val <= 0 || empty(val)) { 1913 1914 obj.val('1'); 1915 val = 1; 1916 } 1917 1918 if (val > 999) { 1919 1920 obj.val('999'); 1921 val = 999; 1922 } 1923 1924 clearInterval(interval); 1925 1926 interval = setInterval(this.proxy(function() { 1927 1928 if (val != obj.data('prev-val') && !emptyNum(val)) { 1929 1930 this._ajaxUpdateProduct(obj.closest('tr').data('id'), val); 1931 obj.data('prev-val', val); 1932 } 1933 1934 clearInterval(interval); 1935 1936 }), 800); 1937 }, 1938 1939 'input[name~=QUANTITY_] change': function(obj, ev) { 1940 1941 var val = parseInt(obj.val(), 10); 1942 1943 if (val <= 0 || empty(val)) { 1944 1945 obj.val('1'); 1946 val = 1; 1947 } 1948 1949 if (val != obj.data('prev-val')) { 1950 1951 this._ajaxUpdateProduct(obj.closest('tr').data('id'), val); 1952 obj.data('prev-val', val); 1953 } 1954 }, 1955 1956 'input[type=checkbox] change': function(obj, ev) { 1957 1958 var $checked = this.element.find('.cart-about input[type=checkbox]:checked');
1959 var $all = this.element.find('.cart-about input[type=checkbox]'); 1960 1961 if ($checked.length < $all.length) { 1962 1963 this._disableOrderButton(); 1964 } else { 1965 1966 this._enableOrderButton(); 1967 } 1968 }, 1969 1970 _showLoader: function() { 1971 1972 this.o.loader.show(); 1973 }, 1974 1975 _hideLoader: function() { 1976 1977 this.o.loader.hide(); 1978 }, 1979 1980 _disableOrderButton: function() { 1981 1982 if (!this.o.orderButton.is('.disabled')) { 1983 1984 this.o.orderButton.data('href', this.o.orderButton.attr('href')); 1985 this.o.orderButton.attr('href', 'javascript:void(0);') 1986 this.o.orderButton.addClass("disabled"); 1987 } 1988 }, 1989 1990 _enableOrderButton: function() { 1991 1992 this.o.orderButton.attr('href', this.o.orderButton.data('href')); 1993 this.o.orderButton.removeClass("disabled"); 1994 }, 1995 1996 _hideProductRow: function($tr) { 1997 1998 if (typeof $tr == 'undefined' || $tr == null || $tr.length <= 0) $tr = this.element.find('.cart-block tr'); 1999 2000 $tr.remove(); 2001 2002 if (this.element.find('.cart-block tr').length <= 0) { 2003 2004 this.element.find('.cart').hide(); 2005 this.element.find('.noitems').show(); 2006 } 2007 }, 2008 2009 _ajaxDeleteProduct: function(id, $tr) { 2010 2011 this._showLoader(); 2012 2013 $.ajax({
2014 url: '/cart/delete/', 2015 data: {'id': id}, 2016 success: this.proxy(function(data) { 2017 2018 this._hideLoader(); 2019 this._hideProductRow($tr); 2020 this._refreshTotal(data); 2021 }), 2022 error: this.proxy(function(data) { 2023 2024 console.log('error'); 2025 2026 this._hideLoader(); 2027 }) 2028 }); 2029 }, 2030 2031 _ajaxDeleteAll: function(productId) { 2032 2033 this._showLoader(); 2034 2035 $.ajax({ 2036 url: '/cart/deleteall/', 2037 success: this.proxy(function(data) { 2038 2039 this._hideLoader(); 2040 this._hideProductRow(); 2041 this._refreshTotal(data); 2042 }), 2043 error: this.proxy(function(data) { 2044 2045 console.log('error'); 2046 2047 this._hideLoader(); 2048 }) 2049 }); 2050 }, 2051 2052 _ajaxUpdateProduct: function(id, count) { 2053 2054 this._showLoader(); 2055 2056 $.ajax({
2057 url: '/cart/update/', 2058 data: {'id': id, 'count': count}, 2059 success: this.proxy(function(data) { 2060 2061 this._hideLoader(); 2062 this._refreshTotal(data); 2063 }), 2064 error: this.proxy(function(data) { 2065 2066 console.log('error'); 2067 2068 this._hideLoader(); 2069 }) 2070 }); 2071 }, 2072 2073 _refreshTotal: function(data) { 2074 if (typeof data.basket !== 'undefined') { 2075 APP.Ctrl.basketSmall.setState(data.basket.itemsCount, data.basket.itemsSumm); 2076 this.element.find('.cart-summ-value').html(data.basket.itemsSumm.nFormat(' ', 0, false)); 2077 } 2078 } 2079 } 2080); 2081/* End */ 2082; 2083; /* Start:/application/js/plugins/faqForm.js*/ 2084// вÑплÑваÑки 2085$.Controller('APP.faqForm', 2086 { 2087 pluginName: 'faqForm', 2088 defaults: { 2089 2090 } 2091 }, 2092 { 2093 init: function () { 2094 2095 this.o = this.options; 2096 this.o.loader = this.element.find('.loader'); 2097 this.o.form = this.element.find('form') 2098 this.o.button = this.element.find('input[type=submit]'); 2099 2100 this.o.form.validate({ 2101 rules: { 2102 question: "required", 2103 name: "required", 2104 email: { 2105 "rightEmail": true, 2106 "required": true 2107 } 2108 }, 2109 messages: { 2110 question: { 2111 required: 'ÐÑ Ñ Ð¾Ñим оÑвеÑиÑÑ Ð½Ð° Ð²Ð°Ñ Ð²Ð¾Ð¿ÑоÑ' 2112 } 2113 }, 2114 submitHandler: this.proxy(this._submitHandler) 2115 }); 2116 2117 this.o.form.formTabber(); 2118 2119 this.update(); 2120 }, 2121 2122 '.oneMorePlease click': function() { 2123 2124 this._showFormPage(); 2125 }, 2126 2127 _showLoader: function() { 2128 2129 this.o.loader.show(); 2130 this.o.button.hide(); 2131 this.find('.js-error-message').html(''); 2132 }, 2133 2134 _hideLoader: function() { 2135 2136 this.o.loader.hide(); 2137 this.o.button.show(); 2138 }, 2139 2140 _submitHandler: function () { 2141 2142 this._showLoader(); 2143 2144 $.ajax({ 2145 url: '/faq/add/', 2146 data: this.o.form.serialize(), 2147 success: this.proxy(function(data) { 2148 2149 this._hideLoader(); 2150 2151 if (data.error == true) { 2152 this.find('.js-error-message').html(data.message); 2153 2154 } else if (data.result != false) { 2155 2156 this._showSuccessPage(); 2157 } 2158 }), 2159 error: this.proxy(function(data) { 2160 2161 console.log('error'); 2162 2163 this._hideLoader(); 2164 }) 2165 }); 2166 }, 2167 2168 _showSuccessPage: function() { 2169 2170 this.element.find('.faq-form-holder').slideUp(); 2171 this.element.find('.faq-form-success').slideDown(); 2172 }, 2173 2174 _showFormPage: function() { 2175 2176 this.element.find('.faq-form-holder').slideDown(); 2177 this.element.find('.faq-form-success').slideUp(); 2178 2179 this.element.find('#fieldQuestion').val('').focus(); 2180 } 2181 } 2182); 2183 2184/* End */ 2185; 2186; /* Start:/application/js/plugins/basket.small.js*/ 2187$.Controller(� 'APP.Basket.Small',� {� pluginName: 'basketSmall',� defaults: {� template: 'tplBasketSmall',� state: {� itemsCount: 0,� itemsSumm: 0� }� }� },� {� init: function(){� this.o = this.options;�� APP = APP || {};� APP['Ctrl'] = APP.Ctrl || {};� APP.Ctrl['basketSmall'] = this;� },� � setState: function(itemsCount, itemsSumm){� this.o.state.itemsCount = itemsCount;� this.o.state.itemsSumm = itemsSumm;� � this.element.html(this.o.template, this.o.state);� }� }�) 2188/* End */ 2189; 2190; /* Start:/application/js/plugins/orderForm.js*/ 2191// вÑплÑваÑки 2192$.Controller('APP.orderForm', 2193 { 2194 pluginName: 'orderForm', 2195 defaults: { 2196 2197 } 2198 }, 2199 { 2200 init: function () { 2201 2202 this.o = this.options; 2203 this.o.loader = this.element.find('.overlay'); 2204 this.o.form = this.element.find('form') 2205 this.o.form.formTabber(); 2206 2207 2208 this.o.form.validate({ 2209 rules: { 2210 name: { 2211 required: true, 2212 minlength: 2 2213 }, 2214 phone1: 'required', 2215 email: 'notRequiredRightEmail' 2216 }, 2217 messages: { 2218 phone1: { 2219 required: 'ТелеÑон оÑÐµÐ½Ñ Ð½ÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼' 2220 } 2221 }, 2222 submitHandler: this.proxy(this._submitHandler) 2223 }); 2224 }, 2225 2226 '{APP} fancy.complete': function(){ 2227 this.o.form.find('input[type="text"]').first().focus(); 2228 }, 2229 2230 _showLoader: function() { 2231 2232 this.o.loader.show(); 2233 }, 2234 2235 _hideLoader: function() { 2236 2237 this.o.loader.hide(); 2238 }, 2239 2240 _submitHandler: function () { 2241 this.find('.js-error-message').html(''); 2242 2243 this._showLoader(); 2244 2245 $.ajax({ 2246 url: '/cart/order/', 2247 data: this.o.form.serialize(), 2248 success: this.proxy(function(data) { 2249 2250 this._hideLoader(); 2251 2252 if (data.error == false) { 2253 this._showSuccessPage(); 2254 } else if (typeof data.message !== 'undefined') { 2255 this.find('.js-error-message').html(data.message); 2256 } 2257 }), 2258 error: this.proxy(function(data) { 2259 console.log('error'); 2260 2261 this._hideLoader(); 2262 }) 2263 }); 2264 }, 2265 2266 _showSuccessPage: function() { 2267 $.fancybox({ 2268 href: '#id-order-form-success', 2269 padding: 20, 2270 overlayOpacity: 0.75, 2271 overlayColor: '#000', 2272 enableEscapeButton: true, 2273 onClosed: function(){ 2274 window.location.reload(true); 2275 } 2276 }); 2277 } 2278 2279 2280 } 2281); 2282 2283/* End */ 2284; 2285; /* Start:/application/js/plugins/responceForm.js*/ 2286$.Controller('APP.responceForm', 2287 { 2288 pluginName: 'responceForm' 2289 }, 2290 { 2291 init: function () { 2292 2293 this.o = this.options; 2294 2295 this.o.form = this.element.find('form') 2296 2297 this.o.form.validate({ 2298 rules: { 2299 form_text_1: "required", 2300 form_textarea_3: "required", 2301 form_text_2: { 2302 "rightEmail": true, 2303 "required": true 2304 } 2305 }, 2306 messages: { 2307 form_text_1: { 2308 required: 'ÐведиÑе ваÑе имÑ' 2309 }, 2310 form_text_2: { 2311 required: 'ÐведиÑе Ð²Ð°Ñ email', 2312 rightEmail: 'Email введен некоÑÑекÑно' 2313 }, 2314 form_textarea_3: { 2315 required: 'Ðам инÑеÑеÑен Ð²Ð°Ñ Ð¾ÑзÑв' 2316 } 2317 } 2318 }); 2319 2320 this.update(); 2321 } 2322 } 2323); 2324 2325/* End */ 2326; 2327; /* Start:/application/js/plugins/ajaxForm.js*/ 2328// вÑплÑваÑки 2329$.Controller('APP.ajaxForm', 2330 { 2331 pluginName: 'ajaxForm' 2332 }, 2333 { 2334 init: function () {}, 2335 2336 '.add-more click': function() { 2337 2338 this.toggleView(); 2339 }, 2340 2341 toggleView: function() { 2342 2343 var $formHolder = this.find('.form-holder'); 2344 2345 if (!$formHolder.is(':visible')) { 2346 2347 $formHolder.slideDown(); 2348 this.find('.thank-you').slideUp(); 2349 } 2350 2351 this.find('input[type=text]').first().focus(); 2352 }, 2353 2354 '{APP} ajaxFormReset': function() { 2355 2356 this.toggleView(); 2357 } 2358 2359 } 2360); 2361 2362/* End */ 2363; 2364; /* Start:/application/js/plugins/fiberPopup.js*/ 2365// вÑплÑваÑки
2366$.Controller('APP.fiberPopup', 2367 { 2368 pluginName: 'fiberPopup', 2369 defaults: { 2370 2371 }, 2372 listensTo: [ 2373 'setPopupTitle' 2374 ] 2375 }, 2376 { 2377 init: function () { 2378 2379 this.fabricType = false; 2380 this.firstOpen = true; 2381 2382 this.setTypeDescription(''); 2383 2384 this.find('.fiber-carousel').each(this.proxy(function(i, carousel) { 2385 2386 var $carousel = $(carousel); 2387 2388 if ($carousel.find('.carousel-pic').length > 1) { 2389 2390 $carousel.find('.collection-gallery').cycle({ 2391 fx: 'fade', 2392 speed: 'fast', 2393 timeout: 0, 2394 next: $carousel.find('.carousel-right'), 2395 prev: $carousel.find('.carousel-left'), 2396 }); 2397 } else { 2398 2399 $carousel.find('.carousel-right').hide(); 2400 $carousel.find('.carousel-left').hide(); 2401 } 2402 })); 2403 2404 this.update(); 2405 }, 2406 2407 '.filter a click': function(obj) { 2408 2409 var $li = obj.closest('li'); 2410 2411 if (!$li.is('.active') && !$li.is('.disabled')) { 2412 2413 2414 if ($li.is('.collections-filter-link')) { // ÑилÑÑÑ ÐºÐ¾Ð»Ð»ÐµÐºÑий 2415 2416 this.find('.collections-filter li').removeClass('active'); 2417 $li.addClass('active'); 2418 2419 this.filterCollections({id: parseInt($li.data('collection-id'), 10), type: 'collection'}); 2420 this.filterPriceCats(parseInt($li.data('price-cat-id'), 10)); 2421 2422 } else if ($li.is('.price-filter-link')) { // ÑилÑÑÑ ÑеновÑÑ ÐºÐ°ÑегоÑий 2423 2424 var typeId = parseInt(this.find('.filter li.active').data('type-id'), 10); 2425 2426 this.find('.collections-filter li, .price-filter li').removeClass('active'); 2427 $li.addClass('active'); 2428 2429 this.find('li.price-filter-link[data-type-id=' + typeId + ']').addClass('active'); 2430 2431 params = [ 2432 {id: parseInt($li.data('price-cat-id'), 10), type: 'price-cat'}, 2433 {id: typeId, type: 'type'} 2434 ]; 2435 2436 this.filterCollections(params); 2437 this.filterCollectionsList(params); 2438 2439 } else { // ÑилÑÑÑ Ñипов Ñканей 2440 2441 this.find('.filter li').removeClass('active'); 2442 $li.addClass('active'); 2443 2444 params = {id: parseInt($li.data('type-id'), 10), type: 'type'}; 2445 2446 this.filterCollections(params); 2447 this.filterCollectionsList(params); 2448 this.filterPricesByType($li.data('price-cats')); 2449 2450 this.setTypeDescription($.trim($li.data('description'))); 2451 } 2452 2453 // гÑÑзим каÑÑинки Ñ Ð²ÑбÑаннÑÑ Ñабов 2454 this._loadImagesFiberColAct(); 2455 2456 2457 } 2458 }, 2459 2460 '{document} .selectFabricButton click': function(obj) { 2461 2462 var fabricData = { 2463 id: parseInt(obj.data('fabric-id'), 10), 2464 pic: obj.data('fabric-pic'), 2465 name: obj.data('fabric-name'), 2466 price: obj.data('fabric-price'), 2467 priceCat: obj.data('price-cat'), 2468 type: this.fabricType 2469 } 2470 2471 $(document).trigger("closePopup"); 2472 $.fancybox.close(); 2473 2474 $('#fiber-changer').trigger('setFabric', fabricData); 2475 }, 2476 2477 setTypeDescription: function(description) { 2478 2479 var $field = this.find('.type-description') 2480 2481 $field.stop().html(description); 2482 2483 description.length > 0 ? $field.fadeIn() : $field.fadeOut(); 2484 }, 2485 2486 filterCollectionsList: function(params) { 2487 2488 var $collections = this.find('.collections-filter li'); 2489 2490 this.toggleCollections($collections, params); 2491 }, 2492 2493 filterCollections: function(params) { 2494 2495 var $collections = this.find('.fiber-collection'); 2496 2497 this.toggleCollections($collections, params); 2498 }, 2499 2500 toggleCollections: function($collections, params) { 2501 2502 $collections.show(); 2503 2504 if ($.isArray(params)) { 2505 2506 $.each(params, function(i, param){ 2507 2508 filter(param); 2509 }); 2510 } else { 2511 2512 filter(params); 2513 } 2514 2515 function filter(params) { 2516 2517 var id = params.id, 2518 type = params.type; 2519 2520 if (id > 0 && !isNaN(id)) { 2521 2522 $collections.each(function(i, li) { 2523 2524 var $li = $(li); 2525 2526 parseInt($li.data(type + '-id'), 10) != id ? $li.hide() : true; 2527 }); 2528 } 2529 } 2530 }, 2531 2532 filterPriceCats: function(priceCatId) { 2533 2534 this.find('.price-filter li').removeClass('active').each(this.proxy(function(i, li) { 2535 2536 var $li = $(li); 2537 2538 if ($li.data('price-cat-id') == priceCatId) $li.addClass('active'); 2539 })); 2540 }, 2541 2542 filterPricesByType: function(priceCatsIds) { 2543 2544 if (typeof priceCatsIds != 'undefined') { 2545 2546 this.find('.price-filter li') 2547 .removeClass('active') 2548 .addClass('disabled') 2549 .each(this.proxy(function(i, li) { 2550 2551 var $li = $(li); 2552 2553 $.each(priceCatsIds, this.proxy(function(j, priceCatId) { 2554 2555 if ($li.data('price-cat-id') == priceCatId) $li.removeClass('disabled'); 2556 })); 2557 })); 2558 2559 this.find('.price-filter li') 2560 .not('.disabled') 2561 .first() 2562 .find('a') 2563 .trigger('click'); 2564 } 2565 }, 2566
2567 setActiveFabric: function(fabricId) { 2568 2569 var $fabric = this.find('a[data-fabric-id=' + fabricId + ']'); 2570 2571 this.find('.collections-filter li[data-collection-id=' + $fabric.data('collection-id') + '] a').trigger('click'); 2572 }, 2573 2574 _setFirstPriceCatActive: function() { 2575 2576 this.find('.price-filter .price-filter-link') 2577 .not('.disabled') 2578 .first() 2579 .find('a') 2580 .trigger('click'); 2581 }, 2582 2583 2584 _loadImagesFiberColAct: function(){ 2585 2586 $('.fiber-collection:visible').each(function(){ 2587 2588 var collection = $(this), 2589 pics = collection 2590 .find('.mini-pic img, .fiber-pic-holder img, .fiber-carousel img') 2591 .filter('[data-src]'); 2592 2593 2594 if(pics.size()){ 2595 $.each(pics, function(){ 2596 var pic = $(this); 2597 2598 pic.attr('src', pic.data('src')); 2599 pic.removeAttr('data-src'); 2600 }); 2601 } 2602 2603 }); 2604 2605 }, 2606 2607 2608 _setPopupTitle: function(title) { 2609 2610 if ($.trim(title.length) <= 0) return; 2611 2612 this.find('.popup-title').html(title); 2613 }, 2614 2615 'setPopupTitle': function(obj, e, params) { 2616 2617 this.fabricType = params.type; 2618 2619 if (this.firstOpen == true) { 2620 2621 this._setFirstPriceCatActive(); 2622 this.firstOpen = false; 2623 } 2624 2625 if (typeof params.activeFabric != 'undefined' && params.activeFabric > 0) { 2626 2627 this.setActiveFabric(params.activeFabric); 2628 } 2629 2630 this._setPopupTitle(params.title); 2631 } 2632 } 2633); 2634 2635/* End */ 2636; 2637; /* Start:/application/js/plugins/fiberChanger.js*/ 2638// пÑоÑÑой ÑÑнÑибокÑ, Ð´Ð»Ñ Ð¿Ð¾ÐºÐ°Ð·Ð° пÑоÑÑÑÑ Ð¿Ð¾Ð¿Ð°Ð¿Ð¾Ð² 2639$.Controller('APP.fiberChanger', 2640 { 2641 pluginName: 'fiberChanger', 2642 listensTo: [ 2643 'setFabric' 2644 ] 2645 }, 2646 { 2647 init: function () { 2648 2649 this.update(); 2650 2651 this.fiberPrices = [0]; 2652 this.fiberData = {}; 2653 }, 2654 2655 '.showFabricPopup click': function(obj) { 2656 2657 var $inp = obj.parent().find('input'); 2658 2659 $(document).trigger("showPopup", $(obj).attr('href')); 2660 2661 $('#fiber-picker-popup').trigger( 2662 "setPopupTitle", 2663 { 2664 type: obj.data('type'), 2665 title: obj.text(), 2666 activeFabric: $inp.val() 2667 } 2668 ); 2669 2670 return false; 2671 }, 2672 2673 '.fiber-example click': function(obj) { 2674 2675 obj.parent().find('a').trigger('click'); 2676 2677 return false; 2678 }, 2679 2680 '.delete click': function(obj) { 2681 2682 this._deleteFabric(obj.closest('.row')); 2683 obj.css({display: 'none'}); 2684 }, 2685 2686 _deleteFabric: function($row) { 2687 2688 $row.find('.fiber-example').html('ÐÑбÑаÑÑ'); 2689 $row.find('input[type=checkbox]').val(''); 2690 2691 if (typeof this.fiberData[1] == 'undefined' && typeof setFabricData1 != 'undefined') { 2692 2693 this.fiberData[1] = setFabricData1; 2694 this.fiberPrices[1] = setFabricData1.price; 2695 } 2696 2697 this.fiberPrices[2] = null; 2698 this._setFabric(this.fiberData[1]); 2699 }, 2700 2701 _setFabric: function(fabricData) { 2702 2703 var $row = this.find('.showFabricPopup' + fabricData.type); 2704 var $inp = $row.find('input[name=PRODUCT\\[FABRIC\\]\\[' + fabricData.type + '\\]\\[ID\\]]'); 2705 2706 $row.find('.delete').css({display: 'inline-block'}); 2707 2708 this.fiberPrices[fabricData.type] = fabricData.price; 2709 this.fiberData[fabricData.type] = fabricData; 2710 2711 $row.find('.fiber-example').html('<img title="' + fabricData.name + '" src="' + fabricData.pic + '">'); 2712 $row.closest('.fiber-picker').data('price', this.fiberPrices.max()); 2713 2714 $inp 2715 .val(fabricData.id) 2716 .attr('checked', 'checked') 2717 .trigger('change'); 2718 2719 if (fabricData.price >= this.fiberPrices.max()) { 2720 2721 $('.justShowPriceCat li').removeClass('active'); 2722 $('.selectedPriceCats' + fabricData.priceCat).addClass('active'); 2723 } 2724 }, 2725 2726 'setFabric': function(obj, ev, fabricData) { 2727 2728 this._setFabric(fabricData); 2729 }, 2730 2731 'setFabricData': function(obj, ev, fabricData) { 2732 2733 2734 } 2735 } 2736); 2737 2738 2739/* End */ 2740; 2741; /* Start:/application/js/plugins/colorPicker.js*/ 2742$.Controller( 2743 'APP.colorPicker', 2744 { 2745 pluginName: 'colorPicker', 2746 defaults: { 2747 2748 } 2749 }, 2750 { 2751 init: function () { 2752 2753 this.o = this.options; 2754 this.o.picker = $('.color-picker'); 2755 this.o.colorData = $('input[name=PRODUCT\\[COLOR_LDSP\\]]'); 2756 this.o.picExample = this.o.picker.find('.color-example'); 2757 this.o.pickerLink = this.o.picker.find('a'); 2758 2759 this.update(); 2760 }, 2761 2762 '.button click': function(obj) { 2763 2764 var $color = obj.closest('.color-block'), 2765 imgSrc = $color.find('img').attr('src'); 2766 2767 this.o.picExample.html('<img src="' + imgSrc + '">'); 2768 this.o.colorData.val(parseInt($color.data('color-id'), 10)); 2769 2770 $(document).trigger("closePopup"); 2771 $.fancybox.close(); 2772 }, 2773 2774 '{picExample} click': function(obj) { 2775 2776 this.o.pickerLink.trigger('click'); 2777 } 2778 2779 } 2780); 2781 2782/* End */ 2783; 2784; /* Start:/application/js/plugins/productsSlider.js*/ 2785// --------------------------------------------------------------------------------------------------------- 2786// ÑÐ»Ð°Ð¹Ð´ÐµÑ ÑоваÑов на главной 2787// --------------------------------------------------------------------------------------------------------- 2788$.Controller( 2789 'APP.productsSlider', 2790 { 2791 pluginName: 'productsSlider', 2792 defaults: { 2793 auto: false, 2794 circular: false, 2795 shownavitems: 0, 2796 panelfx: 'sliding' 2797 } 2798 }, 2799 { 2800 init: function () { 2801 2802 this.o = this.options; 2803 2804 this.element.sliderkit(this.o); 2805 2806 this.o.productsSlider = this.element.data('sliderkit'); 2807 this.o.slides = this.find('.sliderkit-panel'); 2808 this.o.progressBar = this.find('#products-progress-bar'); 2809 2810 this.update(); 2811 2812 // progress bar init 2813 this.o.progressBar.find('i').hide().first().show(); 2814 this.o.progressBar.find('.path').css({width: 0}); 2815 2816 // беганÑе ползÑнка пÑи лиÑÑании ÑÑÑÐ°Ð½Ð¸Ñ 2817 this.o.productsSlider.options.panelfxbefore = this.proxy(this._beforeSlide); 2818 }, 2819 2820 '.point click': function($obj) { 2821 2822 var index = $obj.index('.point'); 2823 this.options.productsSlider.changeWithId(index); 2824 }, 2825 2826 '.products-slider moveend': function(obj, e) { 2827 2828 e.distX > 0 ? this.options.productsSlider.stepBackward() : this.options.productsSlider.stepForward(); 2829 }, 2830 2831 _beforeSlide: function() { 2832 2833 // пеÑедвинÑÑÑ Ð¿Ð¾Ð»Ð·Ñнок 2834 this.o.progressBar 2835 .find('.in') 2836 .stop() 2837 .animate(
2838 {left: (ROAD_WIDTH_PERCENT * this.o.productsSlider.currId) + '%'}, 2839 {duration: 500, queue: false} 2840 ); 2841 2842 // наÑиÑоваÑÑ Ð»Ð¸Ð½Ð¸Ñ 2843 this.o.progressBar 2844 .find('.path') 2845 .stop() 2846 .animate( 2847 {width: (ROAD_WIDTH_PERCENT * this.o.productsSlider.currId) + '%'}, 2848 {duration: 500, queue: false, complete: this.proxy(this._highligthPoints)}); 2849 }, 2850 2851 _highligthPoints: function(i, point) { 2852 2853 //подÑвеÑиÑÑ ÑоÑки 2854 this.o.progressBar.find('i').each(this.proxy(this._highligthPoint)); 2855 }, 2856 2857 _highligthPoint: function(i, point) { 2858 2859 var $point = $(point) 2860 var index = $point.parent().index('.point'); 2861 2862 index <= this.o.productsSlider.currId ? $point.fadeIn() : $point.fadeOut(); 2863 } 2864 } 2865); 2866 2867/* End */ 2868; 2869; /* Start:/application/js/application.js*/ 2870function setErrorVertical($error) { 2871 2872 $error.css({'margin-top': -parseInt($error.height(), 10) / 2 + 9}); 2873} 2874 2875$(function() { 2876 2877 // наÑÑÑойки валидаÑии 2878 $.validator.addMethod('rightEmail', function( val, el) {return (/^([a-z0-9_\-]+\.)*[a-z0-9_\-]+@([a-z0-9][a-z0-9\-]*[a-z0-9]\.)+[a-z]{2,4}$/i.test(val));}, 'ÐведиÑе коÑÑекÑнÑй e-mail!'); 2879 $.validator.addMethod('notRequiredRightEmail', function(val, el) { return (val === '') || (/^([a-z0-9_\-]+\.)*[a-z0-9_\-]+@([a-z0-9][a-z0-9\-]*[a-z0-9]\.)+[a-z]{2,4}$/i.test(val)); }, 'ÐведиÑе коÑÑекÑнÑй e-mail!'); 2880 2881 $.validator.setDefaults({ 2882 errorPlacement: function (error, element) { 2883 2884 element.after(error); 2885 error.wrap('<div class="error-holder">'); 2886 setErrorVertical(error); 2887 }, 2888 highlight: function(element, errorClass, validClass) { 2889 2890 $(element).parent().addClass('error-input-row'); 2891 $(element).addClass(errorClass).removeClass(validClass); 2892 setErrorVertical($(element).parent().find('label.error')); 2893 }, 2894 unhighlight: function(element, errorClass, validClass) { 2895 2896 $(element).parent().removeClass('error-input-row'); 2897 $(element).addClass(validClass).removeClass(errorClass); 2898 }, 2899 messages: { 2900 name: { 2901 required: 'ÐведиÑе ваÑе имÑ' 2902 }, 2903 email: { 2904 required: 'ÐведиÑе Ð²Ð°Ñ email', 2905 rightEmail: 'Email введен некоÑÑекÑно' 2906 } 2907 }, 2908 }); 2909 2910 $('input[type=radio], input[type=checkbox]').ezMark({}); 2911 2912 $('select').select2({ 2913 //width: 200 2914 }); 2915 $('.select2-search').remove(); 2916 2917 // вÑпÑлваÑÑие подÑказки 2918 $('.show-tooltip').tooltip({ 2919 placement: 'bottom' 2920 }); 2921 2922 APP = APP || {}; 2923 2924 $('a.fancybox').fancybox({ 2925 padding: 10, 2926 overlayOpacity: 0.75, 2927 overlayColor: '#000', 2928 enableEscapeButton: true, 2929 scrolling: 'no', 2930 centerOnScroll: true, 2931 2932 onStart : function(selectedArray, selectedIndex, selectedOpts){ 2933 2934 if($(selectedArray[selectedIndex]).hasClass('mini-pic-link')){ 2935 2936 var pop = $($(selectedArray[selectedIndex]).attr('href')); 2937 2938 if(pop.length){ 2939 var img = pop.find('img[data-src]'); 2940 2941 if(img.length && img.data('src')){ 2942 img.attr('src', img.data('src')); 2943 img.removeAttr('data-src'); 2944 } 2945 } 2946 2947 } 2948 2949 }, 2950 2951 onComplete: function(){ 2952 $(APP).trigger('fancy.complete'); 2953 2954 var $form = $('#fancybox-content form'); 2955 if ($form.length > 0) { 2956 2957 $form.find('input[type=text]').first().focus(); 2958 } 2959 2960 }, 2961 onClosed: function() { 2962 2963 $(APP).trigger('ajaxFormReset'); 2964 } 2965 }); 2966 2967 $('input, textarea').placeholder(); 2968 2969 $('.js-preview-text').previewText(); 2970 var catPage = $('.js-catalog-product-page'); 2971 if (catPage.length) { 2972 catPage.catalogProduct(); 2973 } 2974 2975 2976 // Ð¿Ð»Ð°Ð³Ð¸Ð½Ñ 2977 $('#cartForm').cart(); 2978 $('#citiesChanger').citiesChanger(); 2979 $('#color-picker-popup').colorPicker(); 2980 $('#faqForm').faqForm(); 2981 $('.order-form').orderForm(); 2982 $('.reply-form').responceForm(); 2983 $('.ajax-form').ajaxForm(); 2984 $(document).myFancybox(); 2985 $('#fiber-picker-popup').fiberPopup(); 2986 $('#fiber-changer').fiberChanger(); 2987 $('.js-basket-small').basketSmall(); 2988 $("#products-slider").productsSlider(); 2989 2990 $('form[name=CALLBACK_FORM]').formTabber(); 2991 2992 2993 // вÑÑплÑваÑки 2994 $(document).popups({ 2995 expands: '.open-popup', 2996 collapse: '' 2997 }); 2998 2999 3000 $.ajaxSetup({ 3001 type: 'POST', 3002 dataType: 'json' 3003 }) 3004 3005 alertify.set({ 3006 labels: { 3007 ok : "Ðа", 3008 cancel : "ÐеÑ" 3009 } 3010 }); 3011 3012 3013 $('.list-options select').change(function() { 3014 3015 console.log(window.location.href); 3016 3017 window.location = addMyParam(window.location.href, $(this)); 3018 3019 return false;
3020 }); 3021 3022 3023 function addMyParam(url, $input) { 3024 3025 var parName = $.trim($input.attr('name')); 3026 var pattern = new RegExp('(\\?|&)(' + parName + '=)([0-9]+|PRICE_DESC|PRICE_ASC|NAME_DESC|NAME_ASC)', 'g'); 3027 3028 // вÑÑезаÑÑ Ð¿Ð°ÑамеÑÑ, еÑли Ñже еÑÑÑ Ñакой 3029 url = url.replace(pattern, ''); 3030 if (url.indexOf('?') < 0) url = url.replace('&', '?'); 3031 var sep = url.indexOf('?') >= 0 ? '&': '?'; 3032 3033 url = url + sep + parName + '=' + $input.val(); 3034 3035 return url; 3036 } 3037 3038 // faq 3039 var $faq = $('#faq'); 3040 $faq.find('dd').hide(); 3041 3042 $faq.find('dt a').click(function() { 3043 3044 var $dd = $(this).parent().next(); 3045 3046 if (!$dd.is(':visible')) { 3047 3048 $faq.find('a').removeClass('active'); 3049 $faq.find('dd').hide('slow'); 3050 $(this).addClass('active'); 3051 $dd.show('slow'); 3052 } 3053 }).first().trigger('click'); 3054 3055 // spinner 3056 $('.spinner-input a').click(function() { 3057 3058 var $spinner = $(this).closest('.spinner-input'); 3059 var val = parseInt($spinner.find('input').val(), 10); 3060 var min = parseInt($spinner.data('min-value'), 10); 3061 var max = parseInt($spinner.data('max-value'), 10); 3062 var change = false; 3063 3064 if (val <= 0 || empty(val)) { 3065 3066 val = min; 3067 } else { 3068 3069 if ($(this).is('.spinner-up') && val < max) { val += 1; change = true; } 3070 if ($(this).is('.spinner-down') && val > min) { val -= 1; change = true; } 3071 } 3072 3073 $spinner.find('input').val(val); 3074 3075 if (change) $spinner.find('input').trigger('change'); 3076 }); 3077 3078 3079 // лиÑÑание ÑизеÑов в IE 3080 if ($.browser.msie) { 3081 3082 $('.page-wrapper').removeClass('noie').addClass('ie'); 3083 3084 $('.tiser').hover(function() { 3085 3086 $(this).find('.back').stop().fadeIn(); 3087 }, function() { 3088 3089 $(this).find('.back').stop().fadeOut(); 3090 }); 3091 } else { 3092 3093 if (!!$.cookie('demoTisersShowed') != true) { 3094 3095 showDemoTisers(); 3096 $.cookie('demoTisersShowed', true); 3097 } 3098 } 3099 3100 function showDemoTisers() { 3101 3102 var $items = $('.tiser .item') 3103 $items.addClass('active'); 3104 3105 var i = 0; 3106 var tisersTimer = setInterval(function() { 3107 3108 var $tiser = $items.eq(i); 3109 3110 if ($tiser.length > 0) { 3111 3112 $tiser.removeClass('active'); 3113 } else { 3114 3115 clearInterval(tisersTimer); 3116 } 3117 3118 ++i; 3119 3120 }, 300); 3121 } 3122}); 3123 3124Array.prototype.max = function() { 3125 return Math.max.apply(null, this); // <-- passing null as the context 3126}; 3127 3128Number.prototype.nFormat = function(delimiter, count, signed){ 3129 3130 var fraction = count || 2, 3131 arr = Math.abs(this).toFixed(fraction).toString().split('.', 2); 3132 3133 var wn = []; 3134 if ( typeof delimiter !== 'string' ) delimiter = ','; 3135 for( var i = arr[0].length - 3; i >= 0; i -= 3 ) 3136 wn.push(arr[0].substr(i, 3)); 3137 if ( i == -1 || i == -2 ) 3138 wn.push(arr[0].substr(0, 3 + i)); 3139 3140 var num; 3141 num = (this < 0 ? '-' : signed ? '+' : '') + wn.reverse().join(delimiter); 3142 3143 if (count) { 3144 num = num + '.' + arr[1]; 3145 } 3146 3147 return num; 3148} 3149 3150wordForm = function(count, form1, form2_4, form5_0){ 3151 form1 = form1 || ''; 3152 form2_4 = form2_4 || 'а'; 3153 form5_0 = form5_0 || "ов"; 3154 3155 var n100 = count % 100, 3156 n10 = count % 10; 3157 3158 if ((n100 > 10) && (n100 < 21)) { 3159 return form5_0; 3160 } else if ((!n10) || (n10 >= 5)) { 3161 return form5_0; 3162 } else if (n10 == 1) { 3163 return form1; 3164 } 3165 return form2_4; 3166} 3167 3168$.Controller('APP.Text.Preview', 3169 { 3170 pluginName: 'previewText' 3171 }, 3172 { 3173 init: function(){ 3174 this.o = this.options; 3175 3176 this.height = this.element.height(); 3177 3178 this.o.wrapper = $('.product-description'); 3179 this.wrapperHeight = this.o.wrapper.height(); 3180 3181 this.o.moreBlock = $('.js-more-block'); 3182 this.o.hideBlock = $('.js-hide-block'); 3183 3184 if (this.height < this.wrapperHeight) { 3185 this.o.moreBlock.css('visibility', 'visible'); 3186 3187 } 3188 3189 $('.js-hide-block').css('visibility', 'hidden'); 3190 3191 $('span.js-more-block').on('click', function(e) { 3192 3193 e.preventDefault(); 3194 3195 3196 3197 $('.js-more-block').css('visibility', 'hidden'); 3198 3199 $('.js-preview-text').animate({height: $('.js-wrapper').height()}, 250, function(){
3200 $('.js-hide-block').css('visibility', 'visible'); 3201 }); 3202 3203 3204 3205 /* 3206 this.element.stop(true, false).animate({height: this.wrapperHeight + 30}, 250, this.proxy(function(){ 3207 this.o.hideBlock.css('visibility', 'visible'); 3208 })); 3209 */ 3210 }); 3211 3212 3213 this.update(); 3214 }, 3215 3216 /* 3217 'span.more-block click': function(el, e) { 3218 console.log('palych'); 3219 }, 3220 */ 3221 3222 '{moreBlock} a click': function(el, e) { 3223 console.log('palych'); 3224 e.preventDefault(); 3225 this.o.moreBlock.css('visibility', 'hidden'); 3226 this.element.stop(true, false).animate({height: this.wrapperHeight + 30}, 250, this.proxy(function(){ 3227 this.o.hideBlock.css('visibility', 'visible'); 3228 })); 3229 }, 3230 3231 '{hideBlock} a click': function(el, e){ 3232 e.preventDefault(); 3233 this.o.hideBlock.css('visibility', 'hidden'); 3234 this.element.stop(true, false).animate({height: this.height}, 250, this.proxy(function(){ 3235 this.o.moreBlock.css('visibility', 'visible'); 3236 })); 3237 } 3238 } 3239); 3240$.Controller('APP.Forms.Tabber', 3241 { 3242 pluginName: 'formTabber', 3243 defaults: { 3244 findQuery: 'input[type!="submit"][type!="hidden"], textarea, select' 3245 } 3246 }, 3247 { 3248 init: function(){ 3249 this.formInputs = this.find(this.options.findQuery); 3250 3251 this.formInputs.last().keydown(this.proxy(function(e) { 3252 if (e.keyCode == 9 && !e.shiftKey) { 3253 this.formInputs.first().focus(); 3254 return false; 3255 } 3256 })); 3257 3258 this.formInputs.first().keydown(this.proxy(function(e) { 3259 if (e.keyCode == 9 && e.shiftKey) { 3260 this.formInputs.last().focus(); 3261 return false; 3262 } 3263 })); 3264 } 3265 } 3266); 3267 3268// пÑовеÑка на пÑÑÑое знаÑение 3269function empty(val) { 3270 3271 return (typeof val == 'undefined' || val == '' || val == 0 || val == null || isNaN(val)); 3272} 3273 3274// пÑовеÑка на пÑÑÑое знаÑение ÑиÑла 3275function emptyNum(val) { 3276 3277 return (isNaN(val) || empty(val)); 3278} 3279 3280function setCookie (name, value, expires, path, domain, secure) { 3281 document.cookie = name + "=" + escape(value) + 3282 ((expires) ? "; expires=" + expires : "") + 3283 ((path) ? "; path=" + path : "") + 3284 ((domain) ? "; domain=" + domain : "") + 3285 ((secure) ? "; secure" : ""); 3286} 3287 3288function getCookie(name) { 3289 var cookie = " " + document.cookie; 3290 var search = " " + name + "="; 3291 var setStr = null; 3292 var offset = 0; 3293 var end = 0; 3294 if (cookie.length > 0) { 3295 offset = cookie.indexOf(search); 3296 if (offset != -1) { 3297 offset += search.length; 3298 end = cookie.indexOf(";", offset) 3299 if (end == -1) { 3300 end = cookie.length; 3301 } 3302 setStr = unescape(cookie.substring(offset, end)); 3303 } 3304 } 3305 return(setStr); 3306} 3307 3308function SetHistory(id) { 3309 3310 var line=getCookie('viewed_history'); 3311 var cookie=(id+";"+line).split(';'); 3312 3313 var key=$.inArray(id, cookie); 3314 if(key==-1) 3315 { 3316 line=id+";"+line; 3317 3318 } 3319 else 3320 { 3321 line=id+";"; 3322 var last=""; 3323 for(var k in cookie) 3324 { 3325 if(k!=key && cookie[k]>0 && last!=cookie[k]) 3326 { 3327 line+=cookie[k]+";"; 3328 } 3329 last=cookie[k]; 3330 } 3331 } 3332 setCookie('viewed_history', line, "Mon, 01-Jan-2199 00:00:00 GMT", "/", "happy-meb.ru"); 3333} 3334 3335jQuery(document).ready(function($) { 3336 if($('.reply-block').length>1) { 3337 $('.reload_link').click(function() { 3338 $(this).parents('.reply-block').hide(); 3339 if(!$(this).parents('.reply-block').next().hasClass('clear')) $(this).parents('.reply-block').next().show(); 3340 else $('.reply-block:eq(0)').show(); 3341 }); 3342 } 3343}); 3344 3345jQuery(document).ready(function($) { 3346 $('.inline-select .select2-container .select2-choice div b').remove() 3347}); 3348 3349 3350/* End */ 3351;; /* /application/js/libs/jquery-1.8.1.min.js*/ 3352; /* /application/js/libs/jquerymx-3.2.custom.min.js*/ 3353; /* /application/js/libs/jquery.event.move.js*/ 3354; /* /application/js/libs/jquery.event.swipe.js*/ 3355; /* /application/js/libs/jquery.sliderkit.1.9.2.pack.js*/ 3356; /* /application/js/libs/jquery.ezmark.min.js*/ 3357; /* /application/js/libs/jquery.fancybox-1.3.4.pack.js*/ 3358; /* /application/js/libs/jquery.placeholder.min.js*/ 3359; /* /application/js/libs/jquery.cycle.lite.js*/ 3360; /* /application/js/libs/jquery.cookie.js*/ 3361; /* /application/js/libs/alertify.min.js*/ 3362; /* /application/js/libs/select2.min.js*/ 3363; /* /application/js/libs/bootstrap.tooltip.js*/ 3364; /* /application/js/plugins/myFancybox.js*/ 3365; /* /application/js/plugins/citiesChanger.js*/ 3366; /* /application/js/plugins/popups.js*/ 3367; /* /application/js/plugins/catalog.js*/ 3368; /* /application/js/plugins/cart.js*/ 3369; /* /application/js/plugins/faqForm.js*/ 3370; /* /application/js/plugins/basket.small.js*/ 3371; /* /application/js/plugins/orderForm.js*/ 3372; /* /application/js/plugins/responceForm.js*/ 3373; /* /application/js/plugins/ajaxForm.js*/ 3374; /* /application/js/plugins/fiberPopup.js*/ 3375; /* /application/js/plugins/fiberChanger.js*/ 3376; /* /application/js/plugins/colorPicker.js*/ 3377; /* /application/js/plugins/productsSlider.js*/ 3378; /* /application/js/application.js*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.