0byt3m1n1
Path:
/
home
/
k74ns2xygros
/
www
/
globetech
/
cms
/
vendors
/
ckeditor
/
[
Home
]
File: alljs.js
/* Copyright (c) 2008 Yii Software LLC @license http://www.yiiframework.com/license/ @author Qiang Xue <qiang.xue@gmail.com> @since 2.0 jQuery JavaScript Library v2.2.4 http://jquery.com/ Includes Sizzle.js http://sizzlejs.com/ Copyright jQuery Foundation and other contributors Released under the MIT license http://jquery.org/license Date: 2016-05-20T17:23Z Sizzle CSS Selector Engine v2.2.1 http://sizzlejs.com/ Copyright jQuery Foundation and other contributors Released under the MIT license http://jquery.org/license Date: 2015-10-17 Bootstrap v3.3.7 (http://getbootstrap.com) Copyright 2011-2016 Twitter, Inc. Licensed under the MIT license Copyright (c) 2011 Piotr Rochala (http://rocha.la) Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. Version: 1.3.8 Copyright 2012, Chris Wanstrath Released under the MIT License https://github.com/defunkt/jquery-pjax */ var $jscomp={scope:{},findInternal:function(a,m,l){a instanceof String&&(a=String(a));for(var h=a.length,c=0;c<h;c++){var f=a[c];if(m.call(l,f,c,a))return{i:c,v:f}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,m,l){if(l.get||l.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[m]=l.value)}; $jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,m,l,h){if(m){l=$jscomp.global;a=a.split(".");for(h=0;h<a.length-1;h++){var c=a[h];c in l||(l[c]={});l=l[c]}a=a[a.length-1];h=l[a];m=m(h);m!=h&&null!=m&&$jscomp.defineProperty(l,a,{configurable:!0,writable:!0,value:m})}}; $jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,l){return $jscomp.findInternal(this,a,l).v}},"es6-impl","es3");$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||"")+$jscomp.symbolCounter_++}; $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var m=0;return $jscomp.iteratorPrototype(function(){return m<a.length?{done:!1,value:a[m++]}:{done:!0}})}; $jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.array=$jscomp.array||{};$jscomp.iteratorFromArray=function(a,m){$jscomp.initSymbolIterator();a instanceof String&&(a+="");var l=0,h={next:function(){if(l<a.length){var c=l++;return{value:m(c,a[c]),done:!1}}h.next=function(){return{done:!0,value:void 0}};return h.next()}};h[Symbol.iterator]=function(){return h};return h}; $jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(a){return a})}},"es6-impl","es3"); (function(a,m){"object"===typeof module&&"object"===typeof module.exports?module.exports=a.document?m(a,!0):function(a){if(!a.document)throw Error("jQuery requires a window with a document");return m(a)}:m(a)})("undefined"!==typeof window?window:this,function(a,m){function l(b){var e=!!b&&"length"in b&&b.length,n=g.type(b);return"function"===n||g.isWindow(b)?!1:"array"===n||0===e||"number"===typeof e&&0<e&&e-1 in b}function h(b,e,n){if(g.isFunction(e))return g.grep(b,function(b,a){return!!e.call(b, a,b)!==n});if(e.nodeType)return g.grep(b,function(b){return b===e!==n});if("string"===typeof e){if(tb.test(e))return g.filter(e,b,n);e=g.filter(e,b)}return g.grep(b,function(b){return-1<Da.call(e,b)!==n})}function c(b,e){for(;(b=b[e])&&1!==b.nodeType;);return b}function f(b){var e={};g.each(b.match(T)||[],function(b,a){e[a]=!0});return e}function d(){y.removeEventListener("DOMContentLoaded",d);a.removeEventListener("load",d);g.ready()}function k(){this.expando=g.expando+k.uid++}function p(b,e,n){if(void 0=== n&&1===b.nodeType)if(n="data-"+e.replace(Wa,"-$&").toLowerCase(),n=b.getAttribute(n),"string"===typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:ub.test(n)?g.parseJSON(n):n}catch(q){}P.set(b,e,n)}else n=void 0;return n}function r(b,e,n,a){var q,c=1,d=20,f=a?function(){return a.cur()}:function(){return g.css(b,e,"")},k=f(),h=n&&n[3]||(g.cssNumber[e]?"":"px"),p=(g.cssNumber[e]||"px"!==h&&+k)&&sa.exec(g.css(b,e));if(p&&p[3]!==h){h=h||p[3];n=n||[];p=+k||1;do c=c||".5",p/=c,g.style(b, e,p+h);while(c!==(c=f()/k)&&1!==c&&--d)}n&&(p=+p||+k||0,q=n[1]?p+(n[1]+1)*n[2]:+n[2],a&&(a.unit=h,a.start=p,a.end=q));return q}function w(b,e){var n="undefined"!==typeof b.getElementsByTagName?b.getElementsByTagName(e||"*"):"undefined"!==typeof b.querySelectorAll?b.querySelectorAll(e||"*"):[];return void 0===e||e&&g.nodeName(b,e)?g.merge([b],n):n}function z(b,e){for(var n=0,a=b.length;n<a;n++)B.set(b[n],"globalEval",!e||B.get(e[n],"globalEval"))}function N(b,e,n,a,c){for(var q,x,d,f=e.createDocumentFragment(), k=[],h=0,p=b.length;h<p;h++)if((q=b[h])||0===q)if("object"===g.type(q))g.merge(k,q.nodeType?[q]:q);else if(xb.test(q)){x=x||f.appendChild(e.createElement("div"));d=(Xa.exec(q)||["",""])[1].toLowerCase();d=aa[d]||aa._default;x.innerHTML=d[1]+g.htmlPrefilter(q)+d[2];for(d=d[0];d--;)x=x.lastChild;g.merge(k,x.childNodes);x=f.firstChild;x.textContent=""}else k.push(e.createTextNode(q));f.textContent="";for(h=0;q=k[h++];)if(a&&-1<g.inArray(q,a))c&&c.push(q);else if(b=g.contains(q.ownerDocument,q),x=w(f.appendChild(q), "script"),b&&z(x),n)for(d=0;q=x[d++];)Ya.test(q.type||"")&&n.push(q);return f}function J(){return!0}function E(){return!1}function V(){try{return y.activeElement}catch(b){}}function H(b,e,n,a,c,d){var q,x;if("object"===typeof e){"string"!==typeof n&&(a=a||n,n=void 0);for(x in e)H(b,x,n,a,e[x],d);return b}null==a&&null==c?(c=n,a=n=void 0):null==c&&("string"===typeof n?(c=a,a=void 0):(c=a,a=n,n=void 0));if(!1===c)c=E;else if(!c)return b;1===d&&(q=c,c=function(b){g().off(b);return q.apply(this,arguments)}, c.guid=q.guid||(q.guid=g.guid++));return b.each(function(){g.event.add(this,e,c,a,n)})}function v(b,e){return g.nodeName(b,"table")&&g.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?b.getElementsByTagName("tbody")[0]||b.appendChild(b.ownerDocument.createElement("tbody")):b}function R(b){b.type=(null!==b.getAttribute("type"))+"/"+b.type;return b}function C(b){var e=yb.exec(b.type);e?b.type=e[1]:b.removeAttribute("type");return b}function O(b,e){var n,a,c,d;if(1===e.nodeType){if(B.hasData(b)&&(d=B.access(b), n=B.set(e,d),d=d.events))for(c in delete n.handle,n.events={},d)for(n=0,a=d[c].length;n<a;n++)g.event.add(e,c,d[c][n]);P.hasData(b)&&(c=P.access(b),c=g.extend({},c),P.set(e,c))}}function F(b,e,n,a){e=Za.apply([],e);var q,c,d,f,k=0,h=b.length,p=h-1,l=e[0],r=g.isFunction(l);if(r||1<h&&"string"===typeof l&&!I.checkClone&&zb.test(l))return b.each(function(g){var q=b.eq(g);r&&(e[0]=l.call(this,g,q.html()));F(q,e,n,a)});if(h&&(q=N(e,b[0].ownerDocument,!1,b,a),c=q.firstChild,1===q.childNodes.length&&(q= c),c||a)){c=g.map(w(q,"script"),R);for(d=c.length;k<h;k++)f=q,k!==p&&(f=g.clone(f,!0,!0),d&&g.merge(c,w(f,"script"))),n.call(b[k],f,k);if(d)for(q=c[c.length-1].ownerDocument,g.map(c,C),k=0;k<d;k++)f=c[k],Ya.test(f.type||"")&&!B.access(f,"globalEval")&&g.contains(q,f)&&(f.src?g._evalUrl&&g._evalUrl(f.src):g.globalEval(f.textContent.replace(Ab,"")))}return b}function S(b,e,n){for(var a=e?g.filter(e,b):b,c=0;null!=(e=a[c]);c++)n||1!==e.nodeType||g.cleanData(w(e)),e.parentNode&&(n&&g.contains(e.ownerDocument, e)&&z(w(e,"script")),e.parentNode.removeChild(e));return b}function Q(b,e){var n=g(e.createElement(b)).appendTo(e.body),a=g.css(n[0],"display");n.detach();return a}function ga(b){var e=y,a=$a[b];a||(a=Q(b,e),"none"!==a&&a||(Ea=(Ea||g("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Ea[0].contentDocument,e.write(),e.close(),a=Q(b,e),Ea.detach()),$a[b]=a);return a}function Z(b,e,a){var n,c,d=b.style;c=(a=a||Fa(b))?a.getPropertyValue(e)||a[e]:void 0;""!==c&&void 0!==c|| g.contains(b.ownerDocument,b)||(c=g.style(b,e));a&&!I.pixelMarginRight()&&Ma.test(c)&&ab.test(e)&&(b=d.width,e=d.minWidth,n=d.maxWidth,d.minWidth=d.maxWidth=d.width=c,c=a.width,d.width=b,d.minWidth=e,d.maxWidth=n);return void 0!==c?c+"":c}function W(b,e){return{get:function(){if(b())delete this.get;else return(this.get=e).apply(this,arguments)}}}function oa(b){if(b in bb)return b;for(var e=b[0].toUpperCase()+b.slice(1),a=cb.length;a--;)if(b=cb[a]+e,b in bb)return b}function ha(b,e,a){return(b=sa.exec(e))? Math.max(0,b[2]-(a||0))+(b[3]||"px"):e}function u(b,e,a,q,c){e=a===(q?"border":"content")?4:"width"===e?1:0;for(var n=0;4>e;e+=2)"margin"===a&&(n+=g.css(b,a+ja[e],!0,c)),q?("content"===a&&(n-=g.css(b,"padding"+ja[e],!0,c)),"margin"!==a&&(n-=g.css(b,"border"+ja[e]+"Width",!0,c))):(n+=g.css(b,"padding"+ja[e],!0,c),"padding"!==a&&(n+=g.css(b,"border"+ja[e]+"Width",!0,c)));return n}function D(b,e,a){var n=!0,c="width"===e?b.offsetWidth:b.offsetHeight,d=Fa(b),f="border-box"===g.css(b,"boxSizing",!1,d); if(0>=c||null==c){c=Z(b,e,d);if(0>c||null==c)c=b.style[e];if(Ma.test(c))return c;n=f&&(I.boxSizingReliable()||c===b.style[e]);c=parseFloat(c)||0}return c+u(b,e,a||(f?"border":"content"),n,d)+"px"}function za(b,e){for(var a,c,d,f=[],k=0,h=b.length;k<h;k++)c=b[k],c.style&&(f[k]=B.get(c,"olddisplay"),a=c.style.display,e?(f[k]||"none"!==a||(c.style.display=""),""===c.style.display&&ta(c)&&(f[k]=B.access(c,"olddisplay",ga(c.nodeName)))):(d=ta(c),"none"===a&&d||B.set(c,"olddisplay",d?a:g.css(c,"display")))); for(k=0;k<h;k++)c=b[k],!c.style||e&&"none"!==c.style.display&&""!==c.style.display||(c.style.display=e?f[k]||"":"none");return b}function A(b,e,a,g,c){return new A.prototype.init(b,e,a,g,c)}function ba(){a.setTimeout(function(){pa=void 0});return pa=g.now()}function ua(b,e){var a,g=0,c={height:b};for(e=e?1:0;4>g;g+=2-e)a=ja[g],c["margin"+a]=c["padding"+a]=b;e&&(c.opacity=c.width=b);return c}function Ga(b,e,a){for(var n,c=(U.tweeners[e]||[]).concat(U.tweeners["*"]),g=0,d=c.length;g<d;g++)if(n=c[g].call(a, e,b))return n}function da(b,e){var a,c,d,f,k;for(a in b)if(c=g.camelCase(a),d=e[c],f=b[a],g.isArray(f)&&(d=f[1],f=b[a]=f[0]),a!==c&&(b[c]=f,delete b[a]),(k=g.cssHooks[c])&&"expand"in k)for(a in f=k.expand(f),delete b[c],f)a in b||(b[a]=f[a],e[a]=d);else e[c]=d}function U(b,e,a){var n,c=0,d=U.prefilters.length,f=g.Deferred().always(function(){delete k.elem}),k=function(){if(n)return!1;for(var e=pa||ba(),e=Math.max(0,h.startTime+h.duration-e),a=1-(e/h.duration||0),c=0,g=h.tweens.length;c<g;c++)h.tweens[c].run(a); f.notifyWith(b,[h,a,e]);if(1>a&&g)return e;f.resolveWith(b,[h]);return!1},h=f.promise({elem:b,props:g.extend({},e),opts:g.extend(!0,{specialEasing:{},easing:g.easing._default},a),originalProperties:e,originalOptions:a,startTime:pa||ba(),duration:a.duration,tweens:[],createTween:function(e,a){var n=g.Tween(b,h.opts,e,a,h.opts.specialEasing[e]||h.opts.easing);h.tweens.push(n);return n},stop:function(e){var a=0,c=e?h.tweens.length:0;if(n)return this;for(n=!0;a<c;a++)h.tweens[a].run(1);e?(f.notifyWith(b, [h,1,0]),f.resolveWith(b,[h,e])):f.rejectWith(b,[h,e]);return this}});a=h.props;for(da(a,h.opts.specialEasing);c<d;c++)if(e=U.prefilters[c].call(h,b,a,h.opts))return g.isFunction(e.stop)&&(g._queueHooks(h.elem,h.opts.queue).stop=g.proxy(e.stop,e)),e;g.map(a,Ga,h);g.isFunction(h.opts.start)&&h.opts.start.call(b,h);g.fx.timer(g.extend(k,{elem:b,anim:h,queue:h.opts.queue}));return h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always)}function X(b){return b.getAttribute&& b.getAttribute("class")||""}function Ha(b){return function(e,a){"string"!==typeof e&&(a=e,e="*");var n,c=0,d=e.toLowerCase().match(T)||[];if(g.isFunction(a))for(;n=d[c++];)"+"===n[0]?(n=n.slice(1)||"*",(b[n]=b[n]||[]).unshift(a)):(b[n]=b[n]||[]).push(a)}}function Ia(b,e,a,c){function n(f){var x;q[f]=!0;g.each(b[f]||[],function(b,g){var f=g(e,a,c);if("string"===typeof f&&!d&&!q[f])return e.dataTypes.unshift(f),n(f),!1;if(d)return!(x=f)});return x}var q={},d=b===Na;return n(e.dataTypes[0])||!q["*"]&& n("*")}function Aa(b,e){var a,c,d=g.ajaxSettings.flatOptions||{};for(a in e)void 0!==e[a]&&((d[a]?b:c||(c={}))[a]=e[a]);c&&g.extend(!0,b,c);return b}function xa(b,e,a,c){var n;if(g.isArray(e))g.each(e,function(e,n){a||Bb.test(b)?c(b,n):xa(b+"["+("object"===typeof n&&null!=n?e:"")+"]",n,a,c)});else if(a||"object"!==g.type(e))c(b,e);else for(n in e)xa(b+"["+n+"]",e[n],a,c)}function qa(b){return g.isWindow(b)?b:9===b.nodeType&&b.defaultView}var ea=[],y=a.document,ia=ea.slice,Za=ea.concat,Oa=ea.push, Da=ea.indexOf,Ja={},Cb=Ja.toString,va=Ja.hasOwnProperty,I={},g=function(b,e){return new g.fn.init(b,e)},Db=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Eb=/^-ms-/,Fb=/-([\da-z])/gi,Gb=function(b,e){return e.toUpperCase()};g.fn=g.prototype={jquery:"2.2.4",constructor:g,selector:"",length:0,toArray:function(){return ia.call(this)},get:function(b){return null!=b?0>b?this[b+this.length]:this[b]:ia.call(this)},pushStack:function(b){b=g.merge(this.constructor(),b);b.prevObject=this;b.context=this.context;return b}, each:function(b){return g.each(this,b)},map:function(b){return this.pushStack(g.map(this,function(e,a){return b.call(e,a,e)}))},slice:function(){return this.pushStack(ia.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(b){var e=this.length;b=+b+(0>b?e:0);return this.pushStack(0<=b&&b<e?[this[b]]:[])},end:function(){return this.prevObject||this.constructor()},push:Oa,sort:ea.sort,splice:ea.splice};g.extend=g.fn.extend=function(){var b,e,a, c,d,f=arguments[0]||{},k=1,h=arguments.length,p=!1;"boolean"===typeof f&&(p=f,f=arguments[k]||{},k++);"object"===typeof f||g.isFunction(f)||(f={});k===h&&(f=this,k--);for(;k<h;k++)if(null!=(b=arguments[k]))for(e in b)a=f[e],c=b[e],f!==c&&(p&&c&&(g.isPlainObject(c)||(d=g.isArray(c)))?(d?(d=!1,a=a&&g.isArray(a)?a:[]):a=a&&g.isPlainObject(a)?a:{},f[e]=g.extend(p,a,c)):void 0!==c&&(f[e]=c));return f};g.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(b){throw Error(b); },noop:function(){},isFunction:function(b){return"function"===g.type(b)},isArray:Array.isArray,isWindow:function(b){return null!=b&&b===b.window},isNumeric:function(b){var e=b&&b.toString();return!g.isArray(b)&&0<=e-parseFloat(e)+1},isPlainObject:function(b){var e;if("object"!==g.type(b)||b.nodeType||g.isWindow(b)||b.constructor&&!va.call(b,"constructor")&&!va.call(b.constructor.prototype||{},"isPrototypeOf"))return!1;for(e in b);return void 0===e||va.call(b,e)},isEmptyObject:function(b){for(var e in b)return!1; return!0},type:function(b){return null==b?b+"":"object"===typeof b||"function"===typeof b?Ja[Cb.call(b)]||"object":typeof b},globalEval:function(b){var e;e=eval;if(b=g.trim(b))1===b.indexOf("use strict")?(e=y.createElement("script"),e.text=b,y.head.appendChild(e).parentNode.removeChild(e)):e(b)},camelCase:function(b){return b.replace(Eb,"ms-").replace(Fb,Gb)},nodeName:function(b,e){return b.nodeName&&b.nodeName.toLowerCase()===e.toLowerCase()},each:function(b,e){var a,c=0;if(l(b))for(a=b.length;c< a&&!1!==e.call(b[c],c,b[c]);c++);else for(c in b)if(!1===e.call(b[c],c,b[c]))break;return b},trim:function(b){return null==b?"":(b+"").replace(Db,"")},makeArray:function(b,e){var a=e||[];null!=b&&(l(Object(b))?g.merge(a,"string"===typeof b?[b]:b):Oa.call(a,b));return a},inArray:function(b,e,a){return null==e?-1:Da.call(e,b,a)},merge:function(b,e){for(var a=+e.length,c=0,g=b.length;c<a;c++)b[g++]=e[c];b.length=g;return b},grep:function(b,e,a){for(var c=[],n=0,g=b.length,d=!a;n<g;n++)a=!e(b[n],n),a!== d&&c.push(b[n]);return c},map:function(b,e,a){var c,n,g=0,d=[];if(l(b))for(c=b.length;g<c;g++)n=e(b[g],g,a),null!=n&&d.push(n);else for(g in b)n=e(b[g],g,a),null!=n&&d.push(n);return Za.apply([],d)},guid:1,proxy:function(b,e){var a,c;"string"===typeof e&&(a=b[e],e=b,b=a);if(g.isFunction(b))return c=ia.call(arguments,2),a=function(){return b.apply(e||this,c.concat(ia.call(arguments)))},a.guid=b.guid=b.guid||g.guid++,a},now:Date.now,support:I});"function"===typeof Symbol&&(g.fn[Symbol.iterator]=ea[Symbol.iterator]); g.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(b,e){Ja["[object "+e+"]"]=e.toLowerCase()});var ma=function(b){function e(b,e,a,c){var g,n,d,q,f,k=e&&e.ownerDocument,h=e?e.nodeType:9;a=a||[];if("string"!==typeof b||!b||1!==h&&9!==h&&11!==h)return a;if(!c&&((e?e.ownerDocument||e:I)!==K&&H(e),e=e||K,ba)){if(11!==h&&(q=va.exec(b)))if(g=q[1])if(9===h)if(n=e.getElementById(g)){if(n.id===g)return a.push(n),a}else return a;else{if(k&&(n=k.getElementById(g))&& Z(e,n)&&n.id===g)return a.push(n),a}else{if(q[2])return T.apply(a,e.getElementsByTagName(b)),a;if((g=q[3])&&D.getElementsByClassName&&e.getElementsByClassName)return T.apply(a,e.getElementsByClassName(g)),a}if(!(!D.qsa||ga[b+" "]||y&&y.test(b))){if(1!==h)k=e,f=b;else if("object"!==e.nodeName.toLowerCase()){(d=e.getAttribute("id"))?d=d.replace(wa,"\\$&"):e.setAttribute("id",d=M);q=Q(b);g=q.length;for(n=ma.test(d)?"#"+d:"[id='"+d+"']";g--;)q[g]=n+" "+m(q[g]);f=q.join(",");k=na.test(b)&&l(e.parentNode)|| e}if(f)try{return T.apply(a,k.querySelectorAll(f)),a}catch(hc){}finally{d===M&&e.removeAttribute("id")}}}return za(b.replace(ea,"$1"),e,a,c)}function a(){function b(a,c){e.push(a+" ")>A.cacheLength&&delete b[e.shift()];return b[a+" "]=c}var e=[];return b}function c(b){b[M]=!0;return b}function g(b){var e=K.createElement("div");try{return!!b(e)}catch(ya){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function d(b,e){for(var a=b.split("|"),c=a.length;c--;)A.attrHandle[a[c]]=e}function f(b, e){var a=e&&b,c=a&&1===b.nodeType&&1===e.nodeType&&(~e.sourceIndex||-2147483648)-(~b.sourceIndex||-2147483648);if(c)return c;if(a)for(;a=a.nextSibling;)if(a===e)return-1;return b?1:-1}function k(b){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===b}}function h(b){return function(e){var a=e.nodeName.toLowerCase();return("input"===a||"button"===a)&&e.type===b}}function p(b){return c(function(e){e=+e;return c(function(a,c){for(var g,n=b([],a.length,e),d=n.length;d--;)a[g=n[d]]&& (a[g]=!(c[g]=a[g]))})})}function l(b){return b&&"undefined"!==typeof b.getElementsByTagName&&b}function r(){}function m(b){for(var e=0,a=b.length,c="";e<a;e++)c+=b[e].value;return c}function u(b,e,a){var c=e.dir,g=a&&"parentNode"===c,n=Ga++;return e.first?function(e,a,n){for(;e=e[c];)if(1===e.nodeType||g)return b(e,a,n)}:function(e,a,d){var q,f,k=[X,n];if(d)for(;e=e[c];){if((1===e.nodeType||g)&&b(e,a,d))return!0}else for(;e=e[c];)if(1===e.nodeType||g){f=e[M]||(e[M]={});f=f[e.uniqueID]||(f[e.uniqueID]= {});if((q=f[c])&&q[0]===X&&q[1]===n)return k[2]=q[2];f[c]=k;if(k[2]=b(e,a,d))return!0}}}function C(b){return 1<b.length?function(e,a,c){for(var g=b.length;g--;)if(!b[g](e,a,c))return!1;return!0}:b[0]}function w(b,e,a,c,g){for(var n,d=[],q=0,f=b.length,k=null!=e;q<f;q++)if(n=b[q])if(!a||a(n,c,g))d.push(n),k&&e.push(q);return d}function O(b,a,g,n,d,q){n&&!n[M]&&(n=O(n));d&&!d[M]&&(d=O(d,q));return c(function(c,q,f,k){var h,x,L=[],ca=[],p=q.length,l;if(!(l=c)){l=a||"*";for(var G=f.nodeType?[f]:f,ya= [],r=0,m=G.length;r<m;r++)e(l,G[r],ya);l=ya}l=!b||!c&&a?l:w(l,L,b,f,k);G=g?d||(c?b:p||n)?[]:q:l;g&&g(l,G,f,k);if(n)for(h=w(G,ca),n(h,[],f,k),f=h.length;f--;)if(x=h[f])G[ca[f]]=!(l[ca[f]]=x);if(c){if(d||b){if(d){h=[];for(f=G.length;f--;)(x=G[f])&&h.push(l[f]=x);d(null,G=[],h,k)}for(f=G.length;f--;)(x=G[f])&&-1<(h=d?Y(c,x):L[f])&&(c[h]=!(q[h]=x))}}else G=w(G===q?G.splice(p,G.length):G),d?d(null,q,G,k):T.apply(q,G)})}function R(b){var e,a,c,g=b.length,n=A.relative[b[0].type];a=n||A.relative[" "];for(var d= n?1:0,f=u(function(b){return b===e},a,!0),q=u(function(b){return-1<Y(e,b)},a,!0),k=[function(b,a,c){b=!n&&(c||a!==N)||((e=a).nodeType?f(b,a,c):q(b,a,c));e=null;return b}];d<g;d++)if(a=A.relative[b[d].type])k=[u(C(k),a)];else{a=A.filter[b[d].type].apply(null,b[d].matches);if(a[M]){for(c=++d;c<g&&!A.relative[b[c].type];c++);return O(1<d&&C(k),1<d&&m(b.slice(0,d-1).concat({value:" "===b[d-2].type?"*":""})).replace(ea,"$1"),a,d<c&&R(b.slice(d,c)),c<g&&R(b=b.slice(c)),c<g&&m(b))}k.push(a)}return C(k)} function S(b,a){var g=0<a.length,n=0<b.length,d=function(c,d,f,q,k){var h,x,L,p=0,ca="0",G=c&&[],l=[],ya=N,r=c||n&&A.find.TAG("*",k),m=X+=null==ya?1:Math.random()||.1,u=r.length;for(k&&(N=d===K||d||k);ca!==u&&null!=(h=r[ca]);ca++){if(n&&h){x=0;d||h.ownerDocument===K||(H(h),f=!ba);for(;L=b[x++];)if(L(h,d||K,f)){q.push(h);break}k&&(X=m)}g&&((h=!L&&h)&&p--,c&&G.push(h))}p+=ca;if(g&&ca!==p){for(x=0;L=a[x++];)L(G,l,d,f);if(c){if(0<p)for(;ca--;)G[ca]||l[ca]||(l[ca]=oa.call(q));l=w(l)}T.apply(q,l);k&&!c&& 0<l.length&&1<p+a.length&&e.uniqueSort(q)}k&&(X=m,N=ya);return G};return g?c(d):d}var F,D,A,z,v,Q,J,za,N,E,B,H,K,da,ba,y,U,V,Z,M="sizzle"+1*new Date,I=b.document,X=0,Ga=0,ua=a(),xa=a(),ga=a(),P=function(b,e){b===e&&(B=!0);return 0},Ha={}.hasOwnProperty,W=[],oa=W.pop,aa=W.push,T=W.push,ha=W.slice,Y=function(b,e){for(var a=0,c=b.length;a<c;a++)if(b[a]===e)return a;return-1},Ia=RegExp("[\\x20\\t\\r\\n\\f]+","g"),ea=RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),ia= /^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,ja=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,pa=RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),Aa=/:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/,ma=/^(?:\\.|[\w-]|[^\x00-\xa0])+$/, fa={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:/^((?:\\.|[\w-]|[^\x00-\xa0])+|[*])/,ATTR:/^\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\]/,PSEUDO:/^:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/, CHILD:/^:(only|first|last|nth|nth-last)-(child|of-type)(?:\([\x20\t\r\n\f]*(even|odd|(([+-]|)(\d*)n|)[\x20\t\r\n\f]*(?:([+-]|)[\x20\t\r\n\f]*(\d+)|))[\x20\t\r\n\f]*\)|)/i,bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\x20\t\r\n\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i},sa=/^(?:input|select|textarea|button)$/i,ta=/^h\d$/i,qa= /^[^{]+\{\s*\[native \w/,va=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,na=/[+~]/,wa=/'|\\/g,ka=RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),la=function(b,e,a){b="0x"+e-65536;return b!==b||a?e:0>b?String.fromCharCode(b+65536):String.fromCharCode(b>>10|55296,b&1023|56320)},ra=function(){H()};try{T.apply(W=ha.call(I.childNodes),I.childNodes),W[I.childNodes.length].nodeType}catch(ca){T={apply:W.length?function(b,e){aa.apply(b,ha.call(e))}:function(b,e){for(var a=b.length,c=0;b[a++]= e[c++];);b.length=a-1}}}D=e.support={};v=e.isXML=function(b){return(b=b&&(b.ownerDocument||b).documentElement)?"HTML"!==b.nodeName:!1};H=e.setDocument=function(b){var e;b=b?b.ownerDocument||b:I;if(b===K||9!==b.nodeType||!b.documentElement)return K;K=b;da=K.documentElement;ba=!v(K);(e=K.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",ra,!1):e.attachEvent&&e.attachEvent("onunload",ra));D.attributes=g(function(b){b.className="i";return!b.getAttribute("className")});D.getElementsByTagName= g(function(b){b.appendChild(K.createComment(""));return!b.getElementsByTagName("*").length});D.getElementsByClassName=qa.test(K.getElementsByClassName);D.getById=g(function(b){da.appendChild(b).id=M;return!K.getElementsByName||!K.getElementsByName(M).length});D.getById?(A.find.ID=function(b,e){if("undefined"!==typeof e.getElementById&&ba){var a=e.getElementById(b);return a?[a]:[]}},A.filter.ID=function(b){var e=b.replace(ka,la);return function(b){return b.getAttribute("id")===e}}):(delete A.find.ID, A.filter.ID=function(b){var e=b.replace(ka,la);return function(b){return(b="undefined"!==typeof b.getAttributeNode&&b.getAttributeNode("id"))&&b.value===e}});A.find.TAG=D.getElementsByTagName?function(b,e){if("undefined"!==typeof e.getElementsByTagName)return e.getElementsByTagName(b);if(D.qsa)return e.querySelectorAll(b)}:function(b,e){var a,c=[],g=0,n=e.getElementsByTagName(b);if("*"===b){for(;a=n[g++];)1===a.nodeType&&c.push(a);return c}return n};A.find.CLASS=D.getElementsByClassName&&function(b, e){if("undefined"!==typeof e.getElementsByClassName&&ba)return e.getElementsByClassName(b)};U=[];y=[];if(D.qsa=qa.test(K.querySelectorAll))g(function(b){da.appendChild(b).innerHTML="<a id='"+M+"'></a><select id='"+M+"-\r\\' msallowcapture=''><option selected=''></option></select>";b.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");b.querySelectorAll("[selected]").length||y.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)"); b.querySelectorAll("[id~="+M+"-]").length||y.push("~=");b.querySelectorAll(":checked").length||y.push(":checked");b.querySelectorAll("a#"+M+"+*").length||y.push(".#.+[+~]")}),g(function(b){var e=K.createElement("input");e.setAttribute("type","hidden");b.appendChild(e).setAttribute("name","D");b.querySelectorAll("[name=d]").length&&y.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");b.querySelectorAll(":enabled").length||y.push(":enabled",":disabled");b.querySelectorAll("*,:x");y.push(",.*:")});(D.matchesSelector= qa.test(V=da.matches||da.webkitMatchesSelector||da.mozMatchesSelector||da.oMatchesSelector||da.msMatchesSelector))&&g(function(b){D.disconnectedMatch=V.call(b,"div");V.call(b,"[s!='']:x");U.push("!=",":((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")}); y=y.length&&new RegExp(y.join("|"));U=U.length&&new RegExp(U.join("|"));Z=(e=qa.test(da.compareDocumentPosition))||qa.test(da.contains)?function(b,e){var a=9===b.nodeType?b.documentElement:b,c=e&&e.parentNode;return b===c||!!(c&&1===c.nodeType&&(a.contains?a.contains(c):b.compareDocumentPosition&&b.compareDocumentPosition(c)&16))}:function(b,e){if(e)for(;e=e.parentNode;)if(e===b)return!0;return!1};P=e?function(b,e){if(b===e)return B=!0,0;var a=!b.compareDocumentPosition-!e.compareDocumentPosition; if(a)return a;a=(b.ownerDocument||b)===(e.ownerDocument||e)?b.compareDocumentPosition(e):1;return a&1||!D.sortDetached&&e.compareDocumentPosition(b)===a?b===K||b.ownerDocument===I&&Z(I,b)?-1:e===K||e.ownerDocument===I&&Z(I,e)?1:E?Y(E,b)-Y(E,e):0:a&4?-1:1}:function(b,e){if(b===e)return B=!0,0;var a,c=0;a=b.parentNode;var g=e.parentNode,n=[b],d=[e];if(!a||!g)return b===K?-1:e===K?1:a?-1:g?1:E?Y(E,b)-Y(E,e):0;if(a===g)return f(b,e);for(a=b;a=a.parentNode;)n.unshift(a);for(a=e;a=a.parentNode;)d.unshift(a); for(;n[c]===d[c];)c++;return c?f(n[c],d[c]):n[c]===I?-1:d[c]===I?1:0};return K};e.matches=function(b,a){return e(b,null,null,a)};e.matchesSelector=function(b,a){(b.ownerDocument||b)!==K&&H(b);a=a.replace(pa,"='$1']");if(!(!D.matchesSelector||!ba||ga[a+" "]||U&&U.test(a)||y&&y.test(a)))try{var c=V.call(b,a);if(c||D.disconnectedMatch||b.document&&11!==b.document.nodeType)return c}catch(gc){}return 0<e(a,K,null,[b]).length};e.contains=function(b,e){(b.ownerDocument||b)!==K&&H(b);return Z(b,e)};e.attr= function(b,e){(b.ownerDocument||b)!==K&&H(b);var a=A.attrHandle[e.toLowerCase()],a=a&&Ha.call(A.attrHandle,e.toLowerCase())?a(b,e,!ba):void 0;return void 0!==a?a:D.attributes||!ba?b.getAttribute(e):(a=b.getAttributeNode(e))&&a.specified?a.value:null};e.error=function(b){throw Error("Syntax error, unrecognized expression: "+b);};e.uniqueSort=function(b){var e,a=[],c=0,g=0;B=!D.detectDuplicates;E=!D.sortStable&&b.slice(0);b.sort(P);if(B){for(;e=b[g++];)e===b[g]&&(c=a.push(g));for(;c--;)b.splice(a[c], 1)}E=null;return b};z=e.getText=function(b){var e,a="",c=0;e=b.nodeType;if(!e)for(;e=b[c++];)a+=z(e);else if(1===e||9===e||11===e){if("string"===typeof b.textContent)return b.textContent;for(b=b.firstChild;b;b=b.nextSibling)a+=z(b)}else if(3===e||4===e)return b.nodeValue;return a};A=e.selectors={cacheLength:50,createPseudo:c,match:fa,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(b){b[1]= b[1].replace(ka,la);b[3]=(b[3]||b[4]||b[5]||"").replace(ka,la);"~="===b[2]&&(b[3]=" "+b[3]+" ");return b.slice(0,4)},CHILD:function(b){b[1]=b[1].toLowerCase();"nth"===b[1].slice(0,3)?(b[3]||e.error(b[0]),b[4]=+(b[4]?b[5]+(b[6]||1):2*("even"===b[3]||"odd"===b[3])),b[5]=+(b[7]+b[8]||"odd"===b[3])):b[3]&&e.error(b[0]);return b},PSEUDO:function(b){var e,a=!b[6]&&b[2];if(fa.CHILD.test(b[0]))return null;b[3]?b[2]=b[4]||b[5]||"":a&&Aa.test(a)&&(e=Q(a,!0))&&(e=a.indexOf(")",a.length-e)-a.length)&&(b[0]=b[0].slice(0, e),b[2]=a.slice(0,e));return b.slice(0,3)}},filter:{TAG:function(b){var e=b.replace(ka,la).toLowerCase();return"*"===b?function(){return!0}:function(b){return b.nodeName&&b.nodeName.toLowerCase()===e}},CLASS:function(b){var e=ua[b+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+b+"([\\x20\\t\\r\\n\\f]|$)"),ua(b,function(b){return e.test("string"===typeof b.className&&b.className||"undefined"!==typeof b.getAttribute&&b.getAttribute("class")||"")}))},ATTR:function(b,a,c){return function(g){g= e.attr(g,b);if(null==g)return"!="===a;if(!a)return!0;g+="";return"="===a?g===c:"!="===a?g!==c:"^="===a?c&&0===g.indexOf(c):"*="===a?c&&-1<g.indexOf(c):"$="===a?c&&g.slice(-c.length)===c:"~="===a?-1<(" "+g.replace(Ia," ")+" ").indexOf(c):"|="===a?g===c||g.slice(0,c.length+1)===c+"-":!1}},CHILD:function(b,e,a,c,g){var n="nth"!==b.slice(0,3),d="last"!==b.slice(-4),f="of-type"===e;return 1===c&&0===g?function(b){return!!b.parentNode}:function(e,a,q){var k,h,x,L,p;a=n!==d?"nextSibling":"previousSibling"; var G=e.parentNode,l=f&&e.nodeName.toLowerCase();q=!q&&!f;k=!1;if(G){if(n){for(;a;){for(x=e;x=x[a];)if(f?x.nodeName.toLowerCase()===l:1===x.nodeType)return!1;p=a="only"===b&&!p&&"nextSibling"}return!0}p=[d?G.firstChild:G.lastChild];if(d&&q)for(x=G,h=x[M]||(x[M]={}),h=h[x.uniqueID]||(h[x.uniqueID]={}),k=h[b]||[],k=(L=k[0]===X&&k[1])&&k[2],x=L&&G.childNodes[L];x=++L&&x&&x[a]||(k=L=0)||p.pop();){if(1===x.nodeType&&++k&&x===e){h[b]=[X,L,k];break}}else if(q&&(x=e,h=x[M]||(x[M]={}),h=h[x.uniqueID]||(h[x.uniqueID]= {}),k=h[b]||[],k=L=k[0]===X&&k[1]),!1===k)for(;(x=++L&&x&&x[a]||(k=L=0)||p.pop())&&((f?x.nodeName.toLowerCase()!==l:1!==x.nodeType)||!++k||(q&&(h=x[M]||(x[M]={}),h=h[x.uniqueID]||(h[x.uniqueID]={}),h[b]=[X,k]),x!==e)););k-=g;return k===c||0===k%c&&0<=k/c}}},PSEUDO:function(b,a){var g,n=A.pseudos[b]||A.setFilters[b.toLowerCase()]||e.error("unsupported pseudo: "+b);return n[M]?n(a):1<n.length?(g=[b,b,"",a],A.setFilters.hasOwnProperty(b.toLowerCase())?c(function(b,e){for(var c,g=n(b,a),d=g.length;d--;)c= Y(b,g[d]),b[c]=!(e[c]=g[d])}):function(b){return n(b,0,g)}):n}},pseudos:{not:c(function(b){var e=[],a=[],g=J(b.replace(ea,"$1"));return g[M]?c(function(b,e,a,c){c=g(b,null,c,[]);for(var n=b.length;n--;)if(a=c[n])b[n]=!(e[n]=a)}):function(b,c,n){e[0]=b;g(e,null,n,a);e[0]=null;return!a.pop()}}),has:c(function(b){return function(a){return 0<e(b,a).length}}),contains:c(function(b){b=b.replace(ka,la);return function(e){return-1<(e.textContent||e.innerText||z(e)).indexOf(b)}}),lang:c(function(b){ma.test(b|| "")||e.error("unsupported lang: "+b);b=b.replace(ka,la).toLowerCase();return function(e){var a;do if(a=ba?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return a=a.toLowerCase(),a===b||0===a.indexOf(b+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var a=b.location&&b.location.hash;return a&&a.slice(1)===e.id},root:function(b){return b===da},focus:function(b){return b===K.activeElement&&(!K.hasFocus||K.hasFocus())&&!!(b.type||b.href||~b.tabIndex)},enabled:function(b){return!1=== b.disabled},disabled:function(b){return!0===b.disabled},checked:function(b){var e=b.nodeName.toLowerCase();return"input"===e&&!!b.checked||"option"===e&&!!b.selected},selected:function(b){b.parentNode&&b.parentNode.selectedIndex;return!0===b.selected},empty:function(b){for(b=b.firstChild;b;b=b.nextSibling)if(6>b.nodeType)return!1;return!0},parent:function(b){return!A.pseudos.empty(b)},header:function(b){return ta.test(b.nodeName)},input:function(b){return sa.test(b.nodeName)},button:function(b){var e= b.nodeName.toLowerCase();return"input"===e&&"button"===b.type||"button"===e},text:function(b){var e;return"input"===b.nodeName.toLowerCase()&&"text"===b.type&&(null==(e=b.getAttribute("type"))||"text"===e.toLowerCase())},first:p(function(){return[0]}),last:p(function(b,e){return[e-1]}),eq:p(function(b,e,a){return[0>a?a+e:a]}),even:p(function(b,e){for(var a=0;a<e;a+=2)b.push(a);return b}),odd:p(function(b,e){for(var a=1;a<e;a+=2)b.push(a);return b}),lt:p(function(b,e,a){for(e=0>a?a+e:a;0<=--e;)b.push(e); return b}),gt:p(function(b,e,a){for(a=0>a?a+e:a;++a<e;)b.push(a);return b})}};A.pseudos.nth=A.pseudos.eq;for(F in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})A.pseudos[F]=k(F);for(F in{submit:!0,reset:!0})A.pseudos[F]=h(F);r.prototype=A.filters=A.pseudos;A.setFilters=new r;Q=e.tokenize=function(b,a){var c,g,n,d,f,q,k;if(f=xa[b+" "])return a?0:f.slice(0);f=b;q=[];for(k=A.preFilter;f;){if(!c||(g=ia.exec(f)))g&&(f=f.slice(g[0].length)||f),q.push(n=[]);c=!1;if(g=ja.exec(f))c=g.shift(),n.push({value:c, type:g[0].replace(ea," ")}),f=f.slice(c.length);for(d in A.filter)!(g=fa[d].exec(f))||k[d]&&!(g=k[d](g))||(c=g.shift(),n.push({value:c,type:d,matches:g}),f=f.slice(c.length));if(!c)break}return a?f.length:f?e.error(b):xa(b,q).slice(0)};J=e.compile=function(b,e){var a,c=[],g=[],n=ga[b+" "];if(!n){e||(e=Q(b));for(a=e.length;a--;)n=R(e[a]),n[M]?c.push(n):g.push(n);n=ga(b,S(g,c));n.selector=b}return n};za=e.select=function(b,e,a,c){var g,n,d,f,q="function"===typeof b&&b,k=!c&&Q(b=q.selector||b);a=a|| [];if(1===k.length){n=k[0]=k[0].slice(0);if(2<n.length&&"ID"===(d=n[0]).type&&D.getById&&9===e.nodeType&&ba&&A.relative[n[1].type]){e=(A.find.ID(d.matches[0].replace(ka,la),e)||[])[0];if(!e)return a;q&&(e=e.parentNode);b=b.slice(n.shift().value.length)}for(g=fa.needsContext.test(b)?0:n.length;g--;){d=n[g];if(A.relative[f=d.type])break;if(f=A.find[f])if(c=f(d.matches[0].replace(ka,la),na.test(n[0].type)&&l(e.parentNode)||e)){n.splice(g,1);b=c.length&&m(n);if(!b)return T.apply(a,c),a;break}}}(q||J(b, k))(c,e,!ba,a,!e||na.test(b)&&l(e.parentNode)||e);return a};D.sortStable=M.split("").sort(P).join("")===M;D.detectDuplicates=!!B;H();D.sortDetached=g(function(b){return b.compareDocumentPosition(K.createElement("div"))&1});g(function(b){b.innerHTML="<a href='#'></a>";return"#"===b.firstChild.getAttribute("href")})||d("type|href|height|width",function(b,e,a){if(!a)return b.getAttribute(e,"type"===e.toLowerCase()?1:2)});D.attributes&&g(function(b){b.innerHTML="<input/>";b.firstChild.setAttribute("value", "");return""===b.firstChild.getAttribute("value")})||d("value",function(b,e,a){if(!a&&"input"===b.nodeName.toLowerCase())return b.defaultValue});g(function(b){return null==b.getAttribute("disabled")})||d("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(b,e,a){var c;if(!a)return!0===b[e]?e.toLowerCase():(c=b.getAttributeNode(e))&&c.specified?c.value:null});return e}(a);g.find=ma;g.expr=ma.selectors;g.expr[":"]=g.expr.pseudos; g.uniqueSort=g.unique=ma.uniqueSort;g.text=ma.getText;g.isXMLDoc=ma.isXML;g.contains=ma.contains;var fa=function(b,e,a){for(var c=[],n=void 0!==a;(b=b[e])&&9!==b.nodeType;)if(1===b.nodeType){if(n&&g(b).is(a))break;c.push(b)}return c},db=function(b,e){for(var a=[];b;b=b.nextSibling)1===b.nodeType&&b!==e&&a.push(b);return a},eb=g.expr.match.needsContext,fb=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,tb=/^.[^:#\[\.,]*$/;g.filter=function(b,e,a){var c=e[0];a&&(b=":not("+b+")");return 1===e.length&&1===c.nodeType? g.find.matchesSelector(c,b)?[c]:[]:g.find.matches(b,g.grep(e,function(b){return 1===b.nodeType}))};g.fn.extend({find:function(b){var e,a=this.length,c=[],d=this;if("string"!==typeof b)return this.pushStack(g(b).filter(function(){for(e=0;e<a;e++)if(g.contains(d[e],this))return!0}));for(e=0;e<a;e++)g.find(b,d[e],c);c=this.pushStack(1<a?g.unique(c):c);c.selector=this.selector?this.selector+" "+b:b;return c},filter:function(b){return this.pushStack(h(this,b||[],!1))},not:function(b){return this.pushStack(h(this, b||[],!0))},is:function(b){return!!h(this,"string"===typeof b&&eb.test(b)?g(b):b||[],!1).length}});var gb,Ib=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(g.fn.init=function(b,e,a){var c;if(!b)return this;a=a||gb;if("string"===typeof b){c="<"===b[0]&&">"===b[b.length-1]&&3<=b.length?[null,b,null]:Ib.exec(b);if(!c||!c[1]&&e)return!e||e.jquery?(e||a).find(b):this.constructor(e).find(b);if(c[1]){if(e=e instanceof g?e[0]:e,g.merge(this,g.parseHTML(c[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),fb.test(c[1])&& g.isPlainObject(e))for(c in e)if(g.isFunction(this[c]))this[c](e[c]);else this.attr(c,e[c])}else(e=y.getElementById(c[2]))&&e.parentNode&&(this.length=1,this[0]=e),this.context=y,this.selector=b;return this}if(b.nodeType)return this.context=this[0]=b,this.length=1,this;if(g.isFunction(b))return void 0!==a.ready?a.ready(b):b(g);void 0!==b.selector&&(this.selector=b.selector,this.context=b.context);return g.makeArray(b,this)}).prototype=g.fn;gb=g(y);var Jb=/^(?:parents|prev(?:Until|All))/,Kb={children:!0, contents:!0,next:!0,prev:!0};g.fn.extend({has:function(b){var e=g(b,this),a=e.length;return this.filter(function(){for(var b=0;b<a;b++)if(g.contains(this,e[b]))return!0})},closest:function(b,e){for(var a,c=0,d=this.length,f=[],k=eb.test(b)||"string"!==typeof b?g(b,e||this.context):0;c<d;c++)for(a=this[c];a&&a!==e;a=a.parentNode)if(11>a.nodeType&&(k?-1<k.index(a):1===a.nodeType&&g.find.matchesSelector(a,b))){f.push(a);break}return this.pushStack(1<f.length?g.uniqueSort(f):f)},index:function(b){return b? "string"===typeof b?Da.call(g(b),this[0]):Da.call(this,b.jquery?b[0]:b):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(b,e){return this.pushStack(g.uniqueSort(g.merge(this.get(),g(b,e))))},addBack:function(b){return this.add(null==b?this.prevObject:this.prevObject.filter(b))}});g.each({parent:function(b){return(b=b.parentNode)&&11!==b.nodeType?b:null},parents:function(b){return fa(b,"parentNode")},parentsUntil:function(b,e,a){return fa(b,"parentNode",a)},next:function(b){return c(b, "nextSibling")},prev:function(b){return c(b,"previousSibling")},nextAll:function(b){return fa(b,"nextSibling")},prevAll:function(b){return fa(b,"previousSibling")},nextUntil:function(b,e,a){return fa(b,"nextSibling",a)},prevUntil:function(b,e,a){return fa(b,"previousSibling",a)},siblings:function(b){return db((b.parentNode||{}).firstChild,b)},children:function(b){return db(b.firstChild)},contents:function(b){return b.contentDocument||g.merge([],b.childNodes)}},function(b,e){g.fn[b]=function(a,c){var n= g.map(this,e,a);"Until"!==b.slice(-5)&&(c=a);c&&"string"===typeof c&&(n=g.filter(c,n));1<this.length&&(Kb[b]||g.uniqueSort(n),Jb.test(b)&&n.reverse());return this.pushStack(n)}});var T=/\S+/g;g.Callbacks=function(b){b="string"===typeof b?f(b):g.extend({},b);var e,a,c,d,k=[],h=[],p=-1,l=function(){d=b.once;for(c=e=!0;h.length;p=-1)for(a=h.shift();++p<k.length;)!1===k[p].apply(a[0],a[1])&&b.stopOnFalse&&(p=k.length,a=!1);b.memory||(a=!1);e=!1;d&&(k=a?[]:"")},r={add:function(){k&&(a&&!e&&(p=k.length- 1,h.push(a)),function wb(e){g.each(e,function(e,a){g.isFunction(a)?b.unique&&r.has(a)||k.push(a):a&&a.length&&"string"!==g.type(a)&&wb(a)})}(arguments),a&&!e&&l());return this},remove:function(){g.each(arguments,function(b,e){for(var a;-1<(a=g.inArray(e,k,a));)k.splice(a,1),a<=p&&p--});return this},has:function(b){return b?-1<g.inArray(b,k):0<k.length},empty:function(){k&&(k=[]);return this},disable:function(){d=h=[];k=a="";return this},disabled:function(){return!k},lock:function(){d=h=[];a||(k=a= "");return this},locked:function(){return!!d},fireWith:function(b,a){d||(a=a||[],a=[b,a.slice?a.slice():a],h.push(a),e||l());return this},fire:function(){r.fireWith(this,arguments);return this},fired:function(){return!!c}};return r};g.extend({Deferred:function(b){var e=[["resolve","done",g.Callbacks("once memory"),"resolved"],["reject","fail",g.Callbacks("once memory"),"rejected"],["notify","progress",g.Callbacks("memory")]],a="pending",c={state:function(){return a},always:function(){d.done(arguments).fail(arguments); return this},then:function(){var b=arguments;return g.Deferred(function(a){g.each(e,function(e,n){var f=g.isFunction(b[e])&&b[e];d[n[1]](function(){var b=f&&f.apply(this,arguments);if(b&&g.isFunction(b.promise))b.promise().progress(a.notify).done(a.resolve).fail(a.reject);else a[n[0]+"With"](this===c?a.promise():this,f?[b]:arguments)})});b=null}).promise()},promise:function(b){return null!=b?g.extend(b,c):c}},d={};c.pipe=c.then;g.each(e,function(b,g){var n=g[2],f=g[3];c[g[1]]=n.add;f&&n.add(function(){a= f},e[b^1][2].disable,e[2][2].lock);d[g[0]]=function(){d[g[0]+"With"](this===d?c:this,arguments);return this};d[g[0]+"With"]=n.fireWith});c.promise(d);b&&b.call(d,d);return d},when:function(b){var e=0,a=ia.call(arguments),c=a.length,d=1!==c||b&&g.isFunction(b.promise)?c:0,f=1===d?b:g.Deferred(),k=function(b,e,a){return function(c){e[b]=this;a[b]=1<arguments.length?ia.call(arguments):c;a===h?f.notifyWith(e,a):--d||f.resolveWith(e,a)}},h,p,l;if(1<c)for(h=Array(c),p=Array(c),l=Array(c);e<c;e++)a[e]&& g.isFunction(a[e].promise)?a[e].promise().progress(k(e,p,h)).done(k(e,l,a)).fail(f.reject):--d;d||f.resolveWith(l,a);return f.promise()}});var Ka;g.fn.ready=function(b){g.ready.promise().done(b);return this};g.extend({isReady:!1,readyWait:1,holdReady:function(b){b?g.readyWait++:g.ready(!0)},ready:function(b){(!0===b?--g.readyWait:g.isReady)||(g.isReady=!0,!0!==b&&0<--g.readyWait||(Ka.resolveWith(y,[g]),g.fn.triggerHandler&&(g(y).triggerHandler("ready"),g(y).off("ready"))))}});g.ready.promise=function(b){Ka|| (Ka=g.Deferred(),"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?a.setTimeout(g.ready):(y.addEventListener("DOMContentLoaded",d),a.addEventListener("load",d)));return Ka.promise(b)};g.ready.promise();var Y=function(b,a,c,d,f,k,h){var e=0,n=b.length,q=null==c;if("object"===g.type(c))for(e in f=!0,c)Y(b,a,e,c[e],!0,k,h);else if(void 0!==d&&(f=!0,g.isFunction(d)||(h=!0),q&&(h?(a.call(b,d),a=null):(q=a,a=function(b,a,e){return q.call(g(b),e)})),a))for(;e<n;e++)a(b[e], c,h?d:d.call(b[e],e,a(b[e],c)));return f?b:q?a.call(b):n?a(b[0],c):k},na=function(b){return 1===b.nodeType||9===b.nodeType||!+b.nodeType};k.uid=1;k.prototype={register:function(b,a){var e=a||{};b.nodeType?b[this.expando]=e:Object.defineProperty(b,this.expando,{value:e,writable:!0,configurable:!0});return b[this.expando]},cache:function(b){if(!na(b))return{};var a=b[this.expando];a||(a={},na(b)&&(b.nodeType?b[this.expando]=a:Object.defineProperty(b,this.expando,{value:a,configurable:!0})));return a}, set:function(b,a,c){var e;b=this.cache(b);if("string"===typeof a)b[a]=c;else for(e in a)b[e]=a[e];return b},get:function(b,a){return void 0===a?this.cache(b):b[this.expando]&&b[this.expando][a]},access:function(b,a,c){if(void 0===a||a&&"string"===typeof a&&void 0===c)return c=this.get(b,a),void 0!==c?c:this.get(b,g.camelCase(a));this.set(b,a,c);return void 0!==c?c:a},remove:function(b,a){var e,c,d=b[this.expando];if(void 0!==d){if(void 0===a)this.register(b);else for(g.isArray(a)?c=a.concat(a.map(g.camelCase)): (e=g.camelCase(a),a in d?c=[a,e]:(c=e,c=c in d?[c]:c.match(T)||[])),e=c.length;e--;)delete d[c[e]];if(void 0===a||g.isEmptyObject(d))b.nodeType?b[this.expando]=void 0:delete b[this.expando]}},hasData:function(b){b=b[this.expando];return void 0!==b&&!g.isEmptyObject(b)}};var B=new k,P=new k,ub=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Wa=/[A-Z]/g;g.extend({hasData:function(b){return P.hasData(b)||B.hasData(b)},data:function(b,a,c){return P.access(b,a,c)},removeData:function(b,a){P.remove(b,a)},_data:function(b, a,c){return B.access(b,a,c)},_removeData:function(b,a){B.remove(b,a)}});g.fn.extend({data:function(b,a){var e,c,d,f=this[0],k=f&&f.attributes;if(void 0===b){if(this.length&&(d=P.get(f),1===f.nodeType&&!B.get(f,"hasDataAttrs"))){for(e=k.length;e--;)k[e]&&(c=k[e].name,0===c.indexOf("data-")&&(c=g.camelCase(c.slice(5)),p(f,c,d[c])));B.set(f,"hasDataAttrs",!0)}return d}return"object"===typeof b?this.each(function(){P.set(this,b)}):Y(this,function(a){var e,c;if(f&&void 0===a){e=P.get(f,b)||P.get(f,b.replace(Wa, "-$&").toLowerCase());if(void 0!==e)return e;c=g.camelCase(b);e=P.get(f,c);if(void 0!==e)return e;e=p(f,c,void 0);if(void 0!==e)return e}else c=g.camelCase(b),this.each(function(){var e=P.get(this,c);P.set(this,c,a);-1<b.indexOf("-")&&void 0!==e&&P.set(this,b,a)})},null,a,1<arguments.length,null,!0)},removeData:function(b){return this.each(function(){P.remove(this,b)})}});g.extend({queue:function(b,a,c){var e;if(b)return a=(a||"fx")+"queue",e=B.get(b,a),c&&(!e||g.isArray(c)?e=B.access(b,a,g.makeArray(c)): e.push(c)),e||[]},dequeue:function(b,a){a=a||"fx";var e=g.queue(b,a),c=e.length,d=e.shift(),f=g._queueHooks(b,a),k=function(){g.dequeue(b,a)};"inprogress"===d&&(d=e.shift(),c--);d&&("fx"===a&&e.unshift("inprogress"),delete f.stop,d.call(b,k,f));!c&&f&&f.empty.fire()},_queueHooks:function(b,a){var e=a+"queueHooks";return B.get(b,e)||B.access(b,e,{empty:g.Callbacks("once memory").add(function(){B.remove(b,[a+"queue",e])})})}});g.fn.extend({queue:function(b,a){var e=2;"string"!==typeof b&&(a=b,b="fx", e--);return arguments.length<e?g.queue(this[0],b):void 0===a?this:this.each(function(){var e=g.queue(this,b,a);g._queueHooks(this,b);"fx"===b&&"inprogress"!==e[0]&&g.dequeue(this,b)})},dequeue:function(b){return this.each(function(){g.dequeue(this,b)})},clearQueue:function(b){return this.queue(b||"fx",[])},promise:function(b,a){var e,c=1,d=g.Deferred(),f=this,k=this.length,h=function(){--c||d.resolveWith(f,[f])};"string"!==typeof b&&(a=b,b=void 0);for(b=b||"fx";k--;)(e=B.get(f[k],b+"queueHooks"))&& e.empty&&(c++,e.empty.add(h));h();return d.promise(a)}});var hb=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,sa=new RegExp("^(?:([+-])=|)("+hb+")([a-z%]*)$","i"),ja=["Top","Right","Bottom","Left"],ta=function(b,a){b=a||b;return"none"===g.css(b,"display")||!g.contains(b.ownerDocument,b)},ib=/^(?:checkbox|radio)$/i,Xa=/<([\w:-]+)/,Ya=/^$|\/(?:java|ecma)script/i,aa={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"], tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};aa.optgroup=aa.option;aa.tbody=aa.tfoot=aa.colgroup=aa.caption=aa.thead;aa.th=aa.td;var xb=/<|&#?\w+;/;(function(){var b=y.createDocumentFragment().appendChild(y.createElement("div")),a=y.createElement("input");a.setAttribute("type","radio");a.setAttribute("checked","checked");a.setAttribute("name","t");b.appendChild(a);I.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked;b.innerHTML= "<textarea>x</textarea>";I.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue})();var Lb=/^key/,Mb=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,jb=/^([^.]*)(?:\.(.+)|)/;g.event={global:{},add:function(b,a,c,d,f){var e,n,k,q,h,x,p,l,r;if(h=B.get(b))for(c.handler&&(e=c,c=e.handler,f=e.selector),c.guid||(c.guid=g.guid++),(q=h.events)||(q=h.events={}),(n=h.handle)||(n=h.handle=function(a){return"undefined"!==typeof g&&g.event.triggered!==a.type?g.event.dispatch.apply(b,arguments):void 0}),a= (a||"").match(T)||[""],h=a.length;h--;)k=jb.exec(a[h])||[],l=x=k[1],r=(k[2]||"").split(".").sort(),l&&(k=g.event.special[l]||{},l=(f?k.delegateType:k.bindType)||l,k=g.event.special[l]||{},x=g.extend({type:l,origType:x,data:d,handler:c,guid:c.guid,selector:f,needsContext:f&&g.expr.match.needsContext.test(f),namespace:r.join(".")},e),(p=q[l])||(p=q[l]=[],p.delegateCount=0,k.setup&&!1!==k.setup.call(b,d,r,n)||b.addEventListener&&b.addEventListener(l,n)),k.add&&(k.add.call(b,x),x.handler.guid||(x.handler.guid= c.guid)),f?p.splice(p.delegateCount++,0,x):p.push(x),g.event.global[l]=!0)},remove:function(b,a,c,d,f){var e,n,k,q,h,x,p,l,r,m,u,C=B.hasData(b)&&B.get(b);if(C&&(q=C.events)){a=(a||"").match(T)||[""];for(h=a.length;h--;)if(k=jb.exec(a[h])||[],r=u=k[1],m=(k[2]||"").split(".").sort(),r){p=g.event.special[r]||{};r=(d?p.delegateType:p.bindType)||r;l=q[r]||[];k=k[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)");for(n=e=l.length;e--;)x=l[e],!f&&u!==x.origType||c&&c.guid!==x.guid||k&&!k.test(x.namespace)|| d&&d!==x.selector&&("**"!==d||!x.selector)||(l.splice(e,1),x.selector&&l.delegateCount--,p.remove&&p.remove.call(b,x));n&&!l.length&&(p.teardown&&!1!==p.teardown.call(b,m,C.handle)||g.removeEvent(b,r,C.handle),delete q[r])}else for(r in q)g.event.remove(b,r+a[h],c,d,!0);g.isEmptyObject(q)&&B.remove(b,"handle events")}},dispatch:function(b){b=g.event.fix(b);var a,c,d,f,k,h=ia.call(arguments);a=(B.get(this,"events")||{})[b.type]||[];var p=g.event.special[b.type]||{};h[0]=b;b.delegateTarget=this;if(!p.preDispatch|| !1!==p.preDispatch.call(this,b)){k=g.event.handlers.call(this,b,a);for(a=0;(f=k[a++])&&!b.isPropagationStopped();)for(b.currentTarget=f.elem,c=0;(d=f.handlers[c++])&&!b.isImmediatePropagationStopped();)if(!b.rnamespace||b.rnamespace.test(d.namespace))b.handleObj=d,b.data=d.data,d=((g.event.special[d.origType]||{}).handle||d.handler).apply(f.elem,h),void 0!==d&&!1===(b.result=d)&&(b.preventDefault(),b.stopPropagation());p.postDispatch&&p.postDispatch.call(this,b);return b.result}},handlers:function(b, a){var e,c,d,f,k=[],h=a.delegateCount,p=b.target;if(h&&p.nodeType&&("click"!==b.type||isNaN(b.button)||1>b.button))for(;p!==this;p=p.parentNode||this)if(1===p.nodeType&&(!0!==p.disabled||"click"!==b.type)){c=[];for(e=0;e<h;e++)f=a[e],d=f.selector+" ",void 0===c[d]&&(c[d]=f.needsContext?-1<g(d,this).index(p):g.find(d,this,null,[p]).length),c[d]&&c.push(f);c.length&&k.push({elem:p,handlers:c})}h<a.length&&k.push({elem:this,handlers:a.slice(h)});return k},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), fixHooks:{},keyHooks:{props:["char","charCode","key","keyCode"],filter:function(b,a){null==b.which&&(b.which=null!=a.charCode?a.charCode:a.keyCode);return b}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(b,a){var e,c,g=a.button;null==b.pageX&&null!=a.clientX&&(e=b.target.ownerDocument||y,c=e.documentElement,e=e.body,b.pageX=a.clientX+(c&&c.scrollLeft||e&&e.scrollLeft||0)-(c&&c.clientLeft||e&&e.clientLeft||0),b.pageY= a.clientY+(c&&c.scrollTop||e&&e.scrollTop||0)-(c&&c.clientTop||e&&e.clientTop||0));b.which||void 0===g||(b.which=g&1?1:g&2?3:g&4?2:0);return b}},fix:function(b){if(b[g.expando])return b;var a,c,d;a=b.type;var f=b,k=this.fixHooks[a];k||(this.fixHooks[a]=k=Mb.test(a)?this.mouseHooks:Lb.test(a)?this.keyHooks:{});d=k.props?this.props.concat(k.props):this.props;b=new g.Event(f);for(a=d.length;a--;)c=d[a],b[c]=f[c];b.target||(b.target=y);3===b.target.nodeType&&(b.target=b.target.parentNode);return k.filter? k.filter(b,f):b},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==V()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===V()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&g.nodeName(this,"input"))return this.click(),!1},_default:function(b){return g.nodeName(b.target,"a")}},beforeunload:{postDispatch:function(b){void 0!==b.result&&b.originalEvent&&(b.originalEvent.returnValue= b.result)}}}};g.removeEvent=function(b,a,c){b.removeEventListener&&b.removeEventListener(a,c)};g.Event=function(b,a){if(!(this instanceof g.Event))return new g.Event(b,a);b&&b.type?(this.originalEvent=b,this.type=b.type,this.isDefaultPrevented=b.defaultPrevented||void 0===b.defaultPrevented&&!1===b.returnValue?J:E):this.type=b;a&&g.extend(this,a);this.timeStamp=b&&b.timeStamp||g.now();this[g.expando]=!0};g.Event.prototype={constructor:g.Event,isDefaultPrevented:E,isPropagationStopped:E,isImmediatePropagationStopped:E, isSimulated:!1,preventDefault:function(){var b=this.originalEvent;this.isDefaultPrevented=J;b&&!this.isSimulated&&b.preventDefault()},stopPropagation:function(){var b=this.originalEvent;this.isPropagationStopped=J;b&&!this.isSimulated&&b.stopPropagation()},stopImmediatePropagation:function(){var b=this.originalEvent;this.isImmediatePropagationStopped=J;b&&!this.isSimulated&&b.stopImmediatePropagation();this.stopPropagation()}};g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover", pointerleave:"pointerout"},function(b,a){g.event.special[b]={delegateType:a,bindType:a,handle:function(b){var e,c=b.relatedTarget,d=b.handleObj;if(!c||c!==this&&!g.contains(this,c))b.type=d.origType,e=d.handler.apply(this,arguments),b.type=a;return e}}});g.fn.extend({on:function(b,a,c,g){return H(this,b,a,c,g)},one:function(b,a,c,g){return H(this,b,a,c,g,1)},off:function(b,a,c){var e;if(b&&b.preventDefault&&b.handleObj)return e=b.handleObj,g(b.delegateTarget).off(e.namespace?e.origType+"."+e.namespace: e.origType,e.selector,e.handler),this;if("object"===typeof b){for(e in b)this.off(e,a,b[e]);return this}if(!1===a||"function"===typeof a)c=a,a=void 0;!1===c&&(c=E);return this.each(function(){g.event.remove(this,b,c,a)})}});var Nb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ob=/<script|<style|<link/i,zb=/checked\s*(?:[^=]|=\s*.checked.)/i,yb=/^true\/(.*)/,Ab=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;g.extend({htmlPrefilter:function(b){return b.replace(Nb,"<$1></$2>")}, clone:function(b,a,c){var e,d,f,n,k=b.cloneNode(!0),h=g.contains(b.ownerDocument,b);if(!(I.noCloneChecked||1!==b.nodeType&&11!==b.nodeType||g.isXMLDoc(b)))for(n=w(k),f=w(b),e=0,d=f.length;e<d;e++){var p=f[e],l=n[e],r=l.nodeName.toLowerCase();if("input"===r&&ib.test(p.type))l.checked=p.checked;else if("input"===r||"textarea"===r)l.defaultValue=p.defaultValue}if(a)if(c)for(f=f||w(b),n=n||w(k),e=0,d=f.length;e<d;e++)O(f[e],n[e]);else O(b,k);n=w(k,"script");0<n.length&&z(n,!h&&w(b,"script"));return k}, cleanData:function(b){for(var a,c,d,f=g.event.special,k=0;void 0!==(c=b[k]);k++)if(na(c)){if(a=c[B.expando]){if(a.events)for(d in a.events)f[d]?g.event.remove(c,d):g.removeEvent(c,d,a.handle);c[B.expando]=void 0}c[P.expando]&&(c[P.expando]=void 0)}}});g.fn.extend({domManip:F,detach:function(b){return S(this,b,!0)},remove:function(b){return S(this,b)},text:function(b){return Y(this,function(b){return void 0===b?g.text(this):this.empty().each(function(){if(1===this.nodeType||11===this.nodeType||9=== this.nodeType)this.textContent=b})},null,b,arguments.length)},append:function(){return F(this,arguments,function(b){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||v(this,b).appendChild(b)})},prepend:function(){return F(this,arguments,function(b){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var a=v(this,b);a.insertBefore(b,a.firstChild)}})},before:function(){return F(this,arguments,function(b){this.parentNode&&this.parentNode.insertBefore(b,this)})},after:function(){return F(this, arguments,function(b){this.parentNode&&this.parentNode.insertBefore(b,this.nextSibling)})},empty:function(){for(var b,a=0;null!=(b=this[a]);a++)1===b.nodeType&&(g.cleanData(w(b,!1)),b.textContent="");return this},clone:function(b,a){b=null==b?!1:b;a=null==a?b:a;return this.map(function(){return g.clone(this,b,a)})},html:function(b){return Y(this,function(b){var a=this[0]||{},e=0,c=this.length;if(void 0===b&&1===a.nodeType)return a.innerHTML;if("string"===typeof b&&!Ob.test(b)&&!aa[(Xa.exec(b)||["", ""])[1].toLowerCase()]){b=g.htmlPrefilter(b);try{for(;e<c;e++)a=this[e]||{},1===a.nodeType&&(g.cleanData(w(a,!1)),a.innerHTML=b);a=0}catch(L){}}a&&this.empty().append(b)},null,b,arguments.length)},replaceWith:function(){var b=[];return F(this,arguments,function(a){var e=this.parentNode;0>g.inArray(this,b)&&(g.cleanData(w(this)),e&&e.replaceChild(a,this))},b)}});g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){g.fn[b]=function(b){for(var e= [],c=g(b),d=c.length-1,f=0;f<=d;f++)b=f===d?this:this.clone(!0),g(c[f])[a](b),Oa.apply(e,b.get());return this.pushStack(e)}});var Ea,$a={HTML:"block",BODY:"block"},ab=/^margin/,Ma=new RegExp("^("+hb+")(?!px)[a-z%]+$","i"),Fa=function(b){var e=b.ownerDocument.defaultView;e&&e.opener||(e=a);return e.getComputedStyle(b)},Qa=function(b,a,c,g){var e,d={};for(e in a)d[e]=b.style[e],b.style[e]=a[e];c=c.apply(b,g||[]);for(e in a)b.style[e]=d[e];return c},wa=y.documentElement;(function(){function b(){h.style.cssText= "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";h.innerHTML="";wa.appendChild(k);var b=a.getComputedStyle(h);e="1%"!==b.top;f="2px"===b.marginLeft;c="4px"===b.width;h.style.marginRight="50%";d="4px"===b.marginRight;wa.removeChild(k)}var e,c,d,f,k=y.createElement("div"),h=y.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",I.clearCloneStyle= "content-box"===h.style.backgroundClip,k.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",k.appendChild(h),g.extend(I,{pixelPosition:function(){b();return e},boxSizingReliable:function(){null==c&&b();return c},pixelMarginRight:function(){null==c&&b();return d},reliableMarginLeft:function(){null==c&&b();return f},reliableMarginRight:function(){var b,e=h.appendChild(y.createElement("div"));e.style.cssText=h.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0"; e.style.marginRight=e.style.width="0";h.style.width="1px";wa.appendChild(k);b=!parseFloat(a.getComputedStyle(e).marginRight);wa.removeChild(k);h.removeChild(e);return b}}))})();var Pb=/^(none|table(?!-c[ea]).+)/,Qb={position:"absolute",visibility:"hidden",display:"block"},kb={letterSpacing:"0",fontWeight:"400"},cb=["Webkit","O","Moz","ms"],bb=y.createElement("div").style;g.extend({cssHooks:{opacity:{get:function(b,a){if(a){var e=Z(b,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0, columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(b,a,c,d){if(b&&3!==b.nodeType&&8!==b.nodeType&&b.style){var e,f,n,k=g.camelCase(a),h=b.style;a=g.cssProps[k]||(g.cssProps[k]=oa(k)||k);n=g.cssHooks[a]||g.cssHooks[k];if(void 0!==c)f=typeof c,"string"===f&&(e=sa.exec(c))&&e[1]&&(c=r(b,a,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(g.cssNumber[k]?"": "px")),I.clearCloneStyle||""!==c||0!==a.indexOf("background")||(h[a]="inherit"),n&&"set"in n&&void 0===(c=n.set(b,c,d))||(h[a]=c));else return n&&"get"in n&&void 0!==(e=n.get(b,!1,d))?e:h[a]}},css:function(b,a,c,d){var e,f;f=g.camelCase(a);a=g.cssProps[f]||(g.cssProps[f]=oa(f)||f);(f=g.cssHooks[a]||g.cssHooks[f])&&"get"in f&&(e=f.get(b,!0,c));void 0===e&&(e=Z(b,a,d));"normal"===e&&a in kb&&(e=kb[a]);return""===c||c?(b=parseFloat(e),!0===c||isFinite(b)?b||0:e):e}});g.each(["height","width"],function(b, a){g.cssHooks[a]={get:function(b,e,c){if(e)return Pb.test(g.css(b,"display"))&&0===b.offsetWidth?Qa(b,Qb,function(){return D(b,a,c)}):D(b,a,c)},set:function(b,e,c){var d,f=c&&Fa(b);(c=c&&u(b,a,c,"border-box"===g.css(b,"boxSizing",!1,f),f))&&(d=sa.exec(e))&&"px"!==(d[3]||"px")&&(b.style[a]=e,e=g.css(b,a));return ha(b,e,c)}}});g.cssHooks.marginLeft=W(I.reliableMarginLeft,function(b,a){if(a)return(parseFloat(Z(b,"marginLeft"))||b.getBoundingClientRect().left-Qa(b,{marginLeft:0},function(){return b.getBoundingClientRect().left}))+ "px"});g.cssHooks.marginRight=W(I.reliableMarginRight,function(b,a){if(a)return Qa(b,{display:"inline-block"},Z,[b,"marginRight"])});g.each({margin:"",padding:"",border:"Width"},function(b,a){g.cssHooks[b+a]={expand:function(e){var c=0,g={};for(e="string"===typeof e?e.split(" "):[e];4>c;c++)g[b+ja[c]+a]=e[c]||e[c-2]||e[0];return g}};ab.test(b)||(g.cssHooks[b+a].set=ha)});g.fn.extend({css:function(b,a){return Y(this,function(b,a,e){var c,d={},f=0;if(g.isArray(a)){e=Fa(b);for(c=a.length;f<c;f++)d[a[f]]= g.css(b,a[f],!1,e);return d}return void 0!==e?g.style(b,a,e):g.css(b,a)},b,a,1<arguments.length)},show:function(){return za(this,!0)},hide:function(){return za(this)},toggle:function(b){return"boolean"===typeof b?b?this.show():this.hide():this.each(function(){ta(this)?g(this).show():g(this).hide()})}});g.Tween=A;A.prototype={constructor:A,init:function(b,a,c,d,f,k){this.elem=b;this.prop=c;this.easing=f||g.easing._default;this.options=a;this.start=this.now=this.cur();this.end=d;this.unit=k||(g.cssNumber[c]? "":"px")},cur:function(){var b=A.propHooks[this.prop];return b&&b.get?b.get(this):A.propHooks._default.get(this)},run:function(b){var a,c=A.propHooks[this.prop];this.pos=this.options.duration?a=g.easing[this.easing](b,this.options.duration*b,0,1,this.options.duration):a=b;this.now=(this.end-this.start)*a+this.start;this.options.step&&this.options.step.call(this.elem,this.now,this);c&&c.set?c.set(this):A.propHooks._default.set(this);return this}};A.prototype.init.prototype=A.prototype;A.propHooks= {_default:{get:function(b){return 1!==b.elem.nodeType||null!=b.elem[b.prop]&&null==b.elem.style[b.prop]?b.elem[b.prop]:(b=g.css(b.elem,b.prop,""))&&"auto"!==b?b:0},set:function(b){if(g.fx.step[b.prop])g.fx.step[b.prop](b);else 1!==b.elem.nodeType||null==b.elem.style[g.cssProps[b.prop]]&&!g.cssHooks[b.prop]?b.elem[b.prop]=b.now:g.style(b.elem,b.prop,b.now+b.unit)}}};A.propHooks.scrollTop=A.propHooks.scrollLeft={set:function(b){b.elem.nodeType&&b.elem.parentNode&&(b.elem[b.prop]=b.now)}};g.easing={linear:function(b){return b}, swing:function(b){return.5-Math.cos(b*Math.PI)/2},_default:"swing"};g.fx=A.prototype.init;g.fx.step={};var pa,La,Rb=/^(?:toggle|show|hide)$/,Sb=/queueHooks$/;g.Animation=g.extend(U,{tweeners:{"*":[function(b,a){var e=this.createTween(b,a);r(e.elem,b,sa.exec(a),e);return e}]},tweener:function(b,a){g.isFunction(b)?(a=b,b=["*"]):b=b.match(T);for(var e,c=0,d=b.length;c<d;c++)e=b[c],U.tweeners[e]=U.tweeners[e]||[],U.tweeners[e].unshift(a)},prefilters:[function(b,a,c){var e,d,f,k,n,h,p=this,l={},r=b.style, m=b.nodeType&&ta(b),u=B.get(b,"fxshow");c.queue||(k=g._queueHooks(b,"fx"),null==k.unqueued&&(k.unqueued=0,n=k.empty.fire,k.empty.fire=function(){k.unqueued||n()}),k.unqueued++,p.always(function(){p.always(function(){k.unqueued--;g.queue(b,"fx").length||k.empty.fire()})}));1===b.nodeType&&("height"in a||"width"in a)&&(c.overflow=[r.overflow,r.overflowX,r.overflowY],h=g.css(b,"display"),d="none"===h?B.get(b,"olddisplay")||ga(b.nodeName):h,"inline"===d&&"none"===g.css(b,"float")&&(r.display="inline-block")); c.overflow&&(r.overflow="hidden",p.always(function(){r.overflow=c.overflow[0];r.overflowX=c.overflow[1];r.overflowY=c.overflow[2]}));for(e in a)if(d=a[e],Rb.exec(d)){delete a[e];f=f||"toggle"===d;if(d===(m?"hide":"show"))if("show"===d&&u&&void 0!==u[e])m=!0;else continue;l[e]=u&&u[e]||g.style(b,e)}else h=void 0;if(g.isEmptyObject(l))"inline"===("none"===h?ga(b.nodeName):h)&&(r.display=h);else for(e in u?"hidden"in u&&(m=u.hidden):u=B.access(b,"fxshow",{}),f&&(u.hidden=!m),m?g(b).show():p.done(function(){g(b).hide()}), p.done(function(){var a;B.remove(b,"fxshow");for(a in l)g.style(b,a,l[a])}),l)a=Ga(m?u[e]:0,e,p),e in u||(u[e]=a.start,m&&(a.end=a.start,a.start="width"===e||"height"===e?1:0))}],prefilter:function(b,a){a?U.prefilters.unshift(b):U.prefilters.push(b)}});g.speed=function(b,a,c){var e=b&&"object"===typeof b?g.extend({},b):{complete:c||!c&&a||g.isFunction(b)&&b,duration:b,easing:c&&a||a&&!g.isFunction(a)&&a};e.duration=g.fx.off?0:"number"===typeof e.duration?e.duration:e.duration in g.fx.speeds?g.fx.speeds[e.duration]: g.fx.speeds._default;if(null==e.queue||!0===e.queue)e.queue="fx";e.old=e.complete;e.complete=function(){g.isFunction(e.old)&&e.old.call(this);e.queue&&g.dequeue(this,e.queue)};return e};g.fn.extend({fadeTo:function(b,a,c,g){return this.filter(ta).css("opacity",0).show().end().animate({opacity:a},b,c,g)},animate:function(b,a,c,d){var e=g.isEmptyObject(b),f=g.speed(a,c,d);a=function(){var a=U(this,g.extend({},b),f);(e||B.get(this,"finish"))&&a.stop(!0)};a.finish=a;return e||!1===f.queue?this.each(a): this.queue(f.queue,a)},stop:function(b,a,c){var e=function(b){var a=b.stop;delete b.stop;a(c)};"string"!==typeof b&&(c=a,a=b,b=void 0);a&&!1!==b&&this.queue(b||"fx",[]);return this.each(function(){var a=!0,d=null!=b&&b+"queueHooks",f=g.timers,k=B.get(this);if(d)k[d]&&k[d].stop&&e(k[d]);else for(d in k)k[d]&&k[d].stop&&Sb.test(d)&&e(k[d]);for(d=f.length;d--;)f[d].elem!==this||null!=b&&f[d].queue!==b||(f[d].anim.stop(c),a=!1,f.splice(d,1));!a&&c||g.dequeue(this,b)})},finish:function(b){!1!==b&&(b=b|| "fx");return this.each(function(){var a,c=B.get(this),d=c[b+"queue"];a=c[b+"queueHooks"];var f=g.timers,k=d?d.length:0;c.finish=!0;g.queue(this,b,[]);a&&a.stop&&a.stop.call(this,!0);for(a=f.length;a--;)f[a].elem===this&&f[a].queue===b&&(f[a].anim.stop(!0),f.splice(a,1));for(a=0;a<k;a++)d[a]&&d[a].finish&&d[a].finish.call(this);delete c.finish})}});g.each(["toggle","show","hide"],function(b,a){var e=g.fn[a];g.fn[a]=function(b,c,g){return null==b||"boolean"===typeof b?e.apply(this,arguments):this.animate(ua(a, !0),b,c,g)}});g.each({slideDown:ua("show"),slideUp:ua("hide"),slideToggle:ua("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(b,a){g.fn[b]=function(b,e,c){return this.animate(a,b,e,c)}});g.timers=[];g.fx.tick=function(){var b,a=0,c=g.timers;for(pa=g.now();a<c.length;a++)b=c[a],b()||c[a]!==b||c.splice(a--,1);c.length||g.fx.stop();pa=void 0};g.fx.timer=function(b){g.timers.push(b);b()?g.fx.start():g.timers.pop()};g.fx.interval=13;g.fx.start=function(){La|| (La=a.setInterval(g.fx.tick,g.fx.interval))};g.fx.stop=function(){a.clearInterval(La);La=null};g.fx.speeds={slow:600,fast:200,_default:400};g.fn.delay=function(b,c){b=g.fx?g.fx.speeds[b]||b:b;return this.queue(c||"fx",function(c,e){var g=a.setTimeout(c,b);e.stop=function(){a.clearTimeout(g)}})};(function(){var b=y.createElement("input"),a=y.createElement("select"),c=a.appendChild(y.createElement("option"));b.type="checkbox";I.checkOn=""!==b.value;I.optSelected=c.selected;a.disabled=!0;I.optDisabled= !c.disabled;b=y.createElement("input");b.value="t";b.type="radio";I.radioValue="t"===b.value})();var lb,ra=g.expr.attrHandle;g.fn.extend({attr:function(b,a){return Y(this,g.attr,b,a,1<arguments.length)},removeAttr:function(b){return this.each(function(){g.removeAttr(this,b)})}});g.extend({attr:function(b,a,c){var e,d,f=b.nodeType;if(3!==f&&8!==f&&2!==f){if("undefined"===typeof b.getAttribute)return g.prop(b,a,c);1===f&&g.isXMLDoc(b)||(a=a.toLowerCase(),d=g.attrHooks[a]||(g.expr.match.bool.test(a)? lb:void 0));if(void 0!==c){if(null===c){g.removeAttr(b,a);return}if(d&&"set"in d&&void 0!==(e=d.set(b,c,a)))return e;b.setAttribute(a,c+"");return c}if(d&&"get"in d&&null!==(e=d.get(b,a)))return e;e=g.find.attr(b,a);return null==e?void 0:e}},attrHooks:{type:{set:function(b,a){if(!I.radioValue&&"radio"===a&&g.nodeName(b,"input")){var c=b.value;b.setAttribute("type",a);c&&(b.value=c);return a}}}},removeAttr:function(b,a){var c,e,d=0,f=a&&a.match(T);if(f&&1===b.nodeType)for(;c=f[d++];)e=g.propFix[c]|| c,g.expr.match.bool.test(c)&&(b[e]=!1),b.removeAttribute(c)}});lb={set:function(b,a,c){!1===a?g.removeAttr(b,c):b.setAttribute(c,c);return c}};g.each(g.expr.match.bool.source.match(/\w+/g),function(b,a){var c=ra[a]||g.find.attr;ra[a]=function(b,a,e){var g,d;e||(d=ra[a],ra[a]=g,g=null!=c(b,a,e)?a.toLowerCase():null,ra[a]=d);return g}});var Tb=/^(?:input|select|textarea|button)$/i,Ub=/^(?:a|area)$/i;g.fn.extend({prop:function(b,a){return Y(this,g.prop,b,a,1<arguments.length)},removeProp:function(b){return this.each(function(){delete this[g.propFix[b]|| b]})}});g.extend({prop:function(b,a,c){var e,d,f=b.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&g.isXMLDoc(b)||(a=g.propFix[a]||a,d=g.propHooks[a]),void 0!==c?d&&"set"in d&&void 0!==(e=d.set(b,c,a))?e:b[a]=c:d&&"get"in d&&null!==(e=d.get(b,a))?e:b[a]},propHooks:{tabIndex:{get:function(b){var a=g.find.attr(b,"tabindex");return a?parseInt(a,10):Tb.test(b.nodeName)||Ub.test(b.nodeName)&&b.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});I.optSelected||(g.propHooks.selected={get:function(b){(b= b.parentNode)&&b.parentNode&&b.parentNode.selectedIndex;return null},set:function(b){if(b=b.parentNode)b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex}});g.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),function(){g.propFix[this.toLowerCase()]=this});var Ra=/[\t\r\n\f]/g;g.fn.extend({addClass:function(b){var a,c,d,f,k,h,p=0;if(g.isFunction(b))return this.each(function(a){g(this).addClass(b.call(this,a,X(this)))});if("string"=== typeof b&&b)for(a=b.match(T)||[];c=this[p++];)if(f=X(c),d=1===c.nodeType&&(" "+f+" ").replace(Ra," ")){for(h=0;k=a[h++];)0>d.indexOf(" "+k+" ")&&(d+=k+" ");d=g.trim(d);f!==d&&c.setAttribute("class",d)}return this},removeClass:function(b){var a,c,d,f,k,h,p=0;if(g.isFunction(b))return this.each(function(a){g(this).removeClass(b.call(this,a,X(this)))});if(!arguments.length)return this.attr("class","");if("string"===typeof b&&b)for(a=b.match(T)||[];c=this[p++];)if(f=X(c),d=1===c.nodeType&&(" "+f+" ").replace(Ra, " ")){for(h=0;k=a[h++];)for(;-1<d.indexOf(" "+k+" ");)d=d.replace(" "+k+" "," ");d=g.trim(d);f!==d&&c.setAttribute("class",d)}return this},toggleClass:function(b,a){var c=typeof b;return"boolean"===typeof a&&"string"===c?a?this.addClass(b):this.removeClass(b):g.isFunction(b)?this.each(function(c){g(this).toggleClass(b.call(this,c,X(this),a),a)}):this.each(function(){var a,e,d,f;if("string"===c)for(e=0,d=g(this),f=b.match(T)||[];a=f[e++];)d.hasClass(a)?d.removeClass(a):d.addClass(a);else if(void 0=== b||"boolean"===c)(a=X(this))&&B.set(this,"__className__",a),this.setAttribute&&this.setAttribute("class",a||!1===b?"":B.get(this,"__className__")||"")})},hasClass:function(b){var a,c=0;for(b=" "+b+" ";a=this[c++];)if(1===a.nodeType&&-1<(" "+X(a)+" ").replace(Ra," ").indexOf(b))return!0;return!1}});var Vb=/\r/g,Wb=/[\x20\t\r\n\f]+/g;g.fn.extend({val:function(b){var a,c,d,f=this[0];if(arguments.length)return d=g.isFunction(b),this.each(function(c){1===this.nodeType&&(c=d?b.call(this,c,g(this).val()): b,null==c?c="":"number"===typeof c?c+="":g.isArray(c)&&(c=g.map(c,function(b){return null==b?"":b+""})),a=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()],a&&"set"in a&&void 0!==a.set(this,c,"value")||(this.value=c))});if(f){if((a=g.valHooks[f.type]||g.valHooks[f.nodeName.toLowerCase()])&&"get"in a&&void 0!==(c=a.get(f,"value")))return c;c=f.value;return"string"===typeof c?c.replace(Vb,""):null==c?"":c}}});g.extend({valHooks:{option:{get:function(b){var a=g.find.attr(b,"value");return null!= a?a:g.trim(g.text(b)).replace(Wb," ")}},select:{get:function(b){for(var a,c=b.options,d=b.selectedIndex,f=(b="select-one"===b.type||0>d)?null:[],k=b?d+1:c.length,h=0>d?k:b?d:0;h<k;h++)if(a=c[h],!(!a.selected&&h!==d||(I.optDisabled?a.disabled:null!==a.getAttribute("disabled"))||a.parentNode.disabled&&g.nodeName(a.parentNode,"optgroup"))){a=g(a).val();if(b)return a;f.push(a)}return f},set:function(b,a){for(var c,e,d=b.options,f=g.makeArray(a),k=d.length;k--;)if(e=d[k],e.selected=-1<g.inArray(g.valHooks.option.get(e), f))c=!0;c||(b.selectedIndex=-1);return f}}}});g.each(["radio","checkbox"],function(){g.valHooks[this]={set:function(b,a){if(g.isArray(a))return b.checked=-1<g.inArray(g(b).val(),a)}};I.checkOn||(g.valHooks[this].get=function(b){return null===b.getAttribute("value")?"on":b.value})});var mb=/^(?:focusinfocus|focusoutblur)$/;g.extend(g.event,{trigger:function(b,c,d,f){var e,k,h,n,p,l,r=[d||y],q=va.call(b,"type")?b.type:b;l=va.call(b,"namespace")?b.namespace.split("."):[];k=e=d=d||y;if(3!==d.nodeType&& 8!==d.nodeType&&!mb.test(q+g.event.triggered)&&(-1<q.indexOf(".")&&(l=q.split("."),q=l.shift(),l.sort()),n=0>q.indexOf(":")&&"on"+q,b=b[g.expando]?b:new g.Event(q,"object"===typeof b&&b),b.isTrigger=f?2:3,b.namespace=l.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+l.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:g.makeArray(c,[b]),l=g.event.special[q]||{},f||!l.trigger||!1!==l.trigger.apply(d,c))){if(!f&&!l.noBubble&&!g.isWindow(d)){h=l.delegateType|| q;mb.test(h+q)||(k=k.parentNode);for(;k;k=k.parentNode)r.push(k),e=k;e===(d.ownerDocument||y)&&r.push(e.defaultView||e.parentWindow||a)}for(e=0;(k=r[e++])&&!b.isPropagationStopped();)b.type=1<e?h:l.bindType||q,(p=(B.get(k,"events")||{})[b.type]&&B.get(k,"handle"))&&p.apply(k,c),(p=n&&k[n])&&p.apply&&na(k)&&(b.result=p.apply(k,c),!1===b.result&&b.preventDefault());b.type=q;f||b.isDefaultPrevented()||l._default&&!1!==l._default.apply(r.pop(),c)||!na(d)||!n||!g.isFunction(d[q])||g.isWindow(d)||((e=d[n])&& (d[n]=null),g.event.triggered=q,d[q](),g.event.triggered=void 0,e&&(d[n]=e));return b.result}},simulate:function(b,a,c){b=g.extend(new g.Event,c,{type:b,isSimulated:!0});g.event.trigger(b,null,a)}});g.fn.extend({trigger:function(b,a){return this.each(function(){g.event.trigger(b,a,this)})},triggerHandler:function(b,a){var c=this[0];if(c)return g.event.trigger(b,a,c,!0)}});g.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(b,a){g.fn[a]=function(b,c){return 0<arguments.length?this.on(a,null,b,c):this.trigger(a)}});g.fn.extend({hover:function(b,a){return this.mouseenter(b).mouseleave(a||b)}});I.focusin="onfocusin"in a;I.focusin||g.each({focus:"focusin",blur:"focusout"},function(b,a){var c=function(b){g.event.simulate(a,b.target,g.event.fix(b))};g.event.special[a]={setup:function(){var e=this.ownerDocument||this,d=B.access(e,a);d||e.addEventListener(b,c,!0);B.access(e,a,(d||0)+1)},teardown:function(){var e=this.ownerDocument|| this,d=B.access(e,a)-1;d?B.access(e,a,d):(e.removeEventListener(b,c,!0),B.remove(e,a))}}});var Ba=a.location,Sa=g.now(),Ta=/\?/;g.parseJSON=function(b){return JSON.parse(b+"")};g.parseXML=function(b){var c;if(!b||"string"!==typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(n){c=void 0}c&&!c.getElementsByTagName("parsererror").length||g.error("Invalid XML: "+b);return c};var Xb=/#.*$/,nb=/([?&])_=[^&]*/,Yb=/^(.*?):[ \t]*([^\r\n]*)$/mg,Zb=/^(?:GET|HEAD)$/,$b=/^\/\//,ob= {},Na={},pb="*/".concat("*"),Ua=y.createElement("a");Ua.href=Ba.href;g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ba.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ba.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":pb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/}, responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":g.parseJSON,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(b,a){return a?Aa(Aa(b,g.ajaxSettings),a):Aa(g.ajaxSettings,b)},ajaxPrefilter:Ha(ob),ajaxTransport:Ha(Na),ajax:function(b,c){function e(b,c,e,h){var n,l,q,m;m=c;if(2!==F){F=2;p&&a.clearTimeout(p);d=void 0;k=h||"";v.readyState=0<b?4:0;h=200<=b&&300>b||304===b;if(e){q=u;for(var x=v,D,S, G,z,Q=q.contents,L=q.dataTypes;"*"===L[0];)L.shift(),void 0===D&&(D=q.mimeType||x.getResponseHeader("Content-Type"));if(D)for(S in Q)if(Q[S]&&Q[S].test(D)){L.unshift(S);break}if(L[0]in e)G=L[0];else{for(S in e){if(!L[0]||q.converters[S+" "+L[0]]){G=S;break}z||(z=S)}G=G||z}G?(G!==L[0]&&L.unshift(G),q=e[G]):q=void 0}a:{e=u;D=q;S=v;G=h;var J,y,E,x={},Q=e.dataTypes.slice();if(Q[1])for(y in e.converters)x[y.toLowerCase()]=e.converters[y];for(z=Q.shift();z;)if(e.responseFields[z]&&(S[e.responseFields[z]]= D),!E&&G&&e.dataFilter&&(D=e.dataFilter(D,e.dataType)),E=z,z=Q.shift())if("*"===z)z=E;else if("*"!==E&&E!==z){y=x[E+" "+z]||x["* "+z];if(!y)for(J in x)if(q=J.split(" "),q[1]===z&&(y=x[E+" "+q[0]]||x["* "+q[0]])){!0===y?y=x[J]:!0!==x[J]&&(z=q[0],Q.unshift(q[1]));break}if(!0!==y)if(y&&e["throws"])D=y(D);else try{D=y(D)}catch(Hb){q={state:"parsererror",error:y?Hb:"No conversion from "+E+" to "+z};break a}}q={state:"success",data:D}}if(h)u.ifModified&&((m=v.getResponseHeader("Last-Modified"))&&(g.lastModified[f]= m),(m=v.getResponseHeader("etag"))&&(g.etag[f]=m)),204===b||"HEAD"===u.type?m="nocontent":304===b?m="notmodified":(m=q.state,n=q.data,l=q.error,h=!l);else if(l=m,b||!m)m="error",0>b&&(b=0);v.status=b;v.statusText=(c||m)+"";h?O.resolveWith(C,[n,m,v]):O.rejectWith(C,[v,m,l]);v.statusCode(A);A=void 0;r&&w.trigger(h?"ajaxSuccess":"ajaxError",[v,u,h?n:l]);R.fireWith(C,[v,m]);r&&(w.trigger("ajaxComplete",[v,u]),--g.active||g.event.trigger("ajaxStop"))}}"object"===typeof b&&(c=b,b=void 0);c=c||{};var d, f,k,h,p,l,r,m,u=g.ajaxSetup({},c),C=u.context||u,w=u.context&&(C.nodeType||C.jquery)?g(C):g.event,O=g.Deferred(),R=g.Callbacks("once memory"),A=u.statusCode||{},D={},S={},F=0,z="canceled",v={readyState:0,getResponseHeader:function(b){var a;if(2===F){if(!h)for(h={};a=Yb.exec(k);)h[a[1].toLowerCase()]=a[2];a=h[b.toLowerCase()]}return null==a?null:a},getAllResponseHeaders:function(){return 2===F?k:null},setRequestHeader:function(b,a){var c=b.toLowerCase();F||(b=S[c]=S[c]||b,D[b]=a);return this},overrideMimeType:function(b){F|| (u.mimeType=b);return this},statusCode:function(b){var a;if(b)if(2>F)for(a in b)A[a]=[A[a],b[a]];else v.always(b[v.status]);return this},abort:function(b){b=b||z;d&&d.abort(b);e(0,b);return this}};O.promise(v).complete=R.add;v.success=v.done;v.error=v.fail;u.url=((b||u.url||Ba.href)+"").replace(Xb,"").replace($b,Ba.protocol+"//");u.type=c.method||c.type||u.method||u.type;u.dataTypes=g.trim(u.dataType||"*").toLowerCase().match(T)||[""];if(null==u.crossDomain){l=y.createElement("a");try{l.href=u.url, l.href=l.href,u.crossDomain=Ua.protocol+"//"+Ua.host!==l.protocol+"//"+l.host}catch(Pa){u.crossDomain=!0}}u.data&&u.processData&&"string"!==typeof u.data&&(u.data=g.param(u.data,u.traditional));Ia(ob,u,c,v);if(2===F)return v;(r=g.event&&u.global)&&0===g.active++&&g.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!Zb.test(u.type);f=u.url;u.hasContent||(u.data&&(f=u.url+=(Ta.test(f)?"&":"?")+u.data,delete u.data),!1===u.cache&&(u.url=nb.test(f)?f.replace(nb,"$1_="+Sa++):f+(Ta.test(f)? "&":"?")+"_="+Sa++));u.ifModified&&(g.lastModified[f]&&v.setRequestHeader("If-Modified-Since",g.lastModified[f]),g.etag[f]&&v.setRequestHeader("If-None-Match",g.etag[f]));(u.data&&u.hasContent&&!1!==u.contentType||c.contentType)&&v.setRequestHeader("Content-Type",u.contentType);v.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+pb+"; q=0.01":""):u.accepts["*"]);for(m in u.headers)v.setRequestHeader(m,u.headers[m]);if(u.beforeSend&& (!1===u.beforeSend.call(C,v,u)||2===F))return v.abort();z="abort";for(m in{success:1,error:1,complete:1})v[m](u[m]);if(d=Ia(Na,u,c,v)){v.readyState=1;r&&w.trigger("ajaxSend",[v,u]);if(2===F)return v;u.async&&0<u.timeout&&(p=a.setTimeout(function(){v.abort("timeout")},u.timeout));try{F=1,d.send(D,e)}catch(Pa){if(2>F)e(-1,Pa);else throw Pa;}}else e(-1,"No Transport");return v},getJSON:function(b,a,c){return g.get(b,a,c,"json")},getScript:function(b,a){return g.get(b,void 0,a,"script")}});g.each(["get", "post"],function(b,a){g[a]=function(b,c,e,d){g.isFunction(c)&&(d=d||e,e=c,c=void 0);return g.ajax(g.extend({url:b,type:a,dataType:d,data:c,success:e},g.isPlainObject(b)&&b))}});g._evalUrl=function(b){return g.ajax({url:b,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})};g.fn.extend({wrapAll:function(b){var a;if(g.isFunction(b))return this.each(function(a){g(this).wrapAll(b.call(this,a))});this[0]&&(a=g(b,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&a.insertBefore(this[0]), a.map(function(){for(var b=this;b.firstElementChild;)b=b.firstElementChild;return b}).append(this));return this},wrapInner:function(b){return g.isFunction(b)?this.each(function(a){g(this).wrapInner(b.call(this,a))}):this.each(function(){var a=g(this),c=a.contents();c.length?c.wrapAll(b):a.append(b)})},wrap:function(b){var a=g.isFunction(b);return this.each(function(c){g(this).wrapAll(a?b.call(this,c):b)})},unwrap:function(){return this.parent().each(function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)}).end()}}); g.expr.filters.hidden=function(b){return!g.expr.filters.visible(b)};g.expr.filters.visible=function(b){return 0<b.offsetWidth||0<b.offsetHeight||0<b.getClientRects().length};var ac=/%20/g,Bb=/\[\]$/,qb=/\r?\n/g,bc=/^(?:submit|button|image|reset|file)$/i,cc=/^(?:input|select|textarea|keygen)/i;g.param=function(b,a){var c,e=[],d=function(b,a){a=g.isFunction(a)?a():null==a?"":a;e[e.length]=encodeURIComponent(b)+"="+encodeURIComponent(a)};void 0===a&&(a=g.ajaxSettings&&g.ajaxSettings.traditional);if(g.isArray(b)|| b.jquery&&!g.isPlainObject(b))g.each(b,function(){d(this.name,this.value)});else for(c in b)xa(c,b[c],a,d);return e.join("&").replace(ac,"+")};g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var b=g.prop(this,"elements");return b?g.makeArray(b):this}).filter(function(){var b=this.type;return this.name&&!g(this).is(":disabled")&&cc.test(this.nodeName)&&!bc.test(b)&&(this.checked||!ib.test(b))}).map(function(b,a){var c=g(this).val(); return null==c?null:g.isArray(c)?g.map(c,function(b){return{name:a.name,value:b.replace(qb,"\r\n")}}):{name:a.name,value:c.replace(qb,"\r\n")}}).get()}});g.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var dc={0:200,1223:204},Ca=g.ajaxSettings.xhr();I.cors=!!Ca&&"withCredentials"in Ca;I.ajax=Ca=!!Ca;g.ajaxTransport(function(b){var c,d;if(I.cors||Ca&&!b.crossDomain)return{send:function(e,g){var f,k=b.xhr();k.open(b.type,b.url,b.async,b.username,b.password);if(b.xhrFields)for(f in b.xhrFields)k[f]= b.xhrFields[f];b.mimeType&&k.overrideMimeType&&k.overrideMimeType(b.mimeType);b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(f in e)k.setRequestHeader(f,e[f]);c=function(b){return function(){c&&(c=d=k.onload=k.onerror=k.onabort=k.onreadystatechange=null,"abort"===b?k.abort():"error"===b?"number"!==typeof k.status?g(0,"error"):g(k.status,k.statusText):g(dc[k.status]||k.status,k.statusText,"text"!==(k.responseType||"text")||"string"!==typeof k.responseText?{binary:k.response}: {text:k.responseText},k.getAllResponseHeaders()))}};k.onload=c();d=k.onerror=c("error");void 0!==k.onabort?k.onabort=d:k.onreadystatechange=function(){4===k.readyState&&a.setTimeout(function(){c&&d()})};c=c("abort");try{k.send(b.hasContent&&b.data||null)}catch(vb){if(c)throw vb;}},abort:function(){c&&c()}}});g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(b){g.globalEval(b); return b}}});g.ajaxPrefilter("script",function(b){void 0===b.cache&&(b.cache=!1);b.crossDomain&&(b.type="GET")});g.ajaxTransport("script",function(b){if(b.crossDomain){var a,c;return{send:function(e,d){a=g("<script>").prop({charset:b.scriptCharset,src:b.url}).on("load error",c=function(b){a.remove();c=null;b&&d("error"===b.type?404:200,b.type)});y.head.appendChild(a[0])},abort:function(){c&&c()}}}});var rb=[],Va=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var b=rb.pop()|| g.expando+"_"+Sa++;this[b]=!0;return b}});g.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,k,h=!1!==b.jsonp&&(Va.test(b.url)?"url":"string"===typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Va.test(b.data)&&"data");if(h||"jsonp"===b.dataTypes[0])return e=b.jsonpCallback=g.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Va,"$1"+e):!1!==b.jsonp&&(b.url+=(Ta.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){k|| g.error(e+" was not called");return k[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){k=arguments},d.always(function(){void 0===f?g(a).removeProp(e):a[e]=f;b[e]&&(b.jsonpCallback=c.jsonpCallback,rb.push(e));k&&g.isFunction(f)&&f(k[0]);k=f=void 0}),"script"});g.parseHTML=function(b,a,c){if(!b||"string"!==typeof b)return null;"boolean"===typeof a&&(c=a,a=!1);a=a||y;var e=fb.exec(b);c=!c&&[];if(e)return[a.createElement(e[1])];e=N([b],a,c);c&&c.length&&g(c).remove();return g.merge([],e.childNodes)}; var sb=g.fn.load;g.fn.load=function(b,a,c){if("string"!==typeof b&&sb)return sb.apply(this,arguments);var e,d,f,k=this,h=b.indexOf(" ");-1<h&&(e=g.trim(b.slice(h)),b=b.slice(0,h));g.isFunction(a)?(c=a,a=void 0):a&&"object"===typeof a&&(d="POST");0<k.length&&g.ajax({url:b,type:d||"GET",dataType:"html",data:a}).done(function(b){f=arguments;k.html(e?g("<div>").append(g.parseHTML(b)).find(e):b)}).always(c&&function(b,a){k.each(function(){c.apply(this,f||[b.responseText,a,b])})});return this};g.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function(b,a){g.fn[a]=function(b){return this.on(a,b)}});g.expr.filters.animated=function(b){return g.grep(g.timers,function(a){return b===a.elem}).length};g.offset={setOffset:function(b,a,c){var e,d,f,k=g.css(b,"position"),h=g(b),p={};"static"===k&&(b.style.position="relative");f=h.offset();d=g.css(b,"top");e=g.css(b,"left");("absolute"===k||"fixed"===k)&&-1<(d+e).indexOf("auto")?(e=h.position(),d=e.top,e=e.left):(d=parseFloat(d)||0,e=parseFloat(e)||0);g.isFunction(a)&&(a=a.call(b,c,g.extend({}, f)));null!=a.top&&(p.top=a.top-f.top+d);null!=a.left&&(p.left=a.left-f.left+e);"using"in a?a.using.call(b,p):h.css(p)}};g.fn.extend({offset:function(b){if(arguments.length)return void 0===b?this:this.each(function(a){g.offset.setOffset(this,b,a)});var a,c;c=this[0];var d={top:0,left:0},f=c&&c.ownerDocument;if(f){a=f.documentElement;if(!g.contains(a,c))return d;d=c.getBoundingClientRect();c=qa(f);return{top:d.top+c.pageYOffset-a.clientTop,left:d.left+c.pageXOffset-a.clientLeft}}},position:function(){if(this[0]){var b, a,c=this[0],d={top:0,left:0};"fixed"===g.css(c,"position")?a=c.getBoundingClientRect():(b=this.offsetParent(),a=this.offset(),g.nodeName(b[0],"html")||(d=b.offset()),d.top+=g.css(b[0],"borderTopWidth",!0),d.left+=g.css(b[0],"borderLeftWidth",!0));return{top:a.top-d.top-g.css(c,"marginTop",!0),left:a.left-d.left-g.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var b=this.offsetParent;b&&"static"===g.css(b,"position");)b=b.offsetParent;return b||wa})}});g.each({scrollLeft:"pageXOffset", scrollTop:"pageYOffset"},function(b,a){var c="pageYOffset"===a;g.fn[b]=function(e){return Y(this,function(b,e,d){var g=qa(b);if(void 0===d)return g?g[a]:b[e];g?g.scrollTo(c?g.pageXOffset:d,c?d:g.pageYOffset):b[e]=d},b,e,arguments.length)}});g.each(["top","left"],function(b,a){g.cssHooks[a]=W(I.pixelPosition,function(b,c){if(c)return c=Z(b,a),Ma.test(c)?g(b).position()[a]+"px":c})});g.each({Height:"height",Width:"width"},function(b,a){g.each({padding:"inner"+b,content:a,"":"outer"+b},function(c,e){g.fn[e]= function(e,d){var f=arguments.length&&(c||"boolean"!==typeof e),k=c||(!0===e||!0===d?"margin":"border");return Y(this,function(a,c,e){return g.isWindow(a)?a.document.documentElement["client"+b]:9===a.nodeType?(c=a.documentElement,Math.max(a.body["scroll"+b],c["scroll"+b],a.body["offset"+b],c["offset"+b],c["client"+b])):void 0===e?g.css(a,c,k):g.style(a,c,e,k)},a,f?e:void 0,f,null)}})});g.fn.extend({bind:function(b,a,c){return this.on(b,null,a,c)},unbind:function(b,a){return this.off(b,null,a)},delegate:function(b, a,c,d){return this.on(a,b,c,d)},undelegate:function(b,a,c){return 1===arguments.length?this.off(b,"**"):this.off(a,b||"**",c)},size:function(){return this.length}});g.fn.andSelf=g.fn.addBack;"function"===typeof define&&define.amd&&define("jquery",[],function(){return g});var ec=a.jQuery,fc=a.$;g.noConflict=function(b){a.$===g&&(a.$=fc);b&&a.jQuery===g&&(a.jQuery=ec);return g};m||(a.jQuery=a.$=g);return g}); window.yii=function(a){function m(){a.ajaxPrefilter(function(a,c,d){!a.crossDomain&&k.getCsrfParam()&&d.setRequestHeader("X-CSRF-Token",k.getCsrfToken())});k.refreshCsrfToken()}function l(){a(document).ajaxComplete(function(a,c){var d=c&&c.getResponseHeader("X-Redirect");d&&window.location.assign(d)})}function h(){var c={};a("script[src]").each(function(){var a=d(this.src);c[a]=!0});a.ajaxPrefilter("script",function(a,k,h){if("jsonp"!=a.dataType){a=d(a.url);k=!0===c[a]&&!f(a);var p=void 0!==c[a]&& !0===c[a].xhrDone;if(k||p)h.abort();else{if(void 0===c[a]||!0===c[a])c[a]={xhrList:[],xhrDone:!1};h.done(function(a,d,f){if(!0!==c[f.yiiUrl].xhrDone){c[f.yiiUrl].xhrDone=!0;a=0;for(d=c[f.yiiUrl].xhrList.length;a<d;a++){var k=c[f.yiiUrl].xhrList[a];k&&k.readyState!==XMLHttpRequest.DONE&&k.abort()}c[f.yiiUrl]=!0}}).fail(function(a,d){if("abort"!==d){delete c[a.yiiUrl].xhrList[a.yiiIndex];for(var f=!0,k=0,h=c[a.yiiUrl].xhrList.length;k<h;k++)c[a.yiiUrl].xhrList[k]&&(f=!1);f&&delete c[a.yiiUrl]}});h.yiiIndex= c[a].xhrList.length;h.yiiUrl=a;c[a].xhrList[h.yiiIndex]=h}}});a(document).ajaxComplete(function(){var c=[];a("link[rel=stylesheet]").each(function(){var k=d(this.href);f(k)||(-1===a.inArray(k,c)?c.push(k):a(this).remove())})})}function c(){var c=function(c){var d=a(this),f=d.data("method"),h=d.data("confirm"),p=d.data("form");if(void 0===f&&void 0===h&&void 0===p)return!0;void 0!==h?a.proxy(k.confirm,this)(h,function(){k.handleAction(d,c)}):k.handleAction(d,c);c.stopImmediatePropagation();return!1}; a(document).on("click.yii",k.clickableSelector,c).on("change.yii",k.changeableSelector,c)}function f(a){for(var c=0;c<k.reloadableScripts.length;c++){var f=d(k.reloadableScripts[c]);if(!0===(new RegExp("^"+f.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&").split("\\*").join(".*")+"$")).test(a))return!0}return!1}function d(a){return"/"===a.charAt(0)?k.getBaseCurrentUrl()+a:a}var k={reloadableScripts:[],clickableSelector:'a, button, input[type="submit"], input[type="button"], input[type="reset"], input[type="image"]', changeableSelector:"select, input, textarea",getCsrfParam:function(){return a("meta[name=csrf-param]").attr("content")},getCsrfToken:function(){return a("meta[name=csrf-token]").attr("content")},setCsrfToken:function(c,d){a("meta[name=csrf-param]").attr("content",c);a("meta[name=csrf-token]").attr("content",d)},refreshCsrfToken:function(){var c=k.getCsrfToken();c&&a('form input[name="'+k.getCsrfParam()+'"]').val(c)},confirm:function(a,c,d){window.confirm(a)?!c||c():!d||d()},handleAction:function(c, d){var f=c.attr("data-form")?a("#"+c.attr("data-form")):c.closest("form"),h=!c.data("method")&&f?f.attr("method"):c.data("method"),l=c.attr("href"),p=l&&"#"!==l,m=c.data("params"),r=m&&a.isPlainObject(m),H=c.data("pjax"),H=void 0!==H&&0!==H&&a.support.pjax,v,R={};H&&(v=c.data("pjax-container")||c.closest("[data-pjax-container]"),v.length||(v=a("body")),R={container:v,push:!!c.data("pjax-push-state"),replace:!!c.data("pjax-replace-state"),scrollTo:c.data("pjax-scrollto"),pushRedirect:c.data("pjax-push-redirect"), replaceRedirect:c.data("pjax-replace-redirect"),skipOuterContainers:c.data("pjax-skip-outer-containers"),timeout:c.data("pjax-timeout"),originalEvent:d,originalTarget:c});if(void 0===h)if(p)H?a.pjax.click(d,R):window.location.assign(l);else{if(c.is(":submit")&&f.length){if(H)f.on("submit",function(c){a.pjax.submit(c,R)});f.trigger("submit")}}else{var C,O,F=!f.length;F?(p||(l=k.getCurrentUrl()),f=a("<form/>",{method:h,action:l}),(l=c.attr("target"))&&f.attr("target",l),/(get|post)/i.test(h)||(f.append(a("<input/>", {name:"_method",value:h,type:"hidden"})),h="post",f.attr("method",h)),/post/i.test(h)&&(h=k.getCsrfParam())&&f.append(a("<input/>",{name:h,value:k.getCsrfToken(),type:"hidden"})),f.hide().appendTo("body")):(C=f.attr("method"),f.attr("method",h),p&&(O=f.attr("action"),f.attr("action",l)));if(h=f.data("yiiActiveForm"))h.submitObject=c;r&&a.each(m,function(c,d){f.append(a("<input/>").attr({name:c,value:d,type:"hidden"}))});if(H)f.on("submit",function(c){a.pjax.submit(c,R)});f.trigger("submit");a.when(f.data("yiiSubmitFinalizePromise")).then(function(){F? f.remove():(void 0!==O&&f.attr("action",O),f.attr("method",C),r&&a.each(m,function(c){a('input[name="'+c+'"]',f).remove()}))})}},getQueryParams:function(c){var d=c.indexOf("?");if(0>d)return{};c=c.substring(d+1).split("#")[0].split("&");for(var d={},f=0,k=c.length;f<k;f++){var h=c[f].split("="),l=decodeURIComponent(h[0].replace(/\+/g,"%20")),h=decodeURIComponent(h[1].replace(/\+/g,"%20"));l.length&&(void 0===d[l]?d[l]=h||"":(a.isArray(d[l])||(d[l]=[d[l]]),d[l].push(h||"")))}return d},initModule:function(c){if(void 0=== c.isActive||c.isActive)a.isFunction(c.init)&&c.init(),a.each(c,function(){a.isPlainObject(this)&&k.initModule(this)})},init:function(){m();l();h();c()},getBaseCurrentUrl:function(){return window.location.protocol+"//"+window.location.host},getCurrentUrl:function(){return window.location.href}};return k}(window.jQuery);window.jQuery(function(){window.yii.initModule(window.yii)});if("undefined"===typeof jQuery)throw Error("Bootstrap's JavaScript requires jQuery"); +function(a){a=a.fn.jquery.split(" ")[0].split(".");if(2>a[0]&&9>a[1]||1==a[0]&&9==a[1]&&1>a[2]||3<a[0])throw Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4");}(jQuery); +function(a){function m(){var a=document.createElement("bootstrap"),h={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},c;for(c in h)if(void 0!==a.style[c])return{end:h[c]};return!1}a.fn.emulateTransitionEnd=function(l){var h=!1,c=this;a(this).one("bsTransitionEnd",function(){h=!0});setTimeout(function(){h||a(c).trigger(a.support.transition.end)},l);return this};a(function(){a.support.transition=m();a.support.transition&& (a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(l){if(a(l.target).is(this))return l.handleObj.handler.apply(this,arguments)}})})}(jQuery); +function(a){var m=function(h){a(h).on("click",'[data-dismiss="alert"]',this.close)};m.VERSION="3.3.7";m.TRANSITION_DURATION=150;m.prototype.close=function(h){function c(){k.detach().trigger("closed.bs.alert").remove()}var f=a(this),d=f.attr("data-target");d||(d=(d=f.attr("href"))&&d.replace(/.*(?=#[^\s]*$)/,""));var k=a("#"===d?[]:d);h&&h.preventDefault();k.length||(k=f.closest(".alert"));k.trigger(h=a.Event("close.bs.alert"));h.isDefaultPrevented()||(k.removeClass("in"),a.support.transition&&k.hasClass("fade")? k.one("bsTransitionEnd",c).emulateTransitionEnd(m.TRANSITION_DURATION):c())};var l=a.fn.alert;a.fn.alert=function(h){return this.each(function(){var c=a(this),f=c.data("bs.alert");f||c.data("bs.alert",f=new m(this));"string"==typeof h&&f[h].call(c)})};a.fn.alert.Constructor=m;a.fn.alert.noConflict=function(){a.fn.alert=l;return this};a(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',m.prototype.close)}(jQuery); +function(a){function m(c){return this.each(function(){var f=a(this),d=f.data("bs.button"),k="object"==typeof c&&c;d||f.data("bs.button",d=new l(this,k));"toggle"==c?d.toggle():c&&d.setState(c)})}var l=function(c,f){this.$element=a(c);this.options=a.extend({},l.DEFAULTS,f);this.isLoading=!1};l.VERSION="3.3.7";l.DEFAULTS={loadingText:"loading..."};l.prototype.setState=function(c){var f=this.$element,d=f.is("input")?"val":"html",k=f.data();c+="Text";null==k.resetText&&f.data("resetText",f[d]());setTimeout(a.proxy(function(){f[d](null== k[c]?this.options[c]:k[c]);"loadingText"==c?(this.isLoading=!0,f.addClass("disabled").attr("disabled","disabled").prop("disabled",!0)):this.isLoading&&(this.isLoading=!1,f.removeClass("disabled").removeAttr("disabled").prop("disabled",!1))},this),0)};l.prototype.toggle=function(){var a=!0,f=this.$element.closest('[data-toggle="buttons"]');if(f.length){var d=this.$element.find("input");"radio"==d.prop("type")?(d.prop("checked")&&(a=!1),f.find(".active").removeClass("active"),this.$element.addClass("active")): "checkbox"==d.prop("type")&&(d.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active"));d.prop("checked",this.$element.hasClass("active"));a&&d.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var h=a.fn.button;a.fn.button=m;a.fn.button.Constructor=l;a.fn.button.noConflict=function(){a.fn.button=h;return this};a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var f= a(c.target).closest(".btn");m.call(f,"toggle");a(c.target).is('input[type="radio"], input[type="checkbox"]')||(c.preventDefault(),f.is("input,button")?f.trigger("focus"):f.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(c){a(c.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(c.type))})}(jQuery); +function(a){function m(c){return this.each(function(){var d=a(this),f=d.data("bs.carousel"),h=a.extend({},l.DEFAULTS,d.data(),"object"==typeof c&&c),m="string"==typeof c?c:h.slide;f||d.data("bs.carousel",f=new l(this,h));if("number"==typeof c)f.to(c);else if(m)f[m]();else h.interval&&f.pause().cycle()})}var l=function(c,d){this.$element=a(c);this.$indicators=this.$element.find(".carousel-indicators");this.options=d;this.$items=this.$active=this.interval=this.sliding=this.paused=null;this.options.keyboard&& this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this));"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};l.VERSION="3.3.7";l.TRANSITION_DURATION=600;l.DEFAULTS={interval:5E3,pause:"hover",wrap:!0,keyboard:!0};l.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next(); break;default:return}a.preventDefault()}};l.prototype.cycle=function(c){c||(this.paused=!1);this.interval&&clearInterval(this.interval);this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval));return this};l.prototype.getItemIndex=function(a){this.$items=a.parent().children(".item");return this.$items.index(a||this.$active)};l.prototype.getItemForDirection=function(a,c){var d=this.getItemIndex(c);return("prev"==a&&0===d||"next"==a&&d==this.$items.length- 1)&&!this.options.wrap?c:this.$items.eq((d+("prev"==a?-1:1))%this.$items.length)};l.prototype.to=function(a){var c=this,f=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(a>this.$items.length-1||0>a))return this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(a)}):f==a?this.pause().cycle():this.slide(a>f?"next":"prev",this.$items.eq(a))};l.prototype.pause=function(c){c||(this.paused=!0);this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end), this.cycle(!0));this.interval=clearInterval(this.interval);return this};l.prototype.next=function(){if(!this.sliding)return this.slide("next")};l.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};l.prototype.slide=function(c,d){var f=this.$element.find(".item.active"),h=d||this.getItemForDirection(c,f),m=this.interval,w="next"==c?"left":"right",z=this;if(h.hasClass("active"))return this.sliding=!1;var N=h[0],J=a.Event("slide.bs.carousel",{relatedTarget:N,direction:w});this.$element.trigger(J); if(!J.isDefaultPrevented()){this.sliding=!0;m&&this.pause();this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),(J=a(this.$indicators.children()[this.getItemIndex(h)]))&&J.addClass("active"));var E=a.Event("slid.bs.carousel",{relatedTarget:N,direction:w});a.support.transition&&this.$element.hasClass("slide")?(h.addClass(c),h[0].offsetWidth,f.addClass(w),h.addClass(w),f.one("bsTransitionEnd",function(){h.removeClass([c,w].join(" ")).addClass("active");f.removeClass(["active", w].join(" "));z.sliding=!1;setTimeout(function(){z.$element.trigger(E)},0)}).emulateTransitionEnd(l.TRANSITION_DURATION)):(f.removeClass("active"),h.addClass("active"),this.sliding=!1,this.$element.trigger(E));m&&this.cycle();return this}};var h=a.fn.carousel;a.fn.carousel=m;a.fn.carousel.Constructor=l;a.fn.carousel.noConflict=function(){a.fn.carousel=h;return this};var c=function(c){var d,f=a(this),h=a(f.attr("data-target")||(d=f.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(h.hasClass("carousel")){d= a.extend({},h.data(),f.data());if(f=f.attr("data-slide-to"))d.interval=!1;m.call(h,d);f&&h.data("bs.carousel").to(f);c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",c).on("click.bs.carousel.data-api","[data-slide-to]",c);a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);m.call(c,c.data())})})}(jQuery); +function(a){function m(c){var d;c=c.attr("data-target")||(d=c.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,"");return a(c)}function l(c){return this.each(function(){var d=a(this),f=d.data("bs.collapse"),l=a.extend({},h.DEFAULTS,d.data(),"object"==typeof c&&c);!f&&l.toggle&&/show|hide/.test(c)&&(l.toggle=!1);f||d.data("bs.collapse",f=new h(this,l));if("string"==typeof c)f[c]()})}var h=function(c,d){this.$element=a(c);this.options=a.extend({},h.DEFAULTS,d);this.$trigger=a('[data-toggle="collapse"][href="#'+ c.id+'"],[data-toggle="collapse"][data-target="#'+c.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()};h.VERSION="3.3.7";h.TRANSITION_DURATION=350;h.DEFAULTS={toggle:!0};h.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"};h.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var c,d=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"); if(d&&d.length&&(c=d.data("bs.collapse"))&&c.transitioning)return;var k=a.Event("show.bs.collapse");this.$element.trigger(k);if(!k.isDefaultPrevented()){d&&d.length&&(l.call(d,"hide"),c||d.data("bs.collapse",null));var p=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[p](0).attr("aria-expanded",!0);this.$trigger.removeClass("collapsed").attr("aria-expanded",!0);this.transitioning=1;c=function(){this.$element.removeClass("collapsing").addClass("collapse in")[p]("");this.transitioning= 0;this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return c.call(this);d=a.camelCase(["scroll",p].join("-"));this.$element.one("bsTransitionEnd",a.proxy(c,this)).emulateTransitionEnd(h.TRANSITION_DURATION)[p](this.$element[0][d])}}};h.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var c=a.Event("hide.bs.collapse");this.$element.trigger(c);if(!c.isDefaultPrevented()){c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight;this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded", !1);this.$trigger.addClass("collapsed").attr("aria-expanded",!1);this.transitioning=1;var d=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!a.support.transition)return d.call(this);this.$element[c](0).one("bsTransitionEnd",a.proxy(d,this)).emulateTransitionEnd(h.TRANSITION_DURATION)}}};h.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};h.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+ this.options.parent+'"]').each(a.proxy(function(c,d){var f=a(d);this.addAriaAndCollapsedClass(m(f),f)},this)).end()};h.prototype.addAriaAndCollapsedClass=function(a,c){var d=a.hasClass("in");a.attr("aria-expanded",d);c.toggleClass("collapsed",!d).attr("aria-expanded",d)};var c=a.fn.collapse;a.fn.collapse=l;a.fn.collapse.Constructor=h;a.fn.collapse.noConflict=function(){a.fn.collapse=c;return this};a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(c){var d=a(this);d.attr("data-target")|| c.preventDefault();c=m(d);d=c.data("bs.collapse")?"toggle":d.data();l.call(c,d)})}(jQuery); +function(a){function m(c){var d=c.attr("data-target");d||(d=(d=c.attr("href"))&&/#[A-Za-z]/.test(d)&&d.replace(/.*(?=#[^\s]*$)/,""));return(d=d&&a(d))&&d.length?d:c.parent()}function l(c){c&&3===c.which||(a(".dropdown-backdrop").remove(),a('[data-toggle="dropdown"]').each(function(){var d=a(this),f=m(d),h={relatedTarget:this};!f.hasClass("open")||c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(f[0],c.target)||(f.trigger(c=a.Event("hide.bs.dropdown",h)),c.isDefaultPrevented()|| (d.attr("aria-expanded","false"),f.removeClass("open").trigger(a.Event("hidden.bs.dropdown",h))))}))}var h=function(c){a(c).on("click.bs.dropdown",this.toggle)};h.VERSION="3.3.7";h.prototype.toggle=function(c){var d=a(this);if(!d.is(".disabled, :disabled")){var f=m(d);c=f.hasClass("open");l();if(!c){if("ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length)a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",l);var h={relatedTarget:this}; f.trigger(c=a.Event("show.bs.dropdown",h));if(c.isDefaultPrevented())return;d.trigger("focus").attr("aria-expanded","true");f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}};h.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);c.preventDefault();c.stopPropagation();if(!d.is(".disabled, :disabled")){var f=m(d),h=f.hasClass("open");if(!h&&27!=c.which||h&&27==c.which)return 27==c.which&&f.find('[data-toggle="dropdown"]').trigger("focus"), d.trigger("click");d=f.find(".dropdown-menu li:not(.disabled):visible a");d.length&&(f=d.index(c.target),38==c.which&&0<f&&f--,40==c.which&&f<d.length-1&&f++,~f||(f=0),d.eq(f).trigger("focus"))}}};var c=a.fn.dropdown;a.fn.dropdown=function(c){return this.each(function(){var d=a(this),f=d.data("bs.dropdown");f||d.data("bs.dropdown",f=new h(this));"string"==typeof c&&f[c].call(d)})};a.fn.dropdown.Constructor=h;a.fn.dropdown.noConflict=function(){a.fn.dropdown=c;return this};a(document).on("click.bs.dropdown.data-api", l).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',h.prototype.toggle).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',h.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",h.prototype.keydown)}(jQuery); +function(a){function m(c,f){return this.each(function(){var d=a(this),k=d.data("bs.modal"),h=a.extend({},l.DEFAULTS,d.data(),"object"==typeof c&&c);k||d.data("bs.modal",k=new l(this,h));if("string"==typeof c)k[c](f);else h.show&&k.show(f)})}var l=function(c,f){this.options=f;this.$body=a(document.body);this.$element=a(c);this.$dialog=this.$element.find(".modal-dialog");this.originalBodyPad=this.isShown=this.$backdrop=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote, a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};l.VERSION="3.3.7";l.TRANSITION_DURATION=300;l.BACKDROP_TRANSITION_DURATION=150;l.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};l.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)};l.prototype.show=function(c){var f=this,d=a.Event("show.bs.modal",{relatedTarget:c});this.$element.trigger(d);this.isShown||d.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"), this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){f.$element.one("mouseup.dismiss.bs.modal",function(c){a(c.target).is(f.$element)&&(f.ignoreBackdropClick=!0)})}),this.backdrop(function(){var d=a.support.transition&&f.$element.hasClass("fade");f.$element.parent().length||f.$element.appendTo(f.$body);f.$element.show().scrollTop(0);f.adjustDialog();d&&f.$element[0].offsetWidth; f.$element.addClass("in");f.enforceFocus();var h=a.Event("shown.bs.modal",{relatedTarget:c});d?f.$dialog.one("bsTransitionEnd",function(){f.$element.trigger("focus").trigger(h)}).emulateTransitionEnd(l.TRANSITION_DURATION):f.$element.trigger("focus").trigger(h)}))};l.prototype.hide=function(c){c&&c.preventDefault();c=a.Event("hide.bs.modal");this.$element.trigger(c);this.isShown&&!c.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"), this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(l.TRANSITION_DURATION):this.hideModal())};l.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){document===a.target||this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))};l.prototype.escape=function(){if(this.isShown&& this.options.keyboard)this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this));else this.isShown||this.$element.off("keydown.dismiss.bs.modal")};l.prototype.resize=function(){if(this.isShown)a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this));else a(window).off("resize.bs.modal")};l.prototype.hideModal=function(){var a=this;this.$element.hide();this.backdrop(function(){a.$body.removeClass("modal-open");a.resetAdjustments();a.resetScrollbar();a.$element.trigger("hidden.bs.modal")})}; l.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};l.prototype.backdrop=function(c){var f=this,d=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var h=a.support.transition&&d;this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+d).appendTo(this.$body);this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:a.target===a.currentTarget&&("static"== this.options.backdrop?this.$element[0].focus():this.hide())},this));h&&this.$backdrop[0].offsetWidth;this.$backdrop.addClass("in");c&&(h?this.$backdrop.one("bsTransitionEnd",c).emulateTransitionEnd(l.BACKDROP_TRANSITION_DURATION):c())}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),d=function(){f.removeBackdrop();c&&c()},a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",d).emulateTransitionEnd(l.BACKDROP_TRANSITION_DURATION):d()):c&&c()}; l.prototype.handleUpdate=function(){this.adjustDialog()};l.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})};l.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};l.prototype.checkScrollbar=function(){var a=window.innerWidth;a||(a=document.documentElement.getBoundingClientRect(), a=a.right-Math.abs(a.left));this.bodyIsOverflowing=document.body.clientWidth<a;this.scrollbarWidth=this.measureScrollbar()};l.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)};l.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};l.prototype.measureScrollbar=function(){var a=document.createElement("div"); a.className="modal-scrollbar-measure";this.$body.append(a);var f=a.offsetWidth-a.clientWidth;this.$body[0].removeChild(a);return f};var h=a.fn.modal;a.fn.modal=m;a.fn.modal.Constructor=l;a.fn.modal.noConflict=function(){a.fn.modal=h;return this};a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var f=a(this),d=f.attr("href"),h=a(f.attr("data-target")||d&&d.replace(/.*(?=#[^\s]+$)/,"")),d=h.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(d)&&d},h.data(),f.data());f.is("a")&& c.preventDefault();h.one("show.bs.modal",function(a){if(!a.isDefaultPrevented())h.one("hidden.bs.modal",function(){f.is(":visible")&&f.trigger("focus")})});m.call(h,d,this)})}(jQuery); +function(a){var m=function(a,c){this.inState=this.$element=this.hoverState=this.timeout=this.enabled=this.options=this.type=null;this.init("tooltip",a,c)};m.VERSION="3.3.7";m.TRANSITION_DURATION=150;m.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};m.prototype.init=function(h,c, f){this.enabled=!0;this.type=h;this.$element=a(c);this.options=this.getOptions(f);this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport);this.inState={click:!1,hover:!1,focus:!1};if(this.$element[0]instanceof document.constructor&&!this.options.selector)throw Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");h=this.options.trigger.split(" "); for(c=h.length;c--;)if(f=h[c],"click"==f)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=f){var d="hover"==f?"mouseleave":"focusout";this.$element.on(("hover"==f?"mouseenter":"focusin")+"."+this.type,this.options.selector,a.proxy(this.enter,this));this.$element.on(d+"."+this.type,this.options.selector,a.proxy(this.leave,this))}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};m.prototype.getDefaults= function(){return m.DEFAULTS};m.prototype.getOptions=function(h){h=a.extend({},this.getDefaults(),this.$element.data(),h);h.delay&&"number"==typeof h.delay&&(h.delay={show:h.delay,hide:h.delay});return h};m.prototype.getDelegateOptions=function(){var h={},c=this.getDefaults();this._options&&a.each(this._options,function(a,d){c[a]!=d&&(h[a]=d)});return h};m.prototype.enter=function(h){var c=h instanceof this.constructor?h:a(h.currentTarget).data("bs."+this.type);c||(c=new this.constructor(h.currentTarget, this.getDelegateOptions()),a(h.currentTarget).data("bs."+this.type,c));h instanceof a.Event&&(c.inState["focusin"==h.type?"focus":"hover"]=!0);if(c.tip().hasClass("in")||"in"==c.hoverState)c.hoverState="in";else{clearTimeout(c.timeout);c.hoverState="in";if(!c.options.delay||!c.options.delay.show)return c.show();c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)}};m.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1};m.prototype.leave= function(h){var c=h instanceof this.constructor?h:a(h.currentTarget).data("bs."+this.type);c||(c=new this.constructor(h.currentTarget,this.getDelegateOptions()),a(h.currentTarget).data("bs."+this.type,c));h instanceof a.Event&&(c.inState["focusout"==h.type?"focus":"hover"]=!1);if(!c.isInStateTrue()){clearTimeout(c.timeout);c.hoverState="out";if(!c.options.delay||!c.options.delay.hide)return c.hide();c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)}};m.prototype.show= function(){var h=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(h);var c=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(!h.isDefaultPrevented()&&c){var f=this,h=this.tip(),c=this.getUID(this.type);this.setContent();h.attr("id",c);this.$element.attr("aria-describedby",c);this.options.animation&&h.addClass("fade");var c="function"==typeof this.options.placement?this.options.placement.call(this,h[0],this.$element[0]):this.options.placement, d=/\s?auto?\s?/i,k=d.test(c);k&&(c=c.replace(d,"")||"top");h.detach().css({top:0,left:0,display:"block"}).addClass(c).data("bs."+this.type,this);this.options.container?h.appendTo(this.options.container):h.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var d=this.getPosition(),l=h[0].offsetWidth,r=h[0].offsetHeight;if(k){var k=c,w=this.getPosition(this.$viewport),c="bottom"==c&&d.bottom+r>w.bottom?"top":"top"==c&&d.top-r<w.top?"bottom":"right"==c&&d.right+l>w.width?"left": "left"==c&&d.left-l<w.left?"right":c;h.removeClass(k).addClass(c)}d=this.getCalculatedOffset(c,d,l,r);this.applyPlacement(d,c);c=function(){var a=f.hoverState;f.$element.trigger("shown.bs."+f.type);f.hoverState=null;"out"==a&&f.leave(f)};a.support.transition&&this.$tip.hasClass("fade")?h.one("bsTransitionEnd",c).emulateTransitionEnd(m.TRANSITION_DURATION):c()}}};m.prototype.applyPlacement=function(h,c){var f=this.tip(),d=f[0].offsetWidth,k=f[0].offsetHeight,l=parseInt(f.css("margin-top"),10),m=parseInt(f.css("margin-left"), 10);isNaN(l)&&(l=0);isNaN(m)&&(m=0);h.top+=l;h.left+=m;a.offset.setOffset(f[0],a.extend({using:function(a){f.css({top:Math.round(a.top),left:Math.round(a.left)})}},h),0);f.addClass("in");var m=f[0].offsetWidth,w=f[0].offsetHeight;"top"==c&&w!=k&&(h.top=h.top+k-w);var z=this.getViewportAdjustedDelta(c,h,m,w);z.left?h.left+=z.left:h.top+=z.top;d=(l=/top|bottom/.test(c))?2*z.left-d+m:2*z.top-k+w;k=l?"offsetWidth":"offsetHeight";f.offset(h);this.replaceArrow(d,f[0][k],l)};m.prototype.replaceArrow=function(a, c,f){this.arrow().css(f?"left":"top",50*(1-a/c)+"%").css(f?"top":"left","")};m.prototype.setContent=function(){var a=this.tip(),c=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](c);a.removeClass("fade in top bottom left right")};m.prototype.hide=function(h){function c(){"in"!=f.hoverState&&d.detach();f.$element&&f.$element.removeAttr("aria-describedby").trigger("hidden.bs."+f.type);h&&h()}var f=this,d=a(this.$tip),k=a.Event("hide.bs."+this.type);this.$element.trigger(k); if(!k.isDefaultPrevented())return d.removeClass("in"),a.support.transition&&d.hasClass("fade")?d.one("bsTransitionEnd",c).emulateTransitionEnd(m.TRANSITION_DURATION):c(),this.hoverState=null,this};m.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")};m.prototype.hasContent=function(){return this.getTitle()};m.prototype.getPosition=function(h){h=h||this.$element;var c= h[0],f="BODY"==c.tagName,d=c.getBoundingClientRect();null==d.width&&(d=a.extend({},d,{width:d.right-d.left,height:d.bottom-d.top}));c=window.SVGElement&&c instanceof window.SVGElement;c=f?{top:0,left:0}:c?null:h.offset();h={scroll:f?document.documentElement.scrollTop||document.body.scrollTop:h.scrollTop()};f=f?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},d,h,f,c)};m.prototype.getCalculatedOffset=function(a,c,f,d){return"bottom"==a?{top:c.top+c.height,left:c.left+c.width/ 2-f/2}:"top"==a?{top:c.top-d,left:c.left+c.width/2-f/2}:"left"==a?{top:c.top+c.height/2-d/2,left:c.left-f}:{top:c.top+c.height/2-d/2,left:c.left+c.width}};m.prototype.getViewportAdjustedDelta=function(a,c,f,d){var h={top:0,left:0};if(!this.$viewport)return h;var l=this.options.viewport&&this.options.viewport.padding||0,m=this.getPosition(this.$viewport);/right|left/.test(a)?(f=c.top-l-m.scroll,c=c.top+l-m.scroll+d,f<m.top?h.top=m.top-f:c>m.top+m.height&&(h.top=m.top+m.height-c)):(d=c.left-l,c=c.left+ l+f,d<m.left?h.left=m.left-d:c>m.right&&(h.left=m.left+m.width-c));return h};m.prototype.getTitle=function(){var a=this.$element,c=this.options;return a.attr("data-original-title")||("function"==typeof c.title?c.title.call(a[0]):c.title)};m.prototype.getUID=function(a){do a+=~~(1E6*Math.random());while(document.getElementById(a));return a};m.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw Error(this.type+" `template` option must consist of exactly 1 top-level element!"); return this.$tip};m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};m.prototype.enable=function(){this.enabled=!0};m.prototype.disable=function(){this.enabled=!1};m.prototype.toggleEnabled=function(){this.enabled=!this.enabled};m.prototype.toggle=function(h){var c=this;h&&(c=a(h.currentTarget).data("bs."+this.type),c||(c=new this.constructor(h.currentTarget,this.getDelegateOptions()),a(h.currentTarget).data("bs."+this.type,c)));h?(c.inState.click=!c.inState.click, c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)};m.prototype.destroy=function(){var a=this;clearTimeout(this.timeout);this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type);a.$tip&&a.$tip.detach();a.$tip=null;a.$arrow=null;a.$viewport=null;a.$element=null})};var l=a.fn.tooltip;a.fn.tooltip=function(h){return this.each(function(){var c=a(this),f=c.data("bs.tooltip"),d="object"==typeof h&&h;if(f||!/destroy|hide/.test(h))if(f||c.data("bs.tooltip", f=new m(this,d)),"string"==typeof h)f[h]()})};a.fn.tooltip.Constructor=m;a.fn.tooltip.noConflict=function(){a.fn.tooltip=l;return this}}(jQuery); +function(a){var m=function(a,c){this.init("popover",a,c)};if(!a.fn.tooltip)throw Error("Popover requires tooltip.js");m.VERSION="3.3.7";m.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'});m.prototype=a.extend({},a.fn.tooltip.Constructor.prototype);m.prototype.constructor=m;m.prototype.getDefaults=function(){return m.DEFAULTS}; m.prototype.setContent=function(){var a=this.tip(),c=this.getTitle(),f=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](c);a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof f?"html":"append":"text"](f);a.removeClass("fade top bottom left right in");a.find(".popover-title").html()||a.find(".popover-title").hide()};m.prototype.hasContent=function(){return this.getTitle()||this.getContent()};m.prototype.getContent=function(){var a=this.$element, c=this.options;return a.attr("data-content")||("function"==typeof c.content?c.content.call(a[0]):c.content)};m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var l=a.fn.popover;a.fn.popover=function(h){return this.each(function(){var c=a(this),f=c.data("bs.popover"),d="object"==typeof h&&h;if(f||!/destroy|hide/.test(h))if(f||c.data("bs.popover",f=new m(this,d)),"string"==typeof h)f[h]()})};a.fn.popover.Constructor=m;a.fn.popover.noConflict=function(){a.fn.popover= l;return this}}(jQuery); +function(a){function m(c,f){this.$body=a(document.body);this.$scrollElement=a(c).is(document.body)?a(window):a(c);this.options=a.extend({},m.DEFAULTS,f);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this));this.refresh();this.process()}function l(c){return this.each(function(){var f=a(this),d=f.data("bs.scrollspy"),k="object"==typeof c&&c;d||f.data("bs.scrollspy", d=new m(this,k));if("string"==typeof c)d[c]()})}m.VERSION="3.3.7";m.DEFAULTS={offset:10};m.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};m.prototype.refresh=function(){var c=this,f="offset",d=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();a.isWindow(this.$scrollElement[0])||(f="position",d=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var c= a(this),c=c.data("target")||c.attr("href"),h=/^#./.test(c)&&a(c);return h&&h.length&&h.is(":visible")&&[[h[f]().top+d,c]]||null}).sort(function(a,c){return a[0]-c[0]}).each(function(){c.offsets.push(this[0]);c.targets.push(this[1])})};m.prototype.process=function(){var a=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),d=this.options.offset+f-this.$scrollElement.height(),h=this.offsets,l=this.targets,m=this.activeTarget,w;this.scrollHeight!=f&&this.refresh();if(a>=d)return m!= (w=l[l.length-1])&&this.activate(w);if(m&&a<h[0])return this.activeTarget=null,this.clear();for(w=h.length;w--;)m!=l[w]&&a>=h[w]&&(void 0===h[w+1]||a<h[w+1])&&this.activate(l[w])};m.prototype.activate=function(c){this.activeTarget=c;this.clear();c=a(this.selector+'[data-target="'+c+'"],'+this.selector+'[href="'+c+'"]').parents("li").addClass("active");c.parent(".dropdown-menu").length&&(c=c.closest("li.dropdown").addClass("active"));c.trigger("activate.bs.scrollspy")};m.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target, ".active").removeClass("active")};var h=a.fn.scrollspy;a.fn.scrollspy=l;a.fn.scrollspy.Constructor=m;a.fn.scrollspy.noConflict=function(){a.fn.scrollspy=h;return this};a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var c=a(this);l.call(c,c.data())})})}(jQuery); +function(a){function m(c){return this.each(function(){var d=a(this),f=d.data("bs.tab");f||d.data("bs.tab",f=new l(this));if("string"==typeof c)f[c]()})}var l=function(c){this.element=a(c)};l.VERSION="3.3.7";l.TRANSITION_DURATION=150;l.prototype.show=function(){var c=this.element,d=c.closest("ul:not(.dropdown-menu)"),h=c.data("target");h||(h=(h=c.attr("href"))&&h.replace(/.*(?=#[^\s]*$)/,""));if(!c.parent("li").hasClass("active")){var l=d.find(".active:last a"),m=a.Event("hide.bs.tab",{relatedTarget:c[0]}), w=a.Event("show.bs.tab",{relatedTarget:l[0]});l.trigger(m);c.trigger(w);w.isDefaultPrevented()||m.isDefaultPrevented()||(h=a(h),this.activate(c.closest("li"),d),this.activate(h,h.parent(),function(){l.trigger({type:"hidden.bs.tab",relatedTarget:c[0]});c.trigger({type:"shown.bs.tab",relatedTarget:l[0]})}))}};l.prototype.activate=function(c,d,h){function f(){k.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);c.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded", !0);m?(c[0].offsetWidth,c.addClass("in")):c.removeClass("fade");c.parent(".dropdown-menu").length&&c.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);h&&h()}var k=d.find("> .active"),m=h&&a.support.transition&&(k.length&&k.hasClass("fade")||!!d.find("> .fade").length);k.length&&m?k.one("bsTransitionEnd",f).emulateTransitionEnd(l.TRANSITION_DURATION):f();k.removeClass("in")};var h=a.fn.tab;a.fn.tab=m;a.fn.tab.Constructor=l;a.fn.tab.noConflict=function(){a.fn.tab= h;return this};var c=function(c){c.preventDefault();m.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',c).on("click.bs.tab.data-api",'[data-toggle="pill"]',c)}(jQuery); +function(a){function m(c){return this.each(function(){var f=a(this),d=f.data("bs.affix"),h="object"==typeof c&&c;d||f.data("bs.affix",d=new l(this,h));if("string"==typeof c)d[c]()})}var l=function(c,f){this.options=a.extend({},l.DEFAULTS,f);this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this));this.$element=a(c);this.pinnedOffset=this.unpin=this.affixed=null;this.checkPosition()}; l.VERSION="3.3.7";l.RESET="affix affix-top affix-bottom";l.DEFAULTS={offset:0,target:window};l.prototype.getState=function(a,f,d,h){var c=this.$target.scrollTop(),k=this.$element.offset(),l=this.$target.height();if(null!=d&&"top"==this.affixed)return c<d?"top":!1;if("bottom"==this.affixed)return null!=d?c+this.unpin<=k.top?!1:"bottom":c+l<=a-h?!1:"bottom";var m=null==this.affixed,k=m?c:k.top;return null!=d&&c<=d?"top":null!=h&&k+(m?l:f)>=a-h?"bottom":!1};l.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset; this.$element.removeClass(l.RESET).addClass("affix");var a=this.$target.scrollTop();return this.pinnedOffset=this.$element.offset().top-a};l.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)};l.prototype.checkPosition=function(){if(this.$element.is(":visible")){var c=this.$element.height(),f=this.options.offset,d=f.top,h=f.bottom,m=Math.max(a(document).height(),a(document.body).height());"object"!=typeof f&&(h=d=f);"function"==typeof d&&(d=f.top(this.$element)); "function"==typeof h&&(h=f.bottom(this.$element));f=this.getState(m,c,d,h);if(this.affixed!=f){null!=this.unpin&&this.$element.css("top","");var d="affix"+(f?"-"+f:""),r=a.Event(d+".bs.affix");this.$element.trigger(r);if(r.isDefaultPrevented())return;this.affixed=f;this.unpin="bottom"==f?this.getPinnedOffset():null;this.$element.removeClass(l.RESET).addClass(d).trigger(d.replace("affix","affixed")+".bs.affix")}"bottom"==f&&this.$element.offset({top:m-c-h})}};var h=a.fn.affix;a.fn.affix=m;a.fn.affix.Constructor= l;a.fn.affix.noConflict=function(){a.fn.affix=h;return this};a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),f=c.data();f.offset=f.offset||{};null!=f.offsetBottom&&(f.offset.bottom=f.offsetBottom);null!=f.offsetTop&&(f.offset.top=f.offsetTop);m.call(c,f)})})}(jQuery); (function(a){a(".esmenu .nav-pills a:first").tab("show");a('[data-toggle="tooltip"]').tooltip();a(window).click(function(m){1!=m.which&&0!=m.which||a("#megamenu-items").collapse("hide")});a("#megamenu-items").click(function(a){a.stopPropagation()});a("#megamenu-items").on("shown.bs.collapse",function(){a(".esmenu .menu-icon").removeClass("fa-pulse")});a("#megamenu-items").on("show.bs.collapse",function(){a(".esmenu .menu-icon").addClass("fa-pulse")});a(".esmenu .nav-pills > li a").click(function(m){m.preventDefault(); a(this).tab("show")});a(".esmenu .close").click(function(){a(".esmenu .nav-pills li.active").removeClass("active");a(".esmenu .tab-content div.active").removeClass("active")})})(jQuery);jQuery(document).ready(function(){jQuery(window).scroll(function(){150<jQuery(this).scrollTop()?jQuery("#slideToTop").fadeIn(500):jQuery("#slideToTop").fadeOut(500)});jQuery("#slideToTop").click(function(a){a.preventDefault();jQuery("html, body").animate({scrollTop:0},500);return!1})}); $(document).on("beforeValidate","form",function(a,m,l){$(this).find("[type=submit]").attr("disabled",!0).addClass("disabled")}).on("afterValidate","form",function(a,m,l){$(this).find("[type=submit]").removeAttr("disabled").removeClass("disabled")}).on("beforeSubmit","form",function(a){$(this).find("[type=submit]").attr("disabled",!0).addClass("disabled")}); jQuery(document).on("ready pjax:success",function(){jQuery("[confirm].ajax-delete").on("click",function(a){a.preventDefault();var m=$(this).attr("pjax-container")?$(this).attr("pjax-container"):$(this).closest("[data-pjax-container]");confirm($(this).attr("confirm"))&&$.ajax({url:$(this).attr("href"),type:"POST",error:function(a,h,c){alert("There was an error with your request."+a.responseText,function(){return!0})}}).done(function(a){$.pjax.reload({container:m,timeout:1E4})})})}); $("#globalModal").on("show.bs.modal",function(a){$.fn.modal.Constructor.prototype.enforceFocus=function(){};a=$(a.relatedTarget);a.attr("data-modal-size")&&$(".modal-dialog").addClass(a.data("modal-size"))}); $(document).ajaxError(function(a,m,l){"globalModal"==a.target.activeElement.id&&($("#globalModal").addClass("modal-danger"),$("#globalModal").find(".modal-content").html('<div class="modal-header"><button aria-label="Close" data-dismiss="modal" class="close" type="button"><span aria-hidden="true">\u00d7</span></button><h4 class="modal-title">'+m.status+" : "+m.statusText+'</h4></div><div class="modal-body">'+m.responseText+"</div>"))}); $(document).ready(function(){$("#globalModal").on("hidden.bs.modal",function(a){$(this).removeData("bs.modal");$(this).find(".modal-content").html('<div class="modal-body"><div class="loader"><div class="es-spinner"><i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i></div></div></div>');$("#globalModal").removeClass("modal-danger").find(".modal-dialog").removeClass("modal-lg modal-sm")});$("a[data-target='#globalModal']").unbind();$(document).on("click","a[data-ui-loader], button[data-ui-loader]", function(){if($(this).find(".loader").length)return!1;$(this).attr("disabled","disabled").addClass("disabled").prepend('<span class="loader fa fa-spinner fa-pulse"></span> ')});$(document).on("afterValidate",function(a,m,l){l.length&&$("[data-ui-loader]").each(function(){var a=$(this);a.find(".loader").length&&a.removeAttr("disabled").removeClass("disabled").find(".loader").remove()})});$(document).on("click",'[data-widget="collapse"]',function(a){a.preventDefault();a=$(this);var m=a.parents(".box").first(), l=m.find("> .box-body, > .box-footer, > form >.box-body, > form > .box-footer");m.hasClass("collapsed-box")?(a.children(":first").removeClass("fa-plus").addClass("fa-minus"),l.slideDown(500,function(){m.removeClass("collapsed-box")})):(a.children(":first").removeClass("fa-minus").addClass("fa-plus"),l.slideUp(500,function(){m.addClass("collapsed-box")}))});$(document).on("click",'[data-widget="remove"]',function(a){a.preventDefault();$(this).parents(".box").first().slideUp(this.animationSpeed)}); $(document).on("click","a[data-ajax-load]",function(a){a.preventDefault();$("#"+$(this).data("ajax-load")).html('<div class="text-center"><i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i></div>').load($(this).attr("href"));1==$(this).data("push-state")&&history.pushState(null,null,$(this).attr("href"))});$(document).on("click","input.checkSingleBox:checkbox:enabled",function(a){a=$(this).closest("tr");var m=a.find(":checkbox.checkSingleBox"),l=$(this).prop("checked");m.prop("checked",l).trigger("change"); a.toggleClass("marked-row",l)});$(document).on("change","input.checkSingleBox:checkbox:enabled",function(){var a=$(this.form),m=a.find("input.checkSingleBox:checkbox:enabled").length,l=a.find("input.checkSingleBox:checkbox:enabled:checked").length,a=a.find("input.checkAllBox");m==l?a.prop({checked:!0,indeterminate:!1}):0<l?a.prop({checked:!0,indeterminate:!0}):a.prop({checked:!1,indeterminate:!1})});$(document).on("change","input.checkAllBox",function(){var a=$(this).is(":checked");$(this.form).find("input.checkSingleBox:checkbox:enabled").prop("checked", a).parents("tr").toggleClass("marked-row",a)});$(document).on("change","input.checkSingleBox:checkbox:enabled, input.checkAllBox:checkbox:enabled",function(){var a=$(this).parent().parent(),m=a.find("input.checkSingleBox:checkbox:enabled").length,l=a.find("input.checkSingleBox:checkbox:enabled:checked").length,a=a.find("input.subCheckAllBox");m==l?a.prop({checked:!0,indeterminate:!1}):0<l?a.prop({checked:!0,indeterminate:!0}):a.prop({checked:!1,indeterminate:!1})});$(document).on("change","input.subCheckAllBox", function(){var a=$(this).is(":checked");$(this).parent().parent().find("input.checkSingleBox:checkbox:enabled").prop("checked",a).parents("tr").toggleClass("marked-row",a)})}); (function(a){a.fn.extend({slimScroll:function(m){var l=a.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},m);this.each(function(){function h(d){if(p){d=d||window.event; var f=0;d.wheelDelta&&(f=-d.wheelDelta/120);d.detail&&(f=d.detail/3);a(d.target||d.srcTarget||d.srcElement).closest("."+l.wrapperClass).is(v.parent())&&c(f,!0);d.preventDefault&&!H&&d.preventDefault();H||(d.returnValue=!1)}}function c(a,c,f){H=!1;var h=v.outerHeight()-C.outerHeight();c&&(c=parseInt(C.css("top"))+a*parseInt(l.wheelStep)/100*C.outerHeight(),c=Math.min(Math.max(c,0),h),c=0<a?Math.ceil(c):Math.floor(c),C.css({top:c+"px"}));E=parseInt(C.css("top"))/(v.outerHeight()-C.outerHeight());c= E*(v[0].scrollHeight-v.outerHeight());f&&(c=a,a=c/v[0].scrollHeight*v.outerHeight(),a=Math.min(Math.max(a,0),h),C.css({top:a+"px"}));v.scrollTop(c);v.trigger("slimscrolling",~~c);d();k()}function f(){J=Math.max(v.outerHeight()/v[0].scrollHeight*v.outerHeight(),30);C.css({height:J+"px"});var a=J==v.outerHeight()?"none":"block";C.css({display:a})}function d(){f();clearTimeout(z);E==~~E?(H=l.allowPageScroll,V!=E&&v.trigger("slimscroll",0==~~E?"top":"bottom")):H=!1;V=E;J>=v.outerHeight()?H=!0:(C.stop(!0, !0).fadeIn("fast"),l.railVisible&&O.stop(!0,!0).fadeIn("fast"))}function k(){l.alwaysVisible||(z=setTimeout(function(){l.disableFadeOut&&p||r||w||(C.fadeOut("slow"),O.fadeOut("slow"))},1E3))}var p,r,w,z,N,J,E,V,H=!1,v=a(this);if(v.parent().hasClass(l.wrapperClass)){var R=v.scrollTop(),C=v.siblings("."+l.barClass),O=v.siblings("."+l.railClass);f();if(a.isPlainObject(m)){if("height"in m&&"auto"==m.height){v.parent().css("height","auto");v.css("height","auto");var F=v.parent().parent().height();v.parent().css("height", F);v.css("height",F)}else"height"in m&&(F=m.height,v.parent().css("height",F),v.css("height",F));if("scrollTo"in m)R=parseInt(l.scrollTo);else if("scrollBy"in m)R+=parseInt(l.scrollBy);else if("destroy"in m){C.remove();O.remove();v.unwrap();return}c(R,!1,!0)}}else a.isPlainObject(m)&&"destroy"in m||(l.height="auto"==l.height?v.parent().height():l.height,R=a("<div></div>").addClass(l.wrapperClass).css({position:"relative",overflow:"hidden",width:l.width,height:l.height}),v.css({overflow:"hidden",width:l.width, height:l.height}),O=a("<div></div>").addClass(l.railClass).css({width:l.size,height:"100%",position:"absolute",top:0,display:l.alwaysVisible&&l.railVisible?"block":"none","border-radius":l.railBorderRadius,background:l.railColor,opacity:l.railOpacity,zIndex:90}),C=a("<div></div>").addClass(l.barClass).css({background:l.color,width:l.size,position:"absolute",top:0,opacity:l.opacity,display:l.alwaysVisible?"block":"none","border-radius":l.borderRadius,BorderRadius:l.borderRadius,MozBorderRadius:l.borderRadius, WebkitBorderRadius:l.borderRadius,zIndex:99}),F="right"==l.position?{right:l.distance}:{left:l.distance},O.css(F),C.css(F),v.wrap(R),v.parent().append(C),v.parent().append(O),l.railDraggable&&C.bind("mousedown",function(d){var f=a(document);w=!0;t=parseFloat(C.css("top"));pageY=d.pageY;f.bind("mousemove.slimscroll",function(a){currTop=t+a.pageY-pageY;C.css("top",currTop);c(0,C.position().top,!1)});f.bind("mouseup.slimscroll",function(a){w=!1;k();f.unbind(".slimscroll")});return!1}).bind("selectstart.slimscroll", function(a){a.stopPropagation();a.preventDefault();return!1}),O.hover(function(){d()},function(){k()}),C.hover(function(){r=!0},function(){r=!1}),v.hover(function(){p=!0;d();k()},function(){p=!1;k()}),v.bind("touchstart",function(a,c){a.originalEvent.touches.length&&(N=a.originalEvent.touches[0].pageY)}),v.bind("touchmove",function(a){H||a.originalEvent.preventDefault();a.originalEvent.touches.length&&(c((N-a.originalEvent.touches[0].pageY)/l.touchScrollStep,!0),N=a.originalEvent.touches[0].pageY)}), f(),"bottom"===l.start?(C.css({top:v.outerHeight()-C.outerHeight()}),c(0,!0)):"top"!==l.start&&(c(a(l.start).position().top,null,!0),l.alwaysVisible||C.hide()),window.addEventListener?(this.addEventListener("DOMMouseScroll",h,!1),this.addEventListener("mousewheel",h,!1)):document.attachEvent("onmousewheel",h))});return this}});a.fn.extend({slimscroll:a.fn.slimScroll})})(jQuery); yii.validation=function(a){function m(c,f,d){if("undefined"===typeof File)return[];c=a(c.input,c.$form).get(0).files;return c?0===c.length?(d.skipOnEmpty||f.push(d.uploadRequired),[]):d.maxFiles&&d.maxFiles<c.length?(f.push(d.tooMany),[]):c:(f.push(d.message),[])}function l(a,f,d){if(d.extensions&&0<d.extensions.length){var c=a.name.lastIndexOf("."),c=~c?a.name.substr(c+1,a.name.length).toLowerCase():"";~d.extensions.indexOf(c)||f.push(d.wrongExtension.replace(/\{file\}/g,a.name))}if(d.mimeTypes&& 0<d.mimeTypes.length){a:{for(var c=d.mimeTypes,h=a.type,l=0,m=c.length;l<m;l++)if((new RegExp(c[l])).test(h)){c=!0;break a}c=!1}c||f.push(d.wrongMimeType.replace(/\{file\}/g,a.name))}d.maxSize&&d.maxSize<a.size&&f.push(d.tooBig.replace(/\{file\}/g,a.name));d.minSize&&d.minSize>a.size&&f.push(d.tooSmall.replace(/\{file\}/g,a.name))}var h={isEmpty:function(c){return null===c||void 0===c||a.isArray(c)&&0===c.length||""===c},addMessage:function(a,f,d){a.push(f.replace(/\{value\}/g,d))},required:function(c, f,d){var k=!1;if(void 0===d.requiredValue){var l="string"==typeof c||c instanceof String;if(d.strict&&void 0!==c||!d.strict&&!h.isEmpty(l?a.trim(c):c))k=!0}else if(!d.strict&&c==d.requiredValue||d.strict&&c===d.requiredValue)k=!0;k||h.addMessage(f,d.message,c)},"boolean":function(a,f,d){d.skipOnEmpty&&h.isEmpty(a)||(d.strict||a!=d.trueValue&&a!=d.falseValue)&&(!d.strict||a!==d.trueValue&&a!==d.falseValue)&&h.addMessage(f,d.message,a)},string:function(a,f,d){d.skipOnEmpty&&h.isEmpty(a)||("string"!== typeof a?h.addMessage(f,d.message,a):void 0!==d.is&&a.length!=d.is?h.addMessage(f,d.notEqual,a):(void 0!==d.min&&a.length<d.min&&h.addMessage(f,d.tooShort,a),void 0!==d.max&&a.length>d.max&&h.addMessage(f,d.tooLong,a)))},file:function(c,f,d){c=m(c,f,d);a.each(c,function(a,c){l(c,f,d)})},image:function(c,f,d,k){c=m(c,f,d);a.each(c,function(c,m){l(m,f,d);if("undefined"!==typeof FileReader){var p=a.Deferred();h.validateImage(m,f,d,p,new FileReader,new Image);k.push(p)}})},validateImage:function(a,f, d,h,l,m){m.onload=function(){d.minWidth&&m.width<d.minWidth&&f.push(d.underWidth.replace(/\{file\}/g,a.name));d.maxWidth&&m.width>d.maxWidth&&f.push(d.overWidth.replace(/\{file\}/g,a.name));d.minHeight&&m.height<d.minHeight&&f.push(d.underHeight.replace(/\{file\}/g,a.name));d.maxHeight&&m.height>d.maxHeight&&f.push(d.overHeight.replace(/\{file\}/g,a.name));h.resolve()};m.onerror=function(){f.push(d.notImage.replace(/\{file\}/g,a.name));h.resolve()};l.onload=function(){m.src=this.result};l.onerror= function(){h.resolve()};l.readAsDataURL(a)},number:function(a,f,d){d.skipOnEmpty&&h.isEmpty(a)||("string"!==typeof a||d.pattern.test(a)?(void 0!==d.min&&a<d.min&&h.addMessage(f,d.tooSmall,a),void 0!==d.max&&a>d.max&&h.addMessage(f,d.tooBig,a)):h.addMessage(f,d.message,a))},range:function(c,f,d){if(!d.skipOnEmpty||!h.isEmpty(c))if(!d.allowArray&&a.isArray(c))h.addMessage(f,d.message,c);else{var k=!0;a.each(a.isArray(c)?c:[c],function(c,f){return-1==a.inArray(f,d.range)?k=!1:!0});void 0===d.not&&(d.not= !1);d.not===k&&h.addMessage(f,d.message,c)}},regularExpression:function(a,f,d){d.skipOnEmpty&&h.isEmpty(a)||(!d.not&&!d.pattern.test(a)||d.not&&d.pattern.test(a))&&h.addMessage(f,d.message,a)},email:function(a,f,d){if(!d.skipOnEmpty||!h.isEmpty(a)){var c;c=/^((?:"?([^"]*)"?\s)?)(?:\s+)?(?:(<?)((.+)@([^>]+))(>?))$/.exec(a);if(null===c)c=!1;else{var l=c[5],m=c[6];d.enableIDN&&(l=punycode.toASCII(l),m=punycode.toASCII(m),a=c[1]+c[3]+l+"@"+m+c[7]);c=64<l.length?!1:254<(l+"@"+m).length?!1:d.pattern.test(a)|| d.allowName&&d.fullPattern.test(a)}c||h.addMessage(f,d.message,a)}},url:function(a,f,d){if(!d.skipOnEmpty||!h.isEmpty(a)){d.defaultScheme&&!/:\/\//.test(a)&&(a=d.defaultScheme+"://"+a);var c=!0;if(d.enableIDN){var l=/^([^:]+):\/\/([^\/]+)(.*)$/.exec(a);null===l?c=!1:a=l[1]+"://"+punycode.toASCII(l[2])+l[3]}c&&d.pattern.test(a)||h.addMessage(f,d.message,a)}},trim:function(c,f,d){c=c.find(f.input);f=c.val();d.skipOnEmpty&&h.isEmpty(f)||(f=a.trim(f),c.val(f));return f},captcha:function(c,f,d){if(!d.skipOnEmpty|| !h.isEmpty(c)){for(var k=a("body").data(d.hashKey),k=null==k?d.hash:k[d.caseSensitive?0:1],l=d.caseSensitive?c:c.toLowerCase(),m=l.length-1,w=0;0<=m;--m)w+=l.charCodeAt(m);w!=k&&h.addMessage(f,d.message,c)}},compare:function(c,f,d){if(!d.skipOnEmpty||!h.isEmpty(c)){var k;k=void 0===d.compareAttribute?d.compareValue:a("#"+d.compareAttribute).val();"number"===d.type&&(c=parseFloat(c),k=parseFloat(k));switch(d.operator){case "==":k=c==k;break;case "===":k=c===k;break;case "!=":k=c!=k;break;case "!==":k= c!==k;break;case ">":k=c>k;break;case ">=":k=c>=k;break;case "<":k=c<k;break;case "<=":k=c<=k;break;default:k=!1}k||h.addMessage(f,d.message,c)}},ip:function(a,f,d){if(!d.skipOnEmpty||!h.isEmpty(a)){var c=null,l=null,m=(new RegExp(d.ipParsePattern)).exec(a);m&&(c=m[1]||null,a=m[2],l=m[4]||null);!0===d.subnet&&null===l?h.addMessage(f,d.messages.noSubnet,a):!1===d.subnet&&null!==l?h.addMessage(f,d.messages.hasSubnet,a):!1===d.negation&&null!==c?h.addMessage(f,d.messages.message,a):6==(-1===a.indexOf(":")? 4:6)?((new RegExp(d.ipv6Pattern)).test(a)||h.addMessage(f,d.messages.message,a),d.ipv6||h.addMessage(f,d.messages.ipv6NotAllowed,a)):((new RegExp(d.ipv4Pattern)).test(a)||h.addMessage(f,d.messages.message,a),d.ipv4||h.addMessage(f,d.messages.ipv4NotAllowed,a))}}};return h}(jQuery); (function(a){a.fn.yiiActiveForm=function(c){return f[c]?f[c].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==typeof c&&c?(a.error("Method "+c+" does not exist on jQuery.yiiActiveForm"),!1):f.init.apply(this,arguments)};var m={encodeErrorSummary:!0,errorSummary:".error-summary",validateOnSubmit:!0,errorCssClass:"has-error",successCssClass:"has-success",validatingCssClass:"validating",ajaxParam:"ajax",ajaxDataType:"json",validationUrl:void 0,scrollToError:!0,scrollToErrorOffset:0},l= {id:void 0,name:void 0,container:void 0,input:void 0,error:".help-block",encodeError:!0,validateOnChange:!0,validateOnBlur:!0,validateOnType:!1,validationDelay:500,enableAjaxValidation:!1,validate:void 0,status:0,cancelled:!1,value:void 0,updateAriaInvalid:!0},h,c=function(a){h&&(h.resolve(),h=void 0,a.removeData("yiiSubmitFinalizePromise"))},f={init:function(c,h){return this.each(function(){var k=a(this);if(!k.data("yiiActiveForm")){var p=a.extend({},m,h||{});void 0===p.validationUrl&&(p.validationUrl= k.attr("action"));a.each(c,function(f){c[f]=a.extend({value:H(k,this)},l,this);d(k,c[f])});k.data("yiiActiveForm",{settings:p,attributes:c,submitting:!1,validated:!1,options:w(k)});k.bind("reset.yiiActiveForm",f.resetForm);p.validateOnSubmit&&(k.on("mouseup.yiiActiveForm keyup.yiiActiveForm",":submit",function(){k.data("yiiActiveForm").submitObject=a(this)}),k.on("submit.yiiActiveForm",f.submitForm));p=a.Event("afterInit");k.trigger(p)}})},add:function(c){var f=a(this);c=a.extend({value:H(f,c)},l, c);f.data("yiiActiveForm").attributes.push(c);d(f,c)},remove:function(c){var d=a(this),f=d.data("yiiActiveForm").attributes,h=-1,k=void 0;a.each(f,function(a){if(f[a].id==c)return h=a,k=f[a],!1});0<=h&&(f.splice(h,1),v(d,k).off(".yiiActiveForm"));return k},validateAttribute:function(c){c=f.find.call(this,c);void 0!=c&&k(a(this),c,!0)},find:function(c){var d=a(this).data("yiiActiveForm").attributes,f=void 0;a.each(d,function(a){if(d[a].id==c)return f=d[a],!1});return f},destroy:function(){return this.each(function(){a(this).unbind(".yiiActiveForm"); a(this).removeData("yiiActiveForm")})},data:function(){return this.data("yiiActiveForm")},validate:function(d){d&&(a(this).data("yiiActiveForm").submitting=!0);var f=a(this),h=f.data("yiiActiveForm"),k=!1,l={},m=p(),r=h.submitting&&!d;if(h.submitting&&(d=a.Event("beforeValidate"),f.trigger(d,[l,m]),!1===d.result)){h.submitting=!1;c(f);return}a.each(h.attributes,function(){this.$form=f;if(!a(this.input).is(":disabled")&&(this.cancelled=!1,h.submitting||2===this.status||3===this.status)){var c=l[this.id]; void 0===c&&(c=[],l[this.id]=c);var d=a.Event("beforeValidateAttribute");f.trigger(d,[this,c,m]);!1!==d.result?(this.validate&&this.validate(this,H(f,this),c,m,f),this.enableAjaxValidation&&(k=!0)):this.cancelled=!0}});a.when.apply(this,m).always(function(){for(var d in l)0===l[d].length&&delete l[d];if(k&&(a.isEmptyObject(l)||h.submitting)){d=h.submitObject;var m="&"+h.settings.ajaxParam+"="+f.attr("id");d&&d.length&&d.attr("name")&&(m+="&"+d.attr("name")+"="+d.attr("value"));a.ajax({url:h.settings.validationUrl, type:f.attr("method"),data:f.serialize()+m,dataType:h.settings.ajaxDataType,complete:function(a,c){f.trigger("ajaxComplete",[a,c])},beforeSend:function(a,c){f.trigger("ajaxBeforeSend",[a,c])},success:function(c){null!==c&&"object"===typeof c?(a.each(h.attributes,function(){this.enableAjaxValidation&&!this.cancelled||delete c[this.id]}),J(f,a.extend(l,c),r)):J(f,l,r)},error:function(){h.submitting=!1;c(f)}})}else h.submitting?setTimeout(function(){J(f,l,r)},200):J(f,l,r)})},submitForm:function(){var d= a(this),k=d.data("yiiActiveForm");if(k.validated){k.submitting=!1;var l=a.Event("beforeSubmit");d.trigger(l);if(!1===l.result)return k.validated=!1,c(d),!1;k=d.data("yiiActiveForm").submitObject||d.find(":submit:first");k.length&&"submit"==k.attr("type")&&k.attr("name")&&(l=a('input[type="hidden"][name="'+k.attr("name")+'"]',d),l.length?l.attr("value",k.attr("value")):a("<input>").attr({type:"hidden",name:k.attr("name"),value:k.attr("value")}).appendTo(d));return!0}h=a.Deferred();d.data("yiiSubmitFinalizePromise", h.promise());void 0!==k.settings.timer&&clearTimeout(k.settings.timer);k.submitting=!0;f.validate.call(d);return!1},resetForm:function(){var c=a(this),d=c.data("yiiActiveForm");setTimeout(function(){a.each(d.attributes,function(){this.value=H(c,this);this.status=0;var a=c.find(this.container);a.removeClass(d.settings.validatingCssClass+" "+d.settings.errorCssClass+" "+d.settings.successCssClass);a.find(this.error).html("")});c.find(d.settings.errorSummary).hide().find("ul").html("")},1)},updateMessages:function(c, d){var f=a(this),h=f.data("yiiActiveForm");a.each(h.attributes,function(){E(f,this,c)});d&&V(f,c)},updateAttribute:function(c,d){var h=f.find.call(this,c);if(void 0!=h){var k={};k[c]=d;E(a(this),h,k)}}},d=function(c,d){var f=v(c,d);if(d.validateOnChange)f.on("change.yiiActiveForm",function(){k(c,d,!1)});if(d.validateOnBlur)f.on("blur.yiiActiveForm",function(){0!=d.status&&1!=d.status||k(c,d,!0)});if(d.validateOnType)f.on("keyup.yiiActiveForm",function(f){-1===a.inArray(f.which,[16,17,18,37,38,39, 40])&&d.value!==H(c,d)&&k(c,d,!1,d.validationDelay)})},k=function(c,d,h,k){var l=c.data("yiiActiveForm");h&&(d.status=2);a.each(l.attributes,function(){this.value!==H(c,this)&&(this.status=2,h=!0)});h&&(void 0!==l.settings.timer&&clearTimeout(l.settings.timer),l.settings.timer=setTimeout(function(){l.submitting||c.is(":hidden")||(a.each(l.attributes,function(){2===this.status&&(this.status=3,c.find(this.container).addClass(l.settings.validatingCssClass))}),f.validate.call(c))},k?k:200))},p=function(){var c= [];c.add=function(c){this.push(new a.Deferred(c))};return c},r=["action","target","method","enctype"],w=function(a){for(var c={},d=0;d<r.length;d++)c[r[d]]=a.attr(r[d]);return c},z=function(a,c){for(var d=0;d<r.length;d++){var f=c.attr("form"+r[d]);f&&a.attr(r[d],f)}},N=function(a){for(var c=a.data("yiiActiveForm"),d=0;d<r.length;d++)a.attr(r[d],c.options[r[d]]||null)},J=function(d,f,h){var k=d.data("yiiActiveForm");if(void 0===k)return!1;if(h){var l=[];a.each(k.attributes,function(){a(this.input).is(":disabled")|| this.cancelled||!E(d,this,f)||l.push(this)});d.trigger("afterValidate",[f,l]);V(d,f);if(l.length){if(k.settings.scrollToError){h=d.find(a.map(l,function(a){return a.input}).join(",")).first().closest(":visible").offset().top-k.settings.scrollToErrorOffset;0>h?h=0:h>a(document).height()&&(h=a(document).height());var m=a(window).scrollTop();(h<m||h>m+a(window).height())&&a(window).scrollTop(h)}k.submitting=!1}else k.validated=!0,k.submitObject&&z(d,k.submitObject),d.submit(),k.submitObject&&N(d)}else a.each(k.attributes, function(){this.cancelled||2!==this.status&&3!==this.status||E(d,this,f)});c(d)},E=function(c,d,f){var h=c.data("yiiActiveForm"),k=v(c,d),l=!1;a.isArray(f[d.id])||(f[d.id]=[]);c.trigger("afterValidateAttribute",[d,f[d.id]]);d.status=1;if(k.length){var l=0<f[d.id].length,k=c.find(d.container),m=k.find(d.error),p=l;d.updateAriaInvalid&&c.find(d.input).attr("aria-invalid",p?"true":"false");l?(d.encodeError?m.text(f[d.id][0]):m.html(f[d.id][0]),k.removeClass(h.settings.validatingCssClass+" "+h.settings.successCssClass).addClass(h.settings.errorCssClass)): (m.empty(),k.removeClass(h.settings.validatingCssClass+" "+h.settings.errorCssClass+" ").addClass(h.settings.successCssClass));d.value=H(c,d)}return l},V=function(c,d){var f=c.data("yiiActiveForm"),h=c.find(f.settings.errorSummary),k=h.find("ul").empty();h.length&&d&&(a.each(f.attributes,function(){if(a.isArray(d[this.id])&&d[this.id].length){var c=a("<li/>");f.settings.encodeErrorSummary?c.text(d[this.id][0]):c.html(d[this.id][0]);k.append(c)}}),h.toggle(0<k.find("li").length))},H=function(a,c){var d= v(a,c),f=d.attr("type");return"checkbox"===f||"radio"===f?(f=d.filter(":checked"),f.length||(f=a.find('input[type=hidden][name="'+d.attr("name")+'"]')),f.val()):d.val()},v=function(a,c){var d=a.find(c.input);return d.length&&"div"===d[0].tagName.toLowerCase()?d.find("input"):d}})(window.jQuery); (function(a){function m(c,d,f){var h=this;return this.on("click.pjax",c,function(c){var k=a.extend({history:!0},J(d,f));k.container||(k.container=a(this).attr("data-pjax")||h);l(c,k)})}function l(d,f,h){h=J(f,h);f=d.currentTarget;if(0!=a(f).data("pjax")){if("A"!==f.tagName.toUpperCase())throw"$.fn.pjax or $.pjax.click requires an anchor element";if(!(1<d.which||d.metaKey||d.ctrlKey||d.shiftKey||d.altKey||location.protocol!==f.protocol||location.hostname!==f.hostname||-1<f.href.indexOf("#")&&f.href.replace(/#.*/, "")==location.href.replace(/#.*/,"")||d.isDefaultPrevented())){var k={url:f.href,container:a(f).attr("data-pjax"),target:f};h=a.extend({},k,h);k=a.Event("pjax:click");a(f).trigger(k,[h]);k.isDefaultPrevented()||(c(h),d.preventDefault(),a(f).trigger("pjax:clicked",[h]))}}}function h(d,f,h){h=J(f,h);f=d.currentTarget;var k=a(f);if("FORM"!==f.tagName.toUpperCase())throw"$.pjax.submit requires a form element";k={type:(k.attr("method")||"GET").toUpperCase(),url:k.attr("action"),container:k.attr("data-pjax"), target:f};if("GET"!==k.type&&void 0!==window.FormData)k.data=new FormData(f),k.processData=!1,k.contentType=!1;else{if(a(f).find(":file").length)return;k.data=a(f).serializeArray()}c(a.extend({},k,h));d.preventDefault()}function c(f){function h(c,d,f){f||(f={});f.relatedTarget=k;c=a.Event(c,f);m.trigger(c,d);return!c.isDefaultPrevented()}f=a.extend(!0,{},a.ajaxSettings,c.defaults,f);a.isFunction(f.url)&&(f.url=f.url());var k=f.target,l=N(f.url).hash,m=f.context=E(f.container);f.data||(f.data={}); a.isArray(f.data)?(f.data=a.grep(f.data,function(a){return"_pjax"!==a.name}),f.data.push({name:"_pjax",value:m.selector})):f.data._pjax=m.selector;var u;f.beforeSend=function(a,c){"GET"!==c.type&&(c.timeout=0);a.setRequestHeader("X-PJAX","true");a.setRequestHeader("X-PJAX-Container",m.selector);if(c.ieRedirectCompatibility){var d=window.navigator.userAgent;(0<d.indexOf("MSIE ")||0<d.indexOf("Trident/")||0<d.indexOf("Edge/"))&&a.setRequestHeader("X-Ie-Redirect-Compatibility","true")}if(!h("pjax:beforeSend", [a,c]))return!1;0<c.timeout&&(u=setTimeout(function(){h("pjax:timeout",[a,f])&&a.abort("timeout")},c.timeout),c.timeout=0);d=N(c.url);l&&(d.hash=l);f.requestUrl=z(d)};f.complete=function(a,c){u&&clearTimeout(u);h("pjax:complete",[a,c,f]);h("pjax:end",[a,f])};f.error=function(a,c,k){var l=H("",a,f),m=301<=a.status&&303>=a.status;a=m||h("pjax:error",[a,c,k,f]);if(m||"GET"==f.type&&"abort"!==c&&a)f.replaceRedirect?d(l.url):f.pushRedirect&&(window.history.pushState(null,"",l.url),window.location.replace(l.url))}; f.success=function(k,u,p){var r=c.state,A="function"===typeof a.pjax.defaults.version?a.pjax.defaults.version():a.pjax.defaults.version,D=p.getResponseHeader("X-PJAX-Version"),w=H(k,p,f),z=N(w.url);l&&(z.hash=l,w.url=z.href);if(A&&D&&A!==D)d(w.url);else if(w.contents){c.state={id:f.id||(new Date).getTime(),url:w.url,title:w.title,container:m.selector,fragment:f.fragment,timeout:f.timeout,cache:f.cache};f.history&&(f.push||f.replace)&&window.history.replaceState(c.state,w.title,w.url);if(a.contains(f.container, document.activeElement))try{document.activeElement.blur()}catch(ea){}w.title&&(document.title=w.title);h("pjax:beforeReplace",[w.contents,f],{state:c.state,previousState:r});m.html(w.contents);(r=m.find("input[autofocus], textarea[autofocus]").last()[0])&&document.activeElement!==r&&r.focus();v(w.scripts,m);w=f.scrollTo;l&&(r=decodeURIComponent(l.slice(1)),r=document.getElementById(r)||document.getElementsByName(r)[0])&&(w=a(r).offset().top);"number"==typeof w&&a(window).scrollTop(w);h("pjax:success", [k,u,p,f])}else d(w.url)};c.state||(c.state={id:(new Date).getTime(),url:window.location.href,title:document.title,container:m.selector,fragment:f.fragment,timeout:f.timeout,cache:f.cache},window.history.replaceState(c.state,document.title));if(!(c.xhr&&4>c.xhr.readyState&&c.options.skipOuterContainers)){r(c.xhr);c.options=f;var p=c.xhr=a.ajax(f);0<p.readyState&&(f.history&&f.push&&!f.replace&&(R(c.state.id,w(m)),window.history.pushState(null,"",f.requestUrl)),h("pjax:start",[p,f]),h("pjax:send", [p,f]));return c.xhr}}function f(d,f){return c(a.extend({url:window.location.href,push:!1,replace:!0,scrollTo:!1},J(d,f)))}function d(a){c.options.history&&(window.history.replaceState(null,"",c.state.url),window.location.replace(a))}function k(f){Q||r(c.xhr);var h=c.state,k=f.state,l;if(k&&k.container){if(Q&&ga==k.url)return;if(h){if(h.id===k.id)return;l=h.id<k.id?"forward":"back"}var m=W[k.id]||[];f=a(m[0]||k.container);m=m[1];if(f.length){var p={id:k.id,url:k.url,container:f,push:!1,fragment:k.fragment, timeout:k.timeout,cache:k.cache,scrollTo:!1};if(h&&p.cache){var u=l,v=h.id,z=w(f);W[v]=z;"forward"===u?(u=ha,z=oa):(u=oa,z=ha);u.push(v);(v=z.pop())&&delete W[v];C(u,c.defaults.maxCacheLength)}l=a.Event("pjax:popstate",{state:k,direction:l});f.trigger(l);m?(f.trigger("pjax:start",[null,p]),c.state=k,k.title&&(document.title=k.title),h=a.Event("pjax:beforeReplace",{state:k,previousState:h}),f.trigger(h,[m,p]),f.html(m),f.trigger("pjax:end",[null,p])):c(p);f[0].offsetHeight}else d(location.href)}Q= !1}function p(c){var d=a.isFunction(c.url)?c.url():c.url,f=c.type?c.type.toUpperCase():"GET",h=a("<form>",{method:"GET"===f?"GET":"POST",action:d,style:"display:none"});"GET"!==f&&"POST"!==f&&h.append(a("<input>",{type:"hidden",name:"_method",value:f.toLowerCase()}));c=c.data;if("string"===typeof c)a.each(c.split("&"),function(c,d){var f=d.split("=");h.append(a("<input>",{type:"hidden",name:f[0],value:f[1]}))});else if(a.isArray(c))a.each(c,function(c,d){h.append(a("<input>",{type:"hidden",name:d.name, value:d.value}))});else if("object"===typeof c)for(var k in c)h.append(a("<input>",{type:"hidden",name:k,value:c[k]}));a(document.body).append(h);h.submit()}function r(c){c&&4>c.readyState&&(c.onreadystatechange=a.noop,c.abort())}function w(a){var c=a.clone();c.find("script").each(function(){this.src||jQuery._data(this,"globalEval",!1)});return[a.selector,c.contents()]}function z(a){a.search=a.search.replace(/([?&])(_pjax|_)=[^&]*/g,"");return a.href.replace(/\?($|#)/,"$1")}function N(a){var c=document.createElement("a"); c.href=a;return c}function J(c,d){c&&d?d.container=c:d=a.isPlainObject(c)?c:{container:c};d.container&&(d.container=E(d.container));return d}function E(c){c=a(c);if(c.length){if(""!==c.selector&&c.context===document)return c;if(c.attr("id"))return a("#"+c.attr("id"));throw"cant get selector for pjax container!";}throw"no pjax container for "+c.selector;}function V(a,c){return a.filter(c).add(a.find(c))}function H(c,d,f){var h={},k=/<html/i.test(c);d=d.getResponseHeader("X-PJAX-URL");h.url=d?z(N(d)): f.requestUrl;k?(d=a(a.parseHTML(c.match(/<head[^>]*>([\s\S.]*)<\/head>/i)[0],document,!0)),c=a(a.parseHTML(c.match(/<body[^>]*>([\s\S.]*)<\/body>/i)[0],document,!0))):d=c=a(a.parseHTML(c,document,!0));if(0===c.length)return h;h.title=V(d,"title").last().text();f.fragment?(k="body"===f.fragment?c:V(c,f.fragment).first(),k.length&&(h.contents="body"===f.fragment?k:k.contents(),h.title||(h.title=k.attr("title")||k.data("title")))):k||(h.contents=c);h.contents&&(h.contents=h.contents.not(function(){return a(this).is("title")}), h.contents.find("title").remove(),h.scripts=V(h.contents,"script").remove(),h.contents=h.contents.not(h.scripts));h.title&&(h.title=a.trim(h.title));return h}function v(c,d){if(c){var f=a("script[src]"),h=function(c){var h=this.src;f.filter(function(){return this.src===h}).length?c():h?(a.getScript(h).done(c).fail(c),document.head.appendChild(this)):(d.append(this),c())},k=0,l=function(){if(!(k>=c.length)){var a=c[k];k++;h.call(a,l)}};l()}}function R(a,d){c.options.cache&&(W[a]=d,ha.push(a),C(oa, 0),C(ha,c.defaults.maxCacheLength))}function C(a,c){for(;a.length>c;)delete W[a.shift()]}function O(){return a("meta").filter(function(){var c=a(this).attr("http-equiv");return c&&"X-PJAX-VERSION"===c.toUpperCase()}).attr("content")}function F(){a.fn.pjax=m;a.pjax=c;a.pjax.enable=a.noop;a.pjax.disable=S;a.pjax.click=l;a.pjax.submit=h;a.pjax.reload=f;a.pjax.defaults={history:!0,cache:!0,timeout:650,push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0,maxCacheLength:20,version:O,pushRedirect:!1, replaceRedirect:!0,skipOuterContainers:!1,ieRedirectCompatibility:!0};a(window).on("popstate.pjax",k)}function S(){a.fn.pjax=function(){return this};a.pjax=p;a.pjax.enable=F;a.pjax.disable=a.noop;a.pjax.click=a.noop;a.pjax.submit=a.noop;a.pjax.reload=function(){window.location.reload()};a(window).off("popstate.pjax",k)}var Q=!0,ga=window.location.href,Z=window.history.state;Z&&Z.container&&(c.state=Z);"state"in window.history&&(Q=!1);var W={},oa=[],ha=[];0>a.inArray("state",a.event.props)&&a.event.props.push("state"); a.support.pjax=window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/);a.support.pjax?F():S()})(jQuery); (function(a){function m(d,f,h,l,m){d=d.attr("id");var k=c[d];if(void 0!==k&&void 0!==k[f]){var p=k[f];a(document).off(p.event,p.selector)}void 0===k&&(c[d]={});a(document).on(h,l,m);c[d][f]={event:h,selector:l}}a.fn.yiiGridView=function(c){return f[c]?f[c].apply(this,Array.prototype.slice.call(arguments,1)):"object"!==typeof c&&c?(a.error("Method "+c+" does not exist in jQuery.yiiGridView"),!1):f.init.apply(this,arguments)};var l={filterUrl:void 0,filterSelector:void 0},h={},c={},f={init:function(c){return this.each(function(){var d= a(this),p=a.extend({},l,c||{}),r=d.attr("id");void 0===h[r]&&(h[r]={});h[r]=a.extend(h[r],{settings:p});var w=!1;m(d,"filter","change.yiiGridView keydown.yiiGridView",p.filterSelector,function(a){if("keydown"===a.type){if(13!==a.keyCode)return;w=!0}else if(w){w=!1;return}f.applyFilter.apply(d);return!1})})},applyFilter:function(){var c=a(this),f=h[c.attr("id")].settings,l={};a.each(a(f.filterSelector).serializeArray(),function(){this.name in l||(l[this.name]=[]);l[this.name].push(this.value)});var m= Object.keys(l);a.each(yii.getQueryParams(f.filterUrl),function(c,d){-1===m.indexOf(c)&&-1===m.indexOf(c.replace(/\[\]$/,""))&&(a.isArray(d)||(d=[d]),c in l?a.each(d,function(d,f){a.inArray(f,l[c])&&l[c].push(f)}):l[c]=d)});var w=f.filterUrl.indexOf("?"),z=0>w?f.filterUrl:f.filterUrl.substring(0,w),N=f.filterUrl.indexOf("#");0<=w&&0<=N&&(z+=f.filterUrl.substring(N));c.find("form.gridview-filter-form").remove();var J=a("<form/>",{action:z,method:"get","class":"gridview-filter-form",style:"display:none", "data-pjax":""}).appendTo(c);a.each(l,function(c,d){a.each(d,function(d,f){J.append(a("<input/>").attr({type:"hidden",name:c,value:f}))})});f=a.Event("beforeFilter");c.trigger(f);!1!==f.result&&(J.submit(),c.trigger("afterFilter"))},setSelectionColumn:function(c){var d=a(this),f=a(this).attr("id");void 0===h[f]&&(h[f]={});h[f].selectionColumn=c.name;if(c.multiple&&c.checkAll){var l=c["class"]?"input."+c["class"]:"input[name='"+c.name+"']",w="#"+f+" "+l+":enabled";m(d,"checkAllRows","click.yiiGridView", "#"+f+" input[name='"+c.checkAll+"']",function(){d.find(l+":enabled").prop("checked",this.checked)});m(d,"checkRow","click.yiiGridView",w,function(){var a=d.find(l).length==d.find(l+":checked").length;d.find("input[name='"+c.checkAll+"']").prop("checked",a)})}},getSelectedRows:function(){var c=a(this),f=h[c.attr("id")],l=[];f.selectionColumn&&c.find("input[name='"+f.selectionColumn+"']:checked").each(function(){l.push(a(this).parent().closest("tr").data("key"))});return l},destroy:function(){this.off(".yiiGridView beforeFilter afterFilter"); var d=a(this).attr("id");a.each(c[d],function(c,d){a(document).off(d.event,d.selector)});delete h[d];return this},data:function(){var c=a(this).attr("id");return h[c]}}})(window.jQuery);